cf 1.0.0-beta.1 → 1.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/_meta/commands.json +11448 -13819
- package/dist/_meta/hand-written-commands.json +579 -41
- package/dist/_meta/schemas.json +14496 -16450
- package/dist/abuse-reports-DX5xgeka.mjs +24 -0
- package/dist/access-DuHs0Mii.mjs +2 -0
- package/dist/{account-tags-DAf-hq1m.mjs → account-tags-CiKwgOWd.mjs} +6 -6
- package/dist/{accounts-BDIKjiG2.mjs → accounts-DfXSHrkF.mjs} +63 -57
- package/dist/{acm-D-q1FVWJ.mjs → acm-BgSr3Ig4.mjs} +7 -7
- package/dist/{addressing-0w2U1NEy.mjs → addressing-B70NFnrX.mjs} +43 -43
- package/dist/agent-context-GRiQ4zRU.mjs +2 -0
- package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-DJRquHeq.mjs} +15 -15
- package/dist/ai-CP2oIS-I.mjs +29 -0
- package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-Bn_BfMFS.mjs} +3 -3
- package/dist/ai-gateway-CrrEtzUP.mjs +82 -0
- package/dist/{ai-search-B5l4IDSR.mjs → ai-search-C4YWVTCa.mjs} +42 -42
- package/dist/{ai-security-C7_IGDDl.mjs → ai-security-Bt_fG65f.mjs} +4 -4
- package/dist/{alerting-B6m1Rhf4.mjs → alerting-CRr88fVR.mjs} +26 -26
- package/dist/{analytics-nnzFBB_7.mjs → analytics-XqS9OP5B.mjs} +11 -12
- package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-CzmYem4f.mjs} +2 -2
- package/dist/{api-security-B9IozS2a.mjs → api-security-gB1FHrHq.mjs} +57 -57
- package/dist/{argo-C_QcqR6P.mjs → argo-wFCAsYx7.mjs} +5 -5
- package/dist/args-CXgkQKK7.mjs +2 -0
- package/dist/{artifacts-DDFNpYBz.mjs → artifacts-qFjlNRqb.mjs} +20 -20
- package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-CpPUjMUP.mjs} +2 -2
- package/dist/auth-7Fk7PVIC.mjs +2 -0
- package/dist/auth-BmJ946bE.mjs +2 -0
- package/dist/auth-Br-t8vL_.mjs +2 -0
- package/dist/auth-token-DeG33BMQ.mjs +8 -0
- package/dist/autoconfig-D-copdZG.mjs +511 -0
- package/dist/banner-Xk4xBN8U.mjs +2 -0
- package/dist/basin-catalog-CshcpsAH.mjs +46 -0
- package/dist/{billing-DU2X-q-x.mjs → billing-B-xNxxiP.mjs} +11 -11
- package/dist/{bot-management-BHAAoZOh.mjs → bot-management-DhafeA2J.mjs} +4 -4
- package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-D6uCLE_D.mjs} +5 -5
- package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-c3WiHbYn.mjs} +13 -13
- package/dist/browser-extension-Dee2Y1qn.mjs +2 -0
- package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-D9_cwaSD.mjs} +24 -24
- package/dist/build-9ihDp-Gy.mjs +2 -0
- package/dist/build-DrG6TqMw.mjs +2 -0
- package/dist/{builds-CO0MmSd3.mjs → builds-Dl8if-2k.mjs} +32 -32
- package/dist/cache-CIZokBjd.mjs +45 -0
- package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-NUQzCDK8.mjs} +3 -3
- package/dist/cf-DfQfIu3q.mjs +18 -0
- package/dist/chunk-FT2NMTJB-BFqlGcem.mjs +97 -0
- package/dist/chunk-KKDV4JPS-B_t8sDTz.mjs +2 -0
- package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
- package/dist/chunk-WMOON6TZ-B8xCqjB1.mjs +2 -0
- package/dist/cli-aChy8ou_.mjs +6 -0
- package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
- package/dist/client-certificates-qgLpBn8t.mjs +13 -0
- package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DZO6Xw14.mjs} +14 -14
- package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-C7vGDCzX.mjs} +3 -3
- package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-CEfZhSQH.mjs} +1 -1
- package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-CE7y5UkF.mjs} +237 -246
- package/dist/command-07vhr56i.mjs +2 -0
- package/dist/command-B6TpINoN.mjs +2 -0
- package/dist/command-BWC9CbE7.mjs +2 -0
- package/dist/command-BsmF3J_l.mjs +2 -0
- package/dist/command-C2pNxAeL.mjs +2 -0
- package/dist/command-C65Ed0o9.mjs +2 -0
- package/dist/command-Cdx___59.mjs +2 -0
- package/dist/command-CrtDkZNs.mjs +2 -0
- package/dist/command-D0MKPucK.mjs +2 -0
- package/dist/command-DHdWKtqx.mjs +2 -0
- package/dist/command-Ds5OVat3.mjs +2 -0
- package/dist/command-Dv6YavZa.mjs +2 -0
- package/dist/command-dAYWrB5y.mjs +2 -0
- package/dist/command-eM48o0J6.mjs +2 -0
- package/dist/command-maDJWJgu.mjs +2 -0
- package/dist/{completions-xPLd1cvL.mjs → completions-D0280hul.mjs} +26 -26
- package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-CVjFhU-C.mjs} +3 -3
- package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-Bu3LKP6T.mjs} +3 -3
- package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-BbDTIc06.mjs} +3 -3
- package/dist/{connectors-BhvAP5fb.mjs → connectors-DGtx-rPI.mjs} +7 -7
- package/dist/{containers-Cq1gtnq6.mjs → containers-CzNbBrYE.mjs} +70 -72
- package/dist/{containers-Bl3EY-cy.mjs → containers-DEFrbNgO.mjs} +17 -17
- package/dist/{content-scan-BYGe9fFj.mjs → content-scan-BCtWBCqd.mjs} +6 -6
- package/dist/context-CquYYyS3.mjs +7 -0
- package/dist/{cps-BWMDWeVq.mjs → cps-C8BbnbuD.mjs} +1 -1
- package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-CsJ9H2fA.mjs} +3 -3
- package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CYsQZO2H.mjs} +3 -3
- package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-CA8HqolM.mjs} +8 -8
- package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-D0P2vWJE.mjs} +5 -5
- package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CzYMChbh.mjs} +12 -12
- package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-Cet3oF56.mjs} +5 -5
- package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DUkHIaTP.mjs} +10 -10
- package/dist/d1-B2duXfH2.mjs +41 -0
- package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-BkdRVEAH.mjs} +2 -2
- package/dist/{delegate-GctF_lrq.mjs → delegate-CCGgla7X.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-D04Xvm0m.mjs → deploy-BdWBEbLj.mjs} +1 -1
- package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-LmLfj6kI.mjs} +1 -1
- package/dist/dev-BHkVwAea.mjs +4 -0
- package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-9Wj5UWBL.mjs} +7 -7
- package/dist/dialog-Dpi-UVbz.mjs +2 -0
- package/dist/discover-BYkHr5Ja.mjs +2 -0
- package/dist/discover-t6E9lpf3.mjs +2 -0
- package/dist/{dist-BpadEMNY.mjs → dist-Cpb7_h4N.mjs} +35 -35
- package/dist/dist-D1iG7guo.mjs +366 -0
- package/dist/dist-zep5OXGt.mjs +48 -0
- package/dist/{dls-BsnURYja.mjs → dls-Caya7FZc.mjs} +8 -8
- package/dist/{dns-B_nTXhuM.mjs → dns-BLNa0GrP.mjs} +72 -63
- package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-ChCvC5rT.mjs} +8 -8
- package/dist/dot-prop-IITUZ2XW-BsZYdILY.mjs +2 -0
- package/dist/dotenv-CcQjGlV0.mjs +4 -0
- package/dist/dry-run-p9Q7nMZ5.mjs +2 -0
- package/dist/durable-objects-DuRbdp7N.mjs +6 -0
- package/dist/{email-auth-CzjtGH6g.mjs → email-auth-C28s03aI.mjs} +3 -3
- package/dist/{email-routing-B92fty1-.mjs → email-routing-Ci-xjXIN.mjs} +24 -24
- package/dist/email-security-DPU6xvI9.mjs +158 -0
- package/dist/{email-sending-B7f95epu.mjs → email-sending-kTVAlVKO.mjs} +23 -23
- package/dist/error-sanitization-BbEw--0B.mjs +2 -0
- package/dist/error-sanitization-p5rmb53x.mjs +2 -0
- package/dist/errors-cuuW88wR.mjs +3 -0
- package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-ceaXu4zD.mjs} +4 -4
- package/dist/firewall-BND3qSY2.mjs +36 -0
- package/dist/flagship-DfxbNzgx.mjs +28 -0
- package/dist/{fraud-DU_YCLC5.mjs → fraud-DgyYv_CC.mjs} +3 -3
- package/dist/generate-9P8Q_RiO.mjs +2 -0
- package/dist/generate-VxmGG8BF.mjs +3 -0
- package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-v3p7murv.mjs} +3 -3
- package/dist/gt-KlYHH-UC.mjs +2 -0
- package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-CByb4qYA.mjs} +10 -10
- package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-3CqeMF5g.mjs} +6 -6
- package/dist/hyperdrive-CmyYTE-K.mjs +37 -0
- package/dist/{iam-CtX9NPCy.mjs → iam-CV_M681j.mjs} +24 -24
- package/dist/{images-CuWFOsGw.mjs → images-DaLPjskW.mjs} +33 -33
- package/dist/index.mjs +1 -1
- package/dist/init-CBKifk5L.mjs +39 -0
- package/dist/{intel-BeGV3VXt.mjs → intel-MpftjuPB.mjs} +36 -36
- package/dist/interactive-D80kbTap.mjs +32 -0
- package/dist/interactive-mJQ_IrGd.mjs +2 -0
- package/dist/{ips-d6aoKAI4.mjs → ips-WWvPwSBc.mjs} +1 -1
- package/dist/k2-D0QYUFqT.mjs +13 -0
- package/dist/keyless-certificates-DqILy3t9.mjs +13 -0
- package/dist/{keys-Fyf3vWcA.mjs → keys-DhX4AcqF.mjs} +2 -2
- package/dist/kv-DLUfUL0_.mjs +15 -0
- package/dist/lazy-command--5YpWUVY.mjs +2 -0
- package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-C0U1oYM5.mjs} +8 -8
- package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-BJKI9lm7.mjs} +39 -39
- package/dist/local-DkYQiSQQ.mjs +2 -0
- package/dist/{local-B6b2OIBW.mjs → local-rYpzEQb-.mjs} +1 -1
- package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-DZTTIe6x.mjs} +1 -1
- package/dist/login-CnE2Ii_F.mjs +2 -0
- package/dist/login-bnylLTit.mjs +5 -0
- package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-DFZybI0C.mjs} +3 -3
- package/dist/{logos-BWBVGwU6.mjs → logos-Da2YtqSN.mjs} +4 -4
- package/dist/{logpush-CZKR8DHO.mjs → logpush-Q7WIEHS1.mjs} +23 -23
- package/dist/logs-c3b3USyS.mjs +36 -0
- package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-BoyDmFq3.mjs} +37 -37
- package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-BkUbpMUp.mjs} +18 -18
- package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-4-THD45G.mjs} +161 -165
- package/dist/{managed-defense-SYreve4W.mjs → managed-defense-CTMqSp6z.mjs} +9 -9
- package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-DcYAvqTe.mjs} +4 -4
- package/dist/{matches-qf7GReyu.mjs → matches-hnU16rSJ.mjs} +3 -3
- package/dist/{mcp-DYSk5_gc.mjs → mcp-kZX4irfN.mjs} +15 -15
- package/dist/{mesh-DdY07OYt.mjs → mesh-Dxzvvso6.mjs} +12 -12
- package/dist/migrate-BNvUWrjy.mjs +2 -0
- package/dist/monetization-Dsqj9DCA.mjs +20 -0
- package/dist/mtls-certificates-BSbMwIna.mjs +13 -0
- package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-osO_vAPu.mjs} +17 -17
- package/dist/{network-DpaZ5LJL.mjs → network-mEnXTEiG.mjs} +24 -24
- package/dist/oauth-CeZ3d_dB.mjs +9 -0
- package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CWPHi-Yn.mjs} +7 -7
- package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-CxpRD6d7.mjs} +1 -1
- package/dist/{oauth-nsTDJ0dF.mjs → oauth-w0fWmrwU.mjs} +1 -1
- package/dist/{observability-smcOFbC1.mjs → observability-BxL2RqWZ.mjs} +44 -44
- package/dist/open-PCXX3ZDZ-C7gpxSsl.mjs +4 -0
- package/dist/{organization-Dyf_0mq4.mjs → organization-DNieJ1xJ.mjs} +7 -7
- package/dist/{organizations-D7zGPLVm.mjs → organizations-BIXPmTy5.mjs} +1 -1
- package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-dVJvSIH8.mjs} +3 -3
- package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CO6tDW1t.mjs} +3 -3
- package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-DeTY8aN2.mjs} +14 -14
- package/dist/output-ClYel9WX.mjs +2 -0
- package/dist/{page-rules-CLzba_nr.mjs → page-rules-DA552Ra4.mjs} +7 -7
- package/dist/pages-B0x7tidm.mjs +54 -0
- package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-DoTg9VP7.mjs} +32 -32
- package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-yRO2QBfe.mjs} +3 -3
- package/dist/{pipelines-lps71uoA.mjs → pipelines-CQxrm9ao.mjs} +20 -20
- package/dist/precursor-FiGYDRV9.mjs +4 -0
- package/dist/previews-BthBa50j.mjs +4 -0
- package/dist/progress-TLUEIYE6.mjs +2 -0
- package/dist/prompt-Ck_1PCHm.mjs +3 -0
- package/dist/{queries-EJYlFw8m.mjs → queries-C0RRdol7.mjs} +4 -4
- package/dist/{queues-CozKGaA4.mjs → queues-sLgvjsRP.mjs} +29 -35
- package/dist/r2-C2PllL6i.mjs +125 -0
- package/dist/r2-data-catalog-Bg7zq1IB.mjs +2 -0
- package/dist/{radar-NmpdyMo5.mjs → radar-Bez6k9Dw.mjs} +1 -1
- package/dist/raw-fetch-DNxNCoeP.mjs +2 -0
- package/dist/{realtime-iWTz8WbH.mjs → realtime-D-HSXznX.mjs} +78 -78
- package/dist/{registrar-Cza1L8i_.mjs → registrar-DwHrG9QR.mjs} +9 -9
- package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-jNukmzQP.mjs} +6 -6
- package/dist/{registry-vreNkX6u.mjs → registry-CsSLAAOE.mjs} +1 -1
- package/dist/{reporting-gvXX2MxY.mjs → reporting-DolhAb10.mjs} +7 -7
- package/dist/request-headers-Lhj314mk.mjs +2 -0
- package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-w72hKc33.mjs} +2 -2
- package/dist/resolve-Djf2xgBx.mjs +2 -0
- package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-DTrSkqI4.mjs} +18 -18
- package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-aURR4fIJ.mjs} +2 -2
- package/dist/{rules-_QDaG3U5.mjs → rules-C8a7cV-W.mjs} +8 -8
- package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-RJ6yBefy.mjs} +20 -20
- package/dist/{rum-ChPyfpM2.mjs → rum-Bk1dPW4p.mjs} +14 -14
- package/dist/run-BJOAPmsz.mjs +2 -0
- package/dist/run-iFM5TxtQ.mjs +2 -0
- package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-PagOq-G2.mjs} +2 -2
- package/dist/schema-v7mOxMdx.mjs +2 -0
- package/dist/{scim-BjiswXbC.mjs → scim-C0FmjkkV.mjs} +10 -10
- package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-cG_5RMzK.mjs} +11 -11
- package/dist/security-insights-DVAqroY5.mjs +40 -0
- package/dist/{security-txt-CaR5Idmz.mjs → security-txt-rfrrdiZV.mjs} +4 -4
- package/dist/session-B6mFkaVZ.mjs +2 -0
- package/dist/shared-BqsWoApw.mjs +2 -0
- package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-_HA814Im.mjs} +11 -11
- package/dist/{snippets-r-Mre0cE.mjs → snippets-mRelEw0p.mjs} +10 -10
- package/dist/source-38bULAR8.mjs +6 -0
- package/dist/spawn-BzPhcLJI.mjs +10 -0
- package/dist/{spectrum-BhjCVFZk.mjs → spectrum-BwtOiaDw.mjs} +11 -11
- package/dist/{speed-CPgypY7n.mjs → speed-DmqsZtiJ.mjs} +11 -11
- package/dist/src--KDGqL5N.mjs +109 -0
- package/dist/{ssl-DsMrXyqK.mjs → ssl-DCvfveJB.mjs} +16 -16
- package/dist/startup-profile-BCe9k9sR.mjs +17 -0
- package/dist/startup-profile-WrwRyMwH.mjs +2 -0
- package/dist/{state-BxCejn42.mjs → state-BPwdiNO_.mjs} +1 -1
- package/dist/state-a1tTOGjm.mjs +2 -0
- package/dist/{stream-L2NmGPby.mjs → stream-aroClJeD.mjs} +56 -56
- package/dist/{submit-KN0Ul5fV.mjs → submit-BBKhoKT8.mjs} +2 -2
- package/dist/{tags-CZMFKGdP.mjs → tags-Djw0e-4j.mjs} +2 -2
- package/dist/telemetry-DoBQOGRk.mjs +2 -0
- package/dist/telemetry-DrFNujdx.mjs +2 -0
- package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-XCbXryBZ.mjs} +1 -1
- package/dist/tenant-tc1wb_ym.mjs +10 -0
- package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
- package/dist/tools-CB4NleeJ.mjs +2 -0
- package/dist/{tunnels-C-mMZy4v.mjs → tunnels-C2FTswb6.mjs} +15 -15
- package/dist/{turnstile-39JL9tMt.mjs → turnstile-BV4Mdd-j.mjs} +8 -8
- package/dist/ui-D1hhIDIs.mjs +5 -0
- package/dist/update-check-CFt6cMOi.mjs +2 -0
- package/dist/update-check-Dtj9fzNe.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-7ikewAnp.mjs → url-info-CeegsDK7.mjs} +2 -2
- package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-Dbypc9wz.mjs} +4 -4
- package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-BFXMrpJF.mjs} +8 -8
- package/dist/{user-BFq8UM1s.mjs → user-3uwLMH78.mjs} +1 -1
- package/dist/{values-DnBYV1ZD.mjs → values-BTncDc3U.mjs} +2 -2
- package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-CtMAtx8r.mjs} +17 -17
- package/dist/version-oN1bmOgM.mjs +2 -0
- package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-1xDvjF13.mjs} +25 -25
- package/dist/{web-assets-CCSSW_JH.mjs → web-assets-BfEprX1S.mjs} +29 -29
- package/dist/{web3-bbT1REPc.mjs → web3-DNbp5sZw.mjs} +13 -13
- package/dist/workers-DK_JgS4Y.mjs +38 -0
- package/dist/{workers-builds-TRF3K416.mjs → workers-builds-CdhwmmsQ.mjs} +7 -7
- package/dist/workers-for-platforms-CP6IqxrK.mjs +42 -0
- package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-LVfayM2-.mjs} +6 -6
- package/dist/{workflows-CKdPlIkK.mjs → workflows-CA5K8FFb.mjs} +23 -23
- package/dist/wrangler-migration-B0mKHqGd.mjs +2 -0
- package/dist/{zaraz-BXFlEWSx.mjs → zaraz-BY60ZUQ4.mjs} +11 -11
- package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CQNohO7_.mjs} +460 -434
- package/dist/{zone-DHmrotGW.mjs → zone-BVDW2UGd.mjs} +2 -2
- package/dist/{zones-C0eKBTqG.mjs → zones-CcZL0YQp.mjs} +44 -44
- package/package.json +23 -15
- package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
- package/dist/access-C_2rEi0H.mjs +0 -27
- package/dist/account-CZ9SPVdz.mjs +0 -12
- package/dist/ai-ARwLeQ1O.mjs +0 -31
- package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
- package/dist/auth-DJhSjNNL.mjs +0 -8
- package/dist/auth-sAorfdWU.mjs +0 -2
- package/dist/browser-extension-C48pKh3t.mjs +0 -15
- package/dist/build-1a8CiNIT.mjs +0 -2
- package/dist/build-Ca_drQY2.mjs +0 -2
- package/dist/cache-XxusQxXe.mjs +0 -45
- package/dist/cf-oadujOtC.mjs +0 -18
- package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
- package/dist/chunk-DL5FNmn1.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
- package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
- package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
- package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
- package/dist/client-certificates-CgaIc3zN.mjs +0 -13
- package/dist/command-CF0giIIc.mjs +0 -3
- package/dist/command-CsZFRm3P.mjs +0 -2
- package/dist/command-DBz8QiFk.mjs +0 -2
- package/dist/command-RiZ_LYcm.mjs +0 -2
- package/dist/config-B4vIa0zp.mjs +0 -2
- package/dist/d1-C1GK7DsW.mjs +0 -45
- package/dist/data-security-DDhPnX8Z.mjs +0 -71
- package/dist/dev-CVD3BVUG.mjs +0 -4
- package/dist/dialog--iw0F2s-.mjs +0 -2
- package/dist/dist-CUUGKvjh.mjs +0 -48
- package/dist/dist-dc4E1u01.mjs +0 -272
- package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
- package/dist/dry-run-CLX6Pbtq.mjs +0 -2
- package/dist/durable-objects-8U8DpF9q.mjs +0 -8
- package/dist/email-security-keTqF0nJ.mjs +0 -160
- package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
- package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
- package/dist/firewall-67qoXiqD.mjs +0 -56
- package/dist/flagship-CjC3dF7L.mjs +0 -28
- package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
- package/dist/interactive-B6woOLo-.mjs +0 -32
- package/dist/interactive-DnUvQHjc.mjs +0 -2
- package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
- package/dist/kv-CA4J7cCq.mjs +0 -21
- package/dist/local-BrfySqnx.mjs +0 -2
- package/dist/login-CLW108XX.mjs +0 -5
- package/dist/login-xgRjiyJa.mjs +0 -2
- package/dist/logs-CiDyrqEu.mjs +0 -48
- package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
- package/dist/oauth-Dzk6Gy-6.mjs +0 -14
- package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
- package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
- package/dist/output-Bia1u2k5.mjs +0 -2
- package/dist/pages-pah6dZBJ.mjs +0 -60
- package/dist/precursor-DTTYLDEa.mjs +0 -4
- package/dist/previews-B89cUmpr.mjs +0 -4
- package/dist/progress-D_mL-Kcy.mjs +0 -2
- package/dist/prompt-sL_yMZbI.mjs +0 -3
- package/dist/r2-Chn_JQUM.mjs +0 -127
- package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
- package/dist/raw-fetch-lSVttVJF.mjs +0 -2
- package/dist/request-headers-POBKmu93.mjs +0 -2
- package/dist/resolve-BXemCSyA.mjs +0 -2
- package/dist/run-DtN51G2A.mjs +0 -2
- package/dist/run-oACgYK8I.mjs +0 -2
- package/dist/schema-DZSSJaY0.mjs +0 -2
- package/dist/sdk-CsWOex96.mjs +0 -3
- package/dist/security-center-DP4GC1cG.mjs +0 -30
- package/dist/shared-W9uoX1-W.mjs +0 -2
- package/dist/source-BR4_k2ad.mjs +0 -6
- package/dist/spawn-BWEuIO-w.mjs +0 -523
- package/dist/src-Hw-TlVAO.mjs +0 -108
- package/dist/startup-profile-CYEokTVe.mjs +0 -2
- package/dist/startup-profile-CgWHy4rE.mjs +0 -17
- package/dist/state-DSzkxXML.mjs +0 -2
- package/dist/telemetry-CSj_ezpk.mjs +0 -2
- package/dist/telemetry-DAf9gLyH.mjs +0 -2
- package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
- package/dist/tenant-Cu4P-foo.mjs +0 -12
- package/dist/tools-BMKpYraQ.mjs +0 -2
- package/dist/ui-DH95w1Qk.mjs +0 -5
- package/dist/undici-DTSBJHNS.mjs +0 -96
- package/dist/update-check-BKQBD4MQ.mjs +0 -2
- package/dist/update-check-CE9XB6gf.mjs +0 -2
- package/dist/version-Bh3b9vTa.mjs +0 -2
- package/dist/workers-CXuyjZB8.mjs +0 -36
- package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
- /package/dist/{Page-C-JHZnIy.mjs → Page-DAgOEX17.mjs} +0 -0
- /package/dist/{alerts-CstOk8n0.mjs → alerts-D3iKtzoN.mjs} +0 -0
- /package/dist/{autorag-PRTwXGgn.mjs → autorag-pvRfDwne.mjs} +0 -0
- /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-NjzJZMOV.mjs} +0 -0
- /package/dist/{brands-BHRXlWDm.mjs → brands-DP5Ndir1.mjs} +0 -0
- /package/dist/{clear-UvKESVx3.mjs → clear-qLKPlJqb.mjs} +0 -0
- /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-_Kmwfpnp.mjs} +0 -0
- /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-_aCmWeZx.mjs} +0 -0
- /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-CffEplpV.mjs} +0 -0
- /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-BQh9XapD.mjs} +0 -0
- /package/dist/{health-CwPzzrV6.mjs → health--10IShMi.mjs} +0 -0
- /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-0CeePPHp.mjs} +0 -0
- /package/dist/{internal-WLHfxX64.mjs → internal-BUs583vv.mjs} +0 -0
- /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-Cyc3fmyN.mjs} +0 -0
- /package/dist/{live-D_k7eHdv.mjs → live-VCSxA0N9.mjs} +0 -0
- /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
- /package/dist/{project-settings-DSXevRvj.mjs → project-settings-Bf6rReo1.mjs} +0 -0
- /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-D3q0mGv2.mjs} +0 -0
- /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-BIxlBuMn.mjs} +0 -0
- /package/dist/{ready-CvwvbdTX.mjs → ready-CAgelFmC.mjs} +0 -0
- /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-B3TOjNmk.mjs} +0 -0
- /package/dist/{refute-CIAFMj00.mjs → refute-BZNkFpBB.mjs} +0 -0
- /package/dist/{resolve-CUDKxUrW.mjs → resolve-CGKqk7q8.mjs} +0 -0
- /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-StecHiaf.mjs} +0 -0
- /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-B4adr-vD.mjs} +0 -0
- /package/dist/{search-12jA1b4l.mjs → search-Devngw4M.mjs} +0 -0
- /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-ChR5eXXd.mjs} +0 -0
- /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BGb81HZN.mjs} +0 -0
- /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-_wa6KxEl.mjs} +0 -0
- /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-BesKGqfI.mjs} +0 -0
- /package/dist/{verify-CZW5Fo1q.mjs → verify-CYM5GlPu.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{
|
|
2
|
+
import{i as e,n as t}from"./auth-Br-t8vL_.mjs";import{t as n}from"./output-ClYel9WX.mjs";import{t as r}from"./dry-run-p9Q7nMZ5.mjs";import{t as i}from"./progress-TLUEIYE6.mjs";import{t as a}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{i as o,n as s,r as c,t as l}from"./body-parser-NjzJZMOV.mjs";import{n as u}from"./input-validation-0CeePPHp.mjs";import{a as d,n as f}from"./prompt-Ck_1PCHm.mjs";import{t as p}from"./cli-types-_Kmwfpnp.mjs";function ee(e){return e.usage(`$0 user audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:"Limits the returned results to logs newer than the specified date. A `full-date` that conforms to RFC3339."}).option(`before`,{type:`string`,description:"Limits the returned results to logs older than the specified date. A `full-date` that conforms to RFC3339."}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`Get user audit logs`,builder:p(ee),handler:async e=>a({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let a={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){r({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:a,bodyKind:`none`});return}let o=await t(e);n(await i(`Loading`,async()=>o.user.auditLogs.list(a)),{successLabel:`Loaded`})})},m={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 user billing history list
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{n as t}from"./auth-Br-t8vL_.mjs";import{a as n,t as r}from"./context-CquYYyS3.mjs";import{t as i}from"./output-ClYel9WX.mjs";import{t as a}from"./dry-run-p9Q7nMZ5.mjs";import{t as o}from"./progress-TLUEIYE6.mjs";import{t as s}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{t as c}from"./cli-types-_Kmwfpnp.mjs";function l(e){return e.usage(`$0 values list
|
|
3
3
|
|
|
4
|
-
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/tags/values/${c[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(c[`tag-key`]))}`,pathParams:{"tag-key":String(c[`tag-key`]??``)},query:s,bodyKind:`none`});return}let l=await
|
|
4
|
+
Lists all distinct values for a given tag key, optionally filtered by resource type.`).option(`tag-key`,{type:`string`,description:`The tag key to retrieve values for.`,demandOption:!0}).option(`type`,{type:`string`,description:`Filter by resource type.`,choices:`access_application.access_application_policy.access_group.account.account_ruleset.ai_gateway.alerting_policy.alerting_webhook.api_gateway_operation.cloudflared_tunnel.custom_certificate.custom_hostname.cws_deployment.cws_policy.cws_policy_set.cws_workload.d1_database.dns_record.durable_object_namespace.gateway_list.gateway_rule.healthcheck.image.infrastructure_target.kv_namespace.load_balancer.load_balancer_monitor.load_balancer_pool.managed_client_certificate.pages_project.queue.r2_bucket.resource_share.stream_live_input.stream_video.vectorize_index.worker.worker_route.worker_version.zone.zone_ruleset`.split(`.`)}).option(`cursor`,{type:`string`,description:`Cursor for pagination.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const u={command:`list`,describe:`List tag values`,builder:c(l),handler:async c=>s({command:`values list`,classification:{safeFlags:[`type`,`dry-run`]}},c,async()=>{let s={type:c.type,cursor:c.cursor};if(c.dryRun){a({command:`cf values list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/tags/values/${c[`tag-key`]==null?`<tag-key>`:encodeURIComponent(String(c[`tag-key`]))}`,pathParams:{"tag-key":String(c[`tag-key`]??``)},query:s,bodyKind:`none`});return}let l=await t(c),u=c.local?e:await r();c.accountId=u,i(await o(`Loading`,async()=>l.values.list({account_id:u,tag_key:c[`tag-key`],...s})),{successLabel:`Loaded`})})},d={command:`values`,describe:`values`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d as default};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-
|
|
2
|
+
import{t as e}from"./local-rYpzEQb-.mjs";import{i as t,n}from"./auth-Br-t8vL_.mjs";import{a as r,t as i}from"./context-CquYYyS3.mjs";import{t as a}from"./output-ClYel9WX.mjs";import{t as o}from"./dry-run-p9Q7nMZ5.mjs";import{t as s}from"./progress-TLUEIYE6.mjs";import{t as c}from"./run-iFM5TxtQ.mjs";import"./telemetry-DoBQOGRk.mjs";import{n as l,t as u}from"./body-parser-NjzJZMOV.mjs";import{n as d,t as f}from"./input-validation-0CeePPHp.mjs";import{a as p,i as m,n as h}from"./prompt-Ck_1PCHm.mjs";function g(e){return e.usage(`$0 vectorize create
|
|
3
3
|
|
|
4
|
-
Creates and returns a new Vectorize Index.`).option(`config-dimensions`,{type:`number`,description:`Specifies the number of dimensions for the index`}).option(`config-metric`,{type:`string`,description:`Specifies the type of metric to use calculating distance.`,choices:[`cosine`,`euclidean`,`dot-product`]}).option(`config-preset`,{type:`string`,description:`Specifies the preset to use for the index.`,choices:[`@cf/baai/bge-small-en-v1.5`,`@cf/baai/bge-base-en-v1.5`,`@cf/baai/bge-large-en-v1.5`,`openai/text-embedding-ada-002`,`cohere/embed-multilingual-v2.0`]}).option(`description`,{type:`string`,description:`Specifies the description of the index.`}).option(`name`,{type:`string`,description:`The 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)`}).conflicts(`config-dimensions`,[`config-preset`]).implies(`config-dimensions`,[`config-metric`]).conflicts(`config-metric`,[`config-preset`]).implies(`config-metric`,[`config-dimensions`]).conflicts(`config-preset`,[`config-dimensions`,`config-metric`])}const _={command:`create`,describe:`Create Vectorize Index`,builder:g,handler:async
|
|
4
|
+
Creates and returns a new Vectorize Index.`).option(`config-dimensions`,{type:`number`,description:`Specifies the number of dimensions for the index`}).option(`config-metric`,{type:`string`,description:`Specifies the type of metric to use calculating distance.`,choices:[`cosine`,`euclidean`,`dot-product`]}).option(`config-preset`,{type:`string`,description:`Specifies the preset to use for the index.`,choices:[`@cf/baai/bge-small-en-v1.5`,`@cf/baai/bge-base-en-v1.5`,`@cf/baai/bge-large-en-v1.5`,`openai/text-embedding-ada-002`,`cohere/embed-multilingual-v2.0`]}).option(`description`,{type:`string`,description:`Specifies the description of the index.`}).option(`name`,{type:`string`,description:`The 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)`}).conflicts(`config-dimensions`,[`config-preset`]).implies(`config-dimensions`,[`config-metric`]).conflicts(`config-metric`,[`config-preset`]).implies(`config-metric`,[`config-dimensions`]).conflicts(`config-preset`,[`config-dimensions`,`config-metric`])}const _={command:`create`,describe:`Create Vectorize Index`,builder:g,handler:async t=>c({command:`vectorize create`,classification:{safeFlags:[`config-metric`,`config-preset`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes`,pathParams:{},bodyKind:`json`,body:t.body===void 0?u({config:{dimensions:t[`config-dimensions`],metric:d(t[`config-metric`],`config-metric`,`text`),preset:d(t[`config-preset`],`config-preset`,`text`)},description:d(t.description,`description`,`text`),name:d(t.name,`name`,`text`)}):l(t.body)});return}let c=await n(t),f=t.local?e:await i();if(t.accountId=f,t.body){let e=l(t.body);a(await s(`Creating`,async()=>c.vectorize.create({body:e,account_id:f})),{successLabel:`Created`});return}t.name===void 0&&(t.name=await p(`name`,`The name field`));let m=u({config:{dimensions:t[`config-dimensions`],metric:d(t[`config-metric`],`config-metric`,`text`),preset:d(t[`config-preset`],`config-preset`,`text`)},description:d(t.description,`description`,`text`),name:d(t.name,`name`,`text`)});a(await s(`Creating`,async()=>c.vectorize.create({body:m,account_id:f})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 vectorize delete-by-ids <index-name>
|
|
5
5
|
|
|
6
|
-
Delete a set of vectors from an index by their vector identifiers.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`A list of vector identifiers to delete from the index indicated by the path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`delete-by-ids <index-name>`,describe:`Delete Vectors By Identifier`,builder:v,handler:async
|
|
6
|
+
Delete a set of vectors from an index by their vector identifiers.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`A list of vector identifiers to delete from the index indicated by the path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`delete-by-ids <index-name>`,describe:`Delete Vectors By Identifier`,builder:v,handler:async t=>c({command:`vectorize delete-by-ids`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize delete-by-ids`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/delete_by_ids`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`json`,body:t.body===void 0?u({ids:t.ids}):l(t.body)});return}let c=await n(t),d=t.local?e:await i();if(t.accountId=d,t.body){let e=l(t.body);a(await s(`Creating`,async()=>c.vectorize.deleteByIds({body:e,account_id:d,index_name:t[`index-name`]})),{successLabel:`Created`});return}let f=u({ids:t.ids});a(await s(`Creating`,async()=>c.vectorize.deleteByIds({body:f,account_id:d,index_name:t[`index-name`]})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 vectorize delete <index-name>
|
|
7
7
|
|
|
8
|
-
Deletes the specified Vectorize Index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const x={command:`delete <index-name>`,describe:`Delete Vectorize Index`,builder:b,handler:async
|
|
9
|
-
`);return}a(await s(`Deleting`,async()=>c.vectorize.delete({account_id:l,index_name:
|
|
8
|
+
Deletes the specified Vectorize Index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const x={command:`delete <index-name>`,describe:`Delete Vectorize Index`,builder:b,handler:async t=>c({command:`vectorize delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf vectorize delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();if(t.accountId=l,!await h({force:!!t.force})){process.stderr.write(`Aborted.
|
|
9
|
+
`);return}a(await s(`Deleting`,async()=>c.vectorize.delete({account_id:l,index_name:t[`index-name`]})),{successLabel:`Deleted`})})};function S(e){return e.usage(`$0 vectorize get-by-ids <index-name>
|
|
10
10
|
|
|
11
|
-
Get a set of vectors from an index by their vector identifiers.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`A list of vector identifiers to retrieve from the index indicated by the path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`get-by-ids <index-name>`,describe:`Get Vectors By Identifier`,builder:S,handler:async
|
|
11
|
+
Get a set of vectors from an index by their vector identifiers.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`A list of vector identifiers to retrieve from the index indicated by the path.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`get-by-ids <index-name>`,describe:`Get Vectors By Identifier`,builder:S,handler:async t=>c({command:`vectorize get-by-ids`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize get-by-ids`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/get_by_ids`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`json`,body:t.body===void 0?u({ids:t.ids}):l(t.body)});return}let c=await n(t),d=t.local?e:await i();if(t.accountId=d,t.body){let e=l(t.body);a(await s(`Creating`,async()=>c.vectorize.getByIds({body:e,account_id:d,index_name:t[`index-name`]})),{successLabel:`Created`});return}let f=u({ids:t.ids});a(await s(`Creating`,async()=>c.vectorize.getByIds({body:f,account_id:d,index_name:t[`index-name`]})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 vectorize get <index-name>
|
|
12
12
|
|
|
13
|
-
Returns the specified Vectorize Index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <index-name>`,describe:`Get Vectorize Index`,builder:w,handler:async
|
|
13
|
+
Returns the specified Vectorize Index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <index-name>`,describe:`Get Vectorize Index`,builder:w,handler:async t=>c({command:`vectorize get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.vectorize.get({account_id:l,index_name:t[`index-name`]})),{successLabel:`Loaded`})})};function E(e){return e.usage(`$0 vectorize info <index-name>
|
|
14
14
|
|
|
15
|
-
Get information about a vectorize index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`info <index-name>`,describe:`Get Vectorize Index Info`,builder:E,handler:async
|
|
15
|
+
Get information about a vectorize index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const D={command:`info <index-name>`,describe:`Get Vectorize Index Info`,builder:E,handler:async t=>c({command:`vectorize info`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize info`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/info`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.vectorize.info({account_id:l,index_name:t[`index-name`]})),{successLabel:`Loaded`})})};function O(e){return e.usage(`$0 vectorize insert <index-name>
|
|
16
16
|
|
|
17
|
-
Inserts vectors into the specified index and returns a mutation id corresponding to the vectors enqueued for insertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const k={command:`insert <index-name>`,describe:`Insert Vectors`,builder:O,handler:async l=>c({command:`vectorize insert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize insert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
17
|
+
Inserts vectors into the specified index and returns a mutation id corresponding to the vectors enqueued for insertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const k={command:`insert <index-name>`,describe:`Insert Vectors`,builder:O,handler:async l=>c({command:`vectorize insert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize insert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${l[`index-name`]==null?`<index-name>`:encodeURIComponent(String(l[`index-name`]))}/insert`,pathParams:{"index-name":String(l[`index-name`]??``)},query:c,bodyKind:`octet-stream`,body:l.body});return}let u=await n(l),p=l.local?e:await i();if(l.accountId=p,l.file){let e=f(l.file);a(await s(`Creating`,async()=>t(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/insert`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body){let e=d(l.body,`body`,`binary`),n=new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();a(await s(`Creating`,async()=>t(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/insert${n?`?`+n:``}`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function A(e){return e.usage(`$0 vectorize list-vectors <index-name>
|
|
18
18
|
|
|
19
|
-
Returns a paginated list of vector identifiers from the specified index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`count`,{type:`number`,description:`Maximum number of vectors to return`}).option(`cursor`,{type:`string`,description:`Cursor for pagination to get the next page of results`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`list-vectors <index-name>`,describe:`List Vectors`,builder:A,handler:async
|
|
19
|
+
Returns a paginated list of vector identifiers from the specified index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`count`,{type:`number`,description:`Maximum number of vectors to return`}).option(`cursor`,{type:`string`,description:`Cursor for pagination to get the next page of results`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`list-vectors <index-name>`,describe:`List Vectors`,builder:A,handler:async t=>c({command:`vectorize list-vectors`,classification:{safeFlags:[`dry-run`]}},t,async()=>{let c={count:t.count,cursor:t.cursor};if(t.dryRun){o({command:`cf vectorize list-vectors`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/list`,pathParams:{"index-name":String(t[`index-name`]??``)},query:c,bodyKind:`none`});return}let l=await n(t),u=t.local?e:await i();t.accountId=u,a(await s(`Loading`,async()=>l.vectorize.listVectors({account_id:u,index_name:t[`index-name`],...c})),{successLabel:`Loaded`})})};function M(e){return e.usage(`$0 vectorize list
|
|
20
20
|
|
|
21
|
-
Returns a list of Vectorize Indexes`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List Vectorize Indexes`,builder:M,handler:async
|
|
21
|
+
Returns a list of Vectorize Indexes`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List Vectorize Indexes`,builder:M,handler:async t=>c({command:`vectorize list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes`,pathParams:{},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.vectorize.list({account_id:l})),{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 vectorize metadata-index create <index-name>
|
|
22
22
|
|
|
23
|
-
Enable metadata filtering based on metadata property. Limited to 10 properties.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`index-type`,{type:`string`,description:`Specifies the type of metadata property to index.`,choices:[`string`,`number`,`boolean`]}).option(`property-name`,{type:`string`,description:`Specifies the metadata property to index.`}).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 F={command:`create <index-name>`,describe:`Create Metadata Index`,builder:P,handler:async
|
|
23
|
+
Enable metadata filtering based on metadata property. Limited to 10 properties.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`index-type`,{type:`string`,description:`Specifies the type of metadata property to index.`,choices:[`string`,`number`,`boolean`]}).option(`property-name`,{type:`string`,description:`Specifies the metadata property to index.`}).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 F={command:`create <index-name>`,describe:`Create Metadata Index`,builder:P,handler:async t=>c({command:`vectorize metadata-index create`,classification:{safeFlags:[`index-type`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize metadata-index create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/metadata_index/create`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`json`,body:t.body===void 0?u({indexType:d(t[`index-type`],`index-type`,`text`),propertyName:d(t[`property-name`],`property-name`,`text`)}):l(t.body)});return}let c=await n(t),f=t.local?e:await i();if(t.accountId=f,t.body){let e=l(t.body);a(await s(`Creating`,async()=>c.vectorize.metadataIndex.create({...e,account_id:f,index_name:t[`index-name`]})),{successLabel:`Created`});return}t[`index-type`]===void 0&&(t[`index-type`]=await m(`index-type`,`Specifies the type of metadata property to index.`,[`string`,`number`,`boolean`])),t[`property-name`]===void 0&&(t[`property-name`]=await p(`property-name`,`Specifies the metadata property to index.`));let h=u({indexType:d(t[`index-type`],`index-type`,`text`),propertyName:d(t[`property-name`],`property-name`,`text`)});a(await s(`Creating`,async()=>c.vectorize.metadataIndex.create({...h,account_id:f,index_name:t[`index-name`]})),{successLabel:`Created`})})};function I(e){return e.usage(`$0 vectorize metadata-index delete <index-name>
|
|
24
24
|
|
|
25
|
-
Allow Vectorize to delete the specified metadata index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`property-name`,{type:`string`,description:`Specifies the metadata property for which the index must be deleted.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`delete <index-name>`,describe:`Delete Metadata Index`,builder:I,handler:async
|
|
26
|
-
`);return}if(
|
|
25
|
+
Allow Vectorize to delete the specified metadata index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`property-name`,{type:`string`,description:`Specifies the metadata property for which the index must be deleted.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`delete <index-name>`,describe:`Delete Metadata Index`,builder:I,handler:async t=>c({command:`vectorize metadata-index delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf vectorize metadata-index delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/metadata_index/delete`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`json`,body:t.body===void 0?u({propertyName:d(t[`property-name`],`property-name`,`text`)}):l(t.body)});return}let c=await n(t),f=t.local?e:await i();if(t.accountId=f,!await h({force:!!t.force,message:`This operation deletes a metadata index destructively.`})){process.stderr.write(`Aborted.
|
|
26
|
+
`);return}if(t.body){let e=l(t.body);a(await s(`Deleting`,async()=>c.vectorize.metadataIndex.delete({...e,account_id:f,index_name:t[`index-name`]})),{successLabel:`Deleted`});return}t[`property-name`]===void 0&&(t[`property-name`]=await p(`property-name`,`Specifies the metadata property for which the index must be deleted.`));let m=u({propertyName:d(t[`property-name`],`property-name`,`text`)});a(await s(`Deleting`,async()=>c.vectorize.metadataIndex.delete({...m,account_id:f,index_name:t[`index-name`]})),{successLabel:`Deleted`})})};function R(e){return e.usage(`$0 vectorize metadata-index list
|
|
27
27
|
|
|
28
|
-
List Metadata Indexes for the specified Vectorize Index.`).option(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List Metadata Indexes`,builder:R,handler:async
|
|
28
|
+
List Metadata Indexes for the specified Vectorize Index.`).option(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const z={command:`list`,describe:`List Metadata Indexes`,builder:R,handler:async t=>c({command:`vectorize metadata-index list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize metadata-index list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/metadata_index/list`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`none`});return}let c=await n(t),l=t.local?e:await i();t.accountId=l,a(await s(`Loading`,async()=>c.vectorize.metadataIndex.list({account_id:l,index_name:t[`index-name`]})),{successLabel:`Loaded`})})},B={command:`metadata-index`,describe:`Metadata indexes for filtered vector search`,builder:e=>e.command(F).command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.usage(`$0 vectorize query <index-name>
|
|
29
29
|
|
|
30
|
-
Finds vectors closest to a given vector in an index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`return-metadata`,{type:`string`,description:`Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors.`,choices:[`none`,`indexed`,`all`],default:`none`}).option(`return-values`,{type:`boolean`,description:`Whether to return the values associated with the closest vectors.`,default:!1}).option(`top-k`,{type:`number`,description:`The number of nearest neighbors to find.`,default:5}).option(`vector`,{type:`string`,array:!0,description:`The search vector that will be used to find the nearest neighbors.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`query <index-name>`,describe:`Query Vectors`,builder:V,handler:async
|
|
30
|
+
Finds vectors closest to a given vector in an index.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`return-metadata`,{type:`string`,description:`Whether to return no metadata, indexed metadata or all metadata associated with the closest vectors.`,choices:[`none`,`indexed`,`all`],default:`none`}).option(`return-values`,{type:`boolean`,description:`Whether to return the values associated with the closest vectors.`,default:!1}).option(`top-k`,{type:`number`,description:`The number of nearest neighbors to find.`,default:5}).option(`vector`,{type:`string`,array:!0,description:`The search vector that will be used to find the nearest neighbors.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const H={command:`query <index-name>`,describe:`Query Vectors`,builder:V,handler:async t=>c({command:`vectorize query`,classification:{safeFlags:[`return-metadata`,`return-values`,`dry-run`]}},t,async()=>{if(t.dryRun){o({command:`cf vectorize query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${t[`index-name`]==null?`<index-name>`:encodeURIComponent(String(t[`index-name`]))}/query`,pathParams:{"index-name":String(t[`index-name`]??``)},bodyKind:`json`,body:t.body===void 0?u({returnMetadata:d(t[`return-metadata`],`return-metadata`,`text`),returnValues:t[`return-values`],topK:t[`top-k`],vector:t.vector}):l(t.body)});return}let c=await n(t),f=t.local?e:await i();if(t.accountId=f,t.body){let e=l(t.body);a(await s(`Loading`,async()=>c.vectorize.query({...e,account_id:f,index_name:t[`index-name`]})),{successLabel:`Loaded`});return}if(t.vector===void 0)throw Error(`--vector is required (or pass --body with this field set).`);let p=u({returnMetadata:d(t[`return-metadata`],`return-metadata`,`text`),returnValues:t[`return-values`],topK:t[`top-k`],vector:t.vector});a(await s(`Loading`,async()=>c.vectorize.query({...p,account_id:f,index_name:t[`index-name`]})),{successLabel:`Loaded`})})};function U(e){return e.usage(`$0 vectorize upsert <index-name>
|
|
31
31
|
|
|
32
|
-
Upserts vectors into the specified index, creating them if they do not exist and returns a mutation id corresponding to the vectors enqueued for upsertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const W={command:`upsert <index-name>`,describe:`Upsert Vectors`,builder:U,handler:async l=>c({command:`vectorize upsert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize upsert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await
|
|
32
|
+
Upserts vectors into the specified index, creating them if they do not exist and returns a mutation id corresponding to the vectors enqueued for upsertion.`).positional(`index-name`,{type:`string`,description:`Index name`,demandOption:!0}).option(`unparsable-behavior`,{type:`string`,description:`Behavior for ndjson parse failures.`,choices:[`error`,`discard`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const W={command:`upsert <index-name>`,describe:`Upsert Vectors`,builder:U,handler:async l=>c({command:`vectorize upsert`,classification:{safeFlags:[`unparsable-behavior`,`dry-run`]}},l,async()=>{let c={"unparsable-behavior":l[`unparsable-behavior`]};if(l.dryRun){o({command:`cf vectorize upsert`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/vectorize/v2/indexes/${l[`index-name`]==null?`<index-name>`:encodeURIComponent(String(l[`index-name`]))}/upsert`,pathParams:{"index-name":String(l[`index-name`]??``)},query:c,bodyKind:`octet-stream`,body:l.body});return}let u=await n(l),p=l.local?e:await i();if(l.accountId=p,l.file){let e=f(l.file);a(await s(`Creating`,async()=>t(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body){let e=d(l.body,`body`,`binary`),n=new URLSearchParams(Object.entries(c).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString();a(await s(`Creating`,async()=>t(u,`POST`,`/accounts/${p}/vectorize/v2/indexes/${encodeURIComponent(String(l[`index-name`]))}/upsert${n?`?`+n:``}`,{body:e,headers:{"Content-Type":`application/x-ndjson`}})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},G={command:`vectorize`,describe:`Globally distributed vector database for building semantic search, recommendations, and RAG applications on Workers`,builder:e=>e.command(_).command(x).command(y).command(T).command(C).command(D).command(k).command(N).command(j).command(H).command(W).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{G as default};
|