cf 1.0.0-beta.27 → 1.0.0-beta.28

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 (267) hide show
  1. package/dist/_meta/commands.json +5787 -1914
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +796 -557
  4. package/dist/{abuse-reports-RxXqfDEW.mjs → abuse-reports-D9edOyag.mjs} +5 -5
  5. package/dist/{access-BxEprr2f.mjs → access-CKCCSrrU.mjs} +1 -1
  6. package/dist/{accounts-DU2ZNYqP.mjs → accounts-CNb9U9bK.mjs} +22 -22
  7. package/dist/{acm-CBCIKBJ4.mjs → acm-CdKTAToZ.mjs} +3 -3
  8. package/dist/{addressing-BKxiLRHk.mjs → addressing-eZI_C-b0.mjs} +18 -18
  9. package/dist/{agent-memory-DkBpQYUL.mjs → agent-memory-BBHCEE7h.mjs} +7 -7
  10. package/dist/{ai-DqEN_hhg.mjs → ai-Csl_QNwv.mjs} +7 -7
  11. package/dist/ai-audit-DlqWsQi-.mjs +6 -0
  12. package/dist/{ai-gateway-B0uiYVHq.mjs → ai-gateway-Lj4On37s.mjs} +13 -13
  13. package/dist/{ai-search-DbZIxdio.mjs → ai-search-BxyhS3X7.mjs} +17 -17
  14. package/dist/{ai-security-CvZfP2JC.mjs → ai-security-DvU2iYkY.mjs} +3 -3
  15. package/dist/{alerting-BjGwBxZT.mjs → alerting-r0G2X9y9.mjs} +10 -10
  16. package/dist/{analytics-C7kT_H-W.mjs → analytics-C6bfqm-W.mjs} +7 -7
  17. package/dist/analytics-engine-BlIecoOe.mjs +4 -0
  18. package/dist/api-Dnt6lRJG.mjs +3 -0
  19. package/dist/{api-security-BbcvDtff.mjs → api-security-DZ7GWOqD.mjs} +26 -26
  20. package/dist/argo-Bh0_cj49.mjs +14 -0
  21. package/dist/{artifacts-2R2sxIKO.mjs → artifacts-VZJWVq_6.mjs} +16 -16
  22. package/dist/{audit-logs-LoBB1OO_.mjs → audit-logs-B8cGL4B9.mjs} +1 -1
  23. package/dist/auth-B-h0BHg7.mjs +2 -0
  24. package/dist/auth-B6tswVxH.mjs +2 -0
  25. package/dist/{auth-D499YE2n.mjs → auth-clmqFEWU.mjs} +3 -3
  26. package/dist/{auth-token-BwpERbnG.mjs → auth-token-DW4dJVdj.mjs} +1 -1
  27. package/dist/{autoconfig-B2w-woU0.mjs → autoconfig-C0ynlGHf.mjs} +47 -47
  28. package/dist/{basin-catalog-AgOHGiPI.mjs → basin-catalog-TehR1sKZ.mjs} +11 -11
  29. package/dist/billing-B2KusU6g.mjs +22 -0
  30. package/dist/{blocks-C8vyXIAT.mjs → blocks-BFulF68V.mjs} +1 -1
  31. package/dist/body-parser-DoewLePl.mjs +2 -0
  32. package/dist/{body-unions-CjpNjwSW.mjs → body-unions-DNs981Ia.mjs} +1 -1
  33. package/dist/{bot-management-fwxKIbaB.mjs → bot-management-CXHXgrQC.mjs} +2 -2
  34. package/dist/{botnet-feed-DCYB5kYZ.mjs → botnet-feed-UyK7Rfp6.mjs} +1 -1
  35. package/dist/brand-protection-kv1ba80i.mjs +14 -0
  36. package/dist/browser-run-D-vRoZmf.mjs +40 -0
  37. package/dist/build-BzJGqb2o.mjs +2 -0
  38. package/dist/build-FFxzigo4.mjs +2 -0
  39. package/dist/{builds-CoazxuN-.mjs → builds-BbxINHRP.mjs} +15 -15
  40. package/dist/cache-BacNNtLu.mjs +36 -0
  41. package/dist/{cf-hP0SOgC6.mjs → cf-BQ_LRiut.mjs} +2 -2
  42. package/dist/{chunk-DSGVRFIS-DQwKND2c.mjs → chunk-DSGVRFIS-BaNZNW-M.mjs} +1 -1
  43. package/dist/{chunk-SOBRPAPT-BKzUiNx_.mjs → chunk-SOBRPAPT-QTjnHSNs.mjs} +1 -1
  44. package/dist/{cli-Nqf58-1c.mjs → cli-B7vslRfu.mjs} +1 -1
  45. package/dist/{client-side-security-VmZzMy-m.mjs → client-side-security-bzB9JosR.mjs} +6 -6
  46. package/dist/{cloud-connector-bMlFnqP0.mjs → cloud-connector-BHtf37R5.mjs} +2 -2
  47. package/dist/{cloudflared-Ba4KWdTO.mjs → cloudflared-QDdHMUEY.mjs} +1 -1
  48. package/dist/{cloudforce-one-CCaIBOAo.mjs → cloudforce-one-DWBPQDA3.mjs} +71 -71
  49. package/dist/{command-C4OgtX_x.mjs → command-AVwd7XjE.mjs} +1 -1
  50. package/dist/{command-C5Kqc5Km.mjs → command-B87T_f2f.mjs} +1 -1
  51. package/dist/{command-CelQVrZL.mjs → command-CEHhi3t0.mjs} +1 -1
  52. package/dist/{command-ByYf12-8.mjs → command-CYmQE79n.mjs} +1 -1
  53. package/dist/{command-pMoNdd22.mjs → command-CbxXc5IW.mjs} +1 -1
  54. package/dist/{command-Bih1HLr3.mjs → command-Ce8CVLth.mjs} +1 -1
  55. package/dist/{command-MxFFWqMg.mjs → command-CqDudQZs.mjs} +1 -1
  56. package/dist/{command-BASaTmJc.mjs → command-D4YcwpVp.mjs} +1 -1
  57. package/dist/{command-BxZBNPxG.mjs → command-D895kdlh.mjs} +1 -1
  58. package/dist/{command-CrAlzysj.mjs → command-D9Qyi1B0.mjs} +1 -1
  59. package/dist/{command-BiIVclNA.mjs → command-DeutqL1n.mjs} +1 -1
  60. package/dist/{command-C0qCuw03.mjs → command-Dl9ICrRK.mjs} +1 -1
  61. package/dist/{command-CZAR85ba.mjs → command-DtCSe8Hy.mjs} +1 -1
  62. package/dist/{command-C2FVMd1b.mjs → command-DwzVtmb3.mjs} +1 -1
  63. package/dist/{command-CFxyp8Uo.mjs → command-wtBubtZ4.mjs} +1 -1
  64. package/dist/{completions-DRzBiqpv.mjs → completions-BvdKtzsX.mjs} +1 -1
  65. package/dist/{connector-interrupts-CrTeSyaM.mjs → connector-interrupts-dUPW6Ya_.mjs} +2 -2
  66. package/dist/{connector-telemetry-events-BbAOUt9h.mjs → connector-telemetry-events-DWVCqnhn.mjs} +1 -1
  67. package/dist/{connector-telemetry-snapshots-DcpBx7Qx.mjs → connector-telemetry-snapshots-CeMP3qeI.mjs} +1 -1
  68. package/dist/{connectors-D1WFLJoE.mjs → connectors-DZFGNw3i.mjs} +4 -4
  69. package/dist/containers-B06OGOEB.mjs +380 -0
  70. package/dist/{containers-BOBEs1Gk.mjs → containers-DCzQCo79.mjs} +8 -8
  71. package/dist/{content-scan-D1GfPSL0.mjs → content-scan-XhnNJqXf.mjs} +4 -4
  72. package/dist/{context-Dp4CXG22.mjs → context-BY1Eh_Qe.mjs} +1 -1
  73. package/dist/{cps-D4uhzg3k.mjs → cps-CohlxvuN.mjs} +2 -2
  74. package/dist/create-DmLDMvrj.mjs +2 -0
  75. package/dist/{csam-scanner-DOOUBeBM.mjs → csam-scanner-BV4bHq8v.mjs} +2 -2
  76. package/dist/{custom-csrs-DtdFo5YZ.mjs → custom-csrs-BVdMQjYq.mjs} +2 -2
  77. package/dist/{custom-hostnames-ccdlELaD.mjs → custom-hostnames-r-CxhSa1.mjs} +5 -5
  78. package/dist/{custom-nameservers-p3gDjfva.mjs → custom-nameservers-CapMDyly.mjs} +2 -2
  79. package/dist/{custom-pages-DAkKVzgR.mjs → custom-pages-BVIniWfq.mjs} +5 -5
  80. package/dist/{d1-CDIyRdh4.mjs → d1-nJCOJZb8.mjs} +20 -22
  81. package/dist/{delegate-B4bKqF7i.mjs → delegate-CcL6RoGw.mjs} +1 -1
  82. package/dist/delegate.mjs +1 -1
  83. package/dist/{deploy-BaC5Ty7F.mjs → deploy-DJMnWFNk.mjs} +1 -1
  84. package/dist/{deploy-context-DTTgNGro.mjs → deploy-context-YCW3eqP1.mjs} +15 -15
  85. package/dist/{deploy-input-mAy06fAI.mjs → deploy-input-CQLBXFEB.mjs} +1 -1
  86. package/dist/{dev-De-HszNT.mjs → dev-GsYHvMah.mjs} +1 -1
  87. package/dist/{diagnostics-D1CUs2o9.mjs → diagnostics-C3nqxsAO.mjs} +4 -4
  88. package/dist/{dist-D5qkmHhC.mjs → dist-D-ihn_mV.mjs} +42 -33
  89. package/dist/{dls-DWBiYzY1.mjs → dls-N1x8sAK3.mjs} +3 -3
  90. package/dist/{dns-wMjf1t6-.mjs → dns-DATWP-PF.mjs} +25 -25
  91. package/dist/{dns-firewall-DH9xIT5H.mjs → dns-firewall-n3Y2ui6W.mjs} +4 -4
  92. package/dist/{docs-BA7qslb2.mjs → docs-CRc_WOXh.mjs} +1 -1
  93. package/dist/{dry-run-gy0Hl9xo.mjs → dry-run-kJbjn4kG.mjs} +1 -1
  94. package/dist/{durable-objects-DF0MYpnV.mjs → durable-objects-DHK9w-vO.mjs} +2 -2
  95. package/dist/{email-auth-BShMFXn4.mjs → email-auth-ptdqNSTZ.mjs} +1 -1
  96. package/dist/{email-domains-CDSbVclP.mjs → email-domains-uL22-zRY.mjs} +2 -2
  97. package/dist/{email-routing-CBCkbg_F.mjs → email-routing-CV43rMJC.mjs} +12 -12
  98. package/dist/{email-security-CnNa1YON.mjs → email-security-DK_SJ0yi.mjs} +38 -38
  99. package/dist/{email-sending-CpDSw-Eb.mjs → email-sending-CTQafGec.mjs} +11 -11
  100. package/dist/{error-sanitization-DG8WSzHe.mjs → error-sanitization-BkgtZ0Vx.mjs} +1 -1
  101. package/dist/error-sanitization-D069tpKk.mjs +2 -0
  102. package/dist/{errors-DatLr-iR.mjs → errors-VG1mgwJl.mjs} +1 -1
  103. package/dist/{field-extractors-BwGdMnTr.mjs → field-extractors-jcZ_bAGc.mjs} +2 -2
  104. package/dist/{firewall-CY_oem-d.mjs → firewall-CW-fAI9m.mjs} +12 -12
  105. package/dist/{flagship-Bat5EZCk.mjs → flagship-RiLnDwfJ.mjs} +8 -8
  106. package/dist/{fraud-CSUKLh8X.mjs → fraud-DvfBBTe8.mjs} +2 -2
  107. package/dist/get-3XNn0upb.mjs +2 -0
  108. package/dist/{google-tag-gateway-C2skt6t-.mjs → google-tag-gateway-C5WYsSXv.mjs} +2 -2
  109. package/dist/{healthchecks-uC43QKQd.mjs → healthchecks-BA1fmzTm.mjs} +5 -5
  110. package/dist/{hyperdrive-FcBbpew4.mjs → hyperdrive-Ch6klUp3.mjs} +4 -4
  111. package/dist/{iam-8T74DNhH.mjs → iam-LlGEzRCq.mjs} +14 -14
  112. package/dist/{images-C3JUaf6b.mjs → images-C5WqUXkK.mjs} +11 -11
  113. package/dist/index.mjs +1 -1
  114. package/dist/{init-BEVVz4_P.mjs → init-EVsjBrOz.mjs} +2 -2
  115. package/dist/{intel-DRy4rHrt.mjs → intel-vcWyslaX.mjs} +14 -14
  116. package/dist/{interactive-CKHdGvkh.mjs → interactive-BCDFSPtq.mjs} +1 -1
  117. package/dist/{internal-CamuESs0.mjs → internal-BhV9WjLp.mjs} +1 -1
  118. package/dist/{ips-DinCNnWj.mjs → ips-CqHjVsqd.mjs} +1 -1
  119. package/dist/k2-CZT2Pd5J.mjs +10 -0
  120. package/dist/kv-Ipa7dnvF.mjs +12 -0
  121. package/dist/{lazy-command-WB1FOuew.mjs → lazy-command-DbKVgdGT.mjs} +1 -1
  122. package/dist/{leaked-credential-checks-CSZd9hBQ.mjs → leaked-credential-checks-EzT4TTjO.mjs} +4 -4
  123. package/dist/{live-B6AsI_E5.mjs → live-C9L1bNuE.mjs} +1 -1
  124. package/dist/{load-balancers-gap5u4b1.mjs → load-balancers-Cb3VkSfc.mjs} +21 -21
  125. package/dist/local-D5Vq6ooZ.mjs +2 -0
  126. package/dist/{local-CgBhtmON.mjs → local-DIJ7SIKC.mjs} +1 -1
  127. package/dist/{local-runtime-CmlJ20uJ.mjs → local-runtime-BZjgkacr.mjs} +1 -1
  128. package/dist/{login-BJHaTERg.mjs → login-DG5ebyab.mjs} +1 -1
  129. package/dist/login-DRJugxya.mjs +2 -0
  130. package/dist/{logpush-qhlxsioM.mjs → logpush-C5Gw7F_9.mjs} +16 -16
  131. package/dist/{logs-bI54CJ0w.mjs → logs-y3REfHbb.mjs} +8 -8
  132. package/dist/magic-network-monitoring-BZBGZB6M.mjs +34 -0
  133. package/dist/{magic-transit-BwDyySHJ.mjs → magic-transit-BPV_POf5.mjs} +129 -129
  134. package/dist/{managed-defense-CsBBkfeQ.mjs → managed-defense-BaUBSUcz.mjs} +3 -3
  135. package/dist/{managed-transforms-CUC-uAbW.mjs → managed-transforms-CjkjLzMC.mjs} +2 -2
  136. package/dist/{mcp-CyI0sDmL.mjs → mcp-RPtrISTy.mjs} +6 -6
  137. package/dist/{mesh-Czr0UCP4.mjs → mesh-DZ4QHBPE.mjs} +5 -5
  138. package/dist/{migrate-DKDWYrz2.mjs → migrate-CRIUqGi2.mjs} +1 -1
  139. package/dist/{monetization-NUgfDtSy.mjs → monetization-CVZqM8Xo.mjs} +4 -4
  140. package/dist/{network-B42zrBic.mjs → network-DLt2JUo1.mjs} +15 -15
  141. package/dist/{network-interconnects-DuIBe8fK.mjs → network-interconnects-9nS5jL__.mjs} +10 -10
  142. package/dist/{o11y-oEUpMC3O.mjs → o11y-ySxrnP1Z.mjs} +45 -43
  143. package/dist/{oauth-BmSFLp_s.mjs → oauth-CFVUl-Wv.mjs} +1 -1
  144. package/dist/{oauth-BLQ1-y3R.mjs → oauth-Cidoyxfp.mjs} +1 -1
  145. package/dist/{observability-BxhJQCgZ.mjs → observability-C-KNh__y.mjs} +1 -1
  146. package/dist/ohttp-gateway-B5nCl4s3.mjs +8 -0
  147. package/dist/organizations-DbeeWUL4.mjs +71 -0
  148. package/dist/output-BZQEl3mK.mjs +2 -0
  149. package/dist/package-B7RgwuFR.mjs +2 -0
  150. package/dist/{page-rules-J6LhwR-s.mjs → page-rules-DRw763O1.mjs} +4 -4
  151. package/dist/{pages-BksdnChs.mjs → pages-DfQnxiTk.mjs} +12 -12
  152. package/dist/{pay-per-crawl-BLcbHRoR.mjs → pay-per-crawl-EHYtSKxX.mjs} +13 -13
  153. package/dist/{pay-per-use-VatiU-Nt.mjs → pay-per-use-wdEhl8k4.mjs} +11 -11
  154. package/dist/{pipelines-B5AoB3f3.mjs → pipelines-DbyrI6F4.mjs} +11 -11
  155. package/dist/{precursor-D3VH2MXT.mjs → precursor-Dx8lN4UJ.mjs} +2 -2
  156. package/dist/previews-DEVNSip2.mjs +6 -0
  157. package/dist/{progress-DLri-rA7.mjs → progress-yvPscjYg.mjs} +1 -1
  158. package/dist/{prompt-D0dXwuME.mjs → prompt-CEpZ-lQZ.mjs} +1 -1
  159. package/dist/{queues-BsAck4To.mjs → queues-DgMc7Z6A.mjs} +18 -18
  160. package/dist/{r2-BYjdHDEZ.mjs → r2-BpTVicIq.mjs} +21 -21
  161. package/dist/{radar-CvLtu-Vr.mjs → radar-DW-S1VUh.mjs} +11 -11
  162. package/dist/{raw-fetch-DQeDx1wT.mjs → raw-fetch-Cl5spWC3.mjs} +1 -1
  163. package/dist/{ready-gsGEaWLL.mjs → ready-d0li0X6r.mjs} +1 -1
  164. package/dist/{realtime-DiCEgFTC.mjs → realtime-DMKHLYF4.mjs} +41 -41
  165. package/dist/{registrar-D4wdgWpo.mjs → registrar-D23gfKBi.mjs} +5 -5
  166. package/dist/{registrar-sandbox-B6yopzdG.mjs → registrar-sandbox-lVLB1-mC.mjs} +4 -4
  167. package/dist/{reporting-BiHgnT8L.mjs → reporting-WX8P3Y0k.mjs} +2 -2
  168. package/dist/{request-headers-CoxHUNcB.mjs → request-headers-C0FpeBhz.mjs} +1 -1
  169. package/dist/{request-tracers-817HTytF.mjs → request-tracers-qd7XOAka.mjs} +2 -2
  170. package/dist/resource-sharing-B2ZSt_cA.mjs +36 -0
  171. package/dist/{rules-CRhe_ca9.mjs → rules-CB0QQTB3.mjs} +5 -5
  172. package/dist/{rulesets-CKyc-Xlx.mjs → rulesets-DmqwixUC.mjs} +6 -6
  173. package/dist/{rum-BfnWHW_d.mjs → rum-BZ_24qZU.mjs} +9 -9
  174. package/dist/{run-Ciw_GIrC.mjs → run-BOKI1uWa.mjs} +1 -1
  175. package/dist/run-DBqOjD1P.mjs +2 -0
  176. package/dist/{schema-DuLIZRhA.mjs → schema-Dj9STsWI.mjs} +1 -1
  177. package/dist/{schema-cache-BIo0Gi2H.mjs → schema-cache-5NkOj7Y3.mjs} +1 -1
  178. package/dist/{schema-flags-DrqvwQNw.mjs → schema-flags-CXm9iIv6.mjs} +1 -1
  179. package/dist/{scim-C4iRWNYB.mjs → scim-DchxaJfE.mjs} +8 -8
  180. package/dist/{secrets-store-DgtzZRze.mjs → secrets-store-oAft1cFE.mjs} +5 -5
  181. package/dist/{security-insights-SlUGW3F_.mjs → security-insights-DMm0qg_m.mjs} +15 -15
  182. package/dist/{security-txt-C3YS0REz.mjs → security-txt-CIt0494b.mjs} +2 -2
  183. package/dist/{session-D2yuwO4i.mjs → session-vzNfUhPl.mjs} +1 -1
  184. package/dist/{shared--uVkAAd7.mjs → shared-MK-_lkbn.mjs} +1 -1
  185. package/dist/{signed-url-ClLk45_J.mjs → signed-url-gNangfwc.mjs} +1 -1
  186. package/dist/{smart-shield-Dn95hqUH.mjs → smart-shield-Boy_qbqd.mjs} +6 -6
  187. package/dist/{snippets-BNUKOajz.mjs → snippets-DdoDYXW-.mjs} +3 -3
  188. package/dist/{spawn-DuT4snxu.mjs → spawn-B5F4OIHG.mjs} +1 -1
  189. package/dist/{spectrum-Cj0BMtg2.mjs → spectrum-DLYIHelC.mjs} +3 -3
  190. package/dist/{speed-BrVeZRyX.mjs → speed-DugG9Tm9.mjs} +2 -2
  191. package/dist/{sql-BX1pBqj3.mjs → sql-Bb56llsb.mjs} +2 -2
  192. package/dist/src-BoSDeQ9m.mjs +133 -0
  193. package/dist/{ssl-Bx4LCutF.mjs → ssl-Bg4X3WGk.mjs} +24 -24
  194. package/dist/startup-profile-DQVkZZpb.mjs +2 -0
  195. package/dist/{startup-profile-DqaYNT0b.mjs → startup-profile-DZL2DC44.mjs} +1 -1
  196. package/dist/state-DW3QZtfh.mjs +2 -0
  197. package/dist/{state-BmzOLELo.mjs → state-mr5ux1Nb.mjs} +1 -1
  198. package/dist/{stream-BRzr6yh0.mjs → stream-BuZYDbNR.mjs} +21 -21
  199. package/dist/{tags-xVzjZxdt.mjs → tags-SKz2odE_.mjs} +3 -3
  200. package/dist/{telemetry-CJ9URio3.mjs → telemetry-B4zmCpT0.mjs} +1 -1
  201. package/dist/telemetry-DkDUr4KK.mjs +2 -0
  202. package/dist/{tenant-custom-nameservers-M7Fxqh2W.mjs → tenant-custom-nameservers-BhkhBerL.mjs} +2 -2
  203. package/dist/tenants-DD-GMq0K.mjs +13 -0
  204. package/dist/{tools-C-vmgYSv.mjs → tools-KW_4hvzY.mjs} +1 -1
  205. package/dist/{tunnels-DQVXKUKA.mjs → tunnels-D90ztENM.mjs} +6 -6
  206. package/dist/{turnstile-B_Ugzgom.mjs → turnstile-DhSU_Xar.mjs} +4 -4
  207. package/dist/ui-xjCox-gU.mjs +2 -0
  208. package/dist/{update-check-DHUo4FOJ.mjs → update-check-CRttabfu.mjs} +1 -1
  209. package/dist/{update-check-DRr0eRhB.mjs → update-check-HltjTMDE.mjs} +1 -1
  210. package/dist/update-check-worker.mjs +1 -1
  211. package/dist/{url-normalization-CZRQH_pJ.mjs → url-normalization-K7gkmPvG.mjs} +2 -2
  212. package/dist/{url-scanner-BH4PLy16.mjs → url-scanner-BRdWwka4.mjs} +3 -3
  213. package/dist/{user-Bn82Qw0Y.mjs → user-Cmb1_Wu5.mjs} +50 -50
  214. package/dist/{vectorize-DoVVz_sh.mjs → vectorize-BTBerJME.mjs} +11 -11
  215. package/dist/verify-B9ILCohg.mjs +2 -0
  216. package/dist/verify-BCuWaO-L.mjs +2 -0
  217. package/dist/version-6Bpy6Bgt.mjs +2 -0
  218. package/dist/{waiting-rooms-QUW131o3.mjs → waiting-rooms-LymmKIGr.mjs} +13 -13
  219. package/dist/{web-assets-CgQXsp8m.mjs → web-assets-LHPQsrnY.mjs} +21 -21
  220. package/dist/{web3-TY9s6Swn.mjs → web3-BsOio0Ae.mjs} +12 -12
  221. package/dist/workers-BnLiOjZf.mjs +39 -0
  222. package/dist/{workers-builds-BgGY0IGk.mjs → workers-builds-sKpITeRk.mjs} +4 -4
  223. package/dist/{workers-for-platforms-5RkV9MVp.mjs → workers-for-platforms-BGp6yr6P.mjs} +9 -9
  224. package/dist/{workers-vpc-Bt4OQbwM.mjs → workers-vpc-D8lefWDo.mjs} +3 -3
  225. package/dist/{workflows-6m85DdqF.mjs → workflows-B-ZIG3y7.mjs} +22 -22
  226. package/dist/{wrangler-migration-BbmGOu8l.mjs → wrangler-migration-6E6wT_LZ.mjs} +66 -57
  227. package/dist/{zaraz-8WSJ7l0L.mjs → zaraz-BBKki5WS.mjs} +11 -11
  228. package/dist/{zero-trust-DK0cqDZv.mjs → zero-trust-BZDXM5r6.mjs} +165 -165
  229. package/dist/{zones-DTAcguf6.mjs → zones-B-UV_DGE.mjs} +24 -24
  230. package/package.json +14 -14
  231. package/dist/ai-audit-BmzOgt6x.mjs +0 -6
  232. package/dist/analytics-engine-BHpcNSdD.mjs +0 -4
  233. package/dist/api-X3wKppsT.mjs +0 -3
  234. package/dist/argo-D1VONzu-.mjs +0 -14
  235. package/dist/auth-CspwoBlp.mjs +0 -2
  236. package/dist/auth-FK2eLQ02.mjs +0 -2
  237. package/dist/billing-DRNww0iC.mjs +0 -24
  238. package/dist/body-parser-BKcZS9iJ.mjs +0 -2
  239. package/dist/brand-protection-BVICLzBc.mjs +0 -26
  240. package/dist/browser-run-CEk-NIgP.mjs +0 -40
  241. package/dist/build-CRm2TQq8.mjs +0 -2
  242. package/dist/build-DO_GNhRl.mjs +0 -2
  243. package/dist/cache-jlLJLSu7.mjs +0 -36
  244. package/dist/containers-DINLx5_i.mjs +0 -380
  245. package/dist/create-BtmuVqVL.mjs +0 -2
  246. package/dist/error-sanitization-B025CygB.mjs +0 -2
  247. package/dist/get-Be821dio.mjs +0 -2
  248. package/dist/k2-wsanPL3y.mjs +0 -10
  249. package/dist/kv-BLSPcEnH.mjs +0 -12
  250. package/dist/local-CFsO9Tkg.mjs +0 -2
  251. package/dist/login-BfuOf-Yi.mjs +0 -2
  252. package/dist/magic-network-monitoring-CX3TaMTu.mjs +0 -34
  253. package/dist/organization-CEnlXwrl.mjs +0 -70
  254. package/dist/organizations-Dt86ToxE.mjs +0 -4
  255. package/dist/origin-post-quantum-encryption-lX-uaJSL.mjs +0 -6
  256. package/dist/output-BJEgbI0G.mjs +0 -2
  257. package/dist/package-CiRJBRHO.mjs +0 -2
  258. package/dist/previews-DzJ85fsr.mjs +0 -6
  259. package/dist/resource-sharing-CW9xxtq5.mjs +0 -36
  260. package/dist/run-DD45EQTm.mjs +0 -2
  261. package/dist/src-DPnUfK4c.mjs +0 -131
  262. package/dist/startup-profile-tZNb2HGz.mjs +0 -2
  263. package/dist/state-Uwfrmw5I.mjs +0 -2
  264. package/dist/telemetry-Pt5GpCKD.mjs +0 -2
  265. package/dist/ui-FYultowZ.mjs +0 -2
  266. package/dist/version-Zr2oF8mY.mjs +0 -2
  267. package/dist/workers-B3uJqJKc.mjs +0 -39
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CgBhtmON.mjs";import{n}from"./auth-FK2eLQ02.mjs";import{a as r,t as i}from"./context-Dp4CXG22.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-DLri-rA7.mjs";import{t as c}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-D0dXwuME.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,body:`json`};function h(e){return e.usage(`$0 network routes cidr create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,t as i}from"./context-BY1Eh_Qe.mjs";import{t as a}from"./output-BZQEl3mK.mjs";import{t as o}from"./dry-run-kJbjn4kG.mjs";import{t as s}from"./progress-yvPscjYg.mjs";import{t as c}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as l,t as u}from"./body-parser-DoewLePl.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-CEpZ-lQZ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,body:`json`};function h(e){return e.usage(`$0 network routes cidr create
3
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 g={command:`create`,describe:`Create a tunnel route`,builder:h,handler:async e=>c({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.network===void 0&&(e.network=await f(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let h=u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`};function v(e){return e.usage(`$0 network routes cidr delete <route-id>
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 g={command:`create`,describe:`Create a tunnel route`,builder:h,handler:async e=>c({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),h=e.local?t:await i();if(e.accountId=h,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>p.send(m,{body:e,account_id:h}));a(t,{successLabel:`Created`});return}e.network===void 0&&(e.network=await f(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let g=u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}),_=await s(`Creating`,async()=>p.send(m,{body:g,account_id:h}));a(_,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`};function v(e){return e.usage(`$0 network routes cidr delete <route-id>
5
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 y={command:`delete <route-id>`,describe:`Delete a tunnel route`,builder:v,handler:async e=>c({command:`network routes cidr delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a private network route.`}))return;let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,route_id:e[`route-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`,body:`json`};function ee(e){return e.usage(`$0 network routes cidr edit <route-id>
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 y={command:`delete <route-id>`,describe:`Delete a tunnel route`,builder:v,handler:async e=>c({command:`network routes cidr delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a private network route.`}))return;let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,route_id:e[`route-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`,body:`json`};function x(e){return e.usage(`$0 network routes cidr edit <route-id>
7
7
 
8
- 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 te={command:`edit <route-id>`,describe:`Update a tunnel route`,builder:ee,handler:async e=>c({command:`network routes cidr edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(b,{body:t,account_id:f,route_id:e[`route-id`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}),m=await s(`Updating`,async()=>c.send(b,{body:p,account_id:f,route_id:e[`route-id`]}));a(m,{successLabel:`Updated`})})};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`};function re(e){return e.usage(`$0 network routes cidr get <route-id>
8
+ 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 ee={command:`edit <route-id>`,describe:`Update a tunnel route`,builder:x,handler:async e=>c({command:`network routes cidr edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(b,{body:t,account_id:p,route_id:e[`route-id`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),network:d(e.network,`network`,`text`),virtual_network_id:d(e[`virtual-network-id`],`virtual-network-id`,`text`)}),h=await s(`Updating`,async()=>f.send(b,{body:m,account_id:p,route_id:e[`route-id`]}));a(h,{successLabel:`Updated`})})};var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/routes/${t.route_id}`};function ne(e){return e.usage(`$0 network routes cidr get <route-id>
9
9
 
10
- 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 ie={command:`get <route-id>`,describe:`Get tunnel route`,builder:re,handler:async e=>c({command:`network routes cidr get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(ne,{account_id:l,route_id:e[`route-id`]}));a(u,{successLabel:`Loaded`})})};var ae={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,query:[`comment`,`is_deleted`,`network_subset`,`network_superset`,`existed_at`,`tunnel_id`,`route_id`,`tun_types`,`virtual_network_id`,`per_page`,`page`]};function oe(e){return e.usage(`$0 network routes cidr list
10
+ 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 re={command:`get <route-id>`,describe:`Get tunnel route`,builder:ne,handler:async e=>c({command:`network routes cidr get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes cidr get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/${e[`route-id`]==null?`<route-id>`:encodeURIComponent(String(e[`route-id`]))}`,pathParams:{"route-id":String(e[`route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(te,{account_id:l,route_id:e[`route-id`]}));a(u,{successLabel:`Loaded`})})};var ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/routes`,query:[`comment`,`is_deleted`,`network_subset`,`network_superset`,`existed_at`,`tunnel_id`,`route_id`,`tun_types`,`virtual_network_id`,`per_page`,`page`]};function ae(e){return e.usage(`$0 network routes cidr list
11
11
 
12
- 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`,array:!0,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 x={command:`list`,describe:`List tunnel routes`,builder:oe,handler:async e=>c({command:`network routes cidr list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},e,async()=>{let c={comment:e.comment,is_deleted:e[`is-deleted`],network_subset:e[`network-subset`],network_superset:e[`network-superset`],existed_at:e[`existed-at`],tunnel_id:e[`tunnel-id`],route_id:e[`route-id`],tun_types:e[`tun-types`],virtual_network_id:e[`virtual-network-id`],per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await r();o({command:`cf network routes cidr list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/teamnet/routes`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(ae,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},S={command:`cidr`,describe:`Operations for routes.cidr`,builder:e=>e.command(g).command(y).command(te).command(ie).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname`,body:`json`};function w(e){return e.usage(`$0 network routes hostname create
12
+ 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`,array:!0,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 oe={command:`list`,describe:`List tunnel routes`,builder:ae,handler:async e=>c({command:`network routes cidr list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},e,async()=>{let c={comment:e.comment,is_deleted:e[`is-deleted`],network_subset:e[`network-subset`],network_superset:e[`network-superset`],existed_at:e[`existed-at`],tunnel_id:e[`tunnel-id`],route_id:e[`route-id`],tun_types:e[`tun-types`],virtual_network_id:e[`virtual-network-id`],per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await r();o({command:`cf network routes cidr list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/teamnet/routes`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(ie,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},S={command:`cidr`,describe:`Operations for routes.cidr`,builder:e=>e.command(g).command(y).command(ee).command(re).command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname`,body:`json`};function w(e){return e.usage(`$0 network routes hostname create
13
13
 
14
- 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 e=>c({command:`network routes hostname create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(C,{body:t,account_id:f}));a(n,{successLabel:`Created`});return}let p=u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}),m=await s(`Creating`,async()=>c.send(C,{body:p,account_id:f}));a(m,{successLabel:`Created`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname/${t.hostname_route_id}`};function D(e){return e.usage(`$0 network routes hostname delete <hostname-route-id>
14
+ 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 e=>c({command:`network routes hostname create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>f.send(C,{body:e,account_id:p}));a(t,{successLabel:`Created`});return}let m=u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}),h=await s(`Creating`,async()=>f.send(C,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname/${t.hostname_route_id}`};function D(e){return e.usage(`$0 network routes hostname delete <hostname-route-id>
15
15
 
16
16
  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 O={command:`delete <hostname-route-id>`,describe:`Delete hostname route`,builder:D,handler:async e=>c({command:`network routes hostname delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname/${e[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(e[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(e[`hostname-route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a hostname route.`}))return;let u=await s(`Deleting`,async()=>c.send(E,{account_id:l,hostname_route_id:e[`hostname-route-id`]}));a(u,{successLabel:`Deleted`})})};var k={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname/${t.hostname_route_id}`,body:`json`};function A(e){return e.usage(`$0 network routes hostname edit <hostname-route-id>
17
17
 
18
- 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 j={command:`edit <hostname-route-id>`,describe:`Update hostname route`,builder:A,handler:async e=>c({command:`network routes hostname edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname/${e[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(e[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(e[`hostname-route-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(k,{body:t,account_id:f,hostname_route_id:e[`hostname-route-id`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}),m=await s(`Updating`,async()=>c.send(k,{body:p,account_id:f,hostname_route_id:e[`hostname-route-id`]}));a(m,{successLabel:`Updated`})})};var M={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname/${t.hostname_route_id}`};function N(e){return e.usage(`$0 network routes hostname get <hostname-route-id>
18
+ 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 j={command:`edit <hostname-route-id>`,describe:`Update hostname route`,builder:A,handler:async e=>c({command:`network routes hostname edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname/${e[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(e[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(e[`hostname-route-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(k,{body:t,account_id:p,hostname_route_id:e[`hostname-route-id`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),hostname:d(e.hostname,`hostname`,`text`),tunnel_id:d(e[`tunnel-id`],`tunnel-id`,`text`)}),h=await s(`Updating`,async()=>f.send(k,{body:m,account_id:p,hostname_route_id:e[`hostname-route-id`]}));a(h,{successLabel:`Updated`})})};var M={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname/${t.hostname_route_id}`};function N(e){return e.usage(`$0 network routes hostname get <hostname-route-id>
19
19
 
20
20
  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 P={command:`get <hostname-route-id>`,describe:`Get hostname route`,builder:N,handler:async e=>c({command:`network routes hostname get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network routes hostname get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/routes/hostname/${e[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(e[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(e[`hostname-route-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(M,{account_id:l,hostname_route_id:e[`hostname-route-id`]}));a(u,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/routes/hostname`,query:[`id`,`hostname`,`tunnel_id`,`comment`,`existed_at`,`is_deleted`,`per_page`,`page`]};function I(e){return e.usage(`$0 network routes hostname list
21
21
 
@@ -23,26 +23,26 @@ Lists and filters hostname routes in an account.`).option(`id`,{type:`string`,de
23
23
 
24
24
  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 V={command:`resolve <ip>`,describe:`Get tunnel route by IP`,builder:B,handler:async e=>c({command:`network routes resolve`,classification:{safeFlags:[`default-virtual-network-fallback`,`dry-run`]}},e,async()=>{let c={virtual_network_id:e[`virtual-network-id`],default_virtual_network_fallback:e[`default-virtual-network-fallback`]};if(e.dryRun){let t=await r();o({command:`cf network routes resolve`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/routes/ip/${e.ip==null?`<ip>`:encodeURIComponent(String(e.ip))}`,pathParams:{ip:String(e.ip??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(z,{account_id:u,ip:e.ip,...c}));a(d,{successLabel:`Loaded`})})},H={command:`routes`,describe:`Operations for routes`,builder:e=>e.command(V).command(S).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/cloudflare_source/${t.address_family}`,body:`json`};function W(e){return e.usage(`$0 network subnets cloudflare-source edit <address-family>
25
25
 
26
- 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 G={command:`edit <address-family>`,describe:`Update Cloudflare Source Subnet`,builder:W,handler:async e=>c({command:`network subnets cloudflare-source edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets cloudflare-source edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/cloudflare_source/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(U,{body:t,account_id:f,address_family:e[`address-family`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),m=await s(`Updating`,async()=>c.send(U,{body:p,account_id:f,address_family:e[`address-family`]}));a(m,{successLabel:`Updated`})})};var K={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/cloudflare_source/${t.address_family}`};function q(e){return e.usage(`$0 network subnets cloudflare-source get <address-family>
26
+ 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 G={command:`edit <address-family>`,describe:`Update Cloudflare Source Subnet`,builder:W,handler:async e=>c({command:`network subnets cloudflare-source edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets cloudflare-source edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/cloudflare_source/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(U,{body:t,account_id:p,address_family:e[`address-family`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),h=await s(`Updating`,async()=>f.send(U,{body:m,account_id:p,address_family:e[`address-family`]}));a(h,{successLabel:`Updated`})})};var K={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/cloudflare_source/${t.address_family}`};function q(e){return e.usage(`$0 network subnets cloudflare-source get <address-family>
27
27
 
28
28
  Returns the account's default Cloudflare Source 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 se={command:`get <address-family>`,describe:`Get Cloudflare Source Subnet`,builder:q,handler:async e=>c({command:`network subnets cloudflare-source get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets cloudflare-source get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/cloudflare_source/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(K,{account_id:l,address_family:e[`address-family`]}));a(u,{successLabel:`Loaded`})})},ce={command:`cloudflare-source`,describe:`Operations for subnets.cloudflare-source`,builder:e=>e.command(G).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var J={method:`PUT`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/initial_resolved_ip/${t.address_family}`,body:`json`};function le(e){return e.usage(`$0 network subnets initial-resolved-ip edit <address-family>
29
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 ue={command:`edit <address-family>`,describe:`Update Initial Resolved IP Subnet`,builder:le,handler:async e=>c({command:`network subnets initial-resolved-ip edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets initial-resolved-ip edit`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(J,{body:t,account_id:f,address_family:e[`address-family`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),m=await s(`Updating`,async()=>c.send(J,{body:p,account_id:f,address_family:e[`address-family`]}));a(m,{successLabel:`Updated`})})};var de={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/initial_resolved_ip/${t.address_family}`};function fe(e){return e.usage(`$0 network subnets initial-resolved-ip get <address-family>
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 ue={command:`edit <address-family>`,describe:`Update Initial Resolved IP Subnet`,builder:le,handler:async e=>c({command:`network subnets initial-resolved-ip edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets initial-resolved-ip edit`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(J,{body:t,account_id:p,address_family:e[`address-family`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),h=await s(`Updating`,async()=>f.send(J,{body:m,account_id:p,address_family:e[`address-family`]}));a(h,{successLabel:`Updated`})})};var de={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/initial_resolved_ip/${t.address_family}`};function fe(e){return e.usage(`$0 network subnets initial-resolved-ip get <address-family>
31
31
 
32
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 pe={command:`get <address-family>`,describe:`Get Initial Resolved IP Subnet`,builder:fe,handler:async e=>c({command:`network subnets initial-resolved-ip get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets initial-resolved-ip get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${e[`address-family`]==null?`<address-family>`:encodeURIComponent(String(e[`address-family`]))}`,pathParams:{"address-family":String(e[`address-family`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(de,{account_id:l,address_family:e[`address-family`]}));a(u,{successLabel:`Loaded`})})},me={command:`initial-resolved-ip`,describe:`Operations for subnets.initial-resolved-ip`,builder:e=>e.command(ue).command(pe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var he={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets`,query:[`name`,`comment`,`network`,`existed_at`,`address_family`,`is_default_network`,`is_deleted`,`sort_order`,`subnet_types`,`per_page`,`page`]};function ge(e){return e.usage(`$0 network subnets list
33
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 _e={command:`list`,describe:`List Subnets`,builder:ge,handler:async e=>c({command:`network subnets list`,classification:{safeFlags:[`address-family`,`is-default-network`,`is-deleted`,`sort-order`,`subnet-types`,`dry-run`]}},e,async()=>{let c={name:e.name,comment:e.comment,network:e.network,existed_at:e[`existed-at`],address_family:e[`address-family`],is_default_network:e[`is-default-network`],is_deleted:e[`is-deleted`],sort_order:e[`sort-order`],subnet_types:e[`subnet-types`],per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await r();o({command:`cf network subnets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/zerotrust/subnets`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(he,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp`,body:`json`};function ve(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 ye={command:`create`,describe:`Create WARP IP subnet`,builder:ve,handler:async e=>c({command:`network subnets warp create`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(Y,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`A user-friendly name for the subnet.`)),e.network===void 0&&(e.network=await f(`network`,`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`));let m=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),h=await s(`Creating`,async()=>c.send(Y,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var be={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`};function xe(e){return e.usage(`$0 network subnets warp delete <subnet-id>
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 _e={command:`list`,describe:`List Subnets`,builder:ge,handler:async e=>c({command:`network subnets list`,classification:{safeFlags:[`address-family`,`is-default-network`,`is-deleted`,`sort-order`,`subnet-types`,`dry-run`]}},e,async()=>{let c={name:e.name,comment:e.comment,network:e.network,existed_at:e[`existed-at`],address_family:e[`address-family`],is_default_network:e[`is-default-network`],is_deleted:e[`is-deleted`],sort_order:e[`sort-order`],subnet_types:e[`subnet-types`],per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await r();o({command:`cf network subnets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/zerotrust/subnets`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(he,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp`,body:`json`};function ve(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 ye={command:`create`,describe:`Create WARP IP subnet`,builder:ve,handler:async e=>c({command:`network subnets warp create`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>p.send(Y,{body:e,account_id:m}));a(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`A user-friendly name for the subnet.`)),e.network===void 0&&(e.network=await f(`network`,`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`));let h=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),g=await s(`Creating`,async()=>p.send(Y,{body:h,account_id:m}));a(g,{successLabel:`Created`})})};var be={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`};function xe(e){return e.usage(`$0 network subnets warp delete <subnet-id>
35
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 Se={command:`delete <subnet-id>`,describe:`Delete WARP IP subnet`,builder:xe,handler:async e=>c({command:`network subnets warp delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp/${e[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(e[`subnet-id`]))}`,pathParams:{"subnet-id":String(e[`subnet-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a WARP IP subnet.`}))return;let u=await s(`Deleting`,async()=>c.send(be,{account_id:l,subnet_id:e[`subnet-id`]}));a(u,{successLabel:`Deleted`})})};var X={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`,body:`json`};function Ce(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 we={command:`edit <subnet-id>`,describe:`Update WARP IP subnet`,builder:Ce,handler:async e=>c({command:`network subnets warp edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp/${e[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(e[`subnet-id`]))}`,pathParams:{"subnet-id":String(e[`subnet-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(X,{body:t,account_id:f,subnet_id:e[`subnet-id`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),m=await s(`Updating`,async()=>c.send(X,{body:p,account_id:f,subnet_id:e[`subnet-id`]}));a(m,{successLabel:`Updated`})})};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`};function Ee(e){return e.usage(`$0 network subnets warp get <subnet-id>
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 Se={command:`delete <subnet-id>`,describe:`Delete WARP IP subnet`,builder:xe,handler:async e=>c({command:`network subnets warp delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp/${e[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(e[`subnet-id`]))}`,pathParams:{"subnet-id":String(e[`subnet-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a WARP IP subnet.`}))return;let u=await s(`Deleting`,async()=>c.send(be,{account_id:l,subnet_id:e[`subnet-id`]}));a(u,{successLabel:`Deleted`})})};var X={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`,body:`json`};function Ce(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 we={command:`edit <subnet-id>`,describe:`Update WARP IP subnet`,builder:Ce,handler:async e=>c({command:`network subnets warp edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp/${e[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(e[`subnet-id`]))}`,pathParams:{"subnet-id":String(e[`subnet-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(X,{body:t,account_id:p,subnet_id:e[`subnet-id`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`),network:d(e.network,`network`,`text`)}),h=await s(`Updating`,async()=>f.send(X,{body:m,account_id:p,subnet_id:e[`subnet-id`]}));a(h,{successLabel:`Updated`})})};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/zerotrust/subnets/warp/${t.subnet_id}`};function Ee(e){return e.usage(`$0 network subnets warp get <subnet-id>
37
37
 
38
38
  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 De={command:`get <subnet-id>`,describe:`Get WARP IP subnet`,builder:Ee,handler:async e=>c({command:`network subnets warp get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network subnets warp get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/zerotrust/subnets/warp/${e[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(e[`subnet-id`]))}`,pathParams:{"subnet-id":String(e[`subnet-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Te,{account_id:l,subnet_id:e[`subnet-id`]}));a(u,{successLabel:`Loaded`})})},Oe={command:`warp`,describe:`Operations for subnets.warp`,builder:e=>e.command(ye).command(Se).command(we).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ke={command:`subnets`,describe:`Operations for subnets`,builder:e=>e.command(_e).command(ce).command(me).command(Oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks`,body:`json`};function Ae(e){return e.usage(`$0 network virtual-networks create
39
39
 
40
- 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 je={command:`create`,describe:`Create a virtual network`,builder:Ae,handler:async e=>c({command:`network virtual-networks create`,classification:{safeFlags:[`is-default`,`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default:e[`is-default`],is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(Z,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`A user-friendly name for the virtual network.`));let m=u({comment:d(e.comment,`comment`,`text`),is_default:e[`is-default`],is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}),h=await s(`Creating`,async()=>c.send(Z,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var Me={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks/${t.virtual_network_id}`};function Ne(e){return e.usage(`$0 network virtual-networks delete <virtual-network-id>
40
+ 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 je={command:`create`,describe:`Create a virtual network`,builder:Ae,handler:async e=>c({command:`network virtual-networks create`,classification:{safeFlags:[`is-default`,`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default:e[`is-default`],is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>p.send(Z,{body:e,account_id:m}));a(t,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`A user-friendly name for the virtual network.`));let h=u({comment:d(e.comment,`comment`,`text`),is_default:e[`is-default`],is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}),g=await s(`Creating`,async()=>p.send(Z,{body:h,account_id:m}));a(g,{successLabel:`Created`})})};var Me={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks/${t.virtual_network_id}`};function Ne(e){return e.usage(`$0 network virtual-networks delete <virtual-network-id>
41
41
 
42
42
  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 Pe={command:`delete <virtual-network-id>`,describe:`Delete a virtual network`,builder:Ne,handler:async e=>c({command:`network virtual-networks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks/${e[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(e[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(e[`virtual-network-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force,message:`This operation permanently deletes a virtual network.`}))return;let u=await s(`Deleting`,async()=>c.send(Me,{account_id:l,virtual_network_id:e[`virtual-network-id`]}));a(u,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks/${t.virtual_network_id}`,body:`json`};function $(e){return e.usage(`$0 network virtual-networks edit <virtual-network-id>
43
43
 
44
- 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 Fe={command:`edit <virtual-network-id>`,describe:`Update a virtual network`,builder:$,handler:async e=>c({command:`network virtual-networks edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks/${e[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(e[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(e[`virtual-network-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(Q,{body:t,account_id:f,virtual_network_id:e[`virtual-network-id`]}));a(n,{successLabel:`Updated`});return}let p=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}),m=await s(`Updating`,async()=>c.send(Q,{body:p,account_id:f,virtual_network_id:e[`virtual-network-id`]}));a(m,{successLabel:`Updated`})})};var Ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks/${t.virtual_network_id}`};function Le(e){return e.usage(`$0 network virtual-networks get <virtual-network-id>
44
+ 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 Fe={command:`edit <virtual-network-id>`,describe:`Update a virtual network`,builder:$,handler:async e=>c({command:`network virtual-networks edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks/${e[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(e[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(e[`virtual-network-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(Q,{body:t,account_id:p,virtual_network_id:e[`virtual-network-id`]}));a(n,{successLabel:`Updated`});return}let m=u({comment:d(e.comment,`comment`,`text`),is_default_network:e[`is-default-network`],name:d(e.name,`name`,`text`)}),h=await s(`Updating`,async()=>f.send(Q,{body:m,account_id:p,virtual_network_id:e[`virtual-network-id`]}));a(h,{successLabel:`Updated`})})};var Ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks/${t.virtual_network_id}`};function Le(e){return e.usage(`$0 network virtual-networks get <virtual-network-id>
45
45
 
46
- 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 Re={command:`get <virtual-network-id>`,describe:`Get a virtual network`,builder:Le,handler:async e=>c({command:`network virtual-networks get`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks/${e[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(e[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(e[`virtual-network-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Ie,{account_id:l,virtual_network_id:e[`virtual-network-id`]}));a(u,{successLabel:`Loaded`})})};var ze={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks`,query:[`id`,`name`,`is_default`,`is_default_network`,`is_deleted`]};function Be(e){return e.usage(`$0 network virtual-networks list
46
+ Get a 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})}const Re={command:`get <virtual-network-id>`,describe:`Get a virtual network`,builder:Le,handler:async e=>c({command:`network virtual-networks get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network virtual-networks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/teamnet/virtual_networks/${e[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(e[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(e[`virtual-network-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Ie,{account_id:l,virtual_network_id:e[`virtual-network-id`]}));a(u,{successLabel:`Loaded`})})};var ze={method:`GET`,path:t=>e`/accounts/${t.account_id}/teamnet/virtual_networks`,query:[`id`,`name`,`is_default`,`is_default_network`,`is_deleted`]};function Be(e){return e.usage(`$0 network virtual-networks list
47
47
 
48
48
  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 Ve={command:`list`,describe:`List virtual networks`,builder:Be,handler:async e=>c({command:`network virtual-networks list`,classification:{safeFlags:[`is-default`,`is-default-network`,`is-deleted`,`dry-run`]}},e,async()=>{let c={id:e.id,name:e.name,is_default:e[`is-default`],is_default_network:e[`is-default-network`],is_deleted:e[`is-deleted`]};if(e.dryRun){let e=await r();o({command:`cf network virtual-networks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(ze,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})},He={command:`virtual-networks`,describe:`Operations for virtual-networks`,builder:e=>e.command(je).command(Pe).command(Fe).command(Re).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ue={command:`network`,describe:`network`,builder:e=>e.command(H).command(ke).command(He).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ue as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CgBhtmON.mjs";import{n}from"./auth-FK2eLQ02.mjs";import{a as r,t as i}from"./context-Dp4CXG22.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-DLri-rA7.mjs";import{t as c}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-D0dXwuME.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/cni/cnis`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 network-interconnects cnis create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,t as i}from"./context-BY1Eh_Qe.mjs";import{t as a}from"./output-BZQEl3mK.mjs";import{t as o}from"./dry-run-kJbjn4kG.mjs";import{t as s}from"./progress-yvPscjYg.mjs";import{t as c}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as l,t as u}from"./body-parser-DoewLePl.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-CEpZ-lQZ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/cni/cnis`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 network-interconnects cnis create
3
3
 
4
4
  Creates a new Cloud Network Interconnect (CNI) for private network connectivity between Cloudflare and your infrastructure. CNIs enable dedicated, high-performance network links.`).option(`account`,{type:`string`,description:`Customer account tag`}).option(`bgp-customer-asn`,{type:`number`,description:`ASN used on the customer end of the BGP session`}).option(`bgp-extra-prefixes`,{type:`string`,array:!0,description:`Extra set of static prefixes to advertise to the customer's end of the session
5
5
  Prefixes containing host bits will be normalized to contain network bits only.
@@ -18,11 +18,11 @@ character:
18
18
  In other words, MD5 keys may contain any printable ASCII character aside from newline
19
19
  (0x0A), quotation mark (\`"\`), vertical tab (0x0B), carriage return (0x0D), tab (0x09),
20
20
  form feed (0x0C), and the question mark (\`?\`). Requests specifying an MD5 key with one
21
- or more of these disallowed characters will be rejected.`}).option(`interconnect`,{type:`string`,description:`The interconnect field`}).option(`magic-conduit-name`,{type:`string`,description:`The magic.conduit_name field`}).option(`magic-description`,{type:`string`,description:`The magic.description field`}).option(`magic-mtu`,{type:`number`,description:`The magic.mtu 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=>{let t=[`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`bgp-customer-asn`,`bgp-extra-prefixes`].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 --bgp-* flag is set`)}return!0})}const g={command:`create`,describe:`Create a new CNI object`,builder:h,handler:async e=>c({command:`network-interconnects cnis create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]}}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}if(e.account===void 0&&(e.account=await f(`account`,`Customer account tag`)),e.interconnect===void 0&&(e.interconnect=await f(`interconnect`,`The interconnect field`)),e[`magic-conduit-name`]===void 0&&(e[`magic-conduit-name`]=await f(`magic-conduit-name`,`The magic.conduit_name field`)),e[`magic-description`]===void 0&&(e[`magic-description`]=await f(`magic-description`,`The magic.description field`)),e[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);let h=u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]}}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cni/cnis/${t.cni}`,response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 network-interconnects cnis delete <cni>
21
+ or more of these disallowed characters will be rejected.`}).option(`interconnect`,{type:`string`,description:`The interconnect field`}).option(`magic-conduit-name`,{type:`string`,description:`The magic.conduit_name field`}).option(`magic-description`,{type:`string`,description:`The magic.description field`}).option(`magic-mtu`,{type:`number`,description:`The magic.mtu 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=>{let t=[`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`bgp-customer-asn`,`bgp-extra-prefixes`].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 --bgp-* flag is set`)}return!0})}const g={command:`create`,describe:`Create a new CNI object`,builder:h,handler:async e=>c({command:`network-interconnects cnis create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]}}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),h=e.local?t:await i();if(e.accountId=h,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>p.send(m,{body:e,account_id:h}));a(t,{successLabel:`Created`});return}if(e.account===void 0&&(e.account=await f(`account`,`Customer account tag`)),e.interconnect===void 0&&(e.interconnect=await f(`interconnect`,`The interconnect field`)),e[`magic-conduit-name`]===void 0&&(e[`magic-conduit-name`]=await f(`magic-conduit-name`,`The magic.conduit_name field`)),e[`magic-description`]===void 0&&(e[`magic-description`]=await f(`magic-description`,`The magic.description field`)),e[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);let g=u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]}}),_=await s(`Creating`,async()=>p.send(m,{body:g,account_id:h}));a(_,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cni/cnis/${t.cni}`,response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 network-interconnects cnis delete <cni>
22
22
 
23
- Permanently removes a Cloud Network Interconnect (CNI) configuration. The private network connection will be terminated.`).positional(`cni`,{type:`string`,description:`CNI ID to retrieve information about`,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 ee={command:`delete <cni>`,describe:`Delete a specified CNI object`,builder:v,handler:async e=>c({command:`network-interconnects cnis delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,cni:e.cni}));a(u,{successLabel:`Deleted`})})};var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/cnis/${t.cni}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function y(e){return e.usage(`$0 network-interconnects cnis get <cni>
23
+ Permanently removes a Cloud Network Interconnect (CNI) configuration. The private network connection will be terminated.`).positional(`cni`,{type:`string`,description:`CNI ID to retrieve information about`,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 <cni>`,describe:`Delete a specified CNI object`,builder:v,handler:async e=>c({command:`network-interconnects cnis delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,cni:e.cni}));a(u,{successLabel:`Deleted`})})};var ee={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/cnis/${t.cni}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function te(e){return e.usage(`$0 network-interconnects cnis get <cni>
24
24
 
25
- Retrieves configuration details for a specific Cloud Network Interconnect (CNI), including connection status and parameters.`).positional(`cni`,{type:`string`,description:`CNI ID to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <cni>`,describe:`Get information about a CNI object`,builder:y,handler:async e=>c({command:`network-interconnects cnis get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(te,{account_id:l,cni:e.cni}));a(u,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/cnis`,query:[`slot`,`tunnel_id`,`cursor`,`limit`],errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function S(e){return e.usage(`$0 network-interconnects cnis list
25
+ Retrieves configuration details for a specific Cloud Network Interconnect (CNI), including connection status and parameters.`).positional(`cni`,{type:`string`,description:`CNI ID to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <cni>`,describe:`Get information about a CNI object`,builder:te,handler:async e=>c({command:`network-interconnects cnis get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(ee,{account_id:l,cni:e.cni}));a(u,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/cnis`,query:[`slot`,`tunnel_id`,`cursor`,`limit`],errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function S(e){return e.usage(`$0 network-interconnects cnis list
26
26
 
27
27
  Lists all Cloud Network Interconnects (CNIs) configured for the account, showing connection status and parameters.`).option(`slot`,{type:`string`,description:`If specified, only show CNIs associated with the specified slot`}).option(`tunnel-id`,{type:`string`,description:`If specified, only show cnis associated with the specified tunnel id`}).option(`cursor`,{type:`number`,description:`Cursor`}).option(`limit`,{type:`number`,description:`Limit`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List existing CNI objects`,builder:S,handler:async e=>c({command:`network-interconnects cnis list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={slot:e.slot,tunnel_id:e[`tunnel-id`],cursor:e.cursor,limit:e.limit};if(e.dryRun){let e=await r();o({command:`cf network-interconnects cnis list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cni/cnis`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(x,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var w={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cni/cnis/${t.cni}`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function T(e){return e.usage(`$0 network-interconnects cnis update <cni>
28
28
 
@@ -45,25 +45,25 @@ In other words, MD5 keys may contain any printable ASCII character aside from ne
45
45
  form feed (0x0C), and the question mark (\`?\`). Requests specifying an MD5 key with one
46
46
  or more of these disallowed characters will be rejected.`}).option(`bgp-mode`,{type:`string`,description:"The BGP mode for a CNI.\nOne of the following:\n* `dynamic_route_exchange`\n* `advertise_only`",choices:[`dynamic_route_exchange`,`advertise_only`]}).coerce(`bgp-mode`,e=>d(e,`bgp-mode`,`text`)).option(`cust-ip`,{type:`string`,description:`Customer end of the point-to-point link
47
47
 
48
- This should always be inside the same prefix as \`p2p_ip\`.`}).option(`id`,{type:`string`,description:`The id field`}).option(`interconnect`,{type:`string`,description:`Interconnect identifier hosting this CNI`}).option(`magic-conduit-name`,{type:`string`,description:`The magic.conduit_name field`}).option(`magic-description`,{type:`string`,description:`The magic.description field`}).option(`magic-mtu`,{type:`number`,description:`The magic.mtu field`}).option(`p2p-ip`,{type:`string`,description:`Cloudflare end of the point-to-point link`}).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=>{let t=[`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`bgp-customer-asn`,`bgp-extra-prefixes`].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 --bgp-* flag is set`)}return!0})}const E={command:`update <cni>`,describe:`Modify stored information about a CNI object`,builder:T,handler:async e=>c({command:`network-interconnects cnis update`,classification:{safeFlags:[`bgp-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:e[`bgp-mode`],cust_ip:d(e[`cust-ip`],`cust-ip`,`text`),id:d(e.id,`id`,`text`),interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]},p2p_ip:d(e[`p2p-ip`],`p2p-ip`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(w,{body:t,account_id:p,cni:e.cni}));a(n,{successLabel:`Updated`});return}if(e.account===void 0&&(e.account=await f(`account`,`Customer account tag`)),e[`cust-ip`]===void 0&&(e[`cust-ip`]=await f(`cust-ip`,"Customer end of the point-to-point link This should always be inside the same prefix as `p2p_ip`.")),e.id===void 0&&(e.id=await f(`id`,`The id field`)),e.interconnect===void 0&&(e.interconnect=await f(`interconnect`,`Interconnect identifier hosting this CNI`)),e[`magic-conduit-name`]===void 0&&(e[`magic-conduit-name`]=await f(`magic-conduit-name`,`The magic.conduit_name field`)),e[`magic-description`]===void 0&&(e[`magic-description`]=await f(`magic-description`,`The magic.description field`)),e[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);e[`p2p-ip`]===void 0&&(e[`p2p-ip`]=await f(`p2p-ip`,`Cloudflare end of the point-to-point link`));let m=u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:e[`bgp-mode`],cust_ip:d(e[`cust-ip`],`cust-ip`,`text`),id:d(e.id,`id`,`text`),interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]},p2p_ip:d(e[`p2p-ip`],`p2p-ip`,`text`)}),h=await s(`Updating`,async()=>c.send(w,{body:m,account_id:p,cni:e.cni}));a(h,{successLabel:`Updated`})})},D={command:`cnis`,describe:`Cloud Network Interconnect (CNI) connections — private links from cloud providers to Cloudflare`,builder:e=>e.command(g).command(ee).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`POST`,path:t=>e`/accounts/${t.account_id}/cni/interconnects`,body:`json`,errors:{400:`BadRequestError`,500:`InternalServerError`}};function k(e){return e.usage(`$0 network-interconnects interconnects create
48
+ This should always be inside the same prefix as \`p2p_ip\`.`}).option(`id`,{type:`string`,description:`The id field`}).option(`interconnect`,{type:`string`,description:`Interconnect identifier hosting this CNI`}).option(`magic-conduit-name`,{type:`string`,description:`The magic.conduit_name field`}).option(`magic-description`,{type:`string`,description:`The magic.description field`}).option(`magic-mtu`,{type:`number`,description:`The magic.mtu field`}).option(`p2p-ip`,{type:`string`,description:`Cloudflare end of the point-to-point link`}).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=>{let t=[`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`bgp-customer-asn`,`bgp-extra-prefixes`].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 --bgp-* flag is set`)}return!0})}const E={command:`update <cni>`,describe:`Modify stored information about a CNI object`,builder:T,handler:async e=>c({command:`network-interconnects cnis update`,classification:{safeFlags:[`bgp-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects cnis update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/cnis/${e.cni==null?`<cni>`:encodeURIComponent(String(e.cni))}`,pathParams:{cni:String(e.cni??``)},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:e[`bgp-mode`],cust_ip:d(e[`cust-ip`],`cust-ip`,`text`),id:d(e.id,`id`,`text`),interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]},p2p_ip:d(e[`p2p-ip`],`p2p-ip`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>p.send(w,{body:t,account_id:m,cni:e.cni}));a(n,{successLabel:`Updated`});return}if(e.account===void 0&&(e.account=await f(`account`,`Customer account tag`)),e[`cust-ip`]===void 0&&(e[`cust-ip`]=await f(`cust-ip`,"Customer end of the point-to-point link This should always be inside the same prefix as `p2p_ip`.")),e.id===void 0&&(e.id=await f(`id`,`The id field`)),e.interconnect===void 0&&(e.interconnect=await f(`interconnect`,`Interconnect identifier hosting this CNI`)),e[`magic-conduit-name`]===void 0&&(e[`magic-conduit-name`]=await f(`magic-conduit-name`,`The magic.conduit_name field`)),e[`magic-description`]===void 0&&(e[`magic-description`]=await f(`magic-description`,`The magic.description field`)),e[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);e[`p2p-ip`]===void 0&&(e[`p2p-ip`]=await f(`p2p-ip`,`Cloudflare end of the point-to-point link`));let h=u({account:d(e.account,`account`,`text`),bgp:{customer_asn:e[`bgp-customer-asn`],extra_prefixes:e[`bgp-extra-prefixes`],md5_key:d(e[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:e[`bgp-mode`],cust_ip:d(e[`cust-ip`],`cust-ip`,`text`),id:d(e.id,`id`,`text`),interconnect:d(e.interconnect,`interconnect`,`text`),magic:{conduit_name:d(e[`magic-conduit-name`],`magic-conduit-name`,`text`),description:d(e[`magic-description`],`magic-description`,`text`),mtu:e[`magic-mtu`]},p2p_ip:d(e[`p2p-ip`],`p2p-ip`,`text`)}),g=await s(`Updating`,async()=>p.send(w,{body:h,account_id:m,cni:e.cni}));a(g,{successLabel:`Updated`})})},D={command:`cnis`,describe:`Cloud Network Interconnect (CNI) connections — private links from cloud providers to Cloudflare`,builder:e=>e.command(g).command(y).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`POST`,path:t=>e`/accounts/${t.account_id}/cni/interconnects`,body:`json`,errors:{400:`BadRequestError`,500:`InternalServerError`}};function k(e){return e.usage(`$0 network-interconnects interconnects create
49
49
 
50
- Creates a new network interconnect for connecting Cloudflare's network to external networks. Interconnects provide dedicated bandwidth and reduced latency for traffic exchange.`).option(`account`,{type:`string`,description:`The account field`}).option(`type`,{type:`string`,description:`The type field`}).option(`slot-id`,{type:`string`,description:`The slot_id field`}).option(`speed`,{type:`string`,description:`The speed field`}).option(`bandwidth`,{type:`string`,description:`Bandwidth structure as visible through the customer-facing API.`,choices:[`50M`,`100M`,`200M`,`300M`,`400M`,`500M`,`1G`,`2G`,`5G`,`10G`,`20G`,`50G`]}).coerce(`bandwidth`,e=>d(e,`bandwidth`,`text`)).option(`pairing-key`,{type:`string`,description:`Pairing key provided by GCP`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`slot-id`,[`bandwidth`,`pairing-key`]).conflicts(`speed`,[`bandwidth`,`pairing-key`]).implies(`speed`,[`slot-id`]).conflicts(`bandwidth`,[`slot-id`,`speed`]).implies(`bandwidth`,[`pairing-key`]).conflicts(`pairing-key`,[`slot-id`,`speed`]).implies(`pairing-key`,[`bandwidth`])}const A={command:`create`,describe:`Create a new interconnect`,builder:k,handler:async e=>c({command:`network-interconnects interconnects create`,classification:{safeFlags:[`bandwidth`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),type:d(e.type,`type`,`text`),slot_id:d(e[`slot-id`],`slot-id`,`text`),speed:d(e.speed,`speed`,`text`),bandwidth:e.bandwidth,pairing_key:d(e[`pairing-key`],`pairing-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(O,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.account===void 0&&(e.account=await f(`account`,`The account field`)),e.type===void 0&&(e.type=await f(`type`,`The type field`));let m=u({account:d(e.account,`account`,`text`),type:d(e.type,`type`,`text`),slot_id:d(e[`slot-id`],`slot-id`,`text`),speed:d(e.speed,`speed`,`text`),bandwidth:e.bandwidth,pairing_key:d(e[`pairing-key`],`pairing-key`,`text`)}),h=await s(`Creating`,async()=>c.send(O,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var j={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}`,response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function M(e){return e.usage(`$0 network-interconnects interconnects delete <icon>
50
+ Creates a new network interconnect for connecting Cloudflare's network to external networks. Interconnects provide dedicated bandwidth and reduced latency for traffic exchange.`).option(`account`,{type:`string`,description:`The account field`}).option(`type`,{type:`string`,description:`The type field`}).option(`slot-id`,{type:`string`,description:`The slot_id field`}).option(`speed`,{type:`string`,description:`The speed field`}).option(`bandwidth`,{type:`string`,description:`Bandwidth structure as visible through the customer-facing API.`,choices:[`50M`,`100M`,`200M`,`300M`,`400M`,`500M`,`1G`,`2G`,`5G`,`10G`,`20G`,`50G`]}).coerce(`bandwidth`,e=>d(e,`bandwidth`,`text`)).option(`pairing-key`,{type:`string`,description:`Pairing key provided by GCP`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`slot-id`,[`bandwidth`,`pairing-key`]).conflicts(`speed`,[`bandwidth`,`pairing-key`]).implies(`speed`,[`slot-id`]).conflicts(`bandwidth`,[`slot-id`,`speed`]).implies(`bandwidth`,[`pairing-key`]).conflicts(`pairing-key`,[`slot-id`,`speed`]).implies(`pairing-key`,[`bandwidth`])}const A={command:`create`,describe:`Create a new interconnect`,builder:k,handler:async e=>c({command:`network-interconnects interconnects create`,classification:{safeFlags:[`bandwidth`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({account:d(e.account,`account`,`text`),type:d(e.type,`type`,`text`),slot_id:d(e[`slot-id`],`slot-id`,`text`),speed:d(e.speed,`speed`,`text`),bandwidth:e.bandwidth,pairing_key:d(e[`pairing-key`],`pairing-key`,`text`)}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),p=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>p.send(O,{body:e,account_id:m}));a(t,{successLabel:`Created`});return}e.account===void 0&&(e.account=await f(`account`,`The account field`)),e.type===void 0&&(e.type=await f(`type`,`The type field`));let h=u({account:d(e.account,`account`,`text`),type:d(e.type,`type`,`text`),slot_id:d(e[`slot-id`],`slot-id`,`text`),speed:d(e.speed,`speed`,`text`),bandwidth:e.bandwidth,pairing_key:d(e[`pairing-key`],`pairing-key`,`text`)}),g=await s(`Creating`,async()=>p.send(O,{body:h,account_id:m}));a(g,{successLabel:`Created`})})};var j={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}`,response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function M(e){return e.usage(`$0 network-interconnects interconnects delete <icon>
51
51
 
52
52
  Permanently removes a network interconnect configuration. The physical or virtual connection will be terminated.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,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 N={command:`delete <icon>`,describe:`Delete an interconnect object`,builder:M,handler:async e=>c({command:`network-interconnects interconnects delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(j,{account_id:l,icon:e.icon}));a(u,{successLabel:`Deleted`})})};var P={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function F(e){return e.usage(`$0 network-interconnects interconnects get <icon>
53
53
 
54
54
  Retrieves configuration and status details for a specific network interconnect.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get <icon>`,describe:`Get information about an interconnect object`,builder:F,handler:async e=>c({command:`network-interconnects interconnects get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(P,{account_id:l,icon:e.icon}));a(u,{successLabel:`Loaded`})})};var L={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects`,query:[`site`,`type`,`cursor`,`limit`],errors:{400:`BadRequestError`,500:`InternalServerError`}};function R(e){return e.usage(`$0 network-interconnects interconnects list
55
55
 
56
- Lists all network interconnects configured for the account, including physical and virtual connections.`).option(`site`,{type:`string`,description:`If specified, only show interconnects located at the given site`}).option(`type`,{type:`string`,description:`If specified, only show interconnects of the given type`}).option(`cursor`,{type:`number`,description:`Cursor`}).option(`limit`,{type:`number`,description:`Limit`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`list`,describe:`List existing interconnects`,builder:R,handler:async e=>c({command:`network-interconnects interconnects list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={site:e.site,type:e.type,cursor:e.cursor,limit:e.limit};if(e.dryRun){let e=await r();o({command:`cf network-interconnects interconnects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cni/interconnects`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(L,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}/loa/default`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function B(e){return e.usage(`$0 network-interconnects interconnects loa-default-name <icon>
56
+ Lists all network interconnects configured for the account, including physical and virtual connections.`).option(`site`,{type:`string`,description:`If specified, only show interconnects located at the given site`}).option(`type`,{type:`string`,description:`If specified, only show interconnects of the given type`}).option(`cursor`,{type:`number`,description:`Cursor`}).option(`limit`,{type:`number`,description:`Limit`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List existing interconnects`,builder:R,handler:async e=>c({command:`network-interconnects interconnects list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={site:e.site,type:e.type,cursor:e.cursor,limit:e.limit};if(e.dryRun){let e=await r();o({command:`cf network-interconnects interconnects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cni/interconnects`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(L,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}/loa/default`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function B(e){return e.usage(`$0 network-interconnects interconnects loa-default-name <icon>
57
57
 
58
- Retrieves the default customer name that will be used in the LOA if no name is provided to the \`/accounts/{account_id}/cni/interconnects/{icon}/loa\` endpoint.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`loa-default-name <icon>`,describe:`Get the default customer name for LOA generation`,builder:B,handler:async e=>c({command:`network-interconnects interconnects loa-default-name`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects loa-default-name`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}/loa/default`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(z,{account_id:l,icon:e.icon}));a(u,{successLabel:`Loaded`})})};var H={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}/loa`,query:[`name`],response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function U(e){return e.usage(`$0 network-interconnects interconnects loa <icon>
58
+ Retrieves the default customer name that will be used in the LOA if no name is provided to the \`/accounts/{account_id}/cni/interconnects/{icon}/loa\` endpoint.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`loa-default-name <icon>`,describe:`Get the default customer name for LOA generation`,builder:B,handler:async e=>c({command:`network-interconnects interconnects loa-default-name`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects loa-default-name`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}/loa/default`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(ne,{account_id:l,icon:e.icon}));a(u,{successLabel:`Loaded`})})};var H={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}/loa`,query:[`name`],response:!1,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function U(e){return e.usage(`$0 network-interconnects interconnects loa <icon>
59
59
 
60
60
  Downloads the Letter of Authorization (LOA) for a network interconnect, required for physical cross-connect provisioning.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`name`,{type:`string`,description:`Custom name to use in the LOA instead of the account name (200 Character limit)`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`loa <icon>`,describe:`Generate the Letter of Authorization (LOA) for a given interconnect`,builder:U,handler:async e=>c({command:`network-interconnects interconnects loa`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={name:e.name};if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects loa`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}/loa`,pathParams:{icon:String(e.icon??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(H,{account_id:u,icon:e.icon,...c}));a(d,{successLabel:`Loaded`})})};var G={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/interconnects/${t.icon}/status`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function K(e){return e.usage(`$0 network-interconnects interconnects status <icon>
61
61
 
62
- Gets the current operational status of a network interconnect, including link state and traffic metrics.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`status <icon>`,describe:`Get the current status of an interconnect object`,builder:K,handler:async e=>c({command:`network-interconnects interconnects status`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}/status`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(G,{account_id:l,icon:e.icon}));a(u,{successLabel:`Loaded`})})},J={command:`interconnects`,describe:`Physical cross-connect and partner interconnect sessions with LOA and status tracking`,builder:e=>e.command(A).command(N).command(I).command(ne).command(W).command(V).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/settings`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function X(e){return e.usage(`$0 network-interconnects settings get
62
+ Gets the current operational status of a network interconnect, including link state and traffic metrics.`).positional(`icon`,{type:`string`,description:`Interconnect name to retrieve information about`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`status <icon>`,describe:`Get the current status of an interconnect object`,builder:K,handler:async e=>c({command:`network-interconnects interconnects status`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects interconnects status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/interconnects/${e.icon==null?`<icon>`:encodeURIComponent(String(e.icon))}/status`,pathParams:{icon:String(e.icon??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(G,{account_id:l,icon:e.icon}));a(u,{successLabel:`Loaded`})})},J={command:`interconnects`,describe:`Physical cross-connect and partner interconnect sessions with LOA and status tracking`,builder:e=>e.command(A).command(N).command(I).command(z).command(W).command(V).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/settings`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function X(e){return e.usage(`$0 network-interconnects settings get
63
63
 
64
64
  Retrieves current settings configuration for the specified resource or service.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get`,describe:`Get the current settings for the active account`,builder:X,handler:async e=>c({command:`network-interconnects settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf network-interconnects settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/cni/settings`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(Y,{account_id:l}));a(u,{successLabel:`Loaded`})})};var Q={method:`PUT`,path:t=>e`/accounts/${t.account_id}/cni/settings`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function re(e){return e.usage(`$0 network-interconnects settings update
65
65
 
66
- Updates configuration settings for the specified resource or service.`).option(`default-asn`,{type:`number`,description:`The default_asn 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 ie={command:`update`,describe:`Update the current settings for the active account`,builder:re,handler:async e=>c({command:`network-interconnects settings update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/settings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({default_asn:e[`default-asn`]}):l(e.body)});return}let c=await n(e),d=e.local?t:await i();if(e.accountId=d,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(Q,{body:t,account_id:d}));a(n,{successLabel:`Updated`});return}let f=u({default_asn:e[`default-asn`]}),p=await s(`Updating`,async()=>c.send(Q,{body:f,account_id:d}));a(p,{successLabel:`Updated`})})},ae={command:`settings`,describe:`Account-level interconnect settings and default configurations`,builder:e=>e.command(Z).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var oe={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/slots/${t.slot}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function $(e){return e.usage(`$0 network-interconnects slots get <slot>
66
+ Updates configuration settings for the specified resource or service.`).option(`default-asn`,{type:`number`,description:`The default_asn 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 ie={command:`update`,describe:`Update the current settings for the active account`,builder:re,handler:async e=>c({command:`network-interconnects settings update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/settings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({default_asn:e[`default-asn`]}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),d=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body!==void 0){let e=c,t=await s(`Updating`,async()=>d.send(Q,{body:e,account_id:f}));a(t,{successLabel:`Updated`});return}let p=u({default_asn:e[`default-asn`]}),m=await s(`Updating`,async()=>d.send(Q,{body:p,account_id:f}));a(m,{successLabel:`Updated`})})},ae={command:`settings`,describe:`Account-level interconnect settings and default configurations`,builder:e=>e.command(Z).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var oe={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/slots/${t.slot}`,errors:{400:`BadRequestError`,404:`NotFoundError`,500:`InternalServerError`}};function $(e){return e.usage(`$0 network-interconnects slots get <slot>
67
67
 
68
68
  Gets information about a specific infrastructure slot allocation.`).positional(`slot`,{type:`string`,description:`Slot`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`get <slot>`,describe:`Get information about the specified slot`,builder:$,handler:async e=>c({command:`network-interconnects slots get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf network-interconnects slots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/cni/slots/${e.slot==null?`<slot>`:encodeURIComponent(String(e.slot))}`,pathParams:{slot:String(e.slot??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(oe,{account_id:l,slot:e.slot}));a(u,{successLabel:`Loaded`})})};var ce={method:`GET`,path:t=>e`/accounts/${t.account_id}/cni/slots`,query:[`address_contains`,`site`,`speed`,`occupied`,`cursor`,`limit`],errors:{400:`BadRequestError`,500:`InternalServerError`}};function le(e){return e.usage(`$0 network-interconnects slots list
69
69