cf 1.0.0-beta.14 → 1.0.0-beta.16

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 (458) hide show
  1. package/README.md +10 -0
  2. package/dist/_meta/commands.json +6545 -3180
  3. package/dist/_meta/hand-written-commands.json +35 -2
  4. package/dist/_meta/schemas.json +7031 -4599
  5. package/dist/abuse-reports-17K-TRhO.mjs +24 -0
  6. package/dist/{access-k1QjF5rE.mjs → access-BwB7sg1D.mjs} +1 -1
  7. package/dist/account-tags-povXTDAu.mjs +15 -0
  8. package/dist/accounts-BnIGu_ac.mjs +132 -0
  9. package/dist/acm-CQRcu_zw.mjs +15 -0
  10. package/dist/addressing-Qcm9jd3C.mjs +105 -0
  11. package/dist/agent-memory-B3xN9I6-.mjs +34 -0
  12. package/dist/ai-BRKOCckA.mjs +31 -0
  13. package/dist/ai-audit-Cd9Rc2Fc.mjs +6 -0
  14. package/dist/ai-gateway-BWU5064V.mjs +80 -0
  15. package/dist/ai-search-CJ3b8eot.mjs +79 -0
  16. package/dist/ai-security-Dn0Ee6QS.mjs +10 -0
  17. package/dist/alerting-BXTiMfXo.mjs +56 -0
  18. package/dist/analytics-Jyd04TRW.mjs +17 -0
  19. package/dist/analytics-engine-CzrNfUeh.mjs +4 -0
  20. package/dist/api-eMuS5GI1.mjs +3 -0
  21. package/dist/api-security-DRBHZaf_.mjs +154 -0
  22. package/dist/argo-DiQt0pSb.mjs +14 -0
  23. package/dist/artifacts-eBZ4YN53.mjs +43 -0
  24. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  25. package/dist/auth-C6My1gI6.mjs +2 -0
  26. package/dist/auth-OFqV2M4q.mjs +2 -0
  27. package/dist/auth-eVI_UEt8.mjs +2 -0
  28. package/dist/{auth-token-Dop0wLCw.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  29. package/dist/{autoconfig-RQ3HS4m1.mjs → autoconfig-B0ESZ8DJ.mjs} +2 -2
  30. package/dist/basin-catalog-Cwk1RSMX.mjs +46 -0
  31. package/dist/billing-CfV8oi6A.mjs +23 -0
  32. package/dist/blocks-Bat9A8V_.mjs +5 -0
  33. package/dist/bot-management-CH4_Kewx.mjs +9 -0
  34. package/dist/botnet-feed-Cg_Wp8ei.mjs +11 -0
  35. package/dist/brand-protection-Cp2ckWou.mjs +27 -0
  36. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  37. package/dist/build-Bm6kGyzo.mjs +2 -0
  38. package/dist/{build-CCe7IrWT.mjs → build-sBpqm9ga.mjs} +1 -1
  39. package/dist/builds-B2RBgVL9.mjs +71 -0
  40. package/dist/cache-yvrYPvRI.mjs +45 -0
  41. package/dist/certificate-authorities-BdMRaOnD.mjs +6 -0
  42. package/dist/cf-Bq4pA4n6.mjs +18 -0
  43. package/dist/{chunk-TAK63GWY-DdMktrgc.mjs → chunk-2HLTAS5V-D7COzUOd.mjs} +2 -2
  44. package/dist/chunk-2K52M2W5-CYxfQXUq.mjs +363 -0
  45. package/dist/{chunk-DSGVRFIS-CPI5cYtB.mjs → chunk-DSGVRFIS-C5SqiTOz.mjs} +1 -1
  46. package/dist/{cli-ht4q6i2y.mjs → cli-CsnoQloF.mjs} +1 -1
  47. package/dist/client-certificates-CuWGvZSr.mjs +13 -0
  48. package/dist/client-side-security-D50iZjd_.mjs +63 -0
  49. package/dist/cloud-connector-wvSGdxWT.mjs +6 -0
  50. package/dist/{cloudflared-D83U8Yn3.mjs → cloudflared-By8BzYXc.mjs} +1 -1
  51. package/dist/cloudforce-one-j6vlmaMB.mjs +405 -0
  52. package/dist/{command-9VAc7b30.mjs → command-74P4_CTx.mjs} +1 -1
  53. package/dist/{command-B_Ixlz8Q.mjs → command-BDpm-U8z.mjs} +1 -1
  54. package/dist/{command-OHov3PEc.mjs → command-BSbhJRmu.mjs} +1 -1
  55. package/dist/{command-DjEJaOwV.mjs → command-BbO3sBQ2.mjs} +1 -1
  56. package/dist/{command-CtVUNm__.mjs → command-Bgb-3yPg.mjs} +1 -1
  57. package/dist/{command-DtgJilOK.mjs → command-C6w1OdoC.mjs} +1 -1
  58. package/dist/{command-CyJQ40fc.mjs → command-CM_f48gs.mjs} +1 -1
  59. package/dist/command-CmUtmu5j.mjs +2 -0
  60. package/dist/{command-Bpzp8Mz2.mjs → command-DCQgsd2U.mjs} +1 -1
  61. package/dist/{command-SmWD-MeI.mjs → command-DFRsim8q.mjs} +1 -1
  62. package/dist/command-DQojhTEQ.mjs +2 -0
  63. package/dist/{command-CUNMrMou.mjs → command-DZfKHiru.mjs} +1 -1
  64. package/dist/{command-BtDY_MKv.mjs → command-DiqRELHF.mjs} +1 -1
  65. package/dist/{command-DXaRn1ls.mjs → command-DppVezAB.mjs} +1 -1
  66. package/dist/{command-Ckb9FufU.mjs → command-Dr4PEvB2.mjs} +1 -1
  67. package/dist/{completions-CuqAO3N_.mjs → completions-oD1EcuHk.mjs} +1 -1
  68. package/dist/config.mjs +0 -0
  69. package/dist/connector-interrupts-DP4rbOe8.mjs +6 -0
  70. package/dist/connector-telemetry-events-BQGBQwzR.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-DBO0Mdcj.mjs +6 -0
  72. package/dist/connectors-BSVr3Kz1.mjs +15 -0
  73. package/dist/containers-BOpKpipz.mjs +376 -0
  74. package/dist/containers-BTqAeVV2.mjs +78 -0
  75. package/dist/content-scan-B9Keyxe-.mjs +14 -0
  76. package/dist/{context-BBLtgdR1.mjs → context-B-vEsyrK.mjs} +2 -2
  77. package/dist/{cps-C5phNoVU.mjs → cps-VRP794c5.mjs} +3 -3
  78. package/dist/create-OXylMu6m.mjs +2 -0
  79. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  80. package/dist/ct-alerting-Y9vfa6Fo.mjs +5 -0
  81. package/dist/custom-certificates-CojTEC0E.mjs +17 -0
  82. package/dist/custom-csrs-DM5X-K6H.mjs +11 -0
  83. package/dist/custom-hostnames-BBjqaiFF.mjs +27 -0
  84. package/dist/custom-nameservers-C0NDMLPJ.mjs +9 -0
  85. package/dist/custom-pages-M4RUxcn6.mjs +21 -0
  86. package/dist/{d1-EQMUlHTJ.mjs → d1-hin5PmxW.mjs} +31 -31
  87. package/dist/dcv-delegation-KOO8syyQ.mjs +4 -0
  88. package/dist/delegate.mjs +0 -0
  89. package/dist/{deploy-B22sEVHd.mjs → deploy-Bo7FtE44.mjs} +1 -1
  90. package/dist/deploy-context-ClvBD87y.mjs +56 -0
  91. package/dist/{deploy-input-BCjcuP6u.mjs → deploy-input-BqJ7GVZ-.mjs} +1 -1
  92. package/dist/{dev-ClhhXuNU.mjs → dev-EtnMYA7K.mjs} +1 -1
  93. package/dist/diagnostics-LZuMrGjK.mjs +15 -0
  94. package/dist/{dist-DmRM6WSZ.mjs → dist-DZRTPMMA.mjs} +4 -4
  95. package/dist/dls-Bq8k3iy-.mjs +17 -0
  96. package/dist/dns-firewall-zavP5Qxj.mjs +71 -0
  97. package/dist/dns-ry5E2Bsa.mjs +144 -0
  98. package/dist/docs-B08YtL0U.mjs +3 -0
  99. package/dist/{dotenv-DpXaxfho.mjs → dotenv-usOKkeW7.mjs} +3 -3
  100. package/dist/{dry-run-DRj2_uV3.mjs → dry-run-C2KjGX10.mjs} +1 -1
  101. package/dist/durable-objects-B9fo41B1.mjs +6 -0
  102. package/dist/email-auth-D9LGjFlh.mjs +6 -0
  103. package/dist/email-routing-6iDnNPhY.mjs +45 -0
  104. package/dist/email-security-ty4ufRnJ.mjs +158 -0
  105. package/dist/email-sending-d7LO_Cz_.mjs +47 -0
  106. package/dist/error-sanitization-CIQOep3I.mjs +2 -0
  107. package/dist/error-sanitization-pOyzm2F1.mjs +2 -0
  108. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  109. package/dist/firewall-Q88YyEwD.mjs +36 -0
  110. package/dist/flagship-CzI8zhd6.mjs +28 -0
  111. package/dist/fraud-CvFXTR0w.mjs +22 -0
  112. package/dist/get-By1q8YlI.mjs +2 -0
  113. package/dist/get-CRKvqCu6.mjs +2 -0
  114. package/dist/get-iPUHxD1r.mjs +2 -0
  115. package/dist/google-tag-gateway-Y2zbyey8.mjs +6 -0
  116. package/dist/healthchecks-4Hz-6xYi.mjs +22 -0
  117. package/dist/{hostnames-DvaUSzsj.mjs → hostnames-B3k7fIUL.mjs} +6 -6
  118. package/dist/hyperdrive-BWGYz95H.mjs +37 -0
  119. package/dist/iam-AXco_qmt.mjs +52 -0
  120. package/dist/images-BzYh8y0u.mjs +71 -0
  121. package/dist/index.mjs +1 -1
  122. package/dist/{init-Da8pe296.mjs → init-DlenHBtS.mjs} +2 -2
  123. package/dist/intel-BBi3i_GU.mjs +76 -0
  124. package/dist/ips-CWG2b7AM.mjs +4 -0
  125. package/dist/k2-DXdMe3Cb.mjs +11 -0
  126. package/dist/keyless-certificates-B4ta_OGS.mjs +13 -0
  127. package/dist/keys-B9zvFzrf.mjs +4 -0
  128. package/dist/kv-FUd7UdDu.mjs +15 -0
  129. package/dist/{lazy-command-CDWwCsD2.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  130. package/dist/leaked-credential-checks-BufVA9vL.mjs +18 -0
  131. package/dist/{load-balancers-Bu9pd2SV.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  132. package/dist/{local-BcPM4I0s.mjs → local-Dil4fTWX.mjs} +1 -1
  133. package/dist/local-DxWDQDnG.mjs +2 -0
  134. package/dist/{local-runtime-BHKyRlCP.mjs → local-runtime-B7TKFu6E.mjs} +1 -1
  135. package/dist/login-BJr2PBaJ.mjs +5 -0
  136. package/dist/login-DVbXZ_Tv.mjs +2 -0
  137. package/dist/logo-matches-BluaPvMa.mjs +6 -0
  138. package/dist/logos-CXtmYWEJ.mjs +7 -0
  139. package/dist/logpush-DCYgrqz0.mjs +46 -0
  140. package/dist/logs-as60IP29.mjs +36 -0
  141. package/dist/magic-cloud-networking-0RsHugUF.mjs +71 -0
  142. package/dist/magic-network-monitoring-CPqvZdcb.mjs +36 -0
  143. package/dist/magic-transit-ClPyGzOE.mjs +386 -0
  144. package/dist/managed-defense-P4_QWSbK.mjs +18 -0
  145. package/dist/managed-transforms-CUwQXMij.mjs +9 -0
  146. package/dist/matches-BjckDBW1.mjs +6 -0
  147. package/dist/mcp-C2EG2c7L.mjs +32 -0
  148. package/dist/mesh-CpMZA7Xt.mjs +26 -0
  149. package/dist/{migrate-CZNq63Uj.mjs → migrate-6e5mJ79R.mjs} +1 -1
  150. package/dist/monetization-DypuCZmU.mjs +20 -0
  151. package/dist/mtls-certificates-B5AWTU6u.mjs +13 -0
  152. package/dist/network-DQ5Ridgy.mjs +50 -0
  153. package/dist/network-interconnects-ifU4JhGE.mjs +72 -0
  154. package/dist/o11y-CzssfRHt.mjs +93 -0
  155. package/dist/{oauth-n8um6MFk.mjs → oauth-BDdhqasa.mjs} +1 -1
  156. package/dist/oauth-BNTiErBG.mjs +4 -0
  157. package/dist/oauth-clients-gknNcBdV.mjs +16 -0
  158. package/dist/oauth-scopes-BJeSanuF.mjs +4 -0
  159. package/dist/organization-CXAM41sd.mjs +71 -0
  160. package/dist/organizations-kfFFW4uO.mjs +4 -0
  161. package/dist/origin-ca-certificates-DwhYV3m_.mjs +11 -0
  162. package/dist/origin-post-quantum-encryption-DfrnptJ1.mjs +6 -0
  163. package/dist/origin-tls-client-auth-COSxTc2q.mjs +30 -0
  164. package/dist/output-Co4xdFf6.mjs +2 -0
  165. package/dist/page-rules-ByrDMDBZ.mjs +39 -0
  166. package/dist/{pages-Bn0Sg1ay.mjs → pages-DuGcBC6k.mjs} +29 -29
  167. package/dist/path-DRw6Y-nd.mjs +2 -0
  168. package/dist/pay-per-crawl-B3_Gn9Cj.mjs +38 -0
  169. package/dist/pay-per-use-49EXt75f.mjs +33 -0
  170. package/dist/pipelines-Bvgh1BQZ.mjs +44 -0
  171. package/dist/precursor-VobQf--m.mjs +4 -0
  172. package/dist/previews-DkwFHNRx.mjs +7 -0
  173. package/dist/progress-R-1tIuep.mjs +2 -0
  174. package/dist/prompt-dgLm0iFJ.mjs +4 -0
  175. package/dist/queries-EbIadtC5.mjs +9 -0
  176. package/dist/queues-C4GZ-O3f.mjs +57 -0
  177. package/dist/r2-DEuFfWBR.mjs +128 -0
  178. package/dist/{radar-CdvQL4xm.mjs → radar-CDOERVcR.mjs} +150 -150
  179. package/dist/raw-fetch-BapeoreV.mjs +2 -0
  180. package/dist/realtime-D_A9Qgly.mjs +172 -0
  181. package/dist/registrar-X1YLlnmg.mjs +43 -0
  182. package/dist/registrar-sandbox-BF3cYO3n.mjs +56 -0
  183. package/dist/{registry-PI6sO95I.mjs → registry-CRnk93ur.mjs} +1 -1
  184. package/dist/reporting-BWm9jIF8.mjs +14 -0
  185. package/dist/{request-headers-D8L95bEQ.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  186. package/dist/request-tracers-CHWpiejG.mjs +4 -0
  187. package/dist/resolve-BpgXeklt.mjs +2 -0
  188. package/dist/resolve-C3FmNlSO.mjs +2 -0
  189. package/dist/resource-sharing-C186jZv0.mjs +40 -0
  190. package/dist/resource-tagging-BTagOZli.mjs +4 -0
  191. package/dist/rules-DYnGIU_0.mjs +18 -0
  192. package/dist/rulesets-BcNrbVcq.mjs +37 -0
  193. package/dist/rum-BDyRecfp.mjs +30 -0
  194. package/dist/{run-CW2Cgi0S.mjs → run-BvDCuZ8q.mjs} +1 -1
  195. package/dist/run-roYb_Odh.mjs +2 -0
  196. package/dist/{schema-elj12WOx.mjs → schema-S3pUZwpI.mjs} +1 -1
  197. package/dist/{schema-flags-BTItUu1K.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  198. package/dist/scim-zn-CNCsc.mjs +18 -0
  199. package/dist/secrets-store-CFhyQUV6.mjs +24 -0
  200. package/dist/security-insights-D8XgtCed.mjs +40 -0
  201. package/dist/security-txt-CCM-Vro0.mjs +9 -0
  202. package/dist/session-Cq3YNLoI.mjs +2 -0
  203. package/dist/shared-ouAF7o4S.mjs +2 -0
  204. package/dist/smart-shield-DwW7N92r.mjs +24 -0
  205. package/dist/snippets-B2jBY0m_.mjs +20 -0
  206. package/dist/{spawn-D07wH-MH.mjs → spawn-DQttFH05.mjs} +1 -1
  207. package/dist/{spectrum-B6qkjR_Z.mjs → spectrum-Cf_4cGE8.mjs} +16 -16
  208. package/dist/speed-DoXdyIYK.mjs +24 -0
  209. package/dist/sql-Bze4h80q.mjs +4 -0
  210. package/dist/src-BguQDHjS.mjs +125 -0
  211. package/dist/ssl-u_0gUhPA.mjs +45 -0
  212. package/dist/{startup-profile-CrtCP-6-.mjs → startup-profile-BOaseXnO.mjs} +1 -1
  213. package/dist/startup-profile-BwEZFVGS.mjs +2 -0
  214. package/dist/{state-DIiIGEtR.mjs → state-Boubf1X6.mjs} +1 -1
  215. package/dist/state-CODDG9Nx.mjs +2 -0
  216. package/dist/stream-BcReYIHJ.mjs +102 -0
  217. package/dist/submit-ldFVNfNC.mjs +4 -0
  218. package/dist/{tags-CX23P4jg.mjs → tags-D_Hc_A-r.mjs} +2 -2
  219. package/dist/{telemetry-ZlCi5Xhc.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  220. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  221. package/dist/tenant-AZ0EAsmT.mjs +10 -0
  222. package/dist/tenant-custom-nameservers-aozjaasc.mjs +9 -0
  223. package/dist/theme-BGHWSKCw.mjs +6 -0
  224. package/dist/{tools-CSc5DmFi.mjs → tools-BCCRUENY.mjs} +1 -1
  225. package/dist/tunnels-CXez5LPB.mjs +29 -0
  226. package/dist/turnstile-B2NQ8Nsk.mjs +33 -0
  227. package/dist/ui-BtIBQeaG.mjs +2 -0
  228. package/dist/{update-check-HFkPml6x.mjs → update-check-BlyKN8m0.mjs} +1 -1
  229. package/dist/update-check-BnGDxswi.mjs +2 -0
  230. package/dist/update-check-worker.mjs +1 -1
  231. package/dist/url-info-D_UqGiWD.mjs +4 -0
  232. package/dist/url-normalization-CF1YHpIN.mjs +9 -0
  233. package/dist/url-scanner-ChF3GO2U.mjs +16 -0
  234. package/dist/{user-rXca0J9M.mjs → user-BfWRsdJh.mjs} +58 -58
  235. package/dist/values-CLfxkAUJ.mjs +4 -0
  236. package/dist/vectorize-CRYbWKg5.mjs +32 -0
  237. package/dist/version-CVlh2Zaq.mjs +2 -0
  238. package/dist/{waiting-rooms-DrA3-0bw.mjs → waiting-rooms-Crp7MVd9.mjs} +25 -25
  239. package/dist/web-assets-CgyrPnT-.mjs +64 -0
  240. package/dist/web3-Cd0Yd0eQ.mjs +28 -0
  241. package/dist/workers-CTwJpTfJ.mjs +40 -0
  242. package/dist/workers-builds-f2nVw7EZ.mjs +14 -0
  243. package/dist/workers-for-platforms-DjeKp2uy.mjs +40 -0
  244. package/dist/workers-vpc-B_L3TEg2.mjs +13 -0
  245. package/dist/workflows-CBPGf65x.mjs +52 -0
  246. package/dist/{wrangler-migration-C6FKHER1.mjs → wrangler-migration-DxTB5yPT.mjs} +1 -1
  247. package/dist/zaraz-3VDxl0gF.mjs +22 -0
  248. package/dist/zero-trust-B9xY8zcn.mjs +957 -0
  249. package/dist/zone-CmwVqTI2.mjs +4 -0
  250. package/dist/zones-Bf0VVpMf.mjs +124 -0
  251. package/package.json +17 -19
  252. package/dist/Page-BShsqCXr.mjs +0 -2
  253. package/dist/abuse-reports-CVv52Q2w.mjs +0 -24
  254. package/dist/account-tags-RhvWOkOf.mjs +0 -15
  255. package/dist/accounts--3lrEkmu.mjs +0 -125
  256. package/dist/acm-BJxINEcu.mjs +0 -15
  257. package/dist/addressing-BqByG9JW.mjs +0 -105
  258. package/dist/agent-memory-D4dQMGbh.mjs +0 -34
  259. package/dist/ai-CRkQ4pjC.mjs +0 -31
  260. package/dist/ai-audit-fMSn4c5L.mjs +0 -6
  261. package/dist/ai-gateway-CbhvQK4L.mjs +0 -80
  262. package/dist/ai-search-CvVSnOA0.mjs +0 -79
  263. package/dist/ai-security-Z_qpI92I.mjs +0 -10
  264. package/dist/alerting-CpbCB8br.mjs +0 -56
  265. package/dist/alerts-BSON-vFh.mjs +0 -2
  266. package/dist/analytics-DkY9dOP1.mjs +0 -17
  267. package/dist/analytics_engine-DE_jvlx_.mjs +0 -4
  268. package/dist/api-security-BHnOU5MM.mjs +0 -154
  269. package/dist/argo-DhC5L_aN.mjs +0 -14
  270. package/dist/args-CfbYkeXd.mjs +0 -2
  271. package/dist/artifacts-CrIupY7P.mjs +0 -43
  272. package/dist/audit-logs-BjeBxTox.mjs +0 -4
  273. package/dist/auth-BNYfOMl0.mjs +0 -2
  274. package/dist/auth-CAWalgW0.mjs +0 -2
  275. package/dist/auth-DOwC01PW.mjs +0 -2
  276. package/dist/autorag-kNrLiqDX.mjs +0 -2
  277. package/dist/banner-D03JEqRs.mjs +0 -2
  278. package/dist/basin-catalog-DZ7QV-_N.mjs +0 -46
  279. package/dist/billing-BFyte9fL.mjs +0 -23
  280. package/dist/bot-management-DXcbV3am.mjs +0 -9
  281. package/dist/botnet-feed-bGGp_cwX.mjs +0 -11
  282. package/dist/brand-protection-DN36XkxH.mjs +0 -27
  283. package/dist/brands-bBJgbbOH.mjs +0 -2
  284. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  285. package/dist/browser-run-hHD1RT43.mjs +0 -42
  286. package/dist/build-BhpWYgNm.mjs +0 -2
  287. package/dist/builds-6aO61R9R.mjs +0 -71
  288. package/dist/cache-C5YJpMqi.mjs +0 -45
  289. package/dist/certificate-authorities-CbqDAktQ.mjs +0 -6
  290. package/dist/cf-oRSQKirD.mjs +0 -18
  291. package/dist/chunk-NDZDTP46-Civns3WA.mjs +0 -361
  292. package/dist/clear-BW9vLgI3.mjs +0 -2
  293. package/dist/cli-types-9oYmRTHJ.mjs +0 -2
  294. package/dist/client-certificates-balaN_my.mjs +0 -13
  295. package/dist/client-side-security-3_4Ermmg.mjs +0 -63
  296. package/dist/cloud-connector-avx27sLw.mjs +0 -6
  297. package/dist/cloudforce-one-CXdeqJ9l.mjs +0 -405
  298. package/dist/command-DPX9sJVi.mjs +0 -2
  299. package/dist/command-OWe3v69l.mjs +0 -2
  300. package/dist/connector-interrupts-ftd10Du-.mjs +0 -6
  301. package/dist/connector-telemetry-events-TwDZYdEM.mjs +0 -6
  302. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  303. package/dist/connector-telemetry-snapshots-CZxkOuC3.mjs +0 -6
  304. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  305. package/dist/connectors-6lVSr-fd.mjs +0 -15
  306. package/dist/containers-Dqs_ZnO2.mjs +0 -78
  307. package/dist/containers-ncw3bd3a.mjs +0 -376
  308. package/dist/content-scan-BWFbqfQ0.mjs +0 -14
  309. package/dist/csamScanner-BwZNZu0A.mjs +0 -10
  310. package/dist/ct-alerting-DPp3qLqO.mjs +0 -5
  311. package/dist/custom-certificates-pfpZcr06.mjs +0 -17
  312. package/dist/custom-csrs-DrvGRAkl.mjs +0 -11
  313. package/dist/custom-hostnames-wGtmFbz1.mjs +0 -27
  314. package/dist/custom-nameservers-HTG6MPKv.mjs +0 -9
  315. package/dist/custom-pages-DqEHBSVt.mjs +0 -21
  316. package/dist/dcv-delegation-D6nj0Z5N.mjs +0 -4
  317. package/dist/deploy-context-DmG9rgPO.mjs +0 -56
  318. package/dist/diagnostics-tqHjq-Pl.mjs +0 -15
  319. package/dist/dls-BEHj4X9T.mjs +0 -17
  320. package/dist/dns-firewall-zwbkutyf.mjs +0 -71
  321. package/dist/dns-n4mfYBZg.mjs +0 -144
  322. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  323. package/dist/durable-objects-CQ2dHhho.mjs +0 -6
  324. package/dist/email-auth-DOi6yOt3.mjs +0 -6
  325. package/dist/email-routing-WcSPt22u.mjs +0 -45
  326. package/dist/email-security-BXu3OGay.mjs +0 -158
  327. package/dist/email-sending-B9zTlIjt.mjs +0 -47
  328. package/dist/error-sanitization-DE_zSrXw.mjs +0 -2
  329. package/dist/error-sanitization-DOCQ9Ykh.mjs +0 -2
  330. package/dist/errors-_sob7Ihu.mjs +0 -3
  331. package/dist/fieldExtractors-B37m2lKW.mjs +0 -9
  332. package/dist/firewall-CRtYO0Ha.mjs +0 -36
  333. package/dist/flagship-DvTFZSay.mjs +0 -28
  334. package/dist/fraud-uSyibsit.mjs +0 -22
  335. package/dist/google-tag-gateway-BFXiiokq.mjs +0 -6
  336. package/dist/health-CTaCeVyC.mjs +0 -2
  337. package/dist/healthchecks-27u7b7Jb.mjs +0 -22
  338. package/dist/hyperdrive-BzJvPdu6.mjs +0 -37
  339. package/dist/iam-Dl3cU9GI.mjs +0 -52
  340. package/dist/images-C2OkI1j7.mjs +0 -71
  341. package/dist/intel-DoB1g_K7.mjs +0 -76
  342. package/dist/internal-BYS7hO8c.mjs +0 -2
  343. package/dist/ips-BRt68epr.mjs +0 -4
  344. package/dist/k2-_eq5ZY2t.mjs +0 -11
  345. package/dist/keyless-certificates-DaO2yqYu.mjs +0 -13
  346. package/dist/keys-7BQ3Zq6Y.mjs +0 -4
  347. package/dist/kv-BTYCXKML.mjs +0 -15
  348. package/dist/leaked-credential-checks-CPHOK_dE.mjs +0 -18
  349. package/dist/live-BJE_YWE1.mjs +0 -2
  350. package/dist/local-BundUuDT.mjs +0 -2
  351. package/dist/login-BBYC_BtH.mjs +0 -2
  352. package/dist/login-D2uoWhWh.mjs +0 -5
  353. package/dist/logo-matches-Bc1DQ4-g.mjs +0 -6
  354. package/dist/logos-X5B8z7Iv.mjs +0 -7
  355. package/dist/logpush-C2ENi1et.mjs +0 -46
  356. package/dist/logs-BKDz7kBW.mjs +0 -36
  357. package/dist/magic-cloud-networking-B60Gld8A.mjs +0 -71
  358. package/dist/magic-network-monitoring-CxXI3Y-H.mjs +0 -36
  359. package/dist/magic-transit-ZCSaCbl8.mjs +0 -386
  360. package/dist/managed-defense-DrxMb7xi.mjs +0 -18
  361. package/dist/managed-transforms-AI7KrRU1.mjs +0 -9
  362. package/dist/matches-rPMLS3Ip.mjs +0 -6
  363. package/dist/mcp-DXUMvEWt.mjs +0 -32
  364. package/dist/mesh-MmBCQ37q.mjs +0 -26
  365. package/dist/monetization-DQE5VtUO.mjs +0 -20
  366. package/dist/mtls-certificates-DwkEb-Hy.mjs +0 -13
  367. package/dist/network-BcfobxQY.mjs +0 -50
  368. package/dist/network-interconnects-BU3tN_Ab.mjs +0 -72
  369. package/dist/o11y-BBv7nedp.mjs +0 -93
  370. package/dist/oauth-BUr8bPwo.mjs +0 -9
  371. package/dist/oauth-clients-qWVImhHE.mjs +0 -16
  372. package/dist/oauth-scopes-CdeIgJIx.mjs +0 -4
  373. package/dist/organization-CJeOVWH7.mjs +0 -71
  374. package/dist/organizations-BpfoqZcG.mjs +0 -4
  375. package/dist/origin-ca-certificates-Bimf07RF.mjs +0 -11
  376. package/dist/origin-post-quantum-encryption-CM-If38w.mjs +0 -6
  377. package/dist/origin-tls-client-auth-BPwYPhc9.mjs +0 -30
  378. package/dist/output-BOe-3AQG.mjs +0 -2
  379. package/dist/page-rules-DOeekMrj.mjs +0 -39
  380. package/dist/pay-per-crawl-qJpseNNx.mjs +0 -38
  381. package/dist/pay-per-use-C1MWKJ4O.mjs +0 -33
  382. package/dist/pipelines-rCwXQw6S.mjs +0 -44
  383. package/dist/precursor-Bk8Pp6jT.mjs +0 -4
  384. package/dist/previews-BEheHO3T.mjs +0 -4
  385. package/dist/progress-CQqDtgmF.mjs +0 -2
  386. package/dist/prompt-C8FyienX.mjs +0 -3
  387. package/dist/queries-DJ8looyq.mjs +0 -9
  388. package/dist/queues-BBH9Q-Tt.mjs +0 -57
  389. package/dist/r2-CdJKpP2w.mjs +0 -128
  390. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  391. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  392. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  393. package/dist/raw-fetch-DbXN3SlE.mjs +0 -2
  394. package/dist/ready-B3pLxnjc.mjs +0 -2
  395. package/dist/realtime-onrXppzh.mjs +0 -172
  396. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  397. package/dist/refute-Dp3VodMn.mjs +0 -2
  398. package/dist/registrar-CbEBc5IE.mjs +0 -43
  399. package/dist/registrar-sandbox-BJhn1HFT.mjs +0 -56
  400. package/dist/reporting-bXZY6obP.mjs +0 -14
  401. package/dist/request-tracers-CihskC2A.mjs +0 -4
  402. package/dist/resolve-CaTBV-c6.mjs +0 -2
  403. package/dist/resolve-DCGSzUDQ.mjs +0 -2
  404. package/dist/resource-sharing-DDqcCHVs.mjs +0 -40
  405. package/dist/resource-tagging-D63RpBce.mjs +0 -4
  406. package/dist/rules-CAW0-Wde.mjs +0 -18
  407. package/dist/rulesets-CPir63Qc.mjs +0 -37
  408. package/dist/rum-BfwTcuup.mjs +0 -30
  409. package/dist/run-DEynXvCc.mjs +0 -2
  410. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  411. package/dist/scan-page-CxeudOzj.mjs +0 -2
  412. package/dist/scim-CtZ1FeQE.mjs +0 -18
  413. package/dist/search-B_P5ZTQj.mjs +0 -2
  414. package/dist/secrets-store-BIuBYUJT.mjs +0 -24
  415. package/dist/security-insights-DfUus0bs.mjs +0 -40
  416. package/dist/security-txt-CgZOsAIZ.mjs +0 -9
  417. package/dist/session-BcM8Vyyx.mjs +0 -2
  418. package/dist/shared-CpS23WwR.mjs +0 -2
  419. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  420. package/dist/smart-shield-ClgB7r-9.mjs +0 -24
  421. package/dist/snippets-DLO3iFAg.mjs +0 -20
  422. package/dist/speed-DX5X2EIR.mjs +0 -24
  423. package/dist/sql-CF044HDW.mjs +0 -4
  424. package/dist/src-BMATTZU_.mjs +0 -125
  425. package/dist/ssl-CM-rChEC.mjs +0 -45
  426. package/dist/startup-profile-D662WI9s.mjs +0 -2
  427. package/dist/state-D7uNYnoi.mjs +0 -2
  428. package/dist/stream-5EmUOQvy.mjs +0 -102
  429. package/dist/submission-info-_t78q2OE.mjs +0 -2
  430. package/dist/submit-lEAaRSMR.mjs +0 -4
  431. package/dist/telemetry-0Y5hAtCX.mjs +0 -2
  432. package/dist/tenant-DnI7QziH.mjs +0 -10
  433. package/dist/tenant-custom-nameservers-MR0dlcGm.mjs +0 -9
  434. package/dist/theme-CQ_TYifs.mjs +0 -6
  435. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  436. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  437. package/dist/tunnels-NzYpsfi_.mjs +0 -29
  438. package/dist/turnstile-M7sKCEz3.mjs +0 -33
  439. package/dist/ui-YmjF66Ct.mjs +0 -5
  440. package/dist/update-check-aTutXNRd.mjs +0 -2
  441. package/dist/url-info-Dos9VOXV.mjs +0 -4
  442. package/dist/url-normalization-CZbFOq_v.mjs +0 -9
  443. package/dist/url-scanner-B7quLPGW.mjs +0 -16
  444. package/dist/values-D-rrZrDa.mjs +0 -4
  445. package/dist/vectorize-D2tf_oA8.mjs +0 -32
  446. package/dist/verify-5KcvRk-q.mjs +0 -2
  447. package/dist/version-BGnqDvNR.mjs +0 -2
  448. package/dist/web-assets-DQAfvPT9.mjs +0 -64
  449. package/dist/web3-MI0GQDnu.mjs +0 -28
  450. package/dist/workers-By6Pf8fv.mjs +0 -40
  451. package/dist/workers-builds-6YsWsCmC.mjs +0 -14
  452. package/dist/workers-for-platforms-DL8fC1qR.mjs +0 -40
  453. package/dist/workers-vpc-BYx6sbgd.mjs +0 -13
  454. package/dist/workflows-ByQLnV0E.mjs +0 -52
  455. package/dist/zaraz-CgbpmA85.mjs +0 -22
  456. package/dist/zero-trust-CpjTkkWt.mjs +0 -837
  457. package/dist/zone-DnKIe6po.mjs +0 -4
  458. package/dist/zones--5ZzsDmQ.mjs +0 -124
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
- import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o,r as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-C8FyienX.mjs";function f(e){return e.usage(`$0 smart-shield cache-reserve-clear clear
3
-
4
- You can use Cache Reserve Clear to clear your Cache Reserve, but you must first disable Cache Reserve. In most cases, this will be accomplished within 24 hours. You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind that you cannot undo or cancel this operation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const p={command:`clear`,describe:`Start Cache Reserve Clear`,builder:f,handler:async o=>a({command:`smart-shield cache-reserve-clear clear`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield cache-reserve-clear clear`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/cache_reserve_clear`,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});if(o.zoneId=s,!await d({force:!!o.force,message:`This operation permanently clears Cache Reserve for this zone and cannot be undone.`})){process.stderr.write(`Aborted.
5
- `);return}let c=await i(`Deleting`,async()=>a.smartShield.cacheReserveClear.clear({zone_id:s}));n(c,{successLabel:`Deleted`})})};function m(e){return e.usage(`$0 smart-shield cache-reserve-clear status
6
-
7
- You can use Cache Reserve Clear to clear your Cache Reserve, but you must first disable Cache Reserve. In most cases, this will be accomplished within 24 hours. You cannot re-enable Cache Reserve while this process is ongoing. Keep in mind that you cannot undo or cancel this operation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`status`,describe:`Get Cache Reserve Clear`,builder:m,handler:async o=>a({command:`smart-shield cache-reserve-clear status`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield cache-reserve-clear status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/cache_reserve_clear`,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.smartShield.cacheReserveClear.status({zone_id:s}));n(c,{successLabel:`Loaded`})})},g={command:`cache-reserve-clear`,describe:`Cache Reserve Clear operations`,builder:e=>e.command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 smart-shield get
8
-
9
- Retrieve Smart Shield Settings.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Get Smart Shield Settings`,builder:_,handler:async o=>a({command:`smart-shield get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield`,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.smartShield.get({zone_id:s}));n(c,{successLabel:`Loaded`})})};function y(e){return e.usage(`$0 smart-shield health-checks create
10
-
11
- Create a new health check.`).option(`address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`,default:1}).option(`consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`,default:1}).option(`description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).coerce(`http-config-method`,e=>l(e,`http-config-method`,`text`)).option(`http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`,default:60}).option(`name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`,default:2}).option(`suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`,default:!1}).option(`tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).coerce(`tcp-config-method`,e=>l(e,`tcp-config-method`,`text`)).option(`tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`,default:5}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`,default:`HTTP`}).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 b={command:`create`,describe:`Create Health Check`,builder:y,handler:async s=>a({command:`smart-shield health-checks create`,classification:{safeFlags:[`http-config-allow-insecure`,`http-config-follow-redirects`,`http-config-method`,`suspended`,`tcp-config-method`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf smart-shield health-checks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/smart_shield/healthchecks`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({address:l(s.address,`address`,`text`),check_regions:s[`check-regions`],consecutive_fails:s[`consecutive-fails`],consecutive_successes:s[`consecutive-successes`],description:l(s.description,`description`,`text`),http_config:{allow_insecure:s[`http-config-allow-insecure`],expected_body:l(s[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:s[`http-config-expected-codes`],follow_redirects:s[`http-config-follow-redirects`],method:s[`http-config-method`],path:l(s[`http-config-path`],`http-config-path`,`text`),port:s[`http-config-port`]},interval:s.interval,name:l(s.name,`name`,`text`),retries:s.retries,suspended:s.suspended,tcp_config:{method:s[`tcp-config-method`],port:s[`tcp-config-port`]},timeout:s.timeout,type:l(s.type,`type`,`text`)}):o(s.body)});return}let a=await e(s),d=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body),t=await i(`Creating`,async()=>a.smartShield.healthChecks.create({body:e,zone_id:d}));n(t,{successLabel:`Created`});return}s.address===void 0&&(s.address=await u(`address`,`The hostname or IP address of the origin server to run health checks on.`)),s.name===void 0&&(s.name=await u(`name`,`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`));let f=c({address:l(s.address,`address`,`text`),check_regions:s[`check-regions`],consecutive_fails:s[`consecutive-fails`],consecutive_successes:s[`consecutive-successes`],description:l(s.description,`description`,`text`),http_config:{allow_insecure:s[`http-config-allow-insecure`],expected_body:l(s[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:s[`http-config-expected-codes`],follow_redirects:s[`http-config-follow-redirects`],method:s[`http-config-method`],path:l(s[`http-config-path`],`http-config-path`,`text`),port:s[`http-config-port`]},interval:s.interval,name:l(s.name,`name`,`text`),retries:s.retries,suspended:s.suspended,tcp_config:{method:s[`tcp-config-method`],port:s[`tcp-config-port`]},timeout:s.timeout,type:l(s.type,`type`,`text`)}),p=await i(`Creating`,async()=>a.smartShield.healthChecks.create({body:f,zone_id:d}));n(p,{successLabel:`Created`})})};function x(e){return e.usage(`$0 smart-shield health-checks delete <healthcheck-id>
12
-
13
- Delete a health check.`).positional(`healthcheck-id`,{type:`string`,description:`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 S={command:`delete <healthcheck-id>`,describe:`Delete Health Check`,builder:x,handler:async o=>a({command:`smart-shield health-checks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield health-checks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/healthchecks/${o[`healthcheck-id`]==null?`<healthcheck-id>`:encodeURIComponent(String(o[`healthcheck-id`]))}`,pathParams:{"healthcheck-id":String(o[`healthcheck-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 d({force:!!o.force})){process.stderr.write(`Aborted.
14
- `);return}let c=await i(`Deleting`,async()=>a.smartShield.healthChecks.delete({zone_id:s,healthcheck_id:o[`healthcheck-id`]}));n(c,{successLabel:`Deleted`})})};function C(e){return e.usage(`$0 smart-shield health-checks edit <healthcheck-id>
15
-
16
- Patch a configured health check.`).positional(`healthcheck-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`}).option(`consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`}).option(`description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).coerce(`http-config-method`,e=>l(e,`http-config-method`,`text`)).option(`http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`}).option(`name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`}).option(`suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`}).option(`tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).coerce(`tcp-config-method`,e=>l(e,`tcp-config-method`,`text`)).option(`tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`edit <healthcheck-id>`,describe:`Patch Health Check`,builder:C,handler:async s=>a({command:`smart-shield health-checks edit`,classification:{safeFlags:[`http-config-allow-insecure`,`http-config-follow-redirects`,`http-config-method`,`suspended`,`tcp-config-method`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf smart-shield health-checks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/smart_shield/healthchecks/${s[`healthcheck-id`]==null?`<healthcheck-id>`:encodeURIComponent(String(s[`healthcheck-id`]))}`,pathParams:{"healthcheck-id":String(s[`healthcheck-id`]??``),"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({address:l(s.address,`address`,`text`),check_regions:s[`check-regions`],consecutive_fails:s[`consecutive-fails`],consecutive_successes:s[`consecutive-successes`],description:l(s.description,`description`,`text`),http_config:{allow_insecure:s[`http-config-allow-insecure`],expected_body:l(s[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:s[`http-config-expected-codes`],follow_redirects:s[`http-config-follow-redirects`],method:s[`http-config-method`],path:l(s[`http-config-path`],`http-config-path`,`text`),port:s[`http-config-port`]},interval:s.interval,name:l(s.name,`name`,`text`),retries:s.retries,suspended:s.suspended,tcp_config:{method:s[`tcp-config-method`],port:s[`tcp-config-port`]},timeout:s.timeout,type:l(s.type,`type`,`text`)}):o(s.body)});return}let a=await e(s),d=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.smartShield.healthChecks.edit({body:e,zone_id:d,healthcheck_id:s[`healthcheck-id`]}));n(t,{successLabel:`Updated`});return}s.address===void 0&&(s.address=await u(`address`,`The hostname or IP address of the origin server to run health checks on.`)),s.name===void 0&&(s.name=await u(`name`,`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`));let f=c({address:l(s.address,`address`,`text`),check_regions:s[`check-regions`],consecutive_fails:s[`consecutive-fails`],consecutive_successes:s[`consecutive-successes`],description:l(s.description,`description`,`text`),http_config:{allow_insecure:s[`http-config-allow-insecure`],expected_body:l(s[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:s[`http-config-expected-codes`],follow_redirects:s[`http-config-follow-redirects`],method:s[`http-config-method`],path:l(s[`http-config-path`],`http-config-path`,`text`),port:s[`http-config-port`]},interval:s.interval,name:l(s.name,`name`,`text`),retries:s.retries,suspended:s.suspended,tcp_config:{method:s[`tcp-config-method`],port:s[`tcp-config-port`]},timeout:s.timeout,type:l(s.type,`type`,`text`)}),p=await i(`Updating`,async()=>a.smartShield.healthChecks.edit({body:f,zone_id:d,healthcheck_id:s[`healthcheck-id`]}));n(p,{successLabel:`Updated`})})};function T(e){return e.usage(`$0 smart-shield health-checks get <healthcheck-id>
17
-
18
- Fetch a single configured health check.`).positional(`healthcheck-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`get <healthcheck-id>`,describe:`Health Check Details`,builder:T,handler:async o=>a({command:`smart-shield health-checks get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf smart-shield health-checks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/healthchecks/${o[`healthcheck-id`]==null?`<healthcheck-id>`:encodeURIComponent(String(o[`healthcheck-id`]))}`,pathParams:{"healthcheck-id":String(o[`healthcheck-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.smartShield.healthChecks.get({zone_id:s,healthcheck_id:o[`healthcheck-id`]}));n(c,{successLabel:`Loaded`})})};function D(e){return e.usage(`$0 smart-shield health-checks list
19
-
20
- List configured health checks.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page. Must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List Health Checks`,builder:D,handler:async o=>a({command:`smart-shield health-checks list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`]};if(o.dryRun){r({command:`cf smart-shield health-checks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/smart_shield/healthchecks`,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.smartShield.healthChecks.list({zone_id:c,...a}));n(l,{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 smart-shield health-checks update <healthcheck-id>
21
-
22
- Update a configured health check.`).positional(`healthcheck-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`errors`,{type:`string`,description:`The errors field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`result-address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`result-check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`result-consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`}).option(`result-consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`}).option(`result-description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`result-http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`result-http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`result-http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`result-http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`result-http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).coerce(`result-http-config-method`,e=>l(e,`result-http-config-method`,`text`)).option(`result-http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`result-http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`result-interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`}).option(`result-name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`result-retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`}).option(`result-suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`}).option(`result-tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).coerce(`result-tcp-config-method`,e=>l(e,`result-tcp-config-method`,`text`)).option(`result-tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`result-timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`}).option(`result-type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`}).option(`success`,{type:`boolean`,description:`Whether the API call was successful.`}).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 A={command:`update <healthcheck-id>`,describe:`Update Health Check`,builder:k,handler:async u=>a({command:`smart-shield health-checks update`,classification:{safeFlags:[`result-http-config-allow-insecure`,`result-http-config-follow-redirects`,`result-http-config-method`,`result-suspended`,`result-tcp-config-method`,`success`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf smart-shield health-checks update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/smart_shield/healthchecks/${u[`healthcheck-id`]==null?`<healthcheck-id>`:encodeURIComponent(String(u[`healthcheck-id`]))}`,pathParams:{"healthcheck-id":String(u[`healthcheck-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({errors:s(u.errors,`errors`),messages:s(u.messages,`messages`),result:{address:l(u[`result-address`],`result-address`,`text`),check_regions:u[`result-check-regions`],consecutive_fails:u[`result-consecutive-fails`],consecutive_successes:u[`result-consecutive-successes`],description:l(u[`result-description`],`result-description`,`text`),http_config:{allow_insecure:u[`result-http-config-allow-insecure`],expected_body:l(u[`result-http-config-expected-body`],`result-http-config-expected-body`,`text`),expected_codes:u[`result-http-config-expected-codes`],follow_redirects:u[`result-http-config-follow-redirects`],method:u[`result-http-config-method`],path:l(u[`result-http-config-path`],`result-http-config-path`,`text`),port:u[`result-http-config-port`]},interval:u[`result-interval`],name:l(u[`result-name`],`result-name`,`text`),retries:u[`result-retries`],suspended:u[`result-suspended`],tcp_config:{method:u[`result-tcp-config-method`],port:u[`result-tcp-config-port`]},timeout:u[`result-timeout`],type:l(u[`result-type`],`result-type`,`text`)},success:u.success}):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.smartShield.healthChecks.update({...e,zone_id:d,healthcheck_id:u[`healthcheck-id`]}));n(t,{successLabel:`Updated`});return}if(u.errors===void 0)throw Error(`--errors is required (or pass --body with this field set).`);if(u.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);if(u.success===void 0)throw Error(`--success is required (or pass --body with this field set).`);let f=c({errors:s(u.errors,`errors`),messages:s(u.messages,`messages`),result:{address:l(u[`result-address`],`result-address`,`text`),check_regions:u[`result-check-regions`],consecutive_fails:u[`result-consecutive-fails`],consecutive_successes:u[`result-consecutive-successes`],description:l(u[`result-description`],`result-description`,`text`),http_config:{allow_insecure:u[`result-http-config-allow-insecure`],expected_body:l(u[`result-http-config-expected-body`],`result-http-config-expected-body`,`text`),expected_codes:u[`result-http-config-expected-codes`],follow_redirects:u[`result-http-config-follow-redirects`],method:u[`result-http-config-method`],path:l(u[`result-http-config-path`],`result-http-config-path`,`text`),port:u[`result-http-config-port`]},interval:u[`result-interval`],name:l(u[`result-name`],`result-name`,`text`),retries:u[`result-retries`],suspended:u[`result-suspended`],tcp_config:{method:u[`result-tcp-config-method`],port:u[`result-tcp-config-port`]},timeout:u[`result-timeout`],type:l(u[`result-type`],`result-type`,`text`)},success:u.success}),p=await i(`Updating`,async()=>a.smartShield.healthChecks.update({...f,zone_id:d,healthcheck_id:u[`healthcheck-id`]}));n(p,{successLabel:`Updated`})})},j={command:`health-checks`,describe:`Health checks operations`,builder:e=>e.command(b).command(S).command(w).command(E).command(O).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 smart-shield update
23
-
24
- Set Smart Shield Settings.`).option(`cache-reserve-value`,{type:`string`,description:`Specifies the enablement value of Cache Reserve.`,choices:[`on`,`off`]}).coerce(`cache-reserve-value`,e=>l(e,`cache-reserve-value`,`text`)).option(`regional-tiered-cache-value`,{type:`string`,description:`Specifies the enablement value of Regional Tiered Cache.`,choices:[`on`,`off`]}).coerce(`regional-tiered-cache-value`,e=>l(e,`regional-tiered-cache-value`,`text`)).option(`smart-routing-value`,{type:`string`,description:`Specifies the enablement value of Smart Routing.`,choices:[`on`,`off`]}).coerce(`smart-routing-value`,e=>l(e,`smart-routing-value`,`text`)).option(`smart-tiered-cache-value`,{type:`string`,description:`Specifies the enablement value of Smart Tiered Cache.`,choices:[`on`,`off`]}).coerce(`smart-tiered-cache-value`,e=>l(e,`smart-tiered-cache-value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`The patch body for Smart Shield.`})}const N={command:`update`,describe:`Patch Smart Shield Settings`,builder:M,handler:async s=>a({command:`smart-shield update`,classification:{safeFlags:[`cache-reserve-value`,`regional-tiered-cache-value`,`smart-routing-value`,`smart-tiered-cache-value`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf smart-shield update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/smart_shield`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({cache_reserve:{value:s[`cache-reserve-value`]},regional_tiered_cache:{value:s[`regional-tiered-cache-value`]},smart_routing:{value:s[`smart-routing-value`]},smart_tiered_cache:{value:s[`smart-tiered-cache-value`]}}):o(s.body)});return}let a=await e(s),l=await t({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=l,s.body){let e=o(s.body),t=await i(`Updating`,async()=>a.smartShield.update({...e,zone_id:l}));n(t,{successLabel:`Updated`});return}let u=c({cache_reserve:{value:s[`cache-reserve-value`]},regional_tiered_cache:{value:s[`regional-tiered-cache-value`]},smart_routing:{value:s[`smart-routing-value`]},smart_tiered_cache:{value:s[`smart-tiered-cache-value`]}}),d=await i(`Updating`,async()=>a.smartShield.update({...u,zone_id:l}));n(d,{successLabel:`Updated`})})},P={command:`smart-shield`,describe:`Smart Shield settings, health checks, and cache reserve management`,builder:e=>e.command(v).command(N).command(g).command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{P as default};
@@ -1,20 +0,0 @@
1
- #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-CAWalgW0.mjs";import{i as n}from"./context-BBLtgdR1.mjs";import{t as r}from"./output-BOe-3AQG.mjs";import{t as i}from"./dry-run-DRj2_uV3.mjs";import{t as a}from"./progress-CQqDtgmF.mjs";import{t as o}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as s,r as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";import{n as f}from"./prompt-C8FyienX.mjs";import{n as p,t as m}from"./raw-fetch-DbXN3SlE.mjs";function h(e){return e.usage(`$0 snippets content get <snippet-name>
3
-
4
- Fetches the content of a snippet belonging to the zone.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const g={command:`get <snippet-name>`,describe:`Get a zone snippet content`,builder:h,handler:async e=>o({command:`snippets content get`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{if(e.dryRun){i({command:`cf snippets content get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/${e[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(e[`snippet-name`]))}/content`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"snippet-name":String(e[`snippet-name`]??``)},bodyKind:`none`});return}let r=await t(e);e.zoneId=await n({zone:e.zone},r,{quiet:e.quiet});let o=await a(`Loading`,async()=>m(`/zones/${e.zoneId}/snippets/${encodeURIComponent(String(e[`snippet-name`]))}/content`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));p(e.text===!0?o.toString(`utf-8`):o)})},_={command:`content`,describe:`Operations for content`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 snippets delete <snippet-name>
5
-
6
- Deletes a snippet belonging to the zone. Returns a 4XX response if the zone or snippet no longer exists.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,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 y={command:`delete <snippet-name>`,describe:`Delete a zone snippet`,builder:v,handler:async e=>o({command:`snippets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf snippets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/${e[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(e[`snippet-name`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"snippet-name":String(e[`snippet-name`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await f({force:!!e.force})){process.stderr.write(`Aborted.
7
- `);return}let c=await a(`Deleting`,async()=>o.snippets.delete({zone_id:s,snippet_name:e[`snippet-name`]}));r(c,{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 snippets get <snippet-name>
8
-
9
- Fetches a snippet belonging to the zone.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <snippet-name>`,describe:`Get a zone snippet`,builder:b,handler:async e=>o({command:`snippets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf snippets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/${e[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(e[`snippet-name`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"snippet-name":String(e[`snippet-name`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.snippets.get({zone_id:s,snippet_name:e[`snippet-name`]}));r(c,{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 snippets list
10
-
11
- Fetches all snippets belonging to the zone.`).option(`page`,{type:`number`,description:`Specifies the current page number.`}).option(`per-page`,{type:`number`,description:`Specifies how many results to return per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List zone snippets`,builder:S,handler:async e=>o({command:`snippets list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`]};if(e.dryRun){i({command:`cf snippets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.snippets.list({zone_id:c,...o}));r(l,{successLabel:`Loaded`})})};function w(e){return e.usage(`$0 snippets rules delete
12
-
13
- Deletes all snippet rules belonging to the zone.`).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 T={command:`delete`,describe:`Delete zone snippet rules`,builder:w,handler:async e=>o({command:`snippets rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf snippets rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/snippet_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await f({force:!!e.force})){process.stderr.write(`Aborted.
14
- `);return}let c=await a(`Deleting`,async()=>o.snippets.rules.delete({zone_id:s}));r(c,{successLabel:`Deleted`})})};function E(e){return e.usage(`$0 snippets rules list
15
-
16
- Fetches all snippet rules belonging to the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`list`,describe:`List zone snippet rules`,builder:E,handler:async e=>o({command:`snippets rules list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf snippets rules list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/snippet_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.snippets.rules.list({zone_id:s}));r(c,{successLabel:`Loaded`})})};function O(e){return e.usage(`$0 snippets rules update
17
-
18
- Updates all snippet rules belonging to the zone.`).option(`rules`,{type:`string`,description:`Lists snippet rules. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Define a snippet rules object.`})}const k={command:`update`,describe:`Update zone snippet rules`,builder:O,handler:async e=>o({command:`snippets rules update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf snippets rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/snippets/snippet_rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({rules:c(e.rules,`rules`)}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.snippets.rules.update({...t,zone_id:u}));r(n,{successLabel:`Updated`});return}if(e.rules===void 0)throw Error(`--rules is required (or pass --body with this field set).`);let d=l({rules:c(e.rules,`rules`)}),f=await a(`Updating`,async()=>o.snippets.rules.update({...d,zone_id:u}));r(f,{successLabel:`Updated`})})},A={command:`rules`,describe:`Operations for rules`,builder:e=>e.command(T).command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function j(e){return e.usage(`$0 snippets update <snippet-name>
19
-
20
- Creates or updates a snippet belonging to the zone.`).positional(`snippet-name`,{type:`string`,description:`Identify the snippet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Define a snippet object.`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`metadata`,{type:`string`,description:`Provide metadata about the snippet.`})}const M={command:`update <snippet-name>`,describe:`Update a zone snippet`,builder:j,handler:async s=>o({command:`snippets update`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){i({command:`cf snippets update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/snippets/${s[`snippet-name`]==null?`<snippet-name>`:encodeURIComponent(String(s[`snippet-name`]))}`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``),"snippet-name":String(s[`snippet-name`]??``)},bodyKind:`multipart`,body:{body:s.body,file:s.file,metadata:s.metadata}});return}let o=await t(s);if(s.zoneId=await n({zone:s.zone},o,{quiet:s.quiet}),s.file!==void 0||s.body!==void 0||s.metadata!==void 0){let t=new FormData;if(s.file){let e=d(s.file);t.append(`file`,new Blob([e]),s.file.split(/[\\/]/).filter(Boolean).pop())}else s.body!==void 0&&t.append(`file`,s.body);if(s.metadata!==void 0){let e=typeof s.metadata==`string`?u(s.metadata,`metadata`,`text`):s.metadata;t.append(`metadata`,typeof e==`string`?e:JSON.stringify(e))}let n=await a(`Updating`,async()=>e(o,`PUT`,`/zones/${s.zoneId}/snippets/${encodeURIComponent(String(s[`snippet-name`]))}`,{body:t}));r(n,{successLabel:`Updated`});return}if(s.body){let t=u(s.body,`body`,`binary`),n=await a(`Updating`,async()=>e(o,`PUT`,`/zones/${s.zoneId}/snippets/${encodeURIComponent(String(s[`snippet-name`]))}`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));r(n,{successLabel:`Updated`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},N={command:`snippets`,describe:`snippets`,builder:e=>e.command(y).command(x).command(C).command(M).command(_).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{N as default};
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
- import{n as e}from"./auth-CAWalgW0.mjs";import{i as t}from"./context-BBLtgdR1.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{n as o}from"./body-parser-DkHKPkJ7.mjs";import{n as s}from"./prompt-C8FyienX.mjs";import{t as c}from"./cli-types-9oYmRTHJ.mjs";function l(e){return e.usage(`$0 speed availabilities list
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 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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};
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-CAWalgW0.mjs";import{t as n}from"./output-BOe-3AQG.mjs";import{t as r}from"./dry-run-DRj2_uV3.mjs";import{t as i}from"./progress-CQqDtgmF.mjs";import{t as a}from"./run-CW2Cgi0S.mjs";import"./telemetry-0Y5hAtCX.mjs";import{i as o,n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l,t as u}from"./input-validation-D7z60HJH.mjs";function d(e){return e.usage("$0 sql datasets\n\nReturns the analytics dataset catalogue. By default, the response contains dataset names, titles, categories, descriptions, kinds, and hidden flags. Set `include_columns` to include each dataset's column names, descriptions, data types, and hidden flags. The caller must have Account Analytics Read permission on the account identified by `account_tag`. Dataset names, descriptions, and columns are the same for every authorized account. When `include_custom_attributes` or `include_attributes` is set, the response also includes attribute names and types discovered from that account's own data, which legitimately differs per caller. `attributes` is a replacement for `custom_attributes` that will eventually be removed; until then, set either flag independently to receive the corresponding field. `hidden` marks catalogue entries a client should de-emphasise. It has no effect on access: hidden datasets and columns are returned here and remain fully queryable. The catalogue lists the datasets this deployment is able to describe, which is not a fixed list. Some datasets are described by the service that owns them and are listed only where that service is available, so the same account may see a different catalogue in different environments, and datasets may appear or disappear without a change to this API. Clients should query the catalogue rather than hard-coding it, and should not treat a dataset's absence as proof that it does not exist. Workers Analytics Engine datasets are named by the account that writes them, so they are discovered from that account's own data rather than from a fixed list. They appear as `events.analyticsEngine.<dataset_name>` and differ per account. A dataset is listed for as long as any of its data is retained, so it does not disappear from the catalogue merely because writes have stopped. An account with a very large number of datasets may receive a truncated list. Set `include_wae=false` to omit them. Log Explorer datasets are listed only where the account has them, so they differ per account and are not part of the static catalogue. Set `include_lex=false` to omit them.").option(`account-tag`,{type:`string`,description:`Account whose available analytics datasets are returned.`,demandOption:!0}).option(`include-columns`,{type:`boolean`,description:`Include column metadata for each returned dataset.`}).option(`include-custom-attributes`,{type:`boolean`,description:"Include a capped set of custom attribute names and types observed during the preceding seven days, as `custom_attributes`. Requires a nonempty dataset_name. Deprecated in favor of `include_attributes`."}).option(`include-attributes`,{type:`boolean`,description:"Include a capped set of attribute names and types observed during the preceding seven days, as `attributes`. Requires a nonempty dataset_name. Replaces `include_custom_attributes`, which is deprecated."}).option(`include-wae`,{type:`boolean`,description:"Include Workers Analytics Engine datasets, which are discovered from the account's own data. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`include-lex`,{type:`boolean`,description:"Include Log Explorer datasets, which are listed only where the account has them. Set to `false` to return only datasets described from the static catalogue, which avoids that lookup."}).option(`dataset-name`,{type:`string`,description:"Return only the dataset with this exact name. An empty value is treated as if the parameter had been omitted, and does not filter the catalogue. A name that matches no dataset in this deployment's catalogue is rejected with `422`; a dataset that exists but is not describable here is rejected identically, so the two cases cannot be told apart.\n\nA Workers Analytics Engine dataset is named in full, as `events.analyticsEngine.<dataset_name>`; the namespace on its own returns every such dataset the account has. A `dataset_name` the account does not have is rejected with `422` like any other unknown name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`datasets`,describe:`List available analytics datasets`,builder:d,handler:async e=>a({command:`sql datasets`,classification:{safeFlags:[`include-columns`,`include-custom-attributes`,`include-attributes`,`include-wae`,`include-lex`,`dry-run`]}},e,async()=>{let a={account_tag:e[`account-tag`],include_columns:e[`include-columns`],include_custom_attributes:e[`include-custom-attributes`],include_attributes:e[`include-attributes`],include_wae:e[`include-wae`],include_lex:e[`include-lex`],dataset_name:e[`dataset-name`]};if(e.dryRun){r({command:`cf sql datasets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/analytics/sql/introspection`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.sql.datasets(a));n(s,{successLabel:`Loaded`})})};function p(e){return e.usage("$0 sql query <query>\n\nExecutes a SQL query against the analytics datasets available to the caller. Send either raw SQL or a JSON object containing the query and optional positional or named parameters, time range, and account or zone scope. Raw SQL placeholders can also be bound with query parameters named `param_<name>`. A trailing `FORMAT JSON`, `FORMAT JSONEachRow`, `FORMAT TabSeparated`, or `FORMAT TSV` is supported for all datasets. Without FORMAT, each backend retains its existing default JSON response.").positional(`query`,{type:`string`,description:`SQL query to execute. A trailing FORMAT selects JSON, JSONEachRow, TabSeparated, or TSV output on any dataset. `,demandOption:!0}).option(`scope-account`,{type:`string`,description:`Account tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
3
- `}).option(`scope-zone`,{type:`string`,description:`Zone tag used to authorize and scope the query. Must be a 32-character lowercase hex string.
4
- `}).option(`time-until`,{type:`string`,description:`Inclusive upper bound for the dataset's timestamp column.`}).option(`time-since`,{type:`string`,description:`Inclusive lower bound for the dataset's timestamp column.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).conflicts(`scope-account`,[`scope-zone`]).conflicts(`scope-zone`,[`scope-account`]).check(e=>{if([`time-until`,`time-since`].some(t=>e[t]!==void 0)){let t=[`time-since`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --time_range-* flag is set`)}return!0})}const m={command:`query <query>`,describe:`Query analytics datasets`,builder:p,handler:async d=>a({command:`sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){r({command:`cf sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/analytics/sql`,pathParams:{},bodyKind:d.file===void 0?`json`:`octet-stream`,body:d.file===void 0?d.body===void 0?c({scope:{accountTag:l(d[`scope-account`],`scope-account`,`text`),zoneTag:l(d[`scope-zone`],`scope-zone`,`text`)},time_range:{end:l(d[`time-until`],`time-until`,`text`),start:l(d[`time-since`],`time-since`,`text`)},query:d.query}):s(d.body):{file:d.file}});return}let a=await t(d);if(d.file){let t=u(d.file),r=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));n(r,{successLabel:`Loaded`});return}if(d.body){let t=s(d.body),r=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:t}));n(r,{successLabel:`Loaded`});return}let f={};d[`scope-account`]!==void 0&&o(f,[`scope`,`accountTag`],l(d[`scope-account`],`scope-account`,`text`)),d[`scope-zone`]!==void 0&&o(f,[`scope`,`zoneTag`],l(d[`scope-zone`],`scope-zone`,`text`)),d[`time-until`]!==void 0&&o(f,[`time_range`,`end`],l(d[`time-until`],`time-until`,`text`)),d[`time-since`]!==void 0&&o(f,[`time_range`,`start`],l(d[`time-since`],`time-since`,`text`)),d.query!==void 0&&(f.query=d.query);let p=await i(`Loading`,async()=>e(a,`POST`,`/analytics/sql`,{body:Object.keys(f).length>0?f:void 0}));n(p,{successLabel:`Loaded`})})},h={command:`sql`,describe:`sql`,builder:e=>e.command(f).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{h as default};