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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-CGUzvBgY.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
2
+ import{n as e}from"./auth-AobvBmz4.mjs";import{i as t}from"./context-Bwkz4Lm_.mjs";import{t as n}from"./output-BGqhvqe2.mjs";import{t as r}from"./dry-run-DmsbOMF1.mjs";import{t as i}from"./progress-BYVZuEcG.mjs";import{t as a}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{a as l,n as u}from"./prompt-F5wxc8zq.mjs";import{t as d}from"./cli-types-9oYmRTHJ.mjs";function f(e){return e.usage(`$0 spectrum analytics aggregates currents get
3
3
 
4
- Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.`).option(`app-id`,{type:`string`,description:`Comma-delimited list of Spectrum Application Id(s). If provided, the response will be limited to Spectrum Application Id(s) that match.`}).option(`colo-name`,{type:`string`,description:`Co-location identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get current aggregated analytics`,builder:f,handler:async o=>a({command:`spectrum analytics aggregates currents get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={appID:o[`app-id`],colo_name:o[`colo-name`]};if(o.dryRun){r({command:`cf spectrum analytics aggregates currents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/aggregate/current`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.analytics.aggregates.currents.get({zone_id:c,...a})),{successLabel:`Loaded`})})},m={command:`currents`,describe:`Operations for analytics.aggregates.currents`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`aggregates`,describe:`Operations for analytics.aggregates`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 spectrum analytics events bytimes get
4
+ Retrieves analytics aggregated from the last minute of usage on Spectrum applications underneath a given zone.`).option(`app-id`,{type:`string`,description:`Comma-delimited list of Spectrum Application Id(s). If provided, the response will be limited to Spectrum Application Id(s) that match.`}).option(`colo-name`,{type:`string`,description:`Co-location identifier.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get current aggregated analytics`,builder:f,handler:async o=>a({command:`spectrum analytics aggregates currents get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={appID:o[`app-id`],colo_name:o[`colo-name`]};if(o.dryRun){r({command:`cf spectrum analytics aggregates currents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/aggregate/current`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.spectrum.analytics.aggregates.currents.get({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})},m={command:`currents`,describe:`Operations for analytics.aggregates.currents`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`aggregates`,describe:`Operations for analytics.aggregates`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 spectrum analytics events bytimes get
5
5
 
6
6
  Retrieves a list of aggregate metrics grouped by time interval.`).option(`dimensions`,{type:`string`,description:`Can be used to break down the data by given attributes. Options are:
7
7
 
@@ -31,7 +31,7 @@ Operator | Name | URL Encoded
31
31
  \\>= | Greater than or equal to | %3E%3D
32
32
  \\<= | Less than or equal to | %3C%3D
33
33
 
34
- Use the above to construct filters.`}).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`time-delta`,{type:`string`,description:`Used to select time series resolution.`,choices:[`year`,`quarter`,`month`,`week`,`day`,`hour`,`dekaminute`,`minute`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Get analytics by time`,builder:d(g),handler:async o=>a({command:`spectrum analytics events bytimes get`,classification:{safeFlags:[`time-delta`,`dry-run`]}},o,async()=>{let a={dimensions:o.dimensions,sort:o.sort,until:o.until,metrics:o.metrics,filters:o.filters,since:o.since,time_delta:o[`time-delta`]};if(o.dryRun){r({command:`cf spectrum analytics events bytimes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/events/bytime`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.analytics.events.bytimes.get({zone_id:c,...a})),{successLabel:`Loaded`})})},v={command:`bytimes`,describe:`Operations for analytics.events.bytimes`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 spectrum analytics events summaries get
34
+ Use the above to construct filters.`}).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`time-delta`,{type:`string`,description:`Used to select time series resolution.`,choices:[`year`,`quarter`,`month`,`week`,`day`,`hour`,`dekaminute`,`minute`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Get analytics by time`,builder:d(g),handler:async o=>a({command:`spectrum analytics events bytimes get`,classification:{safeFlags:[`time-delta`,`dry-run`]}},o,async()=>{let a={dimensions:o.dimensions,sort:o.sort,until:o.until,metrics:o.metrics,filters:o.filters,since:o.since,time_delta:o[`time-delta`]};if(o.dryRun){r({command:`cf spectrum analytics events bytimes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/events/bytime`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.spectrum.analytics.events.bytimes.get({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})},v={command:`bytimes`,describe:`Operations for analytics.events.bytimes`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function y(e){return e.usage(`$0 spectrum analytics events summaries get
35
35
 
36
36
  Retrieves a list of summarised aggregate metrics over a given time period.`).option(`dimensions`,{type:`string`,description:`Can be used to break down the data by given attributes. Options are:
37
37
 
@@ -61,23 +61,23 @@ Operator | Name | URL Encoded
61
61
  \\>= | Greater than or equal to | %3E%3D
62
62
  \\<= | Less than or equal to | %3C%3D
63
63
 
64
- Use the above to construct filters.`}).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get`,describe:`Get analytics summary`,builder:d(y),handler:async o=>a({command:`spectrum analytics events summaries get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={dimensions:o.dimensions,sort:o.sort,until:o.until,metrics:o.metrics,filters:o.filters,since:o.since};if(o.dryRun){r({command:`cf spectrum analytics events summaries get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/events/summary`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.analytics.events.summaries.get({zone_id:c,...a})),{successLabel:`Loaded`})})},x={command:`summaries`,describe:`Operations for analytics.events.summaries`,builder:e=>e.command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},S={command:`events`,describe:`Operations for analytics.events`,builder:e=>e.command(v).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 spectrum analytics zones report get
64
+ Use the above to construct filters.`}).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get`,describe:`Get analytics summary`,builder:d(y),handler:async o=>a({command:`spectrum analytics events summaries get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={dimensions:o.dimensions,sort:o.sort,until:o.until,metrics:o.metrics,filters:o.filters,since:o.since};if(o.dryRun){r({command:`cf spectrum analytics events summaries get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/analytics/events/summary`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.spectrum.analytics.events.summaries.get({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})},x={command:`summaries`,describe:`Operations for analytics.events.summaries`,builder:e=>e.command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},S={command:`events`,describe:`Operations for analytics.events`,builder:e=>e.command(v).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 spectrum analytics zones report get
65
65
 
66
- Retrieves a list of total bandwidth by zone over a given time period.`).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`until`,{type:`string`,description:`End of time interval to query, defaults to current time. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.`}).option(`cdn-traffic`,{type:`boolean`,description:`Include CDN traffic in the bandwidth aggregation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get`,describe:`Get zones bandwidth report`,builder:C,handler:async e=>a({command:`spectrum analytics zones report get`,classification:{safeFlags:[`cdn-traffic`,`dry-run`]}},e,async()=>{let a={since:e.since,until:e.until,cdn_traffic:e[`cdn-traffic`]};if(e.dryRun){r({command:`cf spectrum analytics zones report get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/spectrum_analytics/zones/report`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.spectrum.analytics.zones.report.get(a)),{successLabel:`Loaded`})})},T={command:`report`,describe:`Operations for analytics.zones.report`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},E={command:`zones`,describe:`Operations for analytics.zones`,builder:e=>e.command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},D={command:`analytics`,describe:`Real-time and historical connection analytics for Spectrum applications`,builder:e=>e.command(h).command(S).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function O(e){return e.usage(`$0 spectrum apps create
66
+ Retrieves a list of total bandwidth by zone over a given time period.`).option(`since`,{type:`string`,description:"Start of time interval to query, defaults to `until` - 6 hours. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified."}).option(`until`,{type:`string`,description:`End of time interval to query, defaults to current time. Timestamp must be in RFC3339 format and uses UTC unless otherwise specified.`}).option(`cdn-traffic`,{type:`boolean`,description:`Include CDN traffic in the bandwidth aggregation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get`,describe:`Get zones bandwidth report`,builder:C,handler:async t=>a({command:`spectrum analytics zones report get`,classification:{safeFlags:[`cdn-traffic`,`dry-run`]}},t,async()=>{let a={since:t.since,until:t.until,cdn_traffic:t[`cdn-traffic`]};if(t.dryRun){r({command:`cf spectrum analytics zones report get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/spectrum_analytics/zones/report`,pathParams:{},query:a,bodyKind:`none`});return}let o=await e(t),s=await i(`Loading`,async()=>o.spectrum.analytics.zones.report.get(a));n(s,{successLabel:`Loaded`})})},T={command:`report`,describe:`Operations for analytics.zones.report`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},E={command:`zones`,describe:`Operations for analytics.zones`,builder:e=>e.command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},D={command:`analytics`,describe:`Real-time and historical connection analytics for Spectrum applications`,builder:e=>e.command(h).command(S).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function O(e){return e.usage(`$0 spectrum apps create
67
67
 
68
68
  Creates a new Spectrum application from a configuration using a name for the origin.`).option(`argo-smart-routing`,{type:`boolean`,description:`Enables Argo Smart Routing for this application.
69
69
  Notes: Only available for TCP or UDP applications with traffic_type set to "direct".`,default:!1}).option(`dns-name`,{type:`string`,description:`The name of the DNS record associated with the application.`}).option(`dns-type`,{type:`string`,description:`The type of DNS record associated with the application.`,choices:[`CNAME`,`ADDRESS`]}).option(`edge-ips-connectivity`,{type:`string`,description:`The IP versions supported for inbound connections on Spectrum anycast IPs.`,choices:[`all`,`ipv4`,`ipv6`]}).option(`edge-ips-type`,{type:`string`,description:`The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.`,choices:[`dynamic`,`static`]}).option(`edge-ips-ips`,{type:`string`,array:!0,description:`The array of customer owned IPs we broadcast via anycast for this hostname and application.`}).option(`ip-firewall`,{type:`boolean`,description:`Enables IP Access Rules for this application.
70
- Notes: Only available for TCP applications.`,default:!1}).option(`origin-direct`,{type:`string`,array:!0,description:`List of origin IP addresses. Array may contain multiple IP addresses for load balancing.`}).option(`origin-dns-name`,{type:`string`,description:`The name of the DNS record associated with the origin.`}).option(`origin-dns-ttl`,{type:`number`,description:`The TTL of our resolution of your DNS record in seconds.`}).option(`origin-dns-type`,{type:`string`,description:`The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.`,choices:[`A`,`AAAA`,`SRV`]}).option(`origin-worker-id`,{type:`string`,description:`Optional Worker script tag (worker ID) to use as the application's origin. Only supported for TCP applications with traffic_type "worker"; mutually exclusive with origin_direct, origin_dns, origin_port, proxy_protocol, and argo_smart_routing. tls may only be "off" or "flexible".`}).option(`protocol`,{type:`string`,description:'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'}).option(`proxy-protocol`,{type:`string`,description:`Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.`,choices:[`off`,`v1`,`v2`,`simple`],default:`off`}).option(`tls`,{type:`string`,description:`The type of TLS termination associated with the application.`,choices:[`off`,`flexible`,`full`,`strict`],default:`off`}).option(`traffic-type`,{type:`string`,description:'Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application\'s type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare\'s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to "worker", traffic is sent to the Worker specified by `origin_worker_id`.',choices:[`direct`,`http`,`https`,`worker`],default:`direct`}).option(`virtual-network-id`,{type:`string`,description:`Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.`}).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)`}).conflicts(`edge-ips-connectivity`,[`edge-ips-ips`]).conflicts(`edge-ips-ips`,[`edge-ips-connectivity`])}const k={command:`create`,describe:`Create Spectrum application using a name for the origin`,builder:O,handler:async u=>a({command:`spectrum apps create`,classification:{safeFlags:[`argo-smart-routing`,`dns-type`,`edge-ips-connectivity`,`edge-ips-type`,`ip-firewall`,`origin-dns-type`,`proxy-protocol`,`tls`,`traffic-type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf spectrum apps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/spectrum/apps`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.spectrum.apps.create({body:e,zone_id:d})),{successLabel:`Created`});return}u.protocol===void 0&&(u.protocol=await l(`protocol`,'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'));let f=s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)});n(await i(`Creating`,async()=>a.spectrum.apps.create({body:f,zone_id:d})),{successLabel:`Created`})})};function A(e){return e.usage(`$0 spectrum apps delete <app-id>
70
+ Notes: Only available for TCP applications.`,default:!1}).option(`origin-direct`,{type:`string`,array:!0,description:`List of origin IP addresses. Array may contain multiple IP addresses for load balancing.`}).option(`origin-dns-name`,{type:`string`,description:`The name of the DNS record associated with the origin.`}).option(`origin-dns-ttl`,{type:`number`,description:`The TTL of our resolution of your DNS record in seconds.`}).option(`origin-dns-type`,{type:`string`,description:`The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.`,choices:[`A`,`AAAA`,`SRV`]}).option(`origin-worker-id`,{type:`string`,description:`Optional Worker script tag (worker ID) to use as the application's origin. Only supported for TCP applications with traffic_type "worker"; mutually exclusive with origin_direct, origin_dns, origin_port, proxy_protocol, and argo_smart_routing. tls may only be "off" or "flexible".`}).option(`protocol`,{type:`string`,description:'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'}).option(`proxy-protocol`,{type:`string`,description:`Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.`,choices:[`off`,`v1`,`v2`,`simple`],default:`off`}).option(`tls`,{type:`string`,description:`The type of TLS termination associated with the application.`,choices:[`off`,`flexible`,`full`,`strict`],default:`off`}).option(`traffic-type`,{type:`string`,description:'Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application\'s type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare\'s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to "worker", traffic is sent to the Worker specified by `origin_worker_id`.',choices:[`direct`,`http`,`https`,`worker`],default:`direct`}).option(`virtual-network-id`,{type:`string`,description:`Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.`}).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)`}).conflicts(`edge-ips-connectivity`,[`edge-ips-ips`]).conflicts(`edge-ips-ips`,[`edge-ips-connectivity`])}const k={command:`create`,describe:`Create Spectrum application using a name for the origin`,builder:O,handler:async u=>a({command:`spectrum apps create`,classification:{safeFlags:[`argo-smart-routing`,`dns-type`,`edge-ips-connectivity`,`edge-ips-type`,`ip-firewall`,`origin-dns-type`,`proxy-protocol`,`tls`,`traffic-type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf spectrum apps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/spectrum/apps`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Creating`,async()=>a.spectrum.apps.create({body:e,zone_id:d}));n(t,{successLabel:`Created`});return}u.protocol===void 0&&(u.protocol=await l(`protocol`,'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'));let f=s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}),p=await i(`Creating`,async()=>a.spectrum.apps.create({body:f,zone_id:d}));n(p,{successLabel:`Created`})})};function A(e){return e.usage(`$0 spectrum apps delete <app-id>
71
71
 
72
- Deletes a previously existing application.`).positional(`app-id`,{type:`string`,description:`App identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <app-id>`,describe:`Delete Spectrum application`,builder:A,handler:async o=>a({command:`spectrum apps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf spectrum apps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps/${o[`app-id`]==null?`<app-id>`:encodeURIComponent(String(o[`app-id`]))}`,pathParams:{"app-id":String(o[`app-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
73
- `);return}n(await i(`Deleting`,async()=>a.spectrum.apps.delete({zone_id:s,app_id:o[`app-id`]})),{successLabel:`Deleted`})})};function M(e){return e.usage(`$0 spectrum apps get <app-id>
72
+ Deletes a previously existing application.`).positional(`app-id`,{type:`string`,description:`App identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <app-id>`,describe:`Delete Spectrum application`,builder:A,handler:async o=>a({command:`spectrum apps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf spectrum apps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps/${o[`app-id`]==null?`<app-id>`:encodeURIComponent(String(o[`app-id`]))}`,pathParams:{"app-id":String(o[`app-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
73
+ `);return}let c=await i(`Deleting`,async()=>a.spectrum.apps.delete({zone_id:s,app_id:o[`app-id`]}));n(c,{successLabel:`Deleted`})})};function M(e){return e.usage(`$0 spectrum apps get <app-id>
74
74
 
75
- Gets the application configuration of a specific application inside a zone.`).positional(`app-id`,{type:`string`,description:`App identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <app-id>`,describe:`Get Spectrum application configuration`,builder:M,handler:async o=>a({command:`spectrum apps get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf spectrum apps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps/${o[`app-id`]==null?`<app-id>`:encodeURIComponent(String(o[`app-id`]))}`,pathParams:{"app-id":String(o[`app-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.spectrum.apps.get({zone_id:s,app_id:o[`app-id`]})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 spectrum apps list
75
+ Gets the application configuration of a specific application inside a zone.`).positional(`app-id`,{type:`string`,description:`App identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <app-id>`,describe:`Get Spectrum application configuration`,builder:M,handler:async o=>a({command:`spectrum apps get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf spectrum apps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps/${o[`app-id`]==null?`<app-id>`:encodeURIComponent(String(o[`app-id`]))}`,pathParams:{"app-id":String(o[`app-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.spectrum.apps.get({zone_id:s,app_id:o[`app-id`]}));n(c,{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 spectrum apps list
76
76
 
77
- Retrieves a list of currently existing Spectrum applications inside a zone.`).option(`page`,{type:`number`,description:"Page number of paginated results. This parameter is required in order to use other pagination parameters. If included in the query, `result_info` will be present in the response."}).option(`per-page`,{type:`number`,description:`Sets the maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Sets the direction by which results are ordered.`,choices:[`asc`,`desc`]}).option(`order`,{type:`string`,description:`Application field by which results are ordered.`,choices:[`protocol`,`app_id`,`created_on`,`modified_on`,`dns`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List Spectrum applications`,builder:d(P),handler:async o=>a({command:`spectrum apps list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],direction:o.direction,order:o.order};if(o.dryRun){r({command:`cf spectrum apps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.spectrum.apps.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 spectrum apps update <app-id>
77
+ Retrieves a list of currently existing Spectrum applications inside a zone.`).option(`page`,{type:`number`,description:"Page number of paginated results. This parameter is required in order to use other pagination parameters. If included in the query, `result_info` will be present in the response."}).option(`per-page`,{type:`number`,description:`Sets the maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Sets the direction by which results are ordered.`,choices:[`asc`,`desc`]}).option(`order`,{type:`string`,description:`Application field by which results are ordered.`,choices:[`protocol`,`app_id`,`created_on`,`modified_on`,`dns`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List Spectrum applications`,builder:d(P),handler:async o=>a({command:`spectrum apps list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],direction:o.direction,order:o.order};if(o.dryRun){r({command:`cf spectrum apps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/apps`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.spectrum.apps.list({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 spectrum apps update <app-id>
78
78
 
79
79
  Updates a previously existing application's configuration that uses a name for the origin.`).positional(`app-id`,{type:`string`,description:`App identifier.`,demandOption:!0}).option(`argo-smart-routing`,{type:`boolean`,description:`Enables Argo Smart Routing for this application.
80
80
  Notes: Only available for TCP or UDP applications with traffic_type set to "direct".`}).option(`dns-name`,{type:`string`,description:`The name of the DNS record associated with the application.`}).option(`dns-type`,{type:`string`,description:`The type of DNS record associated with the application.`,choices:[`CNAME`,`ADDRESS`]}).option(`edge-ips-connectivity`,{type:`string`,description:`The IP versions supported for inbound connections on Spectrum anycast IPs.`,choices:[`all`,`ipv4`,`ipv6`]}).option(`edge-ips-type`,{type:`string`,description:`The type of edge IP configuration specified. Dynamically allocated edge IPs use Spectrum anycast IPs in accordance with the connectivity you specify. Only valid with CNAME DNS names.`,choices:[`dynamic`,`static`]}).option(`edge-ips-ips`,{type:`string`,array:!0,description:`The array of customer owned IPs we broadcast via anycast for this hostname and application.`}).option(`ip-firewall`,{type:`boolean`,description:`Enables IP Access Rules for this application.
81
- Notes: Only available for TCP applications.`}).option(`origin-direct`,{type:`string`,array:!0,description:`List of origin IP addresses. Array may contain multiple IP addresses for load balancing.`}).option(`origin-dns-name`,{type:`string`,description:`The name of the DNS record associated with the origin.`}).option(`origin-dns-ttl`,{type:`number`,description:`The TTL of our resolution of your DNS record in seconds.`}).option(`origin-dns-type`,{type:`string`,description:`The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.`,choices:[`A`,`AAAA`,`SRV`]}).option(`origin-worker-id`,{type:`string`,description:`Optional Worker script tag (worker ID) to use as the application's origin. Only supported for TCP applications with traffic_type "worker"; mutually exclusive with origin_direct, origin_dns, origin_port, proxy_protocol, and argo_smart_routing. tls may only be "off" or "flexible".`}).option(`protocol`,{type:`string`,description:'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'}).option(`proxy-protocol`,{type:`string`,description:`Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.`,choices:[`off`,`v1`,`v2`,`simple`]}).option(`tls`,{type:`string`,description:`The type of TLS termination associated with the application.`,choices:[`off`,`flexible`,`full`,`strict`]}).option(`traffic-type`,{type:`string`,description:'Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application\'s type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare\'s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to "worker", traffic is sent to the Worker specified by `origin_worker_id`.',choices:[`direct`,`http`,`https`,`worker`]}).option(`virtual-network-id`,{type:`string`,description:`Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.`}).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)`}).conflicts(`edge-ips-connectivity`,[`edge-ips-ips`]).conflicts(`edge-ips-ips`,[`edge-ips-connectivity`])}const L={command:`update <app-id>`,describe:`Update Spectrum application configuration using a name for the origin`,builder:I,handler:async u=>a({command:`spectrum apps update`,classification:{safeFlags:[`argo-smart-routing`,`dns-type`,`edge-ips-connectivity`,`edge-ips-type`,`ip-firewall`,`origin-dns-type`,`proxy-protocol`,`tls`,`traffic-type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf spectrum apps update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/spectrum/apps/${u[`app-id`]==null?`<app-id>`:encodeURIComponent(String(u[`app-id`]))}`,pathParams:{"app-id":String(u[`app-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.spectrum.apps.update({body:e,zone_id:d,app_id:u[`app-id`]})),{successLabel:`Updated`});return}u.protocol===void 0&&(u.protocol=await l(`protocol`,'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'));let f=s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)});n(await i(`Updating`,async()=>a.spectrum.apps.update({body:f,zone_id:d,app_id:u[`app-id`]})),{successLabel:`Updated`})})},R={command:`apps`,describe:`Spectrum application configurations that map protocols and ports to origin servers`,builder:e=>e.command(k).command(j).command(N).command(F).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 spectrum protocols list
81
+ Notes: Only available for TCP applications.`}).option(`origin-direct`,{type:`string`,array:!0,description:`List of origin IP addresses. Array may contain multiple IP addresses for load balancing.`}).option(`origin-dns-name`,{type:`string`,description:`The name of the DNS record associated with the origin.`}).option(`origin-dns-ttl`,{type:`number`,description:`The TTL of our resolution of your DNS record in seconds.`}).option(`origin-dns-type`,{type:`string`,description:`The type of DNS record associated with the origin. "" is used to specify a combination of A/AAAA records.`,choices:[`A`,`AAAA`,`SRV`]}).option(`origin-worker-id`,{type:`string`,description:`Optional Worker script tag (worker ID) to use as the application's origin. Only supported for TCP applications with traffic_type "worker"; mutually exclusive with origin_direct, origin_dns, origin_port, proxy_protocol, and argo_smart_routing. tls may only be "off" or "flexible".`}).option(`protocol`,{type:`string`,description:'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'}).option(`proxy-protocol`,{type:`string`,description:`Enables Proxy Protocol to the origin. Refer to [Enable Proxy protocol](https://developers.cloudflare.com/spectrum/getting-started/proxy-protocol/) for implementation details on PROXY Protocol V1, PROXY Protocol V2, and Simple Proxy Protocol.`,choices:[`off`,`v1`,`v2`,`simple`]}).option(`tls`,{type:`string`,description:`The type of TLS termination associated with the application.`,choices:[`off`,`flexible`,`full`,`strict`]}).option(`traffic-type`,{type:`string`,description:'Determines how data travels from the edge to your origin. When set to "direct", Spectrum will send traffic directly to your origin, and the application\'s type is derived from the `protocol`. When set to "http" or "https", Spectrum will apply Cloudflare\'s HTTP/HTTPS features as it sends traffic to your origin, and the application type matches this property exactly. When set to "worker", traffic is sent to the Worker specified by `origin_worker_id`.',choices:[`direct`,`http`,`https`,`worker`]}).option(`virtual-network-id`,{type:`string`,description:`Optional UUID of a virtual network for routing origin traffic through tunnel virtual networks.`}).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)`}).conflicts(`edge-ips-connectivity`,[`edge-ips-ips`]).conflicts(`edge-ips-ips`,[`edge-ips-connectivity`])}const L={command:`update <app-id>`,describe:`Update Spectrum application configuration using a name for the origin`,builder:I,handler:async u=>a({command:`spectrum apps update`,classification:{safeFlags:[`argo-smart-routing`,`dns-type`,`edge-ips-connectivity`,`edge-ips-type`,`ip-firewall`,`origin-dns-type`,`proxy-protocol`,`tls`,`traffic-type`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf spectrum apps update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/spectrum/apps/${u[`app-id`]==null?`<app-id>`:encodeURIComponent(String(u[`app-id`]))}`,pathParams:{"app-id":String(u[`app-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}):o(u.body)});return}let a=await e(u),d=await t({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body),t=await i(`Updating`,async()=>a.spectrum.apps.update({body:e,zone_id:d,app_id:u[`app-id`]}));n(t,{successLabel:`Updated`});return}u.protocol===void 0&&(u.protocol=await l(`protocol`,'The port configuration at Cloudflare\'s edge. May specify a single port, for example `"tcp/1000"`, or a range of ports, for example `"tcp/1000-2000"`.'));let f=s({argo_smart_routing:u[`argo-smart-routing`],dns:{name:c(u[`dns-name`],`dns-name`,`text`),type:c(u[`dns-type`],`dns-type`,`text`)},edge_ips:{connectivity:c(u[`edge-ips-connectivity`],`edge-ips-connectivity`,`text`),type:c(u[`edge-ips-type`],`edge-ips-type`,`text`),ips:u[`edge-ips-ips`]},ip_firewall:u[`ip-firewall`],origin_direct:u[`origin-direct`],origin_dns:{name:c(u[`origin-dns-name`],`origin-dns-name`,`text`),ttl:u[`origin-dns-ttl`],type:c(u[`origin-dns-type`],`origin-dns-type`,`text`)},origin_worker_id:c(u[`origin-worker-id`],`origin-worker-id`,`text`),protocol:c(u.protocol,`protocol`,`text`),proxy_protocol:c(u[`proxy-protocol`],`proxy-protocol`,`text`),tls:c(u.tls,`tls`,`text`),traffic_type:c(u[`traffic-type`],`traffic-type`,`text`),virtual_network_id:c(u[`virtual-network-id`],`virtual-network-id`,`text`)}),p=await i(`Updating`,async()=>a.spectrum.apps.update({body:f,zone_id:d,app_id:u[`app-id`]}));n(p,{successLabel:`Updated`})})},R={command:`apps`,describe:`Spectrum application configurations that map protocols and ports to origin servers`,builder:e=>e.command(k).command(j).command(N).command(F).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 spectrum protocols list
82
82
 
83
- Retrieves a list of Spectrum application protocols available for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List Spectrum application protocols`,builder:z,handler:async o=>a({command:`spectrum protocols list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf spectrum protocols list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/protocols`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.spectrum.protocols.list({zone_id:s})),{successLabel:`Loaded`})})},V={command:`protocols`,describe:`Operations for protocols`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`spectrum`,describe:`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,builder:e=>e.command(D).command(R).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{H as default};
83
+ Retrieves a list of Spectrum application protocols available for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const B={command:`list`,describe:`List Spectrum application protocols`,builder:z,handler:async o=>a({command:`spectrum protocols list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf spectrum protocols list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/spectrum/protocols`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.spectrum.protocols.list({zone_id:s}));n(c,{successLabel:`Loaded`})})},V={command:`protocols`,describe:`Operations for protocols`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`spectrum`,describe:`Proxy and protect arbitrary TCP/UDP applications through Cloudflare's network with DDoS mitigation`,builder:e=>e.command(D).command(R).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{H as default};
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./prompt-CGUzvBgY.mjs";import{t as c}from"./cli-types-DoVT5q_M.mjs";function l(e){return e.usage(`$0 speed availabilities list
2
+ import{n as e}from"./auth-AobvBmz4.mjs";import{i as t}from"./context-Bwkz4Lm_.mjs";import{t as n}from"./output-BGqhvqe2.mjs";import{t as r}from"./dry-run-DmsbOMF1.mjs";import{t as i}from"./progress-BYVZuEcG.mjs";import{t as a}from"./run-CrZgB8L_.mjs";import"./telemetry-DBXOMuLh.mjs";import{n as o}from"./body-parser-DkHKPkJ7.mjs";import{n as s}from"./prompt-F5wxc8zq.mjs";import{t as c}from"./cli-types-9oYmRTHJ.mjs";function l(e){return e.usage(`$0 speed availabilities list
3
3
 
4
- Retrieves quota for all plans, as well as the current zone quota.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`Get quota and availability`,builder:l,handler:async o=>a({command:`speed availabilities list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed availabilities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/availabilities`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.speed.availabilities.list({zone_id:s})),{successLabel:`Loaded`})})},d={command:`availabilities`,describe:`Check which speed test regions and configurations are available for your zone`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function f(e){return e.usage(`$0 speed pages list
4
+ Retrieves quota for all plans, as well as the current zone quota.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`Get quota and availability`,builder:l,handler:async o=>a({command:`speed availabilities list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed availabilities list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/availabilities`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.speed.availabilities.list({zone_id:s}));n(c,{successLabel:`Loaded`})})},d={command:`availabilities`,describe:`Check which speed test regions and configurations are available for your zone`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function f(e){return e.usage(`$0 speed pages list
5
5
 
6
- Lists all webpages which have been tested.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`list`,describe:`List tested webpages`,builder:f,handler:async o=>a({command:`speed pages list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.speed.pages.list({zone_id:s})),{successLabel:`Loaded`})})};function m(e){return e.usage(`$0 speed pages tests create <url>
6
+ Lists all webpages which have been tested.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`list`,describe:`List tested webpages`,builder:f,handler:async o=>a({command:`speed pages list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.speed.pages.list({zone_id:s}));n(c,{successLabel:`Loaded`})})};function m(e){return e.usage(`$0 speed pages tests create <url>
7
7
 
8
- Starts a test for a specific webpage, in a specific region.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).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 h={command:`create <url>`,describe:`Start page test`,builder:m,handler:async s=>a({command:`speed pages tests create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf speed pages tests create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/speed_api/pages/${s.url==null?`<url>`:encodeURIComponent(String(s.url))}/tests`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``),url:String(s.url??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await t(s),c=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.speed.pages.tests.create({...e,zone_id:c,url:s.url})),{successLabel:`Created`});return}n(await i(`Creating`,async()=>a.speed.pages.tests.create({zone_id:c,url:s.url})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 speed pages tests delete <url>
8
+ Starts a test for a specific webpage, in a specific region.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).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 h={command:`create <url>`,describe:`Start page test`,builder:m,handler:async s=>a({command:`speed pages tests create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf speed pages tests create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/speed_api/pages/${s.url==null?`<url>`:encodeURIComponent(String(s.url))}/tests`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``),url:String(s.url??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await e(s),c=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body),t=await i(`Creating`,async()=>a.speed.pages.tests.create({...e,zone_id:c,url:s.url}));n(t,{successLabel:`Created`});return}let l=await i(`Creating`,async()=>a.speed.pages.tests.create({zone_id:c,url:s.url}));n(l,{successLabel:`Created`})})};function g(e){return e.usage(`$0 speed pages tests delete <url>
9
9
 
10
- Deletes all tests for a specific webpage from a specific region. Deleted tests are still counted as part of the quota.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).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 _={command:`delete <url>`,describe:`Delete all page tests`,builder:c(g),handler:async o=>a({command:`speed pages tests delete`,classification:{safeFlags:[`region`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed pages tests delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let c=await t(o),l=await e({zone:o.zone},c,{quiet:o.quiet});if(o.zoneId=l,!await s({force:!!o.force})){process.stderr.write(`Aborted.
11
- `);return}n(await i(`Deleting`,async()=>c.speed.pages.tests.delete({zone_id:l,url:o.url,...a})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 speed pages tests get <test-id>
10
+ Deletes all tests for a specific webpage from a specific region. Deleted tests are still counted as part of the quota.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).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 _={command:`delete <url>`,describe:`Delete all page tests`,builder:c(g),handler:async o=>a({command:`speed pages tests delete`,classification:{safeFlags:[`region`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed pages tests delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let c=await e(o),l=await t({zone:o.zone},c,{quiet:o.quiet});if(o.zoneId=l,!await s({force:!!o.force})){process.stderr.write(`Aborted.
11
+ `);return}let u=await i(`Deleting`,async()=>c.speed.pages.tests.delete({zone_id:l,url:o.url,...a}));n(u,{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 speed pages tests get <test-id>
12
12
 
13
- Retrieves the result of a specific test.`).positional(`test-id`,{type:`string`,description:`Test ID`,demandOption:!0}).option(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <test-id>`,describe:`Get a page test result`,builder:v,handler:async o=>a({command:`speed pages tests get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed pages tests get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests/${o[`test-id`]==null?`<test-id>`:encodeURIComponent(String(o[`test-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``),"test-id":String(o[`test-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.speed.pages.tests.get({zone_id:s,url:o.url,test_id:o[`test-id`]})),{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 speed pages tests list
13
+ Retrieves the result of a specific test.`).positional(`test-id`,{type:`string`,description:`Test ID`,demandOption:!0}).option(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <test-id>`,describe:`Get a page test result`,builder:v,handler:async o=>a({command:`speed pages tests get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf speed pages tests get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests/${o[`test-id`]==null?`<test-id>`:encodeURIComponent(String(o[`test-id`]))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``),"test-id":String(o[`test-id`]??``)},bodyKind:`none`});return}let a=await e(o),s=await t({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s;let c=await i(`Loading`,async()=>a.speed.pages.tests.get({zone_id:s,url:o.url,test_id:o[`test-id`]}));n(c,{successLabel:`Loaded`})})};function b(e){return e.usage(`$0 speed pages tests list
14
14
 
15
- Test history (list of tests) for a specific webpage.`).option(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List page test history`,builder:c(b),handler:async o=>a({command:`speed pages tests list`,classification:{safeFlags:[`region`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],region:o.region};if(o.dryRun){r({command:`cf speed pages tests list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.speed.pages.tests.list({zone_id:c,url:o.url,...a})),{successLabel:`Loaded`})})},S={command:`tests`,describe:`Operations for pages.tests`,builder:e=>e.command(h).command(_).command(y).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 speed pages trend <url>
15
+ Test history (list of tests) for a specific webpage.`).option(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List page test history`,builder:c(b),handler:async o=>a({command:`speed pages tests list`,classification:{safeFlags:[`region`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],region:o.region};if(o.dryRun){r({command:`cf speed pages tests list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/tests`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.speed.pages.tests.list({zone_id:c,url:o.url,...a}));n(l,{successLabel:`Loaded`})})},S={command:`tests`,describe:`Operations for pages.tests`,builder:e=>e.command(h).command(_).command(y).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 speed pages trend <url>
16
16
 
17
- Lists the core web vital metrics trend over time for a specific page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`],demandOption:!0}).option(`device-type`,{type:`string`,description:`The type of device.`,choices:[`DESKTOP`,`MOBILE`],demandOption:!0}).option(`start`,{type:`string`,description:`Start`,demandOption:!0}).option(`end`,{type:`string`,description:`End`}).option(`tz`,{type:`string`,description:`The timezone of the start and end timestamps.`,demandOption:!0}).option(`metrics`,{type:`string`,description:`A comma-separated list of metrics to include in the results.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`trend <url>`,describe:`List core web vital metrics trend`,builder:c(C),handler:async o=>a({command:`speed pages trend`,classification:{safeFlags:[`region`,`device-type`,`dry-run`]}},o,async()=>{let a={region:o.region,deviceType:o[`device-type`],start:o.start,end:o.end,tz:o.tz,metrics:o.metrics};if(o.dryRun){r({command:`cf speed pages trend`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/trend`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.speed.pages.trend({zone_id:c,url:o.url,...a})),{successLabel:`Loaded`})})},T={command:`pages`,describe:`Tested pages with their performance history, trends, and individual test results`,builder:e=>e.command(p).command(w).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 speed schedule create <url>
17
+ Lists the core web vital metrics trend over time for a specific page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`],demandOption:!0}).option(`device-type`,{type:`string`,description:`The type of device.`,choices:[`DESKTOP`,`MOBILE`],demandOption:!0}).option(`start`,{type:`string`,description:`Start`,demandOption:!0}).option(`end`,{type:`string`,description:`End`}).option(`tz`,{type:`string`,description:`The timezone of the start and end timestamps.`,demandOption:!0}).option(`metrics`,{type:`string`,description:`A comma-separated list of metrics to include in the results.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`trend <url>`,describe:`List core web vital metrics trend`,builder:c(C),handler:async o=>a({command:`speed pages trend`,classification:{safeFlags:[`region`,`device-type`,`dry-run`]}},o,async()=>{let a={region:o.region,deviceType:o[`device-type`],start:o.start,end:o.end,tz:o.tz,metrics:o.metrics};if(o.dryRun){r({command:`cf speed pages trend`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/pages/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}/trend`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.speed.pages.trend({zone_id:c,url:o.url,...a}));n(l,{successLabel:`Loaded`})})},T={command:`pages`,describe:`Tested pages with their performance history, trends, and individual test results`,builder:e=>e.command(p).command(w).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 speed schedule create <url>
18
18
 
19
- Creates a scheduled test for a page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`frequency`,{type:`string`,description:`The frequency of the scheduled test. Defaults to WEEKLY for free plans, DAILY for paid plans.`,choices:[`DAILY`,`WEEKLY`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`create <url>`,describe:`Create scheduled page test`,builder:c(E),handler:async o=>a({command:`speed schedule create`,classification:{safeFlags:[`region`,`frequency`,`dry-run`]}},o,async()=>{let a={region:o.region,frequency:o.frequency};if(o.dryRun){r({command:`cf speed schedule create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Creating`,async()=>s.speed.schedule.create({zone_id:c,url:o.url,...a})),{successLabel:`Created`})})};function O(e){return e.usage(`$0 speed schedule delete <url>
19
+ Creates a scheduled test for a page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`frequency`,{type:`string`,description:`The frequency of the scheduled test. Defaults to WEEKLY for free plans, DAILY for paid plans.`,choices:[`DAILY`,`WEEKLY`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`create <url>`,describe:`Create scheduled page test`,builder:c(E),handler:async o=>a({command:`speed schedule create`,classification:{safeFlags:[`region`,`frequency`,`dry-run`]}},o,async()=>{let a={region:o.region,frequency:o.frequency};if(o.dryRun){r({command:`cf speed schedule create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Creating`,async()=>s.speed.schedule.create({zone_id:c,url:o.url,...a}));n(l,{successLabel:`Created`})})};function O(e){return e.usage(`$0 speed schedule delete <url>
20
20
 
21
- Deletes a scheduled test for a page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).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 k={command:`delete <url>`,describe:`Delete scheduled page test`,builder:c(O),handler:async o=>a({command:`speed schedule delete`,classification:{safeFlags:[`region`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed schedule delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let c=await t(o),l=await e({zone:o.zone},c,{quiet:o.quiet});if(o.zoneId=l,!await s({force:!!o.force})){process.stderr.write(`Aborted.
22
- `);return}n(await i(`Deleting`,async()=>c.speed.schedule.delete({zone_id:l,url:o.url,...a})),{successLabel:`Deleted`})})};function A(e){return e.usage(`$0 speed schedule get <url>
21
+ Deletes a scheduled test for a page.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).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 k={command:`delete <url>`,describe:`Delete scheduled page test`,builder:c(O),handler:async o=>a({command:`speed schedule delete`,classification:{safeFlags:[`region`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed schedule delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let c=await e(o),l=await t({zone:o.zone},c,{quiet:o.quiet});if(o.zoneId=l,!await s({force:!!o.force})){process.stderr.write(`Aborted.
22
+ `);return}let u=await i(`Deleting`,async()=>c.speed.schedule.delete({zone_id:l,url:o.url,...a}));n(u,{successLabel:`Deleted`})})};function A(e){return e.usage(`$0 speed schedule get <url>
23
23
 
24
- Retrieves the test schedule for a page in a specific region.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <url>`,describe:`Get a page test schedule`,builder:c(A),handler:async o=>a({command:`speed schedule get`,classification:{safeFlags:[`region`,`dry-run`]}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed schedule get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.speed.schedule.get({zone_id:c,url:o.url,...a})),{successLabel:`Loaded`})})},M={command:`schedule`,describe:`Scheduled recurring speed tests that automatically run at regular intervals`,builder:e=>e.command(D).command(k).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},N={command:`speed`,describe:`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,builder:e=>e.command(d).command(T).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{N as default};
24
+ Retrieves the test schedule for a page in a specific region.`).positional(`url`,{type:`string`,description:`A URL.`,demandOption:!0}).option(`region`,{type:`string`,description:`A test region.`,choices:[`asia-east1`,`asia-northeast1`,`asia-northeast2`,`asia-south1`,`asia-southeast1`,`australia-southeast1`,`europe-north1`,`europe-southwest1`,`europe-west1`,`europe-west2`,`europe-west3`,`europe-west4`,`europe-west8`,`europe-west9`,`me-west1`,`southamerica-east1`,`us-central1`,`us-east1`,`us-east4`,`us-south1`,`us-west1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <url>`,describe:`Get a page test schedule`,builder:c(A),handler:async o=>a({command:`speed schedule get`,classification:{safeFlags:[`region`,`dry-run`]}},o,async()=>{let a={region:o.region};if(o.dryRun){r({command:`cf speed schedule get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/speed_api/schedule/${o.url==null?`<url>`:encodeURIComponent(String(o.url))}`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``),url:String(o.url??``)},query:a,bodyKind:`none`});return}let s=await e(o),c=await t({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c;let l=await i(`Loading`,async()=>s.speed.schedule.get({zone_id:c,url:o.url,...a}));n(l,{successLabel:`Loaded`})})},M={command:`schedule`,describe:`Scheduled recurring speed tests that automatically run at regular intervals`,builder:e=>e.command(D).command(k).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},N={command:`speed`,describe:`Observatory speed tests — run Lighthouse audits, track performance trends, and schedule recurring tests`,builder:e=>e.command(d).command(T).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{N as default};