cf 1.0.0-beta.1 → 1.0.0-beta.3
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/README.md +12 -0
- package/dist/_meta/commands.json +7481 -10370
- package/dist/_meta/hand-written-commands.json +578 -40
- package/dist/_meta/schemas.json +29048 -31332
- package/dist/{abuse-reports-Dd6kJM7r.mjs → abuse-reports-CWX7WKhe.mjs} +11 -11
- package/dist/access-2aKv_Dya.mjs +2 -0
- package/dist/{account-CZ9SPVdz.mjs → account-CnZO9-bl.mjs} +5 -5
- package/dist/{account-tags-DAf-hq1m.mjs → account-tags-ClLZOfTA.mjs} +4 -4
- package/dist/{accounts-BDIKjiG2.mjs → accounts-Cbj9aFyY.mjs} +59 -59
- package/dist/{acm-D-q1FVWJ.mjs → acm-wGJ9cnzE.mjs} +3 -3
- package/dist/{addressing-0w2U1NEy.mjs → addressing-YvHX2dAb.mjs} +50 -50
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-B4N-lmLb.mjs} +15 -15
- package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-CG_DG6N7.mjs} +1 -1
- package/dist/ai-gateway-DUttjxrN.mjs +80 -0
- package/dist/{ai-ARwLeQ1O.mjs → ai-lziiVEGR.mjs} +14 -14
- package/dist/{ai-search-B5l4IDSR.mjs → ai-search-k63uopiK.mjs} +37 -37
- package/dist/{ai-security-C7_IGDDl.mjs → ai-security-D10lzYTn.mjs} +1 -1
- package/dist/{alerting-B6m1Rhf4.mjs → alerting-c4ICS8KO.mjs} +26 -26
- package/dist/{analytics-nnzFBB_7.mjs → analytics-CEQ0EVTq.mjs} +9 -9
- package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-B9kiAPbY.mjs} +2 -2
- package/dist/{api-security-B9IozS2a.mjs → api-security-6LlxeiOi.mjs} +61 -61
- package/dist/{argo-C_QcqR6P.mjs → argo-BCcp1ybr.mjs} +1 -1
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-DDFNpYBz.mjs → artifacts-PoO3rAvo.mjs} +20 -20
- package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-Vt3NbAA1.mjs} +2 -2
- package/dist/auth-3bFlHTVl.mjs +8 -0
- package/dist/auth-BfYtTyXo.mjs +2 -0
- package/dist/autoconfig-DqgOi1kW.mjs +511 -0
- package/dist/banner-ClclgnBn.mjs +2 -0
- package/dist/{billing-DU2X-q-x.mjs → billing-DVrpin2a.mjs} +10 -10
- package/dist/{bot-management-BHAAoZOh.mjs → bot-management-Bw-GZWoT.mjs} +1 -1
- package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-ov970cZf.mjs} +5 -5
- package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-C7WOvdx6.mjs} +13 -13
- package/dist/browser-extension-C1zmKFDG.mjs +2 -0
- package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-DhnKUXVv.mjs} +23 -23
- package/dist/build-CVvo9BvP.mjs +2 -0
- package/dist/build-vfD1txJe.mjs +2 -0
- package/dist/{builds-CO0MmSd3.mjs → builds-BIqfNXEE.mjs} +31 -31
- package/dist/{cache-XxusQxXe.mjs → cache-Dzl3kth1.mjs} +1 -1
- package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-CQinLiq_.mjs} +1 -1
- package/dist/cf-O3gEaXYZ.mjs +18 -0
- package/dist/chunk-M77HNR46-DPbhuhiy.mjs +2 -0
- package/dist/chunk-RV27PEH3-Cws_30ln.mjs +97 -0
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
- package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
- package/dist/cli-ZXrxm369.mjs +6 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates--vw-4vvy.mjs +13 -0
- package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-YCsdeK3e.mjs} +1 -1
- package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-CwSi4zZI.mjs} +1 -1
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-CH8rOneA.mjs} +1 -1
- package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-hEykJeqy.mjs} +214 -214
- package/dist/command-Axp5Wfpj.mjs +2 -0
- package/dist/command-BH-TMJWp.mjs +2 -0
- package/dist/command-C1CwuI4O.mjs +2 -0
- package/dist/command-CIZDQPmS.mjs +2 -0
- package/dist/command-CeL8kQCM.mjs +2 -0
- package/dist/command-ChDtawgh.mjs +2 -0
- package/dist/command-D5nZoVE1.mjs +2 -0
- package/dist/command-DBCoI1fN.mjs +2 -0
- package/dist/command-DBpr6U4L.mjs +2 -0
- package/dist/command-DrQKTf1O.mjs +2 -0
- package/dist/command-IuYNIUk9.mjs +2 -0
- package/dist/command-L0y09SE5.mjs +2 -0
- package/dist/{command-RiZ_LYcm.mjs → command-ZSxcR8-J.mjs} +1 -1
- package/dist/command-egPOyKbx.mjs +2 -0
- package/dist/command-jJKEah9i.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-DNisLHie.mjs} +26 -26
- package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-uIHLde10.mjs} +3 -3
- package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D2MH0OSs.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-CQICQaGf.mjs} +3 -3
- package/dist/{connectors-BhvAP5fb.mjs → connectors-BXwvP7SF.mjs} +7 -7
- package/dist/{containers-Cq1gtnq6.mjs → containers-ClK7HGfx.mjs} +70 -72
- package/dist/{containers-Bl3EY-cy.mjs → containers-DOyOrVV9.mjs} +17 -17
- package/dist/{content-scan-BYGe9fFj.mjs → content-scan-B71JZ7G6.mjs} +1 -1
- package/dist/context-5JRcefHh.mjs +7 -0
- package/dist/{cps-BWMDWeVq.mjs → cps-CzNfFv-5.mjs} +1 -1
- package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-BfZcrcjk.mjs} +1 -1
- package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-Cm8YLmXE.mjs} +1 -1
- package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DFMRe9_D.mjs} +4 -4
- package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-B5njuvdd.mjs} +5 -5
- package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-D06jQfNs.mjs} +6 -6
- package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-CKwKLqbF.mjs} +5 -5
- package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-D339_r6I.mjs} +10 -10
- package/dist/{d1-C1GK7DsW.mjs → d1-CHXmF-Ga.mjs} +14 -14
- package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-BAnTwW8J.mjs} +1 -1
- package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D04Xvm0m.mjs → deploy-CsQbufsL.mjs} +1 -1
- package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-dwBe8pSi.mjs} +1 -1
- package/dist/dev-BpvWl6pG.mjs +4 -0
- package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-BEUAWeLH.mjs} +7 -7
- package/dist/dialog-BlUXJKbA.mjs +2 -0
- package/dist/discover-DmIsaE54.mjs +2 -0
- package/dist/dist-CpufWpsP.mjs +48 -0
- package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
- package/dist/dist-DfMipWKR.mjs +366 -0
- package/dist/{dls-BsnURYja.mjs → dls-CXS7bPlj.mjs} +8 -8
- package/dist/{dns-B_nTXhuM.mjs → dns-Dx7oPdtH.mjs} +63 -63
- package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-wcP1fgB-.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-Bq0JAsbX.mjs +2 -0
- package/dist/{durable-objects-8U8DpF9q.mjs → durable-objects-DmieQflu.mjs} +4 -4
- package/dist/{email-auth-CzjtGH6g.mjs → email-auth-DiO-k5wt.mjs} +1 -1
- package/dist/{email-routing-B92fty1-.mjs → email-routing-CycPV4UR.mjs} +24 -24
- package/dist/{email-security-keTqF0nJ.mjs → email-security-DhtBU1X_.mjs} +77 -79
- package/dist/{email-sending-B7f95epu.mjs → email-sending-BjgiwUht.mjs} +23 -23
- package/dist/error-sanitization-Cu-8OKRA.mjs +2 -0
- package/dist/error-sanitization-Dc4bLj8k.mjs +2 -0
- package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-BOBRZ8gw.mjs} +4 -4
- package/dist/firewall-Dc0Xm26N.mjs +36 -0
- package/dist/{flagship-CjC3dF7L.mjs → flagship-BRqR3ioN.mjs} +13 -13
- package/dist/{fraud-DU_YCLC5.mjs → fraud-Czu1ed5n.mjs} +1 -1
- package/dist/generate-BAHK895m.mjs +2 -0
- package/dist/generate-DWW1YPjv.mjs +3 -0
- package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-DsZA0a1r.mjs} +1 -1
- package/dist/gt-DmcMNPX6.mjs +2 -0
- package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-CFH5bIAG.mjs} +1 -1
- package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-CKDSQsXT.mjs} +1 -1
- package/dist/{hyperdrive-DPWyiXpj.mjs → hyperdrive-BLiI7eoy.mjs} +9 -9
- package/dist/{iam-CtX9NPCy.mjs → iam-B5mdfq5e.mjs} +24 -24
- package/dist/{images-CuWFOsGw.mjs → images-IVRjrB4_.mjs} +38 -38
- package/dist/index.mjs +1 -1
- package/dist/init-C6pA2OKl.mjs +39 -0
- package/dist/{intel-BeGV3VXt.mjs → intel-CvesITo3.mjs} +38 -38
- package/dist/interactive-C-o16XQs.mjs +32 -0
- package/dist/interactive-SgAjen2z.mjs +2 -0
- package/dist/{ips-d6aoKAI4.mjs → ips-DT9GaimG.mjs} +1 -1
- package/dist/keyless-certificates-B0Xe5WqA.mjs +13 -0
- package/dist/{keys-Fyf3vWcA.mjs → keys-BfcwaSGe.mjs} +2 -2
- package/dist/kv-BAKDr9h1.mjs +15 -0
- package/dist/lazy-command-BR3u8SQ2.mjs +2 -0
- package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-gRpF7J9-.mjs} +1 -1
- package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-CLVWIN9d.mjs} +39 -39
- package/dist/local-22UA5g9y.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-CxYne8s2.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-C_fR3pz4.mjs} +1 -1
- package/dist/login-B2IW-LZC.mjs +5 -0
- package/dist/login-BKQI53YQ.mjs +2 -0
- package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-CmCWQC_j.mjs} +3 -3
- package/dist/{logos-BWBVGwU6.mjs → logos-DoGIvvML.mjs} +3 -3
- package/dist/{logpush-CZKR8DHO.mjs → logpush-C2fS4mz8.mjs} +23 -23
- package/dist/{logs-CiDyrqEu.mjs → logs-DOchrxC9.mjs} +16 -16
- package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-BTWKttlB.mjs} +34 -34
- package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-C_6hCn_f.mjs} +17 -17
- package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-B-Rmmg-Z.mjs} +139 -139
- package/dist/{managed-defense-SYreve4W.mjs → managed-defense-BPSLbGgV.mjs} +9 -9
- package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-BqiDVQD6.mjs} +1 -1
- package/dist/{matches-qf7GReyu.mjs → matches-wLc335So.mjs} +3 -3
- package/dist/{mcp-DYSk5_gc.mjs → mcp-CmQOrkzP.mjs} +15 -15
- package/dist/{mesh-DdY07OYt.mjs → mesh-DRuFq2pw.mjs} +12 -12
- package/dist/migrate-DBwOnU6B.mjs +2 -0
- package/dist/mtls-certificates-BUcQwJGQ.mjs +13 -0
- package/dist/{network-DpaZ5LJL.mjs → network-BuXy0ysq.mjs} +24 -24
- package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-BzfPaxkW.mjs} +17 -17
- package/dist/oauth-BYmfy7l7.mjs +9 -0
- package/dist/{oauth-nsTDJ0dF.mjs → oauth-BlFK0DPZ.mjs} +1 -1
- package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CnABE4xT.mjs} +7 -7
- package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-BFy1Hw7K.mjs} +1 -1
- package/dist/{observability-smcOFbC1.mjs → observability-B1IkzeE0.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
- package/dist/{organization-Dyf_0mq4.mjs → organization-DeIzTyFr.mjs} +1 -1
- package/dist/{organizations-D7zGPLVm.mjs → organizations-dpNO5XaQ.mjs} +1 -1
- package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B-1YtC61.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-DdvwucsG.mjs} +1 -1
- package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CzfpVmTE.mjs} +5 -5
- package/dist/output-CvQFJkvi.mjs +2 -0
- package/dist/{page-rules-CLzba_nr.mjs → page-rules--wnIp30C.mjs} +1 -1
- package/dist/pages-DvhJZv5S.mjs +60 -0
- package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-lqX3Rwt9.mjs} +32 -32
- package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-BRKnBlz2.mjs} +3 -3
- package/dist/{pipelines-lps71uoA.mjs → pipelines-CvePummb.mjs} +20 -20
- package/dist/precursor-DgotmHQd.mjs +4 -0
- package/dist/previews-Brsuhzmk.mjs +4 -0
- package/dist/progress-DUeNqM-j.mjs +2 -0
- package/dist/prompt-DV6YTdoa.mjs +3 -0
- package/dist/{queries-EJYlFw8m.mjs → queries-CLqy4AM6.mjs} +4 -4
- package/dist/{queues-CozKGaA4.mjs → queues-D0Y4LNP1.mjs} +29 -35
- package/dist/r2-D_FuuTGm.mjs +132 -0
- package/dist/{r2-data-catalog-Bfn3AWzn.mjs → r2-data-catalog-D5Fvpr3C.mjs} +16 -16
- package/dist/{radar-NmpdyMo5.mjs → radar-B6bYFNVn.mjs} +1 -1
- package/dist/raw-fetch-Cp3EaTcj.mjs +2 -0
- package/dist/{realtime-iWTz8WbH.mjs → realtime-BTBZoZNW.mjs} +78 -78
- package/dist/{registrar-Cza1L8i_.mjs → registrar-CFh4TCkC.mjs} +8 -8
- package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-By6ukXxf.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-kYRASukx.mjs} +1 -1
- package/dist/{reporting-gvXX2MxY.mjs → reporting-Cf3q4cuO.mjs} +7 -7
- package/dist/request-headers-jdUlF-_S.mjs +2 -0
- package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CqNmb-dS.mjs} +2 -2
- package/dist/resolve-PZuJ878-.mjs +2 -0
- package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-vDvq5J5a.mjs} +14 -14
- package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-DRCkpRmf.mjs} +2 -2
- package/dist/{rules-_QDaG3U5.mjs → rules-D-IfU82u.mjs} +8 -8
- package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-ezJUnXm7.mjs} +17 -17
- package/dist/{rum-ChPyfpM2.mjs → rum-G42H7AXu.mjs} +14 -14
- package/dist/run-BhfDNWCI.mjs +2 -0
- package/dist/run-djd1-6kN.mjs +2 -0
- package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-yDMur8UR.mjs} +2 -2
- package/dist/schema-s22s29sJ.mjs +2 -0
- package/dist/{scim-BjiswXbC.mjs → scim-DgRlqTtE.mjs} +10 -10
- package/dist/{sdk-CsWOex96.mjs → sdk-Bx29ZKK3.mjs} +2 -2
- package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-DcNmMGG2.mjs} +11 -11
- package/dist/{security-center-DP4GC1cG.mjs → security-center-CZwVaL7t.mjs} +15 -15
- package/dist/{security-txt-CaR5Idmz.mjs → security-txt-CD0RAEsU.mjs} +1 -1
- package/dist/session-CjQFm10R.mjs +2 -0
- package/dist/shared-Cfuwhk19.mjs +2 -0
- package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-C72SYuAe.mjs} +1 -1
- package/dist/{snippets-r-Mre0cE.mjs → snippets-Bl4Rfvdf.mjs} +1 -1
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-PBhhCQdl.mjs +10 -0
- package/dist/{spectrum-BhjCVFZk.mjs → spectrum-BgOMd04u.mjs} +1 -1
- package/dist/{speed-CPgypY7n.mjs → speed-dahwVmv-.mjs} +1 -1
- package/dist/src-npcmT3gh.mjs +109 -0
- package/dist/{ssl-DsMrXyqK.mjs → ssl-BMZZPgJx.mjs} +4 -4
- package/dist/startup-profile-B0UCc9_J.mjs +2 -0
- package/dist/startup-profile-DrV846S5.mjs +17 -0
- package/dist/{state-BxCejn42.mjs → state-DhHOAdTo.mjs} +1 -1
- package/dist/state-Dyo8DcW7.mjs +2 -0
- package/dist/{stream-L2NmGPby.mjs → stream-CsQ8wMMF.mjs} +45 -45
- package/dist/{submit-KN0Ul5fV.mjs → submit-DdoTeeRt.mjs} +2 -2
- package/dist/{tags-CZMFKGdP.mjs → tags-BESTUjkv.mjs} +2 -2
- package/dist/telemetry-CVjp5qaj.mjs +2 -0
- package/dist/telemetry-iBZ-f6og.mjs +2 -0
- package/dist/{tenant-Cu4P-foo.mjs → tenant-COyp8x56.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-BdrnvyTk.mjs} +1 -1
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-LlzHD_86.mjs +2 -0
- package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CjDCYR0_.mjs} +15 -15
- package/dist/turnstile-crX-kMig.mjs +33 -0
- package/dist/ui-BQxRjahW.mjs +5 -0
- package/dist/update-check-BpLdkJeA.mjs +2 -0
- package/dist/update-check-CtmTFJ-O.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-7ikewAnp.mjs → url-info-CSU3TaVe.mjs} +2 -2
- package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-DKZYH3Tv.mjs} +1 -1
- package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-mtiMlSyE.mjs} +8 -8
- package/dist/{user-BFq8UM1s.mjs → user-DuDnsFvs.mjs} +1 -1
- package/dist/{values-DnBYV1ZD.mjs → values-B4gL0UvN.mjs} +2 -2
- package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-CEC7tpRJ.mjs} +15 -15
- package/dist/version-CPwqVR_p.mjs +2 -0
- package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-CosskYpi.mjs} +25 -25
- package/dist/{web-assets-CCSSW_JH.mjs → web-assets-Do2JEl4p.mjs} +1 -1
- package/dist/{web3-bbT1REPc.mjs → web3-C3sb4DR8.mjs} +1 -1
- package/dist/{workers-CXuyjZB8.mjs → workers-ByA4Nddg.mjs} +20 -20
- package/dist/{workers-builds-TRF3K416.mjs → workers-builds-CDE-wcw-.mjs} +7 -7
- package/dist/{workers-for-platforms-B57iKiSN.mjs → workers-for-platforms-CvZI2B1d.mjs} +11 -11
- package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-WbwBVV_L.mjs} +6 -6
- package/dist/{workflows-CKdPlIkK.mjs → workflows-Ch7cNhhq.mjs} +20 -20
- package/dist/{zaraz-BXFlEWSx.mjs → zaraz-BO7WT_U7.mjs} +1 -1
- package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CTKtzxxW.mjs} +466 -426
- package/dist/{zone-DHmrotGW.mjs → zone-DSHj2Vv2.mjs} +1 -1
- package/dist/{zones-C0eKBTqG.mjs → zones-CeFb9USG.mjs} +1 -1
- package/package.json +13 -11
- package/dist/access-C_2rEi0H.mjs +0 -27
- package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
- package/dist/auth-DJhSjNNL.mjs +0 -8
- package/dist/auth-sAorfdWU.mjs +0 -2
- package/dist/browser-extension-C48pKh3t.mjs +0 -15
- package/dist/build-1a8CiNIT.mjs +0 -2
- package/dist/build-Ca_drQY2.mjs +0 -2
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-CgaIc3zN.mjs +0 -13
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-CsZFRm3P.mjs +0 -2
- package/dist/command-DBz8QiFk.mjs +0 -2
- package/dist/config-B4vIa0zp.mjs +0 -2
- package/dist/data-security-DDhPnX8Z.mjs +0 -71
- package/dist/dev-CVD3BVUG.mjs +0 -4
- package/dist/dialog--iw0F2s-.mjs +0 -2
- package/dist/dist-CUUGKvjh.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
- package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
- package/dist/firewall-67qoXiqD.mjs +0 -56
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
- package/dist/kv-CA4J7cCq.mjs +0 -21
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CLW108XX.mjs +0 -5
- package/dist/login-xgRjiyJa.mjs +0 -2
- package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
- package/dist/oauth-Dzk6Gy-6.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/pages-pah6dZBJ.mjs +0 -60
- package/dist/precursor-DTTYLDEa.mjs +0 -4
- package/dist/previews-B89cUmpr.mjs +0 -4
- package/dist/progress-D_mL-Kcy.mjs +0 -2
- package/dist/prompt-sL_yMZbI.mjs +0 -3
- package/dist/r2-Chn_JQUM.mjs +0 -127
- package/dist/raw-fetch-lSVttVJF.mjs +0 -2
- package/dist/request-headers-POBKmu93.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-DtN51G2A.mjs +0 -2
- package/dist/run-oACgYK8I.mjs +0 -2
- package/dist/schema-DZSSJaY0.mjs +0 -2
- package/dist/shared-W9uoX1-W.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-BWEuIO-w.mjs +0 -523
- package/dist/src-Hw-TlVAO.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CSj_ezpk.mjs +0 -2
- package/dist/telemetry-DAf9gLyH.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/turnstile-39JL9tMt.mjs +0 -33
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-BKQBD4MQ.mjs +0 -2
- package/dist/update-check-CE9XB6gf.mjs +0 -2
- package/dist/version-Bh3b9vTa.mjs +0 -2
- /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-DqZgVSCT.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-Cq9k9Ye6.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-a01OfPf9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-Bw9qmxMx.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CDm_xzKt.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-BXGqY1Wi.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-AhGZD3a3.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-D_w5Gw20.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-BZzFam-Q.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-BPA8nSPM.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-De0UlXYN.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ziDz9frX.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-83D2DCCG.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-Dhol31Kn.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-DoOPs6Vd.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CxpGEnJb.mjs} +0 -0
|
@@ -1,63 +1,57 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-CxYne8s2.mjs";import{a as t,t as n}from"./context-5JRcefHh.mjs";import{r}from"./auth-3bFlHTVl.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-DUeNqM-j.mjs";import{t as s}from"./run-BhfDNWCI.mjs";import"./telemetry-iBZ-f6og.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-DV6YTdoa.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 queues consumers create <queue-id>
|
|
3
3
|
|
|
4
|
-
Creates a consumer for a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const g={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:ee,handler:async l=>s({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
4
|
+
Creates a consumer for a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const g={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:ee,handler:async l=>s({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.consumers.create({body:e,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}l.type===void 0&&(l.type=await p(`type`,`The type field`,[`worker`,`http_pull`])),l.type===`worker`&&l[`script-name`]===void 0&&(l[`script-name`]=await f(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)});i(await o(`Creating`,async()=>s.queues.consumers.create({body:h,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 queues consumers delete <consumer-id>
|
|
5
5
|
|
|
6
|
-
Deletes a consumer from a Queue.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource 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 v={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:_,handler:async c=>s({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
6
|
+
Deletes a consumer from a Queue.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource 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 v={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:_,handler:async c=>s({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers/${c[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(c[`consumer-id`]))}`,pathParams:{"consumer-id":String(c[`consumer-id`]??``),"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}i(await o(`Deleting`,async()=>s.queues.consumers.delete({account_id:l,queue_id:c[`queue-id`],consumer_id:c[`consumer-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 queues consumers get <consumer-id>
|
|
8
8
|
|
|
9
|
-
Returns a Queue consumer by identifier.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:y,handler:async c=>s({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
9
|
+
Returns a Queue consumer by identifier.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:y,handler:async c=>s({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers/${c[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(c[`consumer-id`]))}`,pathParams:{"consumer-id":String(c[`consumer-id`]??``),"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.consumers.get({account_id:l,queue_id:c[`queue-id`],consumer_id:c[`consumer-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 queues consumers list
|
|
10
10
|
|
|
11
|
-
Returns the consumers configured for a Queue.`).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Queue Consumers`,builder:x,handler:async c=>s({command:`queues consumers list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
11
|
+
Returns the consumers configured for a Queue.`).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Queue Consumers`,builder:x,handler:async c=>s({command:`queues consumers list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues consumers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.consumers.list({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 queues consumers update <consumer-id>
|
|
12
12
|
|
|
13
|
-
Replaces a Queue consumer, or creates it if it does not exist.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const w={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:C,handler:async l=>s({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
13
|
+
Replaces a Queue consumer, or creates it if it does not exist.`).positional(`consumer-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const w={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:C,handler:async l=>s({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/consumers/${l[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(l[`consumer-id`]))}`,pathParams:{"consumer-id":String(l[`consumer-id`]??``),"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.consumers.update({body:e,account_id:m,queue_id:l[`queue-id`],consumer_id:l[`consumer-id`]})),{successLabel:`Updated`});return}l.type===void 0&&(l.type=await p(`type`,`The type field`,[`worker`,`http_pull`])),l.type===`worker`&&l[`script-name`]===void 0&&(l[`script-name`]=await f(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)});i(await o(`Updating`,async()=>s.queues.consumers.update({body:h,account_id:m,queue_id:l[`queue-id`],consumer_id:l[`consumer-id`]})),{successLabel:`Updated`})})},T={command:`consumers`,describe:`Workers that automatically receive and process messages from a queue`,builder:e=>e.command(g).command(v).command(b).command(S).command(w).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function E(e){return e.usage(`$0 queues create
|
|
14
14
|
|
|
15
|
-
Creates a Queue in the account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`create`,describe:`Create Queue`,builder:E,handler:async l=>s({command:`queues create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
15
|
+
Creates a Queue in the account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`create`,describe:`Create Queue`,builder:E,handler:async l=>s({command:`queues create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.create({...e,account_id:p})),{successLabel:`Created`});return}l[`queue-name`]===void 0&&(l[`queue-name`]=await f(`queue-name`,`The queue_name field`));let m=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`)});i(await o(`Creating`,async()=>s.queues.create({...m,account_id:p})),{successLabel:`Created`})})};function O(e){return e.usage(`$0 queues delete <queue-id>
|
|
16
16
|
|
|
17
|
-
Deletes a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource 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 k={command:`delete <queue-id>`,describe:`Delete Queue`,builder:O,handler:async c=>s({command:`queues delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Deletes a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource 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 k={command:`delete <queue-id>`,describe:`Delete Queue`,builder:O,handler:async c=>s({command:`queues delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
|
|
18
18
|
`);return}i(await o(`Deleting`,async()=>s.queues.delete({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Deleted`})})};function A(e){return e.usage(`$0 queues edit <queue-id>
|
|
19
19
|
|
|
20
|
-
Updates part of a Queue's configuration.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`edit <queue-id>`,describe:`Update Queue`,builder:A,handler:async l=>s({command:`queues edit`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
20
|
+
Updates part of a Queue's configuration.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`edit <queue-id>`,describe:`Update Queue`,builder:A,handler:async l=>s({command:`queues edit`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.edit({body:e,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`});return}let p=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}});i(await o(`Updating`,async()=>s.queues.edit({body:p,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`})})};function M(e){return e.usage(`$0 queues get <queue-id>
|
|
21
21
|
|
|
22
|
-
Returns details about a specific Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <queue-id>`,describe:`Get Queue`,builder:M,handler:async c=>s({command:`queues get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
22
|
+
Returns details about a specific Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <queue-id>`,describe:`Get Queue`,builder:M,handler:async c=>s({command:`queues get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.get({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 queues list
|
|
23
23
|
|
|
24
|
-
Returns the queues owned by an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List Queues`,builder:P,handler:async c=>s({command:`queues list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
24
|
+
Returns the queues owned by an account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const F={command:`list`,describe:`List Queues`,builder:P,handler:async c=>s({command:`queues list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.list({account_id:l})),{successLabel:`Loaded`})})};function I(e){return e.usage(`$0 queues messages ack <queue-id>
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Acknowledges successfully processed Queue messages and retries messages that were not processed successfully.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`acks`,{type:`string`,description:`The acks field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`retries`,{type:`string`,description:`The retries field. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`ack <queue-id>`,describe:`Acknowledge + Retry Queue Messages`,builder:I,handler:async d=>s({command:`queues messages ack`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages ack`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/ack`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.ack({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({acks:l(d.acks,`acks`),retries:l(d.retries,`retries`)});i(await o(`Creating`,async()=>s.queues.messages.ack({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function R(e){return e.usage(`$0 queues messages bulk-push
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Pushes a batch of messages to a Queue.`).option(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delay-seconds`,{type:`number`,description:`The number of seconds to wait for attempting to deliver this batch to consumers`}).option(`messages`,{type:`string`,description:`The messages field. 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(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`bulk-push`,describe:`Push Message Batch`,builder:R,handler:async d=>s({command:`queues messages bulk-push`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages bulk-push`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/batch`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({delay_seconds:d[`delay-seconds`],messages:l(d.messages,`messages`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.bulkPush({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({delay_seconds:d[`delay-seconds`],messages:l(d.messages,`messages`)});i(await o(`Creating`,async()=>s.queues.messages.bulkPush({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function te(e){return e.usage(`$0 queues messages extend-leases <queue-id>
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Extends message leases without incrementing the messages' \`attempts\` counters. Each message receives a new lease identifier.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`extend`,{type:`string`,description:`The extend field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).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 B={command:`extend-leases <queue-id>`,describe:`Extend Message Leases`,builder:te,handler:async d=>s({command:`queues messages extend-leases`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queues messages extend-leases`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/extend`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({extend:l(d.extend,`extend`),visibility_timeout_ms:d[`visibility-timeout-ms`]}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queues.messages.extendLeases({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`});return}let p=u({extend:l(d.extend,`extend`),visibility_timeout_ms:d[`visibility-timeout-ms`]});i(await o(`Creating`,async()=>s.queues.messages.extendLeases({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Created`})})};function V(e){return e.usage(`$0 queues messages peek <queue-id>
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Peek messages from a Queue without leasing them. Each message includes a ref that can be passed to the purge endpoint, and remains available for subsequent peek or pull operations until it is purged.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).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:`peek <queue-id>`,describe:`Peek Queue Messages`,builder:V,handler:async l=>s({command:`queues messages peek`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages peek`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages/peek`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({batch_size:l[`batch-size`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.peek({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({batch_size:l[`batch-size`]});i(await o(`Creating`,async()=>s.queues.messages.peek({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function U(e){return e.usage(`$0 queues messages pull <queue-id>
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
Pulls a batch of messages from a Queue for an HTTP pull consumer.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const W={command:`pull <queue-id>`,describe:`Pull Queue Messages`,builder:U,handler:async l=>s({command:`queues messages pull`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages pull`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages/pull`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({batch_size:l[`batch-size`],visibility_timeout_ms:l[`visibility-timeout-ms`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.pull({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({batch_size:l[`batch-size`],visibility_timeout_ms:l[`visibility-timeout-ms`]});i(await o(`Creating`,async()=>s.queues.messages.pull({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function G(e){return e.usage(`$0 queues messages purge <queue-id>
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Delete messages from a Queue by using refs returned by the peek endpoint. Purging messages does not count as delivery and does not affect metrics.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`refs`,{type:`string`,description:`The refs field. 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 K={command:`purge <queue-id>`,describe:`Purge Peeked Queue Messages`,builder:G,handler:async d=>s({command:`queues messages purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},d,async()=>{if(d.dryRun){a({command:`cf queues messages purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${d[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(d[`queue-id`]))}/messages/purge`,pathParams:{"queue-id":String(d[`queue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({refs:l(d.refs,`refs`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,!await m({force:!!d.force,message:`This operation permanently deletes the selected messages from the Queue.`})){process.stderr.write(`Aborted.
|
|
37
|
+
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.queues.messages.purge({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`});return}if(d.refs===void 0)throw Error(`--refs is required (or pass --body with this field set).`);let p=u({refs:l(d.refs,`refs`)});i(await o(`Deleting`,async()=>s.queues.messages.purge({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`})})};function q(e){return e.usage(`$0 queues messages push <queue-id>
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
Pushes a message to a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delay-seconds`,{type:`number`,description:`The number of seconds to wait for attempting to deliver this message to consumers`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const J={command:`push <queue-id>`,describe:`Push Message`,builder:q,handler:async l=>s({command:`queues messages push`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues messages push`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/messages`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({delay_seconds:l[`delay-seconds`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.messages.push({body:e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}let f=u({delay_seconds:l[`delay-seconds`]});i(await o(`Creating`,async()=>s.queues.messages.push({body:f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Created`})})},Y={command:`messages`,describe:`Push messages to a queue and pull or acknowledge them from consumers`,builder:e=>e.command(L).command(z).command(B).command(H).command(W).command(K).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function X(e){return e.usage(`$0 queues metrics get <queue-id>
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
`);return}if(d.body){let e=c(d.body);i(await o(`Deleting`,async()=>s.queues.messages.purge({...e,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`});return}if(d.refs===void 0)throw Error(`--refs is required (or pass --body with this field set).`);let p=u({refs:l(d.refs,`refs`)});i(await o(`Deleting`,async()=>s.queues.messages.purge({...p,account_id:f,queue_id:d[`queue-id`]})),{successLabel:`Deleted`})})};function Z(e){return e.usage(`$0 queues messages push <queue-id>
|
|
41
|
+
Returns best-effort metrics for a Queue. Values may be approximate due to the distributed nature of Queues.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Z={command:`get <queue-id>`,describe:`Get Queue Metrics`,builder:X,handler:async c=>s({command:`queues metrics get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues metrics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/metrics`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.metrics.get({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})},Q={command:`metrics`,describe:`Operations for metrics`,builder:e=>e.command(Z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ne(e){return e.usage(`$0 queues purge start <queue-id>
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Starts a purge that deletes all messages from a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`delete-messages-permanently`,{type:`boolean`,description:`Confirms that all messages will be permanently deleted.`}).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 re={command:`start <queue-id>`,describe:`Purge Queue`,builder:ne,handler:async l=>s({command:`queues purge start`,classification:{safeFlags:[`delete-messages-permanently`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){a({command:`cf queues purge start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/purge`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({delete_messages_permanently:l[`delete-messages-permanently`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await n();if(l.accountId=d,!await m({force:!!l.force,message:`This operation drops every message in the queue.`})){process.stderr.write(`Aborted.
|
|
44
|
+
`);return}if(l.body){let e=c(l.body);i(await o(`Deleting`,async()=>s.queues.purge.start({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`});return}let f=u({delete_messages_permanently:l[`delete-messages-permanently`]});i(await o(`Deleting`,async()=>s.queues.purge.start({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`})})};function ie(e){return e.usage(`$0 queues purge status <queue-id>
|
|
44
45
|
|
|
45
|
-
Returns
|
|
46
|
+
Returns the status of a Queue purge operation.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`status <queue-id>`,describe:`Get Queue Purge Status`,builder:ie,handler:async c=>s({command:`queues purge status`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues purge status`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${c[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(c[`queue-id`]))}/purge`,pathParams:{"queue-id":String(c[`queue-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.purge.status({account_id:l,queue_id:c[`queue-id`]})),{successLabel:`Loaded`})})},oe={command:`purge`,describe:`Remove all pending messages from a queue`,builder:e=>e.command(re).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function se(e){return e.usage(`$0 queues subscriptions create
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
`);return}if(l.body){let e=c(l.body);i(await o(`Deleting`,async()=>s.queues.purge.start({...e,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`});return}let f=u({delete_messages_permanently:l[`delete-messages-permanently`]});i(await o(`Deleting`,async()=>s.queues.purge.start({...f,account_id:d,queue_id:l[`queue-id`]})),{successLabel:`Deleted`})})};function ce(e){return e.usage(`$0 queues purge status <queue-id>
|
|
48
|
+
Creates an event subscription for a Queue.`).option(`destination-queue-id`,{type:`string`,description:`ID of the target queue`}).option(`destination-type`,{type:`string`,description:`Type of destination`,choices:[`queues.queue`]}).option(`enabled`,{type:`boolean`,description:`Whether the subscription is active`}).option(`events`,{type:`string`,array:!0,description:`List of event types this subscription handles`}).option(`name`,{type:`string`,description:`Name of the subscription`}).option(`source-type`,{type:`string`,description:`Type of source`,choices:[`images`,`kv`,`r2`,`superSlurper`,`vectorize`,`workersAi.model`,`workersBuilds.worker`,`workers.script`,`workflows.workflow`]}).option(`source-model-name`,{type:`string`,description:`Name of the Workers AI model`}).option(`source-worker-name`,{type:`string`,description:`Name of the worker`}).option(`source-script-tag`,{type:`string`,description:`Tag of the Worker script`}).option(`source-workflow-name`,{type:`string`,description:`Name of the workflow`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`source-model-name`,[`source-worker-name`,`source-script-tag`,`source-workflow-name`]).conflicts(`source-worker-name`,[`source-model-name`,`source-script-tag`,`source-workflow-name`]).conflicts(`source-script-tag`,[`source-model-name`,`source-worker-name`,`source-workflow-name`]).conflicts(`source-workflow-name`,[`source-model-name`,`source-worker-name`,`source-script-tag`]).check(e=>{if([`destination-queue-id`,`destination-type`].some(t=>e[t]!==void 0)){let t=[`destination-queue-id`,`destination-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --destination-* flag is set`)}return!0})}const ce={command:`create`,describe:`Create Event Subscription`,builder:se,handler:async l=>s({command:`queues subscriptions create`,classification:{safeFlags:[`destination-type`,`enabled`,`source-type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_subscriptions/subscriptions`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`),source:{type:d(l[`source-type`],`source-type`,`text`),model_name:d(l[`source-model-name`],`source-model-name`,`text`),worker_name:d(l[`source-worker-name`],`source-worker-name`,`text`),script_tag:d(l[`source-script-tag`],`source-script-tag`,`text`),workflow_name:d(l[`source-workflow-name`],`source-workflow-name`,`text`)}}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.subscriptions.create({...e,account_id:f})),{successLabel:`Created`});return}let p=u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`),source:{type:d(l[`source-type`],`source-type`,`text`),model_name:d(l[`source-model-name`],`source-model-name`,`text`),worker_name:d(l[`source-worker-name`],`source-worker-name`,`text`),script_tag:d(l[`source-script-tag`],`source-script-tag`,`text`),workflow_name:d(l[`source-workflow-name`],`source-workflow-name`,`text`)}});i(await o(`Creating`,async()=>s.queues.subscriptions.create({...p,account_id:f})),{successLabel:`Created`})})};function le(e){return e.usage(`$0 queues subscriptions delete <subscription-id>
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
Deletes an existing Queue event subscription.`).positional(`subscription-id`,{type:`string`,description:`A Resource 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 ue={command:`delete <subscription-id>`,describe:`Delete Event Subscription`,builder:le,handler:async c=>s({command:`queues subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf queues subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_subscriptions/subscriptions/${c[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(c[`subscription-id`]))}`,pathParams:{"subscription-id":String(c[`subscription-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();if(c.accountId=l,!await m({force:!!c.force})){process.stderr.write(`Aborted.
|
|
51
|
+
`);return}i(await o(`Deleting`,async()=>s.queues.subscriptions.delete({account_id:l,subscription_id:c[`subscription-id`]})),{successLabel:`Deleted`})})};function de(e){return e.usage(`$0 queues subscriptions get <subscription-id>
|
|
51
52
|
|
|
52
|
-
|
|
53
|
+
Returns an existing Queue event subscription.`).positional(`subscription-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <subscription-id>`,describe:`Get Event Subscription`,builder:de,handler:async c=>s({command:`queues subscriptions get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf queues subscriptions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_subscriptions/subscriptions/${c[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(c[`subscription-id`]))}`,pathParams:{"subscription-id":String(c[`subscription-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.queues.subscriptions.get({account_id:l,subscription_id:c[`subscription-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 queues subscriptions list
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
`);return}i(await o(`Deleting`,async()=>s.queues.subscriptions.delete({account_id:l,subscription_id:c[`subscription-id`]})),{successLabel:`Deleted`})})};function me(e){return e.usage(`$0 queues subscriptions get <subscription-id>
|
|
55
|
+
Returns a paginated list of Queue event subscriptions with optional sorting and filtering.`).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`order`,{type:`string`,description:`Field to sort by`,choices:[`created_at`,`name`,`enabled`,`source`]}).option(`direction`,{type:`string`,description:`Sort direction`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Event Subscriptions`,builder:h(pe),handler:async c=>s({command:`queues subscriptions list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],order:c.order,direction:c.direction};if(c.dryRun){a({command:`cf queues subscriptions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_subscriptions/subscriptions`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await n();c.accountId=u,i(await o(`Loading`,async()=>l.queues.subscriptions.list({account_id:u,...s})),{successLabel:`Loaded`})})};function me(e){return e.usage(`$0 queues subscriptions update <subscription-id>
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Returns a paginated list of Queue event subscriptions with optional sorting and filtering.`).option(`page`,{type:`number`,description:`Page number for pagination`}).option(`per-page`,{type:`number`,description:`Number of items per page`}).option(`order`,{type:`string`,description:`Field to sort by`,choices:[`created_at`,`name`,`enabled`,`source`]}).option(`direction`,{type:`string`,description:`Sort direction`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _e={command:`list`,describe:`List Event Subscriptions`,builder:h(ge),handler:async c=>s({command:`queues subscriptions list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},c,async()=>{let s={page:c.page,per_page:c[`per-page`],order:c.order,direction:c.direction};if(c.dryRun){a({command:`cf queues subscriptions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.queues.subscriptions.list({account_id:u,...s})),{successLabel:`Loaded`})})};function ve(e){return e.usage(`$0 queues subscriptions update <subscription-id>
|
|
60
|
-
|
|
61
|
-
Updates an existing Queue event subscription.`).positional(`subscription-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`destination-queue-id`,{type:`string`,description:`ID of the target queue`}).option(`destination-type`,{type:`string`,description:`Type of destination`,choices:[`queues.queue`]}).option(`enabled`,{type:`boolean`,description:`Whether the subscription is active`}).option(`events`,{type:`string`,array:!0,description:`List of event types this subscription handles`}).option(`name`,{type:`string`,description:`Name of the subscription`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`destination-queue-id`,`destination-type`].some(t=>e[t]!==void 0)){let t=[`destination-queue-id`,`destination-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --destination-* flag is set`)}return!0})}const ye={command:`update <subscription-id>`,describe:`Update Event Subscription`,builder:ve,handler:async l=>s({command:`queues subscriptions update`,classification:{safeFlags:[`destination-type`,`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues subscriptions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/event_subscriptions/subscriptions/${l[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(l[`subscription-id`]))}`,pathParams:{"subscription-id":String(l[`subscription-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.subscriptions.update({...e,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`});return}let p=u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)});i(await o(`Updating`,async()=>s.queues.subscriptions.update({...p,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`})})},be={command:`subscriptions`,describe:`Manage queue subscriptions for event-driven message routing`,builder:e=>e.command(fe).command($).command(he).command(_e).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function xe(e){return e.usage(`$0 queues update <queue-id>
|
|
62
|
-
|
|
63
|
-
Replaces a Queue's configuration with the supplied configuration. This endpoint does not support partial updates.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).option(`queue-name`,{type:`string`,description:`The queue_name field`}).option(`settings-delivery-delay`,{type:`number`,description:`Number of seconds to delay delivery of all messages to consumers.`}).option(`settings-delivery-paused`,{type:`boolean`,description:`Indicates if message delivery to consumers is currently paused.`}).option(`settings-message-retention-period`,{type:`number`,description:`Number of seconds after which an unconsumed message will be delayed.`}).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 Se={command:`update <queue-id>`,describe:`Update Queue`,builder:xe,handler:async l=>s({command:`queues update`,classification:{safeFlags:[`jurisdiction`,`settings-delivery-paused`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}}):c(l.body)});return}let s=await r(l),f=l.local?e:await t();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.update({body:e,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`});return}let p=u({jurisdiction:d(l.jurisdiction,`jurisdiction`,`text`),queue_name:d(l[`queue-name`],`queue-name`,`text`),settings:{delivery_delay:l[`settings-delivery-delay`],delivery_paused:l[`settings-delivery-paused`],message_retention_period:l[`settings-message-retention-period`]}});i(await o(`Updating`,async()=>s.queues.update({body:p,account_id:f,queue_id:l[`queue-id`]})),{successLabel:`Updated`})})},Ce={command:`queues`,describe:`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,builder:e=>e.command(D).command(k).command(j).command(N).command(F).command(Se).command(T).command(ne).command(ae).command(ue).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ce as default};
|
|
57
|
+
Updates an existing Queue event subscription.`).positional(`subscription-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`destination-queue-id`,{type:`string`,description:`ID of the target queue`}).option(`destination-type`,{type:`string`,description:`Type of destination`,choices:[`queues.queue`]}).option(`enabled`,{type:`boolean`,description:`Whether the subscription is active`}).option(`events`,{type:`string`,array:!0,description:`List of event types this subscription handles`}).option(`name`,{type:`string`,description:`Name of the subscription`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).check(e=>{if([`destination-queue-id`,`destination-type`].some(t=>e[t]!==void 0)){let t=[`destination-queue-id`,`destination-type`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --destination-* flag is set`)}return!0})}const he={command:`update <subscription-id>`,describe:`Update Event Subscription`,builder:me,handler:async l=>s({command:`queues subscriptions update`,classification:{safeFlags:[`destination-type`,`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues subscriptions update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/event_subscriptions/subscriptions/${l[`subscription-id`]==null?`<subscription-id>`:encodeURIComponent(String(l[`subscription-id`]))}`,pathParams:{"subscription-id":String(l[`subscription-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),f=l.local?e:await n();if(l.accountId=f,l.body){let e=c(l.body);i(await o(`Updating`,async()=>s.queues.subscriptions.update({...e,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`});return}let p=u({destination:{queue_id:d(l[`destination-queue-id`],`destination-queue-id`,`text`),type:d(l[`destination-type`],`destination-type`,`text`)},enabled:l.enabled,events:l.events,name:d(l.name,`name`,`text`)});i(await o(`Updating`,async()=>s.queues.subscriptions.update({...p,account_id:f,subscription_id:l[`subscription-id`]})),{successLabel:`Updated`})})},ge={command:`subscriptions`,describe:`Manage queue subscriptions for event-driven message routing`,builder:e=>e.command(ce).command(ue).command(fe).command($).command(he).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_e={command:`queues`,describe:`Reliable message queuing between Workers — produce, consume, and batch-process messages at scale`,builder:e=>e.command(D).command(k).command(j).command(N).command(F).command(T).command(Y).command(Q).command(oe).command(ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_e as default};
|