cf 1.0.0-beta.5 → 1.0.0-beta.7

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 (277) hide show
  1. package/dist/_meta/commands.json +5362 -5482
  2. package/dist/_meta/hand-written-commands.json +1 -1
  3. package/dist/_meta/schemas.json +3014 -3160
  4. package/dist/abuse-reports-D7Hrm0MV.mjs +24 -0
  5. package/dist/{access-DRlrq_cq.mjs → access-_upGyV1N.mjs} +1 -1
  6. package/dist/{account-tags-DMCYk5rR.mjs → account-tags-CrijxKW6.mjs} +2 -2
  7. package/dist/{accounts-BlVDzIWc.mjs → accounts-Db5SMjh2.mjs} +32 -26
  8. package/dist/{acm-CCc33e4l.mjs → acm-9cXKVj2C.mjs} +1 -1
  9. package/dist/{addressing-BA-5A3jQ.mjs → addressing-D_FtdMEM.mjs} +1 -1
  10. package/dist/{agent-memory-Csgs8W5u.mjs → agent-memory-BygNv4aJ.mjs} +1 -1
  11. package/dist/{ai-BN_pzw7p.mjs → ai-D-55e3UD.mjs} +7 -9
  12. package/dist/{ai-audit-Dbln3Ai6.mjs → ai-audit-DDQ68vrA.mjs} +1 -1
  13. package/dist/{ai-gateway-BhASWwdp.mjs → ai-gateway-sP2B_8Ef.mjs} +1 -1
  14. package/dist/{ai-search-DvA8g4xr.mjs → ai-search-DvMUOhub.mjs} +1 -1
  15. package/dist/{ai-security-nualpneg.mjs → ai-security-BVWVxZmP.mjs} +1 -1
  16. package/dist/{alerting-HUbVuQMl.mjs → alerting-DZ9gxuKS.mjs} +1 -1
  17. package/dist/{analytics-ClKN9YnQ.mjs → analytics-Y2xckwX1.mjs} +1 -1
  18. package/dist/{analytics_engine-DP_O5HIq.mjs → analytics_engine-A8gMyUty.mjs} +1 -1
  19. package/dist/{api-security-Ce_9nFH9.mjs → api-security-CNMyTBs-.mjs} +1 -1
  20. package/dist/{argo-CLLBrtiV.mjs → argo-Be_3wk6n.mjs} +1 -1
  21. package/dist/{artifacts-CIxZX3VM.mjs → artifacts-B8roQjRg.mjs} +1 -1
  22. package/dist/{audit-logs-DjzIj9T4.mjs → audit-logs-DgkSAyTu.mjs} +1 -1
  23. package/dist/{auth-CgPQplnD.mjs → auth-B74oTm3b.mjs} +1 -1
  24. package/dist/{auth-B_Utev-x.mjs → auth-CHTMVVW3.mjs} +2 -2
  25. package/dist/{autoconfig-BunaOShS.mjs → autoconfig-DXXV-Xyz.mjs} +1 -1
  26. package/dist/basin-catalog-85ubk7YB.mjs +46 -0
  27. package/dist/{billing-tHlHhEVf.mjs → billing-Cc6_LzwM.mjs} +1 -1
  28. package/dist/{bot-management-ChV-gaXh.mjs → bot-management-DSJtyyh_.mjs} +1 -1
  29. package/dist/{botnet-feed-DQWBOEqC.mjs → botnet-feed-BkhLL1Oz.mjs} +1 -1
  30. package/dist/{brand-protection-B3afeuOj.mjs → brand-protection-Bldu6Tvz.mjs} +1 -1
  31. package/dist/{browser-run-eQMomr1x.mjs → browser-run-B_0Fh5Cg.mjs} +1 -1
  32. package/dist/{build-VUz0URCV.mjs → build-SxtWgMkQ.mjs} +1 -1
  33. package/dist/build-VB6btUkb.mjs +2 -0
  34. package/dist/{builds-wTOvlp0S.mjs → builds-BwP-UvyR.mjs} +1 -1
  35. package/dist/{cache-s4HK0we7.mjs → cache-DQDer_pF.mjs} +27 -27
  36. package/dist/{certificate-authorities-CaPUfYzA.mjs → certificate-authorities-Dfc0QVyT.mjs} +1 -1
  37. package/dist/{cf-O3gEaXYZ.mjs → cf-Dw3HK_Qy.mjs} +2 -2
  38. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  39. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  40. package/dist/{cli-CT-QJu7q.mjs → cli-B0_EbPK6.mjs} +1 -1
  41. package/dist/{client-certificates-BfNDnT8H.mjs → client-certificates-BVfmuFsa.mjs} +1 -1
  42. package/dist/{client-side-security-BV7iORbb.mjs → client-side-security-DiaSjw1y.mjs} +1 -1
  43. package/dist/{cloud-connector-CGT8ezvv.mjs → cloud-connector-B6iUAIzF.mjs} +1 -1
  44. package/dist/{cloudflared-91JvyShh.mjs → cloudflared-C4KjWoEY.mjs} +1 -1
  45. package/dist/{cloudforce-one-BDhbXtA_.mjs → cloudforce-one-B2PweUyv.mjs} +47 -56
  46. package/dist/{command-BgBsFEYv.mjs → command-8lsstsSi.mjs} +1 -1
  47. package/dist/{command-Cox9Wh1i.mjs → command-BC7oCgWp.mjs} +1 -1
  48. package/dist/{command-DjNcY4cf.mjs → command-BDCTd8Ra.mjs} +1 -1
  49. package/dist/{command-C_l69o2b.mjs → command-BOktUlKN.mjs} +1 -1
  50. package/dist/{command-SgtzgQrs.mjs → command-Bi0InjEd.mjs} +1 -1
  51. package/dist/{command-C3Qhz4kU.mjs → command-BtmIP6e1.mjs} +1 -1
  52. package/dist/{command-DpEQ07Xe.mjs → command-CNfYJjg7.mjs} +1 -1
  53. package/dist/{command-ozwmaY7n.mjs → command-CnEF-7o0.mjs} +1 -1
  54. package/dist/{command-DJF4wdrM.mjs → command-CrS8Q6U3.mjs} +1 -1
  55. package/dist/{command-DH67hNLj.mjs → command-CvzUv83h.mjs} +1 -1
  56. package/dist/{command-C8gLcKlB.mjs → command-CzzAaOGK.mjs} +1 -1
  57. package/dist/{command-lYaHS62l.mjs → command-D1S9Z0gV.mjs} +1 -1
  58. package/dist/{command-G_VL3Jf8.mjs → command-DVSwnnMJ.mjs} +1 -1
  59. package/dist/{command-C72KLHMc.mjs → command-WCtue6i1.mjs} +1 -1
  60. package/dist/{command-DQcG8PK-.mjs → command-WrVIhg73.mjs} +1 -1
  61. package/dist/{completions-VR53Fiec.mjs → completions-UDpzduKn.mjs} +1 -1
  62. package/dist/{connector-interrupts-hfttjm-b.mjs → connector-interrupts-47IuSZFG.mjs} +1 -1
  63. package/dist/{connector-telemetry-events-5nVvivYA.mjs → connector-telemetry-events-BQb3Hsnt.mjs} +1 -1
  64. package/dist/{connector-telemetry-snapshots-DKk_7VQa.mjs → connector-telemetry-snapshots-CeFJqT4_.mjs} +1 -1
  65. package/dist/{connectors-CvX4Z3cg.mjs → connectors-CF9n8yHv.mjs} +1 -1
  66. package/dist/{containers-BU9RquYh.mjs → containers-D4pJisp-.mjs} +7 -7
  67. package/dist/{containers-BQxj87na.mjs → containers-DBs5P8vO.mjs} +1 -1
  68. package/dist/{content-scan-hWh-aGbO.mjs → content-scan-DLdl9ZpM.mjs} +1 -1
  69. package/dist/{context-CPVzoKbN.mjs → context-C71TA0Yp.mjs} +1 -1
  70. package/dist/{cps-o8QQFfnF.mjs → cps-X4HFj7Qw.mjs} +1 -1
  71. package/dist/{csamScanner-DHod3Hak.mjs → csamScanner-tkB73Sgi.mjs} +1 -1
  72. package/dist/{ct-alerting-D-_YsE1x.mjs → ct-alerting-HDZJVnZS.mjs} +1 -1
  73. package/dist/{custom-certificates-UnaVRb3W.mjs → custom-certificates-ClGBR4Oo.mjs} +1 -1
  74. package/dist/{custom-csrs-BCJ7LOUe.mjs → custom-csrs-D3b2bNiX.mjs} +1 -1
  75. package/dist/{custom-hostnames-DOluVIfa.mjs → custom-hostnames-CWyObX98.mjs} +1 -1
  76. package/dist/{custom-nameservers-CvIucaA2.mjs → custom-nameservers-Di8z6ioQ.mjs} +1 -1
  77. package/dist/{custom-pages-DzrXSeCR.mjs → custom-pages-D2l1rZfJ.mjs} +1 -1
  78. package/dist/d1-aDiX5BdB.mjs +41 -0
  79. package/dist/{dcv-delegation-9bMHPSoc.mjs → dcv-delegation-D-vyZC0M.mjs} +1 -1
  80. package/dist/{deploy-BT_EVz0K.mjs → deploy-DBmw0fiq.mjs} +1 -1
  81. package/dist/{deploy-input-YW632ysz.mjs → deploy-input-DxuYgPps.mjs} +1 -1
  82. package/dist/{dev-jRnP9IIJ.mjs → dev-SpCmvb4M.mjs} +1 -1
  83. package/dist/{diagnostics-BIe-XR-P.mjs → diagnostics-nRYcfs30.mjs} +1 -1
  84. package/dist/discover-CcGReXr0.mjs +2 -0
  85. package/dist/dist-BuCJ_55d.mjs +366 -0
  86. package/dist/{dist-COohnEBL.mjs → dist-Du72beRE.mjs} +3 -3
  87. package/dist/{dls-BuKO5QWL.mjs → dls-CANrS9Ke.mjs} +1 -1
  88. package/dist/{dns-DzVN-WA4.mjs → dns-Vt3Dc_Vu.mjs} +52 -43
  89. package/dist/{dns-firewall-Dx_XvWKJ.mjs → dns-firewall-CVSEaJZY.mjs} +1 -1
  90. package/dist/durable-objects-B-e7xqhL.mjs +6 -0
  91. package/dist/{email-auth-DqIyzEcR.mjs → email-auth-hUz_5D2H.mjs} +1 -1
  92. package/dist/{email-routing-8rhAmzOY.mjs → email-routing-By5Q7zP0.mjs} +1 -1
  93. package/dist/{email-security-BRq5J31C.mjs → email-security-C9VhlZkz.mjs} +50 -50
  94. package/dist/{email-sending-Bsfk4Jia.mjs → email-sending-C7cVl025.mjs} +1 -1
  95. package/dist/{error-sanitization-Dc4bLj8k.mjs → error-sanitization-BXqhvJsR.mjs} +1 -1
  96. package/dist/error-sanitization-CSlapZbU.mjs +2 -0
  97. package/dist/{fieldExtractors-COaK02vB.mjs → fieldExtractors-DMdnj9KA.mjs} +1 -1
  98. package/dist/{firewall-Dar706zc.mjs → firewall-C93JnCsO.mjs} +1 -1
  99. package/dist/flagship-CVZWzLTv.mjs +28 -0
  100. package/dist/{fraud-H-mdJfRU.mjs → fraud-DJ3jnp3_.mjs} +1 -1
  101. package/dist/generate-t4dFfFRV.mjs +2 -0
  102. package/dist/{google-tag-gateway-zqXS_12f.mjs → google-tag-gateway-DbE_3TkF.mjs} +1 -1
  103. package/dist/{healthchecks-x889sT8g.mjs → healthchecks-DKWTVerg.mjs} +1 -1
  104. package/dist/{hostnames-DqB5I-_U.mjs → hostnames-VNPfazJd.mjs} +1 -1
  105. package/dist/hyperdrive-BKtLQf8J.mjs +37 -0
  106. package/dist/{iam-CKt7U41p.mjs → iam-BsZ7ORd5.mjs} +1 -1
  107. package/dist/{images-CakdBcMc.mjs → images-Bd3lRkGK.mjs} +1 -1
  108. package/dist/index.mjs +1 -1
  109. package/dist/{init-CVyWV_Ow.mjs → init-D9pazuYJ.mjs} +2 -2
  110. package/dist/{intel-Dcv1vMsK.mjs → intel-ropzhmya.mjs} +1 -1
  111. package/dist/{ips-Ce9_k1Vh.mjs → ips-85Mq1qXg.mjs} +1 -1
  112. package/dist/{keyless-certificates-Cf_6sc7K.mjs → keyless-certificates-CRzCJ82O.mjs} +1 -1
  113. package/dist/{keys-DW2A43fL.mjs → keys-CWUCTmsD.mjs} +1 -1
  114. package/dist/{kv-BKBWXf8s.mjs → kv-BT2uSv-y.mjs} +1 -1
  115. package/dist/{lazy-command-BOjQB_U7.mjs → lazy-command-DjCioGYx.mjs} +1 -1
  116. package/dist/{leaked-credential-checks-D-gwxxaF.mjs → leaked-credential-checks-DjDq1Toq.mjs} +1 -1
  117. package/dist/{load-balancers-DHUVei95.mjs → load-balancers--4Ouz99G.mjs} +1 -1
  118. package/dist/{local-B3OyWKkW.mjs → local-C9i1d0ma.mjs} +1 -1
  119. package/dist/local-j2uOZ8Uq.mjs +2 -0
  120. package/dist/{local-runtime-Co5vVDlI.mjs → local-runtime-WQyZe3ed.mjs} +1 -1
  121. package/dist/{login-D37fy09s.mjs → login-BDFpobb3.mjs} +1 -1
  122. package/dist/{login-CptngugC.mjs → login-CHjklzf2.mjs} +1 -1
  123. package/dist/{logo-matches-D1aNSBnZ.mjs → logo-matches-DVQfRSCD.mjs} +1 -1
  124. package/dist/{logos-SyEjq15s.mjs → logos-BUEuiGuz.mjs} +1 -1
  125. package/dist/{logpush-l9tVWnua.mjs → logpush-cKUA9fBU.mjs} +1 -1
  126. package/dist/logs-2OJeMqWG.mjs +36 -0
  127. package/dist/{magic-cloud-networking-CN2Qd2Lx.mjs → magic-cloud-networking-D29ITjYQ.mjs} +1 -1
  128. package/dist/{magic-network-monitoring-8jxG-tPc.mjs → magic-network-monitoring-Bva_tF2u.mjs} +1 -1
  129. package/dist/{magic-transit-DLhIQz2l.mjs → magic-transit-DG_ZmEzW.mjs} +108 -112
  130. package/dist/{managed-defense-CgKdTd9J.mjs → managed-defense-xGCISaB_.mjs} +1 -1
  131. package/dist/{managed-transforms-BASi4j_s.mjs → managed-transforms-DDgqNWVJ.mjs} +1 -1
  132. package/dist/{matches-BCV6x948.mjs → matches-CxWA1zUN.mjs} +1 -1
  133. package/dist/{mcp-DQODvLQm.mjs → mcp-DVoYs5z5.mjs} +1 -1
  134. package/dist/{mesh-S_yYh-w3.mjs → mesh-qenm6AM4.mjs} +1 -1
  135. package/dist/{migrate-B4kBnkpV.mjs → migrate-CipwWhJE.mjs} +1 -1
  136. package/dist/monetization-CUWtxI_y.mjs +20 -0
  137. package/dist/{mtls-certificates-XJXK21J_.mjs → mtls-certificates-xUIkGtmX.mjs} +1 -1
  138. package/dist/{network-DA81Mcdh.mjs → network-Y8kCdzJC.mjs} +1 -1
  139. package/dist/{network-interconnects-OttR92s7.mjs → network-interconnects-CEvvsGwX.mjs} +1 -1
  140. package/dist/{oauth-CKeW8CqE.mjs → oauth-J2zz9fHk.mjs} +1 -1
  141. package/dist/{oauth-clients-Ba-YZsxB.mjs → oauth-clients-B7qfaBLY.mjs} +1 -1
  142. package/dist/{oauth-scopes-XqOk2zCQ.mjs → oauth-scopes-D7_xDwvo.mjs} +1 -1
  143. package/dist/{oauth-ChXrM0q9.mjs → oauth-vj6qkLCC.mjs} +1 -1
  144. package/dist/{observability-BdIbZ1D8.mjs → observability-_aI_XF0M.mjs} +1 -1
  145. package/dist/{organization-DnQ2_txo.mjs → organization-C41nlZcO.mjs} +7 -7
  146. package/dist/{organizations-BkI0IhEg.mjs → organizations-D15_q5u6.mjs} +1 -1
  147. package/dist/{origin-ca-certificates-Br91H1EG.mjs → origin-ca-certificates-DGSGDaNw.mjs} +1 -1
  148. package/dist/{origin-post-quantum-encryption-BcpK8DaG.mjs → origin-post-quantum-encryption-C_9NBBkG.mjs} +1 -1
  149. package/dist/{origin-tls-client-auth-CYK6YnzK.mjs → origin-tls-client-auth-Dh9vTi_F.mjs} +1 -1
  150. package/dist/{page-rules-DpOcNsJr.mjs → page-rules-CWZJaKuz.mjs} +1 -1
  151. package/dist/pages-CVlGF6mj.mjs +54 -0
  152. package/dist/{pay-per-crawl-BORpCGxC.mjs → pay-per-crawl-BJ10CSH9.mjs} +1 -1
  153. package/dist/{pay-per-use-CZw-KHEz.mjs → pay-per-use-B3eQmzWv.mjs} +1 -1
  154. package/dist/{pipelines-DDDyJ6Oe.mjs → pipelines-VhDz1fDL.mjs} +1 -1
  155. package/dist/{precursor-DrH1i64o.mjs → precursor-CvYpYouB.mjs} +1 -1
  156. package/dist/{previews-CiYBBKj8.mjs → previews-CJHqRKPF.mjs} +1 -1
  157. package/dist/{progress-DS2fwfNP.mjs → progress-BlxgG8Ss.mjs} +1 -1
  158. package/dist/{prompt-doX80PCd.mjs → prompt-ClEoR47s.mjs} +1 -1
  159. package/dist/{queries-CD6h6iEP.mjs → queries-8m5UOv21.mjs} +1 -1
  160. package/dist/{queues-3TpjE349.mjs → queues-C8P3RI-3.mjs} +1 -1
  161. package/dist/{r2-CV_hSFkM.mjs → r2-ChQ_GZA7.mjs} +27 -34
  162. package/dist/r2-data-catalog-DpktRU5y.mjs +2 -0
  163. package/dist/{radar-6-4_LoQ1.mjs → radar-B9PnH7nW.mjs} +1 -1
  164. package/dist/{raw-fetch-_Z55VEDY.mjs → raw-fetch-CWRDTVMr.mjs} +1 -1
  165. package/dist/{realtime-B5ce977I.mjs → realtime-31GZpgm5.mjs} +1 -1
  166. package/dist/{registrar-CF-3h2dN.mjs → registrar-fBw5wh-I.mjs} +2 -2
  167. package/dist/{registrar-sandbox-BDRZbyAV.mjs → registrar-sandbox-Bcr5l7Js.mjs} +2 -2
  168. package/dist/{registry-DBMUTYqf.mjs → registry-rtPfnFht.mjs} +1 -1
  169. package/dist/{reporting-CiS-RBNJ.mjs → reporting-BfpNLeGh.mjs} +1 -1
  170. package/dist/{request-headers-DPbWytRv.mjs → request-headers-DmiSqfLo.mjs} +1 -1
  171. package/dist/{request-tracers-Drcpv8ha.mjs → request-tracers-DCpDftuC.mjs} +1 -1
  172. package/dist/{resource-sharing-BI3CoOjl.mjs → resource-sharing-D-OCBlIj.mjs} +1 -1
  173. package/dist/{resource-tagging-D4i_-E0W.mjs → resource-tagging-DCn8TwS0.mjs} +1 -1
  174. package/dist/{rules-C4I4CLoq.mjs → rules-DHeYlXlI.mjs} +4 -4
  175. package/dist/{rulesets-c2efesdy.mjs → rulesets-BMv5GVEt.mjs} +20 -20
  176. package/dist/{rum-DT58nW8a.mjs → rum-CaTeqDsB.mjs} +1 -1
  177. package/dist/run-BJmOnVJI.mjs +2 -0
  178. package/dist/run-l2pCxS-W.mjs +2 -0
  179. package/dist/{schema-flags-DDW79Tda.mjs → schema-flags-DBujG5kJ.mjs} +1 -1
  180. package/dist/{scim-PfJWMuRu.mjs → scim-DHwWD1nA.mjs} +1 -1
  181. package/dist/{sdk-Bx29ZKK3.mjs → sdk-DzVznUuv.mjs} +1 -1
  182. package/dist/{secrets-store-7jrgww1J.mjs → secrets-store-DoH9JnqC.mjs} +1 -1
  183. package/dist/security-insights-oqJuf8MY.mjs +40 -0
  184. package/dist/{security-txt-ButEG3qy.mjs → security-txt-BY07I5Bx.mjs} +1 -1
  185. package/dist/{session-CjQFm10R.mjs → session-CZTuHcbm.mjs} +1 -1
  186. package/dist/{shared-JNtE--kh.mjs → shared-D0PR8DbO.mjs} +1 -1
  187. package/dist/{smart-shield-DgbYuUFC.mjs → smart-shield-g5UHGdCQ.mjs} +1 -1
  188. package/dist/{snippets-De-xVTIb.mjs → snippets-Bgn7ZKJo.mjs} +1 -1
  189. package/dist/{spawn-IM_tQldH.mjs → spawn-BSnyZB0W.mjs} +1 -1
  190. package/dist/{spectrum-DcknX0jS.mjs → spectrum-BmLwQKib.mjs} +1 -1
  191. package/dist/{speed-Cn_p-ieT.mjs → speed-CesLeufR.mjs} +1 -1
  192. package/dist/{src-BYjublVL.mjs → src-wDWeXeJp.mjs} +5 -5
  193. package/dist/{ssl-Bkn4ke9Q.mjs → ssl-DrYK9KX-.mjs} +1 -1
  194. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  195. package/dist/{startup-profile-DrV846S5.mjs → startup-profile-CR7GMuLx.mjs} +2 -2
  196. package/dist/state-50FyMVTz.mjs +2 -0
  197. package/dist/{state-DhHOAdTo.mjs → state-BDkCKOju.mjs} +1 -1
  198. package/dist/{stream-Cx78uNm_.mjs → stream-D0sXaEj7.mjs} +1 -1
  199. package/dist/{submit-Gu34n1a6.mjs → submit-CpjZiCN9.mjs} +1 -1
  200. package/dist/{tags-BQqO7TLX.mjs → tags-B17h1YBS.mjs} +1 -1
  201. package/dist/telemetry-BqtdHwmi.mjs +2 -0
  202. package/dist/{telemetry-Qc-g_0fL.mjs → telemetry-D84K-X2j.mjs} +1 -1
  203. package/dist/tenant-S7-Cb54D.mjs +10 -0
  204. package/dist/{tenant-custom-nameservers-B5Nf5hLr.mjs → tenant-custom-nameservers-CZ8qgnt_.mjs} +1 -1
  205. package/dist/{tunnels-ndJtol-f.mjs → tunnels-DzSFv0qt.mjs} +1 -1
  206. package/dist/{turnstile-Cd65N6jD.mjs → turnstile-C5tc9QGH.mjs} +1 -1
  207. package/dist/update-check-7q-e6UWW.mjs +2 -0
  208. package/dist/{update-check-AraGlAQf.mjs → update-check-CpGj0g5l.mjs} +1 -1
  209. package/dist/update-check-worker.mjs +1 -1
  210. package/dist/{url-info-CQKJ5A-x.mjs → url-info-lY7WbQzK.mjs} +1 -1
  211. package/dist/{url-normalization-BPXZwYu0.mjs → url-normalization-BHVZ4ULQ.mjs} +1 -1
  212. package/dist/{url-scanner-Bq43LJ98.mjs → url-scanner-DRnPOsj9.mjs} +1 -1
  213. package/dist/{user-D4InwQxA.mjs → user-DyT-q94n.mjs} +1 -1
  214. package/dist/{values-C3YLablc.mjs → values-BE3pRW6M.mjs} +1 -1
  215. package/dist/{vectorize-CYt0qXQ5.mjs → vectorize-CGl0BOXJ.mjs} +3 -3
  216. package/dist/version-DOZrLErk.mjs +2 -0
  217. package/dist/{waiting-rooms-B3ksWao9.mjs → waiting-rooms-DbhiDyp_.mjs} +1 -1
  218. package/dist/{web-assets-DNiElHgV.mjs → web-assets-noQwig7x.mjs} +1 -1
  219. package/dist/{web3-DfMKMDix.mjs → web3-Dts8-Peq.mjs} +1 -1
  220. package/dist/workers-DtZRm0HJ.mjs +38 -0
  221. package/dist/{workers-builds-DbEy311-.mjs → workers-builds-ean9unEX.mjs} +1 -1
  222. package/dist/workers-for-platforms-jdC-4D-X.mjs +42 -0
  223. package/dist/{workers-vpc-BEnB6e_3.mjs → workers-vpc-D2PZCegg.mjs} +1 -1
  224. package/dist/{workflows-CX3Zer8w.mjs → workflows-C9QBOzZz.mjs} +2 -2
  225. package/dist/{wrangler-migration-BDkh1_IV.mjs → wrangler-migration-BDnS1puc.mjs} +1 -1
  226. package/dist/{zaraz-DR1KbYY-.mjs → zaraz-DVLkn3fF.mjs} +1 -1
  227. package/dist/{zero-trust-CLoXVq1e.mjs → zero-trust-DfwISsW4.mjs} +427 -441
  228. package/dist/{zone-B9qejq6W.mjs → zone-DQV-hfHN.mjs} +1 -1
  229. package/dist/{zones-BxU08wO0.mjs → zones-By8IT3CV.mjs} +1 -1
  230. package/package.json +14 -13
  231. package/dist/abuse-reports-DoqL_52r.mjs +0 -26
  232. package/dist/account-DfC3gRTf.mjs +0 -12
  233. package/dist/build-DFa0ngeO.mjs +0 -2
  234. package/dist/chunk-M77HNR46-DPbhuhiy.mjs +0 -2
  235. package/dist/chunk-RV27PEH3-Cws_30ln.mjs +0 -97
  236. package/dist/d1-BCg7BhWi.mjs +0 -45
  237. package/dist/discover-DgHRf-qo.mjs +0 -2
  238. package/dist/dist-DfMipWKR.mjs +0 -366
  239. package/dist/durable-objects-DnU6OsEb.mjs +0 -8
  240. package/dist/error-sanitization-Cu-8OKRA.mjs +0 -2
  241. package/dist/flagship-CTchDpyw.mjs +0 -28
  242. package/dist/generate-qMU-2MgC.mjs +0 -2
  243. package/dist/hyperdrive-sR7Mwif9.mjs +0 -37
  244. package/dist/local-qOpZjDed.mjs +0 -2
  245. package/dist/logs-EW0Pq-gf.mjs +0 -48
  246. package/dist/pages-Cw4DM-1N.mjs +0 -60
  247. package/dist/r2-data-catalog-D_YHTMFG.mjs +0 -44
  248. package/dist/run-CJ-6owN3.mjs +0 -2
  249. package/dist/run-D0esoYSn.mjs +0 -2
  250. package/dist/security-center-BhUM_Flh.mjs +0 -30
  251. package/dist/startup-profile-B0UCc9_J.mjs +0 -2
  252. package/dist/state-Dyo8DcW7.mjs +0 -2
  253. package/dist/telemetry-D2UwfCd1.mjs +0 -2
  254. package/dist/tenant-Dr0hGlhU.mjs +0 -12
  255. package/dist/update-check-D5-zqJoN.mjs +0 -2
  256. package/dist/version-DyZwKU6l.mjs +0 -2
  257. package/dist/workers-C8uiRedD.mjs +0 -40
  258. package/dist/workers-for-platforms-BjvcY5A1.mjs +0 -25
  259. /package/dist/{alerts-DqZgVSCT.mjs → alerts-DY_7Nknx.mjs} +0 -0
  260. /package/dist/{autorag-Cq9k9Ye6.mjs → autorag-K396-M2S.mjs} +0 -0
  261. /package/dist/{discover-VRFBjse7.mjs → discover-B_3A4a_t.mjs} +0 -0
  262. /package/dist/{generate-iV6OVNin.mjs → generate-QUDsysBJ.mjs} +0 -0
  263. /package/dist/{rate-limit-analytics-Bw9qmxMx.mjs → rate-limit-analytics-YsGha5pH.mjs} +0 -0
  264. /package/dist/{rate-limits-CDm_xzKt.mjs → rate-limits-kH13NRdf.mjs} +0 -0
  265. /package/dist/{ready-BXGqY1Wi.mjs → ready-DYun4Fpn.mjs} +0 -0
  266. /package/dist/{recent-submissions-AhGZD3a3.mjs → recent-submissions-18NaOGOo.mjs} +0 -0
  267. /package/dist/{refute-D_w5Gw20.mjs → refute-BhMiJcE1.mjs} +0 -0
  268. /package/dist/{scan-logo-BZzFam-Q.mjs → scan-logo-7y0pqFMk.mjs} +0 -0
  269. /package/dist/{scan-page-BPA8nSPM.mjs → scan-page-B6jnK3QI.mjs} +0 -0
  270. /package/dist/{schema-CueLBLXC.mjs → schema-JVvksQ1J.mjs} +0 -0
  271. /package/dist/{search-De0UlXYN.mjs → search-Rn3Eefv8.mjs} +0 -0
  272. /package/dist/{signed-url-ziDz9frX.mjs → signed-url-Dzwy9Xiw.mjs} +0 -0
  273. /package/dist/{submission-info-83D2DCCG.mjs → submission-info-SNhkDRRZ.mjs} +0 -0
  274. /package/dist/{tools-BJbI_f35.mjs → tools-CFEubTr4.mjs} +0 -0
  275. /package/dist/{total-queries-Dhol31Kn.mjs → total-queries-B20xslrH.mjs} +0 -0
  276. /package/dist/{tracked-domains-DoOPs6Vd.mjs → tracked-domains-BCvIOZOK.mjs} +0 -0
  277. /package/dist/{verify-CxpGEnJb.mjs → verify-DOeBG4PL.mjs} +0 -0
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./cloudflared-91JvyShh.mjs";const r={command:`quick-start <url>`,describe:`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,builder:e=>e.positional(`url`,{type:`string`,description:`Local URL to expose (for example, http://localhost:3000)`,demandOption:!0}).option(`log-level`,{type:`string`,choices:n,default:`info`,description:`cloudflared log level`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels quick-start.`):new e(await t([`tunnel`,`--url`,n.url,`--loglevel`,n[`log-level`]]))}};export{r as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./cloudflared-C4KjWoEY.mjs";const r={command:`quick-start <url>`,describe:`Expose a local URL with a temporary trycloudflare.com tunnel. The tunnel remains active until cf exits.`,builder:e=>e.positional(`url`,{type:`string`,description:`Local URL to expose (for example, http://localhost:3000)`,demandOption:!0}).option(`log-level`,{type:`string`,choices:n,default:`info`,description:`cloudflared log level`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels quick-start.`):new e(await t([`tunnel`,`--url`,n.url,`--loglevel`,n[`log-level`]]))}};export{r as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`ssh-config`,describe:`Print an example SSH configuration for an Access application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`}).option(`short-lived-cert`,{type:`boolean`,description:`Include short-lived certificate configuration`}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-config.`);if(await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`)throw Error(`cf access ssh-config does not support FedRAMP because cloudflared does not include --fedramp in its generated SSH configuration.`);let a=[`access`,`ssh-config`];throw i.hostname&&a.push(`--hostname`,i.hostname),i[`short-lived-cert`]&&a.push(`--short-lived-cert`),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./project-settings-DO6njFg_.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{n as r}from"./generate-iV6OVNin.mjs";import*as i from"node:path";function a(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}const o={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:a,handler:async a=>{if(a.local)throw Error(`--local is not supported by cf workers types.`);let o=e();if(o===null)throw Error(`${t} is required by cf workers types.`);let s=await r({configPath:o,mode:a.mode,includeRuntime:a.includeRuntime});n({path:i.relative(process.cwd(),s)},{quiet:a.quiet})}};export{o as default};
2
+ import{n as e,t}from"./project-settings-DO6njFg_.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{n as r}from"./generate-QUDsysBJ.mjs";import*as i from"node:path";function a(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}const o={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:a,handler:async a=>{if(a.local)throw Error(`--local is not supported by cf workers types.`);let o=e();if(o===null)throw Error(`${t} is required by cf workers types.`);let s=await r({configPath:o,mode:a.mode,includeRuntime:a.includeRuntime});n({path:i.relative(process.cwd(),s)},{quiet:a.quiet})}};export{o as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`login`,describe:`Authorize cloudflared and download an origin certificate for locally managed tunnels.`,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf tunnels login.`);let a=[`tunnel`,`login`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./progress-DS2fwfNP.mjs";import{n as a}from"./cloudflared-91JvyShh.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./progress-BlxgG8Ss.mjs";import{n as a}from"./cloudflared-C4KjWoEY.mjs";const o=[`cloudflared`,`http`,`tcp`,`udp`],s=[`debug`,`info`,`warn`,`error`],c=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function l(e,t){if(!c.test(e))throw Error(`${t} must be a valid UUID.`);return e}const u={command:`tail [tunnel-id]`,describe:`Stream logs from a remote cloudflared instance.`,builder:e=>e.positional(`tunnel-id`,{type:`string`,coerce:e=>l(e,`Tunnel ID`),description:`Tunnel UUID to stream logs from`}).option(`connector-id`,{type:`string`,coerce:e=>l(e,`--connector-id`),description:`Target a specific cloudflared connector`}).option(`event`,{type:`string`,choices:o,array:!0,description:`Filter by event type (may be repeated)`}).option(`level`,{type:`string`,choices:s,description:`Filter by log level`}).option(`sample`,{type:`number`,coerce:e=>{if(!Number.isFinite(e)||e<=0||e>1)throw Error(`--sample must be greater than 0.0 and no greater than 1.0.`);return e},description:`Sample log events by fraction greater than 0.0 and no greater than 1.0`}),handler:async o=>{if(o.local)throw Error(`--local is not supported by cf tunnels tail.`);let s=process.env.TUNNEL_MANAGEMENT_TOKEN;if(s!==void 0&&!s.trim())throw Error(`TUNNEL_MANAGEMENT_TOKEN must not be empty.`);if(s&&o[`tunnel-id`])throw Error(`Specify either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN, not both.`);let c=s;if(!c){let e=o[`tunnel-id`];if(!e)throw Error(`Either a tunnel ID or TUNNEL_MANAGEMENT_TOKEN must be provided.`);c=await t({mode:o.mode,local:o.local},async()=>{let t=await r(o),a=await n();return i(`Fetching tunnel management token`,async()=>t.tunnels.managementToken.create({account_id:a,tunnel_id:e,resources:[`logs`]}))})}let l=[`tail`,`--output`,`json`];if(o[`connector-id`]&&l.push(`--connector-id`,o[`connector-id`]),o.event)for(let e of o.event)l.push(`--event`,e);throw o.level&&l.push(`--level`,o.level),o.sample!==void 0&&l.push(`--sample`,String(o.sample)),o[`tunnel-id`]&&l.push(o[`tunnel-id`]),new e(await a(l,{env:{TUNNEL_MANAGEMENT_TOKEN:c}}))}};export{u as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-91JvyShh.mjs";const n={command:`ready`,describe:`Check the /ready endpoint exposed by a local cloudflared instance.`,builder:e=>e.option(`metrics`,{type:`string`,demandOption:!0,description:`Metrics server address for the cloudflared instance`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels ready.`):new e(await t([`tunnel`,`--metrics`,n.metrics,`ready`]))}};export{n as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-C4KjWoEY.mjs";const n={command:`ready`,describe:`Check the /ready endpoint exposed by a local cloudflared instance.`,builder:e=>e.option(`metrics`,{type:`string`,demandOption:!0,description:`Metrics server address for the cloudflared instance`}),handler:async n=>{throw n.local?Error(`--local is not supported by cf tunnels ready.`):new e(await t([`tunnel`,`--metrics`,n.metrics,`ready`]))}};export{n as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r,t as i}from"./cloudflared-91JvyShh.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r,t as i}from"./cloudflared-C4KjWoEY.mjs";function a(e){return e.option(`hostname`,{type:`string`,demandOption:!0,description:`Hostname of the Access application`}).option(`destination`,{type:`string`,description:`Destination address of the target server`}).option(`url`,{type:`string`,description:`Local host and port to forward to the Cloudflare edge`}).option(`header`,{type:`string`,array:!0,description:`Additional request header; repeat for multiple headers`}).option(`service-token-id`,{type:`string`,description:`Access service token ID`}).option(`service-token-secret`,{type:`string`,description:`Access service token secret`}).option(`log-level`,{alias:`loglevel`,type:`string`,choices:i,description:`cloudflared log level`})}const o={command:`tcp`,aliases:[`ssh`,`rdp`,`smb`],describe:`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,builder:a,handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access tcp.`);let a=[`access`];await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`tcp`),a.push(`--hostname`,i.hostname),i.destination&&a.push(`--destination`,i.destination),i.url&&a.push(`--url`,i.url);for(let e of i.header??[])a.push(`--header`,e);throw i[`service-token-id`]&&a.push(`--service-token-id`,i[`service-token-id`]),i[`log-level`]&&a.push(`--loglevel`,i[`log-level`]),new e(await r(a,{env:i[`service-token-secret`]?{TUNNEL_SERVICE_TOKEN_SECRET:i[`service-token-secret`]}:void 0}))}};export{o as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`curl <url>`,describe:`Run curl against an Access-protected application with its JWT injected by cloudflared.`,builder:e=>e.parserConfiguration({"populate--":!0,"parse-positional-numbers":!1,"short-option-groups":!1}).option(`allow-request`,{alias:`ar`,type:`boolean`,description:`Continue the request when no Access token is available`}).positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access curl.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`curl`),i[`allow-request`]&&a.push(`--allow-request`),a.push(i.url,...(i[`--`]??[]).map(String)),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{x as e}from"./dist-DfMipWKR.mjs";import{t}from"./chunk-M77HNR46-DPbhuhiy.mjs";import{i as n,n as r,t as i}from"./startup-profile-DrV846S5.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-VUz0URCV.mjs";import{t as p}from"./deploy-input-YW632ysz.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
2
+ import{x as e}from"./dist-BuCJ_55d.mjs";import{t}from"./chunk-KKDV4JPS-DdzLLtnl.mjs";import{i as n,n as r,t as i}from"./startup-profile-CR7GMuLx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{a as s,i as c,n as l,o as u,r as d,s as f}from"./build-SxtWgMkQ.mjs";import{t as p}from"./deploy-input-DxuYgPps.mjs";import m from"node:path";import{writeFile as h}from"node:fs/promises";import{readBuildOutput as g}from"@cloudflare/build-output-utils";function _(e){return e.option(`outfile`,{type:`string`,description:`Output file for the startup CPU profile`,default:`worker-startup.cpuprofile`,requiresArg:!0}).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`worker`,d)}const v={command:`check`,describe:`Profile a Worker's startup performance`,builder:_,handler:async d=>{if(d.local)throw Error(`--local is not supported by cf workers check.`);d.prebuilt||await l(d.mode,{output:d.quiet?`silent`:`stderr`,worker:d.worker});let{workers:_,rootConfig:v}=await g(process.cwd());u(d.mode,v.buildContext.mode);let y=s(_,d.worker),{wranglerConfig:b,builtConfig:x}=c(y,v),S=p(y,x);if(!S.resolvedEntryPointPath)throw new f(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(S.bundleType===`commonjs`)throw new f(`Startup profiling does not support service-worker format Workers. Refer to https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/ for migration guidance.`);let C=t({name:b.name??y.config.name??`worker`,main:{name:x.manifest?.mainModule??m.basename(S.resolvedEntryPointPath),filePath:S.resolvedEntryPointPath,content:S.content,type:S.bundleType},modules:S.modules,sourceMaps:S.sourceMaps,compatibility_date:b.compatibility_date,compatibility_flags:b.compatibility_flags??[],assets:void 0,containers:void 0,migrations:void 0,exports:void 0,keepVars:void 0,keepSecrets:void 0,logpush:void 0,placement:void 0,tail_consumers:void 0,streaming_tail_consumers:void 0,limits:void 0,annotations:void 0,observability:void 0,cache:void 0,package_dependencies:void 0},e(b),{dryRun:!0,unsafe:b.unsafe}),w=await r(C),T=d.quiet?await i(C):await o(`Profiling Worker startup`,()=>i(C)),E=n(T);await h(d.outfile,JSON.stringify(T)),a({bundle:{sizeBytes:w.size,gzipSizeBytes:w.gzipSize},startup:{profileWindowMs:E.profileWindow/1e3,sampledTimeMs:E.sampledTime/1e3,activeTimeMs:E.activeTime/1e3,garbageCollectionTimeMs:E.garbageCollectionTime/1e3,idleTimeMs:E.idleTime/1e3,sampleCount:E.sampleCount},profile:d.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:d.quiet})}};export{v as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-91JvyShh.mjs";const n={command:`diag`,describe:`Create a diagnostic report from a local cloudflared instance.`,builder:e=>e.parserConfiguration({"boolean-negation":!1}).option(`metrics`,{type:`string`,description:`Metrics server address for the cloudflared instance`}).option(`diag-container-id`,{type:`string`,description:`Container ID or name to collect logs from`}).option(`diag-pod-id`,{type:`string`,description:`Kubernetes pod to collect logs from`}).option(`no-diag-logs`,{type:`boolean`,description:`Exclude logs`}).option(`no-diag-metrics`,{type:`boolean`,description:`Exclude metrics`}).option(`no-diag-network`,{type:`boolean`,description:`Exclude network diagnostics`}).option(`no-diag-runtime`,{type:`boolean`,description:`Exclude runtime information`}).option(`no-diag-system`,{type:`boolean`,description:`Exclude system information`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels diag.`);let r=[`tunnel`,`diag`];n.metrics&&r.push(`--metrics`,n.metrics),n[`diag-container-id`]&&r.push(`--diag-container-id`,n[`diag-container-id`]),n[`diag-pod-id`]&&r.push(`--diag-pod-id`,n[`diag-pod-id`]);for(let e of[`no-diag-logs`,`no-diag-metrics`,`no-diag-network`,`no-diag-runtime`,`no-diag-system`])n[e]&&r.push(`--${e}`);throw new e(await t(r))}};export{n as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t}from"./cloudflared-C4KjWoEY.mjs";const n={command:`diag`,describe:`Create a diagnostic report from a local cloudflared instance.`,builder:e=>e.parserConfiguration({"boolean-negation":!1}).option(`metrics`,{type:`string`,description:`Metrics server address for the cloudflared instance`}).option(`diag-container-id`,{type:`string`,description:`Container ID or name to collect logs from`}).option(`diag-pod-id`,{type:`string`,description:`Kubernetes pod to collect logs from`}).option(`no-diag-logs`,{type:`boolean`,description:`Exclude logs`}).option(`no-diag-metrics`,{type:`boolean`,description:`Exclude metrics`}).option(`no-diag-network`,{type:`boolean`,description:`Exclude network diagnostics`}).option(`no-diag-runtime`,{type:`boolean`,description:`Exclude runtime information`}).option(`no-diag-system`,{type:`boolean`,description:`Exclude system information`}),handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels diag.`);let r=[`tunnel`,`diag`];n.metrics&&r.push(`--metrics`,n.metrics),n[`diag-container-id`]&&r.push(`--diag-container-id`,n[`diag-container-id`]),n[`diag-pod-id`]&&r.push(`--diag-pod-id`,n[`diag-pod-id`]);for(let e of[`no-diag-logs`,`no-diag-metrics`,`no-diag-network`,`no-diag-runtime`,`no-diag-system`])n[e]&&r.push(`--${e}`);throw new e(await t(r))}};export{n as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-CPVzoKbN.mjs";import{r as i}from"./auth-B_Utev-x.mjs";import{t as a}from"./progress-DS2fwfNP.mjs";import{n as o,t as s}from"./cloudflared-91JvyShh.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{r as n}from"./resolve-BCTrtcx7.mjs";import{t as r}from"./context-C71TA0Yp.mjs";import{r as i}from"./auth-CHTMVVW3.mjs";import{t as a}from"./progress-BlxgG8Ss.mjs";import{n as o,t as s}from"./cloudflared-C4KjWoEY.mjs";const c=1e3;async function l(e,t,r){if(n(r))return r;let i=0,a;for(let n=1;;n++){let o=await e.tunnel.list({account_id:t,name:r,is_deleted:!1,page:n,per_page:c}),s=o.result??[];for(let e of s)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||c;if(s.length<l)break}if(i===0)throw Error(`"${r}" is neither the ID nor the name of any tunnel. Run \`cf tunnels list\` to see available tunnels.`);if(i>1)throw Error(`Found multiple tunnels named "${r}". Pass the tunnel UUID instead.`);if(!a)throw Error(`Tunnel "${r}" was found but has no ID. Pass the tunnel UUID instead.`);return a}async function u(e,t,n){let r=await e.tunnels.token.get({account_id:t,tunnel_id:n});if(typeof r!=`string`||r.length===0)throw Error(`The API returned an empty token for tunnel ${n}.`);return r}function d(e){return e.positional(`tunnel`,{type:`string`,description:`Tunnel name or UUID; required unless --token is provided`}).option(`token`,{type:`string`,description:`Tunnel token supplied directly to cloudflared`}).option(`log-level`,{type:`string`,choices:s,default:`info`,description:`cloudflared log level`})}const f={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:d,handler:async n=>{if(n.local)throw Error(`--local is not supported by cf tunnels run.`);let s=n.token,c=n.tunnel;if(!s){if(!c)throw Error(`Either a tunnel name/UUID or --token must be provided.`);s=await t(n,async()=>{let e=await i(n),t=await r();return a(`Fetching tunnel token`,async()=>u(e,t,await l(e,t,c)))})}let d=[`tunnel`,`--loglevel`,n[`log-level`]];throw d.push(`run`),new e(await o(d,{env:{TUNNEL_TOKEN:s}}))}};export{f as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`ssh-gen`,describe:`Generate a short-lived certificate for an Access SSH application.`,builder:e=>e.option(`hostname`,{type:`string`,description:`Hostname of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access ssh-gen.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`ssh-gen`,`--hostname`,i.hostname),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`login <url>`,describe:`Authenticate with an Access application and store its JWT through cloudflared.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access login.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`login`),i.quiet&&a.push(`--quiet`),a.push(i.url),new e(await r(a))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{d as t}from"./dist-DfMipWKR.mjs";import{existsSync as n}from"node:fs";import{join as r}from"node:path";const i={command:`deploy [directory]`,describe:`Deploy a directory of static assets as a Pages deployment`,builder:e=>e.positional(`directory`,{type:`string`,description:`Pages build output directory (not deployed by cf)`}),handler:i=>{throw i.local?Error(`--local is not supported by cf pages deploy.`):(n(r(t(console).getCacheFolder(),`pages.json`))?console.error("Legacy Pages is not supported in `cf`. Please use `npx wrangler pages deploy` for this project."):console.error("Legacy Pages is not supported in `cf`. To deploy to the new version of Pages on Workers, use `cf deploy` instead."),new e(1))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{d as t}from"./dist-BuCJ_55d.mjs";import{existsSync as n}from"node:fs";import{join as r}from"node:path";const i={command:`deploy [directory]`,describe:`Deploy a directory of static assets as a Pages deployment`,builder:e=>e.positional(`directory`,{type:`string`,description:`Pages build output directory (not deployed by cf)`}),handler:i=>{throw i.local?Error(`--local is not supported by cf pages deploy.`):(n(r(t(console).getCacheFolder(),`pages.json`))?console.error("Legacy Pages is not supported in `cf`. Please use `npx wrangler pages deploy` for this project."):console.error("Legacy Pages is not supported in `cf`. To deploy to the new version of Pages on Workers, use `cf deploy` instead."),new e(1))}};export{i as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-CPVzoKbN.mjs";import{n as r}from"./cloudflared-91JvyShh.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{r as t}from"./dotenv-CcQjGlV0.mjs";import{n}from"./context-C71TA0Yp.mjs";import{n as r}from"./cloudflared-C4KjWoEY.mjs";const i={command:`token <url>`,describe:`Print a JWT for authenticating with an Access application.`,builder:e=>e.positional(`url`,{type:`string`,description:`URL of the Access application`,demandOption:!0}),handler:async i=>{if(i.local)throw Error(`--local is not supported by cf access token.`);let a=[`access`];throw await t({mode:i.mode,local:i.local},()=>n())===`fedramp_high`&&a.push(`--fedramp`),a.push(`token`,i.url),new e(await r(a))}};export{i as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-CJ-6owN3.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
2
+ import{n as e,t}from"./metadata-C33s4rc-.mjs";import{t as n}from"./run-l2pCxS-W.mjs";import r from"node:assert";function i(e,t){return`#compdef ${e}
3
3
  compdef _${e} ${e}
4
4
 
5
5
  # zsh completion for ${e} -*- shell-script -*-
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
2
+ import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
3
3
 
4
4
  Creates an interrupt for a Magic WAN Connector.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`reboot-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`restart-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`shutdown-purge`,{type:`boolean`,description:`Purge connector state.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Interrupt action for a connector.`})}const d={command:`create <connector-id>`,describe:`Create Interrupt`,builder:u,handler:async u=>s({command:`connector-interrupts create`,classification:{safeFlags:[`reboot-purge`,`restart-purge`,`shutdown-purge`,`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf connector-interrupts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${u[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(u[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(u[`connector-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}}):c(u.body)});return}let s=await r(u),d=u.local?e:await n();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Creating`,async()=>s.connectorInterrupts.create({...e,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`});return}let f=l({reboot:{purge:u[`reboot-purge`]},restart:{purge:u[`restart-purge`]},shutdown:{purge:u[`shutdown-purge`]}});i(await o(`Creating`,async()=>s.connectorInterrupts.create({...f,account_id:d,connector_id:u[`connector-id`]})),{successLabel:`Created`})})};function f(e){return e.usage(`$0 connector-interrupts list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
2
+ import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
3
3
 
4
4
  Gets Magic WAN Connector Telemetry Event`).positional(`event-n`,{type:`string`,description:`Event n`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`event-t`,{type:`string`,description:`Event t`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <event-n>`,describe:`Get Event`,builder:c,handler:async c=>s({command:`connector-telemetry-events get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-events get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events/${c[`event-t`]==null?`<event-t>`:encodeURIComponent(String(c[`event-t`]))}.${c[`event-n`]==null?`<event-n>`:encodeURIComponent(String(c[`event-n`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"event-t":String(c[`event-t`]??``),"event-n":String(c[`event-n`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetryEvents.get({account_id:l,connector_id:c[`connector-id`],event_t:c[`event-t`],event_n:c[`event-n`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-events list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
2
+ import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
3
3
 
4
4
  Gets Magic WAN Connector Telemetry Snapshot`).positional(`snapshot-t`,{type:`string`,description:`Snapshot t`,demandOption:!0}).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get <snapshot-t>`,describe:`Get Snapshot`,builder:c,handler:async c=>s({command:`connector-telemetry-snapshots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-telemetry-snapshots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots/${c[`snapshot-t`]==null?`<snapshot-t>`:encodeURIComponent(String(c[`snapshot-t`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``),"snapshot-t":String(c[`snapshot-t`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.connectorTelemetrySnapshots.get({account_id:l,connector_id:c[`connector-id`],snapshot_t:c[`snapshot-t`]})),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 connector-telemetry-snapshots list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B3OyWKkW.mjs";import{a as t,t as n}from"./context-CPVzoKbN.mjs";import{r}from"./auth-B_Utev-x.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DS2fwfNP.mjs";import{t as s}from"./run-CJ-6owN3.mjs";import"./telemetry-D2UwfCd1.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-doX80PCd.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
2
+ import{t as e}from"./local-C9i1d0ma.mjs";import{a as t,t as n}from"./context-C71TA0Yp.mjs";import{r}from"./auth-CHTMVVW3.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BlxgG8Ss.mjs";import{t as s}from"./run-l2pCxS-W.mjs";import"./telemetry-BqtdHwmi.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{n as d}from"./prompt-ClEoR47s.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 connectors create
3
3
 
4
4
  Creates a Magic WAN Connector.`).option(`device-id`,{type:`string`,description:`The device.id field`}).option(`device-provision-license`,{type:`boolean`,description:`When true, create and provision a new licence key for the connector.`}).option(`device-serial-number`,{type:`string`,description:`The device.serial_number field`}).option(`activated`,{type:`boolean`,description:`The activated field`}).option(`interrupt-window-days-of-week`,{type:`string`,array:!0,description:`Allowed days of the week for upgrades. Default is all days.`}).option(`interrupt-window-duration-hours`,{type:`number`,description:`The interrupt_window_duration_hours field`}).option(`interrupt-window-embargo-dates`,{type:`string`,array:!0,description:`List of dates (YYYY-MM-DD) when upgrades are blocked.`}).option(`interrupt-window-hour-of-day`,{type:`number`,description:`The interrupt_window_hour_of_day field`}).option(`notes`,{type:`string`,description:`The notes field`}).option(`timezone`,{type:`string`,description:`The timezone field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create Connector`,builder:p,handler:async d=>s({command:`connectors create`,classification:{safeFlags:[`device-provision-license`,`activated`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/magic/connectors`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.connectors.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({device:{id:u(d[`device-id`],`device-id`,`text`),provision_license:d[`device-provision-license`],serial_number:u(d[`device-serial-number`],`device-serial-number`,`text`)},activated:d.activated,interrupt_window_days_of_week:d[`interrupt-window-days-of-week`],interrupt_window_duration_hours:d[`interrupt-window-duration-hours`],interrupt_window_embargo_dates:d[`interrupt-window-embargo-dates`],interrupt_window_hour_of_day:d[`interrupt-window-hour-of-day`],notes:u(d.notes,`notes`,`text`),timezone:u(d.timezone,`timezone`,`text`)});i(await o(`Creating`,async()=>s.connectors.create({...p,account_id:f})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 connectors delete <connector-id>
5
5