cf 1.0.0-beta.10 → 1.0.0-beta.11
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.
- package/dist/{abuse-reports-BhSTEz7h.mjs → abuse-reports-DX5xgeka.mjs} +10 -10
- package/dist/{access-D4DN4XZF.mjs → access-DuHs0Mii.mjs} +1 -1
- package/dist/{account-tags-BWEIZLID.mjs → account-tags-CiKwgOWd.mjs} +5 -5
- package/dist/{accounts-ZQvIqGJz.mjs → accounts-DfXSHrkF.mjs} +62 -62
- package/dist/{acm-OQqE8FMc.mjs → acm-BgSr3Ig4.mjs} +7 -7
- package/dist/{addressing-DCFm17JQ.mjs → addressing-B70NFnrX.mjs} +49 -49
- package/dist/{agent-memory-BtfPt2me.mjs → agent-memory-DJRquHeq.mjs} +15 -15
- package/dist/{ai-B0_sZbmy.mjs → ai-CP2oIS-I.mjs} +16 -16
- package/dist/{ai-audit-DaubuhYF.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
- package/dist/{ai-gateway-CJ-1Dzzr.mjs → ai-gateway-CrrEtzUP.mjs} +44 -44
- package/dist/{ai-search-Dywa1kqX.mjs → ai-search-C4YWVTCa.mjs} +42 -42
- package/dist/{ai-security-2wxMPqKS.mjs → ai-security-Bt_fG65f.mjs} +4 -4
- package/dist/{alerting-yad9DYRv.mjs → alerting-CRr88fVR.mjs} +26 -26
- package/dist/{analytics-DKNw2fVc.mjs → analytics-XqS9OP5B.mjs} +10 -10
- package/dist/{analytics_engine-BA3kF46s.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
- package/dist/{api-security-CSuYMpMO.mjs → api-security-gB1FHrHq.mjs} +57 -57
- package/dist/{argo-DMfNmOV4.mjs → argo-wFCAsYx7.mjs} +5 -5
- package/dist/{artifacts-Cb3hwClm.mjs → artifacts-qFjlNRqb.mjs} +20 -20
- package/dist/{audit-logs-BrjNuiLx.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
- package/dist/auth-7Fk7PVIC.mjs +2 -0
- package/dist/auth-BmJ946bE.mjs +2 -0
- package/dist/auth-Br-t8vL_.mjs +2 -0
- package/dist/auth-token-DeG33BMQ.mjs +8 -0
- package/dist/{autoconfig-DPUztTL2.mjs → autoconfig-D-copdZG.mjs} +2 -2
- package/dist/{banner-ClclgnBn.mjs → banner-Xk4xBN8U.mjs} +1 -1
- package/dist/{basin-catalog-BLsQhJP4.mjs → basin-catalog-CshcpsAH.mjs} +17 -17
- package/dist/{billing-CRwD7oQS.mjs → billing-B-xNxxiP.mjs} +11 -11
- package/dist/{bot-management-CyW8F8Wm.mjs → bot-management-DhafeA2J.mjs} +4 -4
- package/dist/{botnet-feed-BBKsxf3Y.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
- package/dist/{brand-protection-DSeD8LXl.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
- package/dist/{browser-run-BAcUTwB4.mjs → browser-run-D9_cwaSD.mjs} +24 -24
- package/dist/build-9ihDp-Gy.mjs +2 -0
- package/dist/{build-B5UYMEQH.mjs → build-DrG6TqMw.mjs} +1 -1
- package/dist/{builds-W1HEG7Bv.mjs → builds-Dl8if-2k.mjs} +32 -32
- package/dist/{cache-B7E_PXUp.mjs → cache-CIZokBjd.mjs} +24 -24
- package/dist/{certificate-authorities-D_uAJH9B.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
- package/dist/{cf-Bh_fTFIj.mjs → cf-DfQfIu3q.mjs} +1 -1
- package/dist/{chunk-FT2NMTJB-1VFYM1Ro.mjs → chunk-FT2NMTJB-BFqlGcem.mjs} +1 -1
- package/dist/{chunk-KKDV4JPS-DdzLLtnl.mjs → chunk-KKDV4JPS-B_t8sDTz.mjs} +1 -1
- package/dist/{cli-BeXSqJAj.mjs → cli-aChy8ou_.mjs} +1 -1
- package/dist/{client-certificates-DqFcK_s1.mjs → client-certificates-qgLpBn8t.mjs} +6 -6
- package/dist/{client-side-security-DJXZ1XAu.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
- package/dist/{cloud-connector-Czg1GdQi.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
- package/dist/{cloudflared-DGuau-lC.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
- package/dist/{cloudforce-one-B1IhIZcp.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -237
- package/dist/{command-xU78ACNA.mjs → command-07vhr56i.mjs} +1 -1
- package/dist/{command-DxSJy_ym.mjs → command-B6TpINoN.mjs} +1 -1
- package/dist/{command-BCag-xjk.mjs → command-BWC9CbE7.mjs} +1 -1
- package/dist/{command-B6DqnUwt.mjs → command-BsmF3J_l.mjs} +1 -1
- package/dist/command-C2pNxAeL.mjs +2 -0
- package/dist/{command-TCklVvOY.mjs → command-C65Ed0o9.mjs} +1 -1
- package/dist/{command-DUafPVUr.mjs → command-Cdx___59.mjs} +1 -1
- package/dist/{command-BOLlvEan.mjs → command-CrtDkZNs.mjs} +1 -1
- package/dist/{command-C__qB2mo.mjs → command-D0MKPucK.mjs} +1 -1
- package/dist/{command-DfffeX-k.mjs → command-DHdWKtqx.mjs} +1 -1
- package/dist/{command-DZookrfw.mjs → command-Ds5OVat3.mjs} +1 -1
- package/dist/{command-BrHTpaji.mjs → command-Dv6YavZa.mjs} +1 -1
- package/dist/{command-DzHL5LKI.mjs → command-dAYWrB5y.mjs} +1 -1
- package/dist/{command-K1-DZFJS.mjs → command-eM48o0J6.mjs} +1 -1
- package/dist/{command-6YTtWltE.mjs → command-maDJWJgu.mjs} +1 -1
- package/dist/{completions-Cm9brGAI.mjs → completions-D0280hul.mjs} +1 -1
- package/dist/{connector-interrupts-D93KTMkw.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
- package/dist/{connector-telemetry-events-D6CmKR14.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-WO9IUk0e.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
- package/dist/{connectors-DNT6GTW3.mjs → connectors-DGtx-rPI.mjs} +7 -7
- package/dist/{containers-Ce7IO-Ia.mjs → containers-CzNbBrYE.mjs} +2 -2
- package/dist/{containers-Btx7vCDP.mjs → containers-DEFrbNgO.mjs} +16 -16
- package/dist/{content-scan-C_ROsbTJ.mjs → content-scan-BCtWBCqd.mjs} +6 -6
- package/dist/{context-CEOHpZgd.mjs → context-CquYYyS3.mjs} +2 -2
- package/dist/{cps-BPQqyL2E.mjs → cps-C8BbnbuD.mjs} +1 -1
- package/dist/{csamScanner-D-oO5cxT.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
- package/dist/{ct-alerting-CnTRE1Fb.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
- package/dist/{custom-certificates-DvnFBZdJ.mjs → custom-certificates-CA8HqolM.mjs} +7 -7
- package/dist/{custom-csrs-BZ8TXbuQ.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
- package/dist/{custom-hostnames-CTqf-KlT.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
- package/dist/{custom-nameservers-B0CpnUVg.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
- package/dist/{custom-pages-DcoSGN56.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
- package/dist/d1-B2duXfH2.mjs +41 -0
- package/dist/{dcv-delegation-yOtz90qE.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-C4p6SzLH.mjs → deploy-BdWBEbLj.mjs} +1 -1
- package/dist/{deploy-input-DTjBGloL.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
- package/dist/{dev-BML-bpNU.mjs → dev-BHkVwAea.mjs} +1 -1
- package/dist/{diagnostics-hOvnx5DT.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
- package/dist/{dialog-BlUXJKbA.mjs → dialog-Dpi-UVbz.mjs} +1 -1
- package/dist/discover-BYkHr5Ja.mjs +2 -0
- package/dist/{dist-DW47TUGh.mjs → dist-Cpb7_h4N.mjs} +1 -1
- package/dist/{dist-BuCJ_55d.mjs → dist-D1iG7guo.mjs} +1 -1
- package/dist/{dist-C3s9SXTd.mjs → dist-zep5OXGt.mjs} +1 -1
- package/dist/{dls-v6DyEWTd.mjs → dls-Caya7FZc.mjs} +8 -8
- package/dist/{dns-C9sUPsNt.mjs → dns-BLNa0GrP.mjs} +63 -63
- package/dist/{dns-firewall-EDiT-Zli.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
- package/dist/{dot-prop-IITUZ2XW-BilKo4kO.mjs → dot-prop-IITUZ2XW-BsZYdILY.mjs} +1 -1
- package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
- package/dist/{durable-objects-C01phVwL.mjs → durable-objects-DuRbdp7N.mjs} +3 -3
- package/dist/{email-auth-BgvoEHJk.mjs → email-auth-C28s03aI.mjs} +3 -3
- package/dist/{email-routing-Bggn219w.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
- package/dist/{email-security-_t7rzrzd.mjs → email-security-DPU6xvI9.mjs} +71 -71
- package/dist/{email-sending-_dKCs2VF.mjs → email-sending-kTVAlVKO.mjs} +23 -23
- package/dist/error-sanitization-BbEw--0B.mjs +2 -0
- package/dist/error-sanitization-p5rmb53x.mjs +2 -0
- package/dist/errors-cuuW88wR.mjs +3 -0
- package/dist/{fieldExtractors-Cm5QnkE0.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
- package/dist/{firewall-CZEN8iA_.mjs → firewall-BND3qSY2.mjs} +18 -18
- package/dist/{flagship-B_SAI_ZL.mjs → flagship-DfxbNzgx.mjs} +15 -15
- package/dist/{fraud-9_9hobAh.mjs → fraud-DgyYv_CC.mjs} +3 -3
- package/dist/generate-9P8Q_RiO.mjs +2 -0
- package/dist/{generate-CLqGOlOx.mjs → generate-VxmGG8BF.mjs} +1 -1
- package/dist/{google-tag-gateway-O_N0vHRY.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
- package/dist/{healthchecks-Bt3Gw_JZ.mjs → healthchecks-CByb4qYA.mjs} +10 -10
- package/dist/{hostnames-DdOube3R.mjs → hostnames-3CqeMF5g.mjs} +6 -6
- package/dist/{hyperdrive-C14NAh9l.mjs → hyperdrive-CmyYTE-K.mjs} +9 -9
- package/dist/{iam-DUW7neMx.mjs → iam-CV_M681j.mjs} +24 -24
- package/dist/{images-B9dnr1z0.mjs → images-DaLPjskW.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/{init-BGcAIvV7.mjs → init-CBKifk5L.mjs} +2 -2
- package/dist/{intel-BQpZMck3.mjs → intel-MpftjuPB.mjs} +37 -37
- package/dist/interactive-mJQ_IrGd.mjs +2 -0
- package/dist/{ips-PT_uQKAf.mjs → ips-WWvPwSBc.mjs} +1 -1
- package/dist/{k2-nPYti7Y0.mjs → k2-D0QYUFqT.mjs} +6 -6
- package/dist/{keyless-certificates-BHvas2q1.mjs → keyless-certificates-DqILy3t9.mjs} +6 -6
- package/dist/{keys-O5kAW9ox.mjs → keys-DhX4AcqF.mjs} +2 -2
- package/dist/{kv-BUP_ZLM_.mjs → kv-DLUfUL0_.mjs} +9 -9
- package/dist/{lazy-command-glNW3jzf.mjs → lazy-command--5YpWUVY.mjs} +1 -1
- package/dist/{leaked-credential-checks-De9hI1rl.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
- package/dist/{load-balancers-Cs6bUHS1.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
- package/dist/local-DkYQiSQQ.mjs +2 -0
- package/dist/{local-B5oRPTEN.mjs → local-rYpzEQb-.mjs} +1 -1
- package/dist/{local-runtime-CZnegFEM.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
- package/dist/{login-C5nSIS-T.mjs → login-CnE2Ii_F.mjs} +1 -1
- package/dist/login-bnylLTit.mjs +5 -0
- package/dist/{logo-matches-BkQKdu4Z.mjs → logo-matches-DFZybI0C.mjs} +3 -3
- package/dist/{logos-C_sv-boo.mjs → logos-Da2YtqSN.mjs} +4 -4
- package/dist/{logpush-NUcyMKHi.mjs → logpush-Q7WIEHS1.mjs} +23 -23
- package/dist/{logs-BZT4PlqZ.mjs → logs-c3b3USyS.mjs} +12 -12
- package/dist/{magic-cloud-networking-DQnSdmgA.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
- package/dist/{magic-network-monitoring-pHTU6aS8.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
- package/dist/{magic-transit-5302bQNh.mjs → magic-transit-4-THD45G.mjs} +161 -161
- package/dist/{managed-defense-8OEfDzuO.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
- package/dist/{managed-transforms-CCpUz4TY.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
- package/dist/{matches-BSiYXs99.mjs → matches-hnU16rSJ.mjs} +3 -3
- package/dist/{mcp-CCMiS75R.mjs → mcp-kZX4irfN.mjs} +15 -15
- package/dist/{mesh-DKBGTlCD.mjs → mesh-Dxzvvso6.mjs} +12 -12
- package/dist/{migrate-BJ9Go_wP.mjs → migrate-BNvUWrjy.mjs} +1 -1
- package/dist/{monetization-CFf_lb6x.mjs → monetization-Dsqj9DCA.mjs} +11 -11
- package/dist/{mtls-certificates-DsF3NFNs.mjs → mtls-certificates-BSbMwIna.mjs} +6 -6
- package/dist/{network-interconnects-YiRUBbjx.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
- package/dist/{network-Bm0qYRqY.mjs → network-mEnXTEiG.mjs} +24 -24
- package/dist/{oauth-cNZUky3h.mjs → oauth-CeZ3d_dB.mjs} +2 -2
- package/dist/{oauth-clients-CP6alY0_.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
- package/dist/{oauth-scopes-xl-pcWdg.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
- package/dist/{oauth-DxGgIwFc.mjs → oauth-w0fWmrwU.mjs} +1 -1
- package/dist/{observability-Bp71PtlD.mjs → observability-BxL2RqWZ.mjs} +44 -44
- package/dist/{organization-Dbom1gTR.mjs → organization-DNieJ1xJ.mjs} +1 -1
- package/dist/{organizations-OUMVsuen.mjs → organizations-BIXPmTy5.mjs} +1 -1
- package/dist/{origin-ca-certificates-B3-T0-Nn.mjs → origin-ca-certificates-dVJvSIH8.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-CGB6AfPa.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
- package/dist/{origin-tls-client-auth-CgzzfAWr.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
- package/dist/output-ClYel9WX.mjs +2 -0
- package/dist/{page-rules-B9BQKU4_.mjs → page-rules-DA552Ra4.mjs} +7 -7
- package/dist/{pages-DZPdyuT4.mjs → pages-B0x7tidm.mjs} +27 -27
- package/dist/{pay-per-crawl-CnveMVDi.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
- package/dist/{pay-per-use-Bpxe8PHv.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
- package/dist/{pipelines-CHev3o5G.mjs → pipelines-CQxrm9ao.mjs} +20 -20
- package/dist/{precursor-C9PK9Bue.mjs → precursor-FiGYDRV9.mjs} +2 -2
- package/dist/previews-BthBa50j.mjs +4 -0
- package/dist/{progress-A61dRbXl.mjs → progress-TLUEIYE6.mjs} +1 -1
- package/dist/{prompt-CGUzvBgY.mjs → prompt-Ck_1PCHm.mjs} +1 -1
- package/dist/{queries-f-btyefs.mjs → queries-C0RRdol7.mjs} +4 -4
- package/dist/{queues-kLNdeb3q.mjs → queues-sLgvjsRP.mjs} +26 -26
- package/dist/{r2-D_awYx2p.mjs → r2-C2PllL6i.mjs} +63 -63
- package/dist/{radar-CU4T02Ag.mjs → radar-Bez6k9Dw.mjs} +1 -1
- package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
- package/dist/{realtime-C0dvcBBM.mjs → realtime-D-HSXznX.mjs} +78 -78
- package/dist/{registrar-CHc-4vcf.mjs → registrar-DwHrG9QR.mjs} +9 -9
- package/dist/{registrar-sandbox-Dq8LV2AI.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
- package/dist/{registry-Cg5lP8oo.mjs → registry-CsSLAAOE.mjs} +1 -1
- package/dist/{reporting-4u21g6Dk.mjs → reporting-DolhAb10.mjs} +7 -7
- package/dist/{request-headers-D31kdxrQ.mjs → request-headers-Lhj314mk.mjs} +1 -1
- package/dist/{request-tracers-CupJ_83j.mjs → request-tracers-w72hKc33.mjs} +2 -2
- package/dist/resolve-Djf2xgBx.mjs +2 -0
- package/dist/{resource-sharing-CO-Lh-u7.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
- package/dist/{resource-tagging-D0R5SzR6.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
- package/dist/{rules-BsmKzB9H.mjs → rules-C8a7cV-W.mjs} +8 -8
- package/dist/{rulesets-HOOnxHZZ.mjs → rulesets-RJ6yBefy.mjs} +17 -17
- package/dist/{rum-wcLEvVJl.mjs → rum-Bk1dPW4p.mjs} +14 -14
- package/dist/run-BJOAPmsz.mjs +2 -0
- package/dist/{run-CIJTelJL.mjs → run-iFM5TxtQ.mjs} +1 -1
- package/dist/{schema-flags-D8vL2oiF.mjs → schema-flags-PagOq-G2.mjs} +1 -1
- package/dist/{schema-GdBsV4P7.mjs → schema-v7mOxMdx.mjs} +1 -1
- package/dist/{scim-BkdJmAS8.mjs → scim-C0FmjkkV.mjs} +10 -10
- package/dist/{secrets-store-CHs0oYA0.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
- package/dist/{security-insights-vsl-4xFa.mjs → security-insights-DVAqroY5.mjs} +20 -20
- package/dist/{security-txt-Fnl3LdSn.mjs → security-txt-rfrrdiZV.mjs} +4 -4
- package/dist/{session-CZTuHcbm.mjs → session-B6mFkaVZ.mjs} +1 -1
- package/dist/shared-BqsWoApw.mjs +2 -0
- package/dist/{smart-shield-DB0E7cZI.mjs → smart-shield-_HA814Im.mjs} +11 -11
- package/dist/{snippets-CFaF_NyG.mjs → snippets-mRelEw0p.mjs} +10 -10
- package/dist/{spawn-B0Sl8lUu.mjs → spawn-BzPhcLJI.mjs} +1 -1
- package/dist/{spectrum-DtG0jYjE.mjs → spectrum-BwtOiaDw.mjs} +11 -11
- package/dist/{speed-B-RiNHGK.mjs → speed-DmqsZtiJ.mjs} +11 -11
- package/dist/{src-CM3XaB4p.mjs → src--KDGqL5N.mjs} +5 -5
- package/dist/{ssl-DBVpCZAM.mjs → ssl-DCvfveJB.mjs} +16 -16
- package/dist/{startup-profile-CR7GMuLx.mjs → startup-profile-BCe9k9sR.mjs} +1 -1
- package/dist/startup-profile-WrwRyMwH.mjs +2 -0
- package/dist/{state-BaGRaYow.mjs → state-BPwdiNO_.mjs} +1 -1
- package/dist/state-a1tTOGjm.mjs +2 -0
- package/dist/{stream-cAdBvpS1.mjs → stream-aroClJeD.mjs} +56 -56
- package/dist/{submit-Bkd7l2rK.mjs → submit-BBKhoKT8.mjs} +2 -2
- package/dist/{tags--eph7JbN.mjs → tags-Djw0e-4j.mjs} +2 -2
- package/dist/telemetry-DoBQOGRk.mjs +2 -0
- package/dist/{telemetry-51etasAu.mjs → telemetry-DrFNujdx.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-B5IIIwbz.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
- package/dist/{tenant-Bj-He2xO.mjs → tenant-tc1wb_ym.mjs} +1 -1
- package/dist/{tools-BJZ0DDlL.mjs → tools-CB4NleeJ.mjs} +1 -1
- package/dist/{tunnels-CgtuRpcD.mjs → tunnels-C2FTswb6.mjs} +13 -13
- package/dist/{turnstile-Bmcnrzw7.mjs → turnstile-BV4Mdd-j.mjs} +6 -6
- package/dist/{ui-BQxRjahW.mjs → ui-D1hhIDIs.mjs} +1 -1
- package/dist/update-check-CFt6cMOi.mjs +2 -0
- package/dist/{update-check-DC0qP_8z.mjs → update-check-Dtj9fzNe.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DhVehaT8.mjs → url-info-CeegsDK7.mjs} +2 -2
- package/dist/{url-normalization-BpGDUUQc.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
- package/dist/{url-scanner-DiLdqsQk.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
- package/dist/{user-B6P5_OjP.mjs → user-3uwLMH78.mjs} +1 -1
- package/dist/{values-Cxx4Lxrd.mjs → values-BTncDc3U.mjs} +2 -2
- package/dist/{vectorize-YyxVpql-.mjs → vectorize-CtMAtx8r.mjs} +17 -17
- package/dist/version-oN1bmOgM.mjs +2 -0
- package/dist/{waiting-rooms-BdahlCdD.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
- package/dist/{web-assets-yaKxN4w_.mjs → web-assets-BfEprX1S.mjs} +29 -29
- package/dist/{web3-Bu9c_QAt.mjs → web3-DNbp5sZw.mjs} +13 -13
- package/dist/{workers-5GgoGA2e.mjs → workers-DK_JgS4Y.mjs} +18 -18
- package/dist/{workers-builds-h-1FJjE1.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
- package/dist/{workers-for-platforms-CV9iRrp9.mjs → workers-for-platforms-CP6IqxrK.mjs} +23 -23
- package/dist/{workers-vpc-C1oUHHqk.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
- package/dist/{workflows-dtMlkj1-.mjs → workflows-CA5K8FFb.mjs} +23 -23
- package/dist/{wrangler-migration-CJEb9hY3.mjs → wrangler-migration-B0mKHqGd.mjs} +1 -1
- package/dist/{zaraz-838AbMEX.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
- package/dist/{zero-trust-CYt-eELJ.mjs → zero-trust-CQNohO7_.mjs} +416 -416
- package/dist/{zone-uJwRLSnn.mjs → zone-BVDW2UGd.mjs} +2 -2
- package/dist/{zones-Dpofsnth.mjs → zones-CcZL0YQp.mjs} +44 -44
- package/package.json +9 -4
- package/dist/auth-BBlAI8HG.mjs +0 -2
- package/dist/auth-BIr56Mbx.mjs +0 -8
- package/dist/build-DLZ9gBNA.mjs +0 -2
- package/dist/command-CAtsHc1V.mjs +0 -2
- package/dist/d1-m7UfzBzl.mjs +0 -41
- package/dist/discover-DwczTkRX.mjs +0 -2
- package/dist/dry-run-Bq0JAsbX.mjs +0 -2
- package/dist/error-sanitization-CJ5OLJrh.mjs +0 -2
- package/dist/error-sanitization-hmi1CqE5.mjs +0 -2
- package/dist/generate-BPqoDbck.mjs +0 -2
- package/dist/interactive-SgAjen2z.mjs +0 -2
- package/dist/local-Bj-l0TP6.mjs +0 -2
- package/dist/login-CUup7w0e.mjs +0 -5
- package/dist/output-CvQFJkvi.mjs +0 -2
- package/dist/previews-BIMI1dTz.mjs +0 -4
- package/dist/raw-fetch-CvkmFO23.mjs +0 -2
- package/dist/resolve-PZuJ878-.mjs +0 -2
- package/dist/run-quhbAvQi.mjs +0 -2
- package/dist/sdk-BCzcRJCi.mjs +0 -3
- package/dist/shared-BS30oCf8.mjs +0 -2
- package/dist/startup-profile-CLmojOrn.mjs +0 -2
- package/dist/state-CpXhcMdX.mjs +0 -2
- package/dist/telemetry-Q3_UmwHj.mjs +0 -2
- package/dist/update-check-BqSpgzHk.mjs +0 -2
- package/dist/version-C0pInAZ9.mjs +0 -2
- /package/dist/{Page-CjJht2qT.mjs → Page-DAgOEX17.mjs} +0 -0
- /package/dist/{alerts-DY_7Nknx.mjs → alerts-D3iKtzoN.mjs} +0 -0
- /package/dist/{autorag-K396-M2S.mjs → autorag-pvRfDwne.mjs} +0 -0
- /package/dist/{body-parser-hh2avzkz.mjs → body-parser-NjzJZMOV.mjs} +0 -0
- /package/dist/{brands-DeLbFxSt.mjs → brands-DP5Ndir1.mjs} +0 -0
- /package/dist/{browser-extension-C1zmKFDG.mjs → browser-extension-Dee2Y1qn.mjs} +0 -0
- /package/dist/{chunk-WMOON6TZ-D_ToS88f.mjs → chunk-WMOON6TZ-B8xCqjB1.mjs} +0 -0
- /package/dist/{clear-CRfI7WS7.mjs → clear-qLKPlJqb.mjs} +0 -0
- /package/dist/{cli-types-DoVT5q_M.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-D8p_dR8s.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-COFmzmlk.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
- /package/dist/{delegate-B6LetRpZ.mjs → delegate-CCGgla7X.mjs} +0 -0
- /package/dist/{discover-C5aiI6u0.mjs → discover-t6E9lpf3.mjs} +0 -0
- /package/dist/{domain-info-aiwP60Fo.mjs → domain-info-BQh9XapD.mjs} +0 -0
- /package/dist/{gt-DmcMNPX6.mjs → gt-KlYHH-UC.mjs} +0 -0
- /package/dist/{health-Bz33n-_F.mjs → health--10IShMi.mjs} +0 -0
- /package/dist/{input-validation-Dk52b0me.mjs → input-validation-0CeePPHp.mjs} +0 -0
- /package/dist/{interactive-C-o16XQs.mjs → interactive-D80kbTap.mjs} +0 -0
- /package/dist/{internal-BHrJbbdA.mjs → internal-BUs583vv.mjs} +0 -0
- /package/dist/{lifecycle-C7tAC1Mn.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-MeJQXIei.mjs → live-VCSxA0N9.mjs} +0 -0
- /package/dist/{open-PCXX3ZDZ-BKRik1gi.mjs → open-PCXX3ZDZ-C7gpxSsl.mjs} +0 -0
- /package/dist/{project-settings-DO6njFg_.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{r2-data-catalog-2jQrdAdo.mjs → r2-data-catalog-Bg7zq1IB.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CU55zqCU.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
- /package/dist/{rate-limits-CZ-qHDPK.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
- /package/dist/{ready-BOpbZ1pN.mjs → ready-CAgelFmC.mjs} +0 -0
- /package/dist/{recent-submissions-KDqD2HyS.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
- /package/dist/{refute-DkF4XIMw.mjs → refute-BZNkFpBB.mjs} +0 -0
- /package/dist/{resolve-BCTrtcx7.mjs → resolve-CGKqk7q8.mjs} +0 -0
- /package/dist/{scan-logo-DQkf6glG.mjs → scan-logo-StecHiaf.mjs} +0 -0
- /package/dist/{scan-page-CMOJ_E0n.mjs → scan-page-B4adr-vD.mjs} +0 -0
- /package/dist/{search-Bre1Zwn3.mjs → search-Devngw4M.mjs} +0 -0
- /package/dist/{signed-url-24ZbX4yV.mjs → signed-url-ChR5eXXd.mjs} +0 -0
- /package/dist/{submission-info-BmkbZVqM.mjs → submission-info-BGb81HZN.mjs} +0 -0
- /package/dist/{total-queries-j8OAF_cE.mjs → total-queries-_wa6KxEl.mjs} +0 -0
- /package/dist/{tracked-domains-fe3EWYmF.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
- /package/dist/{verify-CKgZYvln.mjs → verify-CYM5GlPu.mjs} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,t as r}from"./context-CquYYyS3.mjs";import{t as i}from"./output-ClYel9WX.mjs";import{t as a}from"./dry-run-p9Q7nMZ5.mjs";import{t as o}from"./progress-TLUEIYE6.mjs";import{t as s}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as c,t as l}from"./body-parser-NjzJZMOV.mjs";import{n as u}from"./input-validation-0CeePPHp.mjs";import{a as d,n as f}from"./prompt-Ck_1PCHm.mjs";import{t as p}from"./cli-types-_Kmwfpnp.mjs";function m(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-id>
|
|
3
3
|
|
|
4
|
-
Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:m,handler:async c=>s({command:`mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:m,handler:async c=>s({command:`mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}/associations`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.mtlsCertificates.associations.get({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Loaded`})})},g={command:`associations`,describe:`Operations for associations`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 mtls-certificates create
|
|
5
5
|
|
|
6
|
-
Upload a certificate that you want to use with mTLS-enabled Cloudflare services, such as Bring Your Own CA (BYO-CA) for mTLS. To create certificates issued by the Cloudflare managed CA, use the [Create Client Certificate endpoint](/api/resources/client_certificates/methods/create/).`).option(`ca`,{type:`boolean`,description:`Indicates whether the certificate is a CA or leaf certificate.`}).option(`certificates`,{type:`string`,description:`The uploaded root CA certificate.`}).option(`name`,{type:`string`,description:`Optional unique name for the certificate. Only used for human readability.`}).option(`private-key`,{type:`string`,description:`The private key for the certificate. This field is only needed for specific use cases such as using a custom certificate with Zero Trust's block page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Upload mTLS certificate`,builder:_,handler:async f=>s({command:`mtls-certificates create`,classification:{safeFlags:[`ca`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Upload a certificate that you want to use with mTLS-enabled Cloudflare services, such as Bring Your Own CA (BYO-CA) for mTLS. To create certificates issued by the Cloudflare managed CA, use the [Create Client Certificate endpoint](/api/resources/client_certificates/methods/create/).`).option(`ca`,{type:`boolean`,description:`Indicates whether the certificate is a CA or leaf certificate.`}).option(`certificates`,{type:`string`,description:`The uploaded root CA certificate.`}).option(`name`,{type:`string`,description:`Optional unique name for the certificate. Only used for human readability.`}).option(`private-key`,{type:`string`,description:`The private key for the certificate. This field is only needed for specific use cases such as using a custom certificate with Zero Trust's block page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Upload mTLS certificate`,builder:_,handler:async f=>s({command:`mtls-certificates create`,classification:{safeFlags:[`ca`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/mtls_certificates`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({ca:f.ca,certificates:u(f.certificates,`certificates`,`text`),name:u(f.name,`name`,`text`),private_key:u(f[`private-key`],`private-key`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.mtlsCertificates.create({...e,account_id:p})),{successLabel:`Created`});return}if(f.ca===void 0)throw Error(`--ca is required (or pass --body with this field set).`);f.certificates===void 0&&(f.certificates=await d(`certificates`,`The uploaded root CA certificate.`));let m=l({ca:f.ca,certificates:u(f.certificates,`certificates`,`text`),name:u(f.name,`name`,`text`),private_key:u(f[`private-key`],`private-key`,`text`)});i(await o(`Creating`,async()=>s.mtlsCertificates.create({...m,account_id:p})),{successLabel:`Created`})})};function y(e){return e.usage(`$0 mtls-certificates delete <mtls-certificate-id>
|
|
7
7
|
|
|
8
|
-
Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:y,handler:async c=>s({command:`mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
8
|
+
Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:y,handler:async c=>s({command:`mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
9
9
|
`);return}i(await o(`Deleting`,async()=>s.mtlsCertificates.delete({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Deleted`})})};function x(e){return e.usage(`$0 mtls-certificates get <mtls-certificate-id>
|
|
10
10
|
|
|
11
|
-
Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:x,handler:async c=>s({command:`mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
11
|
+
Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:x,handler:async c=>s({command:`mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.mtlsCertificates.get({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 mtls-certificates list
|
|
12
12
|
|
|
13
|
-
Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List mTLS certificates`,builder:p(C),handler:async c=>s({command:`mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={type:c.type};if(c.dryRun){a({command:`cf mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`list`,describe:`List mTLS certificates`,builder:p(C),handler:async c=>s({command:`mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={type:c.type};if(c.dryRun){a({command:`cf mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/mtls_certificates`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.mtlsCertificates.list({account_id:u,...s})),{successLabel:`Loaded`})})},T={command:`mtls-certificates`,describe:`mtls-certificates`,builder:e=>e.command(v).command(b).command(S).command(w).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{T as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,t as r}from"./context-CquYYyS3.mjs";import{t as i}from"./output-ClYel9WX.mjs";import{t as a}from"./dry-run-p9Q7nMZ5.mjs";import{t as o}from"./progress-TLUEIYE6.mjs";import{t as s}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as c,t as l}from"./body-parser-NjzJZMOV.mjs";import{n as u}from"./input-validation-0CeePPHp.mjs";import{a as d,n as f}from"./prompt-Ck_1PCHm.mjs";function p(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`}).option(`bgp-md5-key`,{type:`string`,description:`MD5 key to use for session authentication.
|
|
5
5
|
|
|
@@ -16,14 +16,14 @@ character:
|
|
|
16
16
|
In other words, MD5 keys may contain any printable ASCII character aside from newline
|
|
17
17
|
(0x0A), quotation mark (\`"\`), vertical tab (0x0B), carriage return (0x0D), tab (0x09),
|
|
18
18
|
form feed (0x0C), and the question mark (\`?\`). Requests specifying an MD5 key with one
|
|
19
|
-
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=>{if([`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0)){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 m={command:`create`,describe:`Create a new CNI object`,builder:p,handler:async f=>s({command:`network-interconnects cnis create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects cnis create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
19
|
+
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=>{if([`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0)){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 m={command:`create`,describe:`Create a new CNI object`,builder:p,handler:async f=>s({command:`network-interconnects cnis create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects cnis create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/cnis`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({account:u(f.account,`account`,`text`),bgp:{customer_asn:f[`bgp-customer-asn`],extra_prefixes:f[`bgp-extra-prefixes`],md5_key:u(f[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:u(f.interconnect,`interconnect`,`text`),magic:{conduit_name:u(f[`magic-conduit-name`],`magic-conduit-name`,`text`),description:u(f[`magic-description`],`magic-description`,`text`),mtu:f[`magic-mtu`]}}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.networkInterconnects.cnis.create({...e,account_id:p})),{successLabel:`Created`});return}if(f.account===void 0&&(f.account=await d(`account`,`Customer account tag`)),f.interconnect===void 0&&(f.interconnect=await d(`interconnect`,`The interconnect field`)),f[`magic-conduit-name`]===void 0&&(f[`magic-conduit-name`]=await d(`magic-conduit-name`,`The magic.conduit_name field`)),f[`magic-description`]===void 0&&(f[`magic-description`]=await d(`magic-description`,`The magic.description field`)),f[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);let m=l({account:u(f.account,`account`,`text`),bgp:{customer_asn:f[`bgp-customer-asn`],extra_prefixes:f[`bgp-extra-prefixes`],md5_key:u(f[`bgp-md5-key`],`bgp-md5-key`,`text`)},interconnect:u(f.interconnect,`interconnect`,`text`),magic:{conduit_name:u(f[`magic-conduit-name`],`magic-conduit-name`,`text`),description:u(f[`magic-description`],`magic-description`,`text`),mtu:f[`magic-mtu`]}});i(await o(`Creating`,async()=>s.networkInterconnects.cnis.create({...m,account_id:p})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 network-interconnects cnis delete <cni>
|
|
20
20
|
|
|
21
|
-
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 g={command:`delete <cni>`,describe:`Delete a specified CNI object`,builder:h,handler:async c=>s({command:`network-interconnects cnis delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects cnis delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
21
|
+
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 g={command:`delete <cni>`,describe:`Delete a specified CNI object`,builder:h,handler:async c=>s({command:`network-interconnects cnis delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects cnis delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/cnis/${c.cni==null?`<cni>`:encodeURIComponent(String(c.cni))}`,pathParams:{cni:String(c.cni??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
22
22
|
`);return}i(await o(`Deleting`,async()=>s.networkInterconnects.cnis.delete({account_id:l,cni:c.cni})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 network-interconnects cnis get <cni>
|
|
23
23
|
|
|
24
|
-
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 v={command:`get <cni>`,describe:`Get information about a CNI object`,builder:_,handler:async c=>s({command:`network-interconnects cnis get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects cnis get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
24
|
+
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 v={command:`get <cni>`,describe:`Get information about a CNI object`,builder:_,handler:async c=>s({command:`network-interconnects cnis get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects cnis get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/cnis/${c.cni==null?`<cni>`:encodeURIComponent(String(c.cni))}`,pathParams:{cni:String(c.cni??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.cnis.get({account_id:l,cni:c.cni})),{successLabel:`Loaded`})})};function y(e){return e.usage(`$0 network-interconnects cnis list
|
|
25
25
|
|
|
26
|
-
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 b={command:`list`,describe:`List existing CNI objects`,builder:y,handler:async c=>s({command:`network-interconnects cnis list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={slot:c.slot,tunnel_id:c[`tunnel-id`],cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects cnis list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
26
|
+
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 b={command:`list`,describe:`List existing CNI objects`,builder:y,handler:async c=>s({command:`network-interconnects cnis list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={slot:c.slot,tunnel_id:c[`tunnel-id`],cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects cnis list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/cnis`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.networkInterconnects.cnis.list({account_id:u,...s})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 network-interconnects cnis update <cni>
|
|
27
27
|
|
|
28
28
|
Updates the configuration of an existing Cloud Network Interconnect (CNI), including connection parameters and routing settings.`).positional(`cni`,{type:`string`,description:`CNI ID to retrieve information about`,demandOption:!0}).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`}).option(`bgp-md5-key`,{type:`string`,description:`MD5 key to use for session authentication.
|
|
29
29
|
|
|
@@ -47,27 +47,27 @@ Controls the customer-facing data path:
|
|
|
47
47
|
bgp-bridge-receiver.
|
|
48
48
|
* \`AdvertiseOnly\` — static advertisement via taserver, no routes exchanged with Conduit`,choices:[`dynamic_route_exchange`,`advertise_only`]}).option(`cust-ip`,{type:`string`,description:`Customer end of the point-to-point link
|
|
49
49
|
|
|
50
|
-
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=>{if([`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0)){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 S={command:`update <cni>`,describe:`Modify stored information about a CNI object`,builder:x,handler:async f=>s({command:`network-interconnects cnis update`,classification:{safeFlags:[`bgp-mode`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects cnis update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
50
|
+
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=>{if([`bgp-customer-asn`,`bgp-extra-prefixes`,`bgp-md5-key`].some(t=>e[t]!==void 0)){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 S={command:`update <cni>`,describe:`Modify stored information about a CNI object`,builder:x,handler:async f=>s({command:`network-interconnects cnis update`,classification:{safeFlags:[`bgp-mode`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects cnis update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/cnis/${f.cni==null?`<cni>`:encodeURIComponent(String(f.cni))}`,pathParams:{cni:String(f.cni??``)},bodyKind:`json`,body:f.body===void 0?l({account:u(f.account,`account`,`text`),bgp:{customer_asn:f[`bgp-customer-asn`],extra_prefixes:f[`bgp-extra-prefixes`],md5_key:u(f[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:u(f[`bgp-mode`],`bgp-mode`,`text`),cust_ip:u(f[`cust-ip`],`cust-ip`,`text`),id:u(f.id,`id`,`text`),interconnect:u(f.interconnect,`interconnect`,`text`),magic:{conduit_name:u(f[`magic-conduit-name`],`magic-conduit-name`,`text`),description:u(f[`magic-description`],`magic-description`,`text`),mtu:f[`magic-mtu`]},p2p_ip:u(f[`p2p-ip`],`p2p-ip`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Updating`,async()=>s.networkInterconnects.cnis.update({body:e,account_id:p,cni:f.cni})),{successLabel:`Updated`});return}if(f.account===void 0&&(f.account=await d(`account`,`Customer account tag`)),f[`cust-ip`]===void 0&&(f[`cust-ip`]=await d(`cust-ip`,"Customer end of the point-to-point link This should always be inside the same prefix as `p2p_ip`.")),f.id===void 0&&(f.id=await d(`id`,`The id field`)),f.interconnect===void 0&&(f.interconnect=await d(`interconnect`,`Interconnect identifier hosting this CNI`)),f[`magic-conduit-name`]===void 0&&(f[`magic-conduit-name`]=await d(`magic-conduit-name`,`The magic.conduit_name field`)),f[`magic-description`]===void 0&&(f[`magic-description`]=await d(`magic-description`,`The magic.description field`)),f[`magic-mtu`]===void 0)throw Error(`--magic-mtu is required (or pass --body with this field set).`);f[`p2p-ip`]===void 0&&(f[`p2p-ip`]=await d(`p2p-ip`,`Cloudflare end of the point-to-point link`));let m=l({account:u(f.account,`account`,`text`),bgp:{customer_asn:f[`bgp-customer-asn`],extra_prefixes:f[`bgp-extra-prefixes`],md5_key:u(f[`bgp-md5-key`],`bgp-md5-key`,`text`)},bgp_mode:u(f[`bgp-mode`],`bgp-mode`,`text`),cust_ip:u(f[`cust-ip`],`cust-ip`,`text`),id:u(f.id,`id`,`text`),interconnect:u(f.interconnect,`interconnect`,`text`),magic:{conduit_name:u(f[`magic-conduit-name`],`magic-conduit-name`,`text`),description:u(f[`magic-description`],`magic-description`,`text`),mtu:f[`magic-mtu`]},p2p_ip:u(f[`p2p-ip`],`p2p-ip`,`text`)});i(await o(`Updating`,async()=>s.networkInterconnects.cnis.update({body:m,account_id:p,cni:f.cni})),{successLabel:`Updated`})})},C={command:`cnis`,describe:`Cloud Network Interconnect (CNI) connections — private links from cloud providers to Cloudflare`,builder:e=>e.command(m).command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 network-interconnects interconnects create
|
|
51
51
|
|
|
52
|
-
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`]}).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`]).conflicts(`bandwidth`,[`slot-id`,`speed`]).implies(`bandwidth`,[`pairing-key`]).conflicts(`pairing-key`,[`slot-id`,`speed`]).implies(`pairing-key`,[`bandwidth`])}const T={command:`create`,describe:`Create a new interconnect`,builder:w,handler:async f=>s({command:`network-interconnects interconnects create`,classification:{safeFlags:[`bandwidth`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects interconnects create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
52
|
+
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`]}).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`]).conflicts(`bandwidth`,[`slot-id`,`speed`]).implies(`bandwidth`,[`pairing-key`]).conflicts(`pairing-key`,[`slot-id`,`speed`]).implies(`pairing-key`,[`bandwidth`])}const T={command:`create`,describe:`Create a new interconnect`,builder:w,handler:async f=>s({command:`network-interconnects interconnects create`,classification:{safeFlags:[`bandwidth`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network-interconnects interconnects create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({account:u(f.account,`account`,`text`),type:u(f.type,`type`,`text`),slot_id:u(f[`slot-id`],`slot-id`,`text`),speed:u(f.speed,`speed`,`text`),bandwidth:u(f.bandwidth,`bandwidth`,`text`),pairing_key:u(f[`pairing-key`],`pairing-key`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.networkInterconnects.interconnects.create({body:e,account_id:p})),{successLabel:`Created`});return}f.account===void 0&&(f.account=await d(`account`,`The account field`)),f.type===void 0&&(f.type=await d(`type`,`The type field`));let m=l({account:u(f.account,`account`,`text`),type:u(f.type,`type`,`text`),slot_id:u(f[`slot-id`],`slot-id`,`text`),speed:u(f.speed,`speed`,`text`),bandwidth:u(f.bandwidth,`bandwidth`,`text`),pairing_key:u(f[`pairing-key`],`pairing-key`,`text`)});i(await o(`Creating`,async()=>s.networkInterconnects.interconnects.create({body:m,account_id:p})),{successLabel:`Created`})})};function E(e){return e.usage(`$0 network-interconnects interconnects delete <icon>
|
|
53
53
|
|
|
54
|
-
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 D={command:`delete <icon>`,describe:`Delete an interconnect object`,builder:E,handler:async c=>s({command:`network-interconnects interconnects delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
54
|
+
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 D={command:`delete <icon>`,describe:`Delete an interconnect object`,builder:E,handler:async c=>s({command:`network-interconnects interconnects delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects/${c.icon==null?`<icon>`:encodeURIComponent(String(c.icon))}`,pathParams:{icon:String(c.icon??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
|
|
55
55
|
`);return}i(await o(`Deleting`,async()=>s.networkInterconnects.interconnects.delete({account_id:l,icon:c.icon})),{successLabel:`Deleted`})})};function O(e){return e.usage(`$0 network-interconnects interconnects get <icon>
|
|
56
56
|
|
|
57
|
-
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 k={command:`get <icon>`,describe:`Get information about an interconnect object`,builder:O,handler:async c=>s({command:`network-interconnects interconnects get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
57
|
+
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 k={command:`get <icon>`,describe:`Get information about an interconnect object`,builder:O,handler:async c=>s({command:`network-interconnects interconnects get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects/${c.icon==null?`<icon>`:encodeURIComponent(String(c.icon))}`,pathParams:{icon:String(c.icon??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.interconnects.get({account_id:l,icon:c.icon})),{successLabel:`Loaded`})})};function A(e){return e.usage(`$0 network-interconnects interconnects list
|
|
58
58
|
|
|
59
|
-
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 j={command:`list`,describe:`List existing interconnects`,builder:A,handler:async c=>s({command:`network-interconnects interconnects list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={site:c.site,type:c.type,cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects interconnects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
59
|
+
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 j={command:`list`,describe:`List existing interconnects`,builder:A,handler:async c=>s({command:`network-interconnects interconnects list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={site:c.site,type:c.type,cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects interconnects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.networkInterconnects.interconnects.list({account_id:u,...s})),{successLabel:`Loaded`})})};function M(e){return e.usage(`$0 network-interconnects interconnects loa-default-name <icon>
|
|
60
60
|
|
|
61
|
-
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 N={command:`loa-default-name <icon>`,describe:`Get the default customer name for LOA generation`,builder:M,handler:async c=>s({command:`network-interconnects interconnects loa-default-name`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects loa-default-name`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
61
|
+
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 N={command:`loa-default-name <icon>`,describe:`Get the default customer name for LOA generation`,builder:M,handler:async c=>s({command:`network-interconnects interconnects loa-default-name`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects loa-default-name`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects/${c.icon==null?`<icon>`:encodeURIComponent(String(c.icon))}/loa/default`,pathParams:{icon:String(c.icon??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.interconnects.loaDefaultName({account_id:l,icon:c.icon})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 network-interconnects interconnects loa <icon>
|
|
62
62
|
|
|
63
|
-
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 F={command:`loa <icon>`,describe:`Generate the Letter of Authorization (LOA) for a given interconnect`,builder:P,handler:async c=>s({command:`network-interconnects interconnects loa`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={name:c.name};if(c.dryRun){a({command:`cf network-interconnects interconnects loa`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
63
|
+
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 F={command:`loa <icon>`,describe:`Generate the Letter of Authorization (LOA) for a given interconnect`,builder:P,handler:async c=>s({command:`network-interconnects interconnects loa`,classification:{safeFlags:[`dry-run`]}},c,async()=>{let s={name:c.name};if(c.dryRun){a({command:`cf network-interconnects interconnects loa`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects/${c.icon==null?`<icon>`:encodeURIComponent(String(c.icon))}/loa`,pathParams:{icon:String(c.icon??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.networkInterconnects.interconnects.loa({account_id:u,icon:c.icon,...s})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 network-interconnects interconnects status <icon>
|
|
64
64
|
|
|
65
|
-
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 L={command:`status <icon>`,describe:`Get the current status of an interconnect object`,builder:I,handler:async c=>s({command:`network-interconnects interconnects status`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
65
|
+
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 L={command:`status <icon>`,describe:`Get the current status of an interconnect object`,builder:I,handler:async c=>s({command:`network-interconnects interconnects status`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects interconnects status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/interconnects/${c.icon==null?`<icon>`:encodeURIComponent(String(c.icon))}/status`,pathParams:{icon:String(c.icon??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.interconnects.status({account_id:l,icon:c.icon})),{successLabel:`Loaded`})})},R={command:`interconnects`,describe:`Physical cross-connect and partner interconnect sessions with LOA and status tracking`,builder:e=>e.command(T).command(D).command(k).command(j).command(F).command(N).command(L).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function z(e){return e.usage(`$0 network-interconnects settings get
|
|
66
66
|
|
|
67
|
-
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 B={command:`get`,describe:`Get the current settings for the active account`,builder:z,handler:async c=>s({command:`network-interconnects settings get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
67
|
+
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 B={command:`get`,describe:`Get the current settings for the active account`,builder:z,handler:async c=>s({command:`network-interconnects settings get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/settings`,pathParams:{},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.settings.get({account_id:l})),{successLabel:`Loaded`})})};function V(e){return e.usage(`$0 network-interconnects settings update
|
|
68
68
|
|
|
69
|
-
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 H={command:`update`,describe:`Update the current settings for the active account`,builder:V,handler:async u=>s({command:`network-interconnects settings update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf network-interconnects settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
69
|
+
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 H={command:`update`,describe:`Update the current settings for the active account`,builder:V,handler:async u=>s({command:`network-interconnects settings update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){a({command:`cf network-interconnects settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/settings`,pathParams:{},bodyKind:`json`,body:u.body===void 0?l({default_asn:u[`default-asn`]}):c(u.body)});return}let s=await t(u),d=u.local?e:await r();if(u.accountId=d,u.body){let e=c(u.body);i(await o(`Updating`,async()=>s.networkInterconnects.settings.update({...e,account_id:d})),{successLabel:`Updated`});return}let f=l({default_asn:u[`default-asn`]});i(await o(`Updating`,async()=>s.networkInterconnects.settings.update({...f,account_id:d})),{successLabel:`Updated`})})},U={command:`settings`,describe:`Account-level interconnect settings and default configurations`,builder:e=>e.command(B).command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function W(e){return e.usage(`$0 network-interconnects slots get <slot>
|
|
70
70
|
|
|
71
|
-
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 G={command:`get <slot>`,describe:`Get information about the specified slot`,builder:W,handler:async c=>s({command:`network-interconnects slots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects slots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
71
|
+
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 G={command:`get <slot>`,describe:`Get information about the specified slot`,builder:W,handler:async c=>s({command:`network-interconnects slots get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network-interconnects slots get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/slots/${c.slot==null?`<slot>`:encodeURIComponent(String(c.slot))}`,pathParams:{slot:String(c.slot??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.networkInterconnects.slots.get({account_id:l,slot:c.slot})),{successLabel:`Loaded`})})};function K(e){return e.usage(`$0 network-interconnects slots list
|
|
72
72
|
|
|
73
|
-
Lists all available infrastructure slots for the account, showing allocation status and capacity.`).option(`address-contains`,{type:`string`,description:`If specified, only show slots with the given text in their address field`}).option(`site`,{type:`string`,description:`If specified, only show slots located at the given site`}).option(`speed`,{type:`string`,description:`If specified, only show slots that support the given speed`}).option(`occupied`,{type:`boolean`,description:`If specified, only show slots with a specific occupied/unoccupied state`}).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 q={command:`list`,describe:`Retrieve a list of all slots matching the specified parameters`,builder:K,handler:async c=>s({command:`network-interconnects slots list`,classification:{safeFlags:[`occupied`,`dry-run`]}},c,async()=>{let s={address_contains:c[`address-contains`],site:c.site,speed:c.speed,occupied:c.occupied,cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects slots list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
73
|
+
Lists all available infrastructure slots for the account, showing allocation status and capacity.`).option(`address-contains`,{type:`string`,description:`If specified, only show slots with the given text in their address field`}).option(`site`,{type:`string`,description:`If specified, only show slots located at the given site`}).option(`speed`,{type:`string`,description:`If specified, only show slots that support the given speed`}).option(`occupied`,{type:`boolean`,description:`If specified, only show slots with a specific occupied/unoccupied state`}).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 q={command:`list`,describe:`Retrieve a list of all slots matching the specified parameters`,builder:K,handler:async c=>s({command:`network-interconnects slots list`,classification:{safeFlags:[`occupied`,`dry-run`]}},c,async()=>{let s={address_contains:c[`address-contains`],site:c.site,speed:c.speed,occupied:c.occupied,cursor:c.cursor,limit:c.limit};if(c.dryRun){a({command:`cf network-interconnects slots list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/cni/slots`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.networkInterconnects.slots.list({account_id:u,...s})),{successLabel:`Loaded`})})},J={command:`slots`,describe:`Available interconnect facility slots showing port capacity at Cloudflare data centers`,builder:e=>e.command(G).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`network-interconnects`,describe:`Physical and virtual private interconnects between your infrastructure and Cloudflare's network`,builder:e=>e.command(C).command(R).command(U).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Y as default};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,t as r}from"./context-CquYYyS3.mjs";import{t as i}from"./output-ClYel9WX.mjs";import{t as a}from"./dry-run-p9Q7nMZ5.mjs";import{t as o}from"./progress-TLUEIYE6.mjs";import{t as s}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as c,t as l}from"./body-parser-NjzJZMOV.mjs";import{n as u}from"./input-validation-0CeePPHp.mjs";import{a as d,n as f}from"./prompt-Ck_1PCHm.mjs";import{t as p}from"./cli-types-_Kmwfpnp.mjs";function m(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 ee={command:`create`,describe:`Create a tunnel route`,builder:m,handler:async f=>s({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Routes a private network through a Cloudflare Tunnel.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`,default:``}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Create a tunnel route`,builder:m,handler:async f=>s({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.routes.cidr.create({...e,account_id:p})),{successLabel:`Created`});return}f.network===void 0&&(f.network=await d(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let m=l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)});i(await o(`Creating`,async()=>s.network.routes.cidr.create({...m,account_id:p})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 network routes cidr delete <route-id>
|
|
5
5
|
|
|
6
|
-
Deletes a private network route from an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const g={command:`delete <route-id>`,describe:`Delete a tunnel route`,builder:h,handler:async c=>s({command:`network routes cidr delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Deletes a private network route from an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const g={command:`delete <route-id>`,describe:`Delete a tunnel route`,builder:h,handler:async c=>s({command:`network routes cidr delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes/${c[`route-id`]==null?`<route-id>`:encodeURIComponent(String(c[`route-id`]))}`,pathParams:{"route-id":String(c[`route-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a private network route.`})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}i(await o(`Deleting`,async()=>s.network.routes.cidr.delete({account_id:l,route_id:c[`route-id`]})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 network routes cidr edit <route-id>
|
|
8
8
|
|
|
9
|
-
Updates an existing private network route in an account. The fields that are meant to be updated should be provided in the body of the request.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`edit <route-id>`,describe:`Update a tunnel route`,builder:_,handler:async d=>s({command:`network routes cidr edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes cidr edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
9
|
+
Updates an existing private network route in an account. The fields that are meant to be updated should be provided in the body of the request.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`edit <route-id>`,describe:`Update a tunnel route`,builder:_,handler:async d=>s({command:`network routes cidr edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes cidr edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes/${d[`route-id`]==null?`<route-id>`:encodeURIComponent(String(d[`route-id`]))}`,pathParams:{"route-id":String(d[`route-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),network:u(d.network,`network`,`text`),virtual_network_id:u(d[`virtual-network-id`],`virtual-network-id`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.routes.cidr.edit({...e,account_id:f,route_id:d[`route-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),network:u(d.network,`network`,`text`),virtual_network_id:u(d[`virtual-network-id`],`virtual-network-id`,`text`)});i(await o(`Updating`,async()=>s.network.routes.cidr.edit({...p,account_id:f,route_id:d[`route-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 network routes cidr get <route-id>
|
|
10
10
|
|
|
11
|
-
Get a private network route in an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <route-id>`,describe:`Get tunnel route`,builder:y,handler:async c=>s({command:`network routes cidr get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
11
|
+
Get a private network route in an account.`).positional(`route-id`,{type:`string`,description:`UUID of the route.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <route-id>`,describe:`Get tunnel route`,builder:y,handler:async c=>s({command:`network routes cidr get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes cidr get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes/${c[`route-id`]==null?`<route-id>`:encodeURIComponent(String(c[`route-id`]))}`,pathParams:{"route-id":String(c[`route-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.network.routes.cidr.get({account_id:l,route_id:c[`route-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 network routes cidr list
|
|
12
12
|
|
|
13
|
-
Lists and filters private network routes in an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted routes. If `false`, exclude deleted routes. If empty, all routes will be included."}).option(`network-subset`,{type:`string`,description:`If set, only list routes that are contained within this IP range.`}).option(`network-superset`,{type:`string`,description:`If set, only list routes that contain this IP range.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`route-id`,{type:`string`,description:`UUID of the route.`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List tunnel routes`,builder:p(x),handler:async c=>s({command:`network routes cidr list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={comment:c.comment,is_deleted:c[`is-deleted`],network_subset:c[`network-subset`],network_superset:c[`network-superset`],existed_at:c[`existed-at`],tunnel_id:c[`tunnel-id`],route_id:c[`route-id`],tun_types:c[`tun-types`],virtual_network_id:c[`virtual-network-id`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes cidr list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Lists and filters private network routes in an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted routes. If `false`, exclude deleted routes. If empty, all routes will be included."}).option(`network-subset`,{type:`string`,description:`If set, only list routes that are contained within this IP range.`}).option(`network-superset`,{type:`string`,description:`If set, only list routes that contain this IP range.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`route-id`,{type:`string`,description:`UUID of the route.`}).option(`tun-types`,{type:`string`,description:`The types of tunnels to filter by, separated by commas.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List tunnel routes`,builder:p(x),handler:async c=>s({command:`network routes cidr list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={comment:c.comment,is_deleted:c[`is-deleted`],network_subset:c[`network-subset`],network_superset:c[`network-superset`],existed_at:c[`existed-at`],tunnel_id:c[`tunnel-id`],route_id:c[`route-id`],tun_types:c[`tun-types`],virtual_network_id:c[`virtual-network-id`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes cidr list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.cidr.list({account_id:u,...s})),{successLabel:`Loaded`})})},C={command:`cidr`,describe:`Operations for routes.cidr`,builder:e=>e.command(ee).command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e){return e.usage(`$0 network routes hostname create
|
|
14
14
|
|
|
15
|
-
Create a hostname route.`).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`create`,describe:`Create hostname route`,builder:w,handler:async d=>s({command:`network routes hostname create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
Create a hostname route.`).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`create`,describe:`Create hostname route`,builder:w,handler:async d=>s({command:`network routes hostname create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.network.routes.hostname.create({...e,account_id:f})),{successLabel:`Created`});return}let p=l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)});i(await o(`Creating`,async()=>s.network.routes.hostname.create({...p,account_id:f})),{successLabel:`Created`})})};function E(e){return e.usage(`$0 network routes hostname delete <hostname-route-id>
|
|
16
16
|
|
|
17
|
-
Delete a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const D={command:`delete <hostname-route-id>`,describe:`Delete hostname route`,builder:E,handler:async c=>s({command:`network routes hostname delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Delete a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const D={command:`delete <hostname-route-id>`,describe:`Delete hostname route`,builder:E,handler:async c=>s({command:`network routes hostname delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/routes/hostname/${c[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(c[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(c[`hostname-route-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a hostname route.`})){process.stderr.write(`Aborted.
|
|
18
18
|
`);return}i(await o(`Deleting`,async()=>s.network.routes.hostname.delete({account_id:l,hostname_route_id:c[`hostname-route-id`]})),{successLabel:`Deleted`})})};function O(e){return e.usage(`$0 network routes hostname edit <hostname-route-id>
|
|
19
19
|
|
|
20
|
-
Updates a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const k={command:`edit <hostname-route-id>`,describe:`Update hostname route`,builder:O,handler:async d=>s({command:`network routes hostname edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
20
|
+
Updates a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the hostname route.`}).option(`hostname`,{type:`string`,description:`The hostname of the route.`}).option(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const k={command:`edit <hostname-route-id>`,describe:`Update hostname route`,builder:O,handler:async d=>s({command:`network routes hostname edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network routes hostname edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/routes/hostname/${d[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(d[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(d[`hostname-route-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.routes.hostname.edit({...e,account_id:f,hostname_route_id:d[`hostname-route-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),hostname:u(d.hostname,`hostname`,`text`),tunnel_id:u(d[`tunnel-id`],`tunnel-id`,`text`)});i(await o(`Updating`,async()=>s.network.routes.hostname.edit({...p,account_id:f,hostname_route_id:d[`hostname-route-id`]})),{successLabel:`Updated`})})};function A(e){return e.usage(`$0 network routes hostname get <hostname-route-id>
|
|
21
21
|
|
|
22
|
-
Get a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <hostname-route-id>`,describe:`Get hostname route`,builder:A,handler:async c=>s({command:`network routes hostname get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
22
|
+
Get a hostname route.`).positional(`hostname-route-id`,{type:`string`,description:`The hostname route ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <hostname-route-id>`,describe:`Get hostname route`,builder:A,handler:async c=>s({command:`network routes hostname get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network routes hostname get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/routes/hostname/${c[`hostname-route-id`]==null?`<hostname-route-id>`:encodeURIComponent(String(c[`hostname-route-id`]))}`,pathParams:{"hostname-route-id":String(c[`hostname-route-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.network.routes.hostname.get({account_id:l,hostname_route_id:c[`hostname-route-id`]})),{successLabel:`Loaded`})})};function M(e){return e.usage(`$0 network routes hostname list
|
|
23
23
|
|
|
24
|
-
Lists and filters hostname routes in an account.`).option(`id`,{type:`string`,description:`The hostname route ID.`}).option(`hostname`,{type:`string`,description:`If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.`}).option(`tunnel-id`,{type:`string`,description:`If set, only list hostname routes that point to a specific tunnel.`}).option(`comment`,{type:`string`,description:`If set, only list hostname routes with the given comment.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only return deleted hostname routes. If `false`, exclude deleted hostname routes."}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List hostname routes`,builder:M,handler:async c=>s({command:`network routes hostname list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,hostname:c.hostname,tunnel_id:c[`tunnel-id`],comment:c.comment,existed_at:c[`existed-at`],is_deleted:c[`is-deleted`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes hostname list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
24
|
+
Lists and filters hostname routes in an account.`).option(`id`,{type:`string`,description:`The hostname route ID.`}).option(`hostname`,{type:`string`,description:`If set, only list hostname routes that contain a substring of the given value, the filter is case-insensitive.`}).option(`tunnel-id`,{type:`string`,description:`If set, only list hostname routes that point to a specific tunnel.`}).option(`comment`,{type:`string`,description:`If set, only list hostname routes with the given comment.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only return deleted hostname routes. If `false`, exclude deleted hostname routes."}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List hostname routes`,builder:M,handler:async c=>s({command:`network routes hostname list`,classification:{safeFlags:[`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,hostname:c.hostname,tunnel_id:c[`tunnel-id`],comment:c.comment,existed_at:c[`existed-at`],is_deleted:c[`is-deleted`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network routes hostname list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/routes/hostname`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.hostname.list({account_id:u,...s})),{successLabel:`Loaded`})})},P={command:`hostname`,describe:`Operations for routes.hostname`,builder:e=>e.command(T).command(D).command(k).command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 network routes resolve <ip>
|
|
25
25
|
|
|
26
|
-
Fetches routes that contain the given IP address.`).positional(`ip`,{type:`string`,description:`Ip`,demandOption:!0}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`default-virtual-network-fallback`,{type:`boolean`,description:`When the virtual_network_id parameter is not provided the request filter will default search routes that are in the default virtual network for the account. If this parameter is set to false, the search will include routes that do not have a virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`resolve <ip>`,describe:`Get tunnel route by IP`,builder:F,handler:async c=>s({command:`network routes resolve`,classification:{safeFlags:[`default-virtual-network-fallback`,`dry-run`]}},c,async()=>{let s={virtual_network_id:c[`virtual-network-id`],default_virtual_network_fallback:c[`default-virtual-network-fallback`]};if(c.dryRun){a({command:`cf network routes resolve`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
26
|
+
Fetches routes that contain the given IP address.`).positional(`ip`,{type:`string`,description:`Ip`,demandOption:!0}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`default-virtual-network-fallback`,{type:`boolean`,description:`When the virtual_network_id parameter is not provided the request filter will default search routes that are in the default virtual network for the account. If this parameter is set to false, the search will include routes that do not have a virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`resolve <ip>`,describe:`Get tunnel route by IP`,builder:F,handler:async c=>s({command:`network routes resolve`,classification:{safeFlags:[`default-virtual-network-fallback`,`dry-run`]}},c,async()=>{let s={virtual_network_id:c[`virtual-network-id`],default_virtual_network_fallback:c[`default-virtual-network-fallback`]};if(c.dryRun){a({command:`cf network routes resolve`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/routes/ip/${c.ip==null?`<ip>`:encodeURIComponent(String(c.ip))}`,pathParams:{ip:String(c.ip??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.network.routes.resolve({account_id:u,ip:c.ip,...s})),{successLabel:`Loaded`})})},L={command:`routes`,describe:`Operations for routes`,builder:e=>e.command(I).command(C).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function R(e){return e.usage(`$0 network subnets cloudflare-source edit <address-family>
|
|
27
27
|
|
|
28
|
-
Updates the Cloudflare Source subnet of the given address family`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`edit <address-family>`,describe:`Update Cloudflare Source Subnet`,builder:R,handler:async d=>s({command:`network subnets cloudflare-source edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets cloudflare-source edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
28
|
+
Updates the Cloudflare Source subnet of the given address family`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`edit <address-family>`,describe:`Update Cloudflare Source Subnet`,builder:R,handler:async d=>s({command:`network subnets cloudflare-source edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets cloudflare-source edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/cloudflare_source/${d[`address-family`]==null?`<address-family>`:encodeURIComponent(String(d[`address-family`]))}`,pathParams:{"address-family":String(d[`address-family`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.subnets.cloudflareSource.edit({...e,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.cloudflareSource.edit({...p,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`})})},z={command:`cloudflare-source`,describe:`Operations for subnets.cloudflare-source`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function B(e){return e.usage(`$0 network subnets initial-resolved-ip edit <address-family>
|
|
29
29
|
|
|
30
|
-
Updates the CIDR for the account's default Initial Resolved IP Subnet of the given address family. The new CIDR must not conflict with existing private routes in the account.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const V={command:`edit <address-family>`,describe:`Update Initial Resolved IP Subnet`,builder:B,handler:async d=>s({command:`network subnets initial-resolved-ip edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets initial-resolved-ip edit`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
30
|
+
Updates the CIDR for the account's default Initial Resolved IP Subnet of the given address family. The new CIDR must not conflict with existing private routes in the account.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const V={command:`edit <address-family>`,describe:`Update Initial Resolved IP Subnet`,builder:B,handler:async d=>s({command:`network subnets initial-resolved-ip edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets initial-resolved-ip edit`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${d[`address-family`]==null?`<address-family>`:encodeURIComponent(String(d[`address-family`]))}`,pathParams:{"address-family":String(d[`address-family`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.subnets.initialResolvedIp.edit({...e,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.initialResolvedIp.edit({...p,account_id:f,address_family:d[`address-family`]})),{successLabel:`Updated`})})};function H(e){return e.usage(`$0 network subnets initial-resolved-ip get <address-family>
|
|
31
31
|
|
|
32
|
-
Returns the account's default Initial Resolved IP Subnet for the given address family.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <address-family>`,describe:`Get Initial Resolved IP Subnet`,builder:H,handler:async c=>s({command:`network subnets initial-resolved-ip get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets initial-resolved-ip get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
32
|
+
Returns the account's default Initial Resolved IP Subnet for the given address family.`).positional(`address-family`,{type:`string`,description:"IP address family, either `v4` (IPv4) or `v6` (IPv6)",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <address-family>`,describe:`Get Initial Resolved IP Subnet`,builder:H,handler:async c=>s({command:`network subnets initial-resolved-ip get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets initial-resolved-ip get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/initial_resolved_ip/${c[`address-family`]==null?`<address-family>`:encodeURIComponent(String(c[`address-family`]))}`,pathParams:{"address-family":String(c[`address-family`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.network.subnets.initialResolvedIp.get({account_id:l,address_family:c[`address-family`]})),{successLabel:`Loaded`})})},W={command:`initial-resolved-ip`,describe:`Operations for subnets.initial-resolved-ip`,builder:e=>e.command(V).command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function G(e){return e.usage(`$0 network subnets list
|
|
33
33
|
|
|
34
|
-
Lists and filters subnets in an account.`).option(`name`,{type:`string`,description:`If set, only list subnets with the given name`}).option(`comment`,{type:`string`,description:`If set, only list subnets with the given comment.`}).option(`network`,{type:`string`,description:`If set, only list the subnet whose network exactly matches the given CIDR.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`address-family`,{type:`string`,description:"If set, only include subnets in the given address family - `v4` or `v6`",choices:[`v4`,`v6`]}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include default subnets. If `false`, exclude default subnets subnets. If not set, all subnets will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted subnets. If `false`, exclude deleted subnets. If not set, all subnets will be included."}).option(`sort-order`,{type:`string`,description:"Sort order of the results. `asc` means oldest to newest, `desc` means newest to oldest. If not set, they will not be in any particular order.",choices:[`asc`,`desc`]}).option(`subnet-types`,{type:`string`,description:`If set, the types of subnets to include, separated by comma.`,choices:[`cloudflare_source`,`initial_resolved_ip`,`warp`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`list`,describe:`List Subnets`,builder:p(G),handler:async c=>s({command:`network subnets list`,classification:{safeFlags:[`address-family`,`is-default-network`,`is-deleted`,`sort-order`,`subnet-types`,`dry-run`]}},c,async()=>{let s={name:c.name,comment:c.comment,network:c.network,existed_at:c[`existed-at`],address_family:c[`address-family`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`],sort_order:c[`sort-order`],subnet_types:c[`subnet-types`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network subnets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
34
|
+
Lists and filters subnets in an account.`).option(`name`,{type:`string`,description:`If set, only list subnets with the given name`}).option(`comment`,{type:`string`,description:`If set, only list subnets with the given comment.`}).option(`network`,{type:`string`,description:`If set, only list the subnet whose network exactly matches the given CIDR.`}).option(`existed-at`,{type:`string`,description:`If provided, include only resources that were created (and not deleted) before this time. URL encoded.`}).option(`address-family`,{type:`string`,description:"If set, only include subnets in the given address family - `v4` or `v6`",choices:[`v4`,`v6`]}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include default subnets. If `false`, exclude default subnets subnets. If not set, all subnets will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted subnets. If `false`, exclude deleted subnets. If not set, all subnets will be included."}).option(`sort-order`,{type:`string`,description:"Sort order of the results. `asc` means oldest to newest, `desc` means newest to oldest. If not set, they will not be in any particular order.",choices:[`asc`,`desc`]}).option(`subnet-types`,{type:`string`,description:`If set, the types of subnets to include, separated by comma.`,choices:[`cloudflare_source`,`initial_resolved_ip`,`warp`]}).option(`per-page`,{type:`number`,description:`Number of results to display.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const K={command:`list`,describe:`List Subnets`,builder:p(G),handler:async c=>s({command:`network subnets list`,classification:{safeFlags:[`address-family`,`is-default-network`,`is-deleted`,`sort-order`,`subnet-types`,`dry-run`]}},c,async()=>{let s={name:c.name,comment:c.comment,network:c.network,existed_at:c[`existed-at`],address_family:c[`address-family`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`],sort_order:c[`sort-order`],subnet_types:c[`subnet-types`],per_page:c[`per-page`],page:c.page};if(c.dryRun){a({command:`cf network subnets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.network.subnets.list({account_id:u,...s})),{successLabel:`Loaded`})})};function q(e){return e.usage("$0 network subnets warp create\n\nCreate a WARP IP assignment subnet. Currently, only IPv4 subnets can be created. **Network constraints:** - The network must be within one of the following private IP ranges: - `10.0.0.0/8` (RFC 1918) - `172.16.0.0/12` (RFC 1918) - `192.168.0.0/16` (RFC 1918) - `100.64.0.0/10` (RFC 6598 - CGNAT) - The subnet must have a prefix length of `/24` or larger (e.g., `/16`, `/20`, `/24` are valid; `/25`, `/28` are not)").option(`comment`,{type:`string`,description:`An optional description of the subnet.`,default:``}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this is the default subnet for the account. There can only be one default subnet per account.",default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const J={command:`create`,describe:`Create WARP IP subnet`,builder:q,handler:async f=>s({command:`network subnets warp create`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network subnets warp create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/warp`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`),network:u(f.network,`network`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.subnets.warp.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`A user-friendly name for the subnet.`)),f.network===void 0&&(f.network=await d(`network`,`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`));let m=l({comment:u(f.comment,`comment`,`text`),is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`),network:u(f.network,`network`,`text`)});i(await o(`Creating`,async()=>s.network.subnets.warp.create({...m,account_id:p})),{successLabel:`Created`})})};function Y(e){return e.usage(`$0 network subnets warp delete <subnet-id>
|
|
35
35
|
|
|
36
|
-
Delete a WARP IP assignment subnet. This operation is idempotent - deleting an already-deleted or non-existent subnet will return success with a null result.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const X={command:`delete <subnet-id>`,describe:`Delete WARP IP subnet`,builder:Y,handler:async c=>s({command:`network subnets warp delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
37
|
-
`);return}i(await o(`Deleting`,async()=>s.network.subnets.warp.delete({account_id:l,subnet_id:c[`subnet-id`]})),{successLabel:`Deleted`})})};function Z(e){return e.usage("$0 network subnets warp edit <subnet-id>\n\nUpdates a WARP IP assignment subnet. **Update constraints:** - The `network` field cannot be modified for WARP subnets. Only `name`, `comment`, and `is_default_network` can be updated. - IPv6 subnets cannot be updated").positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this is the default subnet for the account. There can only be one default subnet per account."}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`edit <subnet-id>`,describe:`Update WARP IP subnet`,builder:Z,handler:async d=>s({command:`network subnets warp edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets warp edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
36
|
+
Delete a WARP IP assignment subnet. This operation is idempotent - deleting an already-deleted or non-existent subnet will return success with a null result.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const X={command:`delete <subnet-id>`,describe:`Delete WARP IP subnet`,builder:Y,handler:async c=>s({command:`network subnets warp delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/warp/${c[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(c[`subnet-id`]))}`,pathParams:{"subnet-id":String(c[`subnet-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a WARP IP subnet.`})){process.stderr.write(`Aborted.
|
|
37
|
+
`);return}i(await o(`Deleting`,async()=>s.network.subnets.warp.delete({account_id:l,subnet_id:c[`subnet-id`]})),{successLabel:`Deleted`})})};function Z(e){return e.usage("$0 network subnets warp edit <subnet-id>\n\nUpdates a WARP IP assignment subnet. **Update constraints:** - The `network` field cannot be modified for WARP subnets. Only `name`, `comment`, and `is_default_network` can be updated. - IPv6 subnets cannot be updated").positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`comment`,{type:`string`,description:`An optional description of the subnet.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this is the default subnet for the account. There can only be one default subnet per account."}).option(`name`,{type:`string`,description:`A user-friendly name for the subnet.`}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range defining the subnet, in CIDR notation.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`edit <subnet-id>`,describe:`Update WARP IP subnet`,builder:Z,handler:async d=>s({command:`network subnets warp edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network subnets warp edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/warp/${d[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(d[`subnet-id`]))}`,pathParams:{"subnet-id":String(d[`subnet-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.subnets.warp.edit({...e,account_id:f,subnet_id:d[`subnet-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`),network:u(d.network,`network`,`text`)});i(await o(`Updating`,async()=>s.network.subnets.warp.edit({...p,account_id:f,subnet_id:d[`subnet-id`]})),{successLabel:`Updated`})})};function ne(e){return e.usage(`$0 network subnets warp get <subnet-id>
|
|
38
38
|
|
|
39
|
-
Get a WARP IP assignment subnet.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <subnet-id>`,describe:`Get WARP IP subnet`,builder:ne,handler:async c=>s({command:`network subnets warp get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
39
|
+
Get a WARP IP assignment subnet.`).positional(`subnet-id`,{type:`string`,description:`The UUID of the subnet.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <subnet-id>`,describe:`Get WARP IP subnet`,builder:ne,handler:async c=>s({command:`network subnets warp get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network subnets warp get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/zerotrust/subnets/warp/${c[`subnet-id`]==null?`<subnet-id>`:encodeURIComponent(String(c[`subnet-id`]))}`,pathParams:{"subnet-id":String(c[`subnet-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.network.subnets.warp.get({account_id:l,subnet_id:c[`subnet-id`]})),{successLabel:`Loaded`})})},ie={command:`warp`,describe:`Operations for subnets.warp`,builder:e=>e.command(J).command(X).command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ae={command:`subnets`,describe:`Operations for subnets`,builder:e=>e.command(K).command(z).command(W).command(ie).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function oe(e){return e.usage(`$0 network virtual-networks create
|
|
40
40
|
|
|
41
|
-
Adds a new virtual network to an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account.",default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const $={command:`create`,describe:`Create a virtual network`,builder:oe,handler:async f=>s({command:`network virtual-networks create`,classification:{safeFlags:[`is-default`,`is-default-network`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network virtual-networks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
41
|
+
Adds a new virtual network to an account.`).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account.",default:!1}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const $={command:`create`,describe:`Create a virtual network`,builder:oe,handler:async f=>s({command:`network virtual-networks create`,classification:{safeFlags:[`is-default`,`is-default-network`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network virtual-networks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),is_default:f[`is-default`],is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`)}):c(f.body)});return}let s=await t(f),p=f.local?e:await r();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.virtualNetworks.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`A user-friendly name for the virtual network.`));let m=l({comment:u(f.comment,`comment`,`text`),is_default:f[`is-default`],is_default_network:f[`is-default-network`],name:u(f.name,`name`,`text`)});i(await o(`Creating`,async()=>s.network.virtualNetworks.create({...m,account_id:p})),{successLabel:`Created`})})};function se(e){return e.usage(`$0 network virtual-networks delete <virtual-network-id>
|
|
42
42
|
|
|
43
|
-
Deletes an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ce={command:`delete <virtual-network-id>`,describe:`Delete a virtual network`,builder:se,handler:async c=>s({command:`network virtual-networks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
43
|
+
Deletes an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ce={command:`delete <virtual-network-id>`,describe:`Delete a virtual network`,builder:se,handler:async c=>s({command:`network virtual-networks delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/virtual_networks/${c[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(c[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(c[`virtual-network-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();if(c.accountId=l,!await f({force:!!c.force,message:`This operation permanently deletes a virtual network.`})){process.stderr.write(`Aborted.
|
|
44
44
|
`);return}i(await o(`Deleting`,async()=>s.network.virtualNetworks.delete({account_id:l,virtual_network_id:c[`virtual-network-id`]})),{successLabel:`Deleted`})})};function le(e){return e.usage(`$0 network virtual-networks edit <virtual-network-id>
|
|
45
45
|
|
|
46
|
-
Updates an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`edit <virtual-network-id>`,describe:`Update a virtual network`,builder:le,handler:async d=>s({command:`network virtual-networks edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network virtual-networks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
46
|
+
Updates an existing virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ue={command:`edit <virtual-network-id>`,describe:`Update a virtual network`,builder:le,handler:async d=>s({command:`network virtual-networks edit`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf network virtual-networks edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/virtual_networks/${d[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(d[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(d[`virtual-network-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`)}):c(d.body)});return}let s=await t(d),f=d.local?e:await r();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.network.virtualNetworks.edit({...e,account_id:f,virtual_network_id:d[`virtual-network-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),is_default_network:d[`is-default-network`],name:u(d.name,`name`,`text`)});i(await o(`Updating`,async()=>s.network.virtualNetworks.edit({...p,account_id:f,virtual_network_id:d[`virtual-network-id`]})),{successLabel:`Updated`})})};function de(e){return e.usage(`$0 network virtual-networks get <virtual-network-id>
|
|
47
47
|
|
|
48
|
-
Get a virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <virtual-network-id>`,describe:`Get a virtual network`,builder:de,handler:async c=>s({command:`network virtual-networks get`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
48
|
+
Get a virtual network.`).positional(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Optional remark describing the virtual network.`,default:``}).option(`is-default-network`,{type:`boolean`,description:"If `true`, this virtual network is the default for the account."}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <virtual-network-id>`,describe:`Get a virtual network`,builder:de,handler:async c=>s({command:`network virtual-networks get`,classification:{safeFlags:[`is-default-network`,`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf network virtual-networks get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/virtual_networks/${c[`virtual-network-id`]==null?`<virtual-network-id>`:encodeURIComponent(String(c[`virtual-network-id`]))}`,pathParams:{"virtual-network-id":String(c[`virtual-network-id`]??``)},bodyKind:`none`});return}let s=await t(c),l=c.local?e:await r();c.accountId=l,i(await o(`Loading`,async()=>s.network.virtualNetworks.get({account_id:l,virtual_network_id:c[`virtual-network-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 network virtual-networks list
|
|
49
49
|
|
|
50
|
-
Lists and filters virtual networks in an account.`).option(`id`,{type:`string`,description:`UUID of the virtual network.`}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`is-default`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted virtual networks. If `false`, exclude deleted virtual networks. If empty, all virtual networks will be included."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List virtual networks`,builder:pe,handler:async c=>s({command:`network virtual-networks list`,classification:{safeFlags:[`is-default`,`is-default-network`,`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,is_default:c[`is-default`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`]};if(c.dryRun){a({command:`cf network virtual-networks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
50
|
+
Lists and filters virtual networks in an account.`).option(`id`,{type:`string`,description:`UUID of the virtual network.`}).option(`name`,{type:`string`,description:`A user-friendly name for the virtual network.`}).option(`is-default`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-default-network`,{type:`boolean`,description:"If `true`, only include the default virtual network. If `false`, exclude the default virtual network. If empty, all virtual networks will be included."}).option(`is-deleted`,{type:`boolean`,description:"If `true`, only include deleted virtual networks. If `false`, exclude deleted virtual networks. If empty, all virtual networks will be included."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const me={command:`list`,describe:`List virtual networks`,builder:pe,handler:async c=>s({command:`network virtual-networks list`,classification:{safeFlags:[`is-default`,`is-default-network`,`is-deleted`,`dry-run`]}},c,async()=>{let s={id:c.id,name:c.name,is_default:c[`is-default`],is_default_network:c[`is-default-network`],is_deleted:c[`is-deleted`]};if(c.dryRun){a({command:`cf network virtual-networks list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/teamnet/virtual_networks`,pathParams:{},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.network.virtualNetworks.list({account_id:u,...s})),{successLabel:`Loaded`})})},he={command:`virtual-networks`,describe:`Operations for virtual-networks`,builder:e=>e.command($).command(ce).command(ue).command(fe).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ge={command:`network`,describe:`network`,builder:e=>e.command(L).command(ae).command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ge as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./version-
|
|
2
|
+
import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./version-oN1bmOgM.mjs";import{t as r}from"./session-B6mFkaVZ.mjs";import{a as i,n as a,t as o}from"./cf-DfQfIu3q.mjs";import{M as s,n as c}from"./interactive-D80kbTap.mjs";import{i as l,o as u}from"./dist-Cpb7_h4N.mjs";import{n as d}from"./context-CquYYyS3.mjs";const f={debug:(...e)=>{process.env.DEBUG&&console.error(...e)},info:(...e)=>console.error(...e),log:(...e)=>console.error(...e),warn:(...e)=>console.error(...e),error:(...e)=>console.error(...e)};var p=class extends Error{};async function m(n){if(c())throw new p;r(t);let i=await u({message:n});if(s(i)||typeof i!=`string`)throw new e(130,{cancelled:!0});return i}async function h(n,i){if(c())throw new p;r(t);let a=await l({message:n,options:i.choices.map(({title:e,value:t})=>({label:e,value:t}))});if(s(a)||typeof a!=`string`)throw new e(130,{cancelled:!0});return f.log(`To have cf automatically use this account for future commands in this project, you can update your \`cloudflare.config.ts\`:
|
|
3
3
|
|
|
4
4
|
import { defineConfig } from "cf/config";
|
|
5
5
|
|
|
6
6
|
export default defineConfig({
|
|
7
7
|
accountId: "${a}",
|
|
8
8
|
});
|
|
9
|
-
`),a}const g=o({logger:f,userAgent:n,prompt:m,select:h,isNoDefaultValueProvidedError:e=>e instanceof p});async function _(e,t){return g.getOrSelectAccountId({account_id:e,compliance_region:t?.complianceRegion??await
|
|
9
|
+
`),a}const g=o({logger:f,userAgent:n,prompt:m,select:h,isNoDefaultValueProvidedError:e=>e instanceof p});async function _(e,t){return g.getOrSelectAccountId({account_id:e,compliance_region:t?.complianceRegion??await d(t)})}function v(){return g.getActiveAccountId({})}async function y(){return g.fetchAllAccounts({compliance_region:await d()},{throwOnEmpty:!1})}async function b(e){if(e?.scopes&&!i(e.scopes))throw Error(`One or more of the requested scopes are not valid cf OAuth scopes.`);return g.login({compliance_region:await d()},{browser:e?.browser??!0,device:e?.device??!0,...e?.scopes&&{scopes:e.scopes},...e?.profile&&{profile:e.profile}})}function x(e){return g.logout(e)}function S(e){g.setProfile(e)}function C(){return g.getActiveProfile()}function w(){return a({logger:f})}function T(e,t=process.cwd()){let n=w().resolve({profile:e,cwd:t});return S(n),n}function E(){return g.getOAuthTokenFromLocalState()}function D(){return g.readAuthCredentials()?.oauth_token!==void 0}function O(){return g.readAuthCredentials()}function k(){return g.getCredentialStore().path()}export{_ as a,D as c,O as d,T as f,k as i,b as l,v as n,w as o,S as p,C as r,E as s,y as t,x as u};
|