cf 1.0.0-beta.15 → 1.0.0-beta.16
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 +3797 -3220
- package/dist/_meta/hand-written-commands.json +2 -2
- package/dist/_meta/schemas.json +4768 -4250
- package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-17K-TRhO.mjs} +1 -1
- package/dist/{access-BzmXSwzj.mjs → access-BwB7sg1D.mjs} +1 -1
- package/dist/{account-tags-2qPWbW17.mjs → account-tags-povXTDAu.mjs} +1 -1
- package/dist/{accounts-B0Byg-AV.mjs → accounts-BnIGu_ac.mjs} +39 -39
- package/dist/{acm-DgAu0cnk.mjs → acm-CQRcu_zw.mjs} +3 -3
- package/dist/{addressing-J1oa0ML2.mjs → addressing-Qcm9jd3C.mjs} +14 -14
- package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-B3xN9I6-.mjs} +1 -1
- package/dist/{ai-WY7wVQfA.mjs → ai-BRKOCckA.mjs} +1 -1
- package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-Cd9Rc2Fc.mjs} +1 -1
- package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-BWU5064V.mjs} +6 -6
- package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CJ3b8eot.mjs} +23 -23
- package/dist/{ai-security-BIsvFPYV.mjs → ai-security-Dn0Ee6QS.mjs} +1 -1
- package/dist/{alerting-MHhv28oO.mjs → alerting-BXTiMfXo.mjs} +1 -1
- package/dist/{analytics-BfBz7bqB.mjs → analytics-Jyd04TRW.mjs} +1 -1
- package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-CzrNfUeh.mjs} +2 -2
- package/dist/{api-security-DUCfcdC1.mjs → api-security-DRBHZaf_.mjs} +2 -2
- package/dist/{argo-CUlzI4v3.mjs → argo-DiQt0pSb.mjs} +1 -1
- package/dist/{artifacts-BLfWGzBg.mjs → artifacts-eBZ4YN53.mjs} +1 -1
- package/dist/audit-logs-Bb4HTZay.mjs +4 -0
- package/dist/{auth-CGRemu5W.mjs → auth-C6My1gI6.mjs} +1 -1
- package/dist/auth-OFqV2M4q.mjs +2 -0
- package/dist/{auth-C6u9qIGO.mjs → auth-eVI_UEt8.mjs} +1 -1
- package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cfj2yehs.mjs} +1 -1
- package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-Cwk1RSMX.mjs} +1 -1
- package/dist/{billing-NxehgXrR.mjs → billing-CfV8oi6A.mjs} +7 -7
- package/dist/{bot-management-C993iQKL.mjs → bot-management-CH4_Kewx.mjs} +1 -1
- package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-Cg_Wp8ei.mjs} +1 -1
- package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-Cp2ckWou.mjs} +1 -1
- package/dist/browser-run-CfQ30dB6.mjs +42 -0
- package/dist/{builds-DqtiTH7p.mjs → builds-B2RBgVL9.mjs} +1 -1
- package/dist/{cache-hX5QxmI0.mjs → cache-yvrYPvRI.mjs} +1 -1
- package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BdMRaOnD.mjs} +1 -1
- package/dist/{cli-R8h3OKZI.mjs → cli-CsnoQloF.mjs} +1 -1
- package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-CuWGvZSr.mjs} +1 -1
- package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-D50iZjd_.mjs} +1 -1
- package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-wvSGdxWT.mjs} +1 -1
- package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-j6vlmaMB.mjs} +21 -21
- package/dist/{command-0BOb1pgV.mjs → command-74P4_CTx.mjs} +1 -1
- package/dist/{command-BIsI-mMX.mjs → command-BDpm-U8z.mjs} +1 -1
- package/dist/{command-BG-kLOnS.mjs → command-BSbhJRmu.mjs} +1 -1
- package/dist/{command-DIs-Nqtl.mjs → command-BbO3sBQ2.mjs} +1 -1
- package/dist/{command-BCJN-ZM2.mjs → command-CM_f48gs.mjs} +1 -1
- package/dist/{command-BWQIKu6I.mjs → command-CmUtmu5j.mjs} +1 -1
- package/dist/{command-BKDbbA-L.mjs → command-DFRsim8q.mjs} +1 -1
- package/dist/{command-DPn5ANHs.mjs → command-DQojhTEQ.mjs} +1 -1
- package/dist/{command-CKW6UhTh.mjs → command-DiqRELHF.mjs} +1 -1
- package/dist/{command-Bdy69UFU.mjs → command-Dr4PEvB2.mjs} +1 -1
- package/dist/{completions-CpNGTlUX.mjs → completions-oD1EcuHk.mjs} +1 -1
- package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-DP4rbOe8.mjs} +1 -1
- package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-BQGBQwzR.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-DBO0Mdcj.mjs} +1 -1
- package/dist/{connectors-CORKD31m.mjs → connectors-BSVr3Kz1.mjs} +1 -1
- package/dist/{containers-Di3_Vopq.mjs → containers-BOpKpipz.mjs} +1 -1
- package/dist/{containers-BboUbx3k.mjs → containers-BTqAeVV2.mjs} +5 -5
- package/dist/{content-scan-DXGREAXa.mjs → content-scan-B9Keyxe-.mjs} +1 -1
- package/dist/{context-A6T-NKPI.mjs → context-B-vEsyrK.mjs} +1 -1
- package/dist/{cps-1BoOLtTq.mjs → cps-VRP794c5.mjs} +1 -1
- package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
- package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-Y9vfa6Fo.mjs} +1 -1
- package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CojTEC0E.mjs} +4 -4
- package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-DM5X-K6H.mjs} +3 -3
- package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-BBjqaiFF.mjs} +6 -6
- package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-C0NDMLPJ.mjs} +1 -1
- package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-M4RUxcn6.mjs} +6 -6
- package/dist/{d1-DujBmzLa.mjs → d1-hin5PmxW.mjs} +1 -1
- package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-KOO8syyQ.mjs} +1 -1
- package/dist/{deploy-wNujfGUJ.mjs → deploy-Bo7FtE44.mjs} +1 -1
- package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-ClvBD87y.mjs} +1 -1
- package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-LZuMrGjK.mjs} +1 -1
- package/dist/{dls-CWm1HRF0.mjs → dls-Bq8k3iy-.mjs} +7 -7
- package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-zavP5Qxj.mjs} +1 -1
- package/dist/{dns-CjAFU7Z9.mjs → dns-ry5E2Bsa.mjs} +5 -5
- package/dist/{docs-C5XB7HdG.mjs → docs-B08YtL0U.mjs} +1 -1
- package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-B9fo41B1.mjs} +1 -1
- package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-D9LGjFlh.mjs} +1 -1
- package/dist/{email-routing-CVF6SwQt.mjs → email-routing-6iDnNPhY.mjs} +4 -4
- package/dist/{email-security-mYZtazae.mjs → email-security-ty4ufRnJ.mjs} +1 -1
- package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-d7LO_Cz_.mjs} +14 -14
- package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
- package/dist/{firewall-DgTDsYOt.mjs → firewall-Q88YyEwD.mjs} +11 -11
- package/dist/{flagship-Db3PxxyZ.mjs → flagship-CzI8zhd6.mjs} +1 -1
- package/dist/{fraud-BEOQczy8.mjs → fraud-CvFXTR0w.mjs} +1 -1
- package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-Y2zbyey8.mjs} +1 -1
- package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-4Hz-6xYi.mjs} +7 -7
- package/dist/{hostnames-DU0k-xO9.mjs → hostnames-B3k7fIUL.mjs} +1 -1
- package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-BWGYz95H.mjs} +3 -3
- package/dist/{iam-96CYM8Vw.mjs → iam-AXco_qmt.mjs} +1 -1
- package/dist/{images-AB9EgZgT.mjs → images-BzYh8y0u.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-D2nPoW4f.mjs → init-DlenHBtS.mjs} +1 -1
- package/dist/{intel-BKb4RLvS.mjs → intel-BBi3i_GU.mjs} +1 -1
- package/dist/{ips-z9APCV_b.mjs → ips-CWG2b7AM.mjs} +1 -1
- package/dist/{k2-Bv-HiJ29.mjs → k2-DXdMe3Cb.mjs} +1 -1
- package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-B4ta_OGS.mjs} +4 -4
- package/dist/{keys-BhngDsDa.mjs → keys-B9zvFzrf.mjs} +1 -1
- package/dist/{kv-CB5MQVGP.mjs → kv-FUd7UdDu.mjs} +3 -3
- package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
- package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-BufVA9vL.mjs} +3 -3
- package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
- package/dist/{login-CiQGR8ha.mjs → login-BJr2PBaJ.mjs} +1 -1
- package/dist/{login-Ik98G4K6.mjs → login-DVbXZ_Tv.mjs} +1 -1
- package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-BluaPvMa.mjs} +1 -1
- package/dist/{logos-BL6ohIMH.mjs → logos-CXtmYWEJ.mjs} +1 -1
- package/dist/{logpush-UVopW68t.mjs → logpush-DCYgrqz0.mjs} +6 -6
- package/dist/{logs-BVfxiEiM.mjs → logs-as60IP29.mjs} +1 -1
- package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-0RsHugUF.mjs} +1 -1
- package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-CPqvZdcb.mjs} +1 -1
- package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-ClPyGzOE.mjs} +1 -1
- package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-P4_QWSbK.mjs} +5 -5
- package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-CUwQXMij.mjs} +1 -1
- package/dist/{matches-BL_Y-9Yq.mjs → matches-BjckDBW1.mjs} +1 -1
- package/dist/{mcp-BWp5Q09R.mjs → mcp-C2EG2c7L.mjs} +1 -1
- package/dist/{mesh-lFPLRWhV.mjs → mesh-CpMZA7Xt.mjs} +1 -1
- package/dist/{monetization-BIc4Bwo2.mjs → monetization-DypuCZmU.mjs} +1 -1
- package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-B5AWTU6u.mjs} +1 -1
- package/dist/{network-Wig0qbaC.mjs → network-DQ5Ridgy.mjs} +1 -1
- package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-ifU4JhGE.mjs} +1 -1
- package/dist/{o11y-Bhy4qDRm.mjs → o11y-CzssfRHt.mjs} +2 -2
- package/dist/{oauth-oWaW7ICv.mjs → oauth-BDdhqasa.mjs} +1 -1
- package/dist/{oauth-CfEedDZi.mjs → oauth-BNTiErBG.mjs} +1 -1
- package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-gknNcBdV.mjs} +1 -1
- package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-BJeSanuF.mjs} +1 -1
- package/dist/{organization-QdAQTrKa.mjs → organization-CXAM41sd.mjs} +3 -3
- package/dist/{organizations-CgAQYdK5.mjs → organizations-kfFFW4uO.mjs} +1 -1
- package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-DwhYV3m_.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-DfrnptJ1.mjs} +1 -1
- package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-COSxTc2q.mjs} +6 -6
- package/dist/{page-rules-CgMkC6YR.mjs → page-rules-ByrDMDBZ.mjs} +5 -5
- package/dist/{pages-CkBtOOf8.mjs → pages-DuGcBC6k.mjs} +9 -9
- package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-B3_Gn9Cj.mjs} +1 -1
- package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-49EXt75f.mjs} +1 -1
- package/dist/{pipelines-CnO9CCs0.mjs → pipelines-Bvgh1BQZ.mjs} +1 -1
- package/dist/{precursor-Bc55XJdQ.mjs → precursor-VobQf--m.mjs} +1 -1
- package/dist/{previews-C7vZrajd.mjs → previews-DkwFHNRx.mjs} +1 -1
- package/dist/{progress-D5po7ScB.mjs → progress-R-1tIuep.mjs} +1 -1
- package/dist/{prompt-BAJpE3jV.mjs → prompt-dgLm0iFJ.mjs} +1 -1
- package/dist/{queries-BJAH4B74.mjs → queries-EbIadtC5.mjs} +1 -1
- package/dist/{queues-D4G8vvwi.mjs → queues-C4GZ-O3f.mjs} +4 -4
- package/dist/{r2-CJ8rD6Jb.mjs → r2-DEuFfWBR.mjs} +4 -4
- package/dist/{radar-DgaxOdcd.mjs → radar-CDOERVcR.mjs} +1 -1
- package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-BapeoreV.mjs} +1 -1
- package/dist/{realtime-DU09m7L7.mjs → realtime-D_A9Qgly.mjs} +6 -6
- package/dist/{registrar-Cj7OfvGs.mjs → registrar-X1YLlnmg.mjs} +1 -1
- package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BF3cYO3n.mjs} +1 -1
- package/dist/reporting-BWm9jIF8.mjs +14 -0
- package/dist/{request-headers-D_eQn93b.mjs → request-headers-BRxv6NkA.mjs} +1 -1
- package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-CHWpiejG.mjs} +1 -1
- package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-C186jZv0.mjs} +1 -1
- package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-BTagOZli.mjs} +1 -1
- package/dist/{rules-CcwPngVo.mjs → rules-DYnGIU_0.mjs} +10 -10
- package/dist/{rulesets-CfdruY82.mjs → rulesets-BcNrbVcq.mjs} +15 -15
- package/dist/{rum-RLkdfSL7.mjs → rum-BDyRecfp.mjs} +1 -1
- package/dist/{run-DASYqJsY.mjs → run-BvDCuZ8q.mjs} +1 -1
- package/dist/run-roYb_Odh.mjs +2 -0
- package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
- package/dist/{scim-BZYsTPIL.mjs → scim-zn-CNCsc.mjs} +1 -1
- package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-CFhyQUV6.mjs} +1 -1
- package/dist/{security-insights-BVBEaZmD.mjs → security-insights-D8XgtCed.mjs} +1 -1
- package/dist/{security-txt--IoHrHee.mjs → security-txt-CCM-Vro0.mjs} +1 -1
- package/dist/{shared-zNQNv1im.mjs → shared-ouAF7o4S.mjs} +1 -1
- package/dist/{smart-shield-CByC4_60.mjs → smart-shield-DwW7N92r.mjs} +5 -5
- package/dist/{snippets-DB-jiZAV.mjs → snippets-B2jBY0m_.mjs} +1 -1
- package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-Cf_4cGE8.mjs} +9 -9
- package/dist/{speed-Bq4evEnJ.mjs → speed-DoXdyIYK.mjs} +1 -1
- package/dist/{sql-XGci7hZC.mjs → sql-Bze4h80q.mjs} +1 -1
- package/dist/{src-GiuwAT55.mjs → src-BguQDHjS.mjs} +7 -7
- package/dist/{ssl-KJTLW1NR.mjs → ssl-u_0gUhPA.mjs} +5 -5
- package/dist/{stream-BotgYspF.mjs → stream-BcReYIHJ.mjs} +8 -8
- package/dist/{submit-C5VytaHP.mjs → submit-ldFVNfNC.mjs} +1 -1
- package/dist/{tags-3Hq-B9qp.mjs → tags-D_Hc_A-r.mjs} +1 -1
- package/dist/{telemetry-3FJOXl_C.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
- package/dist/telemetry-Ct_2AaO4.mjs +2 -0
- package/dist/{tenant-BgX5onPc.mjs → tenant-AZ0EAsmT.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-aozjaasc.mjs} +2 -2
- package/dist/{tunnels-CThOI3qH.mjs → tunnels-CXez5LPB.mjs} +3 -3
- package/dist/{turnstile-BgZaUx-g.mjs → turnstile-B2NQ8Nsk.mjs} +1 -1
- package/dist/{update-check-jb89ih_g.mjs → update-check-BlyKN8m0.mjs} +1 -1
- package/dist/update-check-BnGDxswi.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-DQERN0Xq.mjs → url-info-D_UqGiWD.mjs} +1 -1
- package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-CF1YHpIN.mjs} +1 -1
- package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-ChF3GO2U.mjs} +1 -1
- package/dist/{user-CdKzIuSi.mjs → user-BfWRsdJh.mjs} +58 -58
- package/dist/{values-EwA8Sx0w.mjs → values-CLfxkAUJ.mjs} +1 -1
- package/dist/{vectorize-DejgIJIv.mjs → vectorize-CRYbWKg5.mjs} +1 -1
- package/dist/version-CVlh2Zaq.mjs +2 -0
- package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-Crp7MVd9.mjs} +18 -18
- package/dist/{web-assets-iglnzkTV.mjs → web-assets-CgyrPnT-.mjs} +1 -1
- package/dist/{web3-JBUU6IVt.mjs → web3-Cd0Yd0eQ.mjs} +11 -11
- package/dist/{workers-CDp4kLTJ.mjs → workers-CTwJpTfJ.mjs} +2 -2
- package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-f2nVw7EZ.mjs} +1 -1
- package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-DjeKp2uy.mjs} +1 -1
- package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-B_L3TEg2.mjs} +1 -1
- package/dist/{workflows-DN_VqWJC.mjs → workflows-CBPGf65x.mjs} +1 -1
- package/dist/{zaraz-DDErl5yc.mjs → zaraz-3VDxl0gF.mjs} +1 -1
- package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-B9xY8zcn.mjs} +27 -27
- package/dist/{zone-BsGvedmN.mjs → zone-CmwVqTI2.mjs} +1 -1
- package/dist/{zones-l_sRKrVl.mjs → zones-Bf0VVpMf.mjs} +3 -3
- package/package.json +3 -2
- package/dist/alerts-BSON-vFh.mjs +0 -2
- package/dist/audit-logs-CsfIm2QS.mjs +0 -4
- package/dist/auth-8Sm4uLGM.mjs +0 -2
- package/dist/autorag-kNrLiqDX.mjs +0 -2
- package/dist/brands-bBJgbbOH.mjs +0 -2
- package/dist/browser-extension-C1_fcw7h.mjs +0 -2
- package/dist/browser-run-CEptKZYl.mjs +0 -42
- package/dist/clear-BW9vLgI3.mjs +0 -2
- package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
- package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
- package/dist/csamScanner-CHfbfeup.mjs +0 -10
- package/dist/domain-info-BkcBcyfF.mjs +0 -2
- package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
- package/dist/health-CTaCeVyC.mjs +0 -2
- package/dist/internal-BYS7hO8c.mjs +0 -2
- package/dist/live-BJE_YWE1.mjs +0 -2
- package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
- package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
- package/dist/rate-limits-Cr2zpncO.mjs +0 -2
- package/dist/ready-B3pLxnjc.mjs +0 -2
- package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
- package/dist/refute-Dp3VodMn.mjs +0 -2
- package/dist/reporting-3kDVF5c8.mjs +0 -14
- package/dist/run-CUNhH5CQ.mjs +0 -2
- package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
- package/dist/scan-page-CxeudOzj.mjs +0 -2
- package/dist/search-B_P5ZTQj.mjs +0 -2
- package/dist/signed-url-D5RwvrQq.mjs +0 -2
- package/dist/submission-info-_t78q2OE.mjs +0 -2
- package/dist/telemetry-BhKfwxyh.mjs +0 -2
- package/dist/total-queries-CPrKEciQ.mjs +0 -2
- package/dist/tracked-domains-CTRItgFT.mjs +0 -2
- package/dist/update-check-Yy7Ivq2V.mjs +0 -2
- package/dist/verify-5KcvRk-q.mjs +0 -2
- package/dist/version-B6MnUIqV.mjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{n as r}from"./version-
|
|
2
|
+
import{t as e}from"./theme-BGHWSKCw.mjs";import{r as t,t as n}from"./session-Cq3YNLoI.mjs";import{n as r}from"./version-CVlh2Zaq.mjs";import{a as i}from"./dist-uRuGmkMB.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||t()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!e()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,t){if(!c())return t();n(r);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let n=await t();return o.clear(),a.stop(e),n}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./session-Cq3YNLoI.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r}from"./version-
|
|
2
|
+
import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./session-Cq3YNLoI.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r}from"./version-CVlh2Zaq.mjs";import{i,o as a,r as o,s,t as c}from"./dist-uRuGmkMB.mjs";import{n as l}from"./interactive-BW9T1D1q.mjs";function u(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function d(){t(r)}async function f(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
|
|
3
3
|
`)?t.slice(0,-1):t}async function p(e,t,r){let i=r?.kind??`text`;if(l()){if(i===`secret`){let t=await f();if(t.length>0)return t;throw Error(`--${e} is required. Pipe the value via stdin, pass --${e} <value>, or run interactively.`)}throw Error(`--${e} is required. Pass --${e} <value> or run interactively.`)}let c=`Enter value for --${e}`,u=t||r?.question||c,p=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;d();let m=i===`secret`?await o({message:u,mask:`•`,validate:p}):await a({message:u,validate:p});if(s(m)||typeof m!=`string`)throw new n(130,{cancelled:!0});return m}async function m(e,t,r,a={}){let o=u(e),c=r.map(u);if(l())throw Error(`--${o} is required (one of: ${c.join(`, `)}). Pass --${o} <value> or run interactively.`);let f=`Select value for --${o}`,p=u(t||f);d();let m=await i({message:p,options:r.map(e=>({value:e,label:u((Object.hasOwn(a,e)?a[e]:void 0)??e)}))});if(s(m)||typeof m!=`string`)throw new n(130,{cancelled:!0});return m}async function h(e,t){if(l())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);d();let r=await c({message:t||`Confirm --${e}`,initialValue:!1});if(s(r))throw new n(130,{cancelled:!0});return r===!0}async function g(e,{defaultValue:t=!0,fallbackValue:r=!0}={}){if(l())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;d();let i=await c({message:e,initialValue:t});if(s(i))throw new n(130,{cancelled:!0});return i===!0}async function _(t={}){if(t.force===!0)return!0;let r=t.message?`${t.message} Continue?`:`This permanently deletes the resource. Continue?`;if(l())throw process.stderr.write(`${e.warning(`?`)} ${r}\n ${e.muted(`(non-interactive; pass --force to confirm)`)}\nAborted.
|
|
4
4
|
`),new n(1);d();let i=await c({message:r,initialValue:!1});if(s(i))throw new n(130,{cancelled:!0});return i===!0}export{p as a,m as i,_ as n,u as o,h as r,g as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-dgLm0iFJ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/queries/bulk`,body:`json`,response:!1,errors:{422:`UnprocessableEntityError`}};function h(e){return e.usage(`$0 queries bulk create
|
|
3
3
|
|
|
4
4
|
Return a success message after creating new saved string queries in bulk`).option(`queries`,{type:`string`,description:`The queries 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 g={command:`create`,describe:`Create new saved string queries in bulk`,builder:h,handler:async e=>c({command:`queries bulk create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queries bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/brand-protection/queries/bulk`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({queries:u(e.queries,`queries`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:f}));a(n,{successLabel:`Created`});return}let p=d({queries:u(e.queries,`queries`)}),h=await s(`Creating`,async()=>c.send(m,{body:p,account_id:f}));a(h,{successLabel:`Created`})})},_={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/brand-protection/queries`,query:[`id`],body:`json`,response:!1,errors:{422:`UnprocessableEntityError`}};function y(e){return e.usage(`$0 queries create
|
|
5
5
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
|
|
3
3
|
|
|
4
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`]}).coerce(`type`,e=>f(e,`type`,`text`)).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 ee={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:_,handler:async e=>c({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:u,queue_id:e[`queue-id`]}));a(n,{successLabel:`Created`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),_=await s(`Creating`,async()=>c.send(g,{body:h,account_id:u,queue_id:e[`queue-id`]}));a(_,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function v(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 y={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:v,handler:async e=>c({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"
|
|
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 y={command:`delete <consumer-id>`,describe:`Delete Queue Consumer`,builder:v,handler:async e=>c({command:`queues consumers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
|
|
7
7
|
`);return}let u=await s(`Deleting`,async()=>c.send(te,{account_id:l,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function x(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 ne={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:x,handler:async e=>c({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"
|
|
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 ne={command:`get <consumer-id>`,describe:`Get Queue Consumer`,builder:x,handler:async e=>c({command:`queues consumers get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-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(b,{account_id:l,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(u,{successLabel:`Loaded`})})};var re={method:`GET`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`};function ie(e){return e.usage(`$0 queues consumers list
|
|
10
10
|
|
|
11
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 ae={command:`list`,describe:`List Queue Consumers`,builder:ie,handler:async e=>c({command:`queues consumers list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-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(re,{account_id:l,queue_id:e[`queue-id`]}));a(u,{successLabel:`Loaded`})})};var S={method:`PUT`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`,body:`json`};function oe(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`]}).coerce(`type`,e=>f(e,`type`,`text`)).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 se={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:oe,handler:async e=>c({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"
|
|
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`]}).coerce(`type`,e=>f(e,`type`,`text`)).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 se={command:`update <consumer-id>`,describe:`Update Queue Consumer`,builder:oe,handler:async e=>c({command:`queues consumers update`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers/${e[`consumer-id`]==null?`<consumer-id>`:encodeURIComponent(String(e[`consumer-id`]))}`,pathParams:{"queue-id":String(e[`queue-id`]??``),"consumer-id":String(e[`consumer-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(S,{body:t,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(n,{successLabel:`Updated`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),g=await s(`Updating`,async()=>c.send(S,{body:h,account_id:u,queue_id:e[`queue-id`],consumer_id:e[`consumer-id`]}));a(g,{successLabel:`Updated`})})},ce={command:`consumers`,describe:`Workers that automatically receive and process messages from a queue`,builder:e=>e.command(ee).command(y).command(ne).command(ae).command(se).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues`,body:`json`};function w(e){return e.usage(`$0 queues create
|
|
14
14
|
|
|
15
15
|
Creates a Queue in the account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`eu`,`us`,`fedramp`]}).coerce(`jurisdiction`,e=>f(e,`jurisdiction`,`text`)).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 T={command:`create`,describe:`Create Queue`,builder:w,handler:async e=>c({command:`queues create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({jurisdiction:e.jurisdiction,queue_name:f(e[`queue-name`],`queue-name`,`text`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(C,{body:t,account_id:u}));a(n,{successLabel:`Created`});return}e[`queue-name`]===void 0&&(e[`queue-name`]=await p(`queue-name`,`The queue_name field`));let m=d({jurisdiction:e.jurisdiction,queue_name:f(e[`queue-name`],`queue-name`,`text`)}),h=await s(`Creating`,async()=>c.send(C,{body:m,account_id:u}));a(h,{successLabel:`Created`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}`};function D(e){return e.usage(`$0 queues delete <queue-id>
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-dgLm0iFJ.mjs";import{n as y,t as b}from"./raw-fetch-BapeoreV.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
|
|
3
3
|
|
|
4
4
|
Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 te={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:ee,handler:async e=>l({command:`r2 buckets cors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets cors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,!await v({force:!!e.force,message:`This removes the R2 bucket's CORS policy. Browser requests that depend on these cross-origin permissions may fail.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}let f=await c(`Deleting`,async()=>n(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}/cors`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 r2 buckets cors get <bucket-name>
|
|
@@ -32,14 +32,14 @@ Enables or disables public access to the R2 bucket through its managed r2.dev do
|
|
|
32
32
|
|
|
33
33
|
Changes the default storage class for newly uploaded objects in an existing R2 bucket. Existing objects retain their storage class, and individual uploads can override the bucket default.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`cf-r2-storage-class`,{type:`string`,description:`Storage class for newly uploaded objects, unless specified otherwise.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`edit <bucket-name>`,describe:`Patch Bucket`,builder:W,handler:async e=>l({command:`r2 buckets edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e[`cf-r2-storage-class`]!==void 0&&(l[`cf-r2-storage-class`]=String(e[`cf-r2-storage-class`])),e.dryRun){let t=await i();s({command:`cf r2 buckets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();e.accountId=d;let f=await c(`Updating`,async()=>n(u,`PATCH`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Updated`})})};function K(e){return e.usage(`$0 r2 buckets event-notifications delete <queue-id>
|
|
34
34
|
|
|
35
|
-
Deletes the specified event notification rules for an R2 bucket and Cloudflare Queue. Provide ruleIds in the request body to select rules. If no body is provided, all rules for that bucket and queue are deleted.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rule-ids`,{type:`string`,array:!0,description:`Array of rule ids to delete.`}).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 q={command:`delete <queue-id>`,describe:`Delete Event Notification Rules`,builder:K,handler:async e=>l({command:`r2 buckets event-notifications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"
|
|
35
|
+
Deletes the specified event notification rules for an R2 bucket and Cloudflare Queue. Provide ruleIds in the request body to select rules. If no body is provided, all rules for that bucket and queue are deleted.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rule-ids`,{type:`string`,array:!0,description:`Array of rule ids to delete.`}).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 q={command:`delete <queue-id>`,describe:`Delete Event Notification Rules`,builder:K,handler:async e=>l({command:`r2 buckets event-notifications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ruleIds:e[`rule-ids`]}):d(e.body)});return}let f=await r(e),m=e.local?t:await a();if(e.accountId=m,!await v({force:!!e.force,message:`This deletes event notification rules for the selected R2 bucket and queue. Without a request body, all rules for that bucket and queue are deleted.`})){process.stderr.write(`Aborted.
|
|
36
36
|
`);return}if(e.body){let t=d(e.body),r=await c(`Deleting`,async()=>n(f,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Deleted`});return}let h={};e[`rule-ids`]!==void 0&&u(h,[`ruleIds`],e[`rule-ids`]);let g=await c(`Deleting`,async()=>n(f,`DELETE`,`/accounts/${m}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:h,headers:Object.keys(l).length>0?l:void 0}));o(g,{successLabel:`Deleted`})})};function se(e){return e.usage(`$0 r2 buckets event-notifications get <queue-id>
|
|
37
37
|
|
|
38
|
-
Gets the event notification rules for the specified R2 bucket and Cloudflare Queue. The response includes the queue's configuration and its array of rules.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get <queue-id>`,describe:`Get Event Notification Rules for a Queue`,builder:se,handler:async e=>l({command:`r2 buckets event-notifications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"
|
|
38
|
+
Gets the event notification rules for the specified R2 bucket and Cloudflare Queue. The response includes the queue's configuration and its array of rules.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get <queue-id>`,describe:`Get Event Notification Rules for a Queue`,builder:se,handler:async e=>l({command:`r2 buckets event-notifications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-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}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function le(e){return e.usage(`$0 r2 buckets event-notifications list
|
|
39
39
|
|
|
40
40
|
Lists event notification rules for an R2 bucket, grouped by the Cloudflare Queue that receives matching object events.`).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ue={command:`list`,describe:`List Event Notification Rules`,builder:le,handler:async e=>l({command:`r2 buckets event-notifications list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},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}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function de(e){return e.usage(`$0 r2 buckets event-notifications update <queue-id>
|
|
41
41
|
|
|
42
|
-
Creates rules that send notifications for matching R2 object events to the specified Cloudflare Queue. Rules can filter objects by key prefix and suffix. New rules are added to any existing rules for the queue; a rule that overlaps an existing rule is rejected.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`Array of rules to drive notifications. 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 fe={command:`update <queue-id>`,describe:`Create Event Notification Rules`,builder:de,handler:async e=>l({command:`r2 buckets event-notifications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"
|
|
42
|
+
Creates rules that send notifications for matching R2 object events to the specified Cloudflare Queue. Rules can filter objects by key prefix and suffix. New rules are added to any existing rules for the queue; a rule that overlaps an existing rule is rejected.`).positional(`queue-id`,{type:`string`,description:`ID of the Cloudflare Queue that receives notifications for matching R2 object events.`,demandOption:!0}).option(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`rules`,{type:`string`,description:`Array of rules to drive notifications. 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 fe={command:`update <queue-id>`,describe:`Create Event Notification Rules`,builder:de,handler:async e=>l({command:`r2 buckets event-notifications update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets event-notifications update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/event_notifications/r2/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``),"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({rules:f(e.rules,`rules`)}):d(e.body)});return}let m=await r(e),h=e.local?t:await a();if(e.accountId=h,e.body){let t=d(e.body),r=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:t,headers:Object.keys(l).length>0?l:void 0}));o(r,{successLabel:`Updated`});return}if(e.rules===void 0)throw Error(`--rules is required (or pass --body with this field set).`);let g={};e.rules!==void 0&&u(g,[`rules`],f(e.rules,`rules`));let _=await c(`Updating`,async()=>n(m,`PUT`,`/accounts/${h}/event_notifications/r2/${encodeURIComponent(String(e[`bucket-name`]))}/configuration/queues/${encodeURIComponent(String(e[`queue-id`]))}`,{body:g,headers:Object.keys(l).length>0?l:void 0}));o(_,{successLabel:`Updated`})})},pe={command:`event-notifications`,describe:`Operations for buckets.event-notifications`,builder:e=>e.command(q).command(ce).command(ue).command(fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function me(e){return e.usage(`$0 r2 buckets get <bucket-name>
|
|
43
43
|
|
|
44
44
|
Gets properties of an existing R2 bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get <bucket-name>`,describe:`Get Bucket`,builder:me,handler:async e=>l({command:`r2 buckets get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},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}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Loaded`})})};function ge(e){return e.usage('$0 r2 buckets jobs create <bucket-name>\n\nCreates a background job for an R2 bucket. The `jobType` field selects the job: - **`prefixDelete`**: deletes every object whose key begins with `prefix`. A non-empty prefix must end in `/`. An empty prefix (`""`) empties the entire bucket. - **`storageClassMigration`**: migrates every object in the bucket between storage classes. `sourceStorageClass` and `destinationStorageClass` must be provided together and must differ; omitting both migrates from `InfrequentAccess` to `Standard`. Poll the returned `id` with the Get Bucket Job endpoint. Small prefix-delete jobs can finish synchronously and return `COMPLETED`. Objects uploaded after a background job starts are not affected by that job. For prefix-delete jobs: abort active multipart uploads before submitting the request, since a synchronously completed job does not abort them, and avoid writing objects or starting multipart uploads while a bucket-emptying job is in progress. Each request creates a distinct job, and the number of active prefix-delete jobs is limited per bucket; wait for an existing job to finish before retrying a request rejected with HTTP 429. A bucket cannot be emptied while event notifications are configured (HTTP 409 / error code 10083). To protect a bucket with R2 Data Catalog enabled, send the `cf-r2-data-catalog-check` header; a conflict is returned with HTTP 409 / error code 10081. Prefix-delete jobs require permission to delete objects; storage-class migration jobs require permission to write to the bucket.').positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).option(`cf-r2-data-catalog-check`,{type:`string`,description:`For prefix-delete jobs, set this header to reject the request when R2 Data Catalog is enabled for the bucket.`}).option(`job-type`,{type:`string`,description:`The jobType field`,choices:[`prefixDelete`,`storageClassMigration`]}).coerce(`job-type`,e=>m(e,`job-type`,`text`)).option(`prefix`,{type:`string`,description:`Prefix matched against object keys. A non-empty value must end in \`/\`.
|
|
45
45
|
An empty string empties the entire bucket.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-eVI_UEt8.mjs";import{t as n}from"./output-Co4xdFf6.mjs";import{t as r}from"./dry-run-C2KjGX10.mjs";import{t as i}from"./progress-R-1tIuep.mjs";import{t as a}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as o,t as s}from"./body-parser-DkHKPkJ7.mjs";import{n as c,t as l}from"./raw-fetch-BapeoreV.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
|
|
3
3
|
|
|
4
4
|
Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:ee,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){r({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ne={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/radar/ai/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function f(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
|
|
5
5
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-Dil4fTWX.mjs";import{c as r,l as i}from"./auth-
|
|
2
|
+
import{K as e}from"./dist-DZRTPMMA.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-Dil4fTWX.mjs";import{c as r,l as i}from"./auth-eVI_UEt8.mjs";import{n as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./auth-token-Cfj2yehs.mjs";import{n as s}from"./request-headers-BRxv6NkA.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-
|
|
2
|
+
import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/daywise`,query:[`start_time`,`end_time`,`filters`]};function g(e){return e.usage(`$0 realtime kit analytics livestreams daily get <app-id>
|
|
3
3
|
|
|
4
4
|
Returns day-wise livestream analytics for the specified time range.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`start-time`,{type:`number`,description:`Specify the start time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`end-time`,{type:`number`,description:`Specify the end time as a Unix timestamp in seconds to access the livestream analytics.`}).option(`filters`,{type:`string`,description:`Optional filters for livestream analytics.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`get <app-id>`,describe:`Fetch day-wise analytics data for your livestreams`,builder:g,handler:async e=>c({command:`realtime kit analytics livestreams daily get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={start_time:e[`start-time`],end_time:e[`end-time`],filters:e.filters};if(e.dryRun){let t=await r();o({command:`cf realtime kit analytics livestreams daily get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/analytics/livestreams/daywise`,pathParams:{"app-id":String(e[`app-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(h,{account_id:u,app_id:e[`app-id`],...c}));a(d,{successLabel:`Loaded`})})},_={command:`daily`,describe:`Daily livestream analytics for RealtimeKit applications`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var te={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/analytics/livestreams/overall`,query:[`start_time`,`end_time`,`filters`]};function ne(e){return e.usage(`$0 realtime kit analytics livestreams get <app-id>
|
|
5
5
|
|
|
@@ -37,7 +37,7 @@ Mutes one or more participants from an active session using user ID or custom pa
|
|
|
37
37
|
|
|
38
38
|
Creates a new poll in an active session for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`anonymous`,{type:`boolean`,description:`if voters on a poll are anonymous`}).option(`hide-votes`,{type:`boolean`,description:`if votes on an option are visible before a person votes`}).option(`options`,{type:`string`,array:!0,description:`Different options for the question`}).option(`question`,{type:`string`,description:`Question of the poll`}).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 a new poll`})}const We={command:`create <meeting-id>`,describe:`Create a poll`,builder:Ue,handler:async e=>c({command:`realtime kit meetings active polls create`,classification:{safeFlags:[`anonymous`,`hide-votes`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings active polls create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/active-session/poll`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({anonymous:e.anonymous,hide_votes:e[`hide-votes`],options:e.options,question:d(e.question,`question`,`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(A,{body:t,account_id:p,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Created`});return}if(e.options===void 0)throw Error(`--options is required (or pass --body with this field set).`);e.question===void 0&&(e.question=await f(`question`,`Question of the poll`));let m=u({anonymous:e.anonymous,hide_votes:e[`hide-votes`],options:e.options,question:d(e.question,`question`,`text`)}),h=await s(`Creating`,async()=>c.send(A,{body:m,account_id:p,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(h,{successLabel:`Created`})})},Ge={command:`polls`,describe:`Polls for active meeting sessions`,builder:e=>e.command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ke={command:`active`,describe:`Live meeting state and participant controls`,builder:e=>e.command(Ne).command(Re).command(Ie).command(He).command(Be).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings`,body:`json`};function qe(e){return e.usage(`$0 realtime kit meetings create <app-id>
|
|
39
39
|
|
|
40
|
-
Create a meeting for the given App ID.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`,default:!1}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`,default:!1}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`,default:!1}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`,default:60}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`,default:!1}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const Je={command:`create <app-id>`,describe:`Create a meeting`,builder:qe,handler:async e=>c({command:`realtime kit meetings create`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(j,{body:t,account_id:f,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Creating`,async()=>c.send(j,{body:p,account_id:f,app_id:e[`app-id`]}));a(m,{successLabel:`Created`})})};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,query:[`name`],errors:{500:`InternalServerError`}};function Xe(e){return e.usage(`$0 realtime kit meetings get <meeting-id>
|
|
40
|
+
Create a meeting for the given App ID.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`,default:!1}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`,default:!1}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`,default:!1}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`,default:60}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`,default:!1}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const Je={command:`create <app-id>`,describe:`Create a meeting`,builder:qe,handler:async e=>c({command:`realtime kit meetings create`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(j,{body:t,account_id:f,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Creating`,async()=>c.send(j,{body:p,account_id:f,app_id:e[`app-id`]}));a(m,{successLabel:`Created`})})};var Ye={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,query:[`name`],errors:{500:`InternalServerError`}};function Xe(e){return e.usage(`$0 realtime kit meetings get <meeting-id>
|
|
41
41
|
|
|
42
42
|
Returns a meeting details in an App for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`name`,{type:`string`,description:`Name`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ze={command:`get <meeting-id>`,describe:`Fetch a meeting for an App`,builder:Xe,handler:async e=>c({command:`realtime kit meetings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={name:e.name};if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(Ye,{account_id:u,app_id:e[`app-id`],meeting_id:e[`meeting-id`],...c}));a(d,{successLabel:`Loaded`})})};var Qe={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings`,query:[`page_no`,`per_page`,`start_time`,`end_time`,`search`,`status`]};function $e(e){return e.usage(`$0 realtime kit meetings list
|
|
43
43
|
|
|
@@ -62,9 +62,9 @@ Regenerates participant's authentication token for the given meeting and partici
|
|
|
62
62
|
|
|
63
63
|
Updates a participant's details for the given meeting and participant ID.`).positional(`participant-id`,{type:`string`,description:`ID of the participant. You can fetch the participant ID using the add a participant API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting. You can fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`name`,{type:`string`,description:`(Optional) Name of the participant.`}).option(`picture`,{type:`string`,description:`(Optional) A URL to a picture to be used for the participant.`}).option(`preset-name`,{type:`string`,description:`(Optional) Name of the preset to apply to this participant.`}).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 Et={command:`update <participant-id>`,describe:`Edit a participant's detail`,builder:Tt,handler:async e=>c({command:`realtime kit meetings participants update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings participants update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``),"participant-id":String(e[`participant-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({name:d(e.name,`name`,`text`),picture:d(e.picture,`picture`,`text`),preset_name:d(e[`preset-name`],`preset-name`,`text`)}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(P,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(n,{successLabel:`Updated`});return}let p=u({name:d(e.name,`name`,`text`),picture:d(e.picture,`picture`,`text`),preset_name:d(e[`preset-name`],`preset-name`,`text`)}),m=await s(`Updating`,async()=>c.send(P,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`],participant_id:e[`participant-id`]}));a(m,{successLabel:`Updated`})})},Dt={command:`participants`,describe:`Participants in RealtimeKit meetings`,builder:e=>e.command(lt).command(ft).command(ht).command(vt).command(bt).command(Et).command(wt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`};function Ot(e){return e.usage(`$0 realtime kit meetings replace <meeting-id>
|
|
64
64
|
|
|
65
|
-
Replaces all the details for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const kt={command:`replace <meeting-id>`,describe:`Replace a meeting`,builder:Ot,handler:async e=>c({command:`realtime kit meetings replace`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings replace`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(F,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(F,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})};var I={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`,errors:{500:`InternalServerError`}};function At(e){return e.usage(`$0 realtime kit meetings update <meeting-id>
|
|
65
|
+
Replaces all the details for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is set to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Create meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const kt={command:`replace <meeting-id>`,describe:`Replace a meeting`,builder:Ot,handler:async e=>c({command:`realtime kit meetings replace`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings replace`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(F,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(F,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})};var I={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/meetings/${t.meeting_id}`,body:`json`,errors:{500:`InternalServerError`}};function At(e){return e.usage(`$0 realtime kit meetings update <meeting-id>
|
|
66
66
|
|
|
67
|
-
Updates a meeting in an App for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is updated to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`status`,{type:`string`,description:"Whether the meeting is `ACTIVE` or `INACTIVE`. Users will not be able to join an `INACTIVE` meeting.",choices:[`ACTIVE`,`INACTIVE`]}).coerce(`status`,e=>d(e,`status`,`text`)).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const jt={command:`update <meeting-id>`,describe:`Update a meeting`,builder:At,handler:async e=>c({command:`realtime kit meetings update`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`status`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(I,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(I,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})},Mt={command:`meetings`,describe:`Meetings, participants, access tokens, and meeting livestreams`,builder:e=>e.command(Je).command(Ze).command(et).command(kt).command(jt).command(Ke).command(st).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets`,body:`json`};function Nt(e){return e.usage(`$0 realtime kit presets create <app-id>
|
|
67
|
+
Updates a meeting in an App for the given meeting ID.`).positional(`meeting-id`,{type:`string`,description:`ID of the meeting. Fetch the meeting ID using the create a meeting API.`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`ai-config-summarization-summary-type`,{type:`string`,description:`Defines the style of the summary, such as general, team meeting, or sales call.`,choices:[`general`,`team_meeting`,`sales_call`,`client_check_in`,`interview`,`daily_standup`,`one_on_one_meeting`,`lecture`,`code_review`]}).coerce(`ai-config-summarization-summary-type`,e=>d(e,`ai-config-summarization-summary-type`,`text`)).option(`ai-config-summarization-text-format`,{type:`string`,description:`Determines the text format of the summary, such as plain text or markdown.`,choices:[`plain_text`,`markdown`]}).coerce(`ai-config-summarization-text-format`,e=>d(e,`ai-config-summarization-text-format`,`text`)).option(`ai-config-summarization-word-limit`,{type:`number`,description:`Sets the maximum number of words in the meeting summary.`}).option(`ai-config-transcription-keywords`,{type:`string`,array:!0,description:`Adds specific terms to improve accurate detection during transcription.`}).option(`ai-config-transcription-language`,{type:`string`,description:`Specifies the language code for transcription to ensure accurate results. If omitted, the language is auto-detected for post-meeting (Whisper) transcription.`,choices:[`en-US`,`en-IN`,`de`,`hi`,`sv`,`ru`,`pl`,`el`,`fr`,`nl`]}).coerce(`ai-config-transcription-language`,e=>d(e,`ai-config-transcription-language`,`text`)).option(`ai-config-transcription-profanity-filter`,{type:`boolean`,description:`Control the inclusion of offensive language in transcriptions.`}).option(`live-stream-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting livestreamed on start.`}).option(`persist-chat`,{type:`boolean`,description:`If a meeting is updated to persist_chat, meeting chat would remain for a week within the meeting space.`}).option(`record-on-start`,{type:`boolean`,description:`Specifies if the meeting should start getting recorded as soon as someone joins the meeting.`}).option(`recording-config-audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`recording-config-audio-config-channel`,e=>d(e,`recording-config-audio-config-channel`,`text`)).option(`recording-config-audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`recording-config-audio-config-codec`,e=>d(e,`recording-config-audio-config-codec`,`text`)).option(`recording-config-audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`recording-config-file-name-prefix`,{type:`string`,description:`Adds a prefix to the beginning of the file name of the recording.`}).option(`recording-config-live-streaming-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`recording-config-max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`recording-config-realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`recording-config-storage-config-type`,{type:`string`,description:`The recording_config.storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`recording-config-storage-config-type`,e=>d(e,`recording-config-storage-config-type`,`text`)).option(`recording-config-video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`recording-config-video-config-codec`,e=>d(e,`recording-config-video-config-codec`,`text`)).option(`recording-config-video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`recording-config-video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`recording-config-video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`recording-config-video-config-watermark-position`,e=>d(e,`recording-config-video-config-watermark-position`,`text`)).option(`recording-config-video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`recording-config-video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).option(`session-keep-alive-time-in-secs`,{type:`number`,description:`Time in seconds, for which a session remains active, after the last participant has left the meeting.`}).option(`status`,{type:`string`,description:"Whether the meeting is `ACTIVE` or `INACTIVE`. Users will not be able to join an `INACTIVE` meeting.",choices:[`ACTIVE`,`INACTIVE`]}).coerce(`status`,e=>d(e,`status`,`text`)).option(`summarize-on-end`,{type:`boolean`,description:`Automatically generate summary of meetings using transcripts. Requires Transcriptions to be enabled, and can be retrieved via Webhooks or summary API.`}).option(`title`,{type:`string`,description:`Title of the meeting`}).option(`transcribe-on-end`,{type:`boolean`,description:`Automatically generate transcripts when the meeting ends.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update meeting body`}).check(e=>{if([`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-file-name-prefix`,`recording-config-live-streaming-config-rtmp-url`,`recording-config-max-seconds`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-height`,`recording-config-video-config-watermark-position`,`recording-config-video-config-watermark-url`,`recording-config-video-config-width`].some(t=>e[t]!==void 0)){let t=[`recording-config-realtimekit-bucket-config-enabled`].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 --recording_config-* flag is set`)}return!0})}const jt={command:`update <meeting-id>`,describe:`Update a meeting`,builder:At,handler:async e=>c({command:`realtime kit meetings update`,classification:{safeFlags:[`ai-config-summarization-summary-type`,`ai-config-summarization-text-format`,`ai-config-transcription-language`,`ai-config-transcription-profanity-filter`,`live-stream-on-start`,`persist-chat`,`record-on-start`,`recording-config-audio-config-channel`,`recording-config-audio-config-codec`,`recording-config-audio-config-export-file`,`recording-config-realtimekit-bucket-config-enabled`,`recording-config-storage-config-type`,`recording-config-video-config-codec`,`recording-config-video-config-export-file`,`recording-config-video-config-watermark-position`,`status`,`summarize-on-end`,`transcribe-on-end`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit meetings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/meetings/${e[`meeting-id`]==null?`<meeting-id>`:encodeURIComponent(String(e[`meeting-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"meeting-id":String(e[`meeting-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}):l(e.body)});return}let c=await n(e),f=e.local?t:await i();if(e.accountId=f,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(I,{body:t,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(n,{successLabel:`Updated`});return}let p=u({ai_config:{summarization:{summary_type:e[`ai-config-summarization-summary-type`],text_format:e[`ai-config-summarization-text-format`],word_limit:e[`ai-config-summarization-word-limit`]},transcription:{keywords:e[`ai-config-transcription-keywords`],language:e[`ai-config-transcription-language`],profanity_filter:e[`ai-config-transcription-profanity-filter`]}},live_stream_on_start:e[`live-stream-on-start`],persist_chat:e[`persist-chat`],record_on_start:e[`record-on-start`],recording_config:{audio_config:{channel:e[`recording-config-audio-config-channel`],codec:e[`recording-config-audio-config-codec`],export_file:e[`recording-config-audio-config-export-file`]},file_name_prefix:d(e[`recording-config-file-name-prefix`],`recording-config-file-name-prefix`,`text`),live_streaming_config:{rtmp_url:d(e[`recording-config-live-streaming-config-rtmp-url`],`recording-config-live-streaming-config-rtmp-url`,`text`)},max_seconds:e[`recording-config-max-seconds`],realtimekit_bucket_config:{enabled:e[`recording-config-realtimekit-bucket-config-enabled`]},storage_config:{type:e[`recording-config-storage-config-type`]},video_config:{codec:e[`recording-config-video-config-codec`],export_file:e[`recording-config-video-config-export-file`],height:e[`recording-config-video-config-height`],watermark:{position:e[`recording-config-video-config-watermark-position`],url:d(e[`recording-config-video-config-watermark-url`],`recording-config-video-config-watermark-url`,`text`)},width:e[`recording-config-video-config-width`]}},session_keep_alive_time_in_secs:e[`session-keep-alive-time-in-secs`],status:e.status,summarize_on_end:e[`summarize-on-end`],title:d(e.title,`title`,`text`),transcribe_on_end:e[`transcribe-on-end`]}),m=await s(`Updating`,async()=>c.send(I,{body:p,account_id:f,app_id:e[`app-id`],meeting_id:e[`meeting-id`]}));a(m,{successLabel:`Updated`})})},Mt={command:`meetings`,describe:`Meetings, participants, access tokens, and meeting livestreams`,builder:e=>e.command(Je).command(Ze).command(et).command(kt).command(jt).command(Ke).command(st).command(Dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets`,body:`json`};function Nt(e){return e.usage(`$0 realtime kit presets create <app-id>
|
|
68
68
|
|
|
69
69
|
Creates a preset belonging to the current App`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`config-livestream-viewer-qualities`,{type:`string`,array:!0,description:`Livestream viewer quality levels.`}).option(`config-max-screenshare-count`,{type:`number`,description:`Maximum number of screen shares that can be active at a given time`}).option(`config-max-video-streams-desktop`,{type:`number`,description:`Maximum number of video streams visible on desktop devices`}).option(`config-max-video-streams-mobile`,{type:`number`,description:`Maximum number of streams visible on mobile devices`}).option(`config-media-audio-enable-high-bitrate`,{type:`boolean`,description:`Enable High Quality Audio for your meetings`}).option(`config-media-audio-enable-stereo`,{type:`boolean`,description:`Enable Stereo for your meetings`}).option(`config-media-screenshare-frame-rate`,{type:`number`,description:`Frame rate of screen share`}).option(`config-media-screenshare-quality`,{type:`string`,description:`Quality of screen share `,choices:[`hd`,`vga`,`qvga`,`fhd`,`uhd`]}).coerce(`config-media-screenshare-quality`,e=>d(e,`config-media-screenshare-quality`,`text`)).option(`config-media-video-frame-rate`,{type:`number`,description:`Frame rate of participants' video`}).option(`config-media-video-quality`,{type:`string`,description:`Video quality of participants`,choices:[`hd`,`vga`,`qvga`,`fhd`,`uhd`]}).coerce(`config-media-video-quality`,e=>d(e,`config-media-video-quality`,`text`)).option(`config-media-video-simulcast`,{type:`boolean`,description:`Enable simulcast for participant videos.`,default:!1}).option(`config-view-type`,{type:`string`,description:`Type of the meeting`,choices:[`GROUP_CALL`,`WEBINAR`,`AUDIO_ROOM`,`LIVESTREAM`]}).coerce(`config-view-type`,e=>d(e,`config-view-type`,`text`)).option(`name`,{type:`string`,description:`Name of the preset`}).option(`permissions-accept-stage-requests`,{type:`boolean`,description:`The permissions.accept_stage_requests field`}).option(`permissions-accept-waiting-requests`,{type:`boolean`,description:`Whether this participant can accept waiting requests`}).option(`permissions-can-accept-production-requests`,{type:`boolean`,description:`The permissions.can_accept_production_requests field`}).option(`permissions-can-change-participant-permissions`,{type:`boolean`,description:`The permissions.can_change_participant_permissions field`}).option(`permissions-can-edit-display-name`,{type:`boolean`,description:`The permissions.can_edit_display_name field`}).option(`permissions-can-livestream`,{type:`boolean`,description:`The permissions.can_livestream field`}).option(`permissions-can-record`,{type:`boolean`,description:`The permissions.can_record field`}).option(`permissions-can-spotlight`,{type:`boolean`,description:`The permissions.can_spotlight field`}).option(`permissions-chat-private-can-receive`,{type:`boolean`,description:`The permissions.chat.private.can_receive field`}).option(`permissions-chat-private-can-send`,{type:`boolean`,description:`The permissions.chat.private.can_send field`}).option(`permissions-chat-private-files`,{type:`boolean`,description:`The permissions.chat.private.files field`}).option(`permissions-chat-private-text`,{type:`boolean`,description:`The permissions.chat.private.text field`}).option(`permissions-chat-public-can-send`,{type:`boolean`,description:`Can send messages in general`}).option(`permissions-chat-public-files`,{type:`boolean`,description:`Can send file messages`}).option(`permissions-chat-public-text`,{type:`boolean`,description:`Can send text messages`}).option(`permissions-connected-meetings-can-alter-connected-meetings`,{type:`boolean`,description:`The permissions.connected_meetings.can_alter_connected_meetings field`}).option(`permissions-connected-meetings-can-switch-connected-meetings`,{type:`boolean`,description:`The permissions.connected_meetings.can_switch_connected_meetings field`}).option(`permissions-connected-meetings-can-switch-to-parent-meeting`,{type:`boolean`,description:`The permissions.connected_meetings.can_switch_to_parent_meeting field`}).option(`permissions-disable-participant-audio`,{type:`boolean`,description:`The permissions.disable_participant_audio field`}).option(`permissions-disable-participant-screensharing`,{type:`boolean`,description:`The permissions.disable_participant_screensharing field`}).option(`permissions-disable-participant-video`,{type:`boolean`,description:`The permissions.disable_participant_video field`}).option(`permissions-hidden-participant`,{type:`boolean`,description:`Whether this participant is visible to others or not`}).option(`permissions-is-recorder`,{type:`boolean`,description:`The permissions.is_recorder field`}).option(`permissions-kick-participant`,{type:`boolean`,description:`The permissions.kick_participant field`}).option(`permissions-media-audio-can-produce`,{type:`string`,description:`Can produce audio`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-audio-can-produce`,e=>d(e,`permissions-media-audio-can-produce`,`text`)).option(`permissions-media-screenshare-can-produce`,{type:`string`,description:`Can produce screen share video`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-screenshare-can-produce`,e=>d(e,`permissions-media-screenshare-can-produce`,`text`)).option(`permissions-media-video-can-produce`,{type:`string`,description:`Can produce video`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-media-video-can-produce`,e=>d(e,`permissions-media-video-can-produce`,`text`)).option(`permissions-pin-participant`,{type:`boolean`,description:`The permissions.pin_participant field`}).option(`permissions-plugins-can-close`,{type:`boolean`,description:`Can close plugins that are already open`}).option(`permissions-plugins-can-edit-config`,{type:`boolean`,description:`Can edit plugin config`}).option(`permissions-plugins-can-start`,{type:`boolean`,description:`Can start plugins`}).option(`permissions-polls-can-create`,{type:`boolean`,description:`Can create polls`}).option(`permissions-polls-can-view`,{type:`boolean`,description:`Can view polls`}).option(`permissions-polls-can-vote`,{type:`boolean`,description:`Can vote on polls`}).option(`permissions-recorder-type`,{type:`string`,description:`Type of the recording peer`,choices:[`RECORDER`,`LIVESTREAMER`,`NONE`]}).coerce(`permissions-recorder-type`,e=>d(e,`permissions-recorder-type`,`text`)).option(`permissions-show-participant-list`,{type:`boolean`,description:`The permissions.show_participant_list field`}).option(`permissions-stage-access`,{type:`string`,description:`The permissions.stage_access field`,choices:[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`]}).coerce(`permissions-stage-access`,e=>d(e,`permissions-stage-access`,`text`)).option(`permissions-stage-enabled`,{type:`boolean`,description:`The permissions.stage_enabled field`}).option(`permissions-transcription-enabled`,{type:`boolean`,description:`The permissions.transcription_enabled field`}).option(`permissions-waiting-room-type`,{type:`string`,description:`Waiting room type`,choices:[`SKIP`,`ON_PRIVILEGED_USER_ENTRY`,`SKIP_ON_ACCEPT`]}).coerce(`permissions-waiting-room-type`,e=>d(e,`permissions-waiting-room-type`,`text`)).option(`ui-design-tokens-border-radius`,{type:`string`,description:`The ui.design_tokens.border_radius field`,choices:[`sharp`,`rounded`,`extra-rounded`,`circular`]}).coerce(`ui-design-tokens-border-radius`,e=>d(e,`ui-design-tokens-border-radius`,`text`)).option(`ui-design-tokens-border-width`,{type:`string`,description:`The ui.design_tokens.border_width field`,choices:[`none`,`thin`,`fat`]}).coerce(`ui-design-tokens-border-width`,e=>d(e,`ui-design-tokens-border-width`,`text`)).option(`ui-design-tokens-colors-danger`,{type:`string`,description:`The ui.design_tokens.colors.danger field`}).option(`ui-design-tokens-colors-success`,{type:`string`,description:`The ui.design_tokens.colors.success field`}).option(`ui-design-tokens-colors-text`,{type:`string`,description:`The ui.design_tokens.colors.text field`}).option(`ui-design-tokens-colors-text-on-brand`,{type:`string`,description:`The ui.design_tokens.colors.text_on_brand field`}).option(`ui-design-tokens-colors-video-bg`,{type:`string`,description:`The ui.design_tokens.colors.video_bg field`}).option(`ui-design-tokens-colors-warning`,{type:`string`,description:`The ui.design_tokens.colors.warning field`}).option(`ui-design-tokens-font-family`,{type:`string`,description:`The ui.design_tokens.font_family field`}).option(`ui-design-tokens-google-font`,{type:`string`,description:`The ui.design_tokens.google_font field`}).option(`ui-design-tokens-logo`,{type:`string`,description:`The ui.design_tokens.logo field`}).option(`ui-design-tokens-spacing-base`,{type:`number`,description:`The ui.design_tokens.spacing_base field`}).option(`ui-design-tokens-theme`,{type:`string`,description:`The ui.design_tokens.theme field`,choices:[`darkest`,`dark`,`light`]}).coerce(`ui-design-tokens-theme`,e=>d(e,`ui-design-tokens-theme`,`text`)).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 Pt={command:`create <app-id>`,describe:`Create a preset`,builder:Nt,handler:async e=>c({command:`realtime kit presets create`,classification:{safeFlags:/* @__PURE__ */ `config-media-audio-enable-high-bitrate.config-media-audio-enable-stereo.config-media-screenshare-quality.config-media-video-quality.config-media-video-simulcast.config-view-type.permissions-accept-stage-requests.permissions-accept-waiting-requests.permissions-can-accept-production-requests.permissions-can-change-participant-permissions.permissions-can-edit-display-name.permissions-can-livestream.permissions-can-record.permissions-can-spotlight.permissions-chat-private-can-receive.permissions-chat-private-can-send.permissions-chat-private-files.permissions-chat-private-text.permissions-chat-public-can-send.permissions-chat-public-files.permissions-chat-public-text.permissions-connected-meetings-can-alter-connected-meetings.permissions-connected-meetings-can-switch-connected-meetings.permissions-connected-meetings-can-switch-to-parent-meeting.permissions-disable-participant-audio.permissions-disable-participant-screensharing.permissions-disable-participant-video.permissions-hidden-participant.permissions-is-recorder.permissions-kick-participant.permissions-media-audio-can-produce.permissions-media-screenshare-can-produce.permissions-media-video-can-produce.permissions-pin-participant.permissions-plugins-can-close.permissions-plugins-can-edit-config.permissions-plugins-can-start.permissions-polls-can-create.permissions-polls-can-view.permissions-polls-can-vote.permissions-recorder-type.permissions-show-participant-list.permissions-stage-access.permissions-stage-enabled.permissions-transcription-enabled.permissions-waiting-room-type.ui-design-tokens-border-radius.ui-design-tokens-border-width.ui-design-tokens-theme.dry-run`.split(`.`)}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit presets create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/presets`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({config:{livestream_viewer_qualities:e[`config-livestream-viewer-qualities`],max_screenshare_count:e[`config-max-screenshare-count`],max_video_streams:{desktop:e[`config-max-video-streams-desktop`],mobile:e[`config-max-video-streams-mobile`]},media:{audio:{enable_high_bitrate:e[`config-media-audio-enable-high-bitrate`],enable_stereo:e[`config-media-audio-enable-stereo`]},screenshare:{frame_rate:e[`config-media-screenshare-frame-rate`],quality:e[`config-media-screenshare-quality`]},video:{frame_rate:e[`config-media-video-frame-rate`],quality:e[`config-media-video-quality`],simulcast:e[`config-media-video-simulcast`]}},view_type:e[`config-view-type`]},name:d(e.name,`name`,`text`),permissions:{accept_stage_requests:e[`permissions-accept-stage-requests`],accept_waiting_requests:e[`permissions-accept-waiting-requests`],can_accept_production_requests:e[`permissions-can-accept-production-requests`],can_change_participant_permissions:e[`permissions-can-change-participant-permissions`],can_edit_display_name:e[`permissions-can-edit-display-name`],can_livestream:e[`permissions-can-livestream`],can_record:e[`permissions-can-record`],can_spotlight:e[`permissions-can-spotlight`],chat:{private:{can_receive:e[`permissions-chat-private-can-receive`],can_send:e[`permissions-chat-private-can-send`],files:e[`permissions-chat-private-files`],text:e[`permissions-chat-private-text`]},public:{can_send:e[`permissions-chat-public-can-send`],files:e[`permissions-chat-public-files`],text:e[`permissions-chat-public-text`]}},connected_meetings:{can_alter_connected_meetings:e[`permissions-connected-meetings-can-alter-connected-meetings`],can_switch_connected_meetings:e[`permissions-connected-meetings-can-switch-connected-meetings`],can_switch_to_parent_meeting:e[`permissions-connected-meetings-can-switch-to-parent-meeting`]},disable_participant_audio:e[`permissions-disable-participant-audio`],disable_participant_screensharing:e[`permissions-disable-participant-screensharing`],disable_participant_video:e[`permissions-disable-participant-video`],hidden_participant:e[`permissions-hidden-participant`],is_recorder:e[`permissions-is-recorder`],kick_participant:e[`permissions-kick-participant`],media:{audio:{can_produce:e[`permissions-media-audio-can-produce`]},screenshare:{can_produce:e[`permissions-media-screenshare-can-produce`]},video:{can_produce:e[`permissions-media-video-can-produce`]}},pin_participant:e[`permissions-pin-participant`],plugins:{can_close:e[`permissions-plugins-can-close`],can_edit_config:e[`permissions-plugins-can-edit-config`],can_start:e[`permissions-plugins-can-start`]},polls:{can_create:e[`permissions-polls-can-create`],can_view:e[`permissions-polls-can-view`],can_vote:e[`permissions-polls-can-vote`]},recorder_type:e[`permissions-recorder-type`],show_participant_list:e[`permissions-show-participant-list`],stage_access:e[`permissions-stage-access`],stage_enabled:e[`permissions-stage-enabled`],transcription_enabled:e[`permissions-transcription-enabled`],waiting_room_type:e[`permissions-waiting-room-type`]},ui:{design_tokens:{border_radius:e[`ui-design-tokens-border-radius`],border_width:e[`ui-design-tokens-border-width`],colors:{danger:d(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:d(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:d(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:d(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:d(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:d(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:d(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:d(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:d(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(L,{body:t,account_id:m,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}if(e[`config-max-screenshare-count`]===void 0)throw Error(`--config-max-screenshare-count is required (or pass --body with this field set).`);if(e[`config-max-video-streams-desktop`]===void 0)throw Error(`--config-max-video-streams-desktop is required (or pass --body with this field set).`);if(e[`config-max-video-streams-mobile`]===void 0)throw Error(`--config-max-video-streams-mobile is required (or pass --body with this field set).`);if(e[`config-media-screenshare-frame-rate`]===void 0)throw Error(`--config-media-screenshare-frame-rate is required (or pass --body with this field set).`);if(e[`config-media-screenshare-quality`]===void 0&&(e[`config-media-screenshare-quality`]=await p(`config-media-screenshare-quality`,`Quality of screen share `,[`hd`,`vga`,`qvga`,`fhd`,`uhd`])),e[`config-media-video-frame-rate`]===void 0)throw Error(`--config-media-video-frame-rate is required (or pass --body with this field set).`);if(e[`config-media-video-quality`]===void 0&&(e[`config-media-video-quality`]=await p(`config-media-video-quality`,`Video quality of participants`,[`hd`,`vga`,`qvga`,`fhd`,`uhd`])),e[`config-view-type`]===void 0&&(e[`config-view-type`]=await p(`config-view-type`,`Type of the meeting`,[`GROUP_CALL`,`WEBINAR`,`AUDIO_ROOM`,`LIVESTREAM`])),e.name===void 0&&(e.name=await f(`name`,`Name of the preset`)),e[`permissions-accept-waiting-requests`]===void 0)throw Error(`--permissions-accept-waiting-requests is required (or pass --body with this field set).`);if(e[`permissions-can-accept-production-requests`]===void 0)throw Error(`--permissions-can-accept-production-requests is required (or pass --body with this field set).`);if(e[`permissions-can-change-participant-permissions`]===void 0)throw Error(`--permissions-can-change-participant-permissions is required (or pass --body with this field set).`);if(e[`permissions-can-edit-display-name`]===void 0)throw Error(`--permissions-can-edit-display-name is required (or pass --body with this field set).`);if(e[`permissions-can-livestream`]===void 0)throw Error(`--permissions-can-livestream is required (or pass --body with this field set).`);if(e[`permissions-can-record`]===void 0)throw Error(`--permissions-can-record is required (or pass --body with this field set).`);if(e[`permissions-can-spotlight`]===void 0)throw Error(`--permissions-can-spotlight is required (or pass --body with this field set).`);if(e[`permissions-chat-private-can-receive`]===void 0)throw Error(`--permissions-chat-private-can-receive is required (or pass --body with this field set).`);if(e[`permissions-chat-private-can-send`]===void 0)throw Error(`--permissions-chat-private-can-send is required (or pass --body with this field set).`);if(e[`permissions-chat-private-files`]===void 0)throw Error(`--permissions-chat-private-files is required (or pass --body with this field set).`);if(e[`permissions-chat-private-text`]===void 0)throw Error(`--permissions-chat-private-text is required (or pass --body with this field set).`);if(e[`permissions-chat-public-can-send`]===void 0)throw Error(`--permissions-chat-public-can-send is required (or pass --body with this field set).`);if(e[`permissions-chat-public-files`]===void 0)throw Error(`--permissions-chat-public-files is required (or pass --body with this field set).`);if(e[`permissions-chat-public-text`]===void 0)throw Error(`--permissions-chat-public-text is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-alter-connected-meetings`]===void 0)throw Error(`--permissions-connected-meetings-can-alter-connected-meetings is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-switch-connected-meetings`]===void 0)throw Error(`--permissions-connected-meetings-can-switch-connected-meetings is required (or pass --body with this field set).`);if(e[`permissions-connected-meetings-can-switch-to-parent-meeting`]===void 0)throw Error(`--permissions-connected-meetings-can-switch-to-parent-meeting is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-audio`]===void 0)throw Error(`--permissions-disable-participant-audio is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-screensharing`]===void 0)throw Error(`--permissions-disable-participant-screensharing is required (or pass --body with this field set).`);if(e[`permissions-disable-participant-video`]===void 0)throw Error(`--permissions-disable-participant-video is required (or pass --body with this field set).`);if(e[`permissions-hidden-participant`]===void 0)throw Error(`--permissions-hidden-participant is required (or pass --body with this field set).`);if(e[`permissions-kick-participant`]===void 0)throw Error(`--permissions-kick-participant is required (or pass --body with this field set).`);if(e[`permissions-media-audio-can-produce`]===void 0&&(e[`permissions-media-audio-can-produce`]=await p(`permissions-media-audio-can-produce`,`Can produce audio`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-media-screenshare-can-produce`]===void 0&&(e[`permissions-media-screenshare-can-produce`]=await p(`permissions-media-screenshare-can-produce`,`Can produce screen share video`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-media-video-can-produce`]===void 0&&(e[`permissions-media-video-can-produce`]=await p(`permissions-media-video-can-produce`,`Can produce video`,[`ALLOWED`,`NOT_ALLOWED`,`CAN_REQUEST`])),e[`permissions-pin-participant`]===void 0)throw Error(`--permissions-pin-participant is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-close`]===void 0)throw Error(`--permissions-plugins-can-close is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-edit-config`]===void 0)throw Error(`--permissions-plugins-can-edit-config is required (or pass --body with this field set).`);if(e[`permissions-plugins-can-start`]===void 0)throw Error(`--permissions-plugins-can-start is required (or pass --body with this field set).`);if(e[`permissions-polls-can-create`]===void 0)throw Error(`--permissions-polls-can-create is required (or pass --body with this field set).`);if(e[`permissions-polls-can-view`]===void 0)throw Error(`--permissions-polls-can-view is required (or pass --body with this field set).`);if(e[`permissions-polls-can-vote`]===void 0)throw Error(`--permissions-polls-can-vote is required (or pass --body with this field set).`);if(e[`permissions-recorder-type`]===void 0&&(e[`permissions-recorder-type`]=await p(`permissions-recorder-type`,`Type of the recording peer`,[`RECORDER`,`LIVESTREAMER`,`NONE`])),e[`permissions-show-participant-list`]===void 0)throw Error(`--permissions-show-participant-list is required (or pass --body with this field set).`);if(e[`permissions-waiting-room-type`]===void 0&&(e[`permissions-waiting-room-type`]=await p(`permissions-waiting-room-type`,`Waiting room type`,[`SKIP`,`ON_PRIVILEGED_USER_ENTRY`,`SKIP_ON_ACCEPT`])),e[`ui-design-tokens-border-radius`]===void 0&&(e[`ui-design-tokens-border-radius`]=await p(`ui-design-tokens-border-radius`,`The ui.design_tokens.border_radius field`,[`sharp`,`rounded`,`extra-rounded`,`circular`])),e[`ui-design-tokens-border-width`]===void 0&&(e[`ui-design-tokens-border-width`]=await p(`ui-design-tokens-border-width`,`The ui.design_tokens.border_width field`,[`none`,`thin`,`fat`])),e[`ui-design-tokens-colors-danger`]===void 0&&(e[`ui-design-tokens-colors-danger`]=await f(`ui-design-tokens-colors-danger`,`The ui.design_tokens.colors.danger field`)),e[`ui-design-tokens-colors-success`]===void 0&&(e[`ui-design-tokens-colors-success`]=await f(`ui-design-tokens-colors-success`,`The ui.design_tokens.colors.success field`)),e[`ui-design-tokens-colors-text`]===void 0&&(e[`ui-design-tokens-colors-text`]=await f(`ui-design-tokens-colors-text`,`The ui.design_tokens.colors.text field`)),e[`ui-design-tokens-colors-text-on-brand`]===void 0&&(e[`ui-design-tokens-colors-text-on-brand`]=await f(`ui-design-tokens-colors-text-on-brand`,`The ui.design_tokens.colors.text_on_brand field`)),e[`ui-design-tokens-colors-video-bg`]===void 0&&(e[`ui-design-tokens-colors-video-bg`]=await f(`ui-design-tokens-colors-video-bg`,`The ui.design_tokens.colors.video_bg field`)),e[`ui-design-tokens-colors-warning`]===void 0&&(e[`ui-design-tokens-colors-warning`]=await f(`ui-design-tokens-colors-warning`,`The ui.design_tokens.colors.warning field`)),e[`ui-design-tokens-spacing-base`]===void 0)throw Error(`--ui-design-tokens-spacing-base is required (or pass --body with this field set).`);e[`ui-design-tokens-theme`]===void 0&&(e[`ui-design-tokens-theme`]=await p(`ui-design-tokens-theme`,`The ui.design_tokens.theme field`,[`darkest`,`dark`,`light`]));let h=u({config:{livestream_viewer_qualities:e[`config-livestream-viewer-qualities`],max_screenshare_count:e[`config-max-screenshare-count`],max_video_streams:{desktop:e[`config-max-video-streams-desktop`],mobile:e[`config-max-video-streams-mobile`]},media:{audio:{enable_high_bitrate:e[`config-media-audio-enable-high-bitrate`],enable_stereo:e[`config-media-audio-enable-stereo`]},screenshare:{frame_rate:e[`config-media-screenshare-frame-rate`],quality:e[`config-media-screenshare-quality`]},video:{frame_rate:e[`config-media-video-frame-rate`],quality:e[`config-media-video-quality`],simulcast:e[`config-media-video-simulcast`]}},view_type:e[`config-view-type`]},name:d(e.name,`name`,`text`),permissions:{accept_stage_requests:e[`permissions-accept-stage-requests`],accept_waiting_requests:e[`permissions-accept-waiting-requests`],can_accept_production_requests:e[`permissions-can-accept-production-requests`],can_change_participant_permissions:e[`permissions-can-change-participant-permissions`],can_edit_display_name:e[`permissions-can-edit-display-name`],can_livestream:e[`permissions-can-livestream`],can_record:e[`permissions-can-record`],can_spotlight:e[`permissions-can-spotlight`],chat:{private:{can_receive:e[`permissions-chat-private-can-receive`],can_send:e[`permissions-chat-private-can-send`],files:e[`permissions-chat-private-files`],text:e[`permissions-chat-private-text`]},public:{can_send:e[`permissions-chat-public-can-send`],files:e[`permissions-chat-public-files`],text:e[`permissions-chat-public-text`]}},connected_meetings:{can_alter_connected_meetings:e[`permissions-connected-meetings-can-alter-connected-meetings`],can_switch_connected_meetings:e[`permissions-connected-meetings-can-switch-connected-meetings`],can_switch_to_parent_meeting:e[`permissions-connected-meetings-can-switch-to-parent-meeting`]},disable_participant_audio:e[`permissions-disable-participant-audio`],disable_participant_screensharing:e[`permissions-disable-participant-screensharing`],disable_participant_video:e[`permissions-disable-participant-video`],hidden_participant:e[`permissions-hidden-participant`],is_recorder:e[`permissions-is-recorder`],kick_participant:e[`permissions-kick-participant`],media:{audio:{can_produce:e[`permissions-media-audio-can-produce`]},screenshare:{can_produce:e[`permissions-media-screenshare-can-produce`]},video:{can_produce:e[`permissions-media-video-can-produce`]}},pin_participant:e[`permissions-pin-participant`],plugins:{can_close:e[`permissions-plugins-can-close`],can_edit_config:e[`permissions-plugins-can-edit-config`],can_start:e[`permissions-plugins-can-start`]},polls:{can_create:e[`permissions-polls-can-create`],can_view:e[`permissions-polls-can-view`],can_vote:e[`permissions-polls-can-vote`]},recorder_type:e[`permissions-recorder-type`],show_participant_list:e[`permissions-show-participant-list`],stage_access:e[`permissions-stage-access`],stage_enabled:e[`permissions-stage-enabled`],transcription_enabled:e[`permissions-transcription-enabled`],waiting_room_type:e[`permissions-waiting-room-type`]},ui:{design_tokens:{border_radius:e[`ui-design-tokens-border-radius`],border_width:e[`ui-design-tokens-border-width`],colors:{danger:d(e[`ui-design-tokens-colors-danger`],`ui-design-tokens-colors-danger`,`text`),success:d(e[`ui-design-tokens-colors-success`],`ui-design-tokens-colors-success`,`text`),text:d(e[`ui-design-tokens-colors-text`],`ui-design-tokens-colors-text`,`text`),text_on_brand:d(e[`ui-design-tokens-colors-text-on-brand`],`ui-design-tokens-colors-text-on-brand`,`text`),video_bg:d(e[`ui-design-tokens-colors-video-bg`],`ui-design-tokens-colors-video-bg`,`text`),warning:d(e[`ui-design-tokens-colors-warning`],`ui-design-tokens-colors-warning`,`text`)},font_family:d(e[`ui-design-tokens-font-family`],`ui-design-tokens-font-family`,`text`),google_font:d(e[`ui-design-tokens-google-font`],`ui-design-tokens-google-font`,`text`),logo:d(e[`ui-design-tokens-logo`],`ui-design-tokens-logo`,`text`),spacing_base:e[`ui-design-tokens-spacing-base`],theme:e[`ui-design-tokens-theme`]}}}),g=await s(`Creating`,async()=>c.send(L,{body:h,account_id:m,app_id:e[`app-id`]}));a(g,{successLabel:`Created`})})};var Ft={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/presets/${t.preset_id}`};function It(e){return e.usage(`$0 realtime kit presets delete <preset-id>
|
|
70
70
|
|
|
@@ -87,7 +87,7 @@ Returns details of a recording for the given recording ID.`).positional(`recordi
|
|
|
87
87
|
|
|
88
88
|
Returns all recordings for an App. If the \`meeting_id\` parameter is passed, returns all recordings for the given meeting ID.`).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of a meeting. Optional. Will limit results to only this meeting if passed.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`per-page`,{type:`number`,description:`Number of results per page`}).option(`expired`,{type:`boolean`,description:`If passed, only shows expired/non-expired recordings on RealtimeKit's bucket`}).option(`search`,{type:`string`,description:`The search query string. You can search using the meeting ID or title.`}).option(`sort-by`,{type:`string`,description:`Sort by`,choices:[`invokedTime`]}).option(`sort-order`,{type:`string`,description:`Sort order`,choices:[`ASC`,`DESC`]}).option(`start-time`,{type:`string`,description:`The start time range for which you want to retrieve the meetings. The time must be specified in ISO format.`}).option(`end-time`,{type:`string`,description:`The end time range for which you want to retrieve the meetings. The time must be specified in ISO format.`}).option(`status`,{type:`string`,description:`Filter by one or more recording status`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const sn={command:`list`,describe:`Fetch all recordings for an App`,builder:on,handler:async e=>c({command:`realtime kit recordings list`,classification:{safeFlags:[`expired`,`sort-by`,`sort-order`,`dry-run`]}},e,async()=>{let c={meeting_id:e[`meeting-id`],page_no:e[`page-no`],per_page:e[`per-page`],expired:e.expired,search:e.search,sort_by:e[`sort-by`],sort_order:e[`sort-order`],start_time:e[`start-time`],end_time:e[`end-time`],status:e.status};if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/recordings`,pathParams:{"app-id":String(e[`app-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(an,{account_id:u,app_id:e[`app-id`],...c}));a(d,{successLabel:`Loaded`})})};var V={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings`,body:`json`};function cn(e){return e.usage(`$0 realtime kit recordings start <app-id>
|
|
89
89
|
|
|
90
|
-
Starts recording a meeting. The meeting can be started by an App admin directly, or a participant with permissions to start a recording, based on the type of authorization used.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`allow-multiple-recordings`,{type:`boolean`,description:"By default, a meeting allows only one recording to run at a time. Enabling the `allow_multiple_recordings` parameter to true allows you to initiate multiple recordings concurrently in the same meeting. This allows you to record separate videos of the same meeting with different configurations, such as portrait mode or landscape mode.",default:!1}).option(`audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`audio-config-channel`,e=>d(e,`audio-config-channel`,`text`)).option(`audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`audio-config-codec`,e=>d(e,`audio-config-codec`,`text`)).option(`audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`file-name-prefix`,{type:`string`,description:`Update the recording file name.`}).option(`interactive-config-type`,{type:`string`,description:`The metadata is presented in the form of ID3 tags.`,choices:[`ID3`]}).coerce(`interactive-config-type`,e=>d(e,`interactive-config-type`,`text`)).option(`max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`rtmp-out-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`url`,{type:`string`,description:`Pass a custom url to record arbitary screen`}).option(`video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`video-config-codec`,e=>d(e,`video-config-codec`,`text`)).option(`video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`video-config-watermark-position`,e=>d(e,`video-config-watermark-position`,`text`)).option(`video-config-watermark-size-height`,{type:`number`,description:`Height of the watermark in px`}).option(`video-config-watermark-size-width`,{type:`number`,description:`Width of the watermark in px`}).option(`video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).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([`realtimekit-bucket-config-enabled`].some(t=>e[t]!==void 0)){let t=[`realtimekit-bucket-config-enabled`].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 --realtimekit_bucket_config-* flag is set`)}return!0})}const ln={command:`start <app-id>`,describe:`Start recording a meeting`,builder:cn,handler:async e=>c({command:`realtime kit recordings start`,classification:{safeFlags:[`allow-multiple-recordings`,`audio-config-channel`,`audio-config-codec`,`audio-config-export-file`,`interactive-config-type`,`realtimekit-bucket-config-enabled`,`video-config-codec`,`video-config-export-file`,`video-config-watermark-position`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/recordings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}):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(V,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}),h=await s(`Creating`,async()=>c.send(V,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})};var H={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings/track`,body:`json`};function un(e){return e.usage(`$0 realtime kit recordings tracks start <app-id>
|
|
90
|
+
Starts recording a meeting. The meeting can be started by an App admin directly, or a participant with permissions to start a recording, based on the type of authorization used.`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`allow-multiple-recordings`,{type:`boolean`,description:"By default, a meeting allows only one recording to run at a time. Enabling the `allow_multiple_recordings` parameter to true allows you to initiate multiple recordings concurrently in the same meeting. This allows you to record separate videos of the same meeting with different configurations, such as portrait mode or landscape mode.",default:!1}).option(`audio-config-channel`,{type:`string`,description:`Audio signal pathway within an audio file that carries a specific sound source.`,choices:[`mono`,`stereo`]}).coerce(`audio-config-channel`,e=>d(e,`audio-config-channel`,`text`)).option(`audio-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded. If VP8/VP9 is selected for videoConfig, changing audioConfig is not allowed. In this case, the codec in the audioConfig is automatically set to vorbis.`,choices:[`MP3`,`AAC`]}).coerce(`audio-config-codec`,e=>d(e,`audio-config-codec`,`text`)).option(`audio-config-export-file`,{type:`boolean`,description:`Controls whether to export audio file seperately`}).option(`file-name-prefix`,{type:`string`,description:`Update the recording file name.`}).option(`interactive-config-type`,{type:`string`,description:`The metadata is presented in the form of ID3 tags.`,choices:[`ID3`]}).coerce(`interactive-config-type`,e=>d(e,`interactive-config-type`,`text`)).option(`max-seconds`,{type:`number`,description:`Specifies the maximum duration for recording in seconds, ranging from a minimum of 60 seconds to a maximum of 24 hours.`}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`realtimekit-bucket-config-enabled`,{type:`boolean`,description:"Controls whether recordings are uploaded to RealtimeKit's bucket. If set to false, `download_url`, `audio_download_url`, `download_url_expiry` won't be generated for a recording."}).option(`rtmp-out-config-rtmp-url`,{type:`string`,description:`RTMP URL to stream to`}).option(`storage-config-type`,{type:`string`,description:`The storage_config.type field`,choices:[`gcs`,`aws`,`azure`,`digitalocean`,`sftp`]}).coerce(`storage-config-type`,e=>d(e,`storage-config-type`,`text`)).option(`url`,{type:`string`,description:`Pass a custom url to record arbitary screen`}).option(`video-config-codec`,{type:`string`,description:`Codec using which the recording will be encoded.`,choices:[`H264`,`VP8`,`VP9`]}).coerce(`video-config-codec`,e=>d(e,`video-config-codec`,`text`)).option(`video-config-export-file`,{type:`boolean`,description:`Controls whether to export video file seperately`}).option(`video-config-height`,{type:`number`,description:`Height of the recording video in pixels`}).option(`video-config-watermark-position`,{type:`string`,description:`Position of the watermark`,choices:[`left top`,`right top`,`left bottom`,`right bottom`]}).coerce(`video-config-watermark-position`,e=>d(e,`video-config-watermark-position`,`text`)).option(`video-config-watermark-size-height`,{type:`number`,description:`Height of the watermark in px`}).option(`video-config-watermark-size-width`,{type:`number`,description:`Width of the watermark in px`}).option(`video-config-watermark-url`,{type:`string`,description:`URL of the watermark image`}).option(`video-config-width`,{type:`number`,description:`Width of the recording video in pixels`}).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([`realtimekit-bucket-config-enabled`].some(t=>e[t]!==void 0)){let t=[`realtimekit-bucket-config-enabled`].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 --realtimekit_bucket_config-* flag is set`)}return!0})}const ln={command:`start <app-id>`,describe:`Start recording a meeting`,builder:cn,handler:async e=>c({command:`realtime kit recordings start`,classification:{safeFlags:[`allow-multiple-recordings`,`audio-config-channel`,`audio-config-codec`,`audio-config-export-file`,`interactive-config-type`,`realtimekit-bucket-config-enabled`,`storage-config-type`,`video-config-codec`,`video-config-export-file`,`video-config-watermark-position`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/recordings`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},storage_config:{type:e[`storage-config-type`]},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}):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(V,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({allow_multiple_recordings:e[`allow-multiple-recordings`],audio_config:{channel:e[`audio-config-channel`],codec:e[`audio-config-codec`],export_file:e[`audio-config-export-file`]},file_name_prefix:d(e[`file-name-prefix`],`file-name-prefix`,`text`),interactive_config:{type:e[`interactive-config-type`]},max_seconds:e[`max-seconds`],meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),realtimekit_bucket_config:{enabled:e[`realtimekit-bucket-config-enabled`]},rtmp_out_config:{rtmp_url:d(e[`rtmp-out-config-rtmp-url`],`rtmp-out-config-rtmp-url`,`text`)},storage_config:{type:e[`storage-config-type`]},url:d(e.url,`url`,`text`),video_config:{codec:e[`video-config-codec`],export_file:e[`video-config-export-file`],height:e[`video-config-height`],watermark:{position:e[`video-config-watermark-position`],size:{height:e[`video-config-watermark-size-height`],width:e[`video-config-watermark-size-width`]},url:d(e[`video-config-watermark-url`],`video-config-watermark-url`,`text`)},width:e[`video-config-width`]}}),h=await s(`Creating`,async()=>c.send(V,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})};var H={method:`POST`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/recordings/track`,body:`json`};function un(e){return e.usage(`$0 realtime kit recordings tracks start <app-id>
|
|
91
91
|
|
|
92
92
|
Starts track recording for a meeting. Track recording currently records separate participant audio tracks as WebM files in the RealtimeKit bucket. Video track recording is in development. For more information, refer to [Track recording](/realtime/realtimekit/recording-guide/track-recording/).`).positional(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`meeting-id`,{type:`string`,description:`ID of the meeting to record.`}).option(`user-ids`,{type:`string`,array:!0,description:"Optional list of participant user IDs to record. Selective track recording (`user_ids`) is in early beta contact support to use this feature."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Starts audio track recording for an active meeting. Use `layers` only when you need to set a file name prefix. Selective track recording (`user_ids`) is in early beta contact support to use this feature."})}const dn={command:`start <app-id>`,describe:`Start recording participant audio tracks`,builder:un,handler:async e=>c({command:`realtime kit recordings tracks start`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf realtime kit recordings tracks start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/recordings/track`,pathParams:{"app-id":String(e[`app-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),user_ids:e[`user-ids`]}):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(H,{body:t,account_id:p,app_id:e[`app-id`]}));a(n,{successLabel:`Created`});return}e[`meeting-id`]===void 0&&(e[`meeting-id`]=await f(`meeting-id`,`ID of the meeting to record.`));let m=u({meeting_id:d(e[`meeting-id`],`meeting-id`,`text`),user_ids:e[`user-ids`]}),h=await s(`Creating`,async()=>c.send(H,{body:m,account_id:p,app_id:e[`app-id`]}));a(h,{successLabel:`Created`})})},fn={command:`tracks`,describe:`Participant-track recordings for RealtimeKit meetings`,builder:e=>e.command(dn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},pn={command:`recordings`,describe:`Meeting and participant-track recordings and recording controls`,builder:e=>e.command(en).command(rn).command(sn).command(ln).command(Qt).command(fn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/chat`};function hn(e){return e.usage(`$0 realtime kit sessions chat export <session-id>
|
|
93
93
|
|
|
@@ -99,7 +99,7 @@ Returns details of all sessions of an App.`).option(`app-id`,{type:`string`,desc
|
|
|
99
99
|
|
|
100
100
|
Returns livestream session details for the given session ID. Retreive the session ID using the \`Fetch all sessions of an App\` API.`).positional(`session-id`,{type:`string`,description:`Session ID`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const En={command:`get <session-id>`,describe:`Fetch livestream session details using a session ID`,builder:Tn,handler:async e=>c({command:`realtime kit sessions livestreams get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={per_page:e[`per-page`],page_no:e[`page-no`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions livestreams get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/livestream-sessions`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(wn,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],...c}));a(d,{successLabel:`Loaded`})})},Dn={command:`livestreams`,describe:`Livestreams associated with historical RealtimeKit sessions`,builder:e=>e.command(En).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var On={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/participants/${t.participant_id}`,query:[`include_peer_events`]};function kn(e){return e.usage(`$0 realtime kit sessions participants get <participant-id>
|
|
101
101
|
|
|
102
|
-
Returns details of the given participant ID for the given session ID. Use the peer report endpoint to retrieve call statistics.`).positional(`participant-id`,{type:`string`,description:`ID of the participant`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participant.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get <participant-id>`,describe:`Fetch details of a participant`,builder:kn,handler:async e=>c({command:`realtime kit sessions participants get`,classification:{safeFlags:[`include-peer-events`,`dry-run`]}},e,async()=>{let c={include_peer_events:e[`include-peer-events`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions participants get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"
|
|
102
|
+
Returns details of the given participant ID for the given session ID. Use the peer report endpoint to retrieve call statistics.`).positional(`participant-id`,{type:`string`,description:`ID of the participant`,demandOption:!0}).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participant.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const An={command:`get <participant-id>`,describe:`Fetch details of a participant`,builder:kn,handler:async e=>c({command:`realtime kit sessions participants get`,classification:{safeFlags:[`include-peer-events`,`dry-run`]}},e,async()=>{let c={include_peer_events:e[`include-peer-events`]};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions participants get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants/${e[`participant-id`]==null?`<participant-id>`:encodeURIComponent(String(e[`participant-id`]))}`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-id`]??``),"participant-id":String(e[`participant-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(On,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],participant_id:e[`participant-id`],...c}));a(d,{successLabel:`Loaded`})})};var jn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/${t.session_id}/participants`,query:[`search`,`page_no`,`per_page`,`sort_order`,`sort_by`,`include_peer_events`,`view`]};function Mn(e){return e.usage(`$0 realtime kit sessions participants list
|
|
103
103
|
|
|
104
104
|
Returns a list of participants for the given session ID.`).option(`app-id`,{type:`string`,description:`The app identifier tag.`,demandOption:!0}).option(`session-id`,{type:`string`,description:`ID of the session`,demandOption:!0}).option(`search`,{type:`string`,description:`The search query string. You can search using participant ID, custom participant ID, or display name.`}).option(`page-no`,{type:`number`,description:`The page number from which you want your page search results to be displayed.`}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`sort-order`,{type:`string`,description:`Sort order`,choices:[`ASC`,`DESC`]}).option(`sort-by`,{type:`string`,description:`Sort by`,choices:[`joinedAt`,`duration`]}).option(`include-peer-events`,{type:`boolean`,description:`if true, response includes all the peer events of participants.`}).option(`view`,{type:`string`,description:"In breakout room sessions, the view parameter can be set to `raw` for session specific duration for participants or `consolidated` to accumulate breakout room durations.",choices:[`raw`,`consolidated`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Nn={command:`list`,describe:`Fetch participants list of a session`,builder:Mn,handler:async e=>c({command:`realtime kit sessions participants list`,classification:{safeFlags:[`sort-order`,`sort-by`,`include-peer-events`,`view`,`dry-run`]}},e,async()=>{let c={search:e.search,page_no:e[`page-no`],per_page:e[`per-page`],sort_order:e[`sort-order`],sort_by:e[`sort-by`],include_peer_events:e[`include-peer-events`],view:e.view};if(e.dryRun){let t=await r();o({command:`cf realtime kit sessions participants list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/realtime/kit/${e[`app-id`]==null?`<app-id>`:encodeURIComponent(String(e[`app-id`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}/participants`,pathParams:{"app-id":String(e[`app-id`]??``),"session-id":String(e[`session-id`]??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(jn,{account_id:u,app_id:e[`app-id`],session_id:e[`session-id`],...c}));a(d,{successLabel:`Loaded`})})},Pn={command:`participants`,describe:`Participants in historical RealtimeKit sessions`,builder:e=>e.command(An).command(Nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/realtime/kit/${t.app_id}/sessions/peer-report/${t.peer_id}`,query:[`filters`,`include_peer_events`]};function In(e){return e.usage(`$0 realtime kit sessions peers get <peer-id>
|
|
105
105
|
|