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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/bin/cf +1 -1
  2. package/dist/abuse-reports-Cy9RcWPu.mjs +24 -0
  3. package/dist/{access-D4DN4XZF.mjs → access-DwJm1qet.mjs} +1 -1
  4. package/dist/account-tags-d0RkEw6s.mjs +15 -0
  5. package/dist/accounts-BSd4b-1j.mjs +138 -0
  6. package/dist/{acm-OQqE8FMc.mjs → acm-BfI0p2sX.mjs} +8 -8
  7. package/dist/addressing-lfeJf7YB.mjs +93 -0
  8. package/dist/agent-context-DFEgYjEQ.mjs +2 -0
  9. package/dist/agent-memory-CP1qpn-y.mjs +34 -0
  10. package/dist/ai-audit-B_tSl78A.mjs +6 -0
  11. package/dist/ai-gateway-CJaUlfGc.mjs +82 -0
  12. package/dist/ai-jFzFBANM.mjs +29 -0
  13. package/dist/ai-search-PTlpY1T9.mjs +79 -0
  14. package/dist/ai-security-CKGE547U.mjs +10 -0
  15. package/dist/alerting-CuxoqG3S.mjs +56 -0
  16. package/dist/analytics-NPND7aHB.mjs +20 -0
  17. package/dist/analytics_engine-BoapM9wd.mjs +4 -0
  18. package/dist/ansi-styles-kSC6bEIq.mjs +2 -0
  19. package/dist/{api-security-CSuYMpMO.mjs → api-security-Nk_bg-Kg.mjs} +61 -61
  20. package/dist/{argo-DMfNmOV4.mjs → argo-DYfLQhd2.mjs} +5 -5
  21. package/dist/artifacts-BS6cEqCB.mjs +43 -0
  22. package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-x5tLqeX2.mjs} +2 -2
  23. package/dist/auth-AobvBmz4.mjs +2 -0
  24. package/dist/auth-CBtzZ3Sw.mjs +2 -0
  25. package/dist/auth-CKotxfap.mjs +2 -0
  26. package/dist/auth-token-CtguMdmF.mjs +8 -0
  27. package/dist/autoconfig-PfnbLuEO.mjs +532 -0
  28. package/dist/{banner-ClclgnBn.mjs → banner-D03JEqRs.mjs} +1 -1
  29. package/dist/basin-catalog-Ddi-t3q9.mjs +46 -0
  30. package/dist/billing-CDMc4tvX.mjs +23 -0
  31. package/dist/bot-management-UrCM3P8K.mjs +9 -0
  32. package/dist/botnet-feed-CVwRm42k.mjs +11 -0
  33. package/dist/brand-protection-DfNf5REj.mjs +27 -0
  34. package/dist/browser-run-DVaiBLYX.mjs +46 -0
  35. package/dist/build-BKPVP5ip.mjs +2 -0
  36. package/dist/build-C4giET85.mjs +2 -0
  37. package/dist/builds-BG5DHqU3.mjs +71 -0
  38. package/dist/cache-C05hHXUp.mjs +45 -0
  39. package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-DyCFmZwR.mjs} +3 -3
  40. package/dist/cf-B9aqZZKD.mjs +18 -0
  41. package/dist/chunk-AUSY7DKT-BJX6Fdc4.mjs +312 -0
  42. package/dist/chunk-FT2NMTJB-DQ7s3x7Q.mjs +361 -0
  43. package/dist/chunk-KKDV4JPS-D3kwd1Nq.mjs +2 -0
  44. package/dist/chunk-U6NEESU5-DqqRCaWH.mjs +2 -0
  45. package/dist/chunk-WMOON6TZ-C0dmPHpM.mjs +2 -0
  46. package/dist/{cli-BeXSqJAj.mjs → cli-D9qlPB-6.mjs} +1 -1
  47. package/dist/cli-exit-CstFZ1eJ.mjs +2 -0
  48. package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-B-m8rfM9.mjs} +7 -7
  49. package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-M4oIUqID.mjs} +15 -15
  50. package/dist/cloud-connector-B63Dwn6n.mjs +6 -0
  51. package/dist/cloudflared-B48cfu95.mjs +2 -0
  52. package/dist/cloudforce-one-Dlc1GNFy.mjs +447 -0
  53. package/dist/{command-xU78ACNA.mjs → command-BQpXcGKV.mjs} +1 -1
  54. package/dist/{command-DUafPVUr.mjs → command-BWlpCtHe.mjs} +1 -1
  55. package/dist/{command-BOLlvEan.mjs → command-BlGILcTA.mjs} +1 -1
  56. package/dist/{command-K1-DZFJS.mjs → command-CKQlxypn.mjs} +1 -1
  57. package/dist/{command-C__qB2mo.mjs → command-CRl00uA2.mjs} +1 -1
  58. package/dist/{command-DZookrfw.mjs → command-CUkXxZsc.mjs} +1 -1
  59. package/dist/command-CXxh5Hce.mjs +2 -0
  60. package/dist/{command-BCag-xjk.mjs → command-CzvlHvov.mjs} +1 -1
  61. package/dist/{command-DxSJy_ym.mjs → command-DBaNgfA4.mjs} +1 -1
  62. package/dist/command-DEQSv-S1.mjs +2 -0
  63. package/dist/{command-BrHTpaji.mjs → command-DyE8v4sd.mjs} +1 -1
  64. package/dist/command-Rv2MR-eh.mjs +2 -0
  65. package/dist/{command-B6DqnUwt.mjs → command-SS1z_t68.mjs} +1 -1
  66. package/dist/{command-6YTtWltE.mjs → command-VuxpEvmH.mjs} +1 -1
  67. package/dist/{command-DzHL5LKI.mjs → command-ZBQ1WITj.mjs} +1 -1
  68. package/dist/{completions-Cm9brGAI.mjs → completions-lf50FBGm.mjs} +2 -2
  69. package/dist/connector-interrupts-DHN1KtUE.mjs +6 -0
  70. package/dist/connector-telemetry-events-CHg7FmXh.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-CSifYi9r.mjs +6 -0
  72. package/dist/connectors-0UwPUav-.mjs +15 -0
  73. package/dist/containers-DRzgE46U.mjs +375 -0
  74. package/dist/containers-DuIsM7lM.mjs +78 -0
  75. package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-COyTz0Wb.mjs} +8 -8
  76. package/dist/{context-CEOHpZgd.mjs → context-Bwkz4Lm_.mjs} +2 -2
  77. package/dist/{cps-BPQqyL2E.mjs → cps-B7_BJaAU.mjs} +3 -3
  78. package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-jez2EYXC.mjs} +3 -3
  79. package/dist/ct-alerting-CACDrY0E.mjs +5 -0
  80. package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-BBd92YlF.mjs} +8 -8
  81. package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-DTwBiNMX.mjs} +6 -6
  82. package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-DIWlqvN9.mjs} +15 -15
  83. package/dist/custom-nameservers-DISy8v8u.mjs +9 -0
  84. package/dist/custom-pages-BHXO_NFv.mjs +21 -0
  85. package/dist/d1-MvAQMvvo.mjs +89 -0
  86. package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-Buq0hcm_.mjs} +2 -2
  87. package/dist/delegate.mjs +1 -1
  88. package/dist/{deploy-C4p6SzLH.mjs → deploy-BS47vZvJ.mjs} +1 -1
  89. package/dist/deploy-context-Cfushp8j.mjs +56 -0
  90. package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-BAhS5LYx.mjs} +1 -1
  91. package/dist/{dev-BML-bpNU.mjs → dev-D8FGPKRt.mjs} +2 -2
  92. package/dist/diagnostics-ChDfJ-Gv.mjs +15 -0
  93. package/dist/{dialog-BlUXJKbA.mjs → dialog-CL1Zy4pn.mjs} +1 -1
  94. package/dist/discover-DIDEGKo3.mjs +2 -0
  95. package/dist/discover-P20XeGBF.mjs +2 -0
  96. package/dist/{dist-DW47TUGh.mjs → dist-8rP3V95o.mjs} +5 -5
  97. package/dist/dist-CYFkGHYv.mjs +487 -0
  98. package/dist/dls-8D00tqvC.mjs +17 -0
  99. package/dist/{dns-C9sUPsNt.mjs → dns-C-A5pwf3.mjs} +68 -68
  100. package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-DIiF4pro.mjs} +9 -9
  101. package/dist/dot-prop-IITUZ2XW-BnPfnQkb.mjs +2 -0
  102. package/dist/dotenv-DpXaxfho.mjs +4 -0
  103. package/dist/dry-run-DmsbOMF1.mjs +2 -0
  104. package/dist/durable-objects-CnIqbj84.mjs +6 -0
  105. package/dist/{email-auth-BgvoEHJk.mjs → email-auth-v97Md32E.mjs} +3 -3
  106. package/dist/{email-routing-Bggn219w.mjs → email-routing-I29RG4hb.mjs} +24 -24
  107. package/dist/{email-security-_t7rzrzd.mjs → email-security-BCarmbky.mjs} +86 -86
  108. package/dist/email-sending-CsHk2HAJ.mjs +47 -0
  109. package/dist/error-sanitization-BWnGnB73.mjs +2 -0
  110. package/dist/error-sanitization-C_a2LxOK.mjs +2 -0
  111. package/dist/errors-_sob7Ihu.mjs +3 -0
  112. package/dist/fieldExtractors-GIVe9jZa.mjs +9 -0
  113. package/dist/{firewall-CZEN8iA_.mjs → firewall-DpgFqJr3.mjs} +19 -19
  114. package/dist/flagship-BVaXXlsX.mjs +28 -0
  115. package/dist/{fraud-9_9hobAh.mjs → fraud-B5GQdEF2.mjs} +3 -3
  116. package/dist/{generate-CLqGOlOx.mjs → generate-CeeWW3eX.mjs} +1 -1
  117. package/dist/generate-D80-1GnZ.mjs +2 -0
  118. package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-C4O61lp-.mjs} +3 -3
  119. package/dist/gt-3bcLGJ7V.mjs +3 -0
  120. package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-BwYMnKSF.mjs} +12 -12
  121. package/dist/{hostnames-DdOube3R.mjs → hostnames-DhrGRFeI.mjs} +6 -6
  122. package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-DAA8Fazg.mjs} +10 -10
  123. package/dist/iam-sRKDU2Z3.mjs +52 -0
  124. package/dist/images-DXdekLVs.mjs +71 -0
  125. package/dist/index.mjs +1 -1
  126. package/dist/init-j47MT4Qe.mjs +39 -0
  127. package/dist/intel-CnVeSjIS.mjs +76 -0
  128. package/dist/interactive-Dqv0RWVU.mjs +42 -0
  129. package/dist/interactive-Wpd3FcDc.mjs +2 -0
  130. package/dist/{ips-PT_uQKAf.mjs → ips-COCUG8mk.mjs} +2 -2
  131. package/dist/k2-CmHkArHL.mjs +13 -0
  132. package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-l2_S__h3.mjs} +7 -7
  133. package/dist/keys-CDZreums.mjs +4 -0
  134. package/dist/kv-DkpKVimq.mjs +15 -0
  135. package/dist/{lazy-command-glNW3jzf.mjs → lazy-command-_vZGz6mv.mjs} +1 -1
  136. package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-edbapECI.mjs} +10 -10
  137. package/dist/lifecycle-oud60haK.mjs +2 -0
  138. package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-C5YMvhXD.mjs} +40 -40
  139. package/dist/{local-B5oRPTEN.mjs → local-C0lQ9sTg.mjs} +1 -1
  140. package/dist/local-D5L5Bwju.mjs +2 -0
  141. package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DtnWXN0a.mjs} +1 -1
  142. package/dist/login-BrjOuHKu.mjs +5 -0
  143. package/dist/login-DeOM4v0L.mjs +2 -0
  144. package/dist/logo-matches-CF8321pb.mjs +6 -0
  145. package/dist/logos-Bd8xNRKW.mjs +7 -0
  146. package/dist/logpush-BYk3qqwY.mjs +46 -0
  147. package/dist/logs-Jcj2NN8H.mjs +36 -0
  148. package/dist/magic-cloud-networking-Dgdb9H0f.mjs +71 -0
  149. package/dist/magic-network-monitoring-CxVU4MZB.mjs +36 -0
  150. package/dist/magic-transit-KDyfUgTv.mjs +383 -0
  151. package/dist/managed-defense-CxaDeNUd.mjs +18 -0
  152. package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-C7rT5E-x.mjs} +5 -5
  153. package/dist/{matches-BSiYXs99.mjs → matches-BtKqG8T9.mjs} +3 -3
  154. package/dist/{mcp-CCMiS75R.mjs → mcp-QDd1Iyc0.mjs} +17 -17
  155. package/dist/mesh-DtrIzl5z.mjs +26 -0
  156. package/dist/metadata-Df5kCWJv.mjs +2 -0
  157. package/dist/{migrate-BJ9Go_wP.mjs → migrate-DHlfR_gZ.mjs} +1 -1
  158. package/dist/{monetization-CFf_lb6x.mjs → monetization-pLalYYMI.mjs} +11 -11
  159. package/dist/mtls-certificates-DYA9Wu-c.mjs +13 -0
  160. package/dist/network-DrJxPWXQ.mjs +50 -0
  161. package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-D73MlYG8.mjs} +19 -19
  162. package/dist/{oauth-cNZUky3h.mjs → oauth-B08YQ4xq.mjs} +2 -2
  163. package/dist/{oauth-DxGgIwFc.mjs → oauth-TGbM1Q0V.mjs} +1 -1
  164. package/dist/oauth-clients-CkPDLFd-.mjs +16 -0
  165. package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-VgliqcQe.mjs} +2 -2
  166. package/dist/observability-CvN9oxAo.mjs +80 -0
  167. package/dist/open-PCXX3ZDZ-D55O2jpQ.mjs +4 -0
  168. package/dist/{organization-Dbom1gTR.mjs → organization-DIwqRBBV.mjs} +16 -16
  169. package/dist/{organizations-OUMVsuen.mjs → organizations-Dk0D9ukm.mjs} +2 -2
  170. package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-BSFqMTn-.mjs} +5 -5
  171. package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-BOKWKDTY.mjs} +3 -3
  172. package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-BzE3WpcN.mjs} +16 -16
  173. package/dist/output-BGqhvqe2.mjs +2 -0
  174. package/dist/{page-rules-B9BQKU4_.mjs → page-rules-BKaU37cM.mjs} +8 -8
  175. package/dist/pages-2Xg-lrMf.mjs +54 -0
  176. package/dist/pay-per-crawl-5-KTQXRr.mjs +65 -0
  177. package/dist/pay-per-use-sGebKzNK.mjs +6 -0
  178. package/dist/pipelines-BM-T7mMK.mjs +44 -0
  179. package/dist/precursor-DmQ32-Sp.mjs +4 -0
  180. package/dist/previews-DDQ9ACDJ.mjs +4 -0
  181. package/dist/{progress-A61dRbXl.mjs → progress-BYVZuEcG.mjs} +1 -1
  182. package/dist/{prompt-CGUzvBgY.mjs → prompt-F5wxc8zq.mjs} +1 -1
  183. package/dist/queries-DPBkVynK.mjs +9 -0
  184. package/dist/queues-CCXRs98q.mjs +57 -0
  185. package/dist/r2-BKuBSW8h.mjs +125 -0
  186. package/dist/{radar-CU4T02Ag.mjs → radar-Gv1yFoRX.mjs} +150 -150
  187. package/dist/raw-fetch-DyYWa923.mjs +2 -0
  188. package/dist/realtime-CVl-rvgx.mjs +172 -0
  189. package/dist/registrar-sandbox-cmOYDnkp.mjs +56 -0
  190. package/dist/registrar-swlnh22i.mjs +43 -0
  191. package/dist/{registry-Cg5lP8oo.mjs → registry-C20J1MW0.mjs} +1 -1
  192. package/dist/reporting-Bgwsvol1.mjs +14 -0
  193. package/dist/request-headers-CUee83pa.mjs +2 -0
  194. package/dist/request-tracers-BBiJvVDz.mjs +4 -0
  195. package/dist/resolve-DvxgnWjL.mjs +2 -0
  196. package/dist/resolve-qwL1LmKN.mjs +2 -0
  197. package/dist/resource-sharing-C1JiYLbl.mjs +40 -0
  198. package/dist/resource-tagging-C9VOSlDR.mjs +4 -0
  199. package/dist/rules-BDunCGMj.mjs +18 -0
  200. package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-BMGxrnv9.mjs} +20 -20
  201. package/dist/rum-B7XiECe9.mjs +30 -0
  202. package/dist/run-CrZgB8L_.mjs +2 -0
  203. package/dist/run-nNxXb_Cv.mjs +2 -0
  204. package/dist/schema-DC0kdqgV.mjs +2 -0
  205. package/dist/schema-flags-BUZR9SLd.mjs +5 -0
  206. package/dist/scim-CORcs2wK.mjs +18 -0
  207. package/dist/secrets-store-BoZQaFey.mjs +24 -0
  208. package/dist/security-insights-DblK_6sg.mjs +40 -0
  209. package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-Dl7RPnRb.mjs} +5 -5
  210. package/dist/{session-CZTuHcbm.mjs → session-BWe9et4K.mjs} +1 -1
  211. package/dist/shared-0N31BXkY.mjs +2 -0
  212. package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-DX0-8ruu.mjs} +13 -13
  213. package/dist/snippets-BFN-Lg3K.mjs +20 -0
  214. package/dist/source-mXUcrTVw.mjs +6 -0
  215. package/dist/spawn-DZ9A-xXb.mjs +10 -0
  216. package/dist/{spectrum-DtG0jYjE.mjs → spectrum-HYWLWB0X.mjs} +12 -12
  217. package/dist/{speed-B-RiNHGK.mjs → speed-Dj0YhfRe.mjs} +13 -13
  218. package/dist/src-CAiZlihY.mjs +117 -0
  219. package/dist/{ssl-DBVpCZAM.mjs → ssl-BQL1fNtD.mjs} +17 -17
  220. package/dist/startup-profile-0X5ebbng.mjs +29 -0
  221. package/dist/startup-profile-CXnsF4c7.mjs +2 -0
  222. package/dist/state-BA2CanJ_.mjs +2 -0
  223. package/dist/{state-BaGRaYow.mjs → state-Dy6-rKNd.mjs} +1 -1
  224. package/dist/stream-DKv2TtZN.mjs +102 -0
  225. package/dist/submit-Byt2KBGI.mjs +4 -0
  226. package/dist/{tags--eph7JbN.mjs → tags-BIBsdG68.mjs} +2 -2
  227. package/dist/telemetry-DBXOMuLh.mjs +2 -0
  228. package/dist/{telemetry-51etasAu.mjs → telemetry-bu3txnIR.mjs} +1 -1
  229. package/dist/{tenant-Bj-He2xO.mjs → tenant-Bs4Ac4n3.mjs} +5 -5
  230. package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-DcaELeCE.mjs} +4 -4
  231. package/dist/{theme-BIWQFmZ0.mjs → theme-CQ_TYifs.mjs} +2 -2
  232. package/dist/{tools-BJZ0DDlL.mjs → tools-BbTX7rlM.mjs} +1 -1
  233. package/dist/tunnels-DWcrz9Sf.mjs +29 -0
  234. package/dist/turnstile-2MIGp2ce.mjs +33 -0
  235. package/dist/{ui-BQxRjahW.mjs → ui-YmjF66Ct.mjs} +1 -1
  236. package/dist/update-check-B-CvDAUz.mjs +2 -0
  237. package/dist/update-check-CfB0PNTY.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/url-info-B8udoxlx.mjs +4 -0
  240. package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-C6AdWtaE.mjs} +5 -5
  241. package/dist/url-scanner-Dg0c_yVb.mjs +16 -0
  242. package/dist/{user-B6P5_OjP.mjs → user-BLZ-0Bgv.mjs} +51 -51
  243. package/dist/values-BUK-m0Jg.mjs +4 -0
  244. package/dist/vectorize-DEUSEQXY.mjs +32 -0
  245. package/dist/version-BZNc7Y3t.mjs +2 -0
  246. package/dist/waiting-rooms-BycGk2Y0.mjs +53 -0
  247. package/dist/{web-assets-yaKxN4w_.mjs → web-assets-CLZdWOmN.mjs} +35 -35
  248. package/dist/{web3-Bu9c_QAt.mjs → web3-DjeavuLg.mjs} +15 -15
  249. package/dist/workers-C_SfyU-v.mjs +38 -0
  250. package/dist/workers-builds-COn5Ne5G.mjs +14 -0
  251. package/dist/workers-for-platforms-tchCXwNF.mjs +42 -0
  252. package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-CKts8Av0.mjs} +7 -7
  253. package/dist/workflows-BibtWuOx.mjs +43 -0
  254. package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-BpJqCFAa.mjs} +1 -1
  255. package/dist/zaraz-BvQZB0YY.mjs +22 -0
  256. package/dist/zero-trust-FStq4uhn.mjs +821 -0
  257. package/dist/{zone-uJwRLSnn.mjs → zone-tymlghWb.mjs} +2 -2
  258. package/dist/{zones-Dpofsnth.mjs → zones-Bz6dgT9_.mjs} +47 -47
  259. package/package.json +25 -21
  260. package/dist/abuse-reports-BhSTEz7h.mjs +0 -24
  261. package/dist/account-tags-BWEIZLID.mjs +0 -15
  262. package/dist/accounts-ZQvIqGJz.mjs +0 -138
  263. package/dist/addressing-DCFm17JQ.mjs +0 -93
  264. package/dist/agent-context-GRiQ4zRU.mjs +0 -2
  265. package/dist/agent-memory-BtfPt2me.mjs +0 -34
  266. package/dist/ai-B0_sZbmy.mjs +0 -29
  267. package/dist/ai-audit-DaubuhYF.mjs +0 -6
  268. package/dist/ai-gateway-CJ-1Dzzr.mjs +0 -82
  269. package/dist/ai-search-Dywa1kqX.mjs +0 -79
  270. package/dist/ai-security-2wxMPqKS.mjs +0 -10
  271. package/dist/alerting-yad9DYRv.mjs +0 -56
  272. package/dist/analytics-DKNw2fVc.mjs +0 -20
  273. package/dist/analytics_engine-BA3kF46s.mjs +0 -4
  274. package/dist/ansi-styles-eKEZXVwN.mjs +0 -2
  275. package/dist/artifacts-Cb3hwClm.mjs +0 -43
  276. package/dist/auth-BBlAI8HG.mjs +0 -2
  277. package/dist/auth-BIr56Mbx.mjs +0 -8
  278. package/dist/autoconfig-DPUztTL2.mjs +0 -511
  279. package/dist/basin-catalog-BLsQhJP4.mjs +0 -46
  280. package/dist/billing-CRwD7oQS.mjs +0 -23
  281. package/dist/bot-management-CyW8F8Wm.mjs +0 -9
  282. package/dist/botnet-feed-BBKsxf3Y.mjs +0 -11
  283. package/dist/brand-protection-DSeD8LXl.mjs +0 -27
  284. package/dist/browser-run-BAcUTwB4.mjs +0 -46
  285. package/dist/build-B5UYMEQH.mjs +0 -2
  286. package/dist/build-DLZ9gBNA.mjs +0 -2
  287. package/dist/builds-W1HEG7Bv.mjs +0 -71
  288. package/dist/cache-B7E_PXUp.mjs +0 -45
  289. package/dist/cf-Bh_fTFIj.mjs +0 -18
  290. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +0 -97
  291. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +0 -2
  292. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +0 -2
  293. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +0 -2
  294. package/dist/cli-exit-Dqoo6Jgb.mjs +0 -2
  295. package/dist/cloud-connector-Czg1GdQi.mjs +0 -6
  296. package/dist/cloudflared-DGuau-lC.mjs +0 -2
  297. package/dist/cloudforce-one-B1IhIZcp.mjs +0 -447
  298. package/dist/command-CAtsHc1V.mjs +0 -2
  299. package/dist/command-DfffeX-k.mjs +0 -2
  300. package/dist/command-TCklVvOY.mjs +0 -2
  301. package/dist/connector-interrupts-D93KTMkw.mjs +0 -6
  302. package/dist/connector-telemetry-events-D6CmKR14.mjs +0 -6
  303. package/dist/connector-telemetry-snapshots-WO9IUk0e.mjs +0 -6
  304. package/dist/connectors-DNT6GTW3.mjs +0 -15
  305. package/dist/containers-Btx7vCDP.mjs +0 -78
  306. package/dist/containers-Ce7IO-Ia.mjs +0 -239
  307. package/dist/ct-alerting-CnTRE1Fb.mjs +0 -5
  308. package/dist/custom-nameservers-B0CpnUVg.mjs +0 -9
  309. package/dist/custom-pages-DcoSGN56.mjs +0 -21
  310. package/dist/d1-m7UfzBzl.mjs +0 -41
  311. package/dist/diagnostics-hOvnx5DT.mjs +0 -15
  312. package/dist/discover-C5aiI6u0.mjs +0 -2
  313. package/dist/discover-DwczTkRX.mjs +0 -2
  314. package/dist/dist-BuCJ_55d.mjs +0 -366
  315. package/dist/dist-C3s9SXTd.mjs +0 -48
  316. package/dist/dls-v6DyEWTd.mjs +0 -17
  317. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +0 -2
  318. package/dist/dotenv-CcQjGlV0.mjs +0 -4
  319. package/dist/dry-run-Bq0JAsbX.mjs +0 -2
  320. package/dist/durable-objects-C01phVwL.mjs +0 -6
  321. package/dist/email-sending-_dKCs2VF.mjs +0 -47
  322. package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
  323. package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
  324. package/dist/fieldExtractors-Cm5QnkE0.mjs +0 -9
  325. package/dist/flagship-B_SAI_ZL.mjs +0 -28
  326. package/dist/generate-BPqoDbck.mjs +0 -2
  327. package/dist/gt-DmcMNPX6.mjs +0 -2
  328. package/dist/iam-DUW7neMx.mjs +0 -52
  329. package/dist/images-B9dnr1z0.mjs +0 -71
  330. package/dist/init-BGcAIvV7.mjs +0 -39
  331. package/dist/intel-BQpZMck3.mjs +0 -76
  332. package/dist/interactive-C-o16XQs.mjs +0 -32
  333. package/dist/interactive-SgAjen2z.mjs +0 -2
  334. package/dist/k2-nPYti7Y0.mjs +0 -13
  335. package/dist/keys-O5kAW9ox.mjs +0 -4
  336. package/dist/kv-BUP_ZLM_.mjs +0 -15
  337. package/dist/lifecycle-C7tAC1Mn.mjs +0 -2
  338. package/dist/local-Bj-l0TP6.mjs +0 -2
  339. package/dist/login-C5nSIS-T.mjs +0 -2
  340. package/dist/login-CUup7w0e.mjs +0 -5
  341. package/dist/logo-matches-BkQKdu4Z.mjs +0 -6
  342. package/dist/logos-C_sv-boo.mjs +0 -7
  343. package/dist/logpush-NUcyMKHi.mjs +0 -46
  344. package/dist/logs-BZT4PlqZ.mjs +0 -36
  345. package/dist/magic-cloud-networking-DQnSdmgA.mjs +0 -71
  346. package/dist/magic-network-monitoring-pHTU6aS8.mjs +0 -36
  347. package/dist/magic-transit-5302bQNh.mjs +0 -383
  348. package/dist/managed-defense-8OEfDzuO.mjs +0 -18
  349. package/dist/mesh-DKBGTlCD.mjs +0 -26
  350. package/dist/metadata-C33s4rc-.mjs +0 -2
  351. package/dist/mtls-certificates-DsF3NFNs.mjs +0 -13
  352. package/dist/network-Bm0qYRqY.mjs +0 -50
  353. package/dist/oauth-clients-CP6alY0_.mjs +0 -16
  354. package/dist/observability-Bp71PtlD.mjs +0 -80
  355. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +0 -4
  356. package/dist/output-CvQFJkvi.mjs +0 -2
  357. package/dist/pages-DZPdyuT4.mjs +0 -54
  358. package/dist/pay-per-crawl-CnveMVDi.mjs +0 -65
  359. package/dist/pay-per-use-Bpxe8PHv.mjs +0 -6
  360. package/dist/pipelines-CHev3o5G.mjs +0 -44
  361. package/dist/precursor-C9PK9Bue.mjs +0 -4
  362. package/dist/previews-BIMI1dTz.mjs +0 -4
  363. package/dist/queries-f-btyefs.mjs +0 -9
  364. package/dist/queues-kLNdeb3q.mjs +0 -57
  365. package/dist/r2-D_awYx2p.mjs +0 -125
  366. package/dist/raw-fetch-CvkmFO23.mjs +0 -2
  367. package/dist/realtime-C0dvcBBM.mjs +0 -172
  368. package/dist/registrar-CHc-4vcf.mjs +0 -43
  369. package/dist/registrar-sandbox-Dq8LV2AI.mjs +0 -56
  370. package/dist/reporting-4u21g6Dk.mjs +0 -14
  371. package/dist/request-headers-D31kdxrQ.mjs +0 -2
  372. package/dist/request-tracers-CupJ_83j.mjs +0 -4
  373. package/dist/resolve-BCTrtcx7.mjs +0 -2
  374. package/dist/resolve-PZuJ878-.mjs +0 -2
  375. package/dist/resource-sharing-CO-Lh-u7.mjs +0 -40
  376. package/dist/resource-tagging-D0R5SzR6.mjs +0 -4
  377. package/dist/rules-BsmKzB9H.mjs +0 -18
  378. package/dist/rum-wcLEvVJl.mjs +0 -30
  379. package/dist/run-CIJTelJL.mjs +0 -2
  380. package/dist/run-quhbAvQi.mjs +0 -2
  381. package/dist/schema-GdBsV4P7.mjs +0 -2
  382. package/dist/schema-flags-D8vL2oiF.mjs +0 -5
  383. package/dist/scim-BkdJmAS8.mjs +0 -18
  384. package/dist/sdk-BCzcRJCi.mjs +0 -3
  385. package/dist/secrets-store-CHs0oYA0.mjs +0 -24
  386. package/dist/security-insights-vsl-4xFa.mjs +0 -40
  387. package/dist/shared-BS30oCf8.mjs +0 -2
  388. package/dist/snippets-CFaF_NyG.mjs +0 -20
  389. package/dist/source-38bULAR8.mjs +0 -6
  390. package/dist/spawn-B0Sl8lUu.mjs +0 -10
  391. package/dist/src-CM3XaB4p.mjs +0 -109
  392. package/dist/startup-profile-CLmojOrn.mjs +0 -2
  393. package/dist/startup-profile-CR7GMuLx.mjs +0 -17
  394. package/dist/state-CpXhcMdX.mjs +0 -2
  395. package/dist/stream-cAdBvpS1.mjs +0 -102
  396. package/dist/submit-Bkd7l2rK.mjs +0 -4
  397. package/dist/telemetry-Q3_UmwHj.mjs +0 -2
  398. package/dist/tunnels-CgtuRpcD.mjs +0 -29
  399. package/dist/turnstile-Bmcnrzw7.mjs +0 -33
  400. package/dist/update-check-BqSpgzHk.mjs +0 -2
  401. package/dist/update-check-DC0qP_8z.mjs +0 -2
  402. package/dist/url-info-DhVehaT8.mjs +0 -4
  403. package/dist/url-scanner-DiLdqsQk.mjs +0 -16
  404. package/dist/values-Cxx4Lxrd.mjs +0 -4
  405. package/dist/vectorize-YyxVpql-.mjs +0 -32
  406. package/dist/version-C0pInAZ9.mjs +0 -2
  407. package/dist/waiting-rooms-BdahlCdD.mjs +0 -53
  408. package/dist/workers-5GgoGA2e.mjs +0 -38
  409. package/dist/workers-builds-h-1FJjE1.mjs +0 -14
  410. package/dist/workers-for-platforms-CV9iRrp9.mjs +0 -42
  411. package/dist/workflows-dtMlkj1-.mjs +0 -43
  412. package/dist/zaraz-838AbMEX.mjs +0 -22
  413. package/dist/zero-trust-CYt-eELJ.mjs +0 -821
  414. /package/dist/{Page-CjJht2qT.mjs → Page-BShsqCXr.mjs} +0 -0
  415. /package/dist/{alerts-DY_7Nknx.mjs → alerts-BSON-vFh.mjs} +0 -0
  416. /package/dist/{args-CXgkQKK7.mjs → args-CfbYkeXd.mjs} +0 -0
  417. /package/dist/{autorag-K396-M2S.mjs → autorag-kNrLiqDX.mjs} +0 -0
  418. /package/dist/{body-parser-hh2avzkz.mjs → body-parser-DkHKPkJ7.mjs} +0 -0
  419. /package/dist/{brands-DeLbFxSt.mjs → brands-bBJgbbOH.mjs} +0 -0
  420. /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-C1_fcw7h.mjs} +0 -0
  421. /package/dist/{clear-CRfI7WS7.mjs → clear-BW9vLgI3.mjs} +0 -0
  422. /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-9oYmRTHJ.mjs} +0 -0
  423. /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-BQdOvbWh.mjs} +0 -0
  424. /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CtdN_dGu.mjs} +0 -0
  425. /package/dist/{delegate-B6LetRpZ.mjs → delegate-Tgfxa-MZ.mjs} +0 -0
  426. /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BkcBcyfF.mjs} +0 -0
  427. /package/dist/{health-Bz33n-_F.mjs → health-CTaCeVyC.mjs} +0 -0
  428. /package/dist/{input-validation-Dk52b0me.mjs → input-validation-D7z60HJH.mjs} +0 -0
  429. /package/dist/{internal-BHrJbbdA.mjs → internal-BYS7hO8c.mjs} +0 -0
  430. /package/dist/{live-MeJQXIei.mjs → live-BJE_YWE1.mjs} +0 -0
  431. /package/dist/{project-settings-DO6njFg_.mjs → project-settings-nBMEx1f-.mjs} +0 -0
  432. /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-BRo-Rx2I.mjs} +0 -0
  433. /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-BiRyU0Xd.mjs} +0 -0
  434. /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-Cr2zpncO.mjs} +0 -0
  435. /package/dist/{ready-BOpbZ1pN.mjs → ready-B3pLxnjc.mjs} +0 -0
  436. /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-JLOvuZq-.mjs} +0 -0
  437. /package/dist/{refute-DkF4XIMw.mjs → refute-Dp3VodMn.mjs} +0 -0
  438. /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-3Zr6CDJB.mjs} +0 -0
  439. /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-CxeudOzj.mjs} +0 -0
  440. /package/dist/{search-Bre1Zwn3.mjs → search-B_P5ZTQj.mjs} +0 -0
  441. /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-D5RwvrQq.mjs} +0 -0
  442. /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-_t78q2OE.mjs} +0 -0
  443. /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-CPrKEciQ.mjs} +0 -0
  444. /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-CTRItgFT.mjs} +0 -0
  445. /package/dist/{verify-CKgZYvln.mjs → verify-5KcvRk-q.mjs} +0 -0
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{a as r,r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{i as l,n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p}from"./prompt-CGUzvBgY.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 managed-defense vulnerability-discovery reports get <scan-id>
3
-
4
- Gets the repository projection of the active operator-reviewed scan report. \`scan_id\` is the customer scan's stable request ID.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`repo-id`,{type:`string`,description:`Repo ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <scan-id>`,describe:`Get reviewed vulnerability report`,builder:h,handler:async r=>c({command:`managed-defense vulnerability-discovery reports get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/repos/${r[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(r[`repo-id`]))}/scans/${r[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(r[`scan-id`]))}/report`,pathParams:{"repo-id":String(r[`repo-id`]??``),"scan-id":String(r[`scan-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.managedDefense.vulnerabilityDiscovery.reports.get({account_id:l,repo_id:r[`repo-id`],scan_id:r[`scan-id`]})),{successLabel:`Loaded`})})},_={command:`reports`,describe:`Operations for vulnerability-discovery.reports`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 managed-defense vulnerability-discovery repositories create
5
-
6
- Creates an upload repository or reserves an asynchronous deployed Worker import by name. Worker imports require Idempotency-Key.`).option(`idempotency-key`,{type:`string`,description:"Optional. Supply this header to safely retry a request. Required when `worker_script_name` is supplied."}).option(`name`,{type:`string`,description:`The name field`}).option(`worker-script-name`,{type:`string`,description:`The worker_script_name 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 y={command:`create`,describe:`Create repository`,builder:v,handler:async m=>c({command:`managed-defense vulnerability-discovery repositories create`,classification:{safeFlags:[`dry-run`]}},m,async()=>{let c={};if(m[`idempotency-key`]!==void 0&&(c[`Idempotency-Key`]=String(m[`idempotency-key`])),m.dryRun){o({command:`cf managed-defense vulnerability-discovery repositories create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/repos`,pathParams:{},bodyKind:`json`,body:m.body===void 0?d({name:f(m.name,`name`,`text`),worker_script_name:f(m[`worker-script-name`],`worker-script-name`,`text`)}):u(m.body)});return}let h=await i(m),g=m.local?e:await n();if(m.accountId=g,m.body){let e=u(m.body);a(await s(`Creating`,async()=>r(h,`POST`,`/accounts/${g}/managed-defense/vulnerability-discovery/repos`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}m.name===void 0&&(m.name=await p(`name`,`The name field`));let _={};m.name!==void 0&&l(_,[`name`],f(m.name,`name`,`text`)),m[`worker-script-name`]!==void 0&&l(_,[`worker_script_name`],f(m[`worker-script-name`],`worker-script-name`,`text`)),a(await s(`Creating`,async()=>r(h,`POST`,`/accounts/${g}/managed-defense/vulnerability-discovery/repos`,{body:Object.keys(_).length>0?_:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 managed-defense vulnerability-discovery repositories get <repo-id>
7
-
8
- Gets repository metadata, source readiness, and customer scan history.`).positional(`repo-id`,{type:`string`,description:`Repo ID`,demandOption:!0}).option(`scan-limit`,{type:`number`,description:`Scan limit`}).option(`scan-cursor`,{type:`string`,description:`Scan cursor`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <repo-id>`,describe:`Get repository`,builder:b,handler:async r=>c({command:`managed-defense vulnerability-discovery repositories get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={scan_limit:r[`scan-limit`],scan_cursor:r[`scan-cursor`]};if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery repositories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/repos/${r[`repo-id`]==null?`<repo-id>`:encodeURIComponent(String(r[`repo-id`]))}`,pathParams:{"repo-id":String(r[`repo-id`]??``)},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.managedDefense.vulnerabilityDiscovery.repositories.get({account_id:u,repo_id:r[`repo-id`],...c})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 managed-defense vulnerability-discovery repositories list
9
-
10
- Lists repositories available for vulnerability discovery in an account.`).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 C={command:`list`,describe:`List repositories`,builder:S,handler:async r=>c({command:`managed-defense vulnerability-discovery repositories list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={limit:r.limit,cursor:r.cursor};if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery repositories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/repos`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.managedDefense.vulnerabilityDiscovery.repositories.list({account_id:u,...c})),{successLabel:`Loaded`})})},w={command:`repositories`,describe:`Operations for vulnerability-discovery.repositories`,builder:e=>e.command(y).command(x).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 managed-defense vulnerability-discovery scans create
11
-
12
- Submits repository intent for operator review. This endpoint does not immediately start execution. Worker-imported repositories must be ready; explicit \`repo_hosts\` must be authorized before the request is persisted.`).option(`idempotency-key`,{type:`string`,description:"Optional. Supply this header to safely retry a request. Required when `worker_script_name` is supplied."}).option(`repos`,{type:`string`,array:!0,description:`The repos field`}).option(`telemetry-window-end`,{type:`string`,description:`The telemetry_window.end field`}).option(`telemetry-window-start`,{type:`string`,description:`The telemetry_window.start 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)`}).check(e=>{if([`telemetry-window-end`,`telemetry-window-start`].some(t=>e[t]!==void 0)){let t=[`telemetry-window-end`,`telemetry-window-start`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --telemetry_window-* flag is set`)}return!0})}const E={command:`create`,describe:`Create scan`,builder:T,handler:async p=>c({command:`managed-defense vulnerability-discovery scans create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{let c={};if(p[`idempotency-key`]!==void 0&&(c[`Idempotency-Key`]=String(p[`idempotency-key`])),p.dryRun){o({command:`cf managed-defense vulnerability-discovery scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},bodyKind:`json`,body:p.body===void 0?d({repos:p.repos,telemetry_window:{end:f(p[`telemetry-window-end`],`telemetry-window-end`,`text`),start:f(p[`telemetry-window-start`],`telemetry-window-start`,`text`)}}):u(p.body)});return}let m=await i(p),h=p.local?e:await n();if(p.accountId=h,p.body){let e=u(p.body);a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:e,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`});return}if(p.repos===void 0)throw Error(`--repos is required (or pass --body with this field set).`);let g={};p.repos!==void 0&&l(g,[`repos`],p.repos),p[`telemetry-window-end`]!==void 0&&l(g,[`telemetry_window`,`end`],f(p[`telemetry-window-end`],`telemetry-window-end`,`text`)),p[`telemetry-window-start`]!==void 0&&l(g,[`telemetry_window`,`start`],f(p[`telemetry-window-start`],`telemetry-window-start`,`text`)),a(await s(`Creating`,async()=>r(m,`POST`,`/accounts/${h}/managed-defense/vulnerability-discovery/scans`,{body:Object.keys(g).length>0?g:void 0,headers:Object.keys(c).length>0?c:void 0})),{successLabel:`Created`})})};function D(e){return e.usage(`$0 managed-defense vulnerability-discovery scans get <scan-id>
13
-
14
- Gets one customer-requested scan across its review and execution lifecycle.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get <scan-id>`,describe:`Get scan`,builder:D,handler:async r=>c({command:`managed-defense vulnerability-discovery scans get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery scans get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/scans/${r[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(r[`scan-id`]))}`,pathParams:{"scan-id":String(r[`scan-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.managedDefense.vulnerabilityDiscovery.scans.get({account_id:l,scan_id:r[`scan-id`]})),{successLabel:`Loaded`})})};function k(e){return e.usage(`$0 managed-defense vulnerability-discovery scans getReport <scan-id>
15
-
16
- Gets the active operator-reviewed scan report. Repository metadata records report readiness even when no publication is available.`).positional(`scan-id`,{type:`string`,description:`Scan ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`getReport <scan-id>`,describe:`Get reviewed vulnerability report`,builder:k,handler:async r=>c({command:`managed-defense vulnerability-discovery scans getReport`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery scans getReport`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/scans/${r[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(r[`scan-id`]))}/report`,pathParams:{"scan-id":String(r[`scan-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await n();r.accountId=l,a(await s(`Loading`,async()=>c.managedDefense.vulnerabilityDiscovery.scans.getReport({account_id:l,scan_id:r[`scan-id`]})),{successLabel:`Loaded`})})};function j(e){return e.usage(`$0 managed-defense vulnerability-discovery scans list
17
-
18
- Lists customer-requested scans across review and execution lifecycle states.`).option(`limit`,{type:`number`,description:`Limit`}).option(`cursor`,{type:`string`,description:`Cursor`}).option(`status`,{type:`string`,description:`Repeat parameter or provide comma-separated values.`}).option(`repo`,{type:`string`,description:`Repo`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`list`,describe:`List scans`,builder:m(j),handler:async r=>c({command:`managed-defense vulnerability-discovery scans list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={limit:r.limit,cursor:r.cursor,status:r.status,repo:r.repo};if(r.dryRun){o({command:`cf managed-defense vulnerability-discovery scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/managed-defense/vulnerability-discovery/scans`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.managedDefense.vulnerabilityDiscovery.scans.list({account_id:u,...c})),{successLabel:`Loaded`})})},N={command:`scans`,describe:`Operations for vulnerability-discovery.scans`,builder:e=>e.command(E).command(O).command(A).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},P={command:`vulnerability-discovery`,describe:`Operations for vulnerability-discovery`,builder:e=>e.command(_).command(w).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},F={command:`managed-defense`,describe:`managed-defense`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{F as default};
@@ -1,26 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-CGUzvBgY.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 mesh nodes configurations get <tunnel-id>
3
-
4
- Gets the high-availability configuration for a WARP Connector tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <tunnel-id>`,describe:`Get WARP Connector HA configuration`,builder:h,handler:async c=>s({command:`mesh nodes configurations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.configurations.get({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Loaded`})})};function _(e){return e.usage(`$0 mesh nodes configurations update <tunnel-id>
5
-
6
- Adds or updates the high-availability configuration for a WARP Connector tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`config-fnr-id`,{type:`string`,description:`Floating Network Resource ID — the secondary ENI that is moved between nodes on failover.`}).option(`ha-mode`,{type:`string`,description:"High-availability mode for the WARP Connector tunnel. `none` means HA is enabled but no provider is configured yet (newly created tunnels default to this). `disabled` means HA is explicitly turned off. `aws` uses AWS ENI move for failover. `local` uses virtual IPs (VIPs) on the local interface.",choices:[`none`,`disabled`,`aws`,`local`]}).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:`update <tunnel-id>`,describe:`Update WARP Connector HA configuration`,builder:_,handler:async d=>s({command:`mesh nodes configurations update`,classification:{safeFlags:[`ha-mode`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf mesh nodes configurations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${d[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(d[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(d[`tunnel-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({config:{fnr_id:u(d[`config-fnr-id`],`config-fnr-id`,`text`)},ha_mode:u(d[`ha-mode`],`ha-mode`,`text`)}):c(d.body)});return}let s=await r(d),p=d.local?e:await n();if(d.accountId=p,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.mesh.nodes.configurations.update({...e,account_id:p,tunnel_id:d[`tunnel-id`]})),{successLabel:`Updated`});return}d[`ha-mode`]===void 0&&(d[`ha-mode`]=await f(`ha-mode`,"High-availability mode for the WARP Connector tunnel. `none` means HA is enabled but no provider is configured yet (newly created tunnels default to this). `disabled` means HA is explicitly turned off. `aws` uses AWS ENI move for failover. `local` uses virtual IPs (VIPs) on the local interface.",[`none`,`disabled`,`aws`,`local`]));let m=l({config:{fnr_id:u(d[`config-fnr-id`],`config-fnr-id`,`text`)},ha_mode:u(d[`ha-mode`],`ha-mode`,`text`)});i(await o(`Updating`,async()=>s.mesh.nodes.configurations.update({...m,account_id:p,tunnel_id:d[`tunnel-id`]})),{successLabel:`Updated`})})},y={command:`configurations`,describe:`Operations for nodes.configurations`,builder:e=>e.command(g).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 mesh nodes connections list
7
-
8
- Fetches connection details for a WARP Connector Tunnel.`).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`list`,describe:`List WARP Connector Tunnel connections`,builder:b,handler:async c=>s({command:`mesh nodes connections list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes connections list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}/connections`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.connections.list({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Loaded`})})},S={command:`connections`,describe:`Operations for nodes.connections`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function C(e){return e.usage(`$0 mesh nodes connectors get <connector-id>
9
-
10
- Fetches connector and connection details for a WARP Connector Tunnel.`).positional(`connector-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`,demandOption:!0}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get <connector-id>`,describe:`Get WARP Connector Tunnel connector`,builder:C,handler:async c=>s({command:`mesh nodes connectors get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes connectors get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}/connectors/${c[`connector-id`]==null?`<connector-id>`:encodeURIComponent(String(c[`connector-id`]))}`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``),"connector-id":String(c[`connector-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.connectors.get({account_id:l,tunnel_id:c[`tunnel-id`],connector_id:c[`connector-id`]})),{successLabel:`Loaded`})})},T={command:`connectors`,describe:`Operations for nodes.connectors`,builder:e=>e.command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 mesh nodes create
11
-
12
- Creates a new Warp Connector Tunnel in an account.`).option(`ha`,{type:`boolean`,description:`Indicates that the tunnel will be created to be highly available. If omitted, defaults to false.`,default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).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 D={command:`create`,describe:`Create a Warp Connector Tunnel`,builder:E,handler:async f=>s({command:`mesh nodes create`,classification:{safeFlags:[`ha`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf mesh nodes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({ha:f.ha,name:u(f.name,`name`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.mesh.nodes.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`A user-friendly name for a tunnel.`));let m=l({ha:f.ha,name:u(f.name,`name`,`text`)});i(await o(`Creating`,async()=>s.mesh.nodes.create({...m,account_id:p})),{successLabel:`Created`})})};function O(e){return e.usage(`$0 mesh nodes delete <tunnel-id>
13
-
14
- Deletes a Warp Connector Tunnel from an account.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,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 k={command:`delete <tunnel-id>`,describe:`Delete a Warp Connector Tunnel`,builder:O,handler:async c=>s({command:`mesh nodes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`This operation permanently deletes a Mesh node (Warp Connector Tunnel).`})){process.stderr.write(`Aborted.
15
- `);return}i(await o(`Deleting`,async()=>s.mesh.nodes.delete({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Deleted`})})};function A(e){return e.usage(`$0 mesh nodes edit <tunnel-id>
16
-
17
- Updates an existing Warp Connector Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`name`,{type:`string`,description:`A user-friendly name for a tunnel.`}).option(`tunnel-secret`,{type:`string`,description:`Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.`}).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 j={command:`edit <tunnel-id>`,describe:`Update a Warp Connector Tunnel`,builder:A,handler:async d=>s({command:`mesh nodes edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf mesh nodes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${d[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(d[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(d[`tunnel-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({name:u(d.name,`name`,`text`),tunnel_secret:u(d[`tunnel-secret`],`tunnel-secret`,`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(`Updating`,async()=>s.mesh.nodes.edit({...e,account_id:f,tunnel_id:d[`tunnel-id`]})),{successLabel:`Updated`});return}let p=l({name:u(d.name,`name`,`text`),tunnel_secret:u(d[`tunnel-secret`],`tunnel-secret`,`text`)});i(await o(`Updating`,async()=>s.mesh.nodes.edit({...p,account_id:f,tunnel_id:d[`tunnel-id`]})),{successLabel:`Updated`})})};function M(e){return e.usage(`$0 mesh nodes failover <tunnel-id>
18
-
19
- Triggers a manual failover for a specific WARP Connector Tunnel, setting the specified client as the active connector. The tunnel must be configured for high availability (HA) and the client must be linked to the tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`client-id`,{type:`string`,description:`UUID of the Cloudflare Tunnel connector.`}).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}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const N={command:`failover <tunnel-id>`,describe:`Trigger a manual failover for a WARP Connector Tunnel`,builder:M,handler:async f=>s({command:`mesh nodes failover`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},f,async()=>{if(f.dryRun){a({command:`cf mesh nodes failover`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${f[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(f[`tunnel-id`]))}/failover`,pathParams:{"tunnel-id":String(f[`tunnel-id`]??``)},bodyKind:`json`,body:f.body===void 0?l({client_id:u(f[`client-id`],`client-id`,`text`)}):c(f.body)});return}let s=await r(f),m=f.local?e:await n();if(f.accountId=m,!await p({force:!!f.force,message:`This operation triggers a manual failover, changing the active connector for a Mesh node.`})){process.stderr.write(`Aborted.
20
- `);return}if(f.body){let e=c(f.body);i(await o(`Deleting`,async()=>s.mesh.nodes.failover({...e,account_id:m,tunnel_id:f[`tunnel-id`]})),{successLabel:`Deleted`});return}f[`client-id`]===void 0&&(f[`client-id`]=await d(`client-id`,`UUID of the Cloudflare Tunnel connector.`));let h=l({client_id:u(f[`client-id`],`client-id`,`text`)});i(await o(`Deleting`,async()=>s.mesh.nodes.failover({...h,account_id:m,tunnel_id:f[`tunnel-id`]})),{successLabel:`Deleted`})})};function P(e){return e.usage(`$0 mesh nodes get <tunnel-id>
21
-
22
- Fetches a single Warp Connector Tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`get <tunnel-id>`,describe:`Get a Warp Connector Tunnel`,builder:P,handler:async c=>s({command:`mesh nodes get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.get({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 mesh nodes list
23
-
24
- Lists and filters Warp Connector Tunnels in an account.`).option(`name`,{type:`string`,description:`A user-friendly name for the tunnel.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted tunnels. If `false`, exclude deleted tunnels. If empty, all tunnels will be included."}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`uuid`,{type:`string`,description:`UUID of the tunnel.`}).option(`was-active-at`,{type:`string`,description:`Was active at`}).option(`was-inactive-at`,{type:`string`,description:`Was inactive at`}).option(`include-prefix`,{type:`string`,description:`Include prefix`}).option(`exclude-prefix`,{type:`string`,description:`Exclude prefix`}).option(`status`,{type:`string`,description:"The status of the tunnel. Valid values are `inactive` (tunnel has never been run), `degraded` (tunnel is active and able to serve traffic but in an unhealthy state), `healthy` (tunnel is active and able to serve traffic), or `down` (tunnel can not serve traffic as it has no connections to the Cloudflare Edge).",choices:[`inactive`,`degraded`,`healthy`,`down`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`List Warp Connector Tunnels`,builder:m(I),handler:async c=>s({command:`mesh nodes list`,classification:{safeFlags:[`is-deleted`,`status`,`dry-run`]}},c,async()=>{let s={name:c.name,is_deleted:c[`is-deleted`],existed_at:c[`existed-at`],uuid:c.uuid,was_active_at:c[`was-active-at`],was_inactive_at:c[`was-inactive-at`],include_prefix:c[`include-prefix`],exclude_prefix:c[`exclude-prefix`],status:c.status,per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf mesh nodes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.mesh.nodes.list({account_id:u,...s})),{successLabel:`Loaded`})})};function R(e){return e.usage(`$0 mesh nodes token get <tunnel-id>
25
-
26
- Gets the token used to associate warp device with a specific Warp Connector tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`get <tunnel-id>`,describe:`Get a Warp Connector Tunnel token`,builder:R,handler:async c=>s({command:`mesh nodes token get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes token get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}/token`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.token.get({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Loaded`})})},B={command:`token`,describe:`Operations for nodes.token`,builder:e=>e.command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`nodes`,describe:`Operations for nodes`,builder:e=>e.command(D).command(k).command(j).command(N).command(F).command(L).command(y).command(S).command(T).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`mesh`,describe:`mesh`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{H as default};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import{existsSync as e,readFileSync as t}from"node:fs";import{dirname as n,join as r}from"node:path";import{fileURLToPath as i}from"node:url";function a(e){return typeof e==`object`&&!!e&&`commands`in e&&Array.isArray(e.commands)}const o=new Map;function s(a,s,c){let l=`${a}::${s}`,u=o.get(l);if(u!==void 0)return u;let d=n(i(a)),f=[r(d,`_meta`,s),r(d,`_generated`,`_meta`,s),r(d,`..`,`_generated`,`_meta`,s),r(process.cwd(),`src`,`commands`,`_generated`,`_meta`,s)];for(let n of f)if(e(n))try{let e=JSON.parse(t(n,`utf-8`));if(c(e))return o.set(l,e),e}catch{}return o.set(l,null),null}export{s as n,a as t};
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-CGUzvBgY.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-id>
3
-
4
- Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:m,handler:async c=>s({command:`mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}/associations`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mtlsCertificates.associations.get({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Loaded`})})},g={command:`associations`,describe:`Operations for associations`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 mtls-certificates create
5
-
6
- Upload a certificate that you want to use with mTLS-enabled Cloudflare services, such as Bring Your Own CA (BYO-CA) for mTLS. To create certificates issued by the Cloudflare managed CA, use the [Create Client Certificate endpoint](/api/resources/client_certificates/methods/create/).`).option(`ca`,{type:`boolean`,description:`Indicates whether the certificate is a CA or leaf certificate.`}).option(`certificates`,{type:`string`,description:`The uploaded root CA certificate.`}).option(`name`,{type:`string`,description:`Optional unique name for the certificate. Only used for human readability.`}).option(`private-key`,{type:`string`,description:`The private key for the certificate. This field is only needed for specific use cases such as using a custom certificate with Zero Trust's block page.`}).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:`create`,describe:`Upload mTLS certificate`,builder:_,handler:async f=>s({command:`mtls-certificates create`,classification:{safeFlags:[`ca`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({ca:f.ca,certificates:u(f.certificates,`certificates`,`text`),name:u(f.name,`name`,`text`),private_key:u(f[`private-key`],`private-key`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.mtlsCertificates.create({...e,account_id:p})),{successLabel:`Created`});return}if(f.ca===void 0)throw Error(`--ca is required (or pass --body with this field set).`);f.certificates===void 0&&(f.certificates=await d(`certificates`,`The uploaded root CA certificate.`));let m=l({ca:f.ca,certificates:u(f.certificates,`certificates`,`text`),name:u(f.name,`name`,`text`),private_key:u(f[`private-key`],`private-key`,`text`)});i(await o(`Creating`,async()=>s.mtlsCertificates.create({...m,account_id:p})),{successLabel:`Created`})})};function y(e){return e.usage(`$0 mtls-certificates delete <mtls-certificate-id>
7
-
8
- Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,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 b={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:y,handler:async c=>s({command:`mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
9
- `);return}i(await o(`Deleting`,async()=>s.mtlsCertificates.delete({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Deleted`})})};function x(e){return e.usage(`$0 mtls-certificates get <mtls-certificate-id>
10
-
11
- Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:x,handler:async c=>s({command:`mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mtlsCertificates.get({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 mtls-certificates list
12
-
13
- Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List mTLS certificates`,builder:p(C),handler:async c=>s({command:`mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={type:c.type};if(c.dryRun){a({command:`cf mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.mtlsCertificates.list({account_id:u,...s})),{successLabel:`Loaded`})})},T={command:`mtls-certificates`,describe:`mtls-certificates`,builder:e=>e.command(v).command(b).command(S).command(w).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{T as default};
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-CGUzvBgY.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 network routes cidr create
3
-
4
- Routes a private network through a Cloudflare Tunnel.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`,default:``}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).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 ee={command:`create`,describe:`Create a tunnel route`,builder:m,handler:async f=>s({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.routes.cidr.create({...e,account_id:p})),{successLabel:`Created`});return}f.network===void 0&&(f.network=await d(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let m=l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)});i(await o(`Creating`,async()=>s.network.routes.cidr.create({...m,account_id:p})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 network routes cidr delete <route-id>
5
-
6
- Deletes a private network route from an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,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 <route-id>`,describe:`Delete a tunnel route`,builder:h,handler:async c=>s({command:`network routes cidr delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes/${c[`route-id`]==null?`<route-id>`:encodeURIComponent(String(c[`route-id`]))}`,pathParams:{"route-id":String(c[`route-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a private network route.`})){process.stderr.write(`Aborted.
7
- `);return}i(await o(`Deleting`,async()=>s.network.routes.cidr.delete({account_id:l,route_id:c[`route-id`]})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 network routes cidr edit <route-id>
8
-
9
- Updates an existing private network route in an account. The fields that are meant to be updated should be provided in the body of the request.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).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 <route-id>`,describe:`Update a tunnel route`,builder:_,handler:async d=>s({command:`network routes cidr edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes cidr edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes/${d[`route-id`]==null?`<route-id>`:encodeURIComponent(String(d[`route-id`]))}`,pathParams:{"route-id":String(d[`route-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),network:u(d.network,`network`,`text`),virtual_network_id:u(d[`virtual-network-id`],`virtual-network-id`,`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(`Updating`,async()=>s.network.routes.cidr.edit({...e,account_id:f,route_id:d[`route-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),network:u(d.network,`network`,`text`),virtual_network_id:u(d[`virtual-network-id`],`virtual-network-id`,`text`)});i(await o(`Updating`,async()=>s.network.routes.cidr.edit({...p,account_id:f,route_id:d[`route-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 network routes cidr get <route-id>
10
-
11
- Get a private network route in an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <route-id>`,describe:`Get tunnel route`,builder:y,handler:async c=>s({command:`network routes cidr get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes/${c[`route-id`]==null?`<route-id>`:encodeURIComponent(String(c[`route-id`]))}`,pathParams:{"route-id":String(c[`route-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.network.routes.cidr.get({account_id:l,route_id:c[`route-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 network routes cidr list
12
-
13
- Lists and filters private network routes in an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted routes. If `false`, exclude deleted routes. If empty, all routes will be included."}).option(`network-subset`,{type:`string`,description:`If set, only list routes that are contained within this IP range.`}).option(`network-superset`,{type:`string`,description:`If set, only list routes that contain this IP range.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`route-id`,{type:`string`,description:`UUID of the route.`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List tunnel routes`,builder:p(x),handler:async c=>s({command:`network routes cidr list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={comment:c.comment,is_deleted:c[`is-deleted`],network_subset:c[`network-subset`],network_superset:c[`network-superset`],existed_at:c[`existed-at`],tunnel_id:c[`tunnel-id`],route_id:c[`route-id`],tun_types:c[`tun-types`],virtual_network_id:c[`virtual-network-id`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes cidr list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.cidr.list({account_id:u,...s})),{successLabel:`Loaded`})})},C={command:`cidr`,describe:`Operations for routes.cidr`,builder:e=>e.command(ee).command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 network routes hostname create
14
-
15
- Create a hostname route.`).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).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 T={command:`create`,describe:`Create hostname route`,builder:w,handler:async d=>s({command:`network routes hostname create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`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.network.routes.hostname.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)});i(await o(`Creating`,async()=>s.network.routes.hostname.create({...p,account_id:f})),{successLabel:`Created`})})};function E(e){return e.usage(`$0 network routes hostname delete <hostname-route-id>
16
-
17
- Delete a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route 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 D={command:`delete <hostname-route-id>`,describe:`Delete hostname route`,builder:E,handler:async c=>s({command:`network routes hostname delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/routes/hostname/${c[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(c[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(c[`hostname-route-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a hostname route.`})){process.stderr.write(`Aborted.
18
- `);return}i(await o(`Deleting`,async()=>s.network.routes.hostname.delete({account_id:l,hostname_route_id:c[`hostname-route-id`]})),{successLabel:`Deleted`})})};function O(e){return e.usage(`$0 network routes hostname edit <hostname-route-id>
19
-
20
- Updates a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).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 k={command:`edit <hostname-route-id>`,describe:`Update hostname route`,builder:O,handler:async d=>s({command:`network routes hostname edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/routes/hostname/${d[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(d[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(d[`hostname-route-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`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(`Updating`,async()=>s.network.routes.hostname.edit({...e,account_id:f,hostname_route_id:d[`hostname-route-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)});i(await o(`Updating`,async()=>s.network.routes.hostname.edit({...p,account_id:f,hostname_route_id:d[`hostname-route-id`]})),{successLabel:`Updated`})})};function A(e){return e.usage(`$0 network routes hostname get <hostname-route-id>
21
-
22
- Get a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <hostname-route-id>`,describe:`Get hostname route`,builder:A,handler:async c=>s({command:`network routes hostname get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/routes/hostname/${c[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(c[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(c[`hostname-route-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.network.routes.hostname.get({account_id:l,hostname_route_id:c[`hostname-route-id`]})),{successLabel:`Loaded`})})};function M(e){return e.usage(`$0 network routes hostname list
23
-
24
- Lists and filters hostname routes in an account.`).option(`id`,{type:`string`,description:`The hostname route ID.`}).option(`hostname`,{type:`string`,description:`If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.`}).option(`tunnel-id`,{type:`string`,description:`If set, only list hostname routes that point to a specific tunnel.`}).option(`comment`,{type:`string`,description:`If set, only list hostname routes with the given comment.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only return deleted hostname routes. If `false`, exclude deleted hostname routes."}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List hostname routes`,builder:M,handler:async c=>s({command:`network routes hostname list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,hostname:c.hostname,tunnel_id:c[`tunnel-id`],comment:c.comment,existed_at:c[`existed-at`],is_deleted:c[`is-deleted`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes hostname list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.hostname.list({account_id:u,...s})),{successLabel:`Loaded`})})},P={command:`hostname`,describe:`Operations for routes.hostname`,builder:e=>e.command(T).command(D).command(k).command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 network routes resolve <ip>
25
-
26
- Fetches routes that contain the given IP address.`).positional(`ip`,{type:`string`,description:`Ip`,demandOption:!0}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`default-virtual-network-fallback`,{type:`boolean`,description:`When the virtual_network_id parameter is not provided the request filter will default search routes that are in the default virtual network for the account. If this parameter is set to false, the search will include routes that do not have a virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`resolve <ip>`,describe:`Get tunnel route by IP`,builder:F,handler:async c=>s({command:`network routes resolve`,classification:{safeFlags:[`default-virtual-network-fallback`,`dry-run`]}},c,async()=>{let s={virtual_network_id:c[`virtual-network-id`],default_virtual_network_fallback:c[`default-virtual-network-fallback`]};if(c.dryRun){a({command:`cf network routes resolve`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes/ip/${c.ip==null?`<ip>`:encodeURIComponent(String(c.ip))}`,pathParams:{ip:String(c.ip??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.resolve({account_id:u,ip:c.ip,...s})),{successLabel:`Loaded`})})},L={command:`routes`,describe:`Operations for routes`,builder:e=>e.command(I).command(C).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function R(e){return e.usage(`$0 network subnets cloudflare-source edit <address-family>
27
-
28
- Updates the Cloudflare Source subnet of the given address family`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).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 te={command:`edit <address-family>`,describe:`Update Cloudflare Source Subnet`,builder:R,handler:async d=>s({command:`network subnets cloudflare-source edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets cloudflare-source edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/cloudflare_source/${d[`address-family`]==null?`<address-family>`:encodeURIComponent(String(d[`address-family`]))}`,pathParams:{"address-family":String(d[`address-family`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`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(`Updating`,async()=>s.network.subnets.cloudflareSource.edit({...e,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.cloudflareSource.edit({...p,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`})})},z={command:`cloudflare-source`,describe:`Operations for subnets.cloudflare-source`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function B(e){return e.usage(`$0 network subnets initial-resolved-ip edit <address-family>
29
-
30
- Updates the CIDR for the account's default Initial Resolved IP Subnet of the given address family. The new CIDR must not conflict with existing private routes in the account.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).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 <address-family>`,describe:`Update Initial Resolved IP Subnet`,builder:B,handler:async d=>s({command:`network subnets initial-resolved-ip edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets initial-resolved-ip edit`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${d[`address-family`]==null?`<address-family>`:encodeURIComponent(String(d[`address-family`]))}`,pathParams:{"address-family":String(d[`address-family`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`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(`Updating`,async()=>s.network.subnets.initialResolvedIp.edit({...e,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.initialResolvedIp.edit({...p,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`})})};function H(e){return e.usage(`$0 network subnets initial-resolved-ip get <address-family>
31
-
32
- Returns the account's default Initial Resolved IP Subnet for the given address family.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <address-family>`,describe:`Get Initial Resolved IP Subnet`,builder:H,handler:async c=>s({command:`network subnets initial-resolved-ip get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets initial-resolved-ip get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${c[`address-family`]==null?`<address-family>`:encodeURIComponent(String(c[`address-family`]))}`,pathParams:{"address-family":String(c[`address-family`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.network.subnets.initialResolvedIp.get({account_id:l,address_family:c[`address-family`]})),{successLabel:`Loaded`})})},W={command:`initial-resolved-ip`,describe:`Operations for subnets.initial-resolved-ip`,builder:e=>e.command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(e){return e.usage(`$0 network subnets list
33
-
34
- Lists and filters subnets in an account.`).option(`name`,{type:`string`,description:`If set, only list subnets with the given name`}).option(`comment`,{type:`string`,description:`If set, only list subnets with the given comment.`}).option(`network`,{type:`string`,description:`If set, only list the subnet whose network exactly matches the given CIDR.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`address-family`,{type:`string`,description:"If set, only include subnets in the given address family - `v4` or `v6`",choices:[`v4`,`v6`]}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include default subnets. If `false`, exclude default subnets subnets. If not set, all subnets will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted subnets. If `false`, exclude deleted subnets. If not set, all subnets will be included."}).option(`sort-order`,{type:`string`,description:"Sort order of the results. `asc` means oldest to newest, `desc` means newest to oldest. If not set, they will not be in any particular order.",choices:[`asc`,`desc`]}).option(`subnet-types`,{type:`string`,description:`If set, the types of subnets to include, separated by comma.`,choices:[`cloudflare_source`,`initial_resolved_ip`,`warp`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`list`,describe:`List Subnets`,builder:p(G),handler:async c=>s({command:`network subnets list`,classification:{safeFlags:[`address-family`,`is-default-network`,`is-deleted`,`sort-order`,`subnet-types`,`dry-run`]}},c,async()=>{let s={name:c.name,comment:c.comment,network:c.network,existed_at:c[`existed-at`],address_family:c[`address-family`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`],sort_order:c[`sort-order`],subnet_types:c[`subnet-types`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network subnets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.network.subnets.list({account_id:u,...s})),{successLabel:`Loaded`})})};function q(e){return e.usage("$0 network subnets warp create\n\nCreate a WARP IP assignment subnet. Currently, only IPv4 subnets can be created. **Network constraints:** - The network must be within one of the following private IP ranges: - `10.0.0.0/8` (RFC 1918) - `172.16.0.0/12` (RFC 1918) - `192.168.0.0/16` (RFC 1918) - `100.64.0.0/10` (RFC 6598 - CGNAT) - The subnet must have a prefix length of `/24` or larger (e.g., `/16`, `/20`, `/24` are valid; `/25`, `/28` are not)").option(`comment`,{type:`string`,description:`An optional description of the subnet.`,default:``}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this is the default subnet for the account. There can only be one default subnet per account.",default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).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 J={command:`create`,describe:`Create WARP IP subnet`,builder:q,handler:async f=>s({command:`network subnets warp create`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network subnets warp create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/warp`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`),network:u(f.network,`network`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.subnets.warp.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`A user-friendly name for the subnet.`)),f.network===void 0&&(f.network=await d(`network`,`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`));let m=l({comment:u(f.comment,`comment`,`text`),is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`),network:u(f.network,`network`,`text`)});i(await o(`Creating`,async()=>s.network.subnets.warp.create({...m,account_id:p})),{successLabel:`Created`})})};function Y(e){return e.usage(`$0 network subnets warp delete <subnet-id>
35
-
36
- Delete a WARP IP assignment subnet. This operation is idempotent - deleting an already-deleted or non-existent subnet will return success with a null result.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,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 X={command:`delete <subnet-id>`,describe:`Delete WARP IP subnet`,builder:Y,handler:async c=>s({command:`network subnets warp delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/warp/${c[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(c[`subnet-id`]))}`,pathParams:{"subnet-id":String(c[`subnet-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a WARP IP subnet.`})){process.stderr.write(`Aborted.
37
- `);return}i(await o(`Deleting`,async()=>s.network.subnets.warp.delete({account_id:l,subnet_id:c[`subnet-id`]})),{successLabel:`Deleted`})})};function Z(e){return e.usage("$0 network subnets warp edit <subnet-id>\n\nUpdates a WARP IP assignment subnet. **Update constraints:** - The `network` field cannot be modified for WARP subnets. Only `name`, `comment`, and `is_default_network` can be updated. - IPv6 subnets cannot be updated").positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this is the default subnet for the account. There can only be one default subnet per account."}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).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 Q={command:`edit <subnet-id>`,describe:`Update WARP IP subnet`,builder:Z,handler:async d=>s({command:`network subnets warp edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets warp edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/warp/${d[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(d[`subnet-id`]))}`,pathParams:{"subnet-id":String(d[`subnet-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`),network:u(d.network,`network`,`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(`Updating`,async()=>s.network.subnets.warp.edit({...e,account_id:f,subnet_id:d[`subnet-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.warp.edit({...p,account_id:f,subnet_id:d[`subnet-id`]})),{successLabel:`Updated`})})};function ne(e){return e.usage(`$0 network subnets warp get <subnet-id>
38
-
39
- Get a WARP IP assignment subnet.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <subnet-id>`,describe:`Get WARP IP subnet`,builder:ne,handler:async c=>s({command:`network subnets warp get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/zerotrust/subnets/warp/${c[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(c[`subnet-id`]))}`,pathParams:{"subnet-id":String(c[`subnet-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.network.subnets.warp.get({account_id:l,subnet_id:c[`subnet-id`]})),{successLabel:`Loaded`})})},ie={command:`warp`,describe:`Operations for subnets.warp`,builder:e=>e.command(J).command(X).command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ae={command:`subnets`,describe:`Operations for subnets`,builder:e=>e.command(K).command(z).command(W).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.usage(`$0 network virtual-networks create
40
-
41
- Adds a new virtual network to an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account.",default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).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 $={command:`create`,describe:`Create a virtual network`,builder:oe,handler:async f=>s({command:`network virtual-networks create`,classification:{safeFlags:[`is-default`,`is-default-network`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network virtual-networks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),is_default:f[`is-default`],is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.virtualNetworks.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`A user-friendly name for the virtual network.`));let m=l({comment:u(f.comment,`comment`,`text`),is_default:f[`is-default`],is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`)});i(await o(`Creating`,async()=>s.network.virtualNetworks.create({...m,account_id:p})),{successLabel:`Created`})})};function se(e){return e.usage(`$0 network virtual-networks delete <virtual-network-id>
42
-
43
- Deletes an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,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 ce={command:`delete <virtual-network-id>`,describe:`Delete a virtual network`,builder:se,handler:async c=>s({command:`network virtual-networks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/virtual_networks/${c[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(c[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(c[`virtual-network-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a virtual network.`})){process.stderr.write(`Aborted.
44
- `);return}i(await o(`Deleting`,async()=>s.network.virtualNetworks.delete({account_id:l,virtual_network_id:c[`virtual-network-id`]})),{successLabel:`Deleted`})})};function le(e){return e.usage(`$0 network virtual-networks edit <virtual-network-id>
45
-
46
- Updates an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).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 ue={command:`edit <virtual-network-id>`,describe:`Update a virtual network`,builder:le,handler:async d=>s({command:`network virtual-networks edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network virtual-networks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/virtual_networks/${d[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(d[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(d[`virtual-network-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`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(`Updating`,async()=>s.network.virtualNetworks.edit({...e,account_id:f,virtual_network_id:d[`virtual-network-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`)});i(await o(`Updating`,async()=>s.network.virtualNetworks.edit({...p,account_id:f,virtual_network_id:d[`virtual-network-id`]})),{successLabel:`Updated`})})};function de(e){return e.usage(`$0 network virtual-networks get <virtual-network-id>
47
-
48
- Get a virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <virtual-network-id>`,describe:`Get a virtual network`,builder:de,handler:async c=>s({command:`network virtual-networks get`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/virtual_networks/${c[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(c[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(c[`virtual-network-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.network.virtualNetworks.get({account_id:l,virtual_network_id:c[`virtual-network-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 network virtual-networks list
49
-
50
- Lists and filters virtual networks in an account.`).option(`id`,{type:`string`,description:`UUID of the virtual network.`}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`is-default`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted virtual networks. If `false`, exclude deleted virtual networks. If empty, all virtual networks will be included."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List virtual networks`,builder:pe,handler:async c=>s({command:`network virtual-networks list`,classification:{safeFlags:[`is-default`,`is-default-network`,`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,is_default:c[`is-default`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`]};if(c.dryRun){a({command:`cf network virtual-networks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.network.virtualNetworks.list({account_id:u,...s})),{successLabel:`Loaded`})})},he={command:`virtual-networks`,describe:`Operations for virtual-networks`,builder:e=>e.command($).command(ce).command(ue).command(fe).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ge={command:`network`,describe:`network`,builder:e=>e.command(L).command(ae).command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ge as default};
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env node
2
- import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,t as n}from"./context-CEOHpZgd.mjs";import{r}from"./auth-BIr56Mbx.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-A61dRbXl.mjs";import{t as s}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-CGUzvBgY.mjs";function m(e){return e.usage(`$0 oauth-clients create
3
-
4
- Create a new OAuth client for an account.`).option(`allowed-cors-origins`,{type:`string`,array:!0,description:`Array of allowed CORS origins.`}).option(`client-name`,{type:`string`,description:`Human-readable name of the OAuth client.`}).option(`client-uri`,{type:`string`,description:`URL of the home page of the client.`}).option(`grant-types`,{type:`string`,array:!0,description:"Array of OAuth grant types the client is allowed to use. `authorization_code` is required; `refresh_token` may be included optionally."}).option(`logo-uri`,{type:`string`,description:`URL of the client's logo.`}).option(`optional-scopes`,{type:`string`,array:!0,description:"Scopes that the authorizing user may decline during consent. Each value must also appear in `scopes`. The scopes `openid`, `offline`, and `offline_access` cannot be optional."}).option(`policy-uri`,{type:`string`,description:`URL that points to a privacy policy document.`}).option(`post-logout-redirect-uris`,{type:`string`,array:!0,description:`Array of allowed post-logout redirect URIs.`}).option(`redirect-uris`,{type:`string`,array:!0,description:`Array of allowed redirect URIs for the client.`}).option(`response-types`,{type:`string`,array:!0,description:`Array of OAuth response types the client is allowed to use.`}).option(`scopes`,{type:`string`,array:!0,description:"Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes `offline_access` and `openid` are added or removed automatically based on `grant_types` and `response_types`."}).option(`token-endpoint-auth-method`,{type:`string`,description:`The authentication method the client uses at the token endpoint.`,choices:[`none`,`client_secret_basic`,`client_secret_post`]}).option(`tos-uri`,{type:`string`,description:`URL that points to a terms of service document.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const h={command:`create`,describe:`Create OAuth Client`,builder:m,handler:async p=>s({command:`oauth-clients create`,classification:{safeFlags:[`token-endpoint-auth-method`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf oauth-clients create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({allowed_cors_origins:p[`allowed-cors-origins`],client_name:u(p[`client-name`],`client-name`,`text`),client_uri:u(p[`client-uri`],`client-uri`,`text`),grant_types:p[`grant-types`],logo_uri:u(p[`logo-uri`],`logo-uri`,`text`),optional_scopes:p[`optional-scopes`],policy_uri:u(p[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:p[`post-logout-redirect-uris`],redirect_uris:p[`redirect-uris`],response_types:p[`response-types`],scopes:p.scopes,token_endpoint_auth_method:u(p[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(p[`tos-uri`],`tos-uri`,`text`)}):c(p.body)});return}let s=await r(p),m=p.local?e:await n();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Creating`,async()=>s.oauthClients.create({...e,account_id:m})),{successLabel:`Created`});return}if(p[`client-name`]===void 0&&(p[`client-name`]=await d(`client-name`,`Human-readable name of the OAuth client.`)),p[`grant-types`]===void 0)throw Error(`--grant-types is required (or pass --body with this field set).`);if(p[`redirect-uris`]===void 0)throw Error(`--redirect-uris is required (or pass --body with this field set).`);if(p[`response-types`]===void 0)throw Error(`--response-types is required (or pass --body with this field set).`);if(p.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);p[`token-endpoint-auth-method`]===void 0&&(p[`token-endpoint-auth-method`]=await f(`token-endpoint-auth-method`,`The authentication method the client uses at the token endpoint.`,[`none`,`client_secret_basic`,`client_secret_post`]));let h=l({allowed_cors_origins:p[`allowed-cors-origins`],client_name:u(p[`client-name`],`client-name`,`text`),client_uri:u(p[`client-uri`],`client-uri`,`text`),grant_types:p[`grant-types`],logo_uri:u(p[`logo-uri`],`logo-uri`,`text`),optional_scopes:p[`optional-scopes`],policy_uri:u(p[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:p[`post-logout-redirect-uris`],redirect_uris:p[`redirect-uris`],response_types:p[`response-types`],scopes:p.scopes,token_endpoint_auth_method:u(p[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(p[`tos-uri`],`tos-uri`,`text`)});i(await o(`Creating`,async()=>s.oauthClients.create({...h,account_id:m})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 oauth-clients delete-rotated-secret <oauth-client-id>
5
-
6
- Removes the old client secret after a rotation, keeping only the new one. Use this after you have updated your client configuration to use the new secret. The \`has_rotated_secret\` field on the client indicates whether there is an old secret to delete.`).positional(`oauth-client-id`,{type:`string`,description:`The unique identifier for an OAuth client.`,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 _={command:`delete-rotated-secret <oauth-client-id>`,describe:`Delete Rotated OAuth Client Secret`,builder:g,handler:async c=>s({command:`oauth-clients delete-rotated-secret`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf oauth-clients delete-rotated-secret`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients/${c[`oauth-client-id`]==null?`<oauth-client-id>`:encodeURIComponent(String(c[`oauth-client-id`]))}/rotate_secret`,pathParams:{"oauth-client-id":String(c[`oauth-client-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
7
- `);return}i(await o(`Deleting`,async()=>s.oauthClients.deleteRotatedSecret({account_id:l,oauth_client_id:c[`oauth-client-id`]})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 oauth-clients delete <oauth-client-id>
8
-
9
- Delete an OAuth client.`).positional(`oauth-client-id`,{type:`string`,description:`The unique identifier for an OAuth client.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <oauth-client-id>`,describe:`Delete OAuth Client`,builder:v,handler:async c=>s({command:`oauth-clients delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf oauth-clients delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients/${c[`oauth-client-id`]==null?`<oauth-client-id>`:encodeURIComponent(String(c[`oauth-client-id`]))}`,pathParams:{"oauth-client-id":String(c[`oauth-client-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await p({force:!!c.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
10
- `);return}i(await o(`Deleting`,async()=>s.oauthClients.delete({account_id:l,oauth_client_id:c[`oauth-client-id`]})),{successLabel:`Deleted`})})};function b(e){return e.usage(`$0 oauth-clients get <oauth-client-id>
11
-
12
- Get details of a specific OAuth client.`).positional(`oauth-client-id`,{type:`string`,description:`The unique identifier for an OAuth client.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <oauth-client-id>`,describe:`OAuth Client Details`,builder:b,handler:async c=>s({command:`oauth-clients get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf oauth-clients get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients/${c[`oauth-client-id`]==null?`<oauth-client-id>`:encodeURIComponent(String(c[`oauth-client-id`]))}`,pathParams:{"oauth-client-id":String(c[`oauth-client-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.oauthClients.get({account_id:l,oauth_client_id:c[`oauth-client-id`]})),{successLabel:`Loaded`})})};function S(e){return e.usage(`$0 oauth-clients list
13
-
14
- List all OAuth clients for an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List OAuth Clients`,builder:S,handler:async c=>s({command:`oauth-clients list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf oauth-clients list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.oauthClients.list({account_id:l})),{successLabel:`Loaded`})})};function w(e){return e.usage("$0 oauth-clients rotate-secret <oauth-client-id>\n\nCreates a second client secret so you can update your client configuration before deleting the old one. The `has_rotated_secret` field on the client will be set to `true`.").positional(`oauth-client-id`,{type:`string`,description:`The unique identifier for an OAuth client.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`rotate-secret <oauth-client-id>`,describe:`Rotate OAuth Client Secret`,builder:w,handler:async c=>s({command:`oauth-clients rotate-secret`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf oauth-clients rotate-secret`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients/${c[`oauth-client-id`]==null?`<oauth-client-id>`:encodeURIComponent(String(c[`oauth-client-id`]))}/rotate_secret`,pathParams:{"oauth-client-id":String(c[`oauth-client-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Creating`,async()=>s.oauthClients.rotateSecret({account_id:l,oauth_client_id:c[`oauth-client-id`]})),{successLabel:`Created`})})};function E(e){return e.usage(`$0 oauth-clients update <oauth-client-id>
15
-
16
- Update an existing OAuth client. Only include fields you want to update.`).positional(`oauth-client-id`,{type:`string`,description:`The unique identifier for an OAuth client.`,demandOption:!0}).option(`allowed-cors-origins`,{type:`string`,array:!0,description:`Array of allowed CORS origins.`}).option(`client-name`,{type:`string`,description:`Human-readable name of the OAuth client.`}).option(`client-uri`,{type:`string`,description:`URL of the home page of the client.`}).option(`grant-types`,{type:`string`,array:!0,description:"Array of OAuth grant types the client is allowed to use. `authorization_code` is required; `refresh_token` may be included optionally."}).option(`logo-uri`,{type:`string`,description:`URL of the client's logo.`}).option(`optional-scopes`,{type:`string`,array:!0,description:"Scopes that the authorizing user may decline during consent. Each value must also appear in `scopes`. The scopes `openid`, `offline`, and `offline_access` cannot be optional."}).option(`policy-uri`,{type:`string`,description:`URL that points to a privacy policy document.`}).option(`post-logout-redirect-uris`,{type:`string`,array:!0,description:`Array of allowed post-logout redirect URIs.`}).option(`redirect-uris`,{type:`string`,array:!0,description:`Array of allowed redirect URIs for the client.`}).option(`response-types`,{type:`string`,array:!0,description:`Array of OAuth response types the client is allowed to use.`}).option(`scopes`,{type:`string`,array:!0,description:"Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes `offline_access` and `openid` are added or removed automatically based on `grant_types` and `response_types`."}).option(`token-endpoint-auth-method`,{type:`string`,description:`The authentication method the client uses at the token endpoint.`,choices:[`none`,`client_secret_basic`,`client_secret_post`]}).option(`tos-uri`,{type:`string`,description:`URL that points to a terms of service document.`}).option(`visibility`,{type:`string`,description:"Promote the OAuth client from private to public visibility. Only `public` is accepted; demotion to `private` is not supported. Promotion requires a non-empty client name, logo URI, verified client URI host, and at least one non-identity scope.",choices:[`public`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Partial update request for an OAuth client. Only include fields you want to update.`})}const D={command:`update <oauth-client-id>`,describe:`Update OAuth Client`,builder:E,handler:async d=>s({command:`oauth-clients update`,classification:{safeFlags:[`token-endpoint-auth-method`,`visibility`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf oauth-clients update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients/${d[`oauth-client-id`]==null?`<oauth-client-id>`:encodeURIComponent(String(d[`oauth-client-id`]))}`,pathParams:{"oauth-client-id":String(d[`oauth-client-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({allowed_cors_origins:d[`allowed-cors-origins`],client_name:u(d[`client-name`],`client-name`,`text`),client_uri:u(d[`client-uri`],`client-uri`,`text`),grant_types:d[`grant-types`],logo_uri:u(d[`logo-uri`],`logo-uri`,`text`),optional_scopes:d[`optional-scopes`],policy_uri:u(d[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:d[`post-logout-redirect-uris`],redirect_uris:d[`redirect-uris`],response_types:d[`response-types`],scopes:d.scopes,token_endpoint_auth_method:u(d[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(d[`tos-uri`],`tos-uri`,`text`),visibility:u(d.visibility,`visibility`,`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(`Updating`,async()=>s.oauthClients.update({...e,account_id:f,oauth_client_id:d[`oauth-client-id`]})),{successLabel:`Updated`});return}let p=l({allowed_cors_origins:d[`allowed-cors-origins`],client_name:u(d[`client-name`],`client-name`,`text`),client_uri:u(d[`client-uri`],`client-uri`,`text`),grant_types:d[`grant-types`],logo_uri:u(d[`logo-uri`],`logo-uri`,`text`),optional_scopes:d[`optional-scopes`],policy_uri:u(d[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:d[`post-logout-redirect-uris`],redirect_uris:d[`redirect-uris`],response_types:d[`response-types`],scopes:d.scopes,token_endpoint_auth_method:u(d[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(d[`tos-uri`],`tos-uri`,`text`),visibility:u(d.visibility,`visibility`,`text`)});i(await o(`Updating`,async()=>s.oauthClients.update({...p,account_id:f,oauth_client_id:d[`oauth-client-id`]})),{successLabel:`Updated`})})},O={command:`oauth-clients`,describe:`oauth-clients`,builder:e=>e.command(h).command(y).command(_).command(x).command(C).command(T).command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{O as default};