cf 1.0.0-beta.0 → 1.0.0-beta.1
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 +62 -6
- package/dist/_meta/hand-written-commands.json +31 -1
- package/dist/_meta/schemas.json +23 -1
- package/dist/{abuse-reports-BwsJLiPN.mjs → abuse-reports-Dd6kJM7r.mjs} +1 -1
- package/dist/{access-BVbIajYr.mjs → access-C_2rEi0H.mjs} +1 -1
- package/dist/{account-DBLarar2.mjs → account-CZ9SPVdz.mjs} +1 -1
- package/dist/{account-tags-BNrSShjj.mjs → account-tags-DAf-hq1m.mjs} +1 -1
- package/dist/{accounts-CCAnDjFk.mjs → accounts-BDIKjiG2.mjs} +1 -1
- package/dist/{acm-ZPYQbZQr.mjs → acm-D-q1FVWJ.mjs} +1 -1
- package/dist/{addressing-BFpzLfTn.mjs → addressing-0w2U1NEy.mjs} +1 -1
- package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-Drumm4qd.mjs} +1 -1
- package/dist/{ai-BF0_0NtS.mjs → ai-ARwLeQ1O.mjs} +1 -1
- package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-CPrmohqf.mjs} +1 -1
- package/dist/{ai-gateway-CVABbCjv.mjs → ai-gateway-DNY4FPF2.mjs} +1 -1
- package/dist/{ai-search-g0tR8Cut.mjs → ai-search-B5l4IDSR.mjs} +1 -1
- package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-C7_IGDDl.mjs} +1 -1
- package/dist/{alerting-Bst10SOG.mjs → alerting-B6m1Rhf4.mjs} +1 -1
- package/dist/{analytics-DgEaxta8.mjs → analytics-nnzFBB_7.mjs} +1 -1
- package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-BvjKCwn1.mjs} +1 -1
- package/dist/{api-security-Dkx1Codr.mjs → api-security-B9IozS2a.mjs} +1 -1
- package/dist/{argo-BvswWPlP.mjs → argo-C_QcqR6P.mjs} +1 -1
- package/dist/{artifacts-D8kZKJq0.mjs → artifacts-DDFNpYBz.mjs} +1 -1
- package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-cTzNV0DV.mjs} +1 -1
- package/dist/{auth-C80y97yu.mjs → auth-DJhSjNNL.mjs} +1 -1
- package/dist/{auth-B9w55oRg.mjs → auth-sAorfdWU.mjs} +1 -1
- package/dist/{billing-Cqj64fqz.mjs → billing-DU2X-q-x.mjs} +1 -1
- package/dist/{bot-management-CzZx_aml.mjs → bot-management-BHAAoZOh.mjs} +1 -1
- package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-DOOnGVVY.mjs} +1 -1
- package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-C_DYa7IK.mjs} +1 -1
- package/dist/{browser-extension-BRHJm3Qf.mjs → browser-extension-C48pKh3t.mjs} +1 -1
- package/dist/{browser-run-DFrohJ1p.mjs → browser-run-Dw-vgWGR.mjs} +1 -1
- package/dist/build-1a8CiNIT.mjs +2 -0
- package/dist/build-Ca_drQY2.mjs +2 -0
- package/dist/{builds-CamhClyb.mjs → builds-CO0MmSd3.mjs} +1 -1
- package/dist/{cache-BiTk4-Zc.mjs → cache-XxusQxXe.mjs} +1 -1
- package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-Dmxh7w-Z.mjs} +1 -1
- package/dist/{client-certificates-DDisXoTE.mjs → client-certificates-CgaIc3zN.mjs} +1 -1
- package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-D7NWV0YH.mjs} +1 -1
- package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-XMFOTNqT.mjs} +1 -1
- package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-Cew4MHvA.mjs} +1 -1
- package/dist/{command-BP7ldws1.mjs → command-CsZFRm3P.mjs} +1 -1
- package/dist/{command-BtNRBTP6.mjs → command-DBz8QiFk.mjs} +1 -1
- package/dist/command-RiZ_LYcm.mjs +2 -0
- package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-BfQN_pm6.mjs} +1 -1
- package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-B7qLZsZJ.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-Ckvg9BPc.mjs} +1 -1
- package/dist/{connectors-CBhLWVd-.mjs → connectors-BhvAP5fb.mjs} +1 -1
- package/dist/{containers-C7blN-pe.mjs → containers-Bl3EY-cy.mjs} +1 -1
- package/dist/{containers-Bx_44bmJ.mjs → containers-Cq1gtnq6.mjs} +1 -1
- package/dist/{content-scan-CC91dAlv.mjs → content-scan-BYGe9fFj.mjs} +1 -1
- package/dist/{cps-D9a4N_bH.mjs → cps-BWMDWeVq.mjs} +1 -1
- package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-DMYGzLNi.mjs} +1 -1
- package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-Vq4l2s7n.mjs} +1 -1
- package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-BDEHH0Ym.mjs} +1 -1
- package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-CHSkZNdX.mjs} +1 -1
- package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-Bch3iQZC.mjs} +1 -1
- package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-Tdvu1-vr.mjs} +1 -1
- package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-rFsiIXlr.mjs} +1 -1
- package/dist/{d1-DXs1xVmH.mjs → d1-C1GK7DsW.mjs} +1 -1
- package/dist/{data-security-CVZAIzhe.mjs → data-security-DDhPnX8Z.mjs} +1 -1
- package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-D6xiYj2l.mjs} +1 -1
- package/dist/{deploy-D2XXCkqk.mjs → deploy-D04Xvm0m.mjs} +1 -1
- package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-COEKxOA1.mjs} +1 -1
- package/dist/{dev-nsNxyg2D.mjs → dev-CVD3BVUG.mjs} +1 -1
- package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-BZVAAguV.mjs} +1 -1
- package/dist/{dialog-Dx4rRcKM.mjs → dialog--iw0F2s-.mjs} +1 -1
- package/dist/{dist-BDOzKthe.mjs → dist-CUUGKvjh.mjs} +1 -1
- package/dist/{dls-C5kAQsN6.mjs → dls-BsnURYja.mjs} +1 -1
- package/dist/{dns-CYwXrdJO.mjs → dns-B_nTXhuM.mjs} +1 -1
- package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-DDsrdulo.mjs} +1 -1
- package/dist/{durable-objects-3jvUgzKd.mjs → durable-objects-8U8DpF9q.mjs} +1 -1
- package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-CzjtGH6g.mjs} +1 -1
- package/dist/{email-routing-C4YhZGPw.mjs → email-routing-B92fty1-.mjs} +1 -1
- package/dist/{email-security-BcFyWNby.mjs → email-security-keTqF0nJ.mjs} +1 -1
- package/dist/{email-sending-BO1GOAho.mjs → email-sending-B7f95epu.mjs} +5 -5
- package/dist/error-sanitization-Cbd_oegl.mjs +2 -0
- package/dist/{error-sanitization-DOlqWkNu.mjs → error-sanitization-DwOlM3R7.mjs} +1 -1
- package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-DL_H1m7E.mjs} +1 -1
- package/dist/{firewall-BSMa9aH3.mjs → firewall-67qoXiqD.mjs} +1 -1
- package/dist/{flagship-BJYMb7hb.mjs → flagship-CjC3dF7L.mjs} +1 -1
- package/dist/{fraud-C7kS7kP9.mjs → fraud-DU_YCLC5.mjs} +1 -1
- package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-xqN-QudN.mjs} +1 -1
- package/dist/{healthchecks-BJleItOD.mjs → healthchecks-COnq1YOx.mjs} +1 -1
- package/dist/{hostnames-CHajvoHa.mjs → hostnames-CxRAY_Pp.mjs} +1 -1
- package/dist/{hyperdrive-DlxQrok-.mjs → hyperdrive-DPWyiXpj.mjs} +1 -1
- package/dist/{iam-B7oTr6vW.mjs → iam-CtX9NPCy.mjs} +1 -1
- package/dist/{images-xLAYe436.mjs → images-CuWFOsGw.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{intel-DwZXY1YE.mjs → intel-BeGV3VXt.mjs} +1 -1
- package/dist/{ips-BC_9nKE7.mjs → ips-d6aoKAI4.mjs} +1 -1
- package/dist/{keyless-certificates-CtsCsbZ2.mjs → keyless-certificates-Dvib4jhw.mjs} +1 -1
- package/dist/{keys-K-GFzhku.mjs → keys-Fyf3vWcA.mjs} +1 -1
- package/dist/{kv-Bfwz_ULu.mjs → kv-CA4J7cCq.mjs} +1 -1
- package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-B7ewx3W-.mjs} +1 -1
- package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-DHD4f2CT.mjs} +1 -1
- package/dist/{login-DaglE6WA.mjs → login-CLW108XX.mjs} +1 -1
- package/dist/{login-CAsRUF4c.mjs → login-xgRjiyJa.mjs} +1 -1
- package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-BAX8v3iL.mjs} +1 -1
- package/dist/{logos-6A6gJC5C.mjs → logos-BWBVGwU6.mjs} +1 -1
- package/dist/{logpush-DwehajAw.mjs → logpush-CZKR8DHO.mjs} +1 -1
- package/dist/{logs-BWg7YymF.mjs → logs-CiDyrqEu.mjs} +1 -1
- package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-DttrBXqd.mjs} +1 -1
- package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-9VXDSYuL.mjs} +1 -1
- package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-Dsu_cSGM.mjs} +1 -1
- package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-SYreve4W.mjs} +1 -1
- package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-CzSy_xPw.mjs} +1 -1
- package/dist/{matches-D6ahHNaP.mjs → matches-qf7GReyu.mjs} +1 -1
- package/dist/{mcp-BcIrLbRv.mjs → mcp-DYSk5_gc.mjs} +1 -1
- package/dist/{mesh-wLiPcWyN.mjs → mesh-DdY07OYt.mjs} +1 -1
- package/dist/{mtls-certificates-AEuNOERQ.mjs → mtls-certificates-LXlgdkf1.mjs} +1 -1
- package/dist/{network-DZsrs_sw.mjs → network-DpaZ5LJL.mjs} +1 -1
- package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-C4uUoeNa.mjs} +1 -1
- package/dist/{oauth-C-QCVfWz.mjs → oauth-Dzk6Gy-6.mjs} +1 -1
- package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-D7Ou7oAS.mjs} +1 -1
- package/dist/{oauth-Cu1twz9z.mjs → oauth-nsTDJ0dF.mjs} +1 -1
- package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-BFoE82Mv.mjs} +1 -1
- package/dist/{observability-BnHy2M6p.mjs → observability-smcOFbC1.mjs} +1 -1
- package/dist/{organization-iasRm69J.mjs → organization-Dyf_0mq4.mjs} +1 -1
- package/dist/{organizations-CUzCIKXV.mjs → organizations-D7zGPLVm.mjs} +1 -1
- package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-DJrp29gv.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-BYj3kJiq.mjs} +1 -1
- package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-j0tGh6Fy.mjs} +1 -1
- package/dist/{page-rules-CXa8EYcP.mjs → page-rules-CLzba_nr.mjs} +1 -1
- package/dist/{pages-Cu0m9GSH.mjs → pages-pah6dZBJ.mjs} +1 -1
- package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-DbaTVI8V.mjs} +1 -1
- package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-BEvtoppJ.mjs} +1 -1
- package/dist/{pipelines-MmXlsxYO.mjs → pipelines-lps71uoA.mjs} +1 -1
- package/dist/{precursor-jqeEG_mJ.mjs → precursor-DTTYLDEa.mjs} +1 -1
- package/dist/previews-B89cUmpr.mjs +4 -0
- package/dist/{progress-Bpp73hIu.mjs → progress-D_mL-Kcy.mjs} +1 -1
- package/dist/{prompt-CpZztV8c.mjs → prompt-sL_yMZbI.mjs} +1 -1
- package/dist/{queries-VzdcSR5H.mjs → queries-EJYlFw8m.mjs} +1 -1
- package/dist/{queues-BZYl2emH.mjs → queues-CozKGaA4.mjs} +1 -1
- package/dist/{r2-omcKF8_A.mjs → r2-Chn_JQUM.mjs} +1 -1
- package/dist/{r2-data-catalog-DISnPFPY.mjs → r2-data-catalog-Bfn3AWzn.mjs} +1 -1
- package/dist/{radar-JzBTD249.mjs → radar-NmpdyMo5.mjs} +1 -1
- package/dist/{raw-fetch-DxGs_eRm.mjs → raw-fetch-lSVttVJF.mjs} +1 -1
- package/dist/{realtime-yIdAJ0Yf.mjs → realtime-iWTz8WbH.mjs} +1 -1
- package/dist/{registrar-D-Li9gNk.mjs → registrar-Cza1L8i_.mjs} +1 -1
- package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-BP4GQg5s.mjs} +1 -1
- package/dist/{reporting-Cf-pnw6h.mjs → reporting-gvXX2MxY.mjs} +1 -1
- package/dist/{request-headers-DaXBfmVn.mjs → request-headers-POBKmu93.mjs} +1 -1
- package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-F8a_aj32.mjs} +1 -1
- package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-D6XWIDmb.mjs} +1 -1
- package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-c_z4VZt0.mjs} +1 -1
- package/dist/{rules-DDCa7cYF.mjs → rules-_QDaG3U5.mjs} +1 -1
- package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-Bc4ZuPG_.mjs} +1 -1
- package/dist/{rum-EIj9ViSn.mjs → rum-ChPyfpM2.mjs} +1 -1
- package/dist/{run-ChM_YpZ0.mjs → run-DtN51G2A.mjs} +1 -1
- package/dist/run-oACgYK8I.mjs +2 -0
- package/dist/{schema-DCBb3Fcs.mjs → schema-DZSSJaY0.mjs} +1 -1
- package/dist/{schema-flags--GosoCMU.mjs → schema-flags-C9lbLgE-.mjs} +1 -1
- package/dist/{scim-DA83eNe-.mjs → scim-BjiswXbC.mjs} +1 -1
- package/dist/{sdk-CvIO3tWS.mjs → sdk-CsWOex96.mjs} +1 -1
- package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-Cn3D5a0d.mjs} +1 -1
- package/dist/{security-center-DbH_7h-T.mjs → security-center-DP4GC1cG.mjs} +1 -1
- package/dist/{security-txt-DSrHhVEN.mjs → security-txt-CaR5Idmz.mjs} +1 -1
- package/dist/shared-W9uoX1-W.mjs +2 -0
- package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-CphSzoh4.mjs} +1 -1
- package/dist/{snippets-An5kQs33.mjs → snippets-r-Mre0cE.mjs} +1 -1
- package/dist/{spawn-7IW1UyoH.mjs → spawn-BWEuIO-w.mjs} +1 -1
- package/dist/{spectrum-Ci79n7fd.mjs → spectrum-BhjCVFZk.mjs} +1 -1
- package/dist/{speed-BBL7LrLn.mjs → speed-CPgypY7n.mjs} +1 -1
- package/dist/{src-CNHNCZpy.mjs → src-Hw-TlVAO.mjs} +5 -5
- package/dist/{ssl-B2psFIRm.mjs → ssl-DsMrXyqK.mjs} +1 -1
- package/dist/{stream-Du0Q7UOh.mjs → stream-L2NmGPby.mjs} +1 -1
- package/dist/{submit-CU8S2jBT.mjs → submit-KN0Ul5fV.mjs} +1 -1
- package/dist/{tags-C3l5aZSi.mjs → tags-CZMFKGdP.mjs} +1 -1
- package/dist/{telemetry-PHe8XxA2.mjs → telemetry-CSj_ezpk.mjs} +1 -1
- package/dist/telemetry-DAf9gLyH.mjs +2 -0
- package/dist/{tenant-BZ0ysR9L.mjs → tenant-Cu4P-foo.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-Nx59Buv0.mjs} +1 -1
- package/dist/{tunnels-D1tRWQQi.mjs → tunnels-C-mMZy4v.mjs} +1 -1
- package/dist/{turnstile-DBa4_Vyz.mjs → turnstile-39JL9tMt.mjs} +1 -1
- package/dist/{update-check-AAn7EXw8.mjs → update-check-BKQBD4MQ.mjs} +1 -1
- package/dist/update-check-CE9XB6gf.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-info-BRA0XGT2.mjs → url-info-7ikewAnp.mjs} +1 -1
- package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-B0D7Fhf3.mjs} +1 -1
- package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-DpKIqkin.mjs} +1 -1
- package/dist/{user-CftksgmF.mjs → user-BFq8UM1s.mjs} +1 -1
- package/dist/{values-m7w9PX3o.mjs → values-DnBYV1ZD.mjs} +1 -1
- package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-BpZ4UsUj.mjs} +1 -1
- package/dist/version-Bh3b9vTa.mjs +2 -0
- package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-DJfqehy9.mjs} +1 -1
- package/dist/{web-assets-CLU5vAgP.mjs → web-assets-CCSSW_JH.mjs} +1 -1
- package/dist/{web3-Dkd4XRNH.mjs → web3-bbT1REPc.mjs} +1 -1
- package/dist/{workers-BQi4_SBS.mjs → workers-CXuyjZB8.mjs} +20 -20
- package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-TRF3K416.mjs} +1 -1
- package/dist/{workers-for-platforms-actLCM6Q.mjs → workers-for-platforms-B57iKiSN.mjs} +1 -1
- package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-kgryQ48l.mjs} +1 -1
- package/dist/{workflows-Cm7WsAgB.mjs → workflows-CKdPlIkK.mjs} +1 -1
- package/dist/{zaraz-DurWe32F.mjs → zaraz-BXFlEWSx.mjs} +1 -1
- package/dist/{zero-trust-D8SVU8YZ.mjs → zero-trust-M08mBsYd.mjs} +1 -1
- package/dist/{zone-B3AEAfcd.mjs → zone-DHmrotGW.mjs} +1 -1
- package/dist/{zones-DiX5LoSU.mjs → zones-C0eKBTqG.mjs} +1 -1
- package/package.json +1 -1
- package/dist/build-BbjcJxKq.mjs +0 -2
- package/dist/build-DQh5-KK4.mjs +0 -2
- package/dist/command-Ck9rbHA4.mjs +0 -2
- package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
- package/dist/previews-Cg6lc24N.mjs +0 -4
- package/dist/run-CSFE1qVX.mjs +0 -2
- package/dist/shared-CtBkOWGN.mjs +0 -2
- package/dist/telemetry-CNt8H3aA.mjs +0 -2
- package/dist/update-check-BbIXBq1o.mjs +0 -2
- package/dist/version-cPq-WKL8.mjs +0 -2
package/dist/_meta/commands.json
CHANGED
|
@@ -46599,6 +46599,12 @@
|
|
|
46599
46599
|
"description": "Build a project and run checks without actually uploading the Worker",
|
|
46600
46600
|
"default": false
|
|
46601
46601
|
},
|
|
46602
|
+
{
|
|
46603
|
+
"name": "worker",
|
|
46604
|
+
"type": "string",
|
|
46605
|
+
"required": false,
|
|
46606
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
46607
|
+
},
|
|
46602
46608
|
{
|
|
46603
46609
|
"name": "dispatch-namespace",
|
|
46604
46610
|
"type": "string",
|
|
@@ -55358,7 +55364,7 @@
|
|
|
55358
55364
|
"command": "cf email-sending suppressions create",
|
|
55359
55365
|
"name": "create",
|
|
55360
55366
|
"fullPath": ["email-sending", "suppressions", "create"],
|
|
55361
|
-
"description": "Creates
|
|
55367
|
+
"description": "Creates a suppression for every sending domain of the account (default) or for one sending domain (`scope.type = sending_domain`). Creating an existing active suppression returns its identifier. If a mutable legacy zone-linked account row already exists, it is promoted without changing its identifier.",
|
|
55362
55368
|
"summary": "Create account Email Sending suppression",
|
|
55363
55369
|
"usage": "cf email-sending suppressions create [options]",
|
|
55364
55370
|
"arguments": [],
|
|
@@ -55381,6 +55387,19 @@
|
|
|
55381
55387
|
"required": false,
|
|
55382
55388
|
"description": "Advisory note for this suppression. Not enforced or validated beyond length."
|
|
55383
55389
|
},
|
|
55390
|
+
{
|
|
55391
|
+
"name": "scope-type",
|
|
55392
|
+
"type": "string",
|
|
55393
|
+
"required": false,
|
|
55394
|
+
"description": "Blocks the recipient for every sending domain of the account.",
|
|
55395
|
+
"enum": ["account", "sending_domain"]
|
|
55396
|
+
},
|
|
55397
|
+
{
|
|
55398
|
+
"name": "scope-value",
|
|
55399
|
+
"type": "string",
|
|
55400
|
+
"required": false,
|
|
55401
|
+
"description": "The sending domain to suppress for: the domain part of the envelope MAIL FROM. It is lowercased and trailing dots are removed. Internationalized domains must use the ASCII (punycode) form. Ownership is not checked; a domain the account does not send from never matches."
|
|
55402
|
+
},
|
|
55384
55403
|
{
|
|
55385
55404
|
"name": "dry-run",
|
|
55386
55405
|
"type": "boolean",
|
|
@@ -55438,7 +55457,7 @@
|
|
|
55438
55457
|
"command": "cf email-sending suppressions edit",
|
|
55439
55458
|
"name": "edit",
|
|
55440
55459
|
"fullPath": ["email-sending", "suppressions", "edit"],
|
|
55441
|
-
"description": "Updates expiry or advisory note fields without changing legacy internal zone memberships.",
|
|
55460
|
+
"description": "Updates expiry or advisory note fields without changing legacy internal zone memberships. Scope cannot be changed.",
|
|
55442
55461
|
"summary": "Update account Email Sending suppression",
|
|
55443
55462
|
"usage": "cf email-sending suppressions edit <suppression-id> [options]",
|
|
55444
55463
|
"arguments": [
|
|
@@ -55520,7 +55539,7 @@
|
|
|
55520
55539
|
"command": "cf email-sending suppressions import",
|
|
55521
55540
|
"name": "import",
|
|
55522
55541
|
"fullPath": ["email-sending", "suppressions", "import"],
|
|
55523
|
-
"description": "Imports up to 1,000
|
|
55542
|
+
"description": "Imports up to 1,000 Email Sending suppressions in one request. Each item applies to every sending domain of the account (default) or to one sending domain.",
|
|
55524
55543
|
"summary": "Bulk import account Email Sending suppressions",
|
|
55525
55544
|
"usage": "cf email-sending suppressions import [options]",
|
|
55526
55545
|
"arguments": [],
|
|
@@ -55529,7 +55548,7 @@
|
|
|
55529
55548
|
"name": "items",
|
|
55530
55549
|
"type": "string",
|
|
55531
55550
|
"required": true,
|
|
55532
|
-
"description": "Suppressions to import. Items with
|
|
55551
|
+
"description": "Suppressions to import. Items with the same email address and scope are deduplicated before processing. Provide as a JSON array of objects or @path/to/file.json."
|
|
55533
55552
|
},
|
|
55534
55553
|
{
|
|
55535
55554
|
"name": "dry-run",
|
|
@@ -55556,7 +55575,7 @@
|
|
|
55556
55575
|
"command": "cf email-sending suppressions list",
|
|
55557
55576
|
"name": "list",
|
|
55558
55577
|
"fullPath": ["email-sending", "suppressions", "list"],
|
|
55559
|
-
"description": "Lists every active Email Sending suppression owned by the account, including legacy rows with internal zone memberships.",
|
|
55578
|
+
"description": "Lists every active Email Sending suppression owned by the account: sending-domain suppressions first, then account-wide suppressions (including legacy rows with internal zone memberships). Each group is newest first.",
|
|
55560
55579
|
"summary": "List account Email Sending suppressions",
|
|
55561
55580
|
"usage": "cf email-sending suppressions list [options]",
|
|
55562
55581
|
"arguments": [],
|
|
@@ -55598,6 +55617,19 @@
|
|
|
55598
55617
|
"policy"
|
|
55599
55618
|
]
|
|
55600
55619
|
},
|
|
55620
|
+
{
|
|
55621
|
+
"name": "scope-type",
|
|
55622
|
+
"type": "string",
|
|
55623
|
+
"required": false,
|
|
55624
|
+
"description": "Filter by scope: `account` returns only account-wide suppressions, `sending_domain` only sending-domain suppressions. Omit to list both, sending-domain suppressions first.",
|
|
55625
|
+
"enum": ["account", "sending_domain"]
|
|
55626
|
+
},
|
|
55627
|
+
{
|
|
55628
|
+
"name": "scope-value",
|
|
55629
|
+
"type": "string",
|
|
55630
|
+
"required": false,
|
|
55631
|
+
"description": "Exact sending-domain filter. Requires `scope_type=sending_domain`."
|
|
55632
|
+
},
|
|
55601
55633
|
{
|
|
55602
55634
|
"name": "dry-run",
|
|
55603
55635
|
"type": "boolean",
|
|
@@ -90491,6 +90523,12 @@
|
|
|
90491
90523
|
"required": false,
|
|
90492
90524
|
"description": "Use existing Preview Build Output Specification files without building",
|
|
90493
90525
|
"default": false
|
|
90526
|
+
},
|
|
90527
|
+
{
|
|
90528
|
+
"name": "worker",
|
|
90529
|
+
"type": "string",
|
|
90530
|
+
"required": false,
|
|
90531
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
90494
90532
|
}
|
|
90495
90533
|
]
|
|
90496
90534
|
},
|
|
@@ -135435,7 +135473,7 @@
|
|
|
135435
135473
|
"fullPath": ["workers", "check"],
|
|
135436
135474
|
"category": "action",
|
|
135437
135475
|
"description": "Profile a Worker's startup performance locally using Build Output Specification files.",
|
|
135438
|
-
"usage": "cf workers check [--outfile <path>] [--prebuilt]",
|
|
135476
|
+
"usage": "cf workers check [--outfile <path>] [--prebuilt] [--worker <name>]",
|
|
135439
135477
|
"arguments": [],
|
|
135440
135478
|
"options": [
|
|
135441
135479
|
{
|
|
@@ -135451,6 +135489,12 @@
|
|
|
135451
135489
|
"required": false,
|
|
135452
135490
|
"description": "Use existing Build Output Specification files without building",
|
|
135453
135491
|
"default": false
|
|
135492
|
+
},
|
|
135493
|
+
{
|
|
135494
|
+
"name": "worker",
|
|
135495
|
+
"type": "string",
|
|
135496
|
+
"required": false,
|
|
135497
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
135454
135498
|
}
|
|
135455
135499
|
]
|
|
135456
135500
|
},
|
|
@@ -135978,6 +136022,12 @@
|
|
|
135978
136022
|
"required": false,
|
|
135979
136023
|
"description": "Run checks without applying triggers",
|
|
135980
136024
|
"default": false
|
|
136025
|
+
},
|
|
136026
|
+
{
|
|
136027
|
+
"name": "worker",
|
|
136028
|
+
"type": "string",
|
|
136029
|
+
"required": false,
|
|
136030
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
135981
136031
|
}
|
|
135982
136032
|
]
|
|
135983
136033
|
},
|
|
@@ -136040,6 +136090,12 @@
|
|
|
136040
136090
|
"description": "Build a project and run checks without actually uploading the Worker",
|
|
136041
136091
|
"default": false
|
|
136042
136092
|
},
|
|
136093
|
+
{
|
|
136094
|
+
"name": "worker",
|
|
136095
|
+
"type": "string",
|
|
136096
|
+
"required": false,
|
|
136097
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
136098
|
+
},
|
|
136043
136099
|
{
|
|
136044
136100
|
"name": "preview-alias",
|
|
136045
136101
|
"type": "string",
|
|
@@ -629,6 +629,12 @@
|
|
|
629
629
|
"description": "Build a project and run checks without actually uploading the Worker",
|
|
630
630
|
"default": false
|
|
631
631
|
},
|
|
632
|
+
{
|
|
633
|
+
"name": "worker",
|
|
634
|
+
"type": "string",
|
|
635
|
+
"required": false,
|
|
636
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
637
|
+
},
|
|
632
638
|
{
|
|
633
639
|
"name": "dispatch-namespace",
|
|
634
640
|
"type": "string",
|
|
@@ -695,6 +701,12 @@
|
|
|
695
701
|
"required": false,
|
|
696
702
|
"description": "Use existing Preview Build Output Specification files without building",
|
|
697
703
|
"default": false
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"name": "worker",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"required": false,
|
|
709
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
698
710
|
}
|
|
699
711
|
],
|
|
700
712
|
"handWritten": {
|
|
@@ -964,7 +976,7 @@
|
|
|
964
976
|
"fullPath": ["workers", "check"],
|
|
965
977
|
"category": "action",
|
|
966
978
|
"description": "Profile a Worker's startup performance locally using Build Output Specification files.",
|
|
967
|
-
"usage": "cf workers check [--outfile <path>] [--prebuilt]",
|
|
979
|
+
"usage": "cf workers check [--outfile <path>] [--prebuilt] [--worker <name>]",
|
|
968
980
|
"arguments": [],
|
|
969
981
|
"options": [
|
|
970
982
|
{
|
|
@@ -980,6 +992,12 @@
|
|
|
980
992
|
"required": false,
|
|
981
993
|
"description": "Use existing Build Output Specification files without building",
|
|
982
994
|
"default": false
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "worker",
|
|
998
|
+
"type": "string",
|
|
999
|
+
"required": false,
|
|
1000
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
983
1001
|
}
|
|
984
1002
|
],
|
|
985
1003
|
"handWritten": {
|
|
@@ -1011,6 +1029,12 @@
|
|
|
1011
1029
|
"required": false,
|
|
1012
1030
|
"description": "Run checks without applying triggers",
|
|
1013
1031
|
"default": false
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"name": "worker",
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"required": false,
|
|
1037
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
1014
1038
|
}
|
|
1015
1039
|
],
|
|
1016
1040
|
"handWritten": {
|
|
@@ -1085,6 +1109,12 @@
|
|
|
1085
1109
|
"description": "Build a project and run checks without actually uploading the Worker",
|
|
1086
1110
|
"default": false
|
|
1087
1111
|
},
|
|
1112
|
+
{
|
|
1113
|
+
"name": "worker",
|
|
1114
|
+
"type": "string",
|
|
1115
|
+
"required": false,
|
|
1116
|
+
"description": "Name of the Worker in the Build Output to use (defaults to the default Worker)"
|
|
1117
|
+
},
|
|
1088
1118
|
{
|
|
1089
1119
|
"name": "preview-alias",
|
|
1090
1120
|
"type": "string",
|
package/dist/_meta/schemas.json
CHANGED
|
@@ -38926,6 +38926,18 @@
|
|
|
38926
38926
|
"type": "string",
|
|
38927
38927
|
"required": false,
|
|
38928
38928
|
"description": "Advisory note for this suppression. Not enforced or validated beyond length."
|
|
38929
|
+
},
|
|
38930
|
+
{
|
|
38931
|
+
"name": "scope-type",
|
|
38932
|
+
"type": "string",
|
|
38933
|
+
"required": false,
|
|
38934
|
+
"description": "Blocks the recipient for every sending domain of the account."
|
|
38935
|
+
},
|
|
38936
|
+
{
|
|
38937
|
+
"name": "scope-value",
|
|
38938
|
+
"type": "string",
|
|
38939
|
+
"required": false,
|
|
38940
|
+
"description": "The sending domain to suppress for: the domain part of the envelope MAIL FROM. It is lowercased and trailing dots are removed. Internationalized domains must use the ASCII (punycode) form. Ownership is not checked; a domain the account does not send from never matches."
|
|
38929
38941
|
}
|
|
38930
38942
|
]
|
|
38931
38943
|
},
|
|
@@ -39020,7 +39032,7 @@
|
|
|
39020
39032
|
"name": "items",
|
|
39021
39033
|
"type": "string",
|
|
39022
39034
|
"required": true,
|
|
39023
|
-
"description": "Suppressions to import. Items with
|
|
39035
|
+
"description": "Suppressions to import. Items with the same email address and scope are deduplicated before processing. Provide as a JSON array of objects or @path/to/file.json."
|
|
39024
39036
|
}
|
|
39025
39037
|
]
|
|
39026
39038
|
},
|
|
@@ -39060,6 +39072,16 @@
|
|
|
39060
39072
|
"name": "reason",
|
|
39061
39073
|
"type": "string",
|
|
39062
39074
|
"required": false
|
|
39075
|
+
},
|
|
39076
|
+
{
|
|
39077
|
+
"name": "scope_type",
|
|
39078
|
+
"type": "string",
|
|
39079
|
+
"required": false
|
|
39080
|
+
},
|
|
39081
|
+
{
|
|
39082
|
+
"name": "scope_value",
|
|
39083
|
+
"type": "string",
|
|
39084
|
+
"required": false
|
|
39063
39085
|
}
|
|
39064
39086
|
],
|
|
39065
39087
|
"hasRequestBody": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,r as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,i as p}from"./prompt-sL_yMZbI.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";function h(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
|
|
3
3
|
|
|
4
4
|
Returns whether the report is currently appealable, along with the signals behind that decision: whether it already has an open appeal, how many appeals have been submitted against it, and whether it has at least one mitigation that an appeal could reverse.`).positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:h,handler:async c=>s({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/abuse-reports/${c[`report-id`]==null?`<report-id>`:encodeURIComponent(String(c[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(c[`report-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.abuseReports.appeals.eligibility({account_id:l,report_id:c[`report-id`]})),{successLabel:`Loaded`})})},_={command:`appeals`,describe:`Operations for appeals`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage("$0 abuse-reports create <report-param>\n\nSubmit an abuse report of a particular type. Requires the abuse-reports entitlement on the account (Enterprise accounts have it by default; other accounts must request access) and an API token with the `Account > Abuse Reports > Edit` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below).").positional(`report-param`,{type:`string`,description:`The report type to be submitted. Example: abuse_general`,demandOption:!0}).option(`act`,{type:`string`,description:`The act field`,choices:[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`]}).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters`}).option(`company`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email`,{type:`string`,description:`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email2`,{type:`string`,description:"Should match the value provided in `email`"}).option(`name`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`reported-country`,{type:`string`,description:`Text containing 2 characters`}).option(`reported-user-agent`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`tele`,{type:`string`,description:`Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`title`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`urls`,{type:`string`,description:`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`address1`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agent-name`,{type:`string`,description:`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agree`,{type:`number`,description:"Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports"}).option(`city`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`country`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
|
|
5
5
|
`}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,r as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-sL_yMZbI.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";function h(e){return e.usage(`$0 access targets bulk delete
|
|
3
3
|
|
|
4
4
|
Removes one or more targets.`).option(`target-ids`,{type:`string`,array:!0,description:`List of target IDs to bulk delete`}).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:`delete`,describe:`Delete targets`,builder:h,handler:async l=>s({command:`access targets bulk delete`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf access targets bulk delete`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/infrastructure/targets/batch_delete`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({target_ids:l[`target-ids`]}):c(l.body)});return}let s=await r(l),d=l.local?e:await t();if(l.accountId=d,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.access.targets.bulk.delete({...e,account_id:d})),{successLabel:`Created`});return}if(l[`target-ids`]===void 0)throw Error(`--target-ids is required (or pass --body with this field set).`);let f=u({target_ids:l[`target-ids`]});i(await o(`Creating`,async()=>s.access.targets.bulk.delete({...f,account_id:d})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 access targets bulk replace-tags
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d}from"./prompt-sL_yMZbI.mjs";function f(e){return e.usage(`$0 account batch move
|
|
3
3
|
|
|
4
4
|
Batch move a collection of accounts to a specific organization. ⚠️ Not implemented.`).option(`account-ids`,{type:`string`,array:!0,description:`Move these accounts to the destination organization.`}).option(`destination-organization-id`,{type:`string`,description:`Move accounts to this organization ID.`}).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 p={command:`move`,describe:`Batch move accounts`,builder:f,handler:async e=>s({command:`account batch move`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf account batch move`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/move`,pathParams:{},bodyKind:`json`,body:e.body===void 0?l({account_ids:e[`account-ids`],destination_organization_id:u(e[`destination-organization-id`],`destination-organization-id`,`text`)}):c(e.body)});return}let t=await r(e);if(e.body){let n=c(e.body);i(await o(`Creating`,async()=>t.account.batch.move({...n})),{successLabel:`Created`});return}if(e[`account-ids`]===void 0)throw Error(`--account-ids is required (or pass --body with this field set).`);e[`destination-organization-id`]===void 0&&(e[`destination-organization-id`]=await d(`destination-organization-id`,`Move accounts to this organization ID.`));let n=l({account_ids:e[`account-ids`],destination_organization_id:u(e[`destination-organization-id`],`destination-organization-id`,`text`)});i(await o(`Creating`,async()=>t.account.batch.move({...n})),{successLabel:`Created`})})},m={command:`batch`,describe:`Operations for batch`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 account move
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{i as u,n as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p}from"./input-validation-Ch4Vllrm.mjs";import{a as m,i as h,n as g}from"./prompt-sL_yMZbI.mjs";import{t as _}from"./cli-types-tt_LZMbn.mjs";function v(e){return e.usage(`$0 account-tags delete
|
|
3
3
|
|
|
4
4
|
Removes all tags from a specific account or zone-level resource.`).option(`if-match`,{type:`string`,description:`ETag value for optimistic concurrency control. When provided, the server will
|
|
5
5
|
verify the current resource ETag matches before applying the write. Returns
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-CUWbw_Tq.mjs";import{n as m}from"./input-validation-Ch4Vllrm.mjs";import{a as h,i as g,n as _}from"./prompt-sL_yMZbI.mjs";import{t as v}from"./cli-types-tt_LZMbn.mjs";import{n as ee,t as te}from"./raw-fetch-lSVttVJF.mjs";function y(e){return e.usage(`$0 accounts applications create
|
|
3
3
|
|
|
4
4
|
Create a custom application for an account.`).option(`category-id`,{type:`number`,description:`Returns the category ID.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Returns the human readable ID.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Returns the application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:`Port and protocol pairs matched by the application.`}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. `})}const b={command:`create`,describe:`Create application`,builder:y,handler:async t=>l({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:t.body===void 0?p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]}):d(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=d(t.body);o(await c(`Creating`,async()=>i.accounts.applications.create({body:e,account_id:l})),{successLabel:`Created`});return}if(t[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);t[`human-id`]===void 0&&(t[`human-id`]=await h(`human-id`,`Returns the human readable ID.`)),t.name===void 0&&(t.name=await h(`name`,`Returns the application name.`));let u=p({category_id:t[`category-id`],hostnames:t.hostnames,human_id:m(t[`human-id`],`human-id`,`text`),ip_subnets:t[`ip-subnets`],name:m(t.name,`name`,`text`),port_protocols:t[`port-protocols`],support_domains:t[`support-domains`]});o(await c(`Creating`,async()=>i.accounts.applications.create({body:u,account_id:l})),{successLabel:`Created`})})};function x(e){return e.usage(`$0 accounts applications delete <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,n as u}from"./prompt-sL_yMZbI.mjs";function d(e){return e.usage(`$0 acm custom-trust-store create
|
|
3
3
|
|
|
4
4
|
Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).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`,describe:`Upload Custom Origin Trust Store`,builder:d,handler:async u=>a({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate:c(u.certificate,`certificate`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...e,zone_id:d})),{successLabel:`Created`});return}u.certificate===void 0&&(u.certificate=await l(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let f=s({certificate:c(u.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...f,zone_id:d})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as u,r as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p,t as m}from"./input-validation-Ch4Vllrm.mjs";import{a as h,n as g}from"./prompt-sL_yMZbI.mjs";import{n as ee,t as te}from"./raw-fetch-lSVttVJF.mjs";function _(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
|
|
3
3
|
|
|
4
4
|
Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const v={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:_,handler:async t=>l({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/accounts/${t[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(t[`member-account-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``),"member-account-id":String(t[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.accounts.delete({account_id:l,address_map_id:t[`address-map-id`],member_account_id:t[`member-account-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,r as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-sL_yMZbI.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";function h(e){return e.usage(`$0 agent-memory create-namespace
|
|
3
3
|
|
|
4
4
|
Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).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-namespace`,describe:`Create a namespace`,builder:h,handler:async l=>s({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.agentMemory.createNamespace({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Namespace name.`));let m=u({name:d(l.name,`name`,`text`)});i(await o(`Creating`,async()=>s.agentMemory.createNamespace({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as e}from"./theme-BiIYWOed.mjs";import{n as t,t as n}from"./local-B6b2OIBW.mjs";import{m as r,v as i}from"./oauth-
|
|
2
|
+
import{a as e}from"./theme-BiIYWOed.mjs";import{n as t,t as n}from"./local-B6b2OIBW.mjs";import{m as r,v as i}from"./oauth-Dzk6Gy-6.mjs";import{a,o,r as s}from"./auth-DJhSjNNL.mjs";import{t as c}from"./output-Bia1u2k5.mjs";import{t as l}from"./dry-run-CLX6Pbtq.mjs";import{t as u}from"./progress-D_mL-Kcy.mjs";import{n as d,t as f}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as p,t as m}from"./body-parser-CUWbw_Tq.mjs";import{n as h,t as g}from"./input-validation-Ch4Vllrm.mjs";import{a as _,i as v,n as y}from"./prompt-sL_yMZbI.mjs";import{t as b}from"./cli-types-tt_LZMbn.mjs";import{n as x}from"./raw-fetch-lSVttVJF.mjs";import{_ as S,c as C,d as w,f as T,g as ee,h as E,i as D,l as O,m as k,n as A,o as j,p as M,r as N,s as P,t as F}from"./schema-flags-C9lbLgE-.mjs";const I=`ai-model-schema`;async function L(e,t,n,r){let i=ee(I,[t,e]);if(i)return{ok:!0,schema:i};let a;try{let i=await n();if(r===void 0)a=await i.ai.getModelSchema({account_id:t,model:e});else{let n=r-Date.now();if(n<=0)return{ok:!1,reason:`the request timed out`};a=await i.ai.getModelSchema({account_id:t,model:e},{timeoutInSeconds:n/1e3,maxRetries:0})}}catch(e){return{ok:!1,reason:k(e)}}let o=E(a,`input`);return o?(S(I,[t,e],o),{ok:!0,schema:o}):{ok:!1,reason:`the API returned no input schema`}}const R="Run `cf ai models list` to see the models you can run.",z=[`model-name`,`modelName`];let B;function V(e){return B=e,e.positional(`model-name`,{type:`string`,description:`Model ID, e.g. @cf/meta/llama-3.1-8b-instruct`}).option(`body`,{type:`string`,description:`Raw JSON request body, or @path to a JSON file`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).strictOptions(!1).help(!1).option(`help`,{type:`boolean`,alias:`h`,description:`Show help, including this model's input flags`}).epilogue(`Input flags depend on the model: run \`cf ai run <model> --help\`.\n${R}`)}async function H(n){n.local&&console.log(`${t}\n`),B?.showHelp(`log`);let r=n[`model-name`];if(!r||n.local)return;let i=Date.now()+M,a=await o(i);if(!a){console.log(`\n${e.muted(`Set \`CLOUDFLARE_ACCOUNT_ID\` or sign in with \`cf auth login\` to see the input flags for ${r}.`)}`);return}let c=await L(r,a,()=>s(n),i);console.log(c.ok?`\n${j(C(c.schema),`Input flags for ${r}`)}`:`\n${e.muted(`Could not load the input flags for ${r}: ${c.reason}.`)}`)}var U=d({command:`run [model-name]`,describe:"Run inference on a Workers AI model. Input flags are model-specific — see `cf ai run <model> --help`",builder:V,handler:async e=>{if(e.help){await H(e);return}if(e.local)throw Error(t);let n=e[`model-name`];if(!n)throw Error(`A model is required: cf ai run <model>. ${R}`);let o=e.dryRun?await i()??`<account-id>`:await r(),d=n.split(`/`).map(encodeURIComponent).join(`/`),f;if(e.body!==void 0){if(O(e,z).length>0)throw Error(`--body cannot be combined with model input flags. Pass one or the other.`);f=p(e.body)}else{let t=await L(n,o,()=>s(e));if(!t.ok)throw Error(`Could not load the input schema for ${n}: ${t.reason}.\nPass the request body directly instead: cf ai run ${n} --body '{…}'`);let r=C(t.schema),i=O(e,[...z,...A(r)]);if(i.length>0)throw Error(`${i.map(e=>`Unknown flag --${e}`).join(`
|
|
3
3
|
`)}\n\nRun \`cf ai run ${n} --help\` for this model's input flags.`);let a=new Set;for(;;){let t=D(r,e).find(e=>!a.has(e.name)&&(e.choices!==void 0||e.type===`string`));if(!t)break;a.add(t.name),t.choices?e[t.name]=await v(t.name,P(t),t.choices,t.choiceLabels):e[t.name]=await _(t.name,P(t))}let c=N(t.schema),l=F(r,e,{reserved:z}),u=l.errors.length===0?c?w(t.schema,l.body):T(t.schema,l.body):l.errors;if(u.length>0)throw Error(`${u.join(`
|
|
4
4
|
`)}\n\nRun \`cf ai run ${n} --help\` for this model's input flags.`);f=l.body}if(e.dryRun){l({command:`cf ai run`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${o}/ai/run/${d}`,pathParams:{"model-name":n},bodyKind:`json`,body:f});return}let m=await s(e);e.accountId=o;let h=await u(`Running`,async()=>a(m,`POST`,`/accounts/${o}/ai/run/${d}`,{body:f,preserveNonJsonBytes:!0}));if(Buffer.isBuffer(h)){x(h);return}c(h,{successLabel:`Ran`})}},{command:`ai run`,recordArgs:!1});function W(e){return e.usage(`$0 ai authors list
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{a as t,r as n}from"./auth-DJhSjNNL.mjs";import{t as r}from"./output-Bia1u2k5.mjs";import{t as i}from"./dry-run-CLX6Pbtq.mjs";import{t as a}from"./progress-D_mL-Kcy.mjs";import{t as o}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as s}from"./body-parser-CUWbw_Tq.mjs";function c(e){return e.usage(`$0 ai-audit robots bulk-get
|
|
3
3
|
|
|
4
4
|
Fetches and parses robots.txt files for multiple domains within a zone in a single request. Each domain must belong to the specified zone. Results are keyed by hostname.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of domain hostnames to fetch robots.txt for. Each domain must end with the zone name. Maximum 25 domains per request.`})}const l={command:`bulk-get`,describe:`Bulk get robots.txt rules`,builder:c,handler:async c=>o({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){i({command:`cf ai-audit robots bulk-get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ai-audit/robots/bulk`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?void 0:s(c.body)});return}let o=await n(c);if(c.zoneId=await e({zone:c.zone},o,{quiet:c.quiet}),c.body){let e=s(c.body);if(Array.isArray(e)&&e.length>25){let n=Math.ceil(e.length/25),i=null;for(let r=0;r<e.length;r+=25){let s=e.slice(r,r+25);i=await a(`Loading: batch ${Math.floor(r/25)+1}/${n}`,async()=>t(o,`POST`,`/zones/${c.zoneId}/ai-audit/robots/bulk`,{body:s}))}r(i,{successLabel:`Loaded`});return}r(await a(`Loading`,async()=>t(o,`POST`,`/zones/${c.zoneId}/ai-audit/robots/bulk`,{body:e})),{successLabel:`Loaded`});return}if(c.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function u(e){return e.usage(`$0 ai-audit robots get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,r as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,i as p,n as m}from"./prompt-sL_yMZbI.mjs";import{t as h}from"./cli-types-tt_LZMbn.mjs";function ee(e){return e.usage(`$0 ai-gateway account-providers costs create
|
|
3
3
|
|
|
4
4
|
Creates a new AI Gateway.`).option(`account-provider-id`,{type:`string`,description:`The account_provider_id field`}).option(`cost-in`,{type:`number`,description:`The cost_in field`}).option(`cost-out`,{type:`number`,description:`The cost_out field`}).option(`cost-type`,{type:`string`,description:`The cost_type field`,default:`tokens`}).option(`enable`,{type:`boolean`,description:`The enable field`}).option(`model`,{type:`string`,description:`The model field`}).option(`model-rule`,{type:`string`,description:`The model_rule field`,choices:[`equals`,`starts-with`,`contains`],default:`equals`}).option(`token-pricing-input-audio-tokens`,{type:`number`,description:`The token_pricing.input_audio_tokens field`}).option(`token-pricing-input-cache-creation-tokens`,{type:`number`,description:`The token_pricing.input_cache_creation_tokens field`}).option(`token-pricing-input-cached-tokens`,{type:`number`,description:`The token_pricing.input_cached_tokens field`}).option(`token-pricing-input-image-count`,{type:`number`,description:`The token_pricing.input_image_count field`}).option(`token-pricing-input-image-tokens`,{type:`number`,description:`The token_pricing.input_image_tokens field`}).option(`token-pricing-input-text-tokens`,{type:`number`,description:`The token_pricing.input_text_tokens field`}).option(`token-pricing-input-tokens`,{type:`number`,description:`The token_pricing.input_tokens field`}).option(`token-pricing-input-video-tokens`,{type:`number`,description:`The token_pricing.input_video_tokens field`}).option(`token-pricing-output-image-count`,{type:`number`,description:`The token_pricing.output_image_count field`}).option(`token-pricing-output-reasoning-tokens`,{type:`number`,description:`The token_pricing.output_reasoning_tokens field`}).option(`token-pricing-output-tokens`,{type:`number`,description:`The token_pricing.output_tokens field`}).option(`token-pricing-total-tokens`,{type:`number`,description:`The token_pricing.total_tokens 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 te={command:`create`,describe:`Create a new Account Provider Cost`,builder:ee,handler:async l=>s({command:`ai-gateway account-providers costs create`,classification:{safeFlags:[`enable`,`model-rule`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf ai-gateway account-providers costs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/ai-gateway/custom-providers/costs`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({account_provider_id:d(l[`account-provider-id`],`account-provider-id`,`text`),cost_in:l[`cost-in`],cost_out:l[`cost-out`],cost_type:d(l[`cost-type`],`cost-type`,`text`),enable:l.enable,model:d(l.model,`model`,`text`),model_rule:d(l[`model-rule`],`model-rule`,`text`),token_pricing:{input_audio_tokens:l[`token-pricing-input-audio-tokens`],input_cache_creation_tokens:l[`token-pricing-input-cache-creation-tokens`],input_cached_tokens:l[`token-pricing-input-cached-tokens`],input_image_count:l[`token-pricing-input-image-count`],input_image_tokens:l[`token-pricing-input-image-tokens`],input_text_tokens:l[`token-pricing-input-text-tokens`],input_tokens:l[`token-pricing-input-tokens`],input_video_tokens:l[`token-pricing-input-video-tokens`],output_image_count:l[`token-pricing-output-image-count`],output_reasoning_tokens:l[`token-pricing-output-reasoning-tokens`],output_tokens:l[`token-pricing-output-tokens`],total_tokens:l[`token-pricing-total-tokens`]}}):c(l.body)});return}let s=await r(l),p=l.local?e:await t();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.aiGateway.accountProviders.costs.create({...e,account_id:p})),{successLabel:`Created`});return}l[`account-provider-id`]===void 0&&(l[`account-provider-id`]=await f(`account-provider-id`,`The account_provider_id field`)),l.model===void 0&&(l.model=await f(`model`,`The model field`));let m=u({account_provider_id:d(l[`account-provider-id`],`account-provider-id`,`text`),cost_in:l[`cost-in`],cost_out:l[`cost-out`],cost_type:d(l[`cost-type`],`cost-type`,`text`),enable:l.enable,model:d(l.model,`model`,`text`),model_rule:d(l[`model-rule`],`model-rule`,`text`),token_pricing:{input_audio_tokens:l[`token-pricing-input-audio-tokens`],input_cache_creation_tokens:l[`token-pricing-input-cache-creation-tokens`],input_cached_tokens:l[`token-pricing-input-cached-tokens`],input_image_count:l[`token-pricing-input-image-count`],input_image_tokens:l[`token-pricing-input-image-tokens`],input_text_tokens:l[`token-pricing-input-text-tokens`],input_tokens:l[`token-pricing-input-tokens`],input_video_tokens:l[`token-pricing-input-video-tokens`],output_image_count:l[`token-pricing-output-image-count`],output_reasoning_tokens:l[`token-pricing-output-reasoning-tokens`],output_tokens:l[`token-pricing-output-tokens`],total_tokens:l[`token-pricing-total-tokens`]}});i(await o(`Creating`,async()=>s.aiGateway.accountProviders.costs.create({...m,account_id:p})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 ai-gateway account-providers costs delete <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{a as r,r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,r as u,t as d}from"./body-parser-CUWbw_Tq.mjs";import{n as f,t as p}from"./input-validation-Ch4Vllrm.mjs";import{a as m,i as h,n as g}from"./prompt-sL_yMZbI.mjs";import{t as _}from"./cli-types-tt_LZMbn.mjs";import{n as ee,t as te}from"./raw-fetch-lSVttVJF.mjs";function v(e){return e.usage(`$0 ai-search chat-completions <id>
|
|
3
3
|
|
|
4
4
|
Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses.`).positional(`id`,{type:`string`,description:`AI Search instance ID.`,demandOption:!0}).option(`name`,{type:`string`,description:`Namespace to use for this operation.`,demandOption:!0}).option(`ai-search-options-cache-cache-threshold`,{type:`string`,description:`The ai_search_options.cache.cache_threshold field`,choices:[`super_strict_match`,`close_enough`,`flexible_friend`,`anything_goes`]}).option(`ai-search-options-cache-enabled`,{type:`boolean`,description:`The ai_search_options.cache.enabled field`}).option(`ai-search-options-query-rewrite-enabled`,{type:`boolean`,description:`The ai_search_options.query_rewrite.enabled field`}).option(`ai-search-options-query-rewrite-model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`ai-search-options-query-rewrite-rewrite-prompt`,{type:`string`,description:`The ai_search_options.query_rewrite.rewrite_prompt field`}).option(`ai-search-options-reranking-enabled`,{type:`boolean`,description:`The ai_search_options.reranking.enabled field`}).option(`ai-search-options-reranking-match-threshold`,{type:`number`,description:`The ai_search_options.reranking.match_threshold field`}).option(`ai-search-options-reranking-model`,{type:`string`,description:`The ai_search_options.reranking.model field`}).option(`ai-search-options-retrieval-context-expansion`,{type:`number`,description:`The ai_search_options.retrieval.context_expansion field`}).option(`ai-search-options-retrieval-fusion-method`,{type:`string`,description:`The ai_search_options.retrieval.fusion_method field`,choices:[`max`,`rrf`]}).option(`ai-search-options-retrieval-keyword-match-mode`,{type:`string`,description:`Controls which documents are candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term, ranked by BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'.`,choices:[`and`,`or`]}).option(`ai-search-options-retrieval-match-threshold`,{type:`number`,description:`The ai_search_options.retrieval.match_threshold field`}).option(`ai-search-options-retrieval-max-num-results`,{type:`number`,description:`The ai_search_options.retrieval.max_num_results field`}).option(`ai-search-options-retrieval-retrieval-type`,{type:`string`,description:`The ai_search_options.retrieval.retrieval_type field`,choices:[`vector`,`keyword`,`hybrid`]}).option(`ai-search-options-retrieval-return-on-failure`,{type:`boolean`,description:`The ai_search_options.retrieval.return_on_failure field`}).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`stream`,{type:`boolean`,description:`The stream 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 y={command:`chat-completions <id>`,describe:`Chat Completions`,builder:v,handler:async r=>c({command:`ai-search chat-completions`,classification:{safeFlags:[`ai-search-options-cache-cache-threshold`,`ai-search-options-cache-enabled`,`ai-search-options-query-rewrite-enabled`,`ai-search-options-reranking-enabled`,`ai-search-options-retrieval-fusion-method`,`ai-search-options-retrieval-keyword-match-mode`,`ai-search-options-retrieval-retrieval-type`,`ai-search-options-retrieval-return-on-failure`,`stream`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf ai-search chat-completions`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/ai-search/namespaces/${r.name==null?`<name>`:encodeURIComponent(String(r.name))}/instances/${r.id==null?`<id>`:encodeURIComponent(String(r.id))}/chat/completions`,pathParams:{id:String(r.id??``),name:String(r.name??``)},bodyKind:`json`,body:r.body===void 0?d({ai_search_options:{cache:{cache_threshold:f(r[`ai-search-options-cache-cache-threshold`],`ai-search-options-cache-cache-threshold`,`text`),enabled:r[`ai-search-options-cache-enabled`]},query_rewrite:{enabled:r[`ai-search-options-query-rewrite-enabled`],model:f(r[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:f(r[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:r[`ai-search-options-reranking-enabled`],match_threshold:r[`ai-search-options-reranking-match-threshold`],model:f(r[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{context_expansion:r[`ai-search-options-retrieval-context-expansion`],fusion_method:f(r[`ai-search-options-retrieval-fusion-method`],`ai-search-options-retrieval-fusion-method`,`text`),keyword_match_mode:f(r[`ai-search-options-retrieval-keyword-match-mode`],`ai-search-options-retrieval-keyword-match-mode`,`text`),match_threshold:r[`ai-search-options-retrieval-match-threshold`],max_num_results:r[`ai-search-options-retrieval-max-num-results`],retrieval_type:f(r[`ai-search-options-retrieval-retrieval-type`],`ai-search-options-retrieval-retrieval-type`,`text`),return_on_failure:r[`ai-search-options-retrieval-return-on-failure`]}},messages:u(r.messages,`messages`),model:f(r.model,`model`,`text`),stream:r.stream}):l(r.body)});return}let c=await i(r),p=r.local?e:await t();if(r.accountId=p,r.body){let e=l(r.body);a(await s(`Creating`,async()=>c.aiSearch.chatCompletions({...e,account_id:p,name:r.name,id:r.id})),{successLabel:`Created`});return}if(r.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);let m=d({ai_search_options:{cache:{cache_threshold:f(r[`ai-search-options-cache-cache-threshold`],`ai-search-options-cache-cache-threshold`,`text`),enabled:r[`ai-search-options-cache-enabled`]},query_rewrite:{enabled:r[`ai-search-options-query-rewrite-enabled`],model:f(r[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:f(r[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:r[`ai-search-options-reranking-enabled`],match_threshold:r[`ai-search-options-reranking-match-threshold`],model:f(r[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{context_expansion:r[`ai-search-options-retrieval-context-expansion`],fusion_method:f(r[`ai-search-options-retrieval-fusion-method`],`ai-search-options-retrieval-fusion-method`,`text`),keyword_match_mode:f(r[`ai-search-options-retrieval-keyword-match-mode`],`ai-search-options-retrieval-keyword-match-mode`,`text`),match_threshold:r[`ai-search-options-retrieval-match-threshold`],max_num_results:r[`ai-search-options-retrieval-max-num-results`],retrieval_type:f(r[`ai-search-options-retrieval-retrieval-type`],`ai-search-options-retrieval-retrieval-type`,`text`),return_on_failure:r[`ai-search-options-retrieval-return-on-failure`]}},messages:u(r.messages,`messages`),model:f(r.model,`model`,`text`),stream:r.stream});a(await s(`Creating`,async()=>c.aiSearch.chatCompletions({...m,account_id:p,name:r.name,id:r.id})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 ai-search create <name> <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,r as s,t as c}from"./body-parser-CUWbw_Tq.mjs";import{n as l}from"./prompt-sL_yMZbI.mjs";function u(e){return e.usage(`$0 ai-security custom-topics get
|
|
3
3
|
|
|
4
4
|
Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the \`cf.llm.prompt.custom_topic_categories\` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:u,handler:async o=>a({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.aiSecurity.customTopics.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.usage("$0 ai-security custom-topics update\n\nUpdate the custom topic list of the zone, overwriting it entirely with the topics in the request, so include every topic you want to keep. Changes can take up to a minute to propagate. Each entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic` description, which the classifier scores prompts against while AI Security for Apps is enabled. The following rules apply: - A zone can hold at most 20 topics. - `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens. - `topic` must be 2–50 printable ASCII characters. - Labels must be unique within the zone, and so must topic descriptions.").option(`topics`,{type:`string`,description:`Custom topic categories for AI Security for Apps content detection. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:f,handler:async u=>a({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){r({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({topics:s(u.topics,`topics`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,!await l({force:!!u.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`})){process.stderr.write(`Aborted.
|
|
5
5
|
`);return}if(u.body){let e=o(u.body);n(await i(`Deleting`,async()=>a.aiSecurity.customTopics.update({body:e,zone_id:d})),{successLabel:`Deleted`});return}let f=c({topics:s(u.topics,`topics`)});n(await i(`Deleting`,async()=>a.aiSecurity.customTopics.update({body:f,zone_id:d})),{successLabel:`Deleted`})})},m={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function h(e){return e.usage(`$0 ai-security get
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,i as f,n as p}from"./prompt-sL_yMZbI.mjs";import{n as m,t as h}from"./raw-fetch-lSVttVJF.mjs";function ee(e){return e.usage(`$0 alerting available-alerts list
|
|
3
3
|
|
|
4
4
|
Gets a list of all alert types for which an account is eligible.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Get Alert Types`,builder:ee,handler:async c=>s({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.alerting.availableAlerts.list({account_id:l})),{successLabel:`Loaded`})})},_={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 alerting destinations eligible get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-CUWbw_Tq.mjs";import{n as m,t as h}from"./input-validation-Ch4Vllrm.mjs";import{a as g}from"./prompt-sL_yMZbI.mjs";function _(e){return e.usage(`$0 analytics latency colos get
|
|
3
3
|
|
|
4
4
|
Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:_,handler:async e=>l({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.analytics.latency.colos.get({zone_id:r})),{successLabel:`Loaded`})})},y={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 analytics latency get
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{a as r,r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./input-validation-Ch4Vllrm.mjs";function d(e){return e.usage(`$0 analytics_engine sql query
|
|
3
3
|
|
|
4
4
|
Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).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 f={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:d,handler:async d=>c({command:`analytics_engine sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){o({command:`cf analytics_engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:d.body});return}let c=await i(d),f=d.local?e:await t();if(d.accountId=f,d.file){let e=u(d.file);a(await s(`Loading`,async()=>r(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}})),{successLabel:`Loaded`});return}if(d.body){let e=l(d.body,`body`,`binary`);a(await s(`Loading`,async()=>r(c,`POST`,`/accounts/${f}/analytics_engine/sql`,{body:e,headers:{"Content-Type":`text/plain`}})),{successLabel:`Loaded`});return}a(await s(`Loading`,async()=>c.analyticsEngine.sql.query({account_id:f})),{successLabel:`Loaded`})})},p={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},m={command:`analytics_engine`,describe:`analytics_engine`,builder:e=>e.command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{a as i,r as a}from"./auth-DJhSjNNL.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-D_mL-Kcy.mjs";import{t as l}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as u,r as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p}from"./input-validation-Ch4Vllrm.mjs";import{a as m,i as h,n as g}from"./prompt-sL_yMZbI.mjs";import{t as _}from"./cli-types-tt_LZMbn.mjs";function ee(e){return e.usage(`$0 api-security schema-validation schemas create
|
|
3
3
|
|
|
4
4
|
Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema is enabled`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>l({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.apiSecurity.schemaValidation.schemas.create({...t,zone_id:r})),{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await h(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await m(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await m(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=f({kind:p(e.kind,`kind`,`text`),name:p(e.name,`name`,`text`),source:p(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]});o(await c(`Creating`,async()=>n.apiSecurity.schemaValidation.schemas.create({...i,zone_id:r})),{successLabel:`Created`})})};function v(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{_ as e}from"./oauth-
|
|
2
|
+
import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{i as l}from"./prompt-sL_yMZbI.mjs";function u(e){return e.usage(`$0 argo smart-routing edit
|
|
3
3
|
|
|
4
4
|
Configures the value of the Argo Smart Routing enablement setting.`).option(`value`,{type:`string`,description:`Specifies the enablement value of Argo Smart Routing.`,choices:[`on`,`off`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Configures the enablement of Argo Smart Routing.`})}const d={command:`edit`,describe:`Patch Argo Smart Routing setting`,builder:u,handler:async u=>a({command:`argo smart-routing edit`,classification:{safeFlags:[`value`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf argo smart-routing edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/argo/smart_routing`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({value:c(u.value,`value`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.argo.smartRouting.edit({...e,zone_id:d})),{successLabel:`Updated`});return}u.value===void 0&&(u.value=await l(`value`,`Specifies the enablement value of Argo Smart Routing.`,[`on`,`off`]));let f=s({value:c(u.value,`value`,`text`)});n(await i(`Updating`,async()=>a.argo.smartRouting.edit({...f,zone_id:d})),{successLabel:`Updated`})})};function f(e){return e.usage(`$0 argo smart-routing get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as c,t as l}from"./body-parser-CUWbw_Tq.mjs";import{n as u}from"./input-validation-Ch4Vllrm.mjs";import{a as d,n as f}from"./prompt-sL_yMZbI.mjs";import{t as p}from"./cli-types-tt_LZMbn.mjs";import{n as m,t as h}from"./raw-fetch-lSVttVJF.mjs";function ee(e){return e.usage(`$0 artifacts namespaces create
|
|
3
3
|
|
|
4
4
|
Creates an empty Artifacts namespace for an account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`unrestricted`,`us`,`eu`,`fedramp`],default:`unrestricted`}).option(`namespace`,{type:`string`,description:`The namespace 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 g={command:`create`,describe:`Create a namespace`,builder:ee,handler:async f=>s({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({jurisdiction:u(f.jurisdiction,`jurisdiction`,`text`),namespace:u(f.namespace,`namespace`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.artifacts.namespaces.create({...e,account_id:p})),{successLabel:`Created`});return}f.namespace===void 0&&(f.namespace=await d(`namespace`,`The namespace field`));let m=l({jurisdiction:u(f.jurisdiction,`jurisdiction`,`text`),namespace:u(f.namespace,`namespace`,`text`)});i(await o(`Creating`,async()=>s.artifacts.namespaces.create({...m,account_id:p})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 artifacts namespaces delete <namespace>
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-
|
|
2
|
+
import{t as e}from"./local-B6b2OIBW.mjs";import{m as t,v as n}from"./oauth-Dzk6Gy-6.mjs";import{r}from"./auth-DJhSjNNL.mjs";import{t as i}from"./output-Bia1u2k5.mjs";import{t as a}from"./dry-run-CLX6Pbtq.mjs";import{t as o}from"./progress-D_mL-Kcy.mjs";import{t as s}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{t as c}from"./cli-types-tt_LZMbn.mjs";function l(e){return e.usage(`$0 audit-logs list
|
|
3
3
|
|
|
4
4
|
Gets a list of audit logs for an 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 u={command:`list`,describe:`Get account audit logs`,builder:c(l),handler:async c=>s({command:`audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},c,async()=>{let s={id:c.id,export:c.export,"action.type":c[`action-type`],"actor.ip":c[`actor-ip`],"actor.email":c[`actor-email`],since:c.since,before:c.before,"zone.name":c[`zone-name`],direction:c.direction,per_page:c[`per-page`],page:c.page,hide_user_logs:c[`hide-user-logs`]};if(c.dryRun){a({command:`cf audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/audit_logs`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.auditLogs.list({account_id:u,...s})),{successLabel:`Loaded`})})},d={command:`audit-logs`,describe:`audit-logs`,builder:e=>e.command(u).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{d as default};
|