cf 1.0.0-beta.21 → 1.0.0-beta.23
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/_meta/commands.json +5085 -4936
- package/dist/_meta/schemas.json +3053 -3057
- package/dist/{abuse-reports-CbUAnJxd.mjs → abuse-reports-SaxhQy6n.mjs} +1 -1
- package/dist/{access-C-78DlxL.mjs → access-BI_7K9ye.mjs} +1 -1
- package/dist/{accounts-DEqQPxCz.mjs → accounts-yCqYkAyG.mjs} +50 -52
- package/dist/{acm-jmhCq3Yh.mjs → acm-Cyvj0TLt.mjs} +1 -1
- package/dist/{addressing-BeYFpQvC.mjs → addressing-CPjDXCGE.mjs} +1 -1
- package/dist/agent-context-Dtyy4aKL.mjs +2 -0
- package/dist/{agent-memory-Chlovb7j.mjs → agent-memory-EoP2Uwo7.mjs} +1 -1
- package/dist/{ai-BndH3HYN.mjs → ai-DU5T7Rw7.mjs} +1 -1
- package/dist/{ai-audit-BUJ-70O_.mjs → ai-audit-DVT8qGLn.mjs} +1 -1
- package/dist/{ai-gateway-CCk7VKhL.mjs → ai-gateway-BYtptiIM.mjs} +1 -1
- package/dist/{ai-search-BexET_wp.mjs → ai-search-CJJ5XZTd.mjs} +1 -1
- package/dist/{ai-security-D4MxRlxX.mjs → ai-security-CidIWQ2m.mjs} +1 -1
- package/dist/{alerting-rw8Oi3x7.mjs → alerting-CVatzxaS.mjs} +1 -1
- package/dist/{analytics-q-guNEOK.mjs → analytics-BWJAOVxo.mjs} +1 -1
- package/dist/{analytics-engine-Bk7dQLcm.mjs → analytics-engine-CZgKAEo0.mjs} +1 -1
- package/dist/api-X3wKppsT.mjs +3 -0
- package/dist/{api-security-BDc6gkf1.mjs → api-security-CAeFfkOp.mjs} +1 -1
- package/dist/{argo-CnLIqm0i.mjs → argo-YKMl_X-Q.mjs} +1 -1
- package/dist/{artifacts-Cil33dzV.mjs → artifacts-CrWK_jdk.mjs} +1 -1
- package/dist/{audit-logs--E2Eclb7.mjs → audit-logs-C7Z4o6lL.mjs} +1 -1
- package/dist/{auth-BtZmY6sE.mjs → auth-0yg8UHy1.mjs} +1 -1
- package/dist/auth-DCnxMUAZ.mjs +2 -0
- package/dist/{auth-BcNLQji1.mjs → auth-DkPhAgZv.mjs} +1 -1
- package/dist/{auth-token-aF5AVLlH.mjs → auth-token-C-ushV4K.mjs} +1 -1
- package/dist/{autoconfig-Dbp6J25P.mjs → autoconfig-CwWsgTP2.mjs} +12 -12
- package/dist/{basin-catalog-dnVyzopm.mjs → basin-catalog-Df0BLUfb.mjs} +1 -1
- package/dist/{billing-Fqp3jB2V.mjs → billing-C7qD2cBJ.mjs} +1 -1
- package/dist/blocks-hVx18MUM.mjs +5 -0
- package/dist/body-parser-BKcZS9iJ.mjs +2 -0
- package/dist/{bot-management-SEDgo1Xg.mjs → bot-management-Dv2tluEZ.mjs} +1 -1
- package/dist/{botnet-feed-DPqR4M0Y.mjs → botnet-feed-DrIY4gpG.mjs} +1 -1
- package/dist/{brand-protection-B8vwKfM9.mjs → brand-protection-of9uwStG.mjs} +1 -1
- package/dist/{browser-run-BybYDq3I.mjs → browser-run-CbMV-Pf5.mjs} +1 -1
- package/dist/build-DHPdqjpj.mjs +2 -0
- package/dist/{build-CWlpWVBf.mjs → build-Yf5bvUk2.mjs} +1 -1
- package/dist/{builds-CvtOG-Gk.mjs → builds-DQrlz2-K.mjs} +1 -1
- package/dist/{cache-Bme_d2Wx.mjs → cache-suoMuQMh.mjs} +1 -1
- package/dist/{cf-fIBhEAxU.mjs → cf-CInFH4Ng.mjs} +1 -1
- package/dist/{chunk-XVBBSNW2-DfMyGS-l.mjs → chunk-3PJ54H4K-C8sxQzhB.mjs} +25 -25
- package/dist/{chunk-DSGVRFIS-DHC6NOIj.mjs → chunk-DSGVRFIS-CP2xC0bc.mjs} +1 -1
- package/dist/{cli-CIKDqm-u.mjs → cli-BjAkPFKt.mjs} +1 -1
- package/dist/{client-side-security-ZQeRoo1t.mjs → client-side-security-lh4tvRH8.mjs} +1 -1
- package/dist/{cloud-connector-BeunZlNV.mjs → cloud-connector-C65g5ddh.mjs} +1 -1
- package/dist/{cloudflared-DbzoIouQ.mjs → cloudflared-FEg1GxHT.mjs} +1 -1
- package/dist/cloudforce-one-C2K8Sbji.mjs +316 -0
- package/dist/{command-C9CNvZi_.mjs → command-BHJu931_.mjs} +1 -1
- package/dist/{command-orlUsdgf.mjs → command-BaIY4UuC.mjs} +1 -1
- package/dist/{command-C6kE7BU0.mjs → command-BfoLlrr1.mjs} +1 -1
- package/dist/{command-CkZkTjIj.mjs → command-BqEoltQG.mjs} +1 -1
- package/dist/{command-B3uWlw57.mjs → command-C2ZXXZI4.mjs} +1 -1
- package/dist/{command-BGRucANI.mjs → command-C5465_vZ.mjs} +1 -1
- package/dist/{command-CzWWQv8j.mjs → command-CBQp3Znu.mjs} +1 -1
- package/dist/{command-CtlD6MEi.mjs → command-CKXrXY0q.mjs} +1 -1
- package/dist/{command-CQ5qHE7n.mjs → command-Cby3gjqh.mjs} +1 -1
- package/dist/{command-prWMAJbg.mjs → command-CszTdUQV.mjs} +1 -1
- package/dist/{command-CqKRlHGv.mjs → command-D3E7d8E7.mjs} +1 -1
- package/dist/{command-DkwmylF2.mjs → command-DCJgoFz9.mjs} +1 -1
- package/dist/{command-DWWuXQV8.mjs → command-DRBtP4R8.mjs} +1 -1
- package/dist/{command-rUCxlpQI.mjs → command-DrdxR1tJ.mjs} +1 -1
- package/dist/{completions-2Otv0HMd.mjs → completions-DIIrktem.mjs} +1 -1
- package/dist/{connector-interrupts-Dfhxupmg.mjs → connector-interrupts-B4xZTu7K.mjs} +1 -1
- package/dist/{connector-telemetry-events-CLVpDTIa.mjs → connector-telemetry-events-DtTO6KCB.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-E_1tmNmQ.mjs → connector-telemetry-snapshots-BS1Cq8v_.mjs} +1 -1
- package/dist/{connectors-ChJpQFSl.mjs → connectors-CUywNbTu.mjs} +1 -1
- package/dist/{containers-Cj5-9nUg.mjs → containers-CQxEk5xO.mjs} +2 -2
- package/dist/containers-DCL31jYE.mjs +380 -0
- package/dist/{content-scan-CIA_9PV8.mjs → content-scan-6BGlT-em.mjs} +1 -1
- package/dist/{context-DVh8Wyfs.mjs → context-DoGlohS-.mjs} +1 -1
- package/dist/{cps-hJkqdsHx.mjs → cps-BoQ1alPM.mjs} +1 -1
- package/dist/create-BtmuVqVL.mjs +2 -0
- package/dist/{csam-scanner-cCVO3lNF.mjs → csam-scanner-OFnvPsqP.mjs} +1 -1
- package/dist/{custom-csrs-BrTWUZ0c.mjs → custom-csrs-BT-kjyPt.mjs} +1 -1
- package/dist/{custom-hostnames-C4ft77oC.mjs → custom-hostnames-ItOUZwKc.mjs} +1 -1
- package/dist/{custom-nameservers-BWfrZhD1.mjs → custom-nameservers-BZ1SzRQI.mjs} +1 -1
- package/dist/{custom-pages-DqTMKtRc.mjs → custom-pages-rIzNbxrh.mjs} +1 -1
- package/dist/{d1-B58AA9PA.mjs → d1-DtEeX2ua.mjs} +4 -4
- package/dist/{delegate-D7yYckA4.mjs → delegate-3IgxBeFH.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-CEROLAdh.mjs → deploy-CvIiOhGj.mjs} +1 -1
- package/dist/{deploy-context-Do89WayB.mjs → deploy-context-CCahKKFs.mjs} +1 -1
- package/dist/{deploy-input-DyMuMsi5.mjs → deploy-input-BusFZFqu.mjs} +1 -1
- package/dist/{dev-BaFS7kOM.mjs → dev-2hNwTy0s.mjs} +1 -1
- package/dist/{diagnostics-4gfYj7Pf.mjs → diagnostics-Di6xJHuC.mjs} +1 -1
- package/dist/dist-D5YYi2LO.mjs +453 -0
- package/dist/{dls-ClWVxTBg.mjs → dls-CAlQiQv4.mjs} +1 -1
- package/dist/{dns-CML-wxIt.mjs → dns-BzxLC4D1.mjs} +1 -1
- package/dist/{dns-firewall-CL0b3dJ1.mjs → dns-firewall-CHVL95X_.mjs} +1 -1
- package/dist/{docs-BeYBHwUN.mjs → docs-SWvG8lKe.mjs} +1 -1
- package/dist/{dotenv-CmPRiXmU.mjs → dotenv-qsoPELMm.mjs} +1 -1
- package/dist/{durable-objects-uZECeq_f.mjs → durable-objects-DZl4seSi.mjs} +1 -1
- package/dist/{email-auth-CCNW798I.mjs → email-auth-hHJQmtYR.mjs} +1 -1
- package/dist/{email-domains-1rD1d84O.mjs → email-domains-BBFPOLQx.mjs} +1 -1
- package/dist/{email-routing-CYv-LrbV.mjs → email-routing-Cimk4lg2.mjs} +1 -1
- package/dist/{email-security-CWEUYPYo.mjs → email-security-DiNFIpmg.mjs} +1 -1
- package/dist/{email-sending-DHSzCfJx.mjs → email-sending-yIqoikwn.mjs} +3 -3
- package/dist/{error-sanitization-DWJ5ka7h.mjs → error-sanitization-ahuAGEjT.mjs} +1 -1
- package/dist/error-sanitization-rodO1WCL.mjs +2 -0
- package/dist/{errors-ol9sMqSe.mjs → errors-d_Ld5w3d.mjs} +5 -5
- package/dist/{field-extractors-CuBM_uO4.mjs → field-extractors-CiuZnMX2.mjs} +1 -1
- package/dist/{firewall-SMIUSypF.mjs → firewall-B8QK0M1Y.mjs} +1 -1
- package/dist/{flagship-D3v6iDdw.mjs → flagship-Dh0-PZgv.mjs} +1 -1
- package/dist/{fraud-B2f7O15X.mjs → fraud-DDebasT8.mjs} +1 -1
- package/dist/get-Be821dio.mjs +2 -0
- package/dist/{google-tag-gateway-BwOc62Gy.mjs → google-tag-gateway-BPrh4DbT.mjs} +1 -1
- package/dist/{healthchecks-BQXHnihB.mjs → healthchecks-CF8SJ-wN.mjs} +1 -1
- package/dist/{hyperdrive-Bd6Yfje3.mjs → hyperdrive-B9uPSMiW.mjs} +1 -1
- package/dist/{iam-qJPI1_aZ.mjs → iam-g9EBjHMK.mjs} +1 -1
- package/dist/{images-goHZJOxy.mjs → images-BqSlZF88.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-CVx0Ya1E.mjs → init-CIfT7Qx1.mjs} +1 -1
- package/dist/{intel-CwiqwJI9.mjs → intel-D8nT11Y4.mjs} +1 -1
- package/dist/{interactive-D4E8PdaW.mjs → interactive-DOWEcR6_.mjs} +8 -4
- package/dist/{internal-5cnlw9mH.mjs → internal-C7zUQ4fS.mjs} +1 -1
- package/dist/{ips-KBxmXhvO.mjs → ips-DwrIBecV.mjs} +1 -1
- package/dist/{k2-KhIP5NFT.mjs → k2-7r63P37v.mjs} +1 -1
- package/dist/{kv-CCem2sEY.mjs → kv-BQSq0aQ5.mjs} +1 -1
- package/dist/{lazy-command-BMhD5ffF.mjs → lazy-command-JgUZQW-c.mjs} +1 -1
- package/dist/{leaked-credential-checks-BkPZiwE2.mjs → leaked-credential-checks-Bu2NYq31.mjs} +1 -1
- package/dist/{live-BhHzxFna.mjs → live-ZSukf_dI.mjs} +1 -1
- package/dist/{load-balancers-17GBXdju.mjs → load-balancers-CthmhsmC.mjs} +1 -1
- package/dist/local-CxTyXQlK.mjs +2 -0
- package/dist/{local-CSH3UMpD.mjs → local-Y4rIAAtA.mjs} +1 -1
- package/dist/{local-runtime-KOFLRZeZ.mjs → local-runtime-Crs0aOFO.mjs} +1 -1
- package/dist/login-C_gOc9pk.mjs +2 -0
- package/dist/{login-Buhvx6Fi.mjs → login-lXb4Sqs9.mjs} +1 -1
- package/dist/{logpush-BCCUxa4J.mjs → logpush-Mw2VklWj.mjs} +1 -1
- package/dist/{logs-4CwupKRG.mjs → logs-DQrNjo77.mjs} +1 -1
- package/dist/{magic-cloud-networking-Xy6SC-V-.mjs → magic-cloud-networking-D8s1hN3K.mjs} +1 -1
- package/dist/{magic-network-monitoring-B8pRZp2g.mjs → magic-network-monitoring-f0ccLJlt.mjs} +1 -1
- package/dist/{magic-transit-CwfO3OOX.mjs → magic-transit-7WpZJc0a.mjs} +1 -1
- package/dist/{managed-defense-CtFLuvuB.mjs → managed-defense-QLYmbNgC.mjs} +1 -1
- package/dist/{managed-transforms-Hto8OCBS.mjs → managed-transforms-CkaQn7tC.mjs} +1 -1
- package/dist/{mcp-SQ0MAVUJ.mjs → mcp-Di1X9Amj.mjs} +1 -1
- package/dist/{mesh-C8A6tVqA.mjs → mesh-CkvqQb6B.mjs} +1 -1
- package/dist/{migrate-Dufxsb_F.mjs → migrate-KOhIz9fX.mjs} +1 -1
- package/dist/{monetization-CYVaCAe9.mjs → monetization-C9c2OCag.mjs} +1 -1
- package/dist/{network-CJBTdEM3.mjs → network-0PlPsgfJ.mjs} +1 -1
- package/dist/{network-interconnects-CKlNFj3i.mjs → network-interconnects-BeiuYp7F.mjs} +1 -1
- package/dist/{o11y-5x2Q8CWm.mjs → o11y-Ys4wGQJ8.mjs} +1 -1
- package/dist/{oauth-D_A8AcIS.mjs → oauth-BL039mqa.mjs} +1 -1
- package/dist/{oauth-BN6_FpYp.mjs → oauth-BX5dMp7e.mjs} +1 -1
- package/dist/{oauth-clients-qKXg8ZH3.mjs → oauth-clients-DhVG_Upv.mjs} +1 -1
- package/dist/{oauth-scopes-Ct1jDyC5.mjs → oauth-scopes-B1n8hUMj.mjs} +1 -1
- package/dist/{organization-lBQSeqS1.mjs → organization-8ateLjgl.mjs} +1 -1
- package/dist/{organizations-DEX8Er3g.mjs → organizations-DdQAC66Z.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DUsxVGCs.mjs → origin-post-quantum-encryption-D9qT0WUV.mjs} +1 -1
- package/dist/package-C4H_6MHV.mjs +2 -0
- package/dist/{page-rules-BMt6nt03.mjs → page-rules-DlOky6Zl.mjs} +1 -1
- package/dist/{pages-Jxa92ECz.mjs → pages-BcqYjzyx.mjs} +2 -2
- package/dist/{pay-per-crawl-Cv0044CZ.mjs → pay-per-crawl-DtYmYcHH.mjs} +1 -1
- package/dist/{pay-per-use-DGEeG-dC.mjs → pay-per-use-DOUCWPNy.mjs} +1 -1
- package/dist/{pipelines-CEC78A3w.mjs → pipelines-8yHQduBt.mjs} +1 -1
- package/dist/{precursor-Ba0Ejhzt.mjs → precursor-CX7gjIRG.mjs} +1 -1
- package/dist/{previews-DnZbUTym.mjs → previews-WL-CudUP.mjs} +1 -1
- package/dist/{progress-CtGsPOpV.mjs → progress-D2_AF54c.mjs} +1 -1
- package/dist/{prompt-YrI7ltMa.mjs → prompt-BBR19lgj.mjs} +1 -1
- package/dist/{queues-Chq997uj.mjs → queues-BDNnjJ5M.mjs} +1 -1
- package/dist/{r2-BFgZDs-F.mjs → r2-B9b18zom.mjs} +1 -1
- package/dist/{radar-DJdDzLJw.mjs → radar-BCxOSIwx.mjs} +1 -1
- package/dist/{raw-fetch-BE3QgdTE.mjs → raw-fetch-BFcMz5hY.mjs} +1 -1
- package/dist/{ready-Cok0aqke.mjs → ready-C8zZ63yB.mjs} +1 -1
- package/dist/{realtime-BHWWCiKp.mjs → realtime-C8z8iTs4.mjs} +73 -71
- package/dist/{registrar-9Y-1IQ0n.mjs → registrar-BTMp4ivm.mjs} +1 -1
- package/dist/{registrar-sandbox-DTS1kRnb.mjs → registrar-sandbox-C2PG_Alv.mjs} +1 -1
- package/dist/{registry-Bm-GgDC3.mjs → registry-DpNVjLuS.mjs} +1 -1
- package/dist/{reporting-D5RbKQJf.mjs → reporting-BQY6_uXf.mjs} +1 -1
- package/dist/{request-headers-KhW_hy36.mjs → request-headers-_yTB3kAw.mjs} +1 -1
- package/dist/{request-tracers-wxWCjmHo.mjs → request-tracers-Dijdzs6y.mjs} +1 -1
- package/dist/{resource-sharing-BGoaVvJa.mjs → resource-sharing-DYaOk_EC.mjs} +1 -1
- package/dist/{rules-Cd3EjhdF.mjs → rules-TsOBYamD.mjs} +1 -1
- package/dist/{rulesets-Bnz3rSBT.mjs → rulesets-BICRAp0v.mjs} +1 -1
- package/dist/{rum-CK9HEe3O.mjs → rum-wY_8vewy.mjs} +1 -1
- package/dist/{run-DnZGQbq_.mjs → run-C2-1SFrS.mjs} +1 -1
- package/dist/run-C9r-Beel.mjs +2 -0
- package/dist/{schema-flags-BrDlFwLv.mjs → schema-flags-DHP8ll5_.mjs} +1 -1
- package/dist/{scim-UdqaWnOu.mjs → scim-BCB-RVUX.mjs} +1 -1
- package/dist/{secrets-store-Bf5v96LC.mjs → secrets-store-BR-h9nxX.mjs} +3 -3
- package/dist/{security-insights-BAGySlGu.mjs → security-insights-C3pM4_QG.mjs} +1 -1
- package/dist/{security-txt-D0fMmjHs.mjs → security-txt-BYeDQJyf.mjs} +1 -1
- package/dist/{session-6xqrJWXy.mjs → session-CG79ZLE9.mjs} +1 -1
- package/dist/{shared-DYRRG9A-.mjs → shared-Z4B68uro.mjs} +1 -1
- package/dist/{signed-url-Ce0muRem.mjs → signed-url-BWwUnIl-.mjs} +1 -1
- package/dist/{smart-shield-CCy7_M3j.mjs → smart-shield-Dlsh9Xdx.mjs} +1 -1
- package/dist/{snippets-Bc8m3HSV.mjs → snippets-DWTJdzIF.mjs} +1 -1
- package/dist/{spawn-BAEdy9kS.mjs → spawn-DdvGNWEs.mjs} +1 -1
- package/dist/{spectrum-DtNX8WBX.mjs → spectrum-RbNSnJya.mjs} +1 -1
- package/dist/{speed-TbkeWV_x.mjs → speed-Bh18cP0e.mjs} +1 -1
- package/dist/{sql-DI319y25.mjs → sql-BKjCDDS-.mjs} +1 -1
- package/dist/src-BZtxQa8v.mjs +131 -0
- package/dist/{ssl-D0MIzFl2.mjs → ssl-BHMbK4Be.mjs} +1 -1
- package/dist/{startup-profile-DlWrt4Fm.mjs → startup-profile-B7yHR_YB.mjs} +2 -4
- package/dist/startup-profile-zt6cFnBn.mjs +2 -0
- package/dist/state-C5mQ9At8.mjs +2 -0
- package/dist/{state-DazGSbRx.mjs → state-DNuVv5i-.mjs} +1 -1
- package/dist/{stream-4Mrb8HEo.mjs → stream-BFs1vbTA.mjs} +1 -1
- package/dist/{tags-BP25qydR.mjs → tags-ACINMEUC.mjs} +1 -1
- package/dist/{telemetry-DKSJSLtq.mjs → telemetry-Da9TmAgm.mjs} +1 -1
- package/dist/telemetry-Q7QghPwV.mjs +2 -0
- package/dist/{tenant-jmfZqEZ4.mjs → tenant-Decq0ghq.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BzVP85Tq.mjs → tenant-custom-nameservers-CGcqESj5.mjs} +1 -1
- package/dist/{tunnels-BNswR1Dj.mjs → tunnels-ff1a_ucB.mjs} +2 -2
- package/dist/{turnstile-BgsTP2fz.mjs → turnstile-BmJeENqH.mjs} +1 -1
- package/dist/ui-C1y5cXUM.mjs +2 -0
- package/dist/{update-check-C7mfEeQ7.mjs → update-check-BjlU_02g.mjs} +1 -1
- package/dist/{update-check-BOF1hn_I.mjs → update-check-imcniBzu.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-Bqrs4-2F.mjs → url-normalization-DPqqTNzy.mjs} +1 -1
- package/dist/{url-scanner-Dm4Fps5T.mjs → url-scanner-SmzhVLS-.mjs} +1 -1
- package/dist/{user-u_LxzLM4.mjs → user-LDJcWt0X.mjs} +1 -1
- package/dist/{vectorize-DLGiOyd4.mjs → vectorize-D57FE9YT.mjs} +1 -1
- package/dist/version-CbBZJTiB.mjs +2 -0
- package/dist/{waiting-rooms-DmgJgJXb.mjs → waiting-rooms-Bp5glzYE.mjs} +1 -1
- package/dist/{web-assets-rNhZWP-6.mjs → web-assets-BzSBU057.mjs} +1 -1
- package/dist/{web3-BVBdFt8E.mjs → web3-DmeS2XCY.mjs} +1 -1
- package/dist/{workers-CjUKJvH8.mjs → workers-BUmSAYvI.mjs} +2 -2
- package/dist/{workers-builds-D3Q97l7X.mjs → workers-builds-BRRyYyDr.mjs} +1 -1
- package/dist/{workers-for-platforms-C_fcw30y.mjs → workers-for-platforms-Bq5hpU-X.mjs} +1 -1
- package/dist/{workers-vpc-CnRO3Stc.mjs → workers-vpc-Dn83sJ0S.mjs} +1 -1
- package/dist/{workflows-cpHFe5v6.mjs → workflows-BI1Oqr1y.mjs} +1 -1
- package/dist/wrangler-migration-DHfxfsd8.mjs +946 -0
- package/dist/{zaraz-BRj0J7vK.mjs → zaraz-eWdwn_FV.mjs} +1 -1
- package/dist/{zero-trust-CVZKDLCB.mjs → zero-trust-Dj_s_8u8.mjs} +37 -37
- package/dist/{zones-C4S_kpGz.mjs → zones-D7J5AMUO.mjs} +50 -48
- package/package.json +14 -14
- package/dist/agent-context-DFEgYjEQ.mjs +0 -2
- package/dist/api-eMuS5GI1.mjs +0 -3
- package/dist/auth-B0lEsD_1.mjs +0 -2
- package/dist/blocks-BOQH-Won.mjs +0 -5
- package/dist/body-parser-ChnyBsfm.mjs +0 -2
- package/dist/build-BqGmiORA.mjs +0 -2
- package/dist/cloudforce-one-D20t9ojD.mjs +0 -370
- package/dist/containers-CzAZfmnj.mjs +0 -380
- package/dist/create-OXylMu6m.mjs +0 -2
- package/dist/dist-BtzWfAjU.mjs +0 -453
- package/dist/error-sanitization-Byb-_IS9.mjs +0 -2
- package/dist/get-iPUHxD1r.mjs +0 -2
- package/dist/local-CAs8RWYW.mjs +0 -2
- package/dist/login-BTiflOun.mjs +0 -2
- package/dist/package-BqSbnt6u.mjs +0 -2
- package/dist/run-Be6Js7D6.mjs +0 -2
- package/dist/src-Dc6ojwUW.mjs +0 -117
- package/dist/startup-profile-CZYtQziF.mjs +0 -2
- package/dist/state-B3Uy1jPX.mjs +0 -2
- package/dist/telemetry-CvZean4s.mjs +0 -2
- package/dist/ui-Bo6DCvbS.mjs +0 -2
- package/dist/version-DmTuWNZ5.mjs +0 -2
- package/dist/wrangler-migration-DQehjmoh.mjs +0 -946
- package/dist/zone-N6ccK70C.mjs +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BBR19lgj.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function h(e){return e.usage(`$0 dls regional-services prefix-bindings create
|
|
3
3
|
|
|
4
4
|
Bind a CIDR from a BYOIP prefix to a region. This requires the **IP Prefixes Write** permission in addition to **DLS Write**, because the binding is created against a BYOIP prefix in Addressing.`).option(`cidr`,{type:`string`,description:`IP prefix in CIDR notation to bind.`}).option(`prefix-id`,{type:`string`,description:`The ID of the parent IP prefix that contains the CIDR.`}).option(`region-key`,{type:`string`,description:`Region key from managed regions (e.g., "us", "eu").`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a DLS prefix binding`,builder:h,handler:async e=>c({command:`dls regional-services prefix-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dls regional-services prefix-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dls/regional_services/prefix_bindings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await f(`cidr`,`IP prefix in CIDR notation to bind.`)),e[`prefix-id`]===void 0&&(e[`prefix-id`]=await f(`prefix-id`,`The ID of the parent IP prefix that contains the CIDR.`)),e[`region-key`]===void 0&&(e[`region-key`]=await f(`region-key`,`Region key from managed regions (e.g., "us", "eu").`));let h=u({cidr:d(e.cidr,`cidr`,`text`),prefix_id:d(e[`prefix-id`],`prefix-id`,`text`),region_key:d(e[`region-key`],`region-key`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dls/regional_services/prefix_bindings/${t.binding_id}`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 dls regional-services prefix-bindings delete <binding-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,i as a,t as o}from"./context-DoGlohS-.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-D2_AF54c.mjs";import{t as u}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as d,n as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-BBR19lgj.mjs";import{n as v,t as y}from"./raw-fetch-BFcMz5hY.mjs";var ee={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/dnssec`};function b(e){return e.usage(`$0 dns dnssec delete
|
|
3
3
|
|
|
4
4
|
Delete DNSSEC.`).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`,describe:`Delete DNSSEC records`,builder:b,handler:async e=>u({command:`dns dnssec delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf dns dnssec delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dnssec`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(ee,{zone_id:n}));s(i,{successLabel:`Deleted`})})};var S={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/dnssec`,body:`json`};function te(e){return e.usage(`$0 dns dnssec edit
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function g(e){return e.usage(`$0 dns-firewall create
|
|
3
3
|
|
|
4
4
|
Create a DNS Firewall cluster`).option(`attack-mitigation-enabled`,{type:`boolean`,description:`When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers`}).option(`attack-mitigation-only-when-upstream-unhealthy`,{type:`boolean`,description:`Only mitigate attacks when upstream servers seem unhealthy`}).option(`deprecate-any-requests`,{type:`boolean`,description:`Whether to refuse to answer queries for the ANY type`}).option(`ecs-fallback`,{type:`boolean`,description:`Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent`}).option(`maximum-cache-ttl`,{type:`number`,description:`By default, Cloudflare attempts to cache responses for as long as
|
|
5
5
|
indicated by the TTL received from upstream nameservers. This setting
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e}from"./request-headers-
|
|
2
|
+
import{n as e}from"./request-headers-_yTB3kAw.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./run-C2-1SFrS.mjs";const r=`https://developers.cloudflare.com`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return i(e)?e.success===!1?e.error===void 0||typeof e.error==`string`:e.success===!0&&i(e.result)&&Array.isArray(e.result.chunks)&&e.result.chunks.every(e=>{if(!i(e)||!i(e.item)||typeof e.item.key!=`string`||e.item.key.length===0)return!1;let t=e.item.metadata;return t===void 0||i(t)&&(t.title===void 0||typeof t.title==`string`)&&(t.description===void 0||typeof t.description==`string`)}):!1}function o(e){let t;try{t=new URL(e,`${r}/`)}catch{throw Error(`Cloudflare docs search returned an invalid URL.`)}if(t.origin!==r||t.username||t.password)throw Error(`Cloudflare docs search returned an invalid URL.`);return t.href}async function s(t){let n=AbortSignal.timeout(3e4),r;try{r=await fetch(`https://ai-search.developers.cloudflare.com/api/ai-search/search`,{method:`POST`,headers:{...e(),"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({messages:[{role:`user`,content:t}],stream:!1,ai_search_options:{retrieval:{metadata_only:!0,max_num_results:5}}}),signal:n})}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Unable to reach Cloudflare docs search. Check your connection and try again.`,{cause:e})}if(!r.ok)throw Error(`Cloudflare docs search failed (HTTP ${r.status}).`);let i;try{i=await r.json()}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Cloudflare docs search returned an invalid JSON response.`,{cause:e})}if(!a(i))throw Error(`Cloudflare docs search returned an invalid response.`);if(!i.success)throw Error(`Cloudflare docs search failed: ${i.error??`Unknown error`}`);return i.result.chunks.slice(0,5).map(({item:e})=>({title:e.metadata?.title??`Untitled`,description:e.metadata?.description??``,url:o(e.key)}))}const c={command:`search <query>`,describe:`Search live Cloudflare documentation, guides, tutorials, and examples`,builder:e=>e.positional(`query`,{describe:`Search terms or a question about Cloudflare`,type:`string`,demandOption:!0,coerce:e=>{let t=e.trim();if(!t)throw Error(`query must not be empty.`);return t}}).example(`cf docs search "schedule a worker"`,`Find guides and examples`).epilogue(`Returns up to five ranked JSON results with title, description, and url. No Cloudflare login is required.
|
|
3
3
|
Fetch a result's URL with Accept: text/markdown to read the full page as Markdown.`),handler:e=>n({command:`docs search`,recordArgs:!1,searchQuery:e.query},e,async()=>{t(await s(e.query))})},l={command:`docs`,describe:`Search live Cloudflare documentation`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{l as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{n as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{a as n,r,t as i}from"./chunk-U6NEESU5-DqqRCaWH.mjs";import{N as a}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{createRequire as o}from"node:module";import*as s from"node:path";import*as c from"node:fs/promises";var l=/* @__PURE__ */ t(((e,t)=>{t.exports={name:`dotenv`,version:`16.3.1`,description:`Loads environment variables from .env file`,main:`lib/main.js`,types:`lib/main.d.ts`,exports:{".":{types:`./lib/main.d.ts`,require:`./lib/main.js`,default:`./lib/main.js`},"./config":`./config.js`,"./config.js":`./config.js`,"./lib/env-options":`./lib/env-options.js`,"./lib/env-options.js":`./lib/env-options.js`,"./lib/cli-options":`./lib/cli-options.js`,"./lib/cli-options.js":`./lib/cli-options.js`,"./package.json":`./package.json`},scripts:{"dts-check":`tsc --project tests/types/tsconfig.json`,lint:`standard`,"lint-readme":`standard-markdown`,pretest:`npm run lint && npm run dts-check`,test:`tap tests/*.js --100 -Rspec`,prerelease:`npm test`,release:`standard-version`},repository:{type:`git`,url:`git://github.com/motdotla/dotenv.git`},funding:`https://github.com/motdotla/dotenv?sponsor=1`,keywords:[`dotenv`,`env`,`.env`,`environment`,`variables`,`config`,`settings`],readmeFilename:`README.md`,license:`BSD-2-Clause`,devDependencies:{"@definitelytyped/dtslint":`^0.0.133`,"@types/node":`^18.11.3`,decache:`^4.6.1`,sinon:`^14.0.1`,standard:`^17.0.0`,"standard-markdown":`^7.1.0`,"standard-version":`^9.5.0`,tap:`^16.3.0`,tar:`^6.1.11`,typescript:`^4.8.4`},engines:{node:`>=12`},browser:{fs:!1}}})),u=/* @__PURE__ */ t(((t,n)=>{let r=e(`fs`),i=e(`path`),a=e(`os`),o=e(`crypto`),s=l().version,c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;function u(e){let t={},n=e.toString();n=n.replace(/\r\n?/gm,`
|
|
3
3
|
`);let r;for(;(r=c.exec(n))!=null;){let e=r[1],n=r[2]||``;n=n.trim();let i=n[0];n=n.replace(/^(['"`])([\s\S]*)\1$/gm,`$2`),i===`"`&&(n=n.replace(/\\n/g,`
|
|
4
|
-
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function d(e){let t=_(e),n=w.configDotenv({path:t});if(!n.parsed)throw Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let r=h(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=g(n,r[e].trim());a=w.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return w.parse(a)}function f(e){console.log(`[dotenv@${s}][INFO] ${e}`)}function p(e){console.log(`[dotenv@${s}][WARN] ${e}`)}function m(e){console.log(`[dotenv@${s}][DEBUG] ${e}`)}function h(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function g(e,t){let n;try{n=new URL(t)}catch(e){throw e.code===`ERR_INVALID_URL`?Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development`):e}let r=n.password;if(!r)throw Error(`INVALID_DOTENV_KEY: Missing key part`);let i=n.searchParams.get(`environment`);if(!i)throw Error(`INVALID_DOTENV_KEY: Missing environment part`);let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o)throw Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);return{ciphertext:o,key:r}}function _(e){let t=i.resolve(process.cwd(),`.env`);return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(`.vault`)?t:`${t}.vault`}function v(e){return e[0]===`~`?i.join(a.homedir(),e.slice(1)):e}function y(e){f(`Loading env from encrypted .env.vault`);let t=w._parseVault(e),n=process.env;return e&&e.processEnv!=null&&(n=e.processEnv),w.populate(n,t,e),{parsed:t}}function b(e){let t=i.resolve(process.cwd(),`.env`),n=`utf8`,a=!!(e&&e.debug);e&&(e.path!=null&&(t=v(e.path)),e.encoding!=null&&(n=e.encoding));try{let i=w.parse(r.readFileSync(t,{encoding:n})),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),w.populate(a,i,e),{parsed:i}}catch(e){return a&&m(`Failed to load ${t} ${e.message}`),{error:e}}}function x(e){let t=_(e);return h(e).length===0?w.configDotenv(e):r.existsSync(t)?w._configVault(e):(p(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),w.configDotenv(e))}function S(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.slice(0,12),a=r.slice(-16);r=r.slice(12,-16);try{let e=o.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(a),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;throw t||n?Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`):r?Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`):(console.error(`Error: `,e.code),console.error(`Error: `,e.message),e)}}function C(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override);if(typeof t!=`object`)throw Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n]),r&&m(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):e[n]=t[n]}let w={configDotenv:b,_configVault:y,_parseVault:d,config:x,decrypt:S,parse:u,populate:C};n.exports.configDotenv=w.configDotenv,n.exports._configVault=w._configVault,n.exports._parseVault=w._parseVault,n.exports.config=w.config,n.exports.decrypt=w.decrypt,n.exports.parse=w.parse,n.exports.populate=w.populate,n.exports=w})),d=u();o(import.meta.url||(typeof __filename==`string`?__filename:`/`));var f=i({"../../node_modules/.pnpm/dotenv-expand@13.0.0/node_modules/dotenv-expand/lib/main.js"(e,t){function n(e){return e.replace(/\\\$/g,`$`)}r(n,`_resolveEscapeSequences`);function i(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=/* @__PURE__ */ new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}r(i,`expandValue`);function a(e){let t={},r=process.env;e&&e.processEnv!=null&&(r=e.processEnv);for(let a in e.parsed){let o=e.parsed[a];o=r[a]&&r[a]!==o?r[a]:i(o,r,t),e.parsed[a]=n(o),t[a]=n(o)}for(let t in e.parsed)r[t]=e.parsed[t];return e}r(a,`expand`),t.exports.expand=a}}),p=n(f());function m(e,t){return e===!1?[]:[`.env`,`.env.local`,...t===void 0?[]:[`.env.${t}`,`.env.${t}.local`]].map(t=>s.resolve(e,t))}r(
|
|
4
|
+
`),n=n.replace(/\\r/g,`\r`)),t[e]=n}return t}function d(e){let t=_(e),n=w.configDotenv({path:t});if(!n.parsed)throw Error(`MISSING_DATA: Cannot parse ${t} for an unknown reason`);let r=h(e).split(`,`),i=r.length,a;for(let e=0;e<i;e++)try{let t=g(n,r[e].trim());a=w.decrypt(t.ciphertext,t.key);break}catch(t){if(e+1>=i)throw t}return w.parse(a)}function f(e){console.log(`[dotenv@${s}][INFO] ${e}`)}function p(e){console.log(`[dotenv@${s}][WARN] ${e}`)}function m(e){console.log(`[dotenv@${s}][DEBUG] ${e}`)}function h(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:``}function g(e,t){let n;try{n=new URL(t)}catch(e){throw e.code===`ERR_INVALID_URL`?Error(`INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development`):e}let r=n.password;if(!r)throw Error(`INVALID_DOTENV_KEY: Missing key part`);let i=n.searchParams.get(`environment`);if(!i)throw Error(`INVALID_DOTENV_KEY: Missing environment part`);let a=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[a];if(!o)throw Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);return{ciphertext:o,key:r}}function _(e){let t=i.resolve(process.cwd(),`.env`);return e&&e.path&&e.path.length>0&&(t=e.path),t.endsWith(`.vault`)?t:`${t}.vault`}function v(e){return e[0]===`~`?i.join(a.homedir(),e.slice(1)):e}function y(e){f(`Loading env from encrypted .env.vault`);let t=w._parseVault(e),n=process.env;return e&&e.processEnv!=null&&(n=e.processEnv),w.populate(n,t,e),{parsed:t}}function b(e){let t=i.resolve(process.cwd(),`.env`),n=`utf8`,a=!!(e&&e.debug);e&&(e.path!=null&&(t=v(e.path)),e.encoding!=null&&(n=e.encoding));try{let i=w.parse(r.readFileSync(t,{encoding:n})),a=process.env;return e&&e.processEnv!=null&&(a=e.processEnv),w.populate(a,i,e),{parsed:i}}catch(e){return a&&m(`Failed to load ${t} ${e.message}`),{error:e}}}function x(e){let t=_(e);return h(e).length===0?w.configDotenv(e):r.existsSync(t)?w._configVault(e):(p(`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`),w.configDotenv(e))}function S(e,t){let n=Buffer.from(t.slice(-64),`hex`),r=Buffer.from(e,`base64`),i=r.slice(0,12),a=r.slice(-16);r=r.slice(12,-16);try{let e=o.createDecipheriv(`aes-256-gcm`,n,i);return e.setAuthTag(a),`${e.update(r)}${e.final()}`}catch(e){let t=e instanceof RangeError,n=e.message===`Invalid key length`,r=e.message===`Unsupported state or unable to authenticate data`;throw t||n?Error(`INVALID_DOTENV_KEY: It must be 64 characters long (or more)`):r?Error(`DECRYPTION_FAILED: Please check your DOTENV_KEY`):(console.error(`Error: `,e.code),console.error(`Error: `,e.message),e)}}function C(e,t,n={}){let r=!!(n&&n.debug),i=!!(n&&n.override);if(typeof t!=`object`)throw Error(`OBJECT_REQUIRED: Please check the processEnv argument being passed to populate`);for(let n of Object.keys(t))Object.prototype.hasOwnProperty.call(e,n)?(i===!0&&(e[n]=t[n]),r&&m(i===!0?`"${n}" is already defined and WAS overwritten`:`"${n}" is already defined and was NOT overwritten`)):e[n]=t[n]}let w={configDotenv:b,_configVault:y,_parseVault:d,config:x,decrypt:S,parse:u,populate:C};n.exports.configDotenv=w.configDotenv,n.exports._configVault=w._configVault,n.exports._parseVault=w._parseVault,n.exports.config=w.config,n.exports.decrypt=w.decrypt,n.exports.parse=w.parse,n.exports.populate=w.populate,n.exports=w})),d=u();o(import.meta.url||(typeof __filename==`string`?__filename:`/`));var f=i({"../../node_modules/.pnpm/dotenv-expand@13.0.0/node_modules/dotenv-expand/lib/main.js"(e,t){function n(e){return e.replace(/\\\$/g,`$`)}r(n,`_resolveEscapeSequences`);function i(e,t,n){let r={...n,...t},i=/(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g,a=e,o,s=/* @__PURE__ */ new Set;for(;(o=i.exec(a))!==null;){s.add(a);let[e,t,c]=o,l=t||c,u=l.match(/(:\+|\+|:-|-)/),d=u?u[0]:null,f=l.split(d),p,m,h=f.shift();if([`:+`,`+`].includes(d)?(p=r[h]?f.join(d):``,m=null):(p=f.join(d),m=r[h]),a=m?s.has(m)?a.replace(e,p):a.replace(e,m):a.replace(e,p),a===n[h])break;i.lastIndex=0}return a}r(i,`expandValue`);function a(e){let t={},r=process.env;e&&e.processEnv!=null&&(r=e.processEnv);for(let a in e.parsed){let o=e.parsed[a];o=r[a]&&r[a]!==o?r[a]:i(o,r,t),e.parsed[a]=n(o),t[a]=n(o)}for(let t in e.parsed)r[t]=e.parsed[t];return e}r(a,`expand`),t.exports.expand=a}}),p=n(f());function m(){let e=/* @__PURE__ */ new Map,t={},n=/* @__PURE__ */ r(e=>typeof e==`string`?e.toLowerCase():e,`canonical`);return new Proxy(t,{get(t,r,i){let a=e.get(n(r));return a===void 0?void 0:Reflect.get(t,a,i)},set(t,r,i,a){let o=n(r),s=e.get(o);return s!==void 0&&s!==r&&Reflect.deleteProperty(t,s),e.set(o,r),Reflect.set(t,r,i,a)},has(t,r){let i=e.get(n(r));return i!==void 0&&Reflect.has(t,i)},getOwnPropertyDescriptor(t,r){let i=e.get(n(r));return i===void 0?void 0:Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(t,r,i){let a=n(r),o=e.get(a);return o!==void 0&&o!==r&&Reflect.deleteProperty(t,o),e.set(a,r),Reflect.defineProperty(t,r,i)},deleteProperty(t,r){let i=n(r),a=e.get(i);return e.delete(i),a===void 0?Reflect.deleteProperty(t,r):Reflect.deleteProperty(t,a)}})}r(m,`caseInsensitiveEnv`);function h(e,t=process.env){return g((0,d.parse)(e),t)}r(h,`parseAndExpandDotEnv`);function g(e,t){let n={...e},r=Object.keys(n),i=C(t);(0,p.expand)({parsed:n,processEnv:C(t)});for(let e of r)Object.hasOwn(i,e)&&(n[e]=i[e]);return n}r(g,`expandParsedDotEnv`);function _(e,t){return e===!1?[]:[`.env`,`.env.local`,...t===void 0?[]:[`.env.${t}`,`.env.${t}.local`]].map(t=>s.resolve(e,t))}r(_,`getEnvPaths`);function v(e,t){return e===!1?[]:[...t===void 0?[]:[`.dev.vars.${t}`],`.dev.vars`].map(t=>s.resolve(e,t))}r(v,`getDevVarsCandidatePaths`);async function y(e,t){if(t===`local`)throw Error(`"local" cannot be used as a mode name because it conflicts with the .local postfix for .env files.`);let n=_(e,t),r={},i={};for(let e of n){let t=await x(e,d.parse);if(t!==void 0)for(let[e,n]of Object.entries(t.values))r[e]=n,i[e]={type:`file`,path:t.path}}let a=C(process.env),o=g(r,a),s={...i};for(let[e,t]of Object.entries(a))o[e]=t,s[e]={type:`process`};return{values:o,sources:s}}r(y,`loadEnv`);async function b(e,t){let n=v(e,t);for(let e of n){let t=await x(e,d.parse);if(t!==void 0)return t.values}}r(b,`loadDevVars`);async function x(e,t){try{let n=await c.stat(e);return!n.isFile()&&!n.isFIFO()?void 0:{path:e,values:t(await c.readFile(e,`utf8`))}}catch(e){if(S(e))return;throw e}}r(x,`tryParseFile`);function S(e){return e instanceof Error&&`code`in e&&(e.code===`ENOENT`||e.code===`ENOTDIR`)}r(S,`isMissingFileError`);function C(e){let t=process.platform===`win32`?m():{};for(let[n,r]of Object.entries(e))r!==void 0&&(t[n]=r);return t}r(C,`copyProcessEnv`);const w=`CLOUDFLARE_DEPENDENCIES_INSTRUMENTATION`;function T(e){let t=process.env[w];if(t===void 0)return e;let n=t.toLowerCase();if(n!==`true`&&n!==`false`)throw new a(`Expected ${w} to be "true" or "false", but got ${JSON.stringify(t)}`,{telemetryMessage:!1});return{...e,dependencies_instrumentation:{...e.dependencies_instrumentation,enabled:n===`true`}}}const E=/* @__PURE__ */ new Set([`CLOUDFLARE_ACCESS_CLIENT_ID`,`CLOUDFLARE_ACCESS_CLIENT_SECRET`,`CLOUDFLARE_ACCOUNT_ID`,`CLOUDFLARE_API_TOKEN`,`CLOUDFLARE_COMPLIANCE_REGION`,w,`CLOUDFLARE_ZONE_ID`,`WRANGLER_API_ENVIRONMENT`]);function D(e){return E.has(e)}async function O(e={}){if(e.local)return()=>{};let t=await y(process.cwd(),e.mode),n=[];for(let[e,r]of Object.entries(t.values))D(e)&&t.sources[e]?.type===`file`&&(process.env[e]=r,n.push(e));return()=>{for(let e of n)delete process.env[e]}}async function k(e,t){let n=await O(e);try{return await t()}finally{n()}}const A=/* @__PURE__ */ new Set(/* @__PURE__ */ `access curl.access login.access rdp.access smb.access ssh.access ssh-config.access ssh-gen.access tcp.access token.build.dev.docs.docs search.init.init workers.migrate.tunnels diag.tunnels login.tunnels quick-start.tunnels ready.tunnels tail.workers check.workers types.deploy.previews deploy.tunnels run.workers triggers deploy.workers versions create`.split(`.`));function j(e,t){return!t&&!A.has(e)}export{h as a,T as i,j as n,u as o,k as r,O as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces`,query:[`page`,`per_page`]};function u(e){return e.usage(`$0 durable-objects namespaces list
|
|
3
3
|
|
|
4
4
|
Returns the Durable Object namespaces owned by an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Durable Object Namespaces`,builder:u,handler:async e=>c({command:`durable-objects namespaces list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf durable-objects namespaces list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/durable_objects/namespaces`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces/${t.id}/objects`,query:[`limit`,`cursor`]};function p(e){return e.usage(`$0 durable-objects namespaces objects list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";var l={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`,body:`json`};function u(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const d={command:`edit`,describe:`Configure DMARC Reports`,builder:u,handler:async e=>o({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}):s(e.body)});return}let o=await t(e),u=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=u,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(l,{body:t,zone_id:u}));r(n,{successLabel:`Updated`});return}let d=c({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}),f=await a(`Updating`,async()=>o.send(l,{body:d,zone_id:u}));r(f,{successLabel:`Updated`})})};var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`};function p(e){return e.usage(`$0 email-auth dmarc-reports get
|
|
3
3
|
|
|
4
4
|
Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get DMARC Report Status`,builder:p,handler:async e=>o({command:`email-auth dmarc-reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf email-auth dmarc-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(f,{zone_id:s}));r(c,{successLabel:`Loaded`})})},h={command:`dmarc-reports`,describe:`Operations for dmarc-reports`,builder:e=>e.command(d).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var g={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/spf/inspect`,query:[`id`]};function _(e){return e.usage(`$0 email-auth spf inspect
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-BBR19lgj.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/domains`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function h(e){return e.usage(`$0 email-domains create
|
|
3
3
|
|
|
4
4
|
Creates a candidate and four DNS instructions. Rejects hostnames whose assigned Return-Path exceeds 201 ASCII characters. Creation follows read-only checks of the saved provider bundle and published exclusion. Hostnames inside an active full Cloudflare DNS zone return the generic hostname conflict error 2083. No per-domain provider DNS writes occur. Customer DNS observations remain pending and mail remains inactive. Unverified candidates may share a hostname. Supply an account-unique client_reference to retry the same enrollment safely; reuse with a different hostname returns error 2083. Final public-DNS, namespace protection and runtime readiness are separate gates. Available only to the configured OpenAI pilot account behind a default-off gate. Authentication failures may use the gateway error envelope.`).option(`client-reference`,{type:`string`,description:`Opaque reference for one customer enrollment. Reuse it with the same hostname to retry Create safely. Distinct references can enroll the same unverified hostname; a hostname alone never identifies a customer.`}).option(`hostname`,{type:`string`,description:`Exact external hostname to enroll. After ASCII conversion, the assigned Return-Path hostname must be at most 201 characters (191 for the current cf-bounce. prefix). Wildcards, provider-zone names, and hostnames inside an existing Cloudflare-managed DNS zone are rejected.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create an Email Domain`,builder:h,handler:async e=>c({command:`email-domains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/domains`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({client_reference:d(e[`client-reference`],`client-reference`,`text`),hostname:d(e.hostname,`hostname`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await f(`hostname`,`Exact external hostname to enroll. After ASCII conversion, the assigned Return-Path hostname must be at most 201 characters (191 for the current cf-bounce. prefix). Wildcards, provider-zone names, and hostnames inside an existing Cloudflare-managed DNS zone are rejected.`));let h=u({client_reference:d(e[`client-reference`],`client-reference`,`text`),hostname:d(e.hostname,`hostname`,`text`)}),g=await s(`Creating`,async()=>c.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/email/domains/${t.email_domain_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function v(e){return e.usage(`$0 email-domains delete <email-domain-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,body:`json`,errors:{422:`UnprocessableEntityError`}};function v(e){return e.usage(`$0 email-routing addresses create
|
|
3
3
|
|
|
4
4
|
Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`create`,describe:`Create a destination address`,builder:v,handler:async e=>l({command:`email-routing addresses create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-routing addresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({email:p(e.email,`email`,`text`)}):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(_,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.email===void 0&&(e.email=await m(`email`,`The contact email address of the user.`));let u=f({email:p(e.email,`email`,`text`)}),h=await c(`Creating`,async()=>i.send(_,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 email-routing addresses delete <destination-address-identifier>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/email-security/settings/allow_policies/batch`,body:`json`};function ee(e){return e.usage(`$0 email-security allow-policies batch
|
|
3
3
|
|
|
4
4
|
Executes multiple allow policy operations atomically: delete, partially update, replace, and create allow policies in a single request. All four operation arrays (deletes, patches, puts, posts) are required and executed in order. Send empty arrays for unused operations.`).option(`deletes`,{type:`string`,description:`IDs of the allow policies to delete. Provide as a JSON array of objects or @path/to/file.json.`}).option(`patches`,{type:`string`,description:`Partial updates to apply — each entry carries the policy's ID and only the fields to change. Provide as a JSON array of objects or @path/to/file.json.`}).option(`posts`,{type:`string`,description:`Allow policies to create. Provide as a JSON array of objects or @path/to/file.json.`}).option(`puts`,{type:`string`,description:`Full replacements to apply — each entry carries the policy's ID and every field of its new value. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`batch`,describe:`Batch allow policy operations`,builder:ee,handler:async e=>c({command:`email-security allow-policies batch`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf email-security allow-policies batch`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email-security/settings/allow_policies/batch`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({deletes:l(e.deletes,`deletes`),patches:l(e.patches,`patches`),posts:l(e.posts,`posts`),puts:l(e.puts,`puts`)}):u(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,!await h({force:!!e.force,message:`This operation may delete the selected allow policies and restore normal security scanning and disposition actions for matching emails.`}))return;if(e.body){let t=u(e.body),n=await s(`Deleting`,async()=>c.send(g,{body:t,account_id:f}));a(n,{successLabel:`Deleted`});return}if(e.deletes===void 0)throw Error(`--deletes is required (or pass --body with this field set).`);if(e.patches===void 0)throw Error(`--patches is required (or pass --body with this field set).`);if(e.posts===void 0)throw Error(`--posts is required (or pass --body with this field set).`);if(e.puts===void 0)throw Error(`--puts is required (or pass --body with this field set).`);let p=d({deletes:l(e.deletes,`deletes`),patches:l(e.patches,`patches`),posts:l(e.posts,`posts`),puts:l(e.puts,`puts`)}),m=await s(`Deleting`,async()=>c.send(g,{body:p,account_id:f}));a(m,{successLabel:`Deleted`})})};var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email-security/settings/allow_policies`,body:`json`};function ne(e){return e.usage(`$0 email-security allow-policies create
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/sending/messages/${t.message_id}`,response:`binary-response`,errors:{404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 email-sending get <message-id>
|
|
3
3
|
|
|
4
4
|
Returns the raw RFC 5322 MIME message for the given account and message id.`).positional(`message-id`,{type:`string`,description:`Message ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get <message-id>`,describe:`Fetch an email message`,builder:v,handler:async e=>l({command:`email-sending get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-sending get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/sending/messages/${e[`message-id`]==null?`<message-id>`:encodeURIComponent(String(e[`message-id`]))}`,pathParams:{"message-id":String(e[`message-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(_,{account_id:l,message_id:e[`message-id`]}));o(u,{successLabel:`Loaded`})})};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/sending/limits`,errors:{403:`ForbiddenError`}};function ee(e){return e.usage(`$0 email-sending limits get
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ Returns the authoritative Email Sending reputation state and active evaluation p
|
|
|
9
9
|
|
|
10
10
|
Send a raw RFC 5322 (MIME) email for the specified account. Provide the full MIME message plus the SMTP envelope (from and recipients).`).option(`from`,{type:`string`,description:`Sender email address.`}).option(`mime-message`,{type:`string`,description:`The full MIME-encoded email message. Should include standard RFC 5322 headers such as From, To, Subject, and Content-Type. The from and recipients fields in the request body control SMTP envelope routing; the From and To headers in the MIME message control what the recipient's email client displays.`}).option(`recipients`,{type:`string`,array:!0,description:`List of recipient email addresses.`}).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 C={command:`send-raw`,describe:`Send a raw MIME email`,builder:S,handler:async e=>l({command:`email-sending send-raw`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-sending send-raw`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/sending/send_raw`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({from:m(e.from,`from`,`text`),mime_message:m(e[`mime-message`],`mime-message`,`text`),recipients:e.recipients}):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(x,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}if(e.from===void 0&&(e.from=await h(`from`,`Sender email address.`)),e[`mime-message`]===void 0&&(e[`mime-message`]=await h(`mime-message`,`The full MIME-encoded email message. Should include standard RFC 5322 headers such as From, To, Subject, and Content-Type. The from and recipients fields in the request body control SMTP envelope routing; the From and To headers in the MIME message control what the recipient's email client displays.`)),e.recipients===void 0)throw Error(`--recipients is required (or pass --body with this field set).`);let u=p({from:m(e.from,`from`,`text`),mime_message:m(e[`mime-message`],`mime-message`,`text`),recipients:e.recipients}),f=await c(`Creating`,async()=>i.send(x,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};var w={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/sending/send`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function T(e){return e.usage(`$0 email-sending send
|
|
11
11
|
|
|
12
|
-
Send an email for the specified account using the structured builder. Provide the sender, recipients, subject, and at least one of text or html; attachments are optional.`).option(`attachments`,{type:`string`,description:`File attachments and inline images. Provide as a JSON array of objects or @path/to/file.json.`}).option(`bcc-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`bcc-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`cc-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`cc-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`from-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`from-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`headers`,{type:`string`,description:`Custom email headers as key-value pairs. Provide as a JSON object or @path/to/file.json.`}).option(`html`,{type:`string`,description:`HTML body of the email. Provide at least one of text or html (non-empty).`}).option(`reply-to-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`reply-to-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`subject`,{type:`string`,description:`Email subject line.`}).option(`text`,{type:`string`,description:`Plain text body of the email. Provide at least one of text or html (non-empty).`}).option(`to-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`to-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).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 E={command:`send`,describe:`Send an email`,builder:T,handler:async e=>l({command:`email-sending send`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-sending send`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/sending/send`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({attachments:u(e.attachments,`attachments`),bcc:{address:m(e[`bcc-address`],`bcc-address`,`text`),name:m(e[`bcc-name`],`bcc-name`,`text`)},cc:{address:m(e[`cc-address`],`cc-address`,`text`),name:m(e[`cc-name`],`cc-name`,`text`)},from:{address:m(e[`from-address`],`from-address`,`text`),name:m(e[`from-name`],`from-name`,`text`)},headers:f(e.headers,`headers`),html:m(e.html,`html`,`text`),reply_to:{address:m(e[`reply-to-address`],`reply-to-address`,`text`),name:m(e[`reply-to-name`],`reply-to-name`,`text`)},subject:m(e.subject,`subject`,`text`),text:m(e.text,`text`,`text`),to:{address:m(e[`to-address`],`to-address`,`text`),name:m(e[`to-name`],`to-name`,`text`)}},[[`headers`]]):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(w,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.subject===void 0&&(e.subject=await h(`subject`,`Email subject line.`));let g=p({attachments:u(e.attachments,`attachments`),bcc:{address:m(e[`bcc-address`],`bcc-address`,`text`),name:m(e[`bcc-name`],`bcc-name`,`text`)},cc:{address:m(e[`cc-address`],`cc-address`,`text`),name:m(e[`cc-name`],`cc-name`,`text`)},from:{address:m(e[`from-address`],`from-address`,`text`),name:m(e[`from-name`],`from-name`,`text`)},headers:f(e.headers,`headers`),html:m(e.html,`html`,`text`),reply_to:{address:m(e[`reply-to-address`],`reply-to-address`,`text`),name:m(e[`reply-to-name`],`reply-to-name`,`text`)},subject:m(e.subject,`subject`,`text`),text:m(e.text,`text`,`text`),to:{address:m(e[`to-address`],`to-address`,`text`),name:m(e[`to-name`],`to-name`,`text`)}},[[`headers`]]),_=await c(`Creating`,async()=>i.send(w,{body:g,account_id:l}));o(_,{successLabel:`Created`})})};var D={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains`,body:`json`,errors:{403:`ForbiddenError`}};function O(e){return e.usage("$0 email-sending subdomains create\n\nCreates a new sending subdomain or re-enables sending on an existing subdomain that had it disabled. If zone-level Email Sending has not been enabled yet, the zone flag is automatically set when the entitlement is present. A leftmost wildcard such as `*.example.com` is accepted only for accounts with wildcard Email Sending enabled. Wildcard senders share the base domain's DKIM signing identity and `cf-bounce.<base>` return path.").option(`name`,{type:`string`,description:"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement."}).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:`create`,describe:`Create a sending subdomain`,builder:O,handler:async e=>l({command:`email-sending subdomains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(D,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement."));let a=p({name:m(e.name,`name`,`text`)}),l=await c(`Creating`,async()=>t.send(D,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var A={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}`,errors:{404:`NotFoundError`}};function j(e){return e.usage(`$0 email-sending subdomains delete <subdomain-id>
|
|
12
|
+
Send an email for the specified account using the structured builder. Provide the sender, recipients, subject, and at least one of text or html; attachments are optional.`).option(`attachments`,{type:`string`,description:`File attachments and inline images. Provide as a JSON array of objects or @path/to/file.json.`}).option(`bcc-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`bcc-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`cc-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`cc-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`from-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`from-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`headers`,{type:`string`,description:`Custom email headers as key-value pairs. Provide as a JSON object or @path/to/file.json.`}).option(`html`,{type:`string`,description:`HTML body of the email. Provide at least one of text or html (non-empty).`}).option(`reply-to-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`reply-to-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).option(`subject`,{type:`string`,description:`Email subject line.`}).option(`text`,{type:`string`,description:`Plain text body of the email. Provide at least one of text or html (non-empty).`}).option(`to-address`,{type:`string`,description:`Email address (e.g., 'user@example.com').`}).option(`to-name`,{type:`string`,description:`Display name for the email address (e.g., 'John Doe'). Optional; set to null or leave it unset to send the address on its own.`}).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 E={command:`send`,describe:`Send an email`,builder:T,handler:async e=>l({command:`email-sending send`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf email-sending send`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/sending/send`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({attachments:u(e.attachments,`attachments`),bcc:{address:m(e[`bcc-address`],`bcc-address`,`text`),name:m(e[`bcc-name`],`bcc-name`,`text`)},cc:{address:m(e[`cc-address`],`cc-address`,`text`),name:m(e[`cc-name`],`cc-name`,`text`)},from:{address:m(e[`from-address`],`from-address`,`text`),name:m(e[`from-name`],`from-name`,`text`)},headers:f(e.headers,`headers`),html:m(e.html,`html`,`text`),reply_to:{address:m(e[`reply-to-address`],`reply-to-address`,`text`),name:m(e[`reply-to-name`],`reply-to-name`,`text`)},subject:m(e.subject,`subject`,`text`),text:m(e.text,`text`,`text`),to:{address:m(e[`to-address`],`to-address`,`text`),name:m(e[`to-name`],`to-name`,`text`)}},[[`headers`]]):d(e.body)});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(w,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}e.subject===void 0&&(e.subject=await h(`subject`,`Email subject line.`));let g=p({attachments:u(e.attachments,`attachments`),bcc:{address:m(e[`bcc-address`],`bcc-address`,`text`),name:m(e[`bcc-name`],`bcc-name`,`text`)},cc:{address:m(e[`cc-address`],`cc-address`,`text`),name:m(e[`cc-name`],`cc-name`,`text`)},from:{address:m(e[`from-address`],`from-address`,`text`),name:m(e[`from-name`],`from-name`,`text`)},headers:f(e.headers,`headers`),html:m(e.html,`html`,`text`),reply_to:{address:m(e[`reply-to-address`],`reply-to-address`,`text`),name:m(e[`reply-to-name`],`reply-to-name`,`text`)},subject:m(e.subject,`subject`,`text`),text:m(e.text,`text`,`text`),to:{address:m(e[`to-address`],`to-address`,`text`),name:m(e[`to-name`],`to-name`,`text`)}},[[`headers`]]),_=await c(`Creating`,async()=>i.send(w,{body:g,account_id:l}));o(_,{successLabel:`Created`})})};var D={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains`,body:`json`,errors:{403:`ForbiddenError`}};function O(e){return e.usage("$0 email-sending subdomains create\n\nCreates a new sending subdomain or re-enables sending on an existing subdomain that had it disabled. If zone-level Email Sending has not been enabled yet, the zone flag is automatically set when the entitlement is present. A leftmost wildcard such as `*.example.com` is accepted only for accounts with wildcard Email Sending enabled. Wildcard senders share the base domain's DKIM signing identity and `cf-bounce.<base>` return path.").option(`name`,{type:`string`,description:"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement. The derived Return-Path hostname, including its bounce prefix, must be at most 201 characters after ASCII conversion; wildcards use the base hostname."}).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:`create`,describe:`Create a sending subdomain`,builder:O,handler:async e=>l({command:`email-sending subdomains create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(D,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement. The derived Return-Path hostname, including its bounce prefix, must be at most 201 characters after ASCII conversion; wildcards use the base hostname."));let a=p({name:m(e.name,`name`,`text`)}),l=await c(`Creating`,async()=>t.send(D,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var A={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}`,errors:{404:`NotFoundError`}};function j(e){return e.usage(`$0 email-sending subdomains delete <subdomain-id>
|
|
13
13
|
|
|
14
14
|
Disables sending on a subdomain and removes its DNS records. If routing is still active on the subdomain, only sending is disabled.`).positional(`subdomain-id`,{type:`string`,description:`Sending subdomain identifier.`,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 M={command:`delete <subdomain-id>`,describe:`Delete a sending subdomain`,builder:j,handler:async e=>l({command:`email-sending subdomains delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains/${e[`subdomain-id`]==null?`<subdomain-id>`:encodeURIComponent(String(e[`subdomain-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"subdomain-id":String(e[`subdomain-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation disables sending and removes the subdomain's Email Sending DNS records.`}))return;let a=await c(`Deleting`,async()=>t.send(A,{zone_id:r,subdomain_id:e[`subdomain-id`]}));o(a,{successLabel:`Deleted`})})};var N={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}/dns`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function P(e){return e.usage(`$0 email-sending subdomains dns fix <subdomain-id>
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ Gets information for a specific sending subdomain.`).positional(`subdomain-id`,{
|
|
|
23
23
|
|
|
24
24
|
Lists all sending-enabled subdomains for the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const se={command:`list`,describe:`List sending subdomains`,builder:q,handler:async e=>l({command:`email-sending subdomains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(K,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var J={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/preview`,body:`json`,errors:{403:`ForbiddenError`}};function ce(e){return e.usage(`$0 email-sending subdomains preview
|
|
25
25
|
|
|
26
|
-
Returns the DNS records that would be created for a sending subdomain, flags which records are missing, and reports any conflicts with existing DNS records. This is a read-only dry-run — no records are created or modified. Use before or after creating a subdomain to check DNS status. A leftmost wildcard requires wildcard Email Sending to be enabled for the account and previews base-scoped DKIM and return-path records.`).option(`name`,{type:`string`,description:"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement."}).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 le={command:`preview`,describe:`Preview sending subdomain DNS`,builder:ce,handler:async e=>l({command:`email-sending subdomains preview`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains/preview`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Loading`,async()=>t.send(J,{body:n,zone_id:r}));o(i,{successLabel:`Loaded`});return}e.name===void 0&&(e.name=await h(`name`,"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement."));let a=p({name:m(e.name,`name`,`text`)}),l=await c(`Loading`,async()=>t.send(J,{body:a,zone_id:r}));o(l,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}/reputation/complaints`,query:[`start_at`,`end_at`],errors:{400:`BadRequestError`,404:`NotFoundError`,422:`UnprocessableEntityError`,502:`BadGatewayError`}};function de(e){return e.usage(`$0 email-sending subdomains reputation get-complaints <subdomain-id>
|
|
26
|
+
Returns the DNS records that would be created for a sending subdomain, flags which records are missing, and reports any conflicts with existing DNS records. This is a read-only dry-run — no records are created or modified. Use before or after creating a subdomain to check DNS status. A leftmost wildcard requires wildcard Email Sending to be enabled for the account and previews base-scoped DKIM and return-path records.`).option(`name`,{type:`string`,description:"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement. The derived Return-Path hostname, including its bounce prefix, must be at most 201 characters after ASCII conversion; wildcards use the base hostname."}).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 le={command:`preview`,describe:`Preview sending subdomain DNS`,builder:ce,handler:async e=>l({command:`email-sending subdomains preview`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf email-sending subdomains preview`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains/preview`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Loading`,async()=>t.send(J,{body:n,zone_id:r}));o(i,{successLabel:`Loaded`});return}e.name===void 0&&(e.name=await h(`name`,"The domain name within the zone. A wildcard is allowed only as the complete leftmost label (`*.example.com`) and requires the account wildcard Email Sending entitlement. The derived Return-Path hostname, including its bounce prefix, must be at most 201 characters after ASCII conversion; wildcards use the base hostname."));let a=p({name:m(e.name,`name`,`text`)}),l=await c(`Loading`,async()=>t.send(J,{body:a,zone_id:r}));o(l,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}/reputation/complaints`,query:[`start_at`,`end_at`],errors:{400:`BadRequestError`,404:`NotFoundError`,422:`UnprocessableEntityError`,502:`BadGatewayError`}};function de(e){return e.usage(`$0 email-sending subdomains reputation get-complaints <subdomain-id>
|
|
27
27
|
|
|
28
28
|
Returns the matched complaint count for a sending subdomain in a half-open time window of up to seven days.`).positional(`subdomain-id`,{type:`string`,description:`Sending subdomain identifier.`,demandOption:!0}).option(`start-at`,{type:`string`,description:`Start at`,demandOption:!0}).option(`end-at`,{type:`string`,description:`End at`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get-complaints <subdomain-id>`,describe:`Get sending subdomain complaint count`,builder:de,handler:async e=>l({command:`email-sending subdomains reputation get-complaints`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={start_at:e[`start-at`],end_at:e[`end-at`]};if(e.dryRun){s({command:`cf email-sending subdomains reputation get-complaints`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/sending/subdomains/${e[`subdomain-id`]==null?`<subdomain-id>`:encodeURIComponent(String(e[`subdomain-id`]))}/reputation/complaints`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"subdomain-id":String(e[`subdomain-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(ue,{zone_id:a,subdomain_id:e[`subdomain-id`],...t}));o(l,{successLabel:`Loaded`})})},pe={command:`reputation`,describe:`Operations for subdomains.reputation`,builder:e=>e.command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/sending/subdomains/${t.subdomain_id}`,body:`json`,errors:{404:`NotFoundError`}};function me(e){return e.usage(`$0 email-sending subdomains update <subdomain-id>
|
|
29
29
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n as t}from"./api-
|
|
2
|
+
import{t as e}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n as t}from"./api-X3wKppsT.mjs";function n(e){if(typeof e!=`object`||!e)return[];let t=e.errors;return Array.isArray(t)?t.flatMap(e=>{if(typeof e!=`object`||!e)return[];let t=e.code;return typeof t==`number`&&Number.isFinite(t)?[t]:[]}):[]}function r(e){return typeof e==`number`&&Number.isInteger(e)&&e>=100&&e<=599}function i(e){try{return a(e)}catch{return{errorType:`Error`}}}function a(i){if(i instanceof t){let e=n(i.body);return{errorType:`APIError`,...r(i.statusCode)?{httpStatus:i.statusCode}:{},...e.length===0?{}:{errorCodes:e}}}return i instanceof e?{errorType:`APIError`,...r(i.status)?{httpStatus:i.status}:{},...typeof i.code==`number`&&Number.isFinite(i.code)?{errorCodes:[i.code]}:{}}:i instanceof Error?{errorType:`Error`}:{errorType:typeof i}}export{i as t};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n}from"./version-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./chunk-2HLTAS5V-B92NbX1j.mjs";import{n}from"./version-CbBZJTiB.mjs";import{i as r,t as i}from"./blocks-hVx18MUM.mjs";import{t as a}from"./session-CG79ZLE9.mjs";import{n as o}from"./api-X3wKppsT.mjs";var s=class extends Error{};function c(e){return e instanceof s||`telemetryMessage`in e&&e.telemetryMessage===`cfetch auth login required`&&`reason`in e&&e.reason===`no-credentials-non-interactive`}function l(e){try{let t=new URL(e);return`${t.pathname.replace(/^\/client\/v\d+/,``)}${t.search}`}catch{return e}}function u(e){return Array.isArray(e)?e.flatMap(e=>{if(typeof e==`string`)return[{message:e}];if(typeof e!=`object`||!e)return[];let t=e,n=typeof t.code==`number`?t.code:void 0,r=typeof t.message==`string`?t.message:void 0;return n!==void 0||r!==void 0?[{code:n,message:r}]:[]}):[]}function d(s){if(a(n),s instanceof o){let t=s.statusCode,n=s.body,a=t===void 0?`Envelope Error`:p(t),o=typeof n==`object`&&n?n:void 0,c=[...u(o?.errors).map(e=>({...e,isError:!0})),...u(o?.messages).map(e=>({...e,isError:!1}))],d=s.rawResponse?.url?`HTTP ${l(s.rawResponse.url)}`:void 0,f=t===void 0?a:`${t} ${a}`,m=d?`${f} · ${d}`:f,h=e.muted(m),g=``;return c.length>0?g=c.map((t,n)=>{let r=typeof t.code==`number`?e.error(e.bold(`[${t.code}]`)):t.isError?e.error(e.bold(`[error]`)):void 0,i=e.bold(t.message??``),a=r?`${r} ${i}`:i;return n===c.length-1?`${a}\n${h}`:a}).join(`
|
|
3
3
|
|
|
4
|
-
`):(
|
|
4
|
+
`):(g=e.error(e.bold(s.message||m)),s.message&&m&&(g+=`\n${h}`)),console.error(i(g,void 0,{title:`APIError`,rawMessage:!0})),t===401?console.error(`
|
|
5
5
|
`+r(`Try running: cf auth login`)):t===403&&console.error(`
|
|
6
|
-
`+r(`Check your API token permissions`)),s}if(s instanceof t){let t=s.status===void 0?``:`${s.status} ${
|
|
6
|
+
`+r(`Check your API token permissions`)),s}if(s instanceof t){let t=s.status===void 0?``:`${s.status} ${p(s.status)}`.trim(),n=t?e.muted(t):``,a=s.notes??[],o;if(a.length>0){let t=typeof s.code==`number`?e.error(e.bold(`[${s.code}]`)):e.error(e.bold(`[error]`));o=a.map((r,i)=>{let o=e.bold(r.text),s=i===0?`${t} ${o}`:o;return i===a.length-1&&n?`${s}\n${n}`:s}).join(`
|
|
7
7
|
|
|
8
8
|
`)}else{let t=e.error(e.bold(s.message));o=n?`${t}\n${n}`:t}return console.error(i(o,void 0,{title:`APIError`,rawMessage:!0})),s.status===401?console.error(`
|
|
9
9
|
`+r(`Try running: cf auth login`)):s.status===403&&console.error(`
|
|
10
|
-
`+r(`Check your API token permissions`)),s}if(s instanceof Error){let e=process.env.DEBUG&&s.stack?
|
|
11
|
-
`+r("To continue without logging in, rerun this command with `--temporary-account`. cf will use a temporary account and print a claim URL.")),s}return console.error(i(`An unexpected error occurred`,String(s))),s}function
|
|
10
|
+
`+r(`Check your API token permissions`)),s}if(s instanceof Error){let e=process.env.DEBUG&&s.stack?f(s.stack):void 0;return console.error(i(s.message,e)),c(s)&&console.error(`
|
|
11
|
+
`+r("To continue without logging in, rerun this command with `--temporary-account`. cf will use a temporary account and print a claim URL.")),s}return console.error(i(`An unexpected error occurred`,String(s))),s}function f(e){return e.replace(/[A-Za-z0-9_-]{40,}/g,`[REDACTED]`)}function p(e){return{400:`Bad Request`,401:`Unauthorized`,403:`Forbidden`,404:`Not Found`,405:`Method Not Allowed`,409:`Conflict`,422:`Unprocessable Entity`,429:`Too Many Requests`,500:`Internal Server Error`,502:`Bad Gateway`,503:`Service Unavailable`,504:`Gateway Timeout`}[e]??``}export{d as n,s as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./prompt-BBR19lgj.mjs";var p={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/field_extractors/${t.extractor}`,errors:{404:`NotFoundError`}};function m(e){return e.usage(`$0 field-extractors delete <extractor>
|
|
3
3
|
|
|
4
4
|
Deletes all custom extraction rules for an extractor type.`).positional(`extractor`,{type:`string`,description:`Extractor type.`,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 h={command:`delete <extractor>`,describe:`Delete Field Extractor`,builder:m,handler:async e=>c({command:`field-extractors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf field-extractors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/field_extractors/${e.extractor==null?`<extractor>`:encodeURIComponent(String(e.extractor))}`,pathParams:{extractor:String(e.extractor??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await f({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(p,{account_id:l,extractor:e.extractor}));a(u,{successLabel:`Deleted`})})};var g={method:`GET`,path:t=>e`/accounts/${t.account_id}/field_extractors/${t.extractor}`,errors:{404:`NotFoundError`}};function _(e){return e.usage(`$0 field-extractors get <extractor>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{i as m,n as h}from"./prompt-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules`,body:`json`};function _(e){return e.usage(`$0 firewall access-rules create
|
|
3
3
|
|
|
4
4
|
Creates a new IP Access rule for an account or zone. The rule will apply to all zones in the account or zone. Note: To create an IP Access rule that applies to a single zone, refer to the [IP Access rules for a zone](#ip-access-rules-for-a-zone) endpoints.`).option(`configuration-target`,{type:`string`,description:"The configuration target. You must set the target to `ip` when specifying an IP address in the rule.",choices:[`ip`,`ip6`,`ip_range`,`asn`,`country`]}).coerce(`configuration-target`,e=>p(e,`configuration-target`,`text`)).option(`configuration-value`,{type:`string`,description:`The IP address to match. This address will be compared to the IP address of incoming requests.`}).option(`access-rule-mode`,{type:`string`,description:`The action to apply to a matched request.`,choices:[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]}).coerce(`access-rule-mode`,e=>p(e,`access-rule-mode`,`text`)).option(`notes`,{type:`string`,description:`An informative summary of the rule, typically used as a reminder or explanation.`,default:``}).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:`Create an IP Access rule`,builder:_,handler:async e=>l({command:`firewall access-rules create`,classification:{safeFlags:[`configuration-target`,`access-rule-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf firewall access-rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/firewall/access_rules/rules`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},bodyKind:`json`,body:e.body===void 0?f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}):d(e.body)});return}let l=await n(e),u=e.zone===void 0?`accounts`:`zones`,h=u===`zones`?await i({zone:e.zone},l,{quiet:e.quiet}):e.local?t:await a();if(u===`zones`?e.zoneId=h:e.accountId=h,e.body){let t=d(e.body),n=await c(`Creating`,async()=>l.send(g,{body:t,account_or_zone:u,account_or_zone_id:h}));o(n,{successLabel:`Created`});return}e[`access-rule-mode`]===void 0&&(e[`access-rule-mode`]=await m(`access-rule-mode`,`The action to apply to a matched request.`,[`block`,`challenge`,`whitelist`,`js_challenge`,`managed_challenge`]));let _=f({configuration:{target:e[`configuration-target`],value:p(e[`configuration-value`],`configuration-value`,`text`)},mode:e[`access-rule-mode`],notes:p(e.notes,`notes`,`text`)}),v=await c(`Creating`,async()=>l.send(g,{body:_,account_or_zone:u,account_or_zone_id:h}));o(v,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/firewall/access_rules/rules/${t.rule_id}`};function b(e){return e.usage(`$0 firewall access-rules delete <rule-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BBR19lgj.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/flagship/apps`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 flagship apps create
|
|
3
3
|
|
|
4
4
|
Creates an app. The returned \`id\` is used in all subsequent flag, changelog, and evaluation requests.`).option(`name`,{type:`string`,description:`Name of the Flagship app (1–64 letters, numbers, hyphens, or underscores).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`create`,describe:`Create app`,builder:v,handler:async e=>l({command:`flagship apps create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf flagship apps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/flagship/apps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}e.name===void 0&&(e.name=await h(`name`,`Name of the Flagship app (1–64 letters, numbers, hyphens, or underscores).`));let u=p({name:m(e.name,`name`,`text`)}),f=await c(`Creating`,async()=>n.send(_,{body:u,account_id:l}));o(f,{successLabel:`Created`})})};function b(e){return e.usage("$0 flagship apps definitions get <app-id>\n\nReturns an app's evaluation-only flag definitions for SDKs that evaluate locally. Send the returned `ETag` in `If-None-Match` to avoid downloading unchanged definitions.").positional(`app-id`,{type:`string`,description:`Flagship app ID returned when the app was created.`,demandOption:!0}).option(`if-none-match`,{type:`string`,description:"Previously returned ETag, or `*`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get <app-id>`,describe:`Get flag definitions`,builder:b,handler:async e=>l({command:`flagship apps definitions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`if-none-match`]!==void 0&&(l[`If-None-Match`]=String(e[`if-none-match`])),e.dryRun){let t=await i();s({command:`cf flagship apps definitions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/flagship/apps/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/definitions`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Loading`,async()=>n(u,`GET`,`/accounts/${d}/flagship/apps/${encodeURIComponent(String(e[`app-id`]))}/definitions`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})},ee={command:`definitions`,describe:`Operations for apps.definitions`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/flagship/apps/${t.app_id}`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function S(e){return e.usage(`$0 flagship apps delete <app-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";var u={method:`GET`,path:t=>e`/zones/${t.zone_id}/fraud_detection/settings`};function d(e){return e.usage(`$0 fraud get
|
|
3
3
|
|
|
4
4
|
Retrieve Fraud Detection settings for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Fraud Detection Settings`,builder:d,handler:async e=>o({command:`fraud get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf fraud get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/fraud_detection/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(u,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var p={method:`PUT`,path:t=>e`/zones/${t.zone_id}/fraud_detection/settings`,body:`json`};function m(e){return e.usage("$0 fraud update\n\nUpdate Fraud Detection settings for a zone. Notes on `username_expressions` behavior: - If omitted or set to null, expressions are not modified. - If provided as an empty array `[]`, all expressions will be cleared.").option(`authentication-settings-failure-criteria-kind`,{type:`string`,description:"The type of criterion. Currently only `status_code` is supported.",choices:[`status_code`]}).coerce(`authentication-settings-failure-criteria-kind`,e=>l(e,`authentication-settings-failure-criteria-kind`,`text`)).option(`authentication-settings-failure-criteria-status-codes`,{type:`string`,array:!0,description:`HTTP status codes to match against the origin response.
|
|
5
5
|
- Maximum of 10 codes per criterion.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u}from"./prompt-BBR19lgj.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/google-tag-gateway/config`};function f(e){return e.usage(`$0 google-tag-gateway config get
|
|
3
3
|
|
|
4
4
|
Gets the Google Tag Gateway configuration for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Google Tag Gateway configuration`,builder:f,handler:async e=>o({command:`google-tag-gateway config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf google-tag-gateway config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/google-tag-gateway/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/google-tag-gateway/config`,body:`json`};function h(e){return e.usage(`$0 google-tag-gateway config update
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as s,r as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,n as f}from"./prompt-BBR19lgj.mjs";var p={method:`POST`,path:t=>e`/zones/${t.zone_id}/healthchecks`,body:`json`};function m(e){return e.usage(`$0 healthchecks create
|
|
3
3
|
|
|
4
4
|
Create a new health check.`).option(`address`,{type:`string`,description:`The hostname or IP address of the origin server to run health checks on.`}).option(`check-regions`,{type:`string`,array:!0,description:`A list of regions from which to run health checks. Null means Cloudflare will pick a default region.`}).option(`consecutive-fails`,{type:`number`,description:`The number of consecutive fails required from a health check before changing the health to unhealthy.`,default:1}).option(`consecutive-successes`,{type:`number`,description:`The number of consecutive successes required from a health check before changing the health to healthy.`,default:1}).option(`description`,{type:`string`,description:`A human-readable description of the health check.`}).option(`http-config-allow-insecure`,{type:`boolean`,description:`Do not validate the certificate when the health check uses HTTPS.`}).option(`http-config-expected-body`,{type:`string`,description:`A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.`}).option(`http-config-expected-codes`,{type:`string`,array:!0,description:`The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.`}).option(`http-config-follow-redirects`,{type:`boolean`,description:`Follow redirects if the origin returns a 3xx status code.`}).option(`http-config-header`,{type:`string`,description:`The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden. Provide as a JSON object or @path/to/file.json.`}).option(`http-config-method`,{type:`string`,description:`The HTTP method to use for the health check.`,choices:[`GET`,`HEAD`]}).coerce(`http-config-method`,e=>u(e,`http-config-method`,`text`)).option(`http-config-path`,{type:`string`,description:`The endpoint path to health check against.`}).option(`http-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.`}).option(`interval`,{type:`number`,description:`The interval between each health check. Shorter intervals may give quicker notifications if the origin status changes, but will increase load on the origin as we check from multiple locations.`,default:60}).option(`name`,{type:`string`,description:`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`retries`,{type:`number`,description:`The number of retries to attempt in case of a timeout before marking the origin as unhealthy. Retries are attempted immediately.`,default:2}).option(`suspended`,{type:`boolean`,description:`If suspended, no health checks are sent to the origin.`,default:!1}).option(`tcp-config-method`,{type:`string`,description:`The TCP connection method to use for the health check.`,choices:[`connection_established`]}).coerce(`tcp-config-method`,e=>u(e,`tcp-config-method`,`text`)).option(`tcp-config-port`,{type:`number`,description:`Port number to connect to for the health check. Defaults to 80.`}).option(`timeout`,{type:`number`,description:`The timeout (in seconds) before marking the health check as failed.`,default:5}).option(`type`,{type:`string`,description:`The protocol to use for the health check. Currently supported protocols are 'HTTP', 'HTTPS' and 'TCP'.`,default:`HTTP`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const h={command:`create`,describe:`Create Health Check`,builder:m,handler:async e=>o({command:`healthchecks create`,classification:{safeFlags:[`http-config-allow-insecure`,`http-config-follow-redirects`,`http-config-method`,`suspended`,`tcp-config-method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf healthchecks create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/healthchecks`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({address:u(e.address,`address`,`text`),check_regions:e[`check-regions`],consecutive_fails:e[`consecutive-fails`],consecutive_successes:e[`consecutive-successes`],description:u(e.description,`description`,`text`),http_config:{allow_insecure:e[`http-config-allow-insecure`],expected_body:u(e[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:e[`http-config-expected-codes`],follow_redirects:e[`http-config-follow-redirects`],header:c(e[`http-config-header`],`http-config-header`),method:e[`http-config-method`],path:u(e[`http-config-path`],`http-config-path`,`text`),port:e[`http-config-port`]},interval:e.interval,name:u(e.name,`name`,`text`),retries:e.retries,suspended:e.suspended,tcp_config:{method:e[`tcp-config-method`],port:e[`tcp-config-port`]},timeout:e.timeout,type:u(e.type,`type`,`text`)},[[`http_config`,`header`]]):s(e.body)});return}let o=await t(e),f=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=f,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(p,{body:t,zone_id:f}));r(n,{successLabel:`Created`});return}e.address===void 0&&(e.address=await d(`address`,`The hostname or IP address of the origin server to run health checks on.`)),e.name===void 0&&(e.name=await d(`name`,`A short name to identify the health check. Only alphanumeric characters, hyphens and underscores are allowed.`));let m=l({address:u(e.address,`address`,`text`),check_regions:e[`check-regions`],consecutive_fails:e[`consecutive-fails`],consecutive_successes:e[`consecutive-successes`],description:u(e.description,`description`,`text`),http_config:{allow_insecure:e[`http-config-allow-insecure`],expected_body:u(e[`http-config-expected-body`],`http-config-expected-body`,`text`),expected_codes:e[`http-config-expected-codes`],follow_redirects:e[`http-config-follow-redirects`],header:c(e[`http-config-header`],`http-config-header`),method:e[`http-config-method`],path:u(e[`http-config-path`],`http-config-path`,`text`),port:e[`http-config-port`]},interval:e.interval,name:u(e.name,`name`,`text`),retries:e.retries,suspended:e.suspended,tcp_config:{method:e[`tcp-config-method`],port:e[`tcp-config-port`]},timeout:e.timeout,type:u(e.type,`type`,`text`)},[[`http_config`,`header`]]),h=await a(`Creating`,async()=>o.send(p,{body:m,zone_id:f}));r(h,{successLabel:`Created`})})};var g={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/healthchecks/${t.healthcheck_id}`};function _(e){return e.usage(`$0 healthchecks delete <healthcheck-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/hyperdrive/configs`,body:`json`};function g(e){return e.usage(`$0 hyperdrive create
|
|
3
3
|
|
|
4
4
|
Creates and returns a new Hyperdrive configuration. For a PlanetScale integration, the Cloudflare account must already be linked to PlanetScale in the Hyperdrive dashboard.`).option(`mtls-ca-certificate-id`,{type:`string`,description:`Define CA certificate ID obtained after uploading CA cert.`}).option(`mtls-certificate-id`,{type:`string`,description:`Define mTLS certificate ID obtained after uploading client cert.`}).option(`mtls-sslmode`,{type:`string`,description:"PostgreSQL accepts `require`, `verify-ca`, and `verify-full`. MySQL accepts `REQUIRED`, `VERIFY_CA`, and `VERIFY_IDENTITY`. The verify modes require a CA certificate; the require modes cannot be used with a CA certificate.",choices:[`require`,`verify-ca`,`verify-full`,`REQUIRED`,`VERIFY_CA`,`VERIFY_IDENTITY`]}).coerce(`mtls-sslmode`,e=>d(e,`mtls-sslmode`,`text`)).option(`name`,{type:`string`,description:`The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.`}).option(`origin-connection-limit`,{type:`number`,description:`The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BBR19lgj.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/iam/permission_groups/${t.permission_group_id}`};function g(e){return e.usage(`$0 iam permission-groups get <permission-group-id>
|
|
3
3
|
|
|
4
4
|
Get information about a specific permission group in an account.`).positional(`permission-group-id`,{type:`string`,description:`Permission Group identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <permission-group-id>`,describe:`Permission Group Details`,builder:g,handler:async e=>c({command:`iam permission-groups get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf iam permission-groups get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/iam/permission_groups/${e[`permission-group-id`]==null?`<permission-group-id>`:encodeURIComponent(String(e[`permission-group-id`]))}`,pathParams:{"permission-group-id":String(e[`permission-group-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(h,{account_id:l,permission_group_id:e[`permission-group-id`]}));a(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/iam/permission_groups`,query:[`id`,`name`,`label`,`page`,`per_page`]};function v(e){return e.usage(`$0 iam permission-groups list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,i as a,t as o}from"./context-DoGlohS-.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-D2_AF54c.mjs";import{t as u}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as d,n as f,r as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-BBR19lgj.mjs";import{n as b,t as x}from"./raw-fetch-BFcMz5hY.mjs";var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/images/v1`,pathParams:[`account_id`],body:`form`};function ee(e){return e.usage(`$0 images create
|
|
3
3
|
|
|
4
4
|
Upload an image to CF Images. Images up to 10 Megabytes can be uploaded using a single HTTP POST (multipart/form-data) request by sending an image file or passing a URL accessible to the API.`).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)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`creator`,{type:`string`,description:`Can set the creator field with an internal user ID.`}).option(`id`,{type:`string`,description:`An optional custom unique identifier for your image.`}).option(`metadata`,{type:`string`,description:`User modifiable key-value store. Can use used for keeping references to another system of record for managing images.`}).option(`require-signed-urls`,{type:`boolean`,description:`Indicates whether the image requires a signature token for the access.`}).option(`url`,{type:`string`,description:`A URL to fetch an image from origin. Only needed when type is uploading from a URL.`})}const te={command:`create`,describe:`Upload an image`,builder:ee,handler:async e=>u({command:`images create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf images create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/images/v1`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file,creator:e.creator,id:e.id,metadata:e.metadata,"require-signed-urls":e[`require-signed-urls`],url:e.url}});return}let a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e.creator!==void 0||e.id!==void 0||e.metadata!==void 0||e[`require-signed-urls`]!==void 0||e.url!==void 0){let t=new FormData;if(e.file){let n=g(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);if(e.creator!==void 0&&t.append(`creator`,String(h(e.creator,`creator`,`text`)??``)),e.id!==void 0&&t.append(`id`,String(h(e.id,`id`,`text`)??``)),e.metadata!==void 0){let n=typeof e.metadata==`string`?h(e.metadata,`metadata`,`text`):e.metadata;t.append(`metadata`,typeof n==`string`?n:JSON.stringify(n))}e[`require-signed-urls`]!==void 0&&t.append(`requireSignedURLs`,String(e[`require-signed-urls`])),e.url!==void 0&&t.append(`url`,String(h(e.url,`url`,`text`)??``));let r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/images/v1`,{body:t}));s(r,{successLabel:`Created`});return}if(e.body){let t=h(e.body,`body`,`binary`),r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/images/v1`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));s(r,{successLabel:`Created`});return}let d=await l(`Creating`,async()=>a.send(S,{account_id:u}));s(d,{successLabel:`Created`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/images/v1/${t.image_id}`};function re(e){return e.usage(`$0 images delete <image-id>
|
|
5
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{n as e,r as t,t as n}from"./src-
|
|
2
|
+
import{n as e,r as t,t as n}from"./src-BZtxQa8v.mjs";import{t as r}from"./cli-exit-CstFZ1eJ.mjs";export{r as CliExit,n as buildCli,e as main,t as runMain};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./src-
|
|
2
|
+
import"./src-BZtxQa8v.mjs";import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{R as n,n as r}from"./dist-D5YYi2LO.mjs";import{i,n as a,t as o}from"./autoconfig-CwWsgTP2.mjs";import{n as s}from"./version-CbBZJTiB.mjs";import{i as c}from"./delegate-3IgxBeFH.mjs";import{t as l}from"./project-settings-nBMEx1f-.mjs";import"./ui-C1y5cXUM.mjs";import{t as u}from"./log-BWdaOGOW.mjs";import{n as d,r as f}from"./dialog-D5lus4M4.mjs";import{t as p}from"./progress-D2_AF54c.mjs";import{n as m}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{basename as h,dirname as g,isAbsolute as _,join as v,relative as y,resolve as b}from"node:path";import{mkdir as x,readdir as S,stat as C,writeFile as w}from"node:fs/promises";const T={"@cloudflare/vite-plugin":`beta`,typescript:`^7.0.2`,vite:`^8.3.0`};function ee(e){return{".gitignore":M(),"cloudflare.config.ts":D(e),"package.json":A(e),...e.packageManager===`pnpm`?{"pnpm-workspace.yaml":te()}:{},"src/index.ts":k(),"tsconfig.json":j(),"vite.config.ts":O()}}function te(){return`# Approve build scripts needed by the generated Worker's dependencies.
|
|
3
3
|
allowBuilds:
|
|
4
4
|
esbuild: true
|
|
5
5
|
workerd: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,i as a,t as o}from"./context-DoGlohS-.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-D2_AF54c.mjs";import{t as u}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BBR19lgj.mjs";import{n as _,t as ee}from"./raw-fetch-BFcMz5hY.mjs";var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/asn/${t.asn}`};function ne(e){return e.usage(`$0 intel asn get <asn>
|
|
3
3
|
|
|
4
4
|
Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it.`).positional(`asn`,{type:`string`,description:`Asn`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const re={command:`get <asn>`,describe:`Get ASN Overview.`,builder:ne,handler:async e=>u({command:`intel asn get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf intel asn get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/intel/asn/${e.asn==null?`<asn>`:encodeURIComponent(String(e.asn))}`,pathParams:{asn:String(e.asn??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(te,{account_id:a,asn:e.asn}));s(u,{successLabel:`Loaded`})})};var ie={method:`GET`,path:t=>e`/accounts/${t.account_id}/intel/asn/${t.asn}/subnets`};function ae(e){return e.usage(`$0 intel asn subnets get <asn>
|
|
5
5
|
|