cf 0.14.0 → 1.0.0-beta.0

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 (451) hide show
  1. package/LICENSE-APACHE +176 -0
  2. package/LICENSE-MIT +25 -0
  3. package/README.md +6 -7
  4. package/dist/_meta/commands.json +4040 -1629
  5. package/dist/_meta/hand-written-commands.json +16 -43
  6. package/dist/_meta/schemas.json +445 -756
  7. package/dist/abuse-reports-BwsJLiPN.mjs +26 -0
  8. package/dist/access-BVbIajYr.mjs +27 -0
  9. package/dist/account-DBLarar2.mjs +12 -0
  10. package/dist/account-tags-BNrSShjj.mjs +15 -0
  11. package/dist/accounts-CCAnDjFk.mjs +132 -0
  12. package/dist/acm-ZPYQbZQr.mjs +15 -0
  13. package/dist/addressing-BFpzLfTn.mjs +93 -0
  14. package/dist/agent-memory-DEvy2dLU.mjs +34 -0
  15. package/dist/ai-BF0_0NtS.mjs +31 -0
  16. package/dist/ai-audit-Dn03zntn.mjs +6 -0
  17. package/dist/ai-gateway-CVABbCjv.mjs +147 -0
  18. package/dist/ai-search-g0tR8Cut.mjs +79 -0
  19. package/dist/ai-security-BXXA0Jnk.mjs +10 -0
  20. package/dist/alerting-Bst10SOG.mjs +56 -0
  21. package/dist/analytics-DgEaxta8.mjs +21 -0
  22. package/dist/analytics_engine-B4DvcYmB.mjs +4 -0
  23. package/dist/{lifecycle-CadF_i2n.mjs → ansi-styles-eKEZXVwN.mjs} +1 -1
  24. package/dist/api-security-Dkx1Codr.mjs +154 -0
  25. package/dist/argo-BvswWPlP.mjs +10 -0
  26. package/dist/artifacts-D8kZKJq0.mjs +43 -0
  27. package/dist/audit-logs-Bp_yQpXJ.mjs +4 -0
  28. package/dist/auth-B9w55oRg.mjs +2 -0
  29. package/dist/auth-C80y97yu.mjs +8 -0
  30. package/dist/billing-Cqj64fqz.mjs +23 -0
  31. package/dist/bot-management-CzZx_aml.mjs +9 -0
  32. package/dist/botnet-feed-Co0c8Xdj.mjs +11 -0
  33. package/dist/brand-protection-CDsGaPIl.mjs +27 -0
  34. package/dist/browser-extension-BRHJm3Qf.mjs +15 -0
  35. package/dist/browser-run-DFrohJ1p.mjs +46 -0
  36. package/dist/build-BbjcJxKq.mjs +2 -0
  37. package/dist/build-DQh5-KK4.mjs +2 -0
  38. package/dist/builds-CamhClyb.mjs +71 -0
  39. package/dist/cache-BiTk4-Zc.mjs +45 -0
  40. package/dist/certificate-authorities-Dal9DNjW.mjs +6 -0
  41. package/dist/cf-oadujOtC.mjs +18 -0
  42. package/dist/{chunk-6EUZQHAF-B7bSMYLe.mjs → chunk-6EUZQHAF-QVTL_mC-.mjs} +1 -1
  43. package/dist/chunk-DL5FNmn1.mjs +2 -0
  44. package/dist/{chunk-Q72B4Q5Z-CPy_WJKU.mjs → chunk-Q72B4Q5Z-Cr1H_iK6.mjs} +1 -1
  45. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +2 -0
  46. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +2 -0
  47. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +374 -0
  48. package/dist/client-certificates-DDisXoTE.mjs +13 -0
  49. package/dist/client-side-security-CIO_YPtN.mjs +63 -0
  50. package/dist/cloud-connector-vwdixea0.mjs +6 -0
  51. package/dist/cloudflared-DhItYrCq.mjs +2 -0
  52. package/dist/cloudforce-one-C1cFVBGK.mjs +456 -0
  53. package/dist/command-BP7ldws1.mjs +2 -0
  54. package/dist/command-BtNRBTP6.mjs +2 -0
  55. package/dist/{command-BL6weJf3.mjs → command-CF0giIIc.mjs} +1 -1
  56. package/dist/command-Ck9rbHA4.mjs +2 -0
  57. package/dist/{completions-Dn621okY.mjs → completions-xPLd1cvL.mjs} +3 -3
  58. package/dist/{config-BY6KpMZs.mjs → config-B4vIa0zp.mjs} +1 -1
  59. package/dist/connector-interrupts-DQ5T-HMN.mjs +6 -0
  60. package/dist/connector-telemetry-events-DWam38_9.mjs +6 -0
  61. package/dist/connector-telemetry-snapshots-DX6AJf9Q.mjs +6 -0
  62. package/dist/connectors-CBhLWVd-.mjs +15 -0
  63. package/dist/{dist-CFQREIRi.mjs → containers-Bx_44bmJ.mjs} +84 -83
  64. package/dist/containers-C7blN-pe.mjs +78 -0
  65. package/dist/content-scan-CC91dAlv.mjs +14 -0
  66. package/dist/cps-D9a4N_bH.mjs +6 -0
  67. package/dist/csamScanner-T7nbCnep.mjs +10 -0
  68. package/dist/ct-alerting-CkjNJlla.mjs +5 -0
  69. package/dist/custom-certificates-DnWnt9oJ.mjs +17 -0
  70. package/dist/custom-csrs-Db2pF9Ib.mjs +11 -0
  71. package/dist/custom-hostnames-B_N-uSIa.mjs +27 -0
  72. package/dist/custom-nameservers-DPA_sFY8.mjs +9 -0
  73. package/dist/custom-pages-D6fxEBoh.mjs +21 -0
  74. package/dist/d1-DXs1xVmH.mjs +45 -0
  75. package/dist/data-security-CVZAIzhe.mjs +71 -0
  76. package/dist/dcv-delegation-as1ue_wx.mjs +4 -0
  77. package/dist/delegate-GctF_lrq.mjs +2 -0
  78. package/dist/delegate.mjs +1 -1
  79. package/dist/{deploy-BtETDvDA.mjs → deploy-D2XXCkqk.mjs} +1 -1
  80. package/dist/{deploy-input-BoLTdQzS.mjs → deploy-input-BCYyKXpp.mjs} +1 -1
  81. package/dist/{dev-B5WcIpEr.mjs → dev-nsNxyg2D.mjs} +1 -1
  82. package/dist/diagnostics-BKH1Oh-C.mjs +15 -0
  83. package/dist/{dialog-Bud0hiYv.mjs → dialog-Dx4rRcKM.mjs} +1 -1
  84. package/dist/dist-BDOzKthe.mjs +48 -0
  85. package/dist/{dist-BRg_z9Ut.mjs → dist-BpadEMNY.mjs} +1 -1
  86. package/dist/dist-dc4E1u01.mjs +272 -0
  87. package/dist/dls-C5kAQsN6.mjs +17 -0
  88. package/dist/dns-CYwXrdJO.mjs +135 -0
  89. package/dist/dns-firewall-BEw4QcXj.mjs +71 -0
  90. package/dist/{dot-prop-6SRZBKHT-wIVDg_fl.mjs → dot-prop-6SRZBKHT-Dj7YOlwR.mjs} +1 -1
  91. package/dist/dry-run-CLX6Pbtq.mjs +2 -0
  92. package/dist/durable-objects-3jvUgzKd.mjs +8 -0
  93. package/dist/email-auth-B3MD8FrJ.mjs +6 -0
  94. package/dist/email-routing-C4YhZGPw.mjs +45 -0
  95. package/dist/email-security-BcFyWNby.mjs +160 -0
  96. package/dist/email-sending-BO1GOAho.mjs +47 -0
  97. package/dist/error-sanitization-BkgUhGVc.mjs +2 -0
  98. package/dist/error-sanitization-DOlqWkNu.mjs +2 -0
  99. package/dist/fieldExtractors-BJDnzNCN.mjs +9 -0
  100. package/dist/firewall-BSMa9aH3.mjs +56 -0
  101. package/dist/flagship-BJYMb7hb.mjs +28 -0
  102. package/dist/fraud-C7kS7kP9.mjs +22 -0
  103. package/dist/google-tag-gateway-8VR-j0sa.mjs +6 -0
  104. package/dist/healthchecks-BJleItOD.mjs +22 -0
  105. package/dist/hostnames-CHajvoHa.mjs +11 -0
  106. package/dist/hyperdrive-DlxQrok-.mjs +37 -0
  107. package/dist/iam-B7oTr6vW.mjs +52 -0
  108. package/dist/images-xLAYe436.mjs +71 -0
  109. package/dist/index.mjs +1 -1
  110. package/dist/intel-DwZXY1YE.mjs +76 -0
  111. package/dist/{interactive-CGOh-aYq.mjs → interactive-B6woOLo-.mjs} +23 -23
  112. package/dist/interactive-DnUvQHjc.mjs +2 -0
  113. package/dist/ips-BC_9nKE7.mjs +4 -0
  114. package/dist/keyless-certificates-CtsCsbZ2.mjs +13 -0
  115. package/dist/keys-K-GFzhku.mjs +4 -0
  116. package/dist/kv-Bfwz_ULu.mjs +21 -0
  117. package/dist/leaked-credential-checks-D8UuxztO.mjs +18 -0
  118. package/dist/lifecycle-Ichnb2x1.mjs +2 -0
  119. package/dist/load-balancers-B0XeGLhT.mjs +76 -0
  120. package/dist/local-B6b2OIBW.mjs +2 -0
  121. package/dist/local-BrfySqnx.mjs +2 -0
  122. package/dist/{local-runtime-Dj8k-p62.mjs → local-runtime-DD8DAIlm.mjs} +1 -1
  123. package/dist/login-CAsRUF4c.mjs +2 -0
  124. package/dist/login-DaglE6WA.mjs +5 -0
  125. package/dist/logo-matches-DWg5ezsM.mjs +6 -0
  126. package/dist/logos-6A6gJC5C.mjs +7 -0
  127. package/dist/logpush-DwehajAw.mjs +46 -0
  128. package/dist/logs-BWg7YymF.mjs +48 -0
  129. package/dist/magic-cloud-networking--14hNj2F.mjs +71 -0
  130. package/dist/magic-network-monitoring-Dzo4L6kd.mjs +36 -0
  131. package/dist/magic-transit-DDO0A5v4.mjs +387 -0
  132. package/dist/managed-defense-DQ0iwWdG.mjs +18 -0
  133. package/dist/managed-transforms-DDIdcPG0.mjs +9 -0
  134. package/dist/matches-D6ahHNaP.mjs +6 -0
  135. package/dist/mcp-BcIrLbRv.mjs +32 -0
  136. package/dist/mesh-wLiPcWyN.mjs +26 -0
  137. package/dist/mtls-certificates-AEuNOERQ.mjs +13 -0
  138. package/dist/network-DZsrs_sw.mjs +50 -0
  139. package/dist/network-interconnects-Cjbu4EMv.mjs +73 -0
  140. package/dist/oauth-C-QCVfWz.mjs +14 -0
  141. package/dist/oauth-Cu1twz9z.mjs +2 -0
  142. package/dist/oauth-clients-DR0hzakz.mjs +16 -0
  143. package/dist/oauth-scopes-BDNpJJ32.mjs +4 -0
  144. package/dist/observability-BnHy2M6p.mjs +80 -0
  145. package/dist/{open-PBXRGS4R-ClEt4E8F.mjs → open-PBXRGS4R-C4CKEADM.mjs} +1 -1
  146. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +4 -0
  147. package/dist/organization-iasRm69J.mjs +75 -0
  148. package/dist/organizations-CUzCIKXV.mjs +4 -0
  149. package/dist/origin-ca-certificates-iQXSqBI0.mjs +11 -0
  150. package/dist/origin-post-quantum-encryption-DcMDK6Tz.mjs +6 -0
  151. package/dist/origin-tls-client-auth-D1X26X7y.mjs +30 -0
  152. package/dist/{output-Z2lQmPUW.mjs → output-Bia1u2k5.mjs} +1 -1
  153. package/dist/page-rules-CXa8EYcP.mjs +39 -0
  154. package/dist/pages-Cu0m9GSH.mjs +60 -0
  155. package/dist/pay-per-crawl-DmF8xlm_.mjs +65 -0
  156. package/dist/pay-per-use-DIp2fwJU.mjs +6 -0
  157. package/dist/pipelines-MmXlsxYO.mjs +44 -0
  158. package/dist/precursor-jqeEG_mJ.mjs +4 -0
  159. package/dist/previews-Cg6lc24N.mjs +4 -0
  160. package/dist/progress-Bpp73hIu.mjs +2 -0
  161. package/dist/{prompt-BP8XrQSj.mjs → prompt-CpZztV8c.mjs} +1 -1
  162. package/dist/queries-VzdcSR5H.mjs +9 -0
  163. package/dist/queues-BZYl2emH.mjs +63 -0
  164. package/dist/r2-data-catalog-DISnPFPY.mjs +44 -0
  165. package/dist/r2-omcKF8_A.mjs +127 -0
  166. package/dist/radar-JzBTD249.mjs +300 -0
  167. package/dist/{raw-fetch-DNH2V8qH.mjs → raw-fetch-DxGs_eRm.mjs} +1 -1
  168. package/dist/realtime-yIdAJ0Yf.mjs +172 -0
  169. package/dist/registrar-D-Li9gNk.mjs +43 -0
  170. package/dist/registrar-sandbox-CKSSHAyv.mjs +56 -0
  171. package/dist/{registry-BrtVdMrC.mjs → registry-vreNkX6u.mjs} +1 -1
  172. package/dist/reporting-Cf-pnw6h.mjs +14 -0
  173. package/dist/request-headers-DaXBfmVn.mjs +2 -0
  174. package/dist/request-tracers-BegIQTzt.mjs +4 -0
  175. package/dist/resolve-BXemCSyA.mjs +2 -0
  176. package/dist/resolve-CUDKxUrW.mjs +2 -0
  177. package/dist/resource-sharing-DEVgiYzM.mjs +40 -0
  178. package/dist/resource-tagging-Cm2yJkU9.mjs +4 -0
  179. package/dist/rules-DDCa7cYF.mjs +18 -0
  180. package/dist/rulesets-BhS7Hvtu.mjs +37 -0
  181. package/dist/rum-EIj9ViSn.mjs +30 -0
  182. package/dist/run-CSFE1qVX.mjs +2 -0
  183. package/dist/run-ChM_YpZ0.mjs +2 -0
  184. package/dist/{schema-DmuJtMN5.mjs → schema-DCBb3Fcs.mjs} +1 -1
  185. package/dist/{schema-flags-CUGxFeZe.mjs → schema-flags--GosoCMU.mjs} +1 -1
  186. package/dist/scim-DA83eNe-.mjs +18 -0
  187. package/dist/{sdk-Bvqx-_3z.mjs → sdk-CvIO3tWS.mjs} +1 -1
  188. package/dist/secrets-store-BTd3eGIB.mjs +24 -0
  189. package/dist/security-center-DbH_7h-T.mjs +30 -0
  190. package/dist/security-txt-DSrHhVEN.mjs +9 -0
  191. package/dist/shared-CtBkOWGN.mjs +2 -0
  192. package/dist/smart-shield-DnSTo-OI.mjs +24 -0
  193. package/dist/snippets-An5kQs33.mjs +20 -0
  194. package/dist/source-BR4_k2ad.mjs +6 -0
  195. package/dist/spawn-7IW1UyoH.mjs +523 -0
  196. package/dist/spectrum-Ci79n7fd.mjs +83 -0
  197. package/dist/speed-BBL7LrLn.mjs +24 -0
  198. package/dist/src-CNHNCZpy.mjs +108 -0
  199. package/dist/ssl-B2psFIRm.mjs +45 -0
  200. package/dist/startup-profile-CYEokTVe.mjs +2 -0
  201. package/dist/startup-profile-CgWHy4rE.mjs +17 -0
  202. package/dist/state-BxCejn42.mjs +2 -0
  203. package/dist/state-DSzkxXML.mjs +2 -0
  204. package/dist/stream-Du0Q7UOh.mjs +102 -0
  205. package/dist/submit-CU8S2jBT.mjs +4 -0
  206. package/dist/tags-C3l5aZSi.mjs +4 -0
  207. package/dist/telemetry-CNt8H3aA.mjs +2 -0
  208. package/dist/{telemetry-2s9Y3FaN.mjs → telemetry-Dk1GcQ0u.mjs} +1 -1
  209. package/dist/telemetry-PHe8XxA2.mjs +2 -0
  210. package/dist/tenant-BZ0ysR9L.mjs +12 -0
  211. package/dist/tenant-custom-nameservers-DtKeyM5J.mjs +9 -0
  212. package/dist/{tools-Dz1JCrHd.mjs → tools-BMKpYraQ.mjs} +1 -1
  213. package/dist/tunnels-D1tRWQQi.mjs +29 -0
  214. package/dist/turnstile-DBa4_Vyz.mjs +33 -0
  215. package/dist/ui-DH95w1Qk.mjs +5 -0
  216. package/dist/undici-DTSBJHNS.mjs +96 -0
  217. package/dist/update-check-AAn7EXw8.mjs +2 -0
  218. package/dist/update-check-BbIXBq1o.mjs +2 -0
  219. package/dist/update-check-worker.mjs +2 -0
  220. package/dist/url-info-BRA0XGT2.mjs +4 -0
  221. package/dist/url-normalization-B6N2m5s6.mjs +9 -0
  222. package/dist/url-scanner-CeKkzkhe.mjs +16 -0
  223. package/dist/user-CftksgmF.mjs +112 -0
  224. package/dist/values-m7w9PX3o.mjs +4 -0
  225. package/dist/vectorize-BWBEtsgZ.mjs +32 -0
  226. package/dist/version-cPq-WKL8.mjs +2 -0
  227. package/dist/waiting-rooms-BVZSYTNJ.mjs +53 -0
  228. package/dist/web-assets-CLU5vAgP.mjs +64 -0
  229. package/dist/web3-Dkd4XRNH.mjs +28 -0
  230. package/dist/workers-BQi4_SBS.mjs +36 -0
  231. package/dist/workers-builds-BgtPSDYJ.mjs +14 -0
  232. package/dist/workers-for-platforms-actLCM6Q.mjs +25 -0
  233. package/dist/workers-vpc-DjGfJgQn.mjs +13 -0
  234. package/dist/workflows-Cm7WsAgB.mjs +43 -0
  235. package/dist/zaraz-DurWe32F.mjs +22 -0
  236. package/dist/zero-trust-D8SVU8YZ.mjs +795 -0
  237. package/dist/zone-B3AEAfcd.mjs +4 -0
  238. package/dist/zones-DiX5LoSU.mjs +124 -0
  239. package/package.json +26 -11
  240. package/dist/_meta/agent-context.json +0 -195
  241. package/dist/abuse-reports-CDFjJ2e8.mjs +0 -8
  242. package/dist/access-BoT1waG4.mjs +0 -11
  243. package/dist/account-agnMUKWj.mjs +0 -2
  244. package/dist/account-tags-BRMMHCee.mjs +0 -9
  245. package/dist/accounts-Cut77dAt.mjs +0 -30
  246. package/dist/acm-C8WgXNCl.mjs +0 -3
  247. package/dist/addressing-CR8EV42x.mjs +0 -13
  248. package/dist/agent-context-Wj5TRRbW.mjs +0 -8
  249. package/dist/agent-memory-CVJpKKZy.mjs +0 -6
  250. package/dist/ai-BbNYt-yI.mjs +0 -5
  251. package/dist/ai-audit-mVajM-2i.mjs +0 -2
  252. package/dist/ai-gateway-BsepSA_v.mjs +0 -13
  253. package/dist/ai-search-DbEJqm5-.mjs +0 -7
  254. package/dist/ai-security-DmyB5EYk.mjs +0 -4
  255. package/dist/alerting-dmy3hd8O.mjs +0 -6
  256. package/dist/analytics-B1xBMla0.mjs +0 -5
  257. package/dist/analytics_engine-DazCn3iC.mjs +0 -2
  258. package/dist/api-security-0HXCzfHk.mjs +0 -50
  259. package/dist/argo-DSHsE8zv.mjs +0 -2
  260. package/dist/artifacts-CwiU9Mxu.mjs +0 -5
  261. package/dist/audit-logs-DwFtMDwH.mjs +0 -2
  262. package/dist/auth-B0ZyXc3y.mjs +0 -5
  263. package/dist/auth-DWxtJ918.mjs +0 -8
  264. package/dist/billing-Cbpadkgu.mjs +0 -3
  265. package/dist/bot-management-B6M2Vyyn.mjs +0 -5
  266. package/dist/botnet-feed-Dn8UuE4h.mjs +0 -3
  267. package/dist/brand-protection-B5R0b3pu.mjs +0 -3
  268. package/dist/browser-extension-D55pYZf_.mjs +0 -3
  269. package/dist/browser-run-C1b2VkGB.mjs +0 -4
  270. package/dist/build-CP2JUfV1.mjs +0 -2
  271. package/dist/builds-CVEXO_4a.mjs +0 -9
  272. package/dist/cache-BU5xX82E.mjs +0 -9
  273. package/dist/certificate-authorities--tZTWJWD.mjs +0 -2
  274. package/dist/cf-BV2HLCQm.mjs +0 -18
  275. package/dist/chunk-QBZBEHZB-BcCMlc8C.mjs +0 -2
  276. package/dist/chunk-XLADBZ7F-DgFrtUhW.mjs +0 -103
  277. package/dist/chunk-vbHwaUoU.mjs +0 -2
  278. package/dist/client-certificates-DX84qeYG.mjs +0 -3
  279. package/dist/client-side-security-DsSO2rZQ.mjs +0 -37
  280. package/dist/cloud-connector-cf8qlxap.mjs +0 -2
  281. package/dist/cloudforce-one-DzVXorbu.mjs +0 -32
  282. package/dist/command-DYrspBc0.mjs +0 -2
  283. package/dist/connector-interrupts-DqpqPPkp.mjs +0 -2
  284. package/dist/connector-telemetry-events-CCD-_B-8.mjs +0 -2
  285. package/dist/connector-telemetry-snapshots-D3CeGGhk.mjs +0 -2
  286. package/dist/connectors-aPQspZdg.mjs +0 -3
  287. package/dist/containers-D0Kjl8h-.mjs +0 -58
  288. package/dist/content-scan-BVx18XmS.mjs +0 -4
  289. package/dist/cps-ByazyM0x.mjs +0 -2
  290. package/dist/csamScanner-OG5lQxBC.mjs +0 -6
  291. package/dist/ct-alerting-BJx5n8Zf.mjs +0 -3
  292. package/dist/custom-certificates-BuJ2e9TA.mjs +0 -5
  293. package/dist/custom-csrs-CR_5qbST.mjs +0 -3
  294. package/dist/custom-hostnames-BzDTsQXb.mjs +0 -5
  295. package/dist/custom-nameservers-OfMPRGkD.mjs +0 -3
  296. package/dist/custom-pages-BmGXoTIo.mjs +0 -3
  297. package/dist/d1-DedC8N0N.mjs +0 -21
  298. package/dist/data-security-B2UB26ry.mjs +0 -7
  299. package/dist/dcv-delegation-C11vmzbG.mjs +0 -2
  300. package/dist/diagnostics-Cf6BLpAo.mjs +0 -3
  301. package/dist/dist-CyisSore.mjs +0 -371
  302. package/dist/dist-Dr4Hg_Up.mjs +0 -48
  303. package/dist/dls-R6PvHbhj.mjs +0 -3
  304. package/dist/dns-Cl8se64c.mjs +0 -29
  305. package/dist/dns-firewall-WtmKilDT.mjs +0 -57
  306. package/dist/dry-run-YSQndLvt.mjs +0 -2
  307. package/dist/durable-objects-jfVU6yp_.mjs +0 -2
  308. package/dist/email-auth-DPmZ85eW.mjs +0 -2
  309. package/dist/email-routing-Bf6DbNTr.mjs +0 -6
  310. package/dist/email-security-DTifjSxM.mjs +0 -18
  311. package/dist/email-sending-Dm3WkFHV.mjs +0 -7
  312. package/dist/error-sanitization-D8zuyPj_.mjs +0 -2
  313. package/dist/fieldExtractors-CeXZL0-I.mjs +0 -3
  314. package/dist/firewall-D5N2APXO.mjs +0 -8
  315. package/dist/flagship-sUOy9jei.mjs +0 -4
  316. package/dist/fraud-WLW2Ep1Z.mjs +0 -20
  317. package/dist/google-tag-gateway-lbww1FaJ.mjs +0 -2
  318. package/dist/healthchecks-0ih8Qjiw.mjs +0 -4
  319. package/dist/hostnames-Ba6FuL8K.mjs +0 -3
  320. package/dist/hyperdrive-DMqcU639.mjs +0 -21
  321. package/dist/iam-CXlYm0uC.mjs +0 -6
  322. package/dist/images-D_g1oli6.mjs +0 -8
  323. package/dist/intel-B8bS0ARd.mjs +0 -8
  324. package/dist/ips-68fzniN4.mjs +0 -2
  325. package/dist/keyless-certificates-CeLnqBvX.mjs +0 -3
  326. package/dist/keys-DkVdS2lF.mjs +0 -2
  327. package/dist/kv-gDAN50BQ.mjs +0 -5
  328. package/dist/leaked-credential-checks-DfnvHpvg.mjs +0 -4
  329. package/dist/load-balancers-m0HqyXPZ.mjs +0 -6
  330. package/dist/local-BwL_gesw.mjs +0 -2
  331. package/dist/logo-matches-DPbHlsKQ.mjs +0 -2
  332. package/dist/logos-DFBJFAYJ.mjs +0 -3
  333. package/dist/logpush-gzmlZayc.mjs +0 -4
  334. package/dist/logs-BuzwQgt5.mjs +0 -18
  335. package/dist/magic-cloud-networking-BbHCi1Vp.mjs +0 -5
  336. package/dist/magic-network-monitoring-kWMmnPTG.mjs +0 -4
  337. package/dist/magic-transit-ClSmJDKw.mjs +0 -111
  338. package/dist/managed-defense-EOihg1UR.mjs +0 -2
  339. package/dist/managed-transforms-BZ_XdGE2.mjs +0 -3
  340. package/dist/matches-B6sG0_fr.mjs +0 -2
  341. package/dist/mcp--kK0vS5i.mjs +0 -4
  342. package/dist/mesh-DfXYUHOO.mjs +0 -4
  343. package/dist/mtls-certificates-DZd-0X7l.mjs +0 -3
  344. package/dist/network-U6f_5ihp.mjs +0 -6
  345. package/dist/network-interconnects-DKZGTiYM.mjs +0 -41
  346. package/dist/oauth-BdVr2hJp.mjs +0 -14
  347. package/dist/oauth-clients-CY3OkPhC.mjs +0 -4
  348. package/dist/oauth-scopes-BTY7_5L-.mjs +0 -2
  349. package/dist/observability-Bsp-LdmJ.mjs +0 -10
  350. package/dist/organization-BSeMdj-7.mjs +0 -45
  351. package/dist/organizations-BroR48Nv.mjs +0 -2
  352. package/dist/origin-ca-certificates-jC-EMn6W.mjs +0 -3
  353. package/dist/origin-post-quantum-encryption-DIspLvA0.mjs +0 -2
  354. package/dist/origin-tls-client-auth-CZ_nUEcM.mjs +0 -4
  355. package/dist/page-rules-ZcdjPohY.mjs +0 -27
  356. package/dist/pages-W4tKa7xk.mjs +0 -14
  357. package/dist/pay-per-crawl-BNM1mJmP.mjs +0 -5
  358. package/dist/pay-per-use-DKxlnkH3.mjs +0 -2
  359. package/dist/pipelines-Dug0BR-c.mjs +0 -6
  360. package/dist/precursor-D-11DkRU.mjs +0 -4
  361. package/dist/previews-D_Nv4dR6.mjs +0 -4
  362. package/dist/progress-a5IKeKni.mjs +0 -2
  363. package/dist/queries-BdA2vJoe.mjs +0 -3
  364. package/dist/queues-Bu06ZqUE.mjs +0 -7
  365. package/dist/r2-COC9wMKb.mjs +0 -25
  366. package/dist/r2-data-catalog-CX5Rl5Qx.mjs +0 -16
  367. package/dist/radar-L-yoLIHF.mjs +0 -2
  368. package/dist/realtime-JKIiXfzi.mjs +0 -20
  369. package/dist/registrar-_dYUZrK0.mjs +0 -43
  370. package/dist/registrar-sandbox-D1yfW_Q_.mjs +0 -56
  371. package/dist/reporting-3fyoMcmb.mjs +0 -2
  372. package/dist/request-headers-BhQQAfJt.mjs +0 -2
  373. package/dist/request-tracers-TisEth2p.mjs +0 -2
  374. package/dist/resolve-CYUp6YgC.mjs +0 -2
  375. package/dist/resource-sharing-C4-dnohU.mjs +0 -6
  376. package/dist/resource-tagging-BRDifKqM.mjs +0 -2
  377. package/dist/rules-BCF3gIkw.mjs +0 -4
  378. package/dist/rulesets-wp6rllt3.mjs +0 -5
  379. package/dist/rum-B77awgoB.mjs +0 -4
  380. package/dist/run-BS8otL3u.mjs +0 -2
  381. package/dist/scim-C9BmUYil.mjs +0 -4
  382. package/dist/secrets-store-ckkZR2dM.mjs +0 -7
  383. package/dist/security-center-BCahKT57.mjs +0 -2
  384. package/dist/security-txt-0SI5du7I.mjs +0 -3
  385. package/dist/shared-D0B-7q-D.mjs +0 -2
  386. package/dist/smart-shield-BDPbrZa4.mjs +0 -4
  387. package/dist/snippets-CVRR_h0i.mjs +0 -4
  388. package/dist/spawn-DP4T92ss.mjs +0 -519
  389. package/dist/spectrum-CjNXQIQE.mjs +0 -63
  390. package/dist/speed-CrXCHk3h.mjs +0 -4
  391. package/dist/src-BbnV77C4.mjs +0 -108
  392. package/dist/ssl-DKORhHkh.mjs +0 -15
  393. package/dist/startup-profile-CBIH6yZy.mjs +0 -17
  394. package/dist/state-QUu6HfxC.mjs +0 -2
  395. package/dist/stream-wY3zi3FK.mjs +0 -16
  396. package/dist/submit-B-4oCBSk.mjs +0 -2
  397. package/dist/tags-5uJEkYJZ.mjs +0 -2
  398. package/dist/telemetry-n3NJourL.mjs +0 -2
  399. package/dist/tenant-BkFvv2o3.mjs +0 -2
  400. package/dist/tenant-custom-nameservers-DcjC1q0r.mjs +0 -3
  401. package/dist/tunnel-Cd4ipbvJ.mjs +0 -2
  402. package/dist/tunnels-9Zg3ePwD.mjs +0 -5
  403. package/dist/turnstile-BTwKYpzD.mjs +0 -23
  404. package/dist/ui-DQSZeaG5.mjs +0 -5
  405. package/dist/url-info-D7Y61BFd.mjs +0 -2
  406. package/dist/url-normalization-B4n8HiNQ.mjs +0 -3
  407. package/dist/url-scanner-CiCIltSQ.mjs +0 -2
  408. package/dist/user-DDFDGJ0Y.mjs +0 -12
  409. package/dist/values-DRznB_Cl.mjs +0 -2
  410. package/dist/vectorize-CbznPhzq.mjs +0 -4
  411. package/dist/waiting-rooms-CKP5hYBK.mjs +0 -11
  412. package/dist/web-assets-C-ZoSkkh.mjs +0 -8
  413. package/dist/web3-DwlN4dOw.mjs +0 -4
  414. package/dist/workers-builds-ECw_x_kp.mjs +0 -2
  415. package/dist/workers-for-platforms-BYGy46R6.mjs +0 -5
  416. package/dist/workers-vpc-CCosFcxz.mjs +0 -3
  417. package/dist/workers-zFMrbUkg.mjs +0 -6
  418. package/dist/workflows-C8GXGDRW.mjs +0 -5
  419. package/dist/zaraz-B5UIREaz.mjs +0 -2
  420. package/dist/zero-trust-DUp0XoIo.mjs +0 -91
  421. package/dist/zone-BGLkk-mL.mjs +0 -2
  422. package/dist/zones-CwYjNXMH.mjs +0 -44
  423. /package/dist/{alerts-CarPLL8k.mjs → alerts-CstOk8n0.mjs} +0 -0
  424. /package/dist/{autorag-zK-3harf.mjs → autorag-PRTwXGgn.mjs} +0 -0
  425. /package/dist/{body-parser-Cmw7PZ7a.mjs → body-parser-CUWbw_Tq.mjs} +0 -0
  426. /package/dist/{brands-CpgTsX8h.mjs → brands-BHRXlWDm.mjs} +0 -0
  427. /package/dist/{clear-C5gzBA8G.mjs → clear-UvKESVx3.mjs} +0 -0
  428. /package/dist/{cli-types-abvWQN3T.mjs → cli-types-tt_LZMbn.mjs} +0 -0
  429. /package/dist/{connector-telemetry-events-latest-BY-dbhQZ.mjs → connector-telemetry-events-latest-DwnFeZg0.mjs} +0 -0
  430. /package/dist/{connector-telemetry-snapshots-latest-DoMvHvCO.mjs → connector-telemetry-snapshots-latest-Dv6rZlxs.mjs} +0 -0
  431. /package/dist/{domain-info-Cw3G4nap.mjs → domain-info-BqTDXNBo.mjs} +0 -0
  432. /package/dist/{health-DkEXPkS6.mjs → health-CwPzzrV6.mjs} +0 -0
  433. /package/dist/{input-validation-nF-0Ze2h.mjs → input-validation-Ch4Vllrm.mjs} +0 -0
  434. /package/dist/{internal-4fU2r5en.mjs → internal-WLHfxX64.mjs} +0 -0
  435. /package/dist/{live-B4iGrwY2.mjs → live-D_k7eHdv.mjs} +0 -0
  436. /package/dist/{metadata-C5fJJr-k.mjs → metadata-APBiectA.mjs} +0 -0
  437. /package/dist/{project-settings-Bc3wYHo8.mjs → project-settings-DSXevRvj.mjs} +0 -0
  438. /package/dist/{rate-limit-analytics-DNsAFIeM.mjs → rate-limit-analytics-CDTPxSET.mjs} +0 -0
  439. /package/dist/{rate-limits-CsOim7bm.mjs → rate-limits-C3K9smdl.mjs} +0 -0
  440. /package/dist/{ready-tTe-zcIw.mjs → ready-CvwvbdTX.mjs} +0 -0
  441. /package/dist/{recent-submissions-B3eTV5yC.mjs → recent-submissions-CjzcT-iH.mjs} +0 -0
  442. /package/dist/{refute-BY76YVrT.mjs → refute-CIAFMj00.mjs} +0 -0
  443. /package/dist/{scan-logo-DdoF_a5y.mjs → scan-logo-zFkphtQ3.mjs} +0 -0
  444. /package/dist/{scan-page-sSgLwwZN.mjs → scan-page-CLl2MAkZ.mjs} +0 -0
  445. /package/dist/{search-BFvQr-sl.mjs → search-12jA1b4l.mjs} +0 -0
  446. /package/dist/{signed-url-Cr8hiZPJ.mjs → signed-url-U0T_PEMR.mjs} +0 -0
  447. /package/dist/{submission-info-DT2mLnu1.mjs → submission-info-CZ84a3Nb.mjs} +0 -0
  448. /package/dist/{theme-CeVf-5qG.mjs → theme-BiIYWOed.mjs} +0 -0
  449. /package/dist/{total-queries-6gs5iy9T.mjs → total-queries-CJTc9Pde.mjs} +0 -0
  450. /package/dist/{tracked-domains-D6XKO2EV.mjs → tracked-domains-BKLxnnSv.mjs} +0 -0
  451. /package/dist/{verify-CM1NakP0.mjs → verify-CZW5Fo1q.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./src-CNHNCZpy.mjs";import{n as t,t as n}from"./cloudflared-DhItYrCq.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};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./src-CNHNCZpy.mjs";import{r as t}from"./resolve-CUDKxUrW.mjs";import{m as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{n as a,t as o}from"./cloudflared-DhItYrCq.mjs";const s=1e3;async function c(e,n,r){if(t(r))return r;let i=0,a;for(let t=1;;t++){let o=await e.tunnel.list({account_id:n,name:r,is_deleted:!1,page:t,per_page:s}),c=o.result??[];for(let e of c)e.name===r&&(i++,a=e.id);let l=o.result_info?.per_page||s;if(c.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 l(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 u(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:o,default:`info`,description:`cloudflared log level`})}const d={command:`run [tunnel]`,describe:`Run a named Cloudflare Tunnel using the cf-managed cloudflared binary.`,builder:u,handler:async t=>{if(t.local)throw Error(`--local is not supported by cf tunnels run.`);let o=t.token,s=t.tunnel;if(!o){if(!s)throw Error(`Either a tunnel name/UUID or --token must be provided.`);let e=await r(t),a=await n();o=await i(`Fetching tunnel token`,async()=>l(e,a,await c(e,a,s)))}let u=[`tunnel`,`--loglevel`,t[`log-level`]];throw u.push(`run`),new e(await a(u,{env:{TUNNEL_TOKEN:o}}))}};export{d as default};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./project-settings-Bc3wYHo8.mjs";import{t as n}from"./output-Z2lQmPUW.mjs";import*as r from"node:path";import*as i from"node:fs/promises";import{generateTypes as a,loadAndParseConfig as o}from"@cloudflare/config";import{RUNTIME_TYPES_MARKER as s,generateRuntimeTypes as c}from"@cloudflare/runtime-types";const l=r.join(`.cloudflare`,`types`,`index.d.ts`);function u(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}function d(e){return e.map(e=>{let t=e.path.filter(e=>typeof e!=`symbol`).join(`.`);return` - ${t?`${t}: `:``}${e.message}`}).join(`
2
+ import{n as e,t}from"./project-settings-DSXevRvj.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import*as r from"node:path";import*as i from"node:fs/promises";import{generateTypes as a,loadAndParseConfig as o}from"@cloudflare/config";import{RUNTIME_TYPES_MARKER as s,generateRuntimeTypes as c}from"@cloudflare/runtime-types";const l=r.join(`.cloudflare`,`types`,`index.d.ts`);function u(e){return e.option(`include-runtime`,{type:`boolean`,description:`Include Cloudflare Workers runtime types`,default:!0})}function d(e){return e.map(e=>{let t=e.path.filter(e=>typeof e!=`symbol`).join(`.`);return` - ${t?`${t}: `:``}${e.message}`}).join(`
3
3
  `)}function f(e,t){let n=r.relative(e,t).split(r.sep).join(`/`);return n.startsWith(`.`)?n:`./${n}`}const p={command:`types`,describe:`Generate types from cloudflare.config.ts`,builder:u,handler:async u=>{if(u.local)throw Error(`--local is not supported by cf workers types.`);let p=e();if(p===null)throw Error(`${t} is required by cf workers types.`);let m=await o(p,{isPreview:!1,mode:u.mode});if(!m.result.success)throw Error(`Invalid ${t}:\n${d(m.result.error.issues)}`);let h=m.result.data.worker;if(h===void 0)throw Error(`${t} must define a Worker to generate types.`);let g=r.dirname(p),_=r.join(g,l),v;try{v=await i.readFile(_,`utf8`)}catch{}let y=a({configPath:f(r.dirname(_),p),packageName:`cf/config`});if(u.includeRuntime){let{runtimeHeader:e,runtimeTypes:t}=await c({compatibilityDate:h.compatibilityDate,compatibilityFlags:h.compatibilityFlags??[],existingContent:v});y+=`\n${e}\n${s}\n${t}`}v!==y&&(await i.mkdir(r.dirname(_),{recursive:!0}),await i.writeFile(_,y)),n({path:r.relative(process.cwd(),_)},{quiet:u.quiet})}};export{p as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{d as e}from"./dist-dc4E1u01.mjs";import{t}from"./chunk-QBZBEHZB-Byagrlop.mjs";import{i as n,n as r,t as i}from"./startup-profile-CgWHy4rE.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{a as s,i as c,n as l,r as u}from"./build-BbjcJxKq.mjs";import{t as d}from"./deploy-input-BCYyKXpp.mjs";import f from"node:path";import{writeFile as p}from"node:fs/promises";import{readBuildOutput as m}from"@cloudflare/build-output-utils";function h(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})}const g={command:`check`,describe:`Profile a Worker's startup performance`,builder:h,handler:async h=>{if(h.local)throw Error(`--local is not supported by cf workers check.`);h.prebuilt||await l(h.mode,{output:h.quiet?`silent`:`stderr`});let{workers:{default:g},rootConfig:_}=await m(process.cwd());c(h.mode,_.buildContext.mode,{requireRequestedMode:h.prebuilt});let{wranglerConfig:v,builtConfig:y}=u(g,_),b=d(g,y);if(!b.resolvedEntryPointPath)throw new s(`Startup profiling requires a Worker entrypoint; assets-only projects cannot be profiled.`);if(b.bundleType===`commonjs`)throw new s(`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 x=t({name:v.name??g.config.name??`worker`,main:{name:y.manifest?.mainModule??f.basename(b.resolvedEntryPointPath),filePath:b.resolvedEntryPointPath,content:b.content,type:b.bundleType},modules:b.modules,sourceMaps:b.sourceMaps,compatibility_date:v.compatibility_date,compatibility_flags:v.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(v),{dryRun:!0,unsafe:v.unsafe}),S=await r(x),C=h.quiet?await i(x):await o(`Profiling Worker startup`,()=>i(x)),w=n(C);await p(h.outfile,JSON.stringify(C)),a({bundle:{sizeBytes:S.size,gzipSizeBytes:S.gzipSize},startup:{profileWindowMs:w.profileWindow/1e3,sampledTimeMs:w.sampledTime/1e3,activeTimeMs:w.activeTime/1e3,garbageCollectionTimeMs:w.garbageCollectionTime/1e3,idleTimeMs:w.idleTime/1e3,sampleCount:w.sampleCount},profile:h.outfile,note:`This profile was measured locally. Use it to understand where startup time is spent, not to predict startup time on Cloudflare.`},{quiet:h.quiet})}};export{g as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{n as e,t}from"./metadata-C5fJJr-k.mjs";import n from"node:assert";function r(e,t){return`#compdef ${e}
2
+ import{n as e,t}from"./metadata-APBiectA.mjs";import n from"node:assert";function r(e,t){return`#compdef ${e}
3
3
  compdef _${e} ${e}
4
4
 
5
5
  # zsh completion for ${e} -*- shell-script -*-
@@ -796,6 +796,6 @@ complete -k -c ${e} -n '__${n}_requires_order_preservation && __${n}_prepare_com
796
796
  }
797
797
 
798
798
  Register-ArgumentCompleter -CommandName '${e}' -ScriptBlock $__${n}CompleterBlock
799
- `}const s={ShellCompDirectiveError:1,ShellCompDirectiveNoSpace:2,ShellCompDirectiveNoFileComp:4,ShellCompDirectiveFilterFileExt:8,ShellCompDirectiveFilterDirs:16,ShellCompDirectiveKeepOrder:32,shellCompDirectiveMaxValue:64,ShellCompDirectiveDefault:0};var c=class{name;variadic;command;handler;constructor(e,t,n,r=!1){this.command=e,this.name=t,this.handler=n,this.variadic=r}},l=class{value;description;command;handler;alias;isBoolean;constructor(e,t,n,r,i,a){this.command=e,this.value=t,this.description=n,this.handler=r,this.alias=i,this.isBoolean=a}},u=class{value;description;options=new Map;arguments=new Map;parent;constructor(e,t){this.value=e,this.description=t}option(e,t,n,r){let i,a,o;typeof n==`function`?(i=n,a=r,o=!1):typeof n==`string`?(i=void 0,a=n,o=!0):(i=void 0,a=void 0,o=!0);let s=new l(this,e,t,i,a,o);return this.options.set(e,s),this}argument(e,t,n=!1){let r=new c(this,e,t,n);return this.arguments.set(e,r),this}};const d=new class extends u{commands=new Map;completions=[];directive=s.ShellCompDirectiveDefault;constructor(){super(``,``)}command(e,t){let n=new u(e,t);return this.commands.set(e,n),n}stripOptions(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.startsWith(`-`)){n++;let t=!1,i=this.findOption(this,r);if(i)t=i.isBoolean??!1;else for(let[,e]of this.commands){let n=this.findOption(e,r);if(n){t=n.isBoolean??!1;break}}!t&&n<e.length&&!e[n].startsWith(`-`)&&n++}else t.push(r),n++}return t}matchCommand(e){e=this.stripOptions(e);let t=[],n=[],r=null;for(let i=0;i<e.length;i++){let a=e[i];t.push(a);let o=this.commands.get(t.join(` `));if(o)r=o;else{n=e.slice(i,e.length);break}}return[r||this,n]}shouldCompleteFlags(e,t){if(t.startsWith(`-`))return!0;if(e?.startsWith(`-`)){let t=this.findOption(this,e);if(!t){for(let[,n]of this.commands)if(t=this.findOption(n,e),t)break}return!(t&&t.isBoolean)}return!1}shouldCompleteCommands(e){return!e.startsWith(`-`)}handleFlagCompletion(e,t,n,r){let i;if(n.includes(`=`)){let[e]=n.split(`=`);i=e}else if(r?.startsWith(`-`)){let t=this.findOption(e,r);t&&!t.isBoolean&&(i=r)}if(i){let t=this.findOption(e,i);if(t?.handler){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions=n}return}if(n.startsWith(`-`)){let t=n.startsWith(`-`)&&!n.startsWith(`--`),r=n.replace(/^-+/,``);for(let[i,a]of e.options)t&&a.alias&&`-${a.alias}`.startsWith(n)?this.completions.push({value:`-${a.alias}`,description:a.description}):!t&&i.startsWith(r)&&this.completions.push({value:`--${i}`,description:a.description})}}findOption(e,t){let n=e.options.get(t);if(n||(n=e.options.get(t.replace(/^-+/,``)),n))return n;for(let[n,r]of e.options)if(r.alias&&`-${r.alias}`===t)return r}handleCommandCompletion(e,t){let n=this.stripOptions(e);for(let[e,r]of this.commands){if(e===``)continue;let i=e.split(` `);i.slice(0,n.length).every((e,t)=>e===n[t])&&i[n.length]?.startsWith(t)&&this.completions.push({value:i[n.length],description:r.description})}}handlePositionalCompletion(e,t){let n=this.stripOptions(t),r=e.value.split(` `).length,i=Math.max(0,n.length-r),a=Array.from(e.arguments.entries());if(a.length>0){let t;if(i<a.length){let[e,n]=a[i];t=n}else{let e=a[a.length-1][1];e.variadic&&(t=e)}if(t&&t.handler&&typeof t.handler==`function`){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions.push(...n)}}}complete(e){this.directive=s.ShellCompDirectiveNoFileComp;let t=new Set;this.completions.filter(e=>t.has(e.value)?!1:(t.add(e.value),!0)).filter(t=>{if(e.includes(`=`)){let[,n]=e.split(`=`);return t.value.startsWith(n)}return t.value.startsWith(e)}).forEach(e=>console.log(`${e.value}\t${e.description??``}`)),console.log(`:${this.directive}`)}parse(e){this.completions=[];let t=e[e.length-1]===``;t&&e.pop();let n=e[e.length-1]||``,r=e.slice(0,-1);t&&(n!==``&&r.push(n),n=``);let[i]=this.matchCommand(r),a=r[r.length-1];this.shouldCompleteFlags(a,n)?this.handleFlagCompletion(i,r,n,a):(this.shouldCompleteCommands(n)&&this.handleCommandCompletion(r,n),i&&i.arguments.size>0&&this.handlePositionalCompletion(i,r)),this.complete(n)}setup(e,t,s){switch(n(s===`zsh`||s===`bash`||s===`fish`||s===`powershell`,`Unsupported shell`),s){case`zsh`:{let n=r(e,t);console.log(n);break}case`bash`:{let n=i(e,t);console.log(n);break}case`fish`:{let n=a(e,t);console.log(n);break}case`powershell`:{let n=o(e,t);console.log(n);break}}}},f=[{name:`quiet`,alias:`q`,desc:`Suppress non-essential output`},{name:`zone`,alias:`z`,desc:`Zone ID or domain name`},{name:`profile`,desc:`Use a specific auth profile`},{name:`mode`,alias:`m`,desc:`Mode used to evaluate project configuration`},{name:`local`,desc:`Use local resource simulations`},{name:`persist-to`,desc:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`},{name:`help`,alias:`h`,desc:`Show help`},{name:`version`,alias:`v`,desc:`Show version`}];function p(){return e(import.meta.url,`commands.json`,t)?.commands??[]}function m(){for(let e of f)d.option(e.name,e.desc),e.alias&&d.option(e.alias,`Alias for --${e.name}`);let e=new Set,t=p();for(let n of t){if(n.hideCommand)continue;for(let t=1;t<n.fullPath.length;t++){let r=n.fullPath.slice(0,t).join(` `);e.has(r)||(e.add(r),d.command(r,``))}let t=n.fullPath.join(` `);e.add(t);let r=d.command(t,n.description??``);for(let e of n.options??[])e.enum&&e.enum.length>0?r.option(e.name,e.description??``,t=>{for(let n of e.enum??[])t(n,n)}):r.option(e.name,e.description??``)}}const h={command:`complete [shell]`,describe:`Generate and handle shell completions`,builder:e=>e.positional(`shell`,{type:`string`,choices:[`bash`,`zsh`,`fish`,`powershell`],description:`Shell type to generate completions for`}).example(`cf complete bash >> ~/.bashrc`,`Install bash completions (then restart your shell)`).example(`cf complete zsh >> ~/.zshrc`,`Install zsh completions (then restart your shell)`).example(`cf complete fish > ~/.config/fish/completions/cf.fish`,`Install fish completions`),handler:e=>{let t=(e._??[]).map(String),n=t.slice(+(t[0]===`complete`));if(n.length>0){m(),d.parse(n);return}if(!e.shell){process.stderr.write(`Usage: cf complete <bash|zsh|fish|powershell>
799
+ `}const s={ShellCompDirectiveError:1,ShellCompDirectiveNoSpace:2,ShellCompDirectiveNoFileComp:4,ShellCompDirectiveFilterFileExt:8,ShellCompDirectiveFilterDirs:16,ShellCompDirectiveKeepOrder:32,shellCompDirectiveMaxValue:64,ShellCompDirectiveDefault:0};var c=class{name;variadic;command;handler;constructor(e,t,n,r=!1){this.command=e,this.name=t,this.handler=n,this.variadic=r}},l=class{value;description;command;handler;alias;isBoolean;constructor(e,t,n,r,i,a){this.command=e,this.value=t,this.description=n,this.handler=r,this.alias=i,this.isBoolean=a}},u=class{value;description;options=new Map;arguments=new Map;parent;constructor(e,t){this.value=e,this.description=t}option(e,t,n,r){let i,a,o;typeof n==`function`?(i=n,a=r,o=!1):typeof n==`string`?(i=void 0,a=n,o=!0):(i=void 0,a=void 0,o=!0);let s=new l(this,e,t,i,a,o);return this.options.set(e,s),this}argument(e,t,n=!1){let r=new c(this,e,t,n);return this.arguments.set(e,r),this}};const d=new class extends u{commands=new Map;completions=[];directive=s.ShellCompDirectiveDefault;constructor(){super(``,``)}command(e,t){let n=new u(e,t);return this.commands.set(e,n),n}stripOptions(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.startsWith(`-`)){n++;let t=!1,i=this.findOption(this,r);if(i)t=i.isBoolean??!1;else for(let[,e]of this.commands){let n=this.findOption(e,r);if(n){t=n.isBoolean??!1;break}}!t&&n<e.length&&!e[n].startsWith(`-`)&&n++}else t.push(r),n++}return t}matchCommand(e){e=this.stripOptions(e);let t=[],n=[],r=null;for(let i=0;i<e.length;i++){let a=e[i];t.push(a);let o=this.commands.get(t.join(` `));if(o)r=o;else{n=e.slice(i,e.length);break}}return[r||this,n]}shouldCompleteFlags(e,t){if(t.startsWith(`-`))return!0;if(e?.startsWith(`-`)){let t=this.findOption(this,e);if(!t){for(let[,n]of this.commands)if(t=this.findOption(n,e),t)break}return!(t&&t.isBoolean)}return!1}shouldCompleteCommands(e){return!e.startsWith(`-`)}handleFlagCompletion(e,t,n,r){let i;if(n.includes(`=`)){let[e]=n.split(`=`);i=e}else if(r?.startsWith(`-`)){let t=this.findOption(e,r);t&&!t.isBoolean&&(i=r)}if(i){let t=this.findOption(e,i);if(t?.handler){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions=n}return}if(n.startsWith(`-`)){let t=n.startsWith(`-`)&&!n.startsWith(`--`),r=n.replace(/^-+/,``);for(let[i,a]of e.options)t&&a.alias&&`-${a.alias}`.startsWith(n)?this.completions.push({value:`-${a.alias}`,description:a.description}):!t&&i.startsWith(r)&&this.completions.push({value:`--${i}`,description:a.description})}}findOption(e,t){let n=e.options.get(t);if(n||(n=e.options.get(t.replace(/^-+/,``)),n))return n;for(let[n,r]of e.options)if(r.alias&&`-${r.alias}`===t)return r}handleCommandCompletion(e,t){let n=this.stripOptions(e);for(let[e,r]of this.commands){if(e===``)continue;let i=e.split(` `);i.slice(0,n.length).every((e,t)=>e===n[t])&&i[n.length]?.startsWith(t)&&this.completions.push({value:i[n.length],description:r.description})}}handlePositionalCompletion(e,t){let n=this.stripOptions(t),r=e.value.split(` `).length,i=Math.max(0,n.length-r),a=Array.from(e.arguments.entries());if(a.length>0){let t;if(i<a.length){let[e,n]=a[i];t=n}else{let e=a[a.length-1][1];e.variadic&&(t=e)}if(t&&t.handler&&typeof t.handler==`function`){let n=[];t.handler.call(t,(e,t)=>n.push({value:e,description:t}),e.options),this.completions.push(...n)}}}complete(e){this.directive=s.ShellCompDirectiveNoFileComp;let t=new Set;this.completions.filter(e=>t.has(e.value)?!1:(t.add(e.value),!0)).filter(t=>{if(e.includes(`=`)){let[,n]=e.split(`=`);return t.value.startsWith(n)}return t.value.startsWith(e)}).forEach(e=>console.log(`${e.value}\t${e.description??``}`)),console.log(`:${this.directive}`)}parse(e){this.completions=[];let t=e[e.length-1]===``;t&&e.pop();let n=e[e.length-1]||``,r=e.slice(0,-1);t&&(n!==``&&r.push(n),n=``);let[i]=this.matchCommand(r),a=r[r.length-1];this.shouldCompleteFlags(a,n)?this.handleFlagCompletion(i,r,n,a):(this.shouldCompleteCommands(n)&&this.handleCommandCompletion(r,n),i&&i.arguments.size>0&&this.handlePositionalCompletion(i,r)),this.complete(n)}setup(e,t,s){switch(n(s===`zsh`||s===`bash`||s===`fish`||s===`powershell`,`Unsupported shell`),s){case`zsh`:{let n=r(e,t);console.log(n);break}case`bash`:{let n=i(e,t);console.log(n);break}case`fish`:{let n=a(e,t);console.log(n);break}case`powershell`:{let n=o(e,t);console.log(n);break}}}},f=[{name:`quiet`,alias:`q`,desc:`Suppress non-essential output`},{name:`zone`,alias:`z`,desc:`Zone ID or domain name`},{name:`profile`,desc:`Use a specific auth profile`},{name:`mode`,alias:`m`,desc:`Mode used to evaluate project configuration`},{name:`local`,desc:`Use local resource simulations`},{name:`persist-to`,desc:`Directory holding local persisted state (default: ~/.config/cloudflare/state)`},{name:`help`,alias:`h`,desc:`Show help`},{name:`version`,alias:`v`,desc:`Show version`}];function p(){return e(import.meta.url,`commands.json`,t)?.commands??[]}function m(e){return e.summary??e.description??``}function h(){for(let e of f)d.option(e.name,e.desc),e.alias&&d.option(e.alias,`Alias for --${e.name}`);let e=new Set,t=p();for(let n of t){if(n.hideCommand)continue;for(let t=1;t<n.fullPath.length;t++){let r=n.fullPath.slice(0,t).join(` `);e.has(r)||(e.add(r),d.command(r,``))}let t=n.fullPath.join(` `);e.add(t);let r=d.command(t,m(n));for(let e of n.options??[])e.enum&&e.enum.length>0?r.option(e.name,e.description??``,t=>{for(let n of e.enum??[])t(n,n)}):r.option(e.name,e.description??``)}}const g={command:`complete [shell]`,describe:`Generate and handle shell completions`,builder:e=>e.positional(`shell`,{type:`string`,choices:[`bash`,`zsh`,`fish`,`powershell`],description:`Shell type to generate completions for`}).example(`cf complete bash >> ~/.bashrc`,`Install bash completions (then restart your shell)`).example(`cf complete zsh >> ~/.zshrc`,`Install zsh completions (then restart your shell)`).example(`cf complete fish > ~/.config/fish/completions/cf.fish`,`Install fish completions`),handler:e=>{let t=(e._??[]).map(String),n=t.slice(+(t[0]===`complete`));if(n.length>0){h(),d.parse(n);return}if(!e.shell){process.stderr.write(`Usage: cf complete <bash|zsh|fish|powershell>
800
800
  cf complete bash >> ~/.bashrc
801
- `),process.exitCode=1;return}m(),d.setup(`cf`,`cf`,e.shell)}};export{h as default};
801
+ `),process.exitCode=1;return}h(),d.setup(`cf`,`cf`,e.shell)}};export{g as default,m as getCompletionDescription};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./state-QUu6HfxC.mjs";import{randomUUID as n}from"node:crypto";const r=new Date(`2026-01-01T00:00:00.000Z`),i=`CF_SEND_TELEMETRY`,a=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function o(){let e=process.env[i];if(e===void 0)return;let t=e.trim().toLowerCase();if(t===`true`||t===`1`)return!0;if(t===`false`||t===`0`)return!1}function s(){let r=t();if(typeof r.deviceId==`string`&&a.test(r.deviceId))return r.deviceId;let i=n();return e({deviceId:i}),i}function c(){return t().deviceId===void 0}function l(){let e=o();if(e!==void 0)return{enabled:e,source:`env`};let n=t().telemetry?.preference;return n?.enabled===!1?{enabled:!1,source:`config`}:n?.enabled===!0?{enabled:!0,source:typeof n.date==`string`&&new Date(n.date)>=r?`config`:`default`}:{enabled:!0,source:`default`}}function u(t){e({telemetry:{preference:{enabled:t,date:new Date().toISOString()}}})}function d(){return t().telemetry?.bannerLastShown}function f(t){e({telemetry:{bannerLastShown:t}})}export{o as a,f as c,s as i,u as l,r as n,c as o,d as r,l as s,i as t};
2
+ import{n as e,t}from"./state-BxCejn42.mjs";import{randomUUID as n}from"node:crypto";const r=new Date(`2026-01-01T00:00:00.000Z`),i=`CF_SEND_TELEMETRY`,a=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function o(){let e=process.env[i];if(e===void 0)return;let t=e.trim().toLowerCase();if(t===`true`||t===`1`)return!0;if(t===`false`||t===`0`)return!1}function s(){let r=t();if(typeof r.deviceId==`string`&&a.test(r.deviceId))return r.deviceId;let i=n();return e({deviceId:i}),i}function c(){return t().deviceId===void 0}function l(){let e=o();if(e!==void 0)return{enabled:e,source:`env`};let n=t().telemetry?.preference;return n?.enabled===!1?{enabled:!1,source:`config`}:n?.enabled===!0?{enabled:!0,source:typeof n.date==`string`&&new Date(n.date)>=r?`config`:`default`}:{enabled:!0,source:`default`}}function u(t){e({telemetry:{preference:{enabled:t,date:new Date().toISOString()}}})}function d(){return t().telemetry?.bannerLastShown}function f(t){e({telemetry:{bannerLastShown:t}})}export{o as a,f as c,s as i,u as l,r as n,c as o,d as r,l as s,i as t};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";function u(e){return e.usage(`$0 connector-interrupts create <connector-id>
3
+
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 n()??`<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 t();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
+
6
+ Lists interrupts for a Magic WAN Connector.`).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 p={command:`list`,describe:`List Interrupts`,builder:f,handler:async c=>s({command:`connector-interrupts list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connector-interrupts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/interrupts`,pathParams:{"connector-id":String(c[`connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.connectorInterrupts.list({account_id:l,connector_id:c[`connector-id`]})),{successLabel:`Loaded`})})},m={command:`connector-interrupts`,describe:`connector-interrupts`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";function c(e){return e.usage(`$0 connector-telemetry-events get <event-n>
3
+
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 n()??`<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 t();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
+
6
+ Lists Magic WAN Connector Telemetry Events`).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`from`,{type:`number`,description:`From`,demandOption:!0}).option(`to`,{type:`number`,description:`To`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`kind`,{type:`string`,description:`Filter by event kind`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Events`,builder:u,handler:async c=>s({command:`connector-telemetry-events list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to,limit:c.limit,cursor:c.cursor,k:c.kind};if(c.dryRun){a({command:`cf connector-telemetry-events list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/events`,pathParams:{"connector-id":String(c[`connector-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.connectorTelemetryEvents.list({account_id:u,connector_id:c[`connector-id`],...s})),{successLabel:`Loaded`})})},f={command:`connector-telemetry-events`,describe:`connector-telemetry-events`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";function c(e){return e.usage(`$0 connector-telemetry-snapshots get <snapshot-t>
3
+
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 n()??`<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 t();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
+
6
+ Lists Magic WAN Connector Telemetry Snapshots`).option(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).option(`from`,{type:`number`,description:`From`,demandOption:!0}).option(`to`,{type:`number`,description:`To`,demandOption:!0}).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Snapshots`,builder:u,handler:async c=>s({command:`connector-telemetry-snapshots list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={from:c.from,to:c.to,limit:c.limit,cursor:c.cursor};if(c.dryRun){a({command:`cf connector-telemetry-snapshots list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}/telemetry/snapshots`,pathParams:{"connector-id":String(c[`connector-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.connectorTelemetrySnapshots.list({account_id:u,connector_id:c[`connector-id`],...s})),{successLabel:`Loaded`})})},f={command:`connector-telemetry-snapshots`,describe:`connector-telemetry-snapshots`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-C-QCVfWz.mjs";import{r}from"./auth-C80y97yu.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-Bpp73hIu.mjs";import{t as s}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{n as d}from"./prompt-CpZztV8c.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 connectors create
3
+
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 n()??`<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 t();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
+
6
+ Deletes a Magic WAN Connector.`).positional(`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}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const g={command:`delete <connector-id>`,describe:`Delete Connector`,builder:h,handler:async c=>s({command:`connectors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf connectors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await d({force:!!c.force})){process.stderr.write(`Aborted.
7
+ `);return}i(await o(`Deleting`,async()=>s.connectors.delete({account_id:l,connector_id:c[`connector-id`]})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 connectors edit <connector-id>
8
+
9
+ Edits properties of a Magic WAN Connector. May be used to re-provision a license key.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).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(`provision-license`,{type:`boolean`,description:`When true, regenerate license key for the connector.`}).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 v={command:`edit <connector-id>`,describe:`Edit Connector`,builder:_,handler:async d=>s({command:`connectors edit`,classification:{safeFlags:[`activated`,`provision-license`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${d[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(d[`connector-id`]))}`,pathParams:{"connector-id":String(d[`connector-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({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`),provision_license:d[`provision-license`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.connectors.edit({...e,account_id:f,connector_id:d[`connector-id`]})),{successLabel:`Updated`});return}let p=l({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`),provision_license:d[`provision-license`]});i(await o(`Updating`,async()=>s.connectors.edit({...p,account_id:f,connector_id:d[`connector-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 connectors get <connector-id>
10
+
11
+ Gets a Magic WAN Connector.`).positional(`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 b={command:`get <connector-id>`,describe:`Get Connector`,builder:y,handler:async c=>s({command:`connectors get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf connectors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}`,pathParams:{"connector-id":String(c[`connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.connectors.get({account_id:l,connector_id:c[`connector-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 connectors list
12
+
13
+ Lists Magic WAN Connectors.`).option(`device-type`,{type:`string`,description:`Filter connectors by device type.`,choices:[`MANAGED`,`LICENSED`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Connectors`,builder:f(x),handler:async c=>s({command:`connectors list`,classification:{safeFlags:[`device-type`,`dry-run`]}},c,async()=>{let s={device_type:c[`device-type`]};if(c.dryRun){a({command:`cf connectors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.connectors.list({account_id:u,...s})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 connectors update <connector-id>
14
+
15
+ Updates properties of a Magic WAN Connector. May be used to re-provision a license key.`).positional(`connector-id`,{type:`string`,description:`Connector ID`,demandOption:!0}).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(`provision-license`,{type:`boolean`,description:`When true, regenerate license key for the connector.`}).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:`update <connector-id>`,describe:`Update Connector`,builder:C,handler:async d=>s({command:`connectors update`,classification:{safeFlags:[`activated`,`provision-license`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf connectors update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/magic/connectors/${d[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(d[`connector-id`]))}`,pathParams:{"connector-id":String(d[`connector-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({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`),provision_license:d[`provision-license`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.connectors.update({...e,account_id:f,connector_id:d[`connector-id`]})),{successLabel:`Updated`});return}let p=l({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`),provision_license:d[`provision-license`]});i(await o(`Updating`,async()=>s.connectors.update({...p,account_id:f,connector_id:d[`connector-id`]})),{successLabel:`Updated`})})},T={command:`connectors`,describe:`connectors`,builder:e=>e.command(m).command(g).command(v).command(b).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{T as default};