cf 1.0.0-beta.20 → 1.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_meta/commands.json +5918 -5609
- package/dist/_meta/schemas.json +3525 -3510
- package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-GF9V-_qH.mjs} +1 -1
- package/dist/{access-CyRjTbhh.mjs → access-dWdATy_5.mjs} +1 -1
- package/dist/{accounts-BmF_YKvG.mjs → accounts-CNpiDgQ-.mjs} +51 -60
- package/dist/{acm-BcIFiAb8.mjs → acm-BXOuZNqO.mjs} +2 -3
- package/dist/{addressing-D6xVD7MM.mjs → addressing-BE4KpVHp.mjs} +12 -23
- package/dist/agent-context-Dtyy4aKL.mjs +2 -0
- package/dist/{agent-memory-Blldunhv.mjs → agent-memory-WOFBlqfc.mjs} +5 -9
- package/dist/{ai-CU8tdTfC.mjs → ai-2syYes5a.mjs} +2 -3
- package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-DBZnZtSH.mjs} +1 -1
- package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-BL8uRjav.mjs} +9 -15
- package/dist/{ai-search-DOiZEmn7.mjs → ai-search-xKyrECHJ.mjs} +6 -11
- package/dist/{ai-security-CioADDZi.mjs → ai-security-D-o76TBI.mjs} +3 -5
- package/dist/{alerting-BzN1N3Se.mjs → alerting-D0Hh3IxQ.mjs} +5 -9
- package/dist/{analytics-Cte-DrzH.mjs → analytics-BS_HDYYE.mjs} +1 -1
- package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-B8J0AASh.mjs} +1 -1
- package/dist/api-X3wKppsT.mjs +3 -0
- package/dist/{api-security-CCs0g510.mjs → api-security-Dm-_J64v.mjs} +9 -17
- package/dist/{argo-BHBFZnmO.mjs → argo-DLLQUUEp.mjs} +1 -1
- package/dist/args-BAOHroBC.mjs +2 -0
- package/dist/{artifacts-BzAwvrCD.mjs → artifacts-B-ILiKwb.mjs} +4 -7
- package/dist/{audit-logs-jWivEKCy.mjs → audit-logs-B6f7Yyqb.mjs} +1 -1
- package/dist/{auth-BUQscD5b.mjs → auth-BlWCu-YH.mjs} +1 -1
- package/dist/auth-C0-WtqBw.mjs +2 -0
- package/dist/auth-CENmPoCB.mjs +2 -0
- package/dist/{auth-token-T0aqYgl9.mjs → auth-token-7Gn0n5N_.mjs} +1 -1
- package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Bjb97Onj.mjs} +88 -88
- package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-C61jbxPf.mjs} +3 -5
- package/dist/{billing-Ce0WN0yw.mjs → billing-CpbtioM3.mjs} +2 -3
- package/dist/blocks-DDNRRYxu.mjs +5 -0
- package/dist/{bot-management-DskcSr4B.mjs → bot-management-iYrqBG7K.mjs} +1 -1
- package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-CiCwJ6Oe.mjs} +2 -3
- package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-D25yQ6cQ.mjs} +2 -3
- package/dist/{browser-run-CXdzSOHa.mjs → browser-run-CC3fAKEB.mjs} +3 -5
- package/dist/build-CovoviZW.mjs +2 -0
- package/dist/build-DKFvtSB_.mjs +2 -0
- package/dist/{builds-_1u5Nx6f.mjs → builds-AFdd5qia.mjs} +8 -15
- package/dist/cache-BI3Oyz-Z.mjs +36 -0
- package/dist/cf-fIBhEAxU.mjs +18 -0
- package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
- package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
- package/dist/{cli-DyhOdzMo.mjs → cli-Dji5-s1V.mjs} +3 -3
- package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-rknn53xw.mjs} +2 -3
- package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BTc3qgHz.mjs} +1 -1
- package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
- package/dist/cloudforce-one-BoFYTYsT.mjs +316 -0
- package/dist/{command-CHGc-KZ7.mjs → command-6vX_Ie2o.mjs} +1 -1
- package/dist/{command-BMYi_gS-.mjs → command-BDFf54JB.mjs} +1 -1
- package/dist/{command-DOpykk8X.mjs → command-B_C1I0aq.mjs} +1 -1
- package/dist/{command-CXzje7qc.mjs → command-BpmbvQqK.mjs} +1 -1
- package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
- package/dist/{command-DuLxEkGq.mjs → command-CKEmPXtc.mjs} +1 -1
- package/dist/{command-BRpBIju7.mjs → command-CiBygnsK.mjs} +1 -1
- package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
- package/dist/{command-BwgvUpNx.mjs → command-KuJJ2WEe.mjs} +1 -1
- package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
- package/dist/{command-CVoDyQnL.mjs → command-WlIhTGN6.mjs} +1 -1
- package/dist/{command-CPDQPdss.mjs → command-leDr72L4.mjs} +1 -1
- package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
- package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
- package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
- package/dist/{command-BwlIi3Bv.mjs → command-ukMoR-tT.mjs} +1 -1
- package/dist/{completions-DMwrvK_S.mjs → completions-DGe2alry.mjs} +1 -1
- package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-DZyCZta-.mjs} +1 -1
- package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-BP5GTJuQ.mjs} +1 -1
- package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-Q9y68rU7.mjs} +1 -1
- package/dist/{connectors-e_cpzDEm.mjs → connectors-C6wEHhyM.mjs} +2 -3
- package/dist/{containers-CEH15JUu.mjs → containers-DcR44W-a.mjs} +6 -9
- package/dist/containers-f3DbMCIO.mjs +380 -0
- package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-cQbQH1Ko.mjs} +3 -5
- package/dist/{context-Sgba0fZP.mjs → context-CSjTAJ8s.mjs} +2 -2
- package/dist/{cps-uDD0SSJ-.mjs → cps-aDZte41c.mjs} +1 -1
- package/dist/create-BtmuVqVL.mjs +2 -0
- package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cRaGDmR_.mjs} +1 -1
- package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-DoAFlLRn.mjs} +2 -3
- package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-5vHNAJo7.mjs} +4 -7
- package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-B7dTZfCW.mjs} +2 -3
- package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DsXlaGqQ.mjs} +2 -3
- package/dist/{d1-myRLEAGs.mjs → d1-DZ2JyfdZ.mjs} +4 -7
- package/dist/delegate-DzeuzE99.mjs +2 -0
- package/dist/delegate.mjs +1 -1
- package/dist/{deploy-BJqCpycz.mjs → deploy-CPFnQQOk.mjs} +1 -1
- package/dist/deploy-context-C_YUdUN-.mjs +56 -0
- package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-CKQOolPd.mjs} +1 -1
- package/dist/{dev-S1PJi83q.mjs → dev-rRWAGDV_.mjs} +2 -2
- package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-BIuJQRjU.mjs} +2 -3
- package/dist/dialog-D5lus4M4.mjs +2 -0
- package/dist/discover-6kAmVMPp.mjs +2 -0
- package/dist/discover-C06Syc2B.mjs +2 -0
- package/dist/dist-BtzWfAjU.mjs +453 -0
- package/dist/dls-BurMhzEE.mjs +16 -0
- package/dist/{dns-DhARjFQs.mjs → dns-Dl1VSmFf.mjs} +68 -68
- package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-BykvgGT1.mjs} +2 -3
- package/dist/{docs-CReGWDrw.mjs → docs-FllOac9a.mjs} +1 -1
- package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
- package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
- package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-BNCJA3NE.mjs} +1 -1
- package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-BYvR29qP.mjs} +1 -1
- package/dist/email-domains-C3jG7o39.mjs +12 -0
- package/dist/{email-routing-CYo4dp50.mjs → email-routing-BQ7b2KAy.mjs} +4 -7
- package/dist/{email-security-CNtWET2d.mjs → email-security-CsoNcUfp.mjs} +16 -31
- package/dist/{email-sending-BvagNLRr.mjs → email-sending-d_b9vyge.mjs} +5 -7
- package/dist/{error-sanitization-DWJ5ka7h.mjs → error-sanitization-ahuAGEjT.mjs} +1 -1
- package/dist/error-sanitization-rodO1WCL.mjs +2 -0
- package/dist/errors-DFSWbpd6.mjs +11 -0
- package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-Be4UTSz-.mjs} +2 -3
- package/dist/{firewall-DsgUY-Qv.mjs → firewall-DYGPUErP.mjs} +4 -7
- package/dist/flagship-HIikhoYo.mjs +24 -0
- package/dist/{fraud-24l8dKyk.mjs → fraud-DNAOkNU5.mjs} +1 -1
- package/dist/get-Be821dio.mjs +2 -0
- package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-DHvhuTYu.mjs} +1 -1
- package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
- package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BKtoWgF2.mjs} +3 -5
- package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-DQrmkuSh.mjs} +2 -3
- package/dist/{iam-ChldOMSL.mjs → iam-BEs1Geob.mjs} +5 -9
- package/dist/{images-Ba9tS5wT.mjs → images-D55kUS0m.mjs} +6 -11
- package/dist/index.mjs +1 -1
- package/dist/init-BTXSeUaj.mjs +43 -0
- package/dist/{intel-DbLRah4Y.mjs → intel-BDbanlya.mjs} +18 -21
- package/dist/interactive-CHcvofEp.mjs +2 -0
- package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
- package/dist/interactive-wQM7Blhm.mjs +2 -0
- package/dist/internal-Cj_Wo6sr.mjs +4 -0
- package/dist/{ips-BGyzyQLL.mjs → ips-CHrG3mwW.mjs} +1 -1
- package/dist/{k2-BVQ3MqEl.mjs → k2-CJzI3dVt.mjs} +2 -3
- package/dist/kv-BjfDMxOg.mjs +12 -0
- package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-DkI_21Dt.mjs} +1 -1
- package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BHe-erAg.mjs} +3 -5
- package/dist/live-DSwOLngp.mjs +4 -0
- package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-CWNEVfum.mjs} +5 -9
- package/dist/local-CAs8RWYW.mjs +2 -0
- package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
- package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
- package/dist/log-BWdaOGOW.mjs +66 -0
- package/dist/log-DZfik9Jk.mjs +2 -0
- package/dist/login-CJYJE6Ae.mjs +5 -0
- package/dist/login-D2Bf_HMY.mjs +2 -0
- package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BQhzhkBY.mjs} +3 -5
- package/dist/{logs-CZBMuuBC.mjs → logs-DndNcbrR.mjs} +2 -3
- package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-XmIKU6F1.mjs} +4 -7
- package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-BgPLcQzT.mjs} +3 -5
- package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-C2kLj1Hd.mjs} +36 -67
- package/dist/managed-defense-Bq63Exyv.mjs +18 -0
- package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Bz3Q6vSk.mjs} +2 -3
- package/dist/{mcp-bGKgzz6F.mjs → mcp-IiegTI5c.mjs} +3 -5
- package/dist/{mesh-DeQIll19.mjs → mesh-C7sj3FL4.mjs} +3 -5
- package/dist/{migrate-B6HsPeFh.mjs → migrate-D7pH9_Y8.mjs} +1 -1
- package/dist/{monetization-B-TIrpA5.mjs → monetization-DvfqZhGk.mjs} +3 -5
- package/dist/{network-BrjykU-I.mjs → network-CnqNYoOf.mjs} +5 -9
- package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-BXftLikd.mjs} +3 -5
- package/dist/{o11y-Ba0Fa98_.mjs → o11y-1Qku543b.mjs} +8 -15
- package/dist/{oauth-BH-uQd3C.mjs → oauth-B-SYl8nR.mjs} +1 -1
- package/dist/oauth-C6uYSFM5.mjs +4 -0
- package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-DXNO-K_e.mjs} +3 -5
- package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-WxoyDblU.mjs} +1 -1
- package/dist/{organization-DKPqwe3j.mjs → organization-HBQnzh8z.mjs} +3 -5
- package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DvS-ENN2.mjs} +1 -1
- package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-BnjX0dCp.mjs} +1 -1
- package/dist/output-BJEgbI0G.mjs +2 -0
- package/dist/package-DAB8HAGn.mjs +2 -0
- package/dist/{page-rules-CDWTYaf7.mjs → page-rules-CypVq1Wb.mjs} +2 -3
- package/dist/{pages-Dgtm51Uj.mjs → pages-BxLbPYIf.mjs} +7 -13
- package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-KidGhWnn.mjs} +3 -5
- package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DcsdwXr7.mjs} +2 -3
- package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CX7esgh3.mjs} +5 -9
- package/dist/{precursor-mO-Zua09.mjs → precursor-BzDcAmUT.mjs} +1 -1
- package/dist/previews-B7MZKZK6.mjs +6 -0
- package/dist/progress-BcjUdm_B.mjs +2 -0
- package/dist/prompt-BFRinxR0.mjs +4 -0
- package/dist/{queues-D8cAr2lB.mjs → queues-mSjNdJNl.mjs} +6 -11
- package/dist/{r2-CJiJbG6b.mjs → r2-ClBc0jT0.mjs} +17 -33
- package/dist/{radar-PUZ_PCZ8.mjs → radar-C9GwykGn.mjs} +1 -1
- package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BO0VqOVx.mjs} +1 -1
- package/dist/ready-DhdeN4ga.mjs +4 -0
- package/dist/{realtime-X6uQsldp.mjs → realtime-9V5zWcij.mjs} +73 -80
- package/dist/{registrar-BqZdUTss.mjs → registrar-DsI2A62h.mjs} +1 -1
- package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DcjFW26g.mjs} +1 -1
- package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
- package/dist/{reporting-DFVz98Xg.mjs → reporting-pAQ3jvEO.mjs} +1 -1
- package/dist/request-headers-DFPlTFRf.mjs +2 -0
- package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-CQqdbHj8.mjs} +1 -1
- package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BJraifhD.mjs} +5 -9
- package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
- package/dist/{rules-B663VetJ.mjs → rules-B_Mopjel.mjs} +3 -5
- package/dist/{rulesets-p4EijVr6.mjs → rulesets-DRV0HtYz.mjs} +4 -7
- package/dist/{rum-CHHXe4KK.mjs → rum-D5dYq2Uy.mjs} +3 -5
- package/dist/run--9dxcon4.mjs +2 -0
- package/dist/run-BUebYPOn.mjs +2 -0
- package/dist/sanitization-DkVWMHkc.mjs +2 -0
- package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
- package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-blYVIAUK.mjs} +1 -1
- package/dist/{scim-BMnUa4Oz.mjs → scim-C91WGj_g.mjs} +3 -5
- package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-D4Zr-fuz.mjs} +5 -7
- package/dist/{security-insights-C-AwDwXb.mjs → security-insights-DJWdVax5.mjs} +1 -1
- package/dist/{security-txt-CQMe8TD3.mjs → security-txt-B0NLFJNk.mjs} +2 -3
- package/dist/session-Bafy81hj.mjs +2 -0
- package/dist/shared-rCcn7D66.mjs +2 -0
- package/dist/signed-url-DBf_p7Wf.mjs +4 -0
- package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-BufLvdU3.mjs} +3 -5
- package/dist/{snippets-DGSBz4lg.mjs → snippets-DA2Gk50m.mjs} +3 -5
- package/dist/spawn-hrdbxnm1.mjs +5 -0
- package/dist/{spectrum-59LhYG1t.mjs → spectrum-DlI8qtVo.mjs} +2 -3
- package/dist/{speed-CMCfoG3s.mjs → speed-DNwm5gYl.mjs} +3 -5
- package/dist/{sql-MxWaTDdj.mjs → sql-aBDdRWdd.mjs} +1 -1
- package/dist/{src-J3Yss3VM.mjs → src-4-uZcDN_.mjs} +5 -5
- package/dist/src-COwxoocl.mjs +2 -0
- package/dist/{ssl-DTTFZR9x.mjs → ssl-DEDucWlo.mjs} +9 -17
- package/dist/startup-profile-CZYtQziF.mjs +2 -0
- package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
- package/dist/state-B3Uy1jPX.mjs +2 -0
- package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
- package/dist/{stream-gVG_7si-.mjs → stream-DGv9Bssl.mjs} +14 -27
- package/dist/tags-CNBA4Pf1.mjs +22 -0
- package/dist/telemetry-THz8wtoW.mjs +2 -0
- package/dist/telemetry-klBrZrC7.mjs +2 -0
- package/dist/{tenant-Qv_PC8gW.mjs → tenant-DVtqafWB.mjs} +1 -1
- package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-CtrqQc_i.mjs} +2 -3
- package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
- package/dist/{tunnels-CHNKPYRV.mjs → tunnels-Bc_r--ln.mjs} +4 -6
- package/dist/{turnstile-C60RxPo2.mjs → turnstile-Cr2cTE0C.mjs} +2 -3
- package/dist/ui-DvC7Qa0H.mjs +2 -0
- package/dist/{update-check-BHarE3V9.mjs → update-check-B5V9BBM7.mjs} +1 -1
- package/dist/update-check-C5bJ4-Ef.mjs +2 -0
- package/dist/update-check-worker.mjs +1 -1
- package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-D6r0sLRj.mjs} +2 -3
- package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-D4u7jbzf.mjs} +1 -1
- package/dist/{user-B4i7OIFK.mjs → user-DhWPKWo0.mjs} +8 -15
- package/dist/{vectorize-y3PCQDDf.mjs → vectorize-CB9IjpC3.mjs} +3 -5
- package/dist/version-Dp7G_dM6.mjs +2 -0
- package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-BYlwhzgD.mjs} +4 -7
- package/dist/{web-assets-BlqHZywy.mjs → web-assets-Nn2HArqh.mjs} +7 -13
- package/dist/{web3-DGAJMcLv.mjs → web3-DpJNkFNQ.mjs} +3 -5
- package/dist/workers-BkNt1wSN.mjs +39 -0
- package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-BL3dK2R3.mjs} +1 -1
- package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-CAQLG6dE.mjs} +5 -9
- package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-WnRec8oo.mjs} +2 -3
- package/dist/{workflows-BYhgJvyR.mjs → workflows-DpXBMizW.mjs} +5 -9
- package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-__jrVjrp.mjs} +74 -74
- package/dist/{zaraz-BW0kvRCK.mjs → zaraz-hWisKRaN.mjs} +1 -1
- package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-DiZhiSa4.mjs} +108 -182
- package/dist/{zone-B-YJG2UA.mjs → zone-D7b949er.mjs} +1 -1
- package/dist/{zones-B8pqPHu8.mjs → zones-giCZ0LO8.mjs} +49 -52
- package/package.json +12 -12
- package/dist/agent-context-DFEgYjEQ.mjs +0 -2
- package/dist/api-eMuS5GI1.mjs +0 -3
- package/dist/auth-CdEGiJ5Y.mjs +0 -2
- package/dist/auth-DF_ml7rE.mjs +0 -2
- package/dist/blocks-CFAm0Ma3.mjs +0 -5
- package/dist/build-BJHRK6qE.mjs +0 -2
- package/dist/build-D7s3a8zW.mjs +0 -2
- package/dist/cache-CDPUUv_O.mjs +0 -45
- package/dist/cf-3vj8dGYz.mjs +0 -18
- package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
- package/dist/cloudforce-one-Rl6nCCm0.mjs +0 -395
- package/dist/containers-CcZHRM9g.mjs +0 -376
- package/dist/create-OXylMu6m.mjs +0 -2
- package/dist/delegate-Tgfxa-MZ.mjs +0 -2
- package/dist/deploy-context-DIAl408H.mjs +0 -56
- package/dist/dialog-BnIgdgWi.mjs +0 -2
- package/dist/discover-DEjUARkU.mjs +0 -2
- package/dist/discover-P20XeGBF.mjs +0 -2
- package/dist/dist-CX6dDtzj.mjs +0 -449
- package/dist/dist-DAeCUX-u.mjs +0 -60
- package/dist/dls-CMTrCDjZ.mjs +0 -17
- package/dist/error-sanitization-Byb-_IS9.mjs +0 -2
- package/dist/errors-DpbAQQv8.mjs +0 -11
- package/dist/flagship-geGDHp9H.mjs +0 -28
- package/dist/get-iPUHxD1r.mjs +0 -2
- package/dist/init-C08hBFYn.mjs +0 -43
- package/dist/interactive-pjVqirHx.mjs +0 -2
- package/dist/kv-Cd8vbPWK.mjs +0 -15
- package/dist/local-CFZtOOxg.mjs +0 -2
- package/dist/log-CRbgNbDp.mjs +0 -3
- package/dist/login-C3Bahro9.mjs +0 -5
- package/dist/login-DvsRxI3E.mjs +0 -2
- package/dist/logo-matches-jeNkUxAq.mjs +0 -6
- package/dist/logos-pxN5aumY.mjs +0 -7
- package/dist/managed-defense-C_KLy4oB.mjs +0 -18
- package/dist/matches-DnjBnG-Y.mjs +0 -6
- package/dist/oauth-Cf3-g-kk.mjs +0 -4
- package/dist/output-CpiIVa7Q.mjs +0 -2
- package/dist/previews-oHUiD54J.mjs +0 -7
- package/dist/progress-B1dpmxCT.mjs +0 -2
- package/dist/prompt-Y5OBwDVE.mjs +0 -4
- package/dist/queries-CS0sYfte.mjs +0 -9
- package/dist/request-headers-Bg8_Idw3.mjs +0 -2
- package/dist/run-0EozpORq.mjs +0 -2
- package/dist/run-DKg70Sqf.mjs +0 -2
- package/dist/session-3DgztoAI.mjs +0 -2
- package/dist/shared-o8saqcSK.mjs +0 -2
- package/dist/source-AlTrHNem.mjs +0 -6
- package/dist/spawn-BZd__5sj.mjs +0 -10
- package/dist/startup-profile-DJsOtbVN.mjs +0 -2
- package/dist/state-Dvzl3aSj.mjs +0 -2
- package/dist/submit-wJYcQB8d.mjs +0 -4
- package/dist/tags-BwFKjaOr.mjs +0 -23
- package/dist/telemetry-BczXOpQn.mjs +0 -2
- package/dist/telemetry-CE15pfOU.mjs +0 -2
- package/dist/ui-CBhKUPys.mjs +0 -2
- package/dist/update-check-C3RhhXja.mjs +0 -2
- package/dist/url-info-By6VD20A.mjs +0 -4
- package/dist/version-izjB0Yrl.mjs +0 -2
- package/dist/workers-cCNBx0Bc.mjs +0 -43
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BlWCu-YH.mjs";import{a as i,t as a}from"./context-CSjTAJ8s.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-BcjUdm_B.mjs";import{t as l}from"./run--9dxcon4.mjs";import"./telemetry-THz8wtoW.mjs";import{n as u,r as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-BFRinxR0.mjs";var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces`,body:`json`};function ee(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces create
|
|
3
3
|
|
|
4
4
|
Create a new Workers for Platforms dispatch namespace.`).option(`name`,{type:`string`,description:`The name of the dispatch namespace.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`create`,describe:`Create Workers for Platforms Dispatch Namespace`,builder:ee,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({name:m(e.name,`name`,`text`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(y,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}let d=p({name:m(e.name,`name`,`text`)}),f=await c(`Creating`,async()=>n.send(y,{body:d,account_id:l}));o(f,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}`};function x(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces delete <dispatch-namespace>
|
|
5
5
|
|
|
6
|
-
Delete a Workers for Platforms dispatch namespace.`).positional(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const S={command:`delete <dispatch-namespace>`,describe:`Delete Workers for Platforms Dispatch Namespace`,builder:x,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms dispatch namespace.`})){
|
|
7
|
-
`);return}let u=await c(`Deleting`,async()=>n.send(b,{account_id:l,dispatch_namespace:e[`dispatch-namespace`]}));o(u,{successLabel:`Deleted`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}`};function w(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces get <dispatch-namespace>
|
|
6
|
+
Delete a Workers for Platforms dispatch namespace.`).positional(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const S={command:`delete <dispatch-namespace>`,describe:`Delete Workers for Platforms Dispatch Namespace`,builder:x,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms dispatch namespace.`}))return;let u=await c(`Deleting`,async()=>n.send(b,{account_id:l,dispatch_namespace:e[`dispatch-namespace`]}));o(u,{successLabel:`Deleted`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}`};function w(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces get <dispatch-namespace>
|
|
8
7
|
|
|
9
8
|
Get a Workers for Platforms dispatch namespace.`).positional(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <dispatch-namespace>`,describe:`Get Workers for Platforms Dispatch Namespace`,builder:w,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(C,{account_id:l,dispatch_namespace:e[`dispatch-namespace`]}));o(u,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces`};function D(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces list
|
|
10
9
|
|
|
@@ -12,8 +11,7 @@ Fetch a list of Workers for Platforms dispatch namespaces.`).option(`dry-run`,{t
|
|
|
12
11
|
|
|
13
12
|
Fetch bindings from a script uploaded to a Workers for Platforms dispatch namespace.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get <script-name>`,describe:`Get Workers for Platforms Script Bindings`,builder:A,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/bindings`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(k,{account_id:l,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(u,{successLabel:`Loaded`})})},M={command:`bindings`,describe:`Operations for dispatch-namespaces.scripts.bindings`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var N={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}`,query:[`force`]};function P(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts delete <script-name>
|
|
14
13
|
|
|
15
|
-
Delete a script from a Workers for Platforms dispatch namespace. This call has no response body on a successful delete.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the script even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted script are deleted even if other Workers reference them.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const F={command:`delete <script-name>`,describe:`Delete Workers for Platforms Script`,builder:P,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={force:e[`delete-with-references`]};if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms script.`})){
|
|
16
|
-
`);return}let d=await c(`Deleting`,async()=>l.send(N,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`],...n}));o(d,{successLabel:`Deleted`})})};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}`};function L(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts get <script-name>
|
|
14
|
+
Delete a script from a Workers for Platforms dispatch namespace. This call has no response body on a successful delete.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the script even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted script are deleted even if other Workers reference them.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const F={command:`delete <script-name>`,describe:`Delete Workers for Platforms Script`,builder:P,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={force:e[`delete-with-references`]};if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms script.`}))return;let d=await c(`Deleting`,async()=>l.send(N,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`],...n}));o(d,{successLabel:`Deleted`})})};var I={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}`};function L(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts get <script-name>
|
|
17
15
|
|
|
18
16
|
Fetch information about a script uploaded to a Workers for Platforms dispatch namespace.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`get <script-name>`,describe:`Get Workers for Platforms Script details`,builder:L,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(I,{account_id:l,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(u,{successLabel:`Loaded`})})};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts`,query:[`tags`]};function B(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts list
|
|
19
17
|
|
|
@@ -24,8 +22,7 @@ Create, update, or delete multiple secrets on a Workers for Platforms script in
|
|
|
24
22
|
- Set to \`null\` to delete.
|
|
25
23
|
- Omit to leave unchanged. Provide as a JSON object or @path/to/file.json.`}).option(`version-tags`,{type:`string`,description:`Optional version tags to apply to the new script version. Provide as a JSON object or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`JSON Merge Patch (RFC 7396) request body for bulk secret changes. `}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const U={command:`bulk`,describe:`Patch multiple Workers for Platforms script secrets`,builder:H,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts secrets bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.body===void 0&&e.file===void 0&&e.secrets===void 0&&e[`version-tags`]===void 0)throw Error(`--body is required unless at least one JSON map flag is provided (--secrets, --version-tags).`);if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts secrets bulk`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/secrets-bulk`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:e.file===void 0?`json`:`octet-stream`,body:e.file===void 0?e.body===void 0?p({secrets:d(e.secrets,`secrets`),version_tags:d(e[`version-tags`],`version-tags`)},[[`secrets`],[`version_tags`]]):u(e.body):{file:e.file}});return}let l=await r(e),m=e.local?t:await a();if(e.accountId=m,e.file){let t=h(e.file),r=await c(`Updating`,async()=>n(l,`PATCH`,`/accounts/${m}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/secrets-bulk`,{body:t,headers:{"Content-Type":`application/merge-patch+json`}}));o(r,{successLabel:`Updated`});return}if(e.body){let t=u(e.body),r=await c(`Updating`,async()=>n(l,`PATCH`,`/accounts/${m}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/secrets-bulk`,{body:t}));o(r,{successLabel:`Updated`});return}let g={};e.secrets!==void 0&&f(g,[`secrets`],d(e.secrets,`secrets`)),e[`version-tags`]!==void 0&&f(g,[`version_tags`],d(e[`version-tags`],`version-tags`));let _=await c(`Updating`,async()=>n(l,`PATCH`,`/accounts/${m}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/secrets-bulk`,{body:g}));o(_,{successLabel:`Updated`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/secrets/${t.secret_name}`,query:[`url_encoded`]};function W(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts secrets delete <secret-name>
|
|
26
24
|
|
|
27
|
-
Remove a secret from a Workers for Platforms script by creating a new version without that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.`).positional(`secret-name`,{type:`string`,description:`A JavaScript variable name for the secret binding.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`url-encoded`,{type:`boolean`,description:`Flag that indicates whether the secret name is URL encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const G={command:`delete <secret-name>`,describe:`Delete Workers for Platforms script secret`,builder:W,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts secrets delete`,classification:{safeFlags:[`url-encoded`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={url_encoded:e[`url-encoded`]};if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/secrets/${e[`secret-name`]==null?`<secret-name>`:encodeURIComponent(String(e[`secret-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``),"secret-name":String(e[`secret-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms script secret.`})){
|
|
28
|
-
`);return}let d=await c(`Deleting`,async()=>l.send(ne,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`],secret_name:e[`secret-name`],...n}));o(d,{successLabel:`Deleted`})})};var K={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/secrets/${t.secret_name}`,query:[`url_encoded`]};function q(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts secrets get <secret-name>
|
|
25
|
+
Remove a secret from a Workers for Platforms script by creating a new version without that secret. When changing more than one secret at a time, prefer the "Patch multiple script secrets" API instead of changing many secrets individually.`).positional(`secret-name`,{type:`string`,description:`A JavaScript variable name for the secret binding.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`url-encoded`,{type:`boolean`,description:`Flag that indicates whether the secret name is URL encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const G={command:`delete <secret-name>`,describe:`Delete Workers for Platforms script secret`,builder:W,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts secrets delete`,classification:{safeFlags:[`url-encoded`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={url_encoded:e[`url-encoded`]};if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/secrets/${e[`secret-name`]==null?`<secret-name>`:encodeURIComponent(String(e[`secret-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``),"secret-name":String(e[`secret-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,!await v({force:!!e.force,message:`This will permanently delete the Workers for Platforms script secret.`}))return;let d=await c(`Deleting`,async()=>l.send(ne,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`],secret_name:e[`secret-name`],...n}));o(d,{successLabel:`Deleted`})})};var K={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/secrets/${t.secret_name}`,query:[`url_encoded`]};function q(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts secrets get <secret-name>
|
|
29
26
|
|
|
30
27
|
Get a given secret binding (value omitted) on a script uploaded to a Workers for Platforms dispatch namespace.`).positional(`secret-name`,{type:`string`,description:`A JavaScript variable name for the secret binding.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`url-encoded`,{type:`boolean`,description:`Flag that indicates whether the secret name is URL encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const J={command:`get <secret-name>`,describe:`Get Workers for Platforms Script Secret`,builder:q,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts secrets get`,classification:{safeFlags:[`url-encoded`,`dry-run`]}},e,async()=>{let n={url_encoded:e[`url-encoded`]};if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts secrets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/secrets/${e[`secret-name`]==null?`<secret-name>`:encodeURIComponent(String(e[`secret-name`]))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``),"secret-name":String(e[`secret-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(K,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`],secret_name:e[`secret-name`],...n}));o(d,{successLabel:`Loaded`})})};var Y={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/secrets`};function X(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts secrets list
|
|
31
28
|
|
|
@@ -35,8 +32,7 @@ Add a secret to a Workers for Platforms script by creating a new version with th
|
|
|
35
32
|
|
|
36
33
|
Patch metadata for a script uploaded to a Workers for Platforms dispatch namespace, such as bindings.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`settings`,{type:`string`,description:`Script and version settings for Workers for Platforms namespace scripts. Same as script-and-version-settings-item but without annotations, which are not supported for namespace scripts. `})}const ce={command:`edit <script-name>`,describe:`Patch Workers for Platforms Script Settings`,builder:se,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts settings edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/settings`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`multipart`,body:{body:e.body,file:e.file,settings:e.settings}});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e.settings!==void 0){let t=new FormData;if(e.file){let n=h(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);if(e.settings!==void 0){let n=typeof e.settings==`string`?m(e.settings,`settings`,`text`):e.settings;t.append(`settings`,typeof n==`string`?n:JSON.stringify(n))}let r=await c(`Updating`,async()=>n(l,`PATCH`,`/accounts/${u}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/settings`,{body:t}));o(r,{successLabel:`Updated`});return}if(e.body){let t=m(e.body,`body`,`binary`),r=await c(`Updating`,async()=>n(l,`PATCH`,`/accounts/${u}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/settings`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));o(r,{successLabel:`Updated`});return}let d=await c(`Updating`,async()=>l.send(oe,{account_id:u,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(d,{successLabel:`Updated`})})};var le={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/settings`};function ue(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts settings get <script-name>
|
|
37
34
|
|
|
38
|
-
Get settings for a script uploaded to a Workers for Platforms dispatch namespace.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <script-name>`,describe:`Get Workers for Platforms Script Settings`,builder:ue,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/settings`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(le,{account_id:l,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(u,{successLabel:`Loaded`})})},fe={command:`settings`,describe:`Operations for dispatch-namespaces.scripts.settings`,builder:e=>e.command(ce).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(e){return e.usage("$0 workers-for-platforms dispatch-namespaces scripts tags delete <tag>\n\nDelete a tag from a script uploaded to a Workers for Platforms dispatch namespace. On `api-version` dates on or after `2026-10-01`, `tag` identifies a key and the operation returns the complete updated tag map. Deleting a missing key succeeds. Earlier versions retain the legacy string-tag behavior and return a null result.").positional(`tag`,{type:`string`,description:`Tag`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`api-version`,{type:`string`,description:"Requested API compatibility date in `YYYY-MM-DD[.release]` format (UTC). The optional release suffix contains lowercase letters; for example, `2026-10-01.epoch`.\n\nTyped Worker tag operations require a date on or after `2026-10-01`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const $={command:`delete <tag>`,describe:`Delete Workers for Platforms Script Tag`,builder:pe,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts tags delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`api-version`]!==void 0&&(l[`api-version`]=String(e[`api-version`])),e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts tags delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/tags/${e.tag==null?`<tag>`:encodeURIComponent(String(e.tag))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``),tag:String(e.tag??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,!await v({force:!!e.force,message:`This will delete the tag from the Workers for Platforms script.`})){
|
|
39
|
-
`);return}let f=await c(`Deleting`,async()=>n(u,`DELETE`,`/accounts/${d}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/tags/${encodeURIComponent(String(e.tag))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Deleted`})})};var me={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/tags`};function he(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts tags list
|
|
35
|
+
Get settings for a script uploaded to a Workers for Platforms dispatch namespace.`).positional(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const de={command:`get <script-name>`,describe:`Get Workers for Platforms Script Settings`,builder:ue,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/settings`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(le,{account_id:l,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(u,{successLabel:`Loaded`})})},fe={command:`settings`,describe:`Operations for dispatch-namespaces.scripts.settings`,builder:e=>e.command(ce).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function pe(e){return e.usage("$0 workers-for-platforms dispatch-namespaces scripts tags delete <tag>\n\nDelete a tag from a script uploaded to a Workers for Platforms dispatch namespace. On `api-version` dates on or after `2026-10-01`, `tag` identifies a key and the operation returns the complete updated tag map. Deleting a missing key succeeds. Earlier versions retain the legacy string-tag behavior and return a null result.").positional(`tag`,{type:`string`,description:`Tag`,demandOption:!0}).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`api-version`,{type:`string`,description:"Requested API compatibility date in `YYYY-MM-DD[.release]` format (UTC). The optional release suffix contains lowercase letters; for example, `2026-10-01.epoch`.\n\nTyped Worker tag operations require a date on or after `2026-10-01`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const $={command:`delete <tag>`,describe:`Delete Workers for Platforms Script Tag`,builder:pe,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts tags delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`api-version`]!==void 0&&(l[`api-version`]=String(e[`api-version`])),e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts tags delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/tags/${e.tag==null?`<tag>`:encodeURIComponent(String(e.tag))}`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``),tag:String(e.tag??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,!await v({force:!!e.force,message:`This will delete the tag from the Workers for Platforms script.`}))return;let f=await c(`Deleting`,async()=>n(u,`DELETE`,`/accounts/${d}/workers/dispatch/namespaces/${encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${encodeURIComponent(String(e[`script-name`]))}/tags/${encodeURIComponent(String(e.tag))}`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Deleted`})})};var me={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/dispatch/namespaces/${t.dispatch_namespace}/scripts/${t.script_name}/tags`};function he(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts tags list
|
|
40
36
|
|
|
41
37
|
Fetch tags from a script uploaded to a Workers for Platforms dispatch namespace.`).option(`dispatch-namespace`,{type:`string`,description:`Name of the Workers for Platforms dispatch namespace.`,demandOption:!0}).option(`script-name`,{type:`string`,description:`Name of the script.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ge={command:`list`,describe:`List Workers for Platforms Script Tags`,builder:he,handler:async e=>l({command:`workers-for-platforms dispatch-namespaces scripts tags list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workers-for-platforms dispatch-namespaces scripts tags list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/dispatch/namespaces/${e[`dispatch-namespace`]==null?`<dispatch-namespace>`:encodeURIComponent(String(e[`dispatch-namespace`]))}/scripts/${e[`script-name`]==null?`<script-name>`:encodeURIComponent(String(e[`script-name`]))}/tags`,pathParams:{"dispatch-namespace":String(e[`dispatch-namespace`]??``),"script-name":String(e[`script-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(me,{account_id:l,dispatch_namespace:e[`dispatch-namespace`],script_name:e[`script-name`]}));o(u,{successLabel:`Loaded`})})};function _e(e){return e.usage(`$0 workers-for-platforms dispatch-namespaces scripts tags update <script-name>
|
|
42
38
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BlWCu-YH.mjs";import{a as r,t as i}from"./context-CSjTAJ8s.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-BcjUdm_B.mjs";import{t as c}from"./run--9dxcon4.mjs";import"./telemetry-THz8wtoW.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-BFRinxR0.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,body:`json`};function g(e){return e.usage(`$0 workers-vpc services create
|
|
3
3
|
|
|
4
4
|
Creates a new Workers VPC connectivity service in the account.`).option(`host-ipv4`,{type:`string`,description:`The host.ipv4 field`}).option(`host-network-tunnel-id`,{type:`string`,description:`The host.network.tunnel_id field`}).option(`host-ipv6`,{type:`string`,description:`The host.ipv6 field`}).option(`host-hostname`,{type:`string`,description:`The host.hostname field`}).option(`host-resolver-network-resolver-ips`,{type:`string`,array:!0,description:`The host.resolver_network.resolver_ips field`}).option(`host-resolver-network-tunnel-id`,{type:`string`,description:`The host.resolver_network.tunnel_id field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tls-settings-cert-verification-mode`,{type:`string`,description:'TLS certificate verification mode for the connection to the origin.\n\n- `"verify_full"` — verify certificate chain and hostname (default)\n- `"verify_ca"` — verify certificate chain only, skip hostname check\n- `"disabled"` — do not verify the server certificate at all'}).option(`type`,{type:`string`,description:`The type field`,choices:[`tcp`,`http`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`http-port`,{type:`number`,description:`The http_port field`}).option(`https-port`,{type:`number`,description:`The https_port field`}).option(`app-protocol`,{type:`string`,description:`The app_protocol field`,choices:[`postgresql`,`mysql`]}).coerce(`app-protocol`,e=>d(e,`app-protocol`,`text`)).option(`tcp-port`,{type:`number`,description:`The tcp_port field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`host-ipv4`,[`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-ipv6`,[`host-ipv4`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-hostname`,[`host-ipv4`,`host-ipv6`]).conflicts(`host-resolver-network-resolver-ips`,[`host-ipv4`,`host-ipv6`]).conflicts(`http-port`,[`app-protocol`,`tcp-port`]).conflicts(`https-port`,[`app-protocol`,`tcp-port`]).conflicts(`app-protocol`,[`http-port`,`https-port`]).conflicts(`tcp-port`,[`http-port`,`https-port`]).check(e=>{if([`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`].some(t=>e[t]!==void 0)){let t=[`host-network-tunnel-id`,`host-resolver-network-tunnel-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --host-* flag is set`)}return!0}).check(e=>{if([`tls-settings-cert-verification-mode`].some(t=>e[t]!==void 0)){let t=[`tls-settings-cert-verification-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tls_settings-* flag is set`)}return!0})}const _={command:`create`,describe:`Create Workers VPC connectivity service`,builder:g,handler:async e=>c({command:`workers-vpc services create`,classification:{safeFlags:[`type`,`app-protocol`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`The name field`)),e.type===void 0&&(e.type=await p(`type`,`The type field`,[`tcp`,`http`]));let g=u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`,response:!1};function y(e){return e.usage(`$0 workers-vpc services delete <service-id>
|
|
5
5
|
|
|
6
|
-
Removes a single Workers VPC connectivity service by its ID. Any Worker bindings referencing this service will stop working.`).positional(`service-id`,{type:`string`,description:`Service ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <service-id>`,describe:`Delete Workers VPC connectivity service`,builder:y,handler:async e=>c({command:`workers-vpc services delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation permanently deletes a Workers VPC connectivity service.`})){
|
|
7
|
-
`);return}let u=await s(`Deleting`,async()=>c.send(v,{account_id:l,service_id:e[`service-id`]}));a(u,{successLabel:`Deleted`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`};function S(e){return e.usage(`$0 workers-vpc services get <service-id>
|
|
6
|
+
Removes a single Workers VPC connectivity service by its ID. Any Worker bindings referencing this service will stop working.`).positional(`service-id`,{type:`string`,description:`Service ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const b={command:`delete <service-id>`,describe:`Delete Workers VPC connectivity service`,builder:y,handler:async e=>c({command:`workers-vpc services delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation permanently deletes a Workers VPC connectivity service.`}))return;let u=await s(`Deleting`,async()=>c.send(v,{account_id:l,service_id:e[`service-id`]}));a(u,{successLabel:`Deleted`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`};function S(e){return e.usage(`$0 workers-vpc services get <service-id>
|
|
8
7
|
|
|
9
8
|
Fetches a single Workers VPC connectivity service by its ID.`).positional(`service-id`,{type:`string`,description:`Service ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <service-id>`,describe:`Get Workers VPC connectivity service`,builder:S,handler:async e=>c({command:`workers-vpc services get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(x,{account_id:l,service_id:e[`service-id`]}));a(u,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,query:[`type`,`page`,`per_page`]};function T(e){return e.usage(`$0 workers-vpc services list
|
|
10
9
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import"./api-
|
|
2
|
+
import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BlWCu-YH.mjs";import{a as i,t as a}from"./context-CSjTAJ8s.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-BcjUdm_B.mjs";import{t as l}from"./run--9dxcon4.mjs";import"./telemetry-THz8wtoW.mjs";import{n as u,o as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-BFRinxR0.mjs";import{n as _,t as ee}from"./raw-fetch-BO0VqOVx.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`}};function te(e){return e.usage(`$0 workflows concurrency create
|
|
3
3
|
|
|
4
4
|
Creates an account-scoped concurrency key. Limits count steps still in flight from a previously deleted key of the same name.`).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`name`,{type:`string`,description:`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`}).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:`create`,describe:`Create a concurrency key`,builder:te,handler:async e=>l({command:`workflows concurrency create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({limit:e.limit,name:p(e.name,`name`,`text`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(v,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await m(`name`,`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`));let d=f({limit:e.limit,name:p(e.name,`name`,`text`)}),h=await c(`Creating`,async()=>n.send(v,{body:d,account_id:l}));o(h,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function ie(e){return e.usage(`$0 workflows concurrency delete <key-id>
|
|
5
5
|
|
|
6
|
-
Deletes a concurrency key. Fails while any workflow’s latest version references the key. The key disappears immediately, but steps already holding it keep their slots until they finish and still count against a key re-created with the same name.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ae={command:`delete <key-id>`,describe:`Delete a concurrency key`,builder:ie,handler:async e=>l({command:`workflows concurrency delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force})){
|
|
7
|
-
`);return}let u=await c(`Deleting`,async()=>n.send(re,{account_id:l,key_id:e[`key-id`]}));o(u,{successLabel:`Deleted`})})};var y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function oe(e){return e.usage(`$0 workflows concurrency edit <key-id>
|
|
6
|
+
Deletes a concurrency key. Fails while any workflow’s latest version references the key. The key disappears immediately, but steps already holding it keep their slots until they finish and still count against a key re-created with the same name.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ae={command:`delete <key-id>`,describe:`Delete a concurrency key`,builder:ie,handler:async e=>l({command:`workflows concurrency delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force}))return;let u=await c(`Deleting`,async()=>n.send(re,{account_id:l,key_id:e[`key-id`]}));o(u,{successLabel:`Deleted`})})};var y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function oe(e){return e.usage(`$0 workflows concurrency edit <key-id>
|
|
8
7
|
|
|
9
8
|
Updates the limit of a concurrency key. Applies to instances that start after the change.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const b={command:`edit <key-id>`,describe:`Update a concurrency key`,builder:oe,handler:async e=>l({command:`workflows concurrency edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({limit:e.limit}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(y,{body:t,account_id:l,key_id:e[`key-id`]}));o(r,{successLabel:`Updated`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);let d=f({limit:e.limit}),p=await c(`Updating`,async()=>n.send(y,{body:d,account_id:l,key_id:e[`key-id`]}));o(p,{successLabel:`Updated`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function S(e){return e.usage(`$0 workflows concurrency get <key-id>
|
|
10
9
|
|
|
@@ -12,8 +11,7 @@ Retrieves a concurrency key and the workflows whose latest version references it
|
|
|
12
11
|
|
|
13
12
|
Lists the account-scoped concurrency keys.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List concurrency keys`,builder:T,handler:async e=>l({command:`workflows concurrency list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await i();s({command:`cf workflows concurrency list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workflows/concurrency`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(w,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},D={command:`concurrency`,describe:`Operations for concurrency`,builder:e=>e.command(ne).command(ae).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function k(e){return e.usage(`$0 workflows delete <workflow-name>
|
|
14
13
|
|
|
15
|
-
Deletes a Workflow. This only deletes the Workflow and does not delete or modify any Worker associated to this Workflow or bounded to it.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const A={command:`delete <workflow-name>`,describe:`Deletes a Workflow`,builder:k,handler:async e=>l({command:`workflows delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the Workflow.`})){
|
|
16
|
-
`);return}let u=await c(`Deleting`,async()=>n.send(O,{account_id:l,workflow_name:e[`workflow-name`]}));o(u,{successLabel:`Deleted`})})};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function M(e){return e.usage(`$0 workflows get <workflow-name>
|
|
14
|
+
Deletes a Workflow. This only deletes the Workflow and does not delete or modify any Worker associated to this Workflow or bounded to it.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const A={command:`delete <workflow-name>`,describe:`Deletes a Workflow`,builder:k,handler:async e=>l({command:`workflows delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force,message:`This operation permanently deletes the Workflow.`}))return;let u=await c(`Deleting`,async()=>n.send(O,{account_id:l,workflow_name:e[`workflow-name`]}));o(u,{successLabel:`Deleted`})})};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function M(e){return e.usage(`$0 workflows get <workflow-name>
|
|
17
15
|
|
|
18
16
|
Retrieves configuration and metadata for a specific workflow.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <workflow-name>`,describe:`Get Workflow details`,builder:M,handler:async e=>l({command:`workflows get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(j,{account_id:l,workflow_name:e[`workflow-name`]}));o(u,{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 workflows instances batch create <workflow-name>
|
|
19
17
|
|
|
@@ -21,8 +19,7 @@ Creates multiple workflow instances in a single batch operation.`).positional(`w
|
|
|
21
19
|
|
|
22
20
|
Creates a new instance of a workflow, starting its execution.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`instance-id`,{type:`string`,description:"The system reserves IDs that consist of the `cf_` prefix and exactly 64 lowercase hexadecimal characters."}).option(`instance-retention-error`,{type:`string`,description:`Specifies the duration in milliseconds or as a string like '5 minutes'. Accepts a JSON scalar or plain string, or @path/to/file.`}).option(`instance-retention-success`,{type:`string`,description:`Specifies the duration in milliseconds or as a string like '5 minutes'. Accepts a JSON scalar or plain string, or @path/to/file.`}).option(`location-hint`,{type:`string`,description:`The location_hint field`,choices:[`wnam`,`weur`,`enam`,`eeur`,`apac`,`apac-ne`,`apac-se`,`oc`,`sam`,`afr`,`me`]}).coerce(`location-hint`,e=>p(e,`location-hint`,`text`)).option(`params`,{type:`string`,description:`JSON-encoded event payload passed into the new instance.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const z={command:`create <workflow-name>`,describe:`Create a new workflow instance`,builder:R,handler:async e=>l({command:`workflows instances create`,classification:{safeFlags:[`location-hint`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`json`,body:e.body===void 0?f({instance_id:p(e[`instance-id`],`instance-id`,`text`),instance_retention:{error_retention:d(e[`instance-retention-error`],`instance-retention-error`),success_retention:d(e[`instance-retention-success`],`instance-retention-success`)},location_hint:e[`location-hint`],params:p(e.params,`params`,`json`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(L,{body:t,account_id:l,workflow_name:e[`workflow-name`]}));o(r,{successLabel:`Created`});return}let m=f({instance_id:p(e[`instance-id`],`instance-id`,`text`),instance_retention:{error_retention:d(e[`instance-retention-error`],`instance-retention-error`),success_retention:d(e[`instance-retention-success`],`instance-retention-success`)},location_hint:e[`location-hint`],params:p(e.params,`params`,`json`)}),h=await c(`Creating`,async()=>n.send(L,{body:m,account_id:l,workflow_name:e[`workflow-name`]}));o(h,{successLabel:`Created`})})};var B={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}`,errors:{404:`NotFoundError`}};function V(e){return e.usage(`$0 workflows instances delete <instance-id>
|
|
23
21
|
|
|
24
|
-
Deletes a workflow instance and its stored state.`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const H={command:`delete <instance-id>`,describe:`Delete a workflow instance`,builder:V,handler:async e=>l({command:`workflows instances delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force})){
|
|
25
|
-
`);return}let u=await c(`Deleting`,async()=>n.send(B,{account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/events/${t.event_type}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function W(e){return e.usage(`$0 workflows instances events send <event-type>
|
|
22
|
+
Deletes a workflow instance and its stored state.`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const H={command:`delete <instance-id>`,describe:`Delete a workflow instance`,builder:V,handler:async e=>l({command:`workflows instances delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force}))return;let u=await c(`Deleting`,async()=>n.send(B,{account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/events/${t.event_type}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function W(e){return e.usage(`$0 workflows instances events send <event-type>
|
|
26
23
|
|
|
27
24
|
Sends an event to a running workflow instance to trigger state transitions.`).positional(`event-type`,{type:`string`,description:`Event type`,demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`send <event-type>`,describe:`Send event to instance`,builder:W,handler:async e=>l({command:`workflows instances events send`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances events send`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/events/${e[`event-type`]==null?`<event-type>`:encodeURIComponent(String(e[`event-type`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``),"event-type":String(e[`event-type`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>n.send(U,{account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`],event_type:e[`event-type`]}));o(u,{successLabel:`Created`})})},K={command:`events`,describe:`Operations for instances.events`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}`,query:[`simple`,`order`],errors:{400:`BadRequestError`,404:`NotFoundError`}};function se(e){return e.usage(`$0 workflows instances get <instance-id>
|
|
28
25
|
|
|
@@ -36,8 +33,7 @@ Changes the execution status of a workflow instance (e.g., pause, resume, termin
|
|
|
36
33
|
|
|
37
34
|
Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>p(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>p(e,`from-type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const _e={command:`resume <instance-id>`,describe:`Change status of instance`,builder:ge,handler:async e=>l({command:`workflows instances resume`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances resume`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(X,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await h(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let d=f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),m=await c(`Updating`,async()=>n.send(X,{body:d,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(m,{successLabel:`Updated`})})};function ve(e){return e.usage("$0 workflows instances step get <instance-id>\n\nRetrieves the full, untruncated output for a specific step on a workflow instance. Returns a flat status-shaped JSON body with step `status` ('running' | 'waiting' | 'complete' | 'errored'), `error` (nullable), and `output` (the step value, or null while running/waiting/errored). When the step returned a ReadableStream from step.do, the response is served as 'application/octet-stream' with the raw bytes as the body instead of JSON. A `status='running'` response with non-null `error` indicates the step is currently retrying after a prior attempt failed.").positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`name`,{type:`string`,description:`Exact step name from the instance logs response, including the generated counter suffix.`,demandOption:!0}).option(`type`,{type:`string`,description:`Step type to disambiguate step.do and waitForEvent entries that share the same name.`,choices:[`step`,`waitForEvent`],demandOption:!0}).option(`attempt`,{type:`number`,description:`Specific attempt number to retrieve output or error for.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const ye={command:`get <instance-id>`,describe:`Get full step output from instance`,builder:ve,handler:async e=>l({command:`workflows instances step get`,classification:{safeFlags:[`type`,`dry-run`,`text`]}},e,async()=>{let n={name:e.name,type:e.type,attempt:e.attempt};if(e.dryRun){let t=await i();s({command:`cf workflows instances step get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/step`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},query:n,bodyKind:`none`});return}await r(e);let o=e.local?t:await a();e.accountId=o;let l=new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await c(`Loading`,async()=>ee(`/accounts/${o}/workflows/${encodeURIComponent(String(e[`workflow-name`]))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/step${l?`?`+l:``}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));_(e.text===!0?u.toString(`utf-8`):u)})},be={command:`step`,describe:`Operations for instances.step`,builder:e=>e.command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/status`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,409:`ConflictError`}};function xe(e){return e.usage(`$0 workflows instances terminate <instance-id>
|
|
38
35
|
|
|
39
|
-
Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>p(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>p(e,`from-type`,`text`)).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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const Se={command:`terminate <instance-id>`,describe:`Change status of instance`,builder:xe,handler:async e=>l({command:`workflows instances terminate`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances terminate`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force,message:`This operation terminates the running Workflow instance.`})){
|
|
40
|
-
`);return}if(e.body){let t=u(e.body),r=await c(`Deleting`,async()=>n.send(Z,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Deleted`});return}e.status===void 0&&(e.status=await h(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let d=f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),m=await c(`Deleting`,async()=>n.send(Z,{body:d,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(m,{successLabel:`Deleted`})})},Ce={command:`instances`,describe:`Workflow instance operations`,builder:e=>e.command(z).command(H).command(ce).command(de).command(pe).command(he).command(_e).command(Se).command(I).command(K).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var we={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows`,query:[`per_page`,`page`,`search`],errors:{400:`BadRequestError`}};function Te(e){return e.usage(`$0 workflows list
|
|
36
|
+
Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>p(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>p(e,`from-type`,`text`)).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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const Se={command:`terminate <instance-id>`,describe:`Change status of instance`,builder:xe,handler:async e=>l({command:`workflows instances terminate`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances terminate`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force,message:`This operation terminates the running Workflow instance.`}))return;if(e.body){let t=u(e.body),r=await c(`Deleting`,async()=>n.send(Z,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Deleted`});return}e.status===void 0&&(e.status=await h(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let d=f({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:p(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),m=await c(`Deleting`,async()=>n.send(Z,{body:d,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(m,{successLabel:`Deleted`})})},Ce={command:`instances`,describe:`Workflow instance operations`,builder:e=>e.command(z).command(H).command(ce).command(de).command(pe).command(he).command(_e).command(Se).command(I).command(K).command(be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var we={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows`,query:[`per_page`,`page`,`search`],errors:{400:`BadRequestError`}};function Te(e){return e.usage(`$0 workflows list
|
|
41
37
|
|
|
42
38
|
Lists all workflows configured for the account.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`search`,{type:`string`,description:"Allows filtering workflows` name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ee={command:`list`,describe:`List all Workflows`,builder:Te,handler:async e=>l({command:`workflows list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page,search:e.search};if(e.dryRun){let e=await i();s({command:`cf workflows list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workflows`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(we,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})};var Q={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/settings`,body:`json`,errors:{400:`BadRequestError`}};function De(e){return e.usage(`$0 workflows settings edit
|
|
43
39
|
|