cf 1.0.0-rc.3 → 1.0.0-rc.4
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 +19 -12
- package/dist/_meta/hand-written-commands.json +66 -0
- package/dist/_meta/schemas.json +7 -7
- package/dist/{abuse-reports-DD4Xscda.mjs → abuse-reports-CmCGvR9N.mjs} +1 -1
- package/dist/{access-C35nZLcR.mjs → access-DKY7-mel.mjs} +1 -1
- package/dist/{accounts-dvxVNggW.mjs → accounts-sljLsnZt.mjs} +1 -1
- package/dist/{acm-BRx8MrVy.mjs → acm-BVicUMW4.mjs} +1 -1
- package/dist/{addressing-MAedAImE.mjs → addressing-B_0yLBBj.mjs} +1 -1
- package/dist/{agent-memory-CPhvBC0V.mjs → agent-memory-D3LHr1Jb.mjs} +1 -1
- package/dist/{ai-Dx-jS5E8.mjs → ai-D1UNFv3e.mjs} +1 -1
- package/dist/{ai-audit-D5AU3d15.mjs → ai-audit-DGLS1RJP.mjs} +1 -1
- package/dist/{ai-gateway-siGcJ3Fd.mjs → ai-gateway-ijht01vB.mjs} +1 -1
- package/dist/{ai-search-30yyrERO.mjs → ai-search-XudmIVw2.mjs} +1 -1
- package/dist/{ai-security-wIqGn-mp.mjs → ai-security-Coc4EXYV.mjs} +1 -1
- package/dist/{alerting-ChL9dtmD.mjs → alerting-_d2RkAgt.mjs} +1 -1
- package/dist/{analytics-DC3GMpt3.mjs → analytics-CSHwiNxB.mjs} +1 -1
- package/dist/{analytics-engine-CoMfFtru.mjs → analytics-engine-BBGjNxal.mjs} +1 -1
- package/dist/{api-security-DatApWUQ.mjs → api-security-Dd3nqQqz.mjs} +1 -1
- package/dist/{argo-BNnKAmnR.mjs → argo-DZ7FcQDp.mjs} +1 -1
- package/dist/{artifacts-BwOVrDS2.mjs → artifacts-TAWj18ud.mjs} +1 -1
- package/dist/{audit-logs-DCqXY3K2.mjs → audit-logs-CnC2ipYN.mjs} +1 -1
- package/dist/auth-BOAIQNrB.mjs +2 -0
- package/dist/{auth-DC9etXs1.mjs → auth-DwPkWHHB.mjs} +1 -1
- package/dist/{auth-B23TQVFv.mjs → auth-Fl7walZt.mjs} +1 -1
- package/dist/auth-token-vS_OH8l7.mjs +8 -0
- package/dist/{autoconfig-BCE1EcKH.mjs → autoconfig-B4vwjOUq.mjs} +1 -1
- package/dist/{basin-catalog-DViOl5uo.mjs → basin-catalog-BbduQMcn.mjs} +1 -1
- package/dist/{billing-tS4IRYvK.mjs → billing-BLtPPd6a.mjs} +1 -1
- package/dist/{blocks-C3bPBwwd.mjs → blocks-CBp_warE.mjs} +1 -1
- package/dist/{bot-management-84un7ti1.mjs → bot-management-N1l1Cpn6.mjs} +1 -1
- package/dist/{botnet-feed-B4Zgb3WZ.mjs → botnet-feed-yZc2Ig_L.mjs} +1 -1
- package/dist/{brand-protection-BBpY-kFB.mjs → brand-protection-1SFr6bGh.mjs} +1 -1
- package/dist/{browser-run-Bh4PeR1y.mjs → browser-run-Da8rp_rp.mjs} +1 -1
- package/dist/build-4tmWVjpg.mjs +2 -0
- package/dist/{build-BGoObbc0.mjs → build-CQpuIBTK.mjs} +1 -1
- package/dist/{builds-E1L2H1sP.mjs → builds-BD5sLopX.mjs} +1 -1
- package/dist/{cache-BCD3UGYE.mjs → cache-DSUtHc4S.mjs} +1 -1
- package/dist/{cli-FRHgCU7v.mjs → cli-Hrw5Pbhp.mjs} +1 -1
- package/dist/{client-side-security-7dg-ZVsu.mjs → client-side-security-Ge3I3rgO.mjs} +1 -1
- package/dist/{cloud-connector-BU0juaIN.mjs → cloud-connector-Ddb8vvtz.mjs} +1 -1
- package/dist/{cloudforce-one-DgyrexQ7.mjs → cloudforce-one-l3SgKPdg.mjs} +1 -1
- package/dist/{command-F-PEA27_.mjs → command-08pqSG_2.mjs} +1 -1
- package/dist/{command-D-ll3vGW.mjs → command-5kBKsg5P.mjs} +1 -1
- package/dist/{command-7YbmYQ25.mjs → command-B8OAAYUZ.mjs} +1 -1
- package/dist/{command-m_RE8Ne6.mjs → command-BSqxEqc7.mjs} +1 -1
- package/dist/{command-CNcnWikN.mjs → command-B_7Pm7dq.mjs} +1 -1
- package/dist/{command-D3Xg83My.mjs → command-C9XTqxMi.mjs} +1 -1
- package/dist/{command-CvWcSClz.mjs → command-CkNsLK8g.mjs} +1 -1
- package/dist/{command-BM_ONo-H.mjs → command-D4i6V7wE.mjs} +1 -1
- package/dist/{command-DP37O9yH.mjs → command-DSW0KMQZ.mjs} +1 -1
- package/dist/{command-C7QTONEM.mjs → command-DZoJ3vMV.mjs} +1 -1
- package/dist/{command-Dp2VbxRs.mjs → command-HlItYmgS.mjs} +1 -1
- package/dist/{completions-Dc77ZhDr.mjs → completions-CmqLeFUH.mjs} +1 -1
- package/dist/{connector-interrupts-DkWyiO-i.mjs → connector-interrupts-DfREV4XN.mjs} +1 -1
- package/dist/{connector-telemetry-events-puB9H_bN.mjs → connector-telemetry-events-SCU5vCYP.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-fydkNSl2.mjs → connector-telemetry-snapshots-DJZvVI4-.mjs} +1 -1
- package/dist/{connectors-C8kBNJU2.mjs → connectors-DqcM39im.mjs} +1 -1
- package/dist/{containers-plmr4QyC.mjs → containers-C8nAjirq.mjs} +15 -15
- package/dist/{content-scan-CxtrHrzD.mjs → content-scan-BbpsNNth.mjs} +1 -1
- package/dist/{context-CglPDNRF.mjs → context-DZ_o-H15.mjs} +1 -1
- package/dist/{cps-EAJEOLrs.mjs → cps-BCeCBhxr.mjs} +1 -1
- package/dist/{csam-scanner-tJhA7hqT.mjs → csam-scanner-DPVIZWsj.mjs} +1 -1
- package/dist/{custom-csrs-B_s5EV1j.mjs → custom-csrs-vqlDIOtD.mjs} +1 -1
- package/dist/{custom-hostnames-Cr3dNRwC.mjs → custom-hostnames-BdeiP25g.mjs} +1 -1
- package/dist/{custom-nameservers-RCRy6YRK.mjs → custom-nameservers-CsLh_cDC.mjs} +1 -1
- package/dist/{custom-pages-CthLrFCW.mjs → custom-pages-CMMLfTjo.mjs} +1 -1
- package/dist/{d1-rfbTquF-.mjs → d1-BlaNa5Fu.mjs} +1 -1
- package/dist/{delegate-f4FFYc-w.mjs → delegate-Bzvi_ugB.mjs} +1 -1
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BTvnmAz0.mjs → deploy-DlxJvz9y.mjs} +1 -1
- package/dist/{deploy-context-DO2Ej5Sf.mjs → deploy-context-DeHkCJT9.mjs} +1 -1
- package/dist/{deploy-input-D8-f-ULB.mjs → deploy-input-Db7ggScI.mjs} +1 -1
- package/dist/{dev-BrqTRIv1.mjs → dev-YNjyJj7T.mjs} +1 -1
- package/dist/{diagnostics-BTKLIL60.mjs → diagnostics-tD8QINvM.mjs} +1 -1
- package/dist/{disk-cache-SHcAdcTi.mjs → disk-cache-CBpH8Qwx.mjs} +1 -1
- package/dist/{dls-RyhdHqmj.mjs → dls-SwQx0kK4.mjs} +1 -1
- package/dist/{dns-D4USVTcI.mjs → dns-C1MlG2d7.mjs} +3 -3
- package/dist/{dns-firewall-BZOjpGEa.mjs → dns-firewall-Ci_CGN3o.mjs} +8 -8
- package/dist/{docs-BjGZR51O.mjs → docs-D-jNhiZc.mjs} +1 -1
- package/dist/{durable-objects-X_wDE1kN.mjs → durable-objects-CHD_yg4p.mjs} +3 -3
- package/dist/{email-auth-DTI45krk.mjs → email-auth-BjLElRZ4.mjs} +1 -1
- package/dist/{email-routing-CcRzdZ7w.mjs → email-routing-Dyccezo3.mjs} +1 -1
- package/dist/{email-security-BG4oDbP8.mjs → email-security-BX8uZu_6.mjs} +1 -1
- package/dist/{email-sending-Bwxz3HOE.mjs → email-sending-BunoST49.mjs} +1 -1
- package/dist/{errors-BIYtgyJ2.mjs → errors-kqU4AkAP.mjs} +1 -1
- package/dist/{feedback-CkfuTWEC.mjs → feedback-dOtkyoJ_.mjs} +1 -1
- package/dist/{field-extractors-CB0UJfXL.mjs → field-extractors-CwSm76XL.mjs} +1 -1
- package/dist/{firewall-D2YIK_3P.mjs → firewall-BxoJLuuD.mjs} +1 -1
- package/dist/{flagship-DqNRMy2W.mjs → flagship-BNmFgpmb.mjs} +1 -1
- package/dist/{fraud-D53t9Wtw.mjs → fraud-87jF9d-q.mjs} +1 -1
- package/dist/{google-tag-gateway-BHCRSeQm.mjs → google-tag-gateway-XYH8azp2.mjs} +1 -1
- package/dist/{healthchecks-CTzeTqTV.mjs → healthchecks-CJB0k-uq.mjs} +1 -1
- package/dist/{hyperdrive-ClRYzEMt.mjs → hyperdrive-OnaEun3F.mjs} +1 -1
- package/dist/{iam-BPhNCSMt.mjs → iam-BxnesgCU.mjs} +1 -1
- package/dist/{images-rjOXp_9M.mjs → images-CVSOsmBO.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-DYa1i2-N.mjs → init-DWKDBlDR.mjs} +1 -1
- package/dist/{intel-DAEiuVd5.mjs → intel-Bmc8fQP2.mjs} +1 -1
- package/dist/{ips-Du6_SpiX.mjs → ips-D516R1W7.mjs} +1 -1
- package/dist/{k2-Dob-33Tv.mjs → k2-Cb9GSgVl.mjs} +1 -1
- package/dist/{kv-D1JYrgSd.mjs → kv-DHte77e-.mjs} +1 -1
- package/dist/{lazy-command-BeOHik4o.mjs → lazy-command-CXkIdRTR.mjs} +1 -1
- package/dist/{leaked-credential-checks-B-8upaC5.mjs → leaked-credential-checks-inTD7r5G.mjs} +1 -1
- package/dist/list-B8-Zc_GC.mjs +2 -0
- package/dist/list-DFJK-wNX.mjs +2 -0
- package/dist/{load-balancers-BxXlkFHe.mjs → load-balancers-mzoAnWty.mjs} +1 -1
- package/dist/login-Pl57NFXW.mjs +5 -0
- package/dist/login-SNm0pWc2.mjs +2 -0
- package/dist/{logpush-Bi88bWhn.mjs → logpush-BWUzMBKP.mjs} +1 -1
- package/dist/{logs-Du28TgjU.mjs → logs-d7eJikoq.mjs} +1 -1
- package/dist/{magic-network-monitoring-Fs46HFzT.mjs → magic-network-monitoring-DNLnbVaL.mjs} +1 -1
- package/dist/{magic-transit-odyvqrYN.mjs → magic-transit-Bpsnro56.mjs} +1 -1
- package/dist/{managed-defense-C6BUvM0n.mjs → managed-defense-BznDhiE9.mjs} +1 -1
- package/dist/{managed-transforms-DsaxeScz.mjs → managed-transforms-js7R6wmk.mjs} +1 -1
- package/dist/{mcp-BxtYhOtC.mjs → mcp-COUHiudY.mjs} +1 -1
- package/dist/{mesh-CnbgVcmG.mjs → mesh-D8RRgdmC.mjs} +1 -1
- package/dist/{migrate-DykHgSce.mjs → migrate-BGnkrxAz.mjs} +1 -1
- package/dist/{monetization-xQZpBrQP.mjs → monetization-BUJ-giat.mjs} +1 -1
- package/dist/{network-LAUNuxaC.mjs → network-Dj-KssOA.mjs} +1 -1
- package/dist/{network-interconnects-CUiDUngh.mjs → network-interconnects-DVYyr9sl.mjs} +1 -1
- package/dist/{o11y-C-c35mMA.mjs → o11y-qSJAU2CT.mjs} +1 -1
- package/dist/{oauth-rF-C4Io5.mjs → oauth-CbYuhP6T.mjs} +2 -2
- package/dist/oauth-UT4w2Aob.mjs +2 -0
- package/dist/{observability-DoLkj6bq.mjs → observability-CiofkZ4g.mjs} +2 -2
- package/dist/{ohttp-gateway-CENYzFIz.mjs → ohttp-gateway-BtStCXOO.mjs} +1 -1
- package/dist/{organizations-BgezURxZ.mjs → organizations-CZk1_ZUR.mjs} +1 -1
- package/dist/package-Cj8_ZOGE.mjs +2 -0
- package/dist/{page-rules-Zyhg9DGc.mjs → page-rules-XpZlvctb.mjs} +1 -1
- package/dist/{pages-Vw8GCFpl.mjs → pages-zvRglCt-.mjs} +1 -1
- package/dist/{pay-per-crawl-bYP31GU8.mjs → pay-per-crawl-D4pSHKeH.mjs} +1 -1
- package/dist/{pay-per-use-Cz6NlvYS.mjs → pay-per-use-Cju3Z-WS.mjs} +1 -1
- package/dist/{pipelines-xSavOmi1.mjs → pipelines-CRurvded.mjs} +1 -1
- package/dist/{precursor-BYduCjnv.mjs → precursor-A0aksdf3.mjs} +1 -1
- package/dist/{previews-Nvo-cl2k.mjs → previews-CnzsaM5g.mjs} +1 -1
- package/dist/{progress-DV597tgm.mjs → progress-CKu4TPPI.mjs} +1 -1
- package/dist/{prompt-WkzeQp66.mjs → prompt-B4fCnTfF.mjs} +1 -1
- package/dist/{queues-lJRoRXhz.mjs → queues-BQ8FIzCN.mjs} +1 -1
- package/dist/{r2-CV2kwsvV.mjs → r2-C-nSv0u1.mjs} +1 -1
- package/dist/{radar-DMWHnxJf.mjs → radar-Dvr11Hs3.mjs} +1 -1
- package/dist/{raw-fetch-CWPKE55l.mjs → raw-fetch-DPl7eKQx.mjs} +1 -1
- package/dist/{realtime-Cj7nP7c6.mjs → realtime-DL1yDaq3.mjs} +1 -1
- package/dist/{registrar-oO0NOyhZ.mjs → registrar-1rRsFWBj.mjs} +1 -1
- package/dist/{registrar-sandbox-BgakIlfa.mjs → registrar-sandbox-Wc4FZXoi.mjs} +1 -1
- package/dist/{reporting-Do1AQqTI.mjs → reporting-CqbwVIFn.mjs} +1 -1
- package/dist/{request-headers-Djxo_3pX.mjs → request-headers-DN5TYtJe.mjs} +1 -1
- package/dist/{request-tracers-sHkrW5oF.mjs → request-tracers-Ct1HPRhB.mjs} +1 -1
- package/dist/{resource-sharing-DK3ayrt1.mjs → resource-sharing-nZw5IudN.mjs} +1 -1
- package/dist/{rules-vWqZK-o-.mjs → rules-DqwqSdDr.mjs} +1 -1
- package/dist/{rulesets-aaqJ_a0X.mjs → rulesets-BIA4y4rX.mjs} +11 -11
- package/dist/{rum-DGEDLsnB.mjs → rum-DlYhE-0Z.mjs} +1 -1
- package/dist/run-BQIkT0nW.mjs +2 -0
- package/dist/{run-BB7jHA1c.mjs → run-DURbDvRl.mjs} +1 -1
- package/dist/{schema-cache-sZ4FzRWS.mjs → schema-cache-DHECPju4.mjs} +1 -1
- package/dist/{scim-BrUHziC8.mjs → scim-Zy_BbCe1.mjs} +1 -1
- package/dist/{secrets-store-DxflmMoF.mjs → secrets-store-Cuor7149.mjs} +1 -1
- package/dist/{security-insights-BNGHKTWz.mjs → security-insights-n5gnhY18.mjs} +1 -1
- package/dist/{security-txt-_joWJ0Gp.mjs → security-txt-BTGNvOWU.mjs} +1 -1
- package/dist/{session-DZ2yOupF.mjs → session-B3YezqpH.mjs} +1 -1
- package/dist/{shared-Pw74xPAo.mjs → shared-BgqBDSHb.mjs} +1 -1
- package/dist/{smart-shield-BoqicemV.mjs → smart-shield-BJFwWXaZ.mjs} +1 -1
- package/dist/{snippets-CvJLit_s.mjs → snippets-DQPTiHJ9.mjs} +1 -1
- package/dist/{spawn-DXVOEwot.mjs → spawn-BVgaOYTB.mjs} +1 -1
- package/dist/{spectrum-B0UP7LzC.mjs → spectrum-DG0Ka-G8.mjs} +1 -1
- package/dist/{speed-DgzvaMOz.mjs → speed-DHrWN6K6.mjs} +1 -1
- package/dist/{sql-DIG6XE_K.mjs → sql-BAEWd7eq.mjs} +1 -1
- package/dist/{src-Dzp9yby9.mjs → src-DOV4VsOr.mjs} +5 -5
- package/dist/{ssl-CbY8Pl3Z.mjs → ssl-Dr06JRYb.mjs} +1 -1
- package/dist/{static-assets-BgkS3OVR.mjs → static-assets-tRMJaLSL.mjs} +1 -1
- package/dist/{stream-1caalJNi.mjs → stream-CmyyjtsY.mjs} +1 -1
- package/dist/{tags-BjvacIQ7.mjs → tags-DdbMVXA8.mjs} +1 -1
- package/dist/{telemetry-CWj_fL8y.mjs → telemetry-Ci5p3FRX.mjs} +1 -1
- package/dist/telemetry-D33WsYG8.mjs +2 -0
- package/dist/{tenant-custom-nameservers-B0BjA-UV.mjs → tenant-custom-nameservers-sk7Kfwk2.mjs} +1 -1
- package/dist/{tenants-BPNCJnmb.mjs → tenants-azRL8FKq.mjs} +1 -1
- package/dist/{tunnels-CCzHprUK.mjs → tunnels-DKbyBPhs.mjs} +2 -2
- package/dist/{turnstile-BMmqJC6b.mjs → turnstile-CN510piW.mjs} +1 -1
- package/dist/ui-C1lhJqmW.mjs +2 -0
- package/dist/{update-BpPQ59qa.mjs → update-B1OMH2nT.mjs} +1 -1
- package/dist/{update-check-BAv9XVm9.mjs → update-check-CxCLa8dK.mjs} +1 -1
- package/dist/{update-check-CGMWCyjh.mjs → update-check-DN0X3jDo.mjs} +1 -1
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-ClDobamp.mjs → url-normalization-s_wLdVpJ.mjs} +1 -1
- package/dist/{url-scanner-wqqX5qUt.mjs → url-scanner-CkV5i3Ic.mjs} +1 -1
- package/dist/{user-xQyUKX-z.mjs → user-DRu0_DK4.mjs} +1 -1
- package/dist/{vectorize-D-wkY8uk.mjs → vectorize-CXHGgH4C.mjs} +1 -1
- package/dist/version-DhMG6xmF.mjs +2 -0
- package/dist/{waiting-rooms--ADD0hV3.mjs → waiting-rooms-Ci8YC7hc.mjs} +1 -1
- package/dist/{web-assets-B0fZPTH3.mjs → web-assets-BS4ML2Qn.mjs} +1 -1
- package/dist/{web3-UafRTP9F.mjs → web3-B6hUD3S1.mjs} +1 -1
- package/dist/{whoami-DrdBMfdg.mjs → whoami-Cav17gsZ.mjs} +3 -3
- package/dist/whoami-dpqnuJsW.mjs +2 -0
- package/dist/workers-DQBT82CP.mjs +41 -0
- package/dist/{workers-for-platforms-BC33ReOa.mjs → workers-for-platforms-CfZufMBX.mjs} +1 -1
- package/dist/{workers-vpc-BDcPn4np.mjs → workers-vpc-Bui53Ho6.mjs} +1 -1
- package/dist/{workflows-BQ2_aoCs.mjs → workflows-BH-cBkn4.mjs} +1 -1
- package/dist/{wrangler-migration-BXwEbK_h.mjs → wrangler-migration-Erxfi8YK.mjs} +1 -1
- package/dist/{zaraz-DVHjNnRT.mjs → zaraz-BKd97Jys.mjs} +1 -1
- package/dist/{zero-trust-_sMgVrcF.mjs → zero-trust-DH_Qw3uK.mjs} +1 -1
- package/dist/{zones-Bj5EdxMY.mjs → zones-C49-hK3s.mjs} +1 -1
- package/package.json +2 -2
- package/dist/auth-CMg2zvtO.mjs +0 -2
- package/dist/auth-token-DNUW1DyS.mjs +0 -8
- package/dist/build-CQZMLw83.mjs +0 -2
- package/dist/login-B3BkeHt6.mjs +0 -2
- package/dist/login-DIPsROTB.mjs +0 -5
- package/dist/oauth-EQ8jqFiP.mjs +0 -2
- package/dist/package-DCTjwDaM.mjs +0 -2
- package/dist/run-DygYhh8g.mjs +0 -2
- package/dist/telemetry-DTH02h9J.mjs +0 -2
- package/dist/ui-BU-SZoFd.mjs +0 -2
- package/dist/version-PN64nEci.mjs +0 -2
- package/dist/whoami-CNZdOBDw.mjs +0 -2
- package/dist/workers-QUJ-FdJE.mjs +0 -39
package/dist/_meta/commands.json
CHANGED
|
@@ -47338,7 +47338,7 @@
|
|
|
47338
47338
|
"name": "deletes",
|
|
47339
47339
|
"type": "string",
|
|
47340
47340
|
"required": false,
|
|
47341
|
-
"description": "The deletes field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\"
|
|
47341
|
+
"description": "The deletes field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\": string}]."
|
|
47342
47342
|
},
|
|
47343
47343
|
{
|
|
47344
47344
|
"name": "patches",
|
|
@@ -48172,7 +48172,7 @@
|
|
|
48172
48172
|
"name": "rejects",
|
|
48173
48173
|
"type": "string",
|
|
48174
48174
|
"required": false,
|
|
48175
|
-
"description": "The rejects field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\"
|
|
48175
|
+
"description": "The rejects field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\": string}]."
|
|
48176
48176
|
},
|
|
48177
48177
|
{
|
|
48178
48178
|
"name": "dry-run",
|
|
@@ -49969,7 +49969,7 @@
|
|
|
49969
49969
|
{
|
|
49970
49970
|
"name": "name",
|
|
49971
49971
|
"type": "string",
|
|
49972
|
-
"required":
|
|
49972
|
+
"required": true,
|
|
49973
49973
|
"description": "DNS Firewall cluster name"
|
|
49974
49974
|
},
|
|
49975
49975
|
{
|
|
@@ -49994,7 +49994,7 @@
|
|
|
49994
49994
|
{
|
|
49995
49995
|
"name": "upstream-ips",
|
|
49996
49996
|
"type": "string",
|
|
49997
|
-
"required":
|
|
49997
|
+
"required": true,
|
|
49998
49998
|
"description": "The upstream_ips field"
|
|
49999
49999
|
},
|
|
50000
50000
|
{
|
|
@@ -120827,20 +120827,20 @@
|
|
|
120827
120827
|
{
|
|
120828
120828
|
"name": "name",
|
|
120829
120829
|
"type": "string",
|
|
120830
|
-
"required":
|
|
120830
|
+
"required": true,
|
|
120831
120831
|
"description": "The human-readable name of the ruleset."
|
|
120832
120832
|
},
|
|
120833
120833
|
{
|
|
120834
120834
|
"name": "kind",
|
|
120835
120835
|
"type": "string",
|
|
120836
|
-
"required":
|
|
120836
|
+
"required": true,
|
|
120837
120837
|
"description": "The kind of the ruleset.",
|
|
120838
120838
|
"enum": ["managed", "custom", "root", "zone"]
|
|
120839
120839
|
},
|
|
120840
120840
|
{
|
|
120841
120841
|
"name": "phase",
|
|
120842
120842
|
"type": "string",
|
|
120843
|
-
"required":
|
|
120843
|
+
"required": true,
|
|
120844
120844
|
"description": "The phase of the ruleset.",
|
|
120845
120845
|
"enum": [
|
|
120846
120846
|
"ddos_l4",
|
|
@@ -141706,7 +141706,7 @@
|
|
|
141706
141706
|
"command": "cf workers delete",
|
|
141707
141707
|
"name": "delete",
|
|
141708
141708
|
"fullPath": ["workers", "delete"],
|
|
141709
|
-
"description": "Delete a Worker and
|
|
141709
|
+
"description": "Delete a Worker and its associated versions and deployments. Container applications are only deleted with confirmation or --delete-containers.",
|
|
141710
141710
|
"summary": "Delete Worker",
|
|
141711
141711
|
"usage": "cf workers delete [worker] [options]",
|
|
141712
141712
|
"arguments": [
|
|
@@ -141722,7 +141722,7 @@
|
|
|
141722
141722
|
{
|
|
141723
141723
|
"name": "worker",
|
|
141724
141724
|
"type": "string",
|
|
141725
|
-
"required":
|
|
141725
|
+
"required": false,
|
|
141726
141726
|
"description": "Identifier for the Worker, which can be ID or name.",
|
|
141727
141727
|
"alias": ["script-name", "worker-id"]
|
|
141728
141728
|
},
|
|
@@ -141730,21 +141730,28 @@
|
|
|
141730
141730
|
"name": "delete-with-references",
|
|
141731
141731
|
"type": "boolean",
|
|
141732
141732
|
"required": false,
|
|
141733
|
-
"description": "
|
|
141733
|
+
"description": "Delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them."
|
|
141734
|
+
},
|
|
141735
|
+
{
|
|
141736
|
+
"name": "delete-containers",
|
|
141737
|
+
"type": "boolean",
|
|
141738
|
+
"required": false,
|
|
141739
|
+
"description": "Also delete Container applications owned by this Worker.",
|
|
141740
|
+
"default": false
|
|
141734
141741
|
},
|
|
141735
141742
|
{
|
|
141736
141743
|
"name": "dry-run",
|
|
141737
141744
|
"type": "boolean",
|
|
141738
141745
|
"required": false,
|
|
141739
|
-
"description": "
|
|
141746
|
+
"description": "Preview the deletion without making API requests.",
|
|
141740
141747
|
"default": false
|
|
141741
141748
|
},
|
|
141742
141749
|
{
|
|
141743
141750
|
"name": "force",
|
|
141744
141751
|
"type": "boolean",
|
|
141745
|
-
"alias": "f",
|
|
141746
141752
|
"required": false,
|
|
141747
141753
|
"description": "Skip confirmation (useful in scripts and CI)",
|
|
141754
|
+
"alias": "f",
|
|
141748
141755
|
"default": false
|
|
141749
141756
|
}
|
|
141750
141757
|
],
|
|
@@ -2090,6 +2090,72 @@
|
|
|
2090
2090
|
"parent": "workers"
|
|
2091
2091
|
}
|
|
2092
2092
|
},
|
|
2093
|
+
{
|
|
2094
|
+
"command": "cf workers delete",
|
|
2095
|
+
"name": "delete",
|
|
2096
|
+
"fullPath": ["workers", "delete"],
|
|
2097
|
+
"description": "Delete a Worker and its associated versions and deployments. Container applications are only deleted with confirmation or --delete-containers.",
|
|
2098
|
+
"summary": "Delete Worker",
|
|
2099
|
+
"usage": "cf workers delete [worker] [options]",
|
|
2100
|
+
"arguments": [
|
|
2101
|
+
{
|
|
2102
|
+
"name": "worker",
|
|
2103
|
+
"position": 0,
|
|
2104
|
+
"type": "string",
|
|
2105
|
+
"required": false,
|
|
2106
|
+
"description": "Identifier for the Worker, which can be ID or name."
|
|
2107
|
+
}
|
|
2108
|
+
],
|
|
2109
|
+
"options": [
|
|
2110
|
+
{
|
|
2111
|
+
"name": "worker",
|
|
2112
|
+
"type": "string",
|
|
2113
|
+
"required": false,
|
|
2114
|
+
"description": "Identifier for the Worker, which can be ID or name.",
|
|
2115
|
+
"alias": ["script-name", "worker-id"]
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"name": "delete-with-references",
|
|
2119
|
+
"type": "boolean",
|
|
2120
|
+
"required": false,
|
|
2121
|
+
"description": "Delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them."
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"name": "delete-containers",
|
|
2125
|
+
"type": "boolean",
|
|
2126
|
+
"required": false,
|
|
2127
|
+
"description": "Also delete Container applications owned by this Worker.",
|
|
2128
|
+
"default": false
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "dry-run",
|
|
2132
|
+
"type": "boolean",
|
|
2133
|
+
"required": false,
|
|
2134
|
+
"description": "Preview the deletion without making API requests.",
|
|
2135
|
+
"default": false
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
"name": "force",
|
|
2139
|
+
"type": "boolean",
|
|
2140
|
+
"required": false,
|
|
2141
|
+
"description": "Skip confirmation (useful in scripts and CI)",
|
|
2142
|
+
"alias": "f",
|
|
2143
|
+
"default": false
|
|
2144
|
+
}
|
|
2145
|
+
],
|
|
2146
|
+
"category": "delete",
|
|
2147
|
+
"hasRequestBody": false,
|
|
2148
|
+
"httpMethod": "DELETE",
|
|
2149
|
+
"apiPath": "/accounts/{account_id}/workers/workers/{worker_id}",
|
|
2150
|
+
"operationId": "workers.delete",
|
|
2151
|
+
"hideCommand": false,
|
|
2152
|
+
"handWritten": {
|
|
2153
|
+
"kind": "leafOverride",
|
|
2154
|
+
"overrides": true,
|
|
2155
|
+
"dir": "workers/delete",
|
|
2156
|
+
"emitKey": "workers/delete"
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2093
2159
|
{
|
|
2094
2160
|
"command": "cf workers triggers deploy",
|
|
2095
2161
|
"name": "deploy",
|
package/dist/_meta/schemas.json
CHANGED
|
@@ -34474,7 +34474,7 @@
|
|
|
34474
34474
|
"name": "deletes",
|
|
34475
34475
|
"type": "string",
|
|
34476
34476
|
"required": false,
|
|
34477
|
-
"description": "The deletes field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\"
|
|
34477
|
+
"description": "The deletes field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\": string}]."
|
|
34478
34478
|
},
|
|
34479
34479
|
{
|
|
34480
34480
|
"name": "patches",
|
|
@@ -35135,7 +35135,7 @@
|
|
|
35135
35135
|
"name": "rejects",
|
|
35136
35136
|
"type": "string",
|
|
35137
35137
|
"required": false,
|
|
35138
|
-
"description": "The rejects field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\"
|
|
35138
|
+
"description": "The rejects field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{\"id\": string}]."
|
|
35139
35139
|
}
|
|
35140
35140
|
]
|
|
35141
35141
|
},
|
|
@@ -36387,7 +36387,7 @@
|
|
|
36387
36387
|
{
|
|
36388
36388
|
"name": "name",
|
|
36389
36389
|
"type": "string",
|
|
36390
|
-
"required":
|
|
36390
|
+
"required": true,
|
|
36391
36391
|
"description": "DNS Firewall cluster name"
|
|
36392
36392
|
},
|
|
36393
36393
|
{
|
|
@@ -36411,7 +36411,7 @@
|
|
|
36411
36411
|
{
|
|
36412
36412
|
"name": "upstream-ips",
|
|
36413
36413
|
"type": "string",
|
|
36414
|
-
"required":
|
|
36414
|
+
"required": true,
|
|
36415
36415
|
"description": "The upstream_ips field"
|
|
36416
36416
|
},
|
|
36417
36417
|
{
|
|
@@ -87557,19 +87557,19 @@
|
|
|
87557
87557
|
{
|
|
87558
87558
|
"name": "name",
|
|
87559
87559
|
"type": "string",
|
|
87560
|
-
"required":
|
|
87560
|
+
"required": true,
|
|
87561
87561
|
"description": "The human-readable name of the ruleset."
|
|
87562
87562
|
},
|
|
87563
87563
|
{
|
|
87564
87564
|
"name": "kind",
|
|
87565
87565
|
"type": "string",
|
|
87566
|
-
"required":
|
|
87566
|
+
"required": true,
|
|
87567
87567
|
"description": "The kind of the ruleset."
|
|
87568
87568
|
},
|
|
87569
87569
|
{
|
|
87570
87570
|
"name": "phase",
|
|
87571
87571
|
"type": "string",
|
|
87572
|
-
"required":
|
|
87572
|
+
"required": true,
|
|
87573
87573
|
"description": "The phase of the ruleset."
|
|
87574
87574
|
},
|
|
87575
87575
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-Fl7walZt.mjs";import{t as r}from"./dry-run-B4_5Qb0J.mjs";import{a as i,t as a}from"./context-DZ_o-H15.mjs";import{t as o}from"./local-CLMvfqkt.mjs";import{t as s}from"./output-DcDP8hsi.mjs";import{t as c}from"./progress-CKu4TPPI.mjs";import{t as l}from"./run-DURbDvRl.mjs";import"./telemetry-D33WsYG8.mjs";import{c as u,o as d,r as f,t as p}from"./body-parser-DftnWjJP.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-B4fCnTfF.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(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. Report-level appeals are currently available only for DMCA (copyright) reports. For other report types this operation returns the same \`404 Report not found\` response as a report that does not exist for the account.`).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 y={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:v,handler:async e=>l({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/abuse-reports/${e[`report-id`]==null?`<report-id>`:encodeURIComponent(String(e[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(e[`report-id`]??``)},bodyKind:`none`});return}let t=await n(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>t.send(_,{account_id:l,report_id:e[`report-id`]}));s(u,{successLabel:`Loaded`})})},b={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage("$0 abuse-reports create <report-type>\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 `Trust and Safety Write` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below). Delegated reports: In limited circumstances, Cloudflare delegates processing of abuse reports to select customers who have established abuse-handling programs. For these customers, Cloudflare may forward abuse reports directly and in full—including reporter contact information, comments, and supporting evidence—without redaction or preprocessing by Cloudflare. This allows the customer to investigate and respond using their own policies and processes. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of the `host_notification` and `owner_notification` values.").positional(`report-type`,{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`]}).coerce(`act`,e=>m(e,`act`,`text`)).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters. With the exception of delegated reports, comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For the limited circumstances where we delegate reports to customers with established abuse-handling programs, comments may be shared in full.`}).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/).`}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.`,choices:[`send`,`send-anon`]}).coerce(`host-notification`,e=>m(e,`host-notification`,`text`)).option(`original-work`,{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(`owner-notification`,{type:`string`,description:`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.`,choices:[`send`,`send-anon`,`none`]}).coerce(`owner-notification`,e=>m(e,`owner-notification`,`text`)).option(`signature`,{type:`string`,description:`Required for DMCA reports, should be same as Name. An affirmation that all information in the report is true and accurate while agreeing to the policies of Cloudflare's abuse reports`}).option(`state`,{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(`justification`,{type:`string`,description:`A detailed description of the infringement, including any necessary access details and the exact steps needed to view the content, not exceeding 5000 characters.`}).option(`trademark-number`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-office`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`trademark-symbol`,{type:`string`,description:`Text not exceeding 1000 characters`}).option(`destination-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of destination IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ports-protocols`,{type:`string`,description:`A comma separated list of ports and protocols e.g. 80/TCP, 22/UDP. The total size of the field should not exceed 2000 characters. Each individual port/protocol should not exceed 100 characters. The list should not have more than 30 unique ports and protocols.`}).option(`source-ips`,{type:`string`,description:`A list of IP addresses separated by ‘\\n’ (new line character). The list of source IPs should not exceed 30 IP addresses. Each one of the IP addresses ought to be unique.`}).option(`ncmec-notification`,{type:`string`,description:`Notification type based on the abuse type. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
|
|
5
5
|
`,choices:[`send`,`send-anon`]}).coerce(`ncmec-notification`,e=>m(e,`ncmec-notification`,`text`)).option(`reg-who-request-reg-who-authorization-statement`,{type:`string`,description:`Optional authorization statement or power of attorney per RDP 10.2.1.3.`}).option(`reg-who-request-reg-who-good-faith-affirmation`,{type:`boolean`,description:`Affirmation that the request is made in good faith per RDP 10.2.4. Must be true.`}).option(`reg-who-request-reg-who-lawful-processing-agreement`,{type:`boolean`,description:`Agreement to process data lawfully per RDP 10.2.5. Must be true.`}).option(`reg-who-request-reg-who-legal-basis`,{type:`string`,description:`Legal rights and rationale for the request per RDP 10.2.3. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-request-type`,{type:`string`,description:`The type of WHOIS data request per RDP procedure.`,choices:[`disclosure`,`invalid_whois`]}).coerce(`reg-who-request-reg-who-request-type`,e=>m(e,`reg-who-request-reg-who-request-type`,`text`)).option(`reg-who-request-reg-who-requested-data-elements`,{type:`string`,array:!0,description:`The specific WHOIS data elements being requested per RDP 10.2.2. Required for all WHOIS requests.`}).option(`reg-who-request-reg-who-requestor-type`,{type:`string`,description:`The nature of the requestor per RDP 10.2.1.2.`,choices:[`government`,`corporation`,`individual`]}).coerce(`reg-who-request-reg-who-requestor-type`,e=>m(e,`reg-who-request-reg-who-requestor-type`,`text`)).option(`ncsei-subject-representation`,{type:`boolean`,description:`If the submitter is the target of NCSEI in the URLs of the abuse report.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`address1`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`address1`,[`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agent-name`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agent-name`,[`address1`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`agree`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`agree`,[`address1`,`agent-name`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`city`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`city`,[`address1`,`agent-name`,`agree`,`country`,`host-notification`,`original-work`,`signature`,`state`]).conflicts(`country`,[`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).implies(`country`,[`host-notification`]).conflicts(`host-notification`,[`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).conflicts(`original-work`,[`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`original-work`,[`host-notification`]).conflicts(`signature`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`signature`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`state`]).conflicts(`state`,[`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`state`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`]).conflicts(`justification`,[`address1`,`agent-name`,`agree`,`city`,`signature`,`state`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`justification`,[`host-notification`]).conflicts(`trademark-number`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-number`,[`host-notification`,`justification`,`trademark-office`,`trademark-symbol`]).conflicts(`trademark-office`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-office`,[`host-notification`,`justification`,`trademark-number`,`trademark-symbol`]).conflicts(`trademark-symbol`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`trademark-symbol`,[`host-notification`,`justification`,`trademark-number`,`trademark-office`]).conflicts(`destination-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`destination-ips`,[`host-notification`,`justification`]).conflicts(`ports-protocols`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`ports-protocols`,[`host-notification`,`justification`]).conflicts(`source-ips`,[`address1`,`agent-name`,`agree`,`city`,`country`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`source-ips`,[`host-notification`,`justification`]).conflicts(`ncmec-notification`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`]).implies(`ncmec-notification`,[`host-notification`,`justification`]).conflicts(`reg-who-request-reg-who-authorization-statement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-authorization-statement`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`reg-who-request-reg-who-good-faith-affirmation`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-good-faith-affirmation`,[`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`reg-who-request-reg-who-lawful-processing-agreement`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-lawful-processing-agreement`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`reg-who-request-reg-who-legal-basis`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-legal-basis`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`reg-who-request-reg-who-request-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-request-type`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`reg-who-request-reg-who-requested-data-elements`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-requested-data-elements`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`]).conflicts(`reg-who-request-reg-who-requestor-type`,[`address1`,`agent-name`,`agree`,`city`,`country`,`host-notification`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`ncsei-subject-representation`]).implies(`reg-who-request-reg-who-requestor-type`,[`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`]).conflicts(`ncsei-subject-representation`,[`address1`,`agent-name`,`agree`,`city`,`original-work`,`signature`,`state`,`justification`,`trademark-number`,`trademark-office`,`trademark-symbol`,`destination-ips`,`ports-protocols`,`source-ips`,`ncmec-notification`,`reg-who-request-reg-who-authorization-statement`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-legal-basis`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requested-data-elements`,`reg-who-request-reg-who-requestor-type`]).implies(`ncsei-subject-representation`,[`host-notification`])}const S={command:`create <report-type>`,describe:`Submit an abuse report`,builder:x,handler:async e=>l({command:`abuse-reports create`,classification:{safeFlags:[`act`,`host-notification`,`owner-notification`,`ncmec-notification`,`reg-who-request-reg-who-good-faith-affirmation`,`reg-who-request-reg-who-lawful-processing-agreement`,`reg-who-request-reg-who-request-type`,`reg-who-request-reg-who-requestor-type`,`ncsei-subject-representation`,`dry-run`]}},e,async()=>{let l=async()=>{e.act===void 0&&(e.act=await g(`act`,`The act field`,[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`])),e.email===void 0&&(e.email=await h(`email`,`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/).`)),e.email2===void 0&&(e.email2=await h(`email2`,"Should match the value provided in `email`")),e.name===void 0&&(e.name=await h(`name`,`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`)),e.urls===void 0&&(e.urls=await h(`urls`,`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/).`)),e[`owner-notification`]===void 0&&(e[`owner-notification`]=await g(`owner-notification`,`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.`,[`send`,`send-anon`,`none`]))};if(e.dryRun){e.body===void 0&&await l();let t=await i();r({command:`cf abuse-reports create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/abuse-reports/${e[`report-type`]==null?`<report-type>`:encodeURIComponent(String(e[`report-type`]))}`,pathParams:{"report-type":String(e[`report-type`]??``)},bodyKind:`json`,body:e.body===void 0?p({act:e.act,comments:m(e.comments,`comments`,`text`),company:m(e.company,`company`,`text`),email:m(e.email,`email`,`text`),email2:m(e.email2,`email2`,`text`),name:m(e.name,`name`,`text`),reported_country:m(e[`reported-country`],`reported-country`,`text`),reported_user_agent:m(e[`reported-user-agent`],`reported-user-agent`,`text`),tele:m(e.tele,`tele`,`text`),title:m(e.title,`title`,`text`),urls:m(e.urls,`urls`,`text`),address1:m(e.address1,`address1`,`text`),agent_name:m(e[`agent-name`],`agent-name`,`text`),agree:e.agree,city:m(e.city,`city`,`text`),country:m(e.country,`country`,`text`),host_notification:e[`host-notification`],original_work:m(e[`original-work`],`original-work`,`text`),owner_notification:e[`owner-notification`],signature:m(e.signature,`signature`,`text`),state:m(e.state,`state`,`text`),justification:m(e.justification,`justification`,`text`),trademark_number:m(e[`trademark-number`],`trademark-number`,`text`),trademark_office:m(e[`trademark-office`],`trademark-office`,`text`),trademark_symbol:m(e[`trademark-symbol`],`trademark-symbol`,`text`),destination_ips:m(e[`destination-ips`],`destination-ips`,`text`),ports_protocols:m(e[`ports-protocols`],`ports-protocols`,`text`),source_ips:m(e[`source-ips`],`source-ips`,`text`),ncmec_notification:e[`ncmec-notification`],reg_who_request:{reg_who_authorization_statement:m(e[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`),reg_who_good_faith_affirmation:e[`reg-who-request-reg-who-good-faith-affirmation`],reg_who_lawful_processing_agreement:e[`reg-who-request-reg-who-lawful-processing-agreement`],reg_who_legal_basis:m(e[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`),reg_who_request_type:e[`reg-who-request-reg-who-request-type`],reg_who_requested_data_elements:e[`reg-who-request-reg-who-requested-data-elements`],reg_who_requestor_type:e[`reg-who-request-reg-who-requestor-type`]},ncsei_subject_representation:e[`ncsei-subject-representation`]}):f(e.body)});return}let d=e.body===void 0?void 0:f(e.body),_=await n(e),v=e.local?o:await a();if(e.accountId=v,e.body!==void 0){let n=d,r=await c(`Creating`,async()=>t(_,`POST`,`/accounts/${v}/abuse-reports/${encodeURIComponent(String(e[`report-type`]))}`,{body:n}));s(r,{successLabel:`Created`});return}await l();let y={};e.act!==void 0&&u(y,[`act`],e.act),e.comments!==void 0&&u(y,[`comments`],m(e.comments,`comments`,`text`)),e.company!==void 0&&u(y,[`company`],m(e.company,`company`,`text`)),e.email!==void 0&&u(y,[`email`],m(e.email,`email`,`text`)),e.email2!==void 0&&u(y,[`email2`],m(e.email2,`email2`,`text`)),e.name!==void 0&&u(y,[`name`],m(e.name,`name`,`text`)),e[`reported-country`]!==void 0&&u(y,[`reported_country`],m(e[`reported-country`],`reported-country`,`text`)),e[`reported-user-agent`]!==void 0&&u(y,[`reported_user_agent`],m(e[`reported-user-agent`],`reported-user-agent`,`text`)),e.tele!==void 0&&u(y,[`tele`],m(e.tele,`tele`,`text`)),e.title!==void 0&&u(y,[`title`],m(e.title,`title`,`text`)),e.urls!==void 0&&u(y,[`urls`],m(e.urls,`urls`,`text`)),e.address1!==void 0&&u(y,[`address1`],m(e.address1,`address1`,`text`)),e[`agent-name`]!==void 0&&u(y,[`agent_name`],m(e[`agent-name`],`agent-name`,`text`)),e.agree!==void 0&&u(y,[`agree`],e.agree),e.city!==void 0&&u(y,[`city`],m(e.city,`city`,`text`)),e.country!==void 0&&u(y,[`country`],m(e.country,`country`,`text`)),e[`host-notification`]!==void 0&&u(y,[`host_notification`],e[`host-notification`]),e[`original-work`]!==void 0&&u(y,[`original_work`],m(e[`original-work`],`original-work`,`text`)),e[`owner-notification`]!==void 0&&u(y,[`owner_notification`],e[`owner-notification`]),e.signature!==void 0&&u(y,[`signature`],m(e.signature,`signature`,`text`)),e.state!==void 0&&u(y,[`state`],m(e.state,`state`,`text`)),e.justification!==void 0&&u(y,[`justification`],m(e.justification,`justification`,`text`)),e[`trademark-number`]!==void 0&&u(y,[`trademark_number`],m(e[`trademark-number`],`trademark-number`,`text`)),e[`trademark-office`]!==void 0&&u(y,[`trademark_office`],m(e[`trademark-office`],`trademark-office`,`text`)),e[`trademark-symbol`]!==void 0&&u(y,[`trademark_symbol`],m(e[`trademark-symbol`],`trademark-symbol`,`text`)),e[`destination-ips`]!==void 0&&u(y,[`destination_ips`],m(e[`destination-ips`],`destination-ips`,`text`)),e[`ports-protocols`]!==void 0&&u(y,[`ports_protocols`],m(e[`ports-protocols`],`ports-protocols`,`text`)),e[`source-ips`]!==void 0&&u(y,[`source_ips`],m(e[`source-ips`],`source-ips`,`text`)),e[`ncmec-notification`]!==void 0&&u(y,[`ncmec_notification`],e[`ncmec-notification`]),e[`reg-who-request-reg-who-authorization-statement`]!==void 0&&u(y,[`reg_who_request`,`reg_who_authorization_statement`],m(e[`reg-who-request-reg-who-authorization-statement`],`reg-who-request-reg-who-authorization-statement`,`text`)),e[`reg-who-request-reg-who-good-faith-affirmation`]!==void 0&&u(y,[`reg_who_request`,`reg_who_good_faith_affirmation`],e[`reg-who-request-reg-who-good-faith-affirmation`]),e[`reg-who-request-reg-who-lawful-processing-agreement`]!==void 0&&u(y,[`reg_who_request`,`reg_who_lawful_processing_agreement`],e[`reg-who-request-reg-who-lawful-processing-agreement`]),e[`reg-who-request-reg-who-legal-basis`]!==void 0&&u(y,[`reg_who_request`,`reg_who_legal_basis`],m(e[`reg-who-request-reg-who-legal-basis`],`reg-who-request-reg-who-legal-basis`,`text`)),e[`reg-who-request-reg-who-request-type`]!==void 0&&u(y,[`reg_who_request`,`reg_who_request_type`],e[`reg-who-request-reg-who-request-type`]),e[`reg-who-request-reg-who-requested-data-elements`]!==void 0&&u(y,[`reg_who_request`,`reg_who_requested_data_elements`],e[`reg-who-request-reg-who-requested-data-elements`]),e[`reg-who-request-reg-who-requestor-type`]!==void 0&&u(y,[`reg_who_request`,`reg_who_requestor_type`],e[`reg-who-request-reg-who-requestor-type`]),e[`ncsei-subject-representation`]!==void 0&&u(y,[`ncsei_subject_representation`],e[`ncsei-subject-representation`]);let b=await c(`Creating`,async()=>t(_,`POST`,`/accounts/${v}/abuse-reports/${encodeURIComponent(String(e[`report-type`]))}`,{body:y}));s(b,{successLabel:`Created`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/submitted/${t.report_id}/emails`,query:[`page`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function w(e){return e.usage(`$0 abuse-reports emails list-submitted <report-id>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t as e}from"./lazy-command-
|
|
2
|
+
import{t as e}from"./lazy-command-CXkIdRTR.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-BSqxEqc7.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-HlItYmgS.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-C9XTqxMi.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-CkNsLK8g.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-08pqSG_2.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-D4i6V7wE.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n,s as r}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n,s as r}from"./auth-Fl7walZt.mjs";import{c as i,o as a,r as o,t as s}from"./body-parser-DftnWjJP.mjs";import{a as c,i as l,t as u}from"./context-DZ_o-H15.mjs";import{t as d}from"./dry-run-B4_5Qb0J.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{t as p}from"./local-CLMvfqkt.mjs";import{t as m}from"./run-DURbDvRl.mjs";import{t as h}from"./output-DcDP8hsi.mjs";import{t as g}from"./progress-CKu4TPPI.mjs";import{a as _,i as v,n as y}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";import{n as ee,t as te}from"./raw-fetch-DPl7eKQx.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`,errors:{403:`ForbiddenError`,429:`TooManyRequestsError`}};function ne(e){return e.usage(`$0 accounts applications create
|
|
3
3
|
|
|
4
4
|
Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for the application.`}).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:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).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. A NUL character (U+0000) in any string value returns `400`. "})}const re={command:`create`,describe:`Create application`,builder:ne,handler:async e=>m({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t=async()=>{if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`))};if(e.dryRun){e.body===void 0&&await t();let n=await c();d({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?s({category_id:e[`category-id`],hostnames:e.hostnames,human_id:f(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:f(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),a=e.local?p:await u();if(e.accountId=a,e.body!==void 0){let e=r,t=await g(`Creating`,async()=>i.send(b,{body:e,account_id:a}));h(t,{successLabel:`Created`});return}await t();let l=s({category_id:e[`category-id`],hostnames:e.hostnames,human_id:f(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:f(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),m=await g(`Creating`,async()=>i.send(b,{body:l,account_id:a}));h(m,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{403:`ForbiddenError`,409:`ConflictError`,429:`TooManyRequestsError`,502:`BadGatewayError`}};function ae(e){return e.usage(`$0 accounts applications delete <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{i as n}from"./context-DZ_o-H15.mjs";import{r,t as i}from"./body-parser-DftnWjJP.mjs";import{t as a}from"./dry-run-B4_5Qb0J.mjs";import{n as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./run-DURbDvRl.mjs";import{t as c}from"./output-DcDP8hsi.mjs";import{t as l}from"./progress-CKu4TPPI.mjs";import{a as u,n as d}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(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 m={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:p,handler:async e=>s({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let s=async()=>{e.certificate===void 0&&(e.certificate=await u(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`))};if(e.dryRun){e.body===void 0&&await s(),a({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({certificate:o(e.certificate,`certificate`,`text`)}):r(e.body)});return}let d=e.body===void 0?void 0:r(e.body),p=await t(e),m=await n({zone:e.zone},p,{quiet:e.quiet});if(e.zoneId=m,e.body!==void 0){let e=d,t=await l(`Creating`,async()=>p.send(f,{body:e,zone_id:m}));c(t,{successLabel:`Created`});return}await s();let h=i({certificate:o(e.certificate,`certificate`,`text`)}),g=await l(`Creating`,async()=>p.send(f,{body:h,zone_id:m}));c(g,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function g(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"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-Fl7walZt.mjs";import{t as r}from"./dry-run-B4_5Qb0J.mjs";import{a as i,i as a,t as o}from"./context-DZ_o-H15.mjs";import{t as s}from"./local-CLMvfqkt.mjs";import{t as c}from"./output-DcDP8hsi.mjs";import{t as l}from"./progress-CKu4TPPI.mjs";import{t as u}from"./run-DURbDvRl.mjs";import"./telemetry-D33WsYG8.mjs";import{a as d,n as f}from"./prompt-B4fCnTfF.mjs";import{o as p,r as m,t as h}from"./body-parser-DftnWjJP.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{n as ee,t as te}from"./raw-fetch-DPl7eKQx.mjs";var v={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts create <member-account-id>
|
|
3
3
|
|
|
4
4
|
Add 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})}const ne={command:`create <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:y,handler:async e=>u({command:`addressing address-maps accounts create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps accounts create`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Updating`,async()=>t.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));c(u,{successLabel:`Updated`})})};var re={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{o as n,r,t as i}from"./body-parser-DftnWjJP.mjs";import{a,t as o}from"./context-DZ_o-H15.mjs";import{t as s}from"./dry-run-B4_5Qb0J.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-CLMvfqkt.mjs";import{t as u}from"./run-DURbDvRl.mjs";import{t as d}from"./output-DcDP8hsi.mjs";import{t as f}from"./progress-CKu4TPPI.mjs";import{a as p,n as m}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(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 _={command:`create-namespace`,describe:`Create a namespace`,builder:g,handler:async e=>u({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n=async()=>{e.name===void 0&&(e.name=await p(`name`,`Namespace name.`))};if(e.dryRun){e.body===void 0&&await n();let t=await a();s({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({name:c(e.name,`name`,`text`)}):r(e.body)});return}let u=e.body===void 0?void 0:r(e.body),m=await t(e),g=e.local?l:await o();if(e.accountId=g,e.body!==void 0){let e=u,t=await f(`Creating`,async()=>m.send(h,{body:e,account_id:g}));d(t,{successLabel:`Created`});return}await n();let _=i({name:c(e.name,`name`,`text`)}),v=await f(`Creating`,async()=>m.send(h,{body:_,account_id:g}));d(v,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function y(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"./api-5qkbb5HW.mjs";import{a as e,i as t,n}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{a as e,i as t,n}from"./auth-Fl7walZt.mjs";import{t as r}from"./path-DRw6Y-nd.mjs";import{t as i}from"./dry-run-B4_5Qb0J.mjs";import{n as a,t as o}from"./local-CLMvfqkt.mjs";import{a as s,t as c}from"./context-DZ_o-H15.mjs";import{t as l}from"./output-DcDP8hsi.mjs";import{t as u}from"./progress-CKu4TPPI.mjs";import"./telemetry-D33WsYG8.mjs";import{n as d,t as f}from"./run-DURbDvRl.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{r as h,t as g}from"./body-parser-DftnWjJP.mjs";import{a as _,i as ee,n as te}from"./prompt-B4fCnTfF.mjs";import{a as ne,i as re,n as ie,r as v,t as ae}from"./schema-cache-DHECPju4.mjs";import{n as y}from"./raw-fetch-DPl7eKQx.mjs";import{c as b,f as x,i as oe,l as S,n as se,p as ce,r as C,s as w,t as T,u as E}from"./schema-flags-CDUlHuF1.mjs";import{r as D}from"./theme-BGHWSKCw.mjs";var O={method:`GET`,path:e=>r`/accounts/${e.account_id}/ai/authors/search`,errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 ai authors list
|
|
3
3
|
|
|
4
4
|
Searches Workers AI models by author or organization name.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`Author Search`,builder:k,handler:async e=>f({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await s();i({command:`cf ai authors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/ai/authors/search`,pathParams:{},bodyKind:`none`});return}let t=await n(e),r=e.local?o:await c();e.accountId=r;let a=await u(`Loading`,async()=>t.send(O,{account_id:r}));l(a,{successLabel:`Loaded`})})},j={command:`authors`,describe:`Operations for authors`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 ai finetunes assets create <finetune-id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{i as n}from"./context-DZ_o-H15.mjs";import{r}from"./body-parser-DftnWjJP.mjs";import{t as i}from"./dry-run-B4_5Qb0J.mjs";import{t as a}from"./output-DcDP8hsi.mjs";import{t as o}from"./run-DURbDvRl.mjs";import{t as s}from"./progress-CKu4TPPI.mjs";import"./telemetry-D33WsYG8.mjs";var c={method:`POST`,path:t=>e`/zones/${t.zone_id}/ai-audit/robots/bulk`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,408:`RequestTimeoutError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function l(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 u={command:`bulk-get`,describe:`Bulk get robots.txt rules`,builder:l,handler:async e=>o({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`);if(e.dryRun){i({command:`cf ai-audit robots bulk-get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-audit/robots/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:r(e.body,[],25)});return}let o=e.body===void 0?void 0:r(e.body,[],25),l=await t(e),u=await n({zone:e.zone},l,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=o,t=await s(`Loading`,async()=>l.send(c,{body:e,zone_id:u}));a(t,{successLabel:`Loaded`})}})};var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-audit/robots`,query:[`subdomain`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function f(e){return e.usage(`$0 ai-audit robots get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-Fl7walZt.mjs";import{c as r,i,o as a,r as o,t as s}from"./body-parser-DftnWjJP.mjs";import{a as c,t as l}from"./context-DZ_o-H15.mjs";import{t as u}from"./dry-run-B4_5Qb0J.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{t as f}from"./local-CLMvfqkt.mjs";import{t as p}from"./run-DURbDvRl.mjs";import{t as m}from"./output-DcDP8hsi.mjs";import{t as h}from"./progress-CKu4TPPI.mjs";import{a as g,n as _}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 ai-gateway custom-domains create <gateway-id>
|
|
3
3
|
|
|
4
4
|
Provisions a Cloudflare-for-SaaS custom hostname and returns the CNAME target to point DNS at.`).positional(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`domain`,{type:`string`,description:"Custom hostname that you own, such as `ai.example.com`."}).option(`min-tls`,{type:`string`,description:`The minTLS field`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`min-tls`,e=>d(e,`min-tls`,`text`)).option(`zone-id`,{type:`string`,description:`ID of the Cloudflare zone that contains the custom hostname.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create <gateway-id>`,describe:`Create a custom domain for a gateway`,builder:y,handler:async e=>p({command:`ai-gateway custom-domains create`,classification:{safeFlags:[`min-tls`,`dry-run`]}},e,async()=>{let t=async()=>{e.domain===void 0&&(e.domain=await g(`domain`,"Custom hostname that you own, such as `ai.example.com`.")),e[`zone-id`]===void 0&&(e[`zone-id`]=await g(`zone-id`,`ID of the Cloudflare zone that contains the custom hostname.`))};if(e.dryRun){e.body===void 0&&await t();let n=await c();u({command:`cf ai-gateway custom-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/ai-gateway/gateways/${e[`gateway-id`]==null?`<gateway-id>`:encodeURIComponent(String(e[`gateway-id`]))}/custom-domains`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},bodyKind:`json`,body:e.body===void 0?s({domain:d(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:d(e[`zone-id`],`zone-id`,`text`)}):o(e.body)});return}let r=e.body===void 0?void 0:o(e.body),i=await n(e),a=e.local?f:await l();if(e.accountId=a,e.body!==void 0){let t=r,n=await h(`Creating`,async()=>i.send(v,{body:t,account_id:a,gateway_id:e[`gateway-id`]}));m(n,{successLabel:`Created`});return}await t();let p=s({domain:d(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:d(e[`zone-id`],`zone-id`,`text`)}),_=await h(`Creating`,async()=>i.send(v,{body:p,account_id:a,gateway_id:e[`gateway-id`]}));m(_,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains/${t.hostname}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 ai-gateway custom-domains delete <hostname>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-Fl7walZt.mjs";import{t as n}from"./path-DRw6Y-nd.mjs";import{c as r,i,n as a,o,r as s,t as c}from"./body-parser-DftnWjJP.mjs";import{t as l}from"./dry-run-B4_5Qb0J.mjs";import{a as u,t as d}from"./context-DZ_o-H15.mjs";import{n as f,t as p}from"./input-validation-D7z60HJH.mjs";import{t as m}from"./local-CLMvfqkt.mjs";import{t as h}from"./output-DcDP8hsi.mjs";import{t as g}from"./run-DURbDvRl.mjs";import{t as _}from"./progress-CKu4TPPI.mjs";import"./telemetry-D33WsYG8.mjs";import"./api-5qkbb5HW.mjs";import{a as v,i as y,n as b}from"./prompt-B4fCnTfF.mjs";import{n as x,t as ee}from"./raw-fetch-DPl7eKQx.mjs";function te(e){return e.usage(`$0 ai-search chat-completions <instance-id>
|
|
3
3
|
|
|
4
4
|
Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses.`).positional(`instance-id`,{type:`string`,description:`AI Search instance ID.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`Namespace to use for this operation.`,default:`default`}).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`]}).coerce(`ai-search-options-cache-cache-threshold`,e=>f(e,`ai-search-options-cache-cache-threshold`,`text`)).option(`ai-search-options-cache-enabled`,{type:`boolean`,description:`The ai_search_options.cache.enabled field`}).option(`ai-search-options-custom-metadata`,{type:`string`,description:`Metadata added to AI Gateway logs for requests this operation triggers. Accepts up to 2 string, number, or boolean entries. Reserved keys: 'ai-search', 'task', 'origin', and any key beginning with 'cf.'. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": (string | number | boolean)}.`}).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:`Minimum reranker relevance score a chunk must reach to be returned. When omitted, falls back to the instance-level score_threshold, then to 0.4.`}).option(`ai-search-options-reranking-model`,{type:`string`,description:`The ai_search_options.reranking.model field`}).option(`ai-search-options-retrieval-boost-by`,{type:`string`,description:`Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"field": string, "direction"?: "asc" | "desc" | "exists" | ...more}]. ? marks optional keys.`}).option(`ai-search-options-retrieval-context-expansion`,{type:`number`,description:`The ai_search_options.retrieval.context_expansion field`}).option(`ai-search-options-retrieval-filters`,{type:`string`,description:`The ai_search_options.retrieval.filters field. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": unknown}.`}).option(`ai-search-options-retrieval-fusion-method`,{type:`string`,description:`The ai_search_options.retrieval.fusion_method field`,choices:[`max`,`rrf`]}).coerce(`ai-search-options-retrieval-fusion-method`,e=>f(e,`ai-search-options-retrieval-fusion-method`,`text`)).option(`ai-search-options-retrieval-keyword-match-mode`,{type:`string`,description:`Controls which documents become candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term and ranks results according to BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'.`,choices:[`and`,`or`]}).coerce(`ai-search-options-retrieval-keyword-match-mode`,e=>f(e,`ai-search-options-retrieval-keyword-match-mode`,`text`)).option(`ai-search-options-retrieval-match-threshold`,{type:`number`,description:`Minimum similarity score a chunk must reach to be returned. When omitted, falls back to the instance-level score_threshold, then to 0.4.`}).option(`ai-search-options-retrieval-max-num-results`,{type:`number`,description:`Maximum number of results to return. When omitted, falls back to the instance-level max_num_results, then to 10.`}).option(`ai-search-options-retrieval-retrieval-type`,{type:`string`,description:`The ai_search_options.retrieval.retrieval_type field`,choices:[`vector`,`keyword`,`hybrid`]}).coerce(`ai-search-options-retrieval-retrieval-type`,e=>f(e,`ai-search-options-retrieval-retrieval-type`,`text`)).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. Shape: [{"content": (string | [{...}] | null), "role": "system" | "developer" | "user" | ...more, "<key>": unknown}].`}).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 ne={command:`chat-completions <instance-id>`,describe:`Chat Completions`,builder:te,handler:async n=>g({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`]}},n,async()=>{let a=async()=>{if(n.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`)};if(n.dryRun){n.body===void 0&&await a();let e=await u();l({command:`cf ai-search chat-completions`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/ai-search/namespaces/${n.namespace==null?`<namespace>`:encodeURIComponent(String(n.namespace))}/instances/${n[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,pathParams:{namespace:String(n.namespace??``),"instance-id":String(n[`instance-id`]??``)},bodyKind:`json`,body:n.body===void 0?c({ai_search_options:{cache:{cache_threshold:n[`ai-search-options-cache-cache-threshold`],enabled:n[`ai-search-options-cache-enabled`]},custom_metadata:i(n[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`),query_rewrite:{enabled:n[`ai-search-options-query-rewrite-enabled`],model:f(n[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:f(n[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:n[`ai-search-options-reranking-enabled`],match_threshold:n[`ai-search-options-reranking-match-threshold`],model:f(n[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{boost_by:o(n[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`),context_expansion:n[`ai-search-options-retrieval-context-expansion`],filters:i(n[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`),fusion_method:n[`ai-search-options-retrieval-fusion-method`],keyword_match_mode:n[`ai-search-options-retrieval-keyword-match-mode`],match_threshold:n[`ai-search-options-retrieval-match-threshold`],max_num_results:n[`ai-search-options-retrieval-max-num-results`],retrieval_type:n[`ai-search-options-retrieval-retrieval-type`],return_on_failure:n[`ai-search-options-retrieval-return-on-failure`]}},messages:o(n.messages,`messages`),model:f(n.model,`model`,`text`),stream:n.stream},[[`ai_search_options`,`custom_metadata`],[`ai_search_options`,`retrieval`,`filters`]]):s(n.body)});return}let p=n.body===void 0?void 0:s(n.body),g=await t(n),v=n.local?m:await d();if(n.accountId=v,n.body!==void 0){let t=p,r=await _(`Creating`,async()=>e(g,`POST`,`/accounts/${v}/ai-search/namespaces/${encodeURIComponent(String(n.namespace))}/instances/${encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,{body:t}));h(r,{successLabel:`Created`});return}await a();let y={};n[`ai-search-options-cache-cache-threshold`]!==void 0&&r(y,[`ai_search_options`,`cache`,`cache_threshold`],n[`ai-search-options-cache-cache-threshold`]),n[`ai-search-options-cache-enabled`]!==void 0&&r(y,[`ai_search_options`,`cache`,`enabled`],n[`ai-search-options-cache-enabled`]),n[`ai-search-options-custom-metadata`]!==void 0&&r(y,[`ai_search_options`,`custom_metadata`],i(n[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`)),n[`ai-search-options-query-rewrite-enabled`]!==void 0&&r(y,[`ai_search_options`,`query_rewrite`,`enabled`],n[`ai-search-options-query-rewrite-enabled`]),n[`ai-search-options-query-rewrite-model`]!==void 0&&r(y,[`ai_search_options`,`query_rewrite`,`model`],f(n[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`)),n[`ai-search-options-query-rewrite-rewrite-prompt`]!==void 0&&r(y,[`ai_search_options`,`query_rewrite`,`rewrite_prompt`],f(n[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)),n[`ai-search-options-reranking-enabled`]!==void 0&&r(y,[`ai_search_options`,`reranking`,`enabled`],n[`ai-search-options-reranking-enabled`]),n[`ai-search-options-reranking-match-threshold`]!==void 0&&r(y,[`ai_search_options`,`reranking`,`match_threshold`],n[`ai-search-options-reranking-match-threshold`]),n[`ai-search-options-reranking-model`]!==void 0&&r(y,[`ai_search_options`,`reranking`,`model`],f(n[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)),n[`ai-search-options-retrieval-boost-by`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`boost_by`],o(n[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`)),n[`ai-search-options-retrieval-context-expansion`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`context_expansion`],n[`ai-search-options-retrieval-context-expansion`]),n[`ai-search-options-retrieval-filters`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`filters`],i(n[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`)),n[`ai-search-options-retrieval-fusion-method`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`fusion_method`],n[`ai-search-options-retrieval-fusion-method`]),n[`ai-search-options-retrieval-keyword-match-mode`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`keyword_match_mode`],n[`ai-search-options-retrieval-keyword-match-mode`]),n[`ai-search-options-retrieval-match-threshold`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`match_threshold`],n[`ai-search-options-retrieval-match-threshold`]),n[`ai-search-options-retrieval-max-num-results`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`max_num_results`],n[`ai-search-options-retrieval-max-num-results`]),n[`ai-search-options-retrieval-retrieval-type`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`retrieval_type`],n[`ai-search-options-retrieval-retrieval-type`]),n[`ai-search-options-retrieval-return-on-failure`]!==void 0&&r(y,[`ai_search_options`,`retrieval`,`return_on_failure`],n[`ai-search-options-retrieval-return-on-failure`]),n.messages!==void 0&&r(y,[`messages`],o(n.messages,`messages`)),n.model!==void 0&&r(y,[`model`],f(n.model,`model`,`text`)),n.stream!==void 0&&r(y,[`stream`],n.stream);let b=await _(`Creating`,async()=>e(g,`POST`,`/accounts/${v}/ai-search/namespaces/${encodeURIComponent(String(n.namespace))}/instances/${encodeURIComponent(String(n[`instance-id`]))}/chat/completions`,{body:y}));h(b,{successLabel:`Created`})})};var S={method:`POST`,path:e=>n`/accounts/${e.account_id}/ai-search/namespaces/${e.namespace}/instances`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,503:`ServiceUnavailableError`}};function re(e){return e.usage(`$0 ai-search create <id>
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{i as n}from"./context-DZ_o-H15.mjs";import{t as r}from"./dry-run-B4_5Qb0J.mjs";import{t as i}from"./output-DcDP8hsi.mjs";import{t as a}from"./progress-CKu4TPPI.mjs";import{t as o}from"./run-DURbDvRl.mjs";import"./telemetry-D33WsYG8.mjs";import{o as s,r as c,t as l}from"./body-parser-DftnWjJP.mjs";import{n as u}from"./prompt-B4fCnTfF.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(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 p={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:f,handler:async e=>o({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`,body:`json`};function h(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 UTF-8 bytes. Text in any language is supported, including spaces, numbers, punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed. - 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. Shape: [{"label": string, "topic": string}].`}).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 g={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:h,handler:async e=>o({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({topics:s(e.topics,`topics`)}):c(e.body)});return}let o=e.body===void 0?void 0:c(e.body),d=await t(e),f=await n({zone:e.zone},d,{quiet:e.quiet});if(e.zoneId=f,!await u({force:!!e.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`}))return;if(e.body!==void 0){let e=o,t=await a(`Updating`,async()=>d.send(m,{body:e,zone_id:f}));i(t,{successLabel:`Updated`});return}let p=l({topics:s(e.topics,`topics`)}),h=await a(`Updating`,async()=>d.send(m,{body:p,zone_id:f}));i(h,{successLabel:`Updated`})})},_={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/settings`};function y(e){return e.usage(`$0 ai-security get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{t as n}from"./dry-run-B4_5Qb0J.mjs";import{a as r,t as i}from"./context-DZ_o-H15.mjs";import{t as a}from"./local-CLMvfqkt.mjs";import{t as o}from"./output-DcDP8hsi.mjs";import{t as s}from"./progress-CKu4TPPI.mjs";import{t as c}from"./run-DURbDvRl.mjs";import"./telemetry-D33WsYG8.mjs";import{a as l,i as u,n as d}from"./prompt-B4fCnTfF.mjs";import{o as f,r as p,t as m}from"./body-parser-DftnWjJP.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{n as g,t as _}from"./raw-fetch-DPl7eKQx.mjs";var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function y(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 b={command:`list`,describe:`Get Alert Types`,builder:y,handler:async e=>c({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();n({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let c=await t(e),l=e.local?a:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(v,{account_id:l}));o(u,{successLabel:`Loaded`})})},x={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ee={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/destinations/eligible`};function te(e){return e.usage(`$0 alerting destinations eligible get
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{t as n}from"./dry-run-B4_5Qb0J.mjs";import{a as r,i,t as a}from"./context-DZ_o-H15.mjs";import{t as o}from"./output-DcDP8hsi.mjs";import{t as s}from"./progress-CKu4TPPI.mjs";import"./telemetry-D33WsYG8.mjs";import{t as c}from"./run-DURbDvRl.mjs";import{o as l,r as u,t as d}from"./body-parser-DftnWjJP.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{t as p}from"./local-CLMvfqkt.mjs";import{a as m}from"./prompt-B4fCnTfF.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(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 _={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:g,handler:async e=>c({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){n({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 r=await t(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let c=await s(`Loading`,async()=>r.send(h,{zone_id:a}));o(c,{successLabel:`Loaded`})})},v={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency`,query:[`bins`]};function b(e){return e.usage(`$0 analytics latency get
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t}from"./auth-
|
|
2
|
+
import{i as e,n as t}from"./auth-Fl7walZt.mjs";import{t as n}from"./dry-run-B4_5Qb0J.mjs";import{a as r,t as i}from"./context-DZ_o-H15.mjs";import{n as a,t as o}from"./input-validation-D7z60HJH.mjs";import{t as s}from"./local-CLMvfqkt.mjs";import{t as c}from"./output-DcDP8hsi.mjs";import{t as l}from"./run-DURbDvRl.mjs";import{t as u}from"./progress-CKu4TPPI.mjs";import"./telemetry-D33WsYG8.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:`Plain-text request body (without JSON quotes)`}).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=>l({command:`analytics-engine sql query`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.body===void 0&&d.file===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);if(d.dryRun){let e=await r();n({command:`cf analytics-engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:d.file===void 0?d.body:{file:d.file}});return}let l=d.file===void 0?a(d.body,`body`,`binary`):void 0,f=await t(d),p=d.local?s:await i();if(d.accountId=p,d.file!==void 0){let t=o(d.file),n=await u(`Loading`,async()=>e(f,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));c(n,{successLabel:`Loaded`})}else if(d.body!==void 0){let t=l,n=await u(`Loading`,async()=>e(f,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));c(n,{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"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-Fl7walZt.mjs";import{o as r,r as i,t as a}from"./body-parser-DftnWjJP.mjs";import{a as o,i as s,t as c}from"./context-DZ_o-H15.mjs";import{t as l}from"./dry-run-B4_5Qb0J.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{t as d}from"./output-DcDP8hsi.mjs";import{t as f}from"./run-DURbDvRl.mjs";import{t as p}from"./progress-CKu4TPPI.mjs";import{a as m,i as h,n as g}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";import{t as _}from"./local-CLMvfqkt.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};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`]}).coerce(`kind`,e=>u(e,`kind`,`text`)).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 y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>f({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{let t=async()=>{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).`)};if(e.dryRun){e.body===void 0&&await t(),l({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?a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):i(e.body)});return}let r=e.body===void 0?void 0:i(e.body),o=await n(e),c=await s({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body!==void 0){let e=r,t=await p(`Creating`,async()=>o.send(v,{body:e,zone_id:c}));d(t,{successLabel:`Created`});return}await t();let f=a({kind:e.kind,name:u(e.name,`name`,`text`),source:u(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),g=await p(`Creating`,async()=>o.send(v,{body:f,zone_id:c}));d(g,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(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"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{t as n}from"./dry-run-B4_5Qb0J.mjs";import{a as r,i,t as a}from"./context-DZ_o-H15.mjs";import{t as o}from"./local-CLMvfqkt.mjs";import{t as s}from"./output-DcDP8hsi.mjs";import{t as c}from"./progress-CKu4TPPI.mjs";import{t as l}from"./run-DURbDvRl.mjs";import"./telemetry-D33WsYG8.mjs";import{r as u,t as d}from"./body-parser-DftnWjJP.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-B4fCnTfF.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
|
|
3
3
|
|
|
4
4
|
Returns the number of zones that have Argo Smart Routing enabled for the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`count-zones-enabled-for-account`,describe:`Get count of zones with Argo Smart Routing enabled for account`,builder:h,handler:async e=>l({command:`argo smart-routing count-zones-enabled-for-account`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();n({command:`cf argo smart-routing count-zones-enabled-for-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/argo/count_zones_enabled`,pathParams:{},bodyKind:`none`});return}let i=await t(e),l=e.local?o:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(m,{account_id:l}));s(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:()=>`/user/argo/count_zones_enabled`};function v(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-user
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-
|
|
2
|
+
import"./api-5qkbb5HW.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-Fl7walZt.mjs";import{r as n,t as r}from"./body-parser-DftnWjJP.mjs";import{a as i,t as a}from"./context-DZ_o-H15.mjs";import{t as o}from"./dry-run-B4_5Qb0J.mjs";import{n as s}from"./input-validation-D7z60HJH.mjs";import{t as c}from"./local-CLMvfqkt.mjs";import{t as l}from"./run-DURbDvRl.mjs";import{t as u}from"./output-DcDP8hsi.mjs";import{t as d}from"./progress-CKu4TPPI.mjs";import{a as f,n as p}from"./prompt-B4fCnTfF.mjs";import"./telemetry-D33WsYG8.mjs";import{n as m,t as h}from"./raw-fetch-DPl7eKQx.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(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`}).coerce(`jurisdiction`,e=>s(e,`jurisdiction`,`text`)).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 v={command:`create`,describe:`Create a namespace`,builder:_,handler:async e=>l({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{let l=async()=>{e.namespace===void 0&&(e.namespace=await f(`namespace`,`The namespace field`))};if(e.dryRun){e.body===void 0&&await l();let t=await i();o({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?r({jurisdiction:e.jurisdiction,namespace:s(e.namespace,`namespace`,`text`)}):n(e.body)});return}let p=e.body===void 0?void 0:n(e.body),m=await t(e),h=e.local?c:await a();if(e.accountId=h,e.body!==void 0){let e=p,t=await d(`Creating`,async()=>m.send(g,{body:e,account_id:h}));u(t,{successLabel:`Created`});return}await l();let _=r({jurisdiction:e.jurisdiction,namespace:s(e.namespace,`namespace`,`text`)}),v=await d(`Creating`,async()=>m.send(g,{body:_,account_id:h}));u(v,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces/${t.namespace}`,response:!1,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function b(e){return e.usage(`$0 artifacts namespaces delete <namespace>
|
|
5
5
|
|