cf 1.0.0-beta.24 → 1.0.0-beta.26

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.
Files changed (243) hide show
  1. package/dist/_meta/commands.json +497 -145
  2. package/dist/_meta/hand-written-commands.json +60 -1
  3. package/dist/_meta/schemas.json +254 -2
  4. package/dist/{abuse-reports-CTOO4FJ4.mjs → abuse-reports-zPrsxbRz.mjs} +3 -3
  5. package/dist/{access-DFGLlXpy.mjs → access-DCOOmDC5.mjs} +1 -1
  6. package/dist/{accounts-C-wpV8Az.mjs → accounts-HC6XuIwP.mjs} +36 -34
  7. package/dist/{acm-thIt17mv.mjs → acm-DYgr6SAR.mjs} +1 -1
  8. package/dist/{addressing-D7VI7-Oi.mjs → addressing-BS66pJ_a.mjs} +1 -1
  9. package/dist/{agent-memory-duLTH8pl.mjs → agent-memory-BbXdueL0.mjs} +1 -1
  10. package/dist/{ai-ctIjDCq0.mjs → ai-BiIKznNv.mjs} +3 -3
  11. package/dist/{ai-audit-CjhuS21p.mjs → ai-audit-DI4Rw2wl.mjs} +1 -1
  12. package/dist/{ai-gateway-B1TIw7wl.mjs → ai-gateway-rlYCbts5.mjs} +3 -3
  13. package/dist/{ai-search-DUQBnOWH.mjs → ai-search-QOenIzDL.mjs} +1 -1
  14. package/dist/{ai-security-bdABwEIR.mjs → ai-security-BUwS6kVh.mjs} +2 -2
  15. package/dist/{alerting-I_KErGZy.mjs → alerting-BSzuvFk1.mjs} +1 -1
  16. package/dist/{analytics-DGxcDAWu.mjs → analytics-CQ-Yt1mm.mjs} +1 -1
  17. package/dist/{analytics-engine-DNNokw1O.mjs → analytics-engine-CdrY5-95.mjs} +1 -1
  18. package/dist/{api-security-CsPrJ-Xw.mjs → api-security-BBxEJjGv.mjs} +3 -3
  19. package/dist/{argo-BhNmRYk5.mjs → argo-BiefH8wc.mjs} +1 -1
  20. package/dist/{artifacts-DRo8KadB.mjs → artifacts-B9g9aPrk.mjs} +3 -3
  21. package/dist/{audit-logs-CzxDyTbx.mjs → audit-logs-BhJs-OS2.mjs} +1 -1
  22. package/dist/auth-C50SqX9F.mjs +7 -0
  23. package/dist/auth-Czzy5Rs_.mjs +2 -0
  24. package/dist/{auth-pbuzyz4C.mjs → auth-D5Yj9eYU.mjs} +1 -1
  25. package/dist/{auth-token-BcIV7k1B.mjs → auth-token-DvNoIhRL.mjs} +1 -1
  26. package/dist/{autoconfig-CXcy-e1R.mjs → autoconfig-ldsgXxa6.mjs} +75 -65
  27. package/dist/{basin-catalog-DoTn8zvi.mjs → basin-catalog-CtKFiH-n.mjs} +9 -9
  28. package/dist/{billing-CMbLzZV0.mjs → billing-BrLJqlOf.mjs} +1 -1
  29. package/dist/{blocks-DmOx-xEv.mjs → blocks-DnNrvi8s.mjs} +1 -1
  30. package/dist/{bot-management-CJs5WwAW.mjs → bot-management-BSBVuKc0.mjs} +1 -1
  31. package/dist/{botnet-feed-DeF7P5lI.mjs → botnet-feed-lD9s2oLA.mjs} +1 -1
  32. package/dist/{brand-protection-dx_B8OWa.mjs → brand-protection-Byoa1hvj.mjs} +2 -2
  33. package/dist/{browser-run-fRn9ItYu.mjs → browser-run-BSVANGzU.mjs} +1 -1
  34. package/dist/build-CPKxZ3kL.mjs +2 -0
  35. package/dist/{build-CCepbVuJ.mjs → build-Dwd1_7o0.mjs} +1 -1
  36. package/dist/{builds-5YhQ_zIm.mjs → builds-D3mAH87h.mjs} +1 -1
  37. package/dist/{cache-WQyxt7O5.mjs → cache-0xCdyNg9.mjs} +1 -1
  38. package/dist/cf-CpC4giTf.mjs +18 -0
  39. package/dist/{chunk-3PJ54H4K-C8sxQzhB.mjs → chunk-3PJ54H4K-CY8EY_n2.mjs} +1 -1
  40. package/dist/{chunk-2HLTAS5V-B92NbX1j.mjs → chunk-AAQI36FL-e6E5HW1g.mjs} +1 -1
  41. package/dist/{chunk-DSGVRFIS-CP2xC0bc.mjs → chunk-DSGVRFIS-vdfri8fR.mjs} +1 -1
  42. package/dist/{cli-CgkhNdjb.mjs → cli-Cm4Twas4.mjs} +3 -3
  43. package/dist/{client-side-security-COuAb7BM.mjs → client-side-security-BRn7KBpu.mjs} +1 -1
  44. package/dist/{cloud-connector-D1gjX0Dx.mjs → cloud-connector-DqkOIRDr.mjs} +1 -1
  45. package/dist/{cloudflared-FEg1GxHT.mjs → cloudflared-DDp_8PTK.mjs} +1 -1
  46. package/dist/{cloudforce-one-BmXgL6kB.mjs → cloudforce-one-B9k8vhso.mjs} +58 -58
  47. package/dist/{command-CA6yIa17.mjs → command--Y_QAiU2.mjs} +1 -1
  48. package/dist/{command-hh8rEbH4.mjs → command-B-_ba4rQ.mjs} +1 -1
  49. package/dist/{command-Dsi4sM8D.mjs → command-BKNQsGqu.mjs} +1 -1
  50. package/dist/{command-BG9JYUHo.mjs → command-BV8-laJK.mjs} +1 -1
  51. package/dist/{command-BaIY4UuC.mjs → command-BVz2aES3.mjs} +1 -1
  52. package/dist/{command-D3E7d8E7.mjs → command-BsCFkho-.mjs} +1 -1
  53. package/dist/{command-8hWrCCy6.mjs → command-CN8NFLs2.mjs} +1 -1
  54. package/dist/{command-B_Fxpr5v.mjs → command-CQMRxiDz.mjs} +1 -1
  55. package/dist/{command-DrdxR1tJ.mjs → command-CfOqnqlN.mjs} +1 -1
  56. package/dist/{command-WyIFe__L.mjs → command-DlI7Z_7j.mjs} +1 -1
  57. package/dist/{command-BJFKdqVc.mjs → command-Dn39o5xQ.mjs} +1 -1
  58. package/dist/{command-BfoLlrr1.mjs → command-DsOv6z9q.mjs} +1 -1
  59. package/dist/{command-qhfkede5.mjs → command-QHmV62Fv.mjs} +1 -1
  60. package/dist/{command-BXPssGfS.mjs → command-yOG9VUtq.mjs} +1 -1
  61. package/dist/{completions-BshG3sAO.mjs → completions-BA52jTea.mjs} +1 -1
  62. package/dist/{connector-interrupts-pNU4QmsW.mjs → connector-interrupts-zL7pxPn6.mjs} +1 -1
  63. package/dist/{connector-telemetry-events-BpRPtTdD.mjs → connector-telemetry-events-PL4Fqqvu.mjs} +1 -1
  64. package/dist/{connector-telemetry-snapshots-pNfynA2r.mjs → connector-telemetry-snapshots-DyBSuEFB.mjs} +1 -1
  65. package/dist/{connectors-CiWTAGHh.mjs → connectors-D8H6rQz9.mjs} +1 -1
  66. package/dist/{containers-IBtaInTL.mjs → containers-D4sa-Eoy.mjs} +193 -193
  67. package/dist/{containers-Dvq0NjQg.mjs → containers-Db-eWudu.mjs} +2 -2
  68. package/dist/{content-scan-B69hOyhb.mjs → content-scan-DUVq09i8.mjs} +1 -1
  69. package/dist/{context-BryBS1zQ.mjs → context-BvLXzoMs.mjs} +1 -1
  70. package/dist/{cps-DLgWaZMT.mjs → cps-CqaRliZZ.mjs} +1 -1
  71. package/dist/{csam-scanner-D1928b81.mjs → csam-scanner-DsXvOOsZ.mjs} +1 -1
  72. package/dist/{custom-csrs-DrxWBjmx.mjs → custom-csrs-Dl_daAbX.mjs} +1 -1
  73. package/dist/{custom-hostnames-BP1pxK1F.mjs → custom-hostnames-Cj_csfo_.mjs} +1 -1
  74. package/dist/{custom-nameservers-5DJLY479.mjs → custom-nameservers-Bw2P7F_W.mjs} +1 -1
  75. package/dist/{custom-pages-CNAsOY9a.mjs → custom-pages-CJ7ecSX6.mjs} +1 -1
  76. package/dist/{d1-Dge80Qgq.mjs → d1-BsWI546w.mjs} +2 -2
  77. package/dist/{delegate-CBKb0nov.mjs → delegate-CMfEjvHn.mjs} +1 -1
  78. package/dist/delegate.mjs +1 -1
  79. package/dist/{deploy-CR5b7uhB.mjs → deploy-DDbmxkiX.mjs} +1 -1
  80. package/dist/{deploy-context-D51tgJGI.mjs → deploy-context-DsEVu7bf.mjs} +1 -1
  81. package/dist/{deploy-input-em95cFc7.mjs → deploy-input-BA_3Q2Xu.mjs} +1 -1
  82. package/dist/{dev-BczBHbpj.mjs → dev-BS156bim.mjs} +1 -1
  83. package/dist/{diagnostics-BKKinCge.mjs → diagnostics-BmkQnSEb.mjs} +1 -1
  84. package/dist/{dist-D5YYi2LO.mjs → dist-DehXZozc.mjs} +4 -4
  85. package/dist/{dls-DU4HnxED.mjs → dls-DciZC_gQ.mjs} +1 -1
  86. package/dist/{dns-BzdH3geY.mjs → dns-C2YPspGN.mjs} +60 -58
  87. package/dist/{dns-firewall-puq_86Wd.mjs → dns-firewall-CRfde07f.mjs} +1 -1
  88. package/dist/{docs-AWb7X2VX.mjs → docs-CYjyBA8q.mjs} +1 -1
  89. package/dist/{dotenv-qsoPELMm.mjs → dotenv-DKRemNCH.mjs} +1 -1
  90. package/dist/{durable-objects-Dg6XPcsB.mjs → durable-objects-DcI97y4p.mjs} +1 -1
  91. package/dist/{email-auth-DXR0NU9R.mjs → email-auth-CMCQAu99.mjs} +1 -1
  92. package/dist/{email-domains-B00mAtjT.mjs → email-domains-1Nx60ETD.mjs} +1 -1
  93. package/dist/{email-routing-Cm19q9hA.mjs → email-routing-7p9dr5Ue.mjs} +1 -1
  94. package/dist/{email-security-CFKcS-DM.mjs → email-security-Bu0fAYh-.mjs} +2 -2
  95. package/dist/{email-sending-B3xSoKcC.mjs → email-sending-OpMZNaHZ.mjs} +1 -1
  96. package/dist/error-sanitization-B025CygB.mjs +2 -0
  97. package/dist/{error-sanitization-ahuAGEjT.mjs → error-sanitization-DG8WSzHe.mjs} +1 -1
  98. package/dist/{errors-CIQDUrWg.mjs → errors-C5RGao2J.mjs} +1 -1
  99. package/dist/{field-extractors-Csz8QknP.mjs → field-extractors-BfsNjd0e.mjs} +1 -1
  100. package/dist/{firewall-C8FW0Nb2.mjs → firewall-CJ-VIOk1.mjs} +22 -16
  101. package/dist/{flagship-v-bGZ_U-.mjs → flagship-C5PTR1ND.mjs} +1 -1
  102. package/dist/{fraud-VvfL2I5a.mjs → fraud-B7hwBheX.mjs} +1 -1
  103. package/dist/{google-tag-gateway-DF6fS2MQ.mjs → google-tag-gateway-D7iFDVEa.mjs} +1 -1
  104. package/dist/{healthchecks-D3p3E4WL.mjs → healthchecks-B4jTcKV7.mjs} +1 -1
  105. package/dist/{hyperdrive-DopYL1dK.mjs → hyperdrive-1432DM-p.mjs} +1 -1
  106. package/dist/{iam-cIfyshlf.mjs → iam-DuZenYtc.mjs} +1 -1
  107. package/dist/{images-BR5fP_6r.mjs → images-Ttea4khD.mjs} +1 -1
  108. package/dist/index.mjs +1 -1
  109. package/dist/{init-JXRQoqGP.mjs → init-BeYrAg7Q.mjs} +1 -1
  110. package/dist/{intel-BvNrrM7V.mjs → intel-CJznBf5n.mjs} +2 -2
  111. package/dist/{interactive-DOWEcR6_.mjs → interactive-DsU8VDvK.mjs} +1 -1
  112. package/dist/{internal-DcnAVlpA.mjs → internal-DOho_iA0.mjs} +1 -1
  113. package/dist/{ips-BUEIuhhw.mjs → ips-BgNoRwFN.mjs} +1 -1
  114. package/dist/{k2-Dm4LvAhL.mjs → k2-Cj1ORHul.mjs} +1 -1
  115. package/dist/{kv-7oD-JIak.mjs → kv-CTyuvcAz.mjs} +1 -1
  116. package/dist/{lazy-command-CD1nuS38.mjs → lazy-command-DeTzOWvU.mjs} +1 -1
  117. package/dist/{leaked-credential-checks-B6s8hUYU.mjs → leaked-credential-checks-21Wc7OqL.mjs} +1 -1
  118. package/dist/list-4MfEFwJN.mjs +2 -0
  119. package/dist/list-ByCv9-Fl.mjs +2 -0
  120. package/dist/{live-CHP4AXSN.mjs → live-BfrWKfq8.mjs} +1 -1
  121. package/dist/{load-balancers-B_yvINGW.mjs → load-balancers-DMTsh-9q.mjs} +1 -1
  122. package/dist/local-CWTti4ot.mjs +2 -0
  123. package/dist/{local-CIeKNHSz.mjs → local-CvzO-cQH.mjs} +1 -1
  124. package/dist/{local-runtime-DOSBgJlo.mjs → local-runtime-DOpR_Tnc.mjs} +1 -1
  125. package/dist/{login-h8vuvNN3.mjs → login-CVWkMh1L.mjs} +2 -2
  126. package/dist/login-Djz5mvHJ.mjs +2 -0
  127. package/dist/{logpush-B70rNMOP.mjs → logpush-OMhp7VgE.mjs} +2 -2
  128. package/dist/{logs-DqmqCNqQ.mjs → logs-BSyyNwso.mjs} +1 -1
  129. package/dist/{magic-cloud-networking-CurtlBvl.mjs → magic-cloud-networking-DD29yMnE.mjs} +3 -3
  130. package/dist/{magic-network-monitoring-OzpX7MfI.mjs → magic-network-monitoring-DRRvSrDP.mjs} +1 -1
  131. package/dist/{magic-transit-Ca_CROhr.mjs → magic-transit-BhP424T-.mjs} +1 -1
  132. package/dist/{managed-defense-BRxv0mgy.mjs → managed-defense-6l_B3hn_.mjs} +1 -1
  133. package/dist/{managed-transforms-C7YLIPdN.mjs → managed-transforms-D7FMBsnq.mjs} +1 -1
  134. package/dist/{mcp-B_StIx94.mjs → mcp-BUOfMkBP.mjs} +1 -1
  135. package/dist/{mesh-YW-p6Tkx.mjs → mesh-B1RrhAT1.mjs} +1 -1
  136. package/dist/{migrate-CrBgU7Xm.mjs → migrate-BTU8AvlP.mjs} +1 -1
  137. package/dist/{monetization-rMP8HK_4.mjs → monetization-Da3ooFLC.mjs} +1 -1
  138. package/dist/{network-D9Do7C-u.mjs → network-CjhSzhMm.mjs} +2 -2
  139. package/dist/{network-interconnects-DYMhB3TR.mjs → network-interconnects-DEQD6GM8.mjs} +1 -1
  140. package/dist/{o11y-HT9_9NUF.mjs → o11y-DeNxXxcp.mjs} +1 -1
  141. package/dist/{oauth-D6uh5ZdS.mjs → oauth-DdXkpU44.mjs} +1 -1
  142. package/dist/{oauth-DetIFT59.mjs → oauth-Dnog5v-Q.mjs} +2 -2
  143. package/dist/{oauth-clients-B_BJco0Z.mjs → oauth-clients-UnbMcHkx.mjs} +1 -1
  144. package/dist/oauth-scopes-DbtnZVO4.mjs +4 -0
  145. package/dist/{organization-DhxMPdqU.mjs → organization-IsxVyWol.mjs} +4 -4
  146. package/dist/organizations-p8Mgo8A7.mjs +4 -0
  147. package/dist/{origin-post-quantum-encryption-CPZQGLmW.mjs → origin-post-quantum-encryption-Bwysyttf.mjs} +1 -1
  148. package/dist/package-BOE_De2L.mjs +2 -0
  149. package/dist/{page-rules-0nDfdFWr.mjs → page-rules-D2eFbKWb.mjs} +1 -1
  150. package/dist/{pages-Br-w5HLL.mjs → pages-DYZDvWK6.mjs} +2 -2
  151. package/dist/{pay-per-crawl-Di6UpJoo.mjs → pay-per-crawl-CgPFv5HT.mjs} +1 -1
  152. package/dist/{pay-per-use-Bm7Nxf6s.mjs → pay-per-use-BIQrsrTy.mjs} +1 -1
  153. package/dist/{pipelines-BRVI3bV9.mjs → pipelines-D6pkhlpm.mjs} +1 -1
  154. package/dist/{precursor-DyrQWdO5.mjs → precursor-B35P8h6h.mjs} +1 -1
  155. package/dist/{previews-rpfwcJzi.mjs → previews-B1mqjXaJ.mjs} +1 -1
  156. package/dist/{progress-C_yVLVcl.mjs → progress-B-CVX0kn.mjs} +1 -1
  157. package/dist/{prompt-kxvGZ6nF.mjs → prompt-DJF_Rs5S.mjs} +1 -1
  158. package/dist/{queues-BGV3aC26.mjs → queues-DaqLO-UO.mjs} +1 -1
  159. package/dist/{r2-CWMqr3JJ.mjs → r2-DDIU9JN3.mjs} +1 -1
  160. package/dist/radar-D59qCgld.mjs +300 -0
  161. package/dist/{raw-fetch-C_hWBr7n.mjs → raw-fetch-BrOxDN9k.mjs} +1 -1
  162. package/dist/{ready-BXz5amSL.mjs → ready-DgE08svD.mjs} +1 -1
  163. package/dist/{realtime-9jG5GaNK.mjs → realtime-DWjdrDzv.mjs} +2 -2
  164. package/dist/{registrar-sandbox-D9ldxGPo.mjs → registrar-sandbox-uzs3eOKk.mjs} +2 -2
  165. package/dist/{registrar-C-2I1SJh.mjs → registrar-uYOU1U27.mjs} +10 -10
  166. package/dist/{reporting-Bk3dc6Gi.mjs → reporting-Dx2YTick.mjs} +1 -1
  167. package/dist/{request-headers-B5Rjq7Ic.mjs → request-headers-DHzBX7dQ.mjs} +1 -1
  168. package/dist/{request-tracers-H-iRAUdG.mjs → request-tracers-B49cBKkj.mjs} +1 -1
  169. package/dist/{resource-sharing-A6ITunsT.mjs → resource-sharing-CIsLVAcK.mjs} +2 -2
  170. package/dist/{rules-BntvQdnS.mjs → rules-CjgLSlUC.mjs} +1 -1
  171. package/dist/{rulesets-DKz_iYU_.mjs → rulesets-C7_aZA7m.mjs} +1 -1
  172. package/dist/{rum-D9zpcNqT.mjs → rum-vPEpMS_h.mjs} +1 -1
  173. package/dist/{run-BlSXngtI.mjs → run-BZ6Fj3jQ.mjs} +1 -1
  174. package/dist/run-D4-K_cbQ.mjs +2 -0
  175. package/dist/schema-cache-C_rvto6Y.mjs +3 -0
  176. package/dist/schema-flags-Cr6kleor.mjs +4 -0
  177. package/dist/{scim-DVhxKKpH.mjs → scim-BA7XbsSu.mjs} +1 -1
  178. package/dist/{secrets-store-3mxJrDWJ.mjs → secrets-store-MEUNt1Ph.mjs} +2 -2
  179. package/dist/{security-insights-BDLWuG0E.mjs → security-insights-ZKtey62s.mjs} +5 -5
  180. package/dist/{security-txt-COzdrpdW.mjs → security-txt-DikhnR2L.mjs} +1 -1
  181. package/dist/{session-X3xaW70I.mjs → session-BOnam-Wv.mjs} +1 -1
  182. package/dist/{shared-foRpbmSV.mjs → shared-DmmWSObC.mjs} +1 -1
  183. package/dist/{signed-url-Dgi1p-Qi.mjs → signed-url-C-24KbWB.mjs} +1 -1
  184. package/dist/{smart-shield-DSDA5bZt.mjs → smart-shield-DPqLMz7M.mjs} +1 -1
  185. package/dist/{snippets-myowgDLd.mjs → snippets-Bi3Uq1DF.mjs} +1 -1
  186. package/dist/{spawn-C8D5pzxJ.mjs → spawn-C3hzWVrJ.mjs} +1 -1
  187. package/dist/{spectrum-CB-NzbZ7.mjs → spectrum-BaWKMoAl.mjs} +5 -5
  188. package/dist/{speed-UqKG1WDl.mjs → speed-DShjlpAs.mjs} +1 -1
  189. package/dist/{sql-BzikdIje.mjs → sql-DCoFf15T.mjs} +1 -1
  190. package/dist/{src-B9agxHh8.mjs → src-jyCTFHcS.mjs} +5 -5
  191. package/dist/{ssl-BmWWsUX6.mjs → ssl-C4nt4pJK.mjs} +2 -2
  192. package/dist/{startup-profile-B7yHR_YB.mjs → startup-profile-CFJ_Lu1c.mjs} +1 -1
  193. package/dist/startup-profile-D_Qjgca1.mjs +2 -0
  194. package/dist/state-C7lNNN31.mjs +2 -0
  195. package/dist/{state-DNuVv5i-.mjs → state-DmjHXZat.mjs} +1 -1
  196. package/dist/{stream-G87TzC9e.mjs → stream-CpZbnSpH.mjs} +1 -1
  197. package/dist/{tags-Ctl4fLux.mjs → tags-BIjQ3Kjh.mjs} +2 -2
  198. package/dist/{telemetry-CA0_i9-l.mjs → telemetry-BDhqOpUw.mjs} +1 -1
  199. package/dist/telemetry-BZdRnr26.mjs +2 -0
  200. package/dist/{tenant-t5yPFQOx.mjs → tenant-CqYoylyU.mjs} +1 -1
  201. package/dist/{tenant-custom-nameservers-B2ehXfQK.mjs → tenant-custom-nameservers-DDzzdyY3.mjs} +1 -1
  202. package/dist/{tunnels-DL_VgV0P.mjs → tunnels-CXAO2CeL.mjs} +3 -3
  203. package/dist/{turnstile-CEjw5vn6.mjs → turnstile-Ctm0rs0q.mjs} +1 -1
  204. package/dist/ui-BUCBQ3Sq.mjs +2 -0
  205. package/dist/{update-check-2Mn4Z1ln.mjs → update-check-D_Wtw0_D.mjs} +1 -1
  206. package/dist/{update-check-LF-JcHRF.mjs → update-check-Dc7cRFlx.mjs} +1 -1
  207. package/dist/update-check-worker.mjs +1 -1
  208. package/dist/{url-normalization-BL_BkGvP.mjs → url-normalization-DOfc2Q7a.mjs} +1 -1
  209. package/dist/{url-scanner-CVzV9Syq.mjs → url-scanner-J8M3X2tR.mjs} +2 -2
  210. package/dist/{user-YnQSmPNR.mjs → user-BaF0qvvO.mjs} +1 -1
  211. package/dist/{vectorize-C5ZwKQzI.mjs → vectorize-D5qiggZU.mjs} +1 -1
  212. package/dist/version-DNcdABcr.mjs +2 -0
  213. package/dist/{waiting-rooms-D9V1Fm16.mjs → waiting-rooms-BdmAq7ul.mjs} +1 -1
  214. package/dist/{web-assets-yzPkWgLy.mjs → web-assets-BySw_Tme.mjs} +5 -5
  215. package/dist/{web3-DbWNUhP4.mjs → web3-BKkKf1RF.mjs} +1 -1
  216. package/dist/{workers-r9Aj68v1.mjs → workers-TS0oQ-XH.mjs} +2 -2
  217. package/dist/{workers-builds-DgIDPDhj.mjs → workers-builds-CVJ4FqzB.mjs} +1 -1
  218. package/dist/{workers-for-platforms-CoPp1ez5.mjs → workers-for-platforms-mzdtmr6r.mjs} +1 -1
  219. package/dist/{workers-vpc-Cvjg15bk.mjs → workers-vpc-xB1hHFPd.mjs} +1 -1
  220. package/dist/{workflows-D4SIo58Q.mjs → workflows-Cr957c4U.mjs} +1 -1
  221. package/dist/{wrangler-migration-D2HwxIG5.mjs → wrangler-migration-DZV7-4Fp.mjs} +5 -5
  222. package/dist/{zaraz-CkqpiZBH.mjs → zaraz-C8__FhOh.mjs} +2 -2
  223. package/dist/{zero-trust-CEY-lohP.mjs → zero-trust-BVCvQJ4e.mjs} +64 -58
  224. package/dist/{zones-BWieAez1.mjs → zones-BzyjOT10.mjs} +2 -2
  225. package/package.json +12 -12
  226. package/dist/auth-B2V5gsm4.mjs +0 -2
  227. package/dist/auth-CyF_s5ic.mjs +0 -2
  228. package/dist/build-CgpCJjPA.mjs +0 -2
  229. package/dist/cf-CInFH4Ng.mjs +0 -18
  230. package/dist/error-sanitization-rodO1WCL.mjs +0 -2
  231. package/dist/local-CTaqb1nl.mjs +0 -2
  232. package/dist/login-pt6gTX3x.mjs +0 -2
  233. package/dist/oauth-scopes-Cub2pl0Z.mjs +0 -4
  234. package/dist/organizations-DIduPB74.mjs +0 -4
  235. package/dist/package-Bf2u3-yO.mjs +0 -2
  236. package/dist/radar-D8x_TUAi.mjs +0 -300
  237. package/dist/run-DB1-Sj9a.mjs +0 -2
  238. package/dist/schema-flags-CoTAkrz8.mjs +0 -5
  239. package/dist/startup-profile-zt6cFnBn.mjs +0 -2
  240. package/dist/state-C5mQ9At8.mjs +0 -2
  241. package/dist/telemetry-jl3s2-bN.mjs +0 -2
  242. package/dist/ui-Dt1-eURh.mjs +0 -2
  243. package/dist/version-Bz705iJe.mjs +0 -2
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n}from"./version-Bz705iJe.mjs";import{i as r}from"./cf-CInFH4Ng.mjs";import{r as i,t as a}from"./gt-BQkaDQDq.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t)=>new n(e,t).major})),y=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=/* @__PURE__ */ e(a(),1),C=/* @__PURE__ */ e(v(),1),w=/* @__PURE__ */ e(b(),1),T=/* @__PURE__ */ e(x(),1);const E=864e5;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=n){return h(r(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??n),r=e.now??Date.now();if(j(t,r,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,r,i){if(!(0,T.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??n,r=e.cachePath??O(t),i=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(n.status===`failed`)return;let a=n.status===`update-available`?n.latest:t;if(!(0,T.default)(a))return;A({...k(r),latestVersion:a,lastSuccessfulAt:i},r)}catch{}}export{L as i,N as n,F as r,E as t};
2
+ import{r as e,t}from"./rolldown-runtime-BNtqjh-B.mjs";import{n}from"./version-DNcdABcr.mjs";import{a as r}from"./cf-CpC4giTf.mjs";import{r as i,t as a}from"./gt-BQkaDQDq.mjs";import{closeSync as o,mkdirSync as s,openSync as c,readFileSync as l,renameSync as u,statSync as d,unlinkSync as f,writeFileSync as p}from"node:fs";import{dirname as m,join as h}from"node:path";import{fileURLToPath as g}from"node:url";import{spawn as _}from"node:child_process";var v=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t)=>new n(e,t).major})),y=/* @__PURE__ */ t(((e,t)=>{let n=i();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),b=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),x=/* @__PURE__ */ t(((e,t)=>{let n=y();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),S=/* @__PURE__ */ e(a(),1),C=/* @__PURE__ */ e(v(),1),w=/* @__PURE__ */ e(b(),1),T=/* @__PURE__ */ e(x(),1);const E=864e5;function D(e){return(0,w.default)(e)?.includes(`beta`)?`beta`:`latest`}function O(e=n){return h(r(),`cache`,`update-check-${D(e)}.json`)}function k(e=O()){try{let t=JSON.parse(l(e,`utf8`));if(typeof t!=`object`||!t||Array.isArray(t))return{};let n=t;return{lastAttemptedAt:typeof n.lastAttemptedAt==`number`&&Number.isFinite(n.lastAttemptedAt)?n.lastAttemptedAt:void 0,lastSuccessfulAt:typeof n.lastSuccessfulAt==`number`&&Number.isFinite(n.lastSuccessfulAt)?n.lastSuccessfulAt:void 0,latestVersion:typeof n.latestVersion==`string`&&(0,T.default)(n.latestVersion)?n.latestVersion:void 0}}catch{return{}}}function A(e,t=O()){let n=`${t}.${process.pid}.tmp`;try{return s(m(t),{recursive:!0}),p(n,`${JSON.stringify(e)}\n`,{encoding:`utf8`,mode:384}),u(n,t),!0}catch{try{f(n)}catch{}return!1}}function j(e,t,n){let r=`${e}.lock`,i;try{s(m(e),{recursive:!0});try{i=c(r,`wx`,384)}catch{try{if(t-d(r).mtimeMs<=5e3)return;f(r),i=c(r,`wx`,384)}catch{return}}return n()}catch{return}finally{if(i!==void 0)try{o(i),f(r)}catch{}}}function M(e,t){if(!(0,T.default)(e)||!t.latestVersion||!(0,S.default)(t.latestVersion,e))return;let n=(0,C.default)(t.latestVersion)>(0,C.default)(e);return{latestVersion:t.latestVersion,isMajor:n}}function N(e,t=O(e)){return M(e,k(t))}function P(){let e=import.meta.url.endsWith(`.ts`),t=new URL(e?`../update-check-worker.ts`:`./update-check-worker.mjs`,import.meta.url),n=e?[...process.execArgv,g(t)]:[g(t)];_(process.execPath,n,{detached:!0,stdio:`ignore`,windowsHide:!0}).unref()}function F(e={}){let t=e.cachePath??O(e.currentVersion??n),r=e.now??Date.now();if(j(t,r,()=>{let e=k(t);return e.lastAttemptedAt!==void 0&&r-e.lastAttemptedAt<864e5?!1:A({...e,lastAttemptedAt:r},t)}))try{(e.spawnWorker??P)()}catch{}}async function I(e,t,r,i){if(!(0,T.default)(t))return{status:`failed`};let a=await i(`https://registry.npmjs.org/${encodeURIComponent(e)}/${r}`,{headers:{accept:`application/json`,"user-agent":`cf-cli/${n}`},signal:AbortSignal.timeout(3e3)});if(!a.ok)return{status:`failed`};let o=await a.json();if(typeof o!=`object`||!o||Array.isArray(o))return{status:`failed`};let s=o;return s.name!==e||typeof s.version!=`string`||!(0,T.default)(s.version)?{status:`failed`}:(0,S.default)(s.version,t)?{status:`update-available`,latest:s.version}:{status:`up-to-date`}}async function L(e={}){let t=e.currentVersion??n,r=e.cachePath??O(t),i=e.now??Date.now();try{let n=await(e.check??((t,n,r)=>I(t,n,r,e.fetch??globalThis.fetch)))(`cf`,t,`latest`);if(n.status===`failed`)return;let a=n.status===`update-available`?n.latest:t;if(!(0,T.default)(a))return;A({...k(r),latestVersion:a,lastSuccessfulAt:i},r)}catch{}}export{L as i,N as n,F as r,E as t};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-2Mn4Z1ln.mjs";
2
+ export{n as getUpdateNotice,r as maybeStartBackgroundUpdateCheck}from"./update-check-D_Wtw0_D.mjs";
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./update-check-2Mn4Z1ln.mjs";await e();export{};
2
+ import{i as e}from"./update-check-D_Wtw0_D.mjs";await e();export{};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{i as u,n as d}from"./prompt-kxvGZ6nF.mjs";var f={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/url_normalization`,response:!1};function p(e){return e.usage(`$0 url-normalization delete
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-D5Yj9eYU.mjs";import{i as n}from"./context-BvLXzoMs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-B-CVX0kn.mjs";import{t as o}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{i as u,n as d}from"./prompt-DJF_Rs5S.mjs";var f={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/url_normalization`,response:!1};function p(e){return e.usage(`$0 url-normalization delete
3
3
 
4
4
  Deletes the URL Normalization settings.`).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 m={command:`delete`,describe:`Delete URL Normalization settings`,builder:p,handler:async e=>o({command:`url-normalization delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf url-normalization delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/url_normalization`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force}))return;let c=await a(`Deleting`,async()=>o.send(f,{zone_id:s}));r(c,{successLabel:`Deleted`})})};var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/url_normalization`};function g(e){return e.usage(`$0 url-normalization get
5
5
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-kxvGZ6nF.mjs";import{n as m,t as h}from"./raw-fetch-C_hWBr7n.mjs";function g(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <response-id>`,describe:`Get raw response`,builder:g,handler:async e=>c({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/responses/${e[`response-id`]==null?`<response-id>`:encodeURIComponent(String(e[`response-id`]))}`,pathParams:{"response-id":String(e[`response-id`]??``)},bodyKind:`none`});return}await n(e);let a=e.local?t:await i();e.accountId=a;let c=await s(`Loading`,async()=>h(`/accounts/${a}/urlscanner/v2/responses/${encodeURIComponent(String(e[`response-id`]))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));m(c.toString(`utf-8`))})},v={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/urlscanner/v2/bulk`,body:`json`,errors:{400:`BadRequestError`,429:`TooManyRequestsError`}};function b(e){return e.usage(`$0 url-scanner scans bulk-create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{n}from"./auth-D5Yj9eYU.mjs";import{a as r,t as i}from"./context-BvLXzoMs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-B-CVX0kn.mjs";import{t as c}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p}from"./prompt-DJF_Rs5S.mjs";import{n as m,t as h}from"./raw-fetch-BrOxDN9k.mjs";function g(e){return e.usage("$0 url-scanner responses get <response-id>\n\nReturns the raw response of the network request. Find the `response_id` in the `data.requests.response.hash`.").positional(`response-id`,{type:`string`,description:`Response hash.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get <response-id>`,describe:`Get raw response`,builder:g,handler:async e=>c({command:`url-scanner responses get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner responses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/responses/${e[`response-id`]==null?`<response-id>`:encodeURIComponent(String(e[`response-id`]))}`,pathParams:{"response-id":String(e[`response-id`]??``)},bodyKind:`none`});return}await n(e);let a=e.local?t:await i();e.accountId=a;let c=await s(`Loading`,async()=>h(`/accounts/${a}/urlscanner/v2/responses/${encodeURIComponent(String(e[`response-id`]))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));m(c.toString(`utf-8`))})},v={command:`responses`,describe:`Raw HTTP response data captured during URL scans`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/urlscanner/v2/bulk`,body:`json`,errors:{400:`BadRequestError`,429:`TooManyRequestsError`}};function b(e){return e.usage(`$0 url-scanner scans bulk-create
3
3
 
4
4
  Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`List of urls to scan (up to a 100).`})}const x={command:`bulk-create`,describe:`Bulk create URL Scans`,builder:b,handler:async e=>c({command:`url-scanner scans bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner scans bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/bulk`,pathParams:{},bodyKind:`json`,body:e.body===void 0?void 0:l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(y,{body:t,account_id:u}));a(n,{successLabel:`Created`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var S={method:`POST`,path:t=>e`/accounts/${t.account_id}/urlscanner/v2/scan`,body:`json`,errors:{400:`BadRequestError`,409:`ConflictError`,429:`TooManyRequestsError`}};function C(e){return e.usage(`$0 url-scanner scans create
5
5
 
6
- Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.`).option(`agent-readiness`,{type:`boolean`,description:`Enable agent readiness checks.`}).option(`country`,{type:`string`,description:`Country to geo egress from`,choices:/* @__PURE__ */ `AF.AL.DZ.AD.AO.AG.AR.AM.AU.AT.AZ.BH.BD.BB.BY.BE.BZ.BJ.BM.BT.BO.BA.BW.BR.BN.BG.BF.BI.KH.CM.CA.CV.KY.CF.TD.CL.CN.CO.KM.CG.CR.CI.HR.CU.CY.CZ.CD.DK.DJ.DM.DO.EC.EG.SV.GQ.ER.EE.SZ.ET.FJ.FI.FR.GA.GE.DE.GH.GR.GL.GD.GT.GN.GW.GY.HT.HN.HU.IS.IN.ID.IR.IQ.IE.IL.IT.JM.JP.JO.KZ.KE.KI.KW.KG.LA.LV.LB.LS.LR.LY.LI.LT.LU.MO.MG.MW.MY.MV.ML.MR.MU.MX.FM.MD.MC.MN.MS.MA.MZ.MM.NA.NR.NP.NL.NZ.NI.NE.NG.KP.MK.NO.OM.PK.PS.PA.PG.PY.PE.PH.PL.PT.QA.RO.RU.RW.SH.KN.LC.VC.WS.SM.ST.SA.SN.RS.SC.SL.SK.SI.SB.SO.ZA.KR.SS.ES.LK.SD.SR.SE.CH.SY.TW.TJ.TZ.TH.BS.GM.TL.TG.TO.TT.TN.TR.TM.UG.UA.AE.GB.US.UY.UZ.VU.VE.VN.YE.ZM.ZW`.split(`.`)}).coerce(`country`,e=>f(e,`country`,`text`)).option(`custom-headers`,{type:`string`,description:`Set custom headers. Provide as a JSON object or @path/to/file.json.`}).option(`customagent`,{type:`string`,description:`The customagent field`}).option(`referer`,{type:`string`,description:`The referer field`}).option(`screenshots-resolutions`,{type:`string`,array:!0,description:`Take multiple screenshots targeting different device types.`}).option(`url`,{type:`string`,description:`The url field`}).option(`visibility`,{type:`string`,description:"The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.",choices:[`Public`,`Unlisted`],default:`Public`}).coerce(`visibility`,e=>f(e,`visibility`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`create`,describe:`Create URL Scan`,builder:C,handler:async e=>c({command:`url-scanner scans create`,classification:{safeFlags:[`agent-readiness`,`country`,`visibility`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/scan`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({agentReadiness:e[`agent-readiness`],country:e.country,customHeaders:u(e[`custom-headers`],`custom-headers`),customagent:f(e.customagent,`customagent`,`text`),referer:f(e.referer,`referer`,`text`),screenshotsResolutions:e[`screenshots-resolutions`],url:f(e.url,`url`,`text`),visibility:e.visibility},[[`customHeaders`]]):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(S,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.url===void 0&&(e.url=await p(`url`,`The url field`));let h=d({agentReadiness:e[`agent-readiness`],country:e.country,customHeaders:u(e[`custom-headers`],`custom-headers`),customagent:f(e.customagent,`customagent`,`text`),referer:f(e.referer,`referer`,`text`),screenshotsResolutions:e[`screenshots-resolutions`],url:f(e.url,`url`,`text`),visibility:e.visibility},[[`customHeaders`]]),g=await s(`Creating`,async()=>c.send(S,{body:h,account_id:m}));a(g,{successLabel:`Created`})})};function T(e){return e.usage(`$0 url-scanner scans dom <scan-id>
6
+ Submit a URL to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/.`).option(`agent-readiness`,{type:`boolean`,description:`Enable agent readiness checks.`}).option(`country`,{type:`string`,description:`Country to geo egress from`,choices:/* @__PURE__ */ `AE.AL.AM.AO.AR.AT.AU.AZ.BB.BD.BE.BF.BG.BH.BN.BO.BR.BT.BW.BY.CA.CD.CH.CI.CL.CM.CO.CR.CW.CY.CZ.DE.DJ.DK.DO.DZ.EC.EE.EG.ES.ET.FI.FJ.FR.GB.GD.GE.GH.GR.GT.GU.GY.HK.HN.HR.HT.HU.ID.IE.IL.IN.IQ.IS.IT.JM.JO.JP.KE.KG.KH.KR.KW.KZ.LA.LB.LK.LR.LT.LU.LV.MA.MD.MG.MK.MM.MN.MO.MT.MU.MV.MW.MX.MY.MZ.NA.NC.NG.NL.NO.NP.NZ.OM.PA.PE.PF.PH.PK.PL.PR.PS.PT.PY.QA.RE.RO.RS.RU.RW.SA.SE.SG.SI.SK.SN.SR.TH.TJ.TN.TR.TT.TW.TZ.UA.UG.US.UZ.VN.ZA.ZM.ZW`.split(`.`)}).coerce(`country`,e=>f(e,`country`,`text`)).option(`custom-headers`,{type:`string`,description:`Set custom headers. Provide as a JSON object or @path/to/file.json.`}).option(`customagent`,{type:`string`,description:`The customagent field`}).option(`referer`,{type:`string`,description:`The referer field`}).option(`screenshots-resolutions`,{type:`string`,array:!0,description:`Take multiple screenshots targeting different device types.`}).option(`url`,{type:`string`,description:`The url field`}).option(`visibility`,{type:`string`,description:"The option `Public` means it will be included in listings like recent scans and search results. `Unlisted` means it will not be included in the aforementioned listings, users will need to have the scan's ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.",choices:[`Public`,`Unlisted`],default:`Public`}).coerce(`visibility`,e=>f(e,`visibility`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`create`,describe:`Create URL Scan`,builder:C,handler:async e=>c({command:`url-scanner scans create`,classification:{safeFlags:[`agent-readiness`,`country`,`visibility`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner scans create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/scan`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({agentReadiness:e[`agent-readiness`],country:e.country,customHeaders:u(e[`custom-headers`],`custom-headers`),customagent:f(e.customagent,`customagent`,`text`),referer:f(e.referer,`referer`,`text`),screenshotsResolutions:e[`screenshots-resolutions`],url:f(e.url,`url`,`text`),visibility:e.visibility},[[`customHeaders`]]):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(S,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.url===void 0&&(e.url=await p(`url`,`The url field`));let h=d({agentReadiness:e[`agent-readiness`],country:e.country,customHeaders:u(e[`custom-headers`],`custom-headers`),customagent:f(e.customagent,`customagent`,`text`),referer:f(e.referer,`referer`,`text`),screenshotsResolutions:e[`screenshots-resolutions`],url:f(e.url,`url`,`text`),visibility:e.visibility},[[`customHeaders`]]),g=await s(`Creating`,async()=>c.send(S,{body:h,account_id:m}));a(g,{successLabel:`Created`})})};function T(e){return e.usage(`$0 url-scanner scans dom <scan-id>
7
7
 
8
8
  Returns a plain text response, with the scan's DOM content as rendered by Chrome.`).positional(`scan-id`,{type:`string`,description:`Scan UUID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`dom <scan-id>`,describe:`Get URL scan's DOM`,builder:T,handler:async e=>c({command:`url-scanner scans dom`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf url-scanner scans dom`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/urlscanner/v2/dom/${e[`scan-id`]==null?`<scan-id>`:encodeURIComponent(String(e[`scan-id`]))}`,pathParams:{"scan-id":String(e[`scan-id`]??``)},bodyKind:`none`});return}await n(e);let a=e.local?t:await i();e.accountId=a;let c=await s(`Loading`,async()=>h(`/accounts/${a}/urlscanner/v2/dom/${encodeURIComponent(String(e[`scan-id`]))}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));m(c.toString(`utf-8`))})};var D={method:`GET`,path:t=>e`/accounts/${t.account_id}/urlscanner/v2/result/${t.scan_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function O(e){return e.usage(`$0 url-scanner scans get <scan-id>
9
9
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./get-CRKvqCu6.mjs";import{n,o as r}from"./auth-pbuzyz4C.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-C_yVLVcl.mjs";import{t as s}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as c,n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-kxvGZ6nF.mjs";var ee={method:`GET`,path:()=>`/user/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function te(e){return e.usage(`$0 user audit-logs list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./get-CRKvqCu6.mjs";import{n,o as r}from"./auth-D5Yj9eYU.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-B-CVX0kn.mjs";import{t as s}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as c,n as l,r as u,t as d}from"./body-parser-BKcZS9iJ.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-DJF_Rs5S.mjs";var ee={method:`GET`,path:()=>`/user/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function te(e){return e.usage(`$0 user audit-logs list
3
3
 
4
4
  Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Get user audit logs`,builder:te,handler:async e=>s({command:`user audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let t={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){a({command:`cf user audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/audit_logs`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),s=await o(`Loading`,async()=>r.send(ee,t));i(s,{successLabel:`Loaded`})})},ne={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var re={method:`GET`,path:()=>`/user/billing/history`,query:[`page`,`per_page`,`order`,`occurred_at`,`type`,`action`]};function ie(e){return e.usage(`$0 user billing history list
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as u,r as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-kxvGZ6nF.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/vectorize/v2/indexes`,body:`json`};function y(e){return e.usage(`$0 vectorize create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{i as n,n as r}from"./auth-D5Yj9eYU.mjs";import{a as i,t as a}from"./context-BvLXzoMs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-B-CVX0kn.mjs";import{t as l}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as u,r as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p,t as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-DJF_Rs5S.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/vectorize/v2/indexes`,body:`json`};function y(e){return e.usage(`$0 vectorize create
3
3
 
4
4
  Creates and returns a new Vectorize Index.`).option(`index-config-dimensions`,{type:`number`,description:`Specifies the number of dimensions for the index`}).option(`index-config-metric`,{type:`string`,description:`Specifies the type of metric to use calculating distance.`,choices:[`cosine`,`euclidean`,`dot-product`]}).coerce(`index-config-metric`,e=>p(e,`index-config-metric`,`text`)).option(`index-config-preset`,{type:`string`,description:`Specifies the preset to use for the index.`,choices:[`@cf/baai/bge-small-en-v1.5`,`@cf/baai/bge-base-en-v1.5`,`@cf/baai/bge-large-en-v1.5`,`openai/text-embedding-ada-002`,`cohere/embed-multilingual-v2.0`]}).coerce(`index-config-preset`,e=>p(e,`index-config-preset`,`text`)).option(`description`,{type:`string`,description:`Specifies the description of the index.`}).option(`name`,{type:`string`,description:`The name field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`index-config-dimensions`,[`index-config-preset`]).implies(`index-config-dimensions`,[`index-config-metric`]).conflicts(`index-config-metric`,[`index-config-preset`]).implies(`index-config-metric`,[`index-config-dimensions`]).conflicts(`index-config-preset`,[`index-config-dimensions`,`index-config-metric`])}const b={command:`create`,describe:`Create Vectorize Index`,builder:y,handler:async e=>l({command:`vectorize create`,classification:{safeFlags:[`index-config-metric`,`index-config-preset`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf vectorize create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/vectorize/v2/indexes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({config:{dimensions:e[`index-config-dimensions`],metric:e[`index-config-metric`],preset:e[`index-config-preset`]},description:p(e.description,`description`,`text`),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}e.name===void 0&&(e.name=await h(`name`,`The name field`));let d=f({config:{dimensions:e[`index-config-dimensions`],metric:e[`index-config-metric`],preset:e[`index-config-preset`]},description:p(e.description,`description`,`text`),name:p(e.name,`name`,`text`)}),m=await c(`Creating`,async()=>n.send(v,{body:d,account_id:l}));o(m,{successLabel:`Created`})})};var x={method:`POST`,path:t=>e`/accounts/${t.account_id}/vectorize/v2/indexes/${t.index_name}/delete_by_ids`,body:`json`};function S(e){return e.usage(`$0 vectorize delete-by-ids <index-name>
5
5
 
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./package-BOE_De2L.mjs";const t=process.env.CLI_VERSION??e,n=`cf-cli/${t}`;export{t as n,n as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-kxvGZ6nF.mjs";var _={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/waiting_rooms`,query:[`page`,`per_page`]};function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{n}from"./auth-D5Yj9eYU.mjs";import{a as r,i,t as a}from"./context-BvLXzoMs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-B-CVX0kn.mjs";import{t as l}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as u,n as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-DJF_Rs5S.mjs";var _={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/waiting_rooms`,query:[`page`,`per_page`]};function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
3
3
 
4
4
  Lists waiting rooms for account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page. Must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`list`,describe:`List waiting rooms for account or zone`,builder:ee,handler:async e=>l({command:`waiting-rooms account-waiting-rooms list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf waiting-rooms account-waiting-rooms list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/waiting_rooms`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},query:l,bodyKind:`none`});return}let u=await n(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await a();d===`zones`?e.zoneId=f:e.accountId=f;let p=await c(`Loading`,async()=>u.send(_,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})},y={command:`account-waiting-rooms`,describe:`Account-scoped waiting room listing`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/zones/${t.zone_id}/waiting_rooms`,body:`json`};function te(e){return e.usage(`$0 waiting-rooms create
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as s,r as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-kxvGZ6nF.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery`};function ee(e){return e.usage(`$0 web-assets discovery get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-D5Yj9eYU.mjs";import{i as n}from"./context-BvLXzoMs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-B-CVX0kn.mjs";import{t as o}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as s,r as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-DJF_Rs5S.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery`};function ee(e){return e.usage(`$0 web-assets discovery get
3
3
 
4
4
  Returns the latest API operations discovered from zone traffic, rendered as OpenAPI schemas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Export discovered API operations as OpenAPI schemas`,builder:ee,handler:async e=>o({command:`web-assets discovery get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets discovery get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(m,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var te={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery/operations`,body:`json`};function ne(e){return e.usage(`$0 web-assets discovery operations bulk-edit
5
5
 
@@ -9,7 +9,7 @@ Updates the state of a discovered web or API operation.`).positional(`discovery-
9
9
 
10
10
  Returns a discovered web or API operation by discovery ID.`).positional(`discovery-id`,{type:`string`,description:`Discovery ID of a discovered operation`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ce={command:`get <discovery-id>`,describe:`Get a discovered web or API operation`,builder:se,handler:async e=>o({command:`web-assets discovery operations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets discovery operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery/operations/${e[`discovery-id`]==null?`<discovery-id>`:encodeURIComponent(String(e[`discovery-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"discovery-id":String(e[`discovery-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(oe,{zone_id:s,discovery_id:e[`discovery-id`]}));r(c,{successLabel:`Loaded`})})};var le={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery/operations`,query:[`page`,`per_page`,`host`,`method`,`endpoint`,`direction`,`order`,`diff`,`origin`,`state`]};function _(e){return e.usage(`$0 web-assets discovery operations list
11
11
 
12
- Returns the latest web and API operations discovered from zone traffic.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`host`,{type:`string`,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`order`,{type:`string`,description:`Field to order by`,choices:[`host`,`method`,`endpoint`,`traffic_stats.requests`,`traffic_stats.last_updated`]}).option(`diff`,{type:`boolean`,description:"When `true`, only return API Discovery results that are not saved into API Shield Endpoint Management"}).option(`origin`,{type:`string`,description:"Filter results to only include discovery results sourced from a particular discovery engine\n * `ML` - Discovered operations that were sourced using ML API Discovery\n * `SessionIdentifier` - Discovered operations that were sourced using Session Identifier API Discovery",choices:[`ML`,`SessionIdentifier`,`LabelDiscovery`]}).option(`state`,{type:`string`,description:"Filter results to only include discovery results in a particular state. States are as follows\n * `review` - Discovered operations that are not saved into API Shield Endpoint Management\n * `saved` - Discovered operations that are already saved into API Shield Endpoint Management\n * `ignored` - Discovered operations that have been marked as ignored",choices:[`review`,`saved`,`ignored`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`list`,describe:`List discovered web and API operations`,builder:_,handler:async e=>o({command:`web-assets discovery operations list`,classification:{safeFlags:[`direction`,`order`,`diff`,`origin`,`state`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],host:e.host,method:e.method,endpoint:e.endpoint,direction:e.direction,order:e.order,diff:e.diff,origin:e.origin,state:e.state};if(e.dryRun){i({command:`cf web-assets discovery operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(le,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},y={command:`operations`,describe:`Operations for discovery.operations`,builder:e=>e.command(re).command(ae).command(ce).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},b={command:`discovery`,describe:`Operations for discovery`,builder:e=>e.command(h).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels`,query:[`page`,`per_page`,`order`,`direction`,`source`,`filter`,`with_mapped_resource_counts`]};function S(e){return e.usage(`$0 web-assets labels list
12
+ Returns the latest web and API operations discovered from zone traffic.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`host`,{type:`string`,array:!0,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,array:!0,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`order`,{type:`string`,description:`Field to order by`,choices:[`host`,`method`,`endpoint`,`traffic_stats.requests`,`traffic_stats.last_updated`]}).option(`diff`,{type:`boolean`,description:"When `true`, only return API Discovery results that are not saved into API Shield Endpoint Management"}).option(`origin`,{type:`string`,description:"Filter results to only include discovery results sourced from a particular discovery engine\n * `ML` - Discovered operations that were sourced using ML API Discovery\n * `SessionIdentifier` - Discovered operations that were sourced using Session Identifier API Discovery",choices:[`ML`,`SessionIdentifier`,`LabelDiscovery`]}).option(`state`,{type:`string`,description:"Filter results to only include discovery results in a particular state. States are as follows\n * `review` - Discovered operations that are not saved into API Shield Endpoint Management\n * `saved` - Discovered operations that are already saved into API Shield Endpoint Management\n * `ignored` - Discovered operations that have been marked as ignored",choices:[`review`,`saved`,`ignored`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`list`,describe:`List discovered web and API operations`,builder:_,handler:async e=>o({command:`web-assets discovery operations list`,classification:{safeFlags:[`direction`,`order`,`diff`,`origin`,`state`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],host:e.host,method:e.method,endpoint:e.endpoint,direction:e.direction,order:e.order,diff:e.diff,origin:e.origin,state:e.state};if(e.dryRun){i({command:`cf web-assets discovery operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(le,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},y={command:`operations`,describe:`Operations for discovery.operations`,builder:e=>e.command(re).command(ae).command(ce).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},b={command:`discovery`,describe:`Operations for discovery`,builder:e=>e.command(h).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels`,query:[`page`,`per_page`,`order`,`direction`,`source`,`filter`,`with_mapped_resource_counts`]};function S(e){return e.usage(`$0 web-assets labels list
13
13
 
14
14
  Returns all managed and user-defined labels available for web and API operations in the zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`order`,{type:`string`,description:`Field to order by`,choices:[`name`,`description`,`created_at`,`last_updated`,`mapped_resources.operations`]}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`source`,{type:`string`,description:`Filter for labels with source`,choices:[`user`,`managed`]}).option(`filter`,{type:`string`,description:`Filter for labels where the name or description matches using substring match`}).option(`with-mapped-resource-counts`,{type:`boolean`,description:"Include `mapped_resources` for each label"}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List operation labels`,builder:S,handler:async e=>o({command:`web-assets labels list`,classification:{safeFlags:[`order`,`direction`,`source`,`with-mapped-resource-counts`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,source:e.source,filter:e.filter,with_mapped_resource_counts:e[`with-mapped-resource-counts`]};if(e.dryRun){i({command:`cf web-assets labels list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(x,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/managed/${t.name}`,query:[`with_mapped_resource_counts`]};function T(e){return e.usage(`$0 web-assets labels managed get <name>
15
15
 
@@ -39,7 +39,7 @@ Creates one web or API operation. The host, method, and path are normalized; an
39
39
 
40
40
  Deletes a web or API operation from endpoint management so its feature configuration is no longer tracked.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,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 <operation-id>`,describe:`Delete a web or API operation`,builder:ke,handler:async e=>o({command:`web-assets operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force,message:`This operation deletes the web or API operation.`}))return;let c=await a(`Deleting`,async()=>o.send(Oe,{zone_id:s,operation_id:e[`operation-id`]}));r(c,{successLabel:`Deleted`})})};var je={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}`,query:[`feature`,`with_schemas`]};function Me(e){return e.usage(`$0 web-assets operations get <operation-id>
41
41
 
42
- Returns a web or API operation, including its schema validation settings and requested feature data.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`with-schemas`,{type:`boolean`,description:`When true, includes OpenAPI schemas (both uploaded and learned) for the operation in the response. Due to the conversion overhead, this parameter is only supported on single-operation retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <operation-id>`,describe:`Get a web or API operation`,builder:Me,handler:async e=>o({command:`web-assets operations get`,classification:{safeFlags:[`with-schemas`,`dry-run`]}},e,async()=>{let o={feature:e.feature,with_schemas:e[`with-schemas`]};if(e.dryRun){i({command:`cf web-assets operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(je,{zone_id:c,operation_id:e[`operation-id`],...o}));r(l,{successLabel:`Loaded`})})};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Pe(e){return e.usage(`$0 web-assets operations labels bulk-create
42
+ Returns a web or API operation, including its schema validation settings and requested feature data.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`feature`,{type:`string`,array:!0,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`with-schemas`,{type:`boolean`,description:`When true, includes OpenAPI schemas (both uploaded and learned) for the operation in the response. Due to the conversion overhead, this parameter is only supported on single-operation retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <operation-id>`,describe:`Get a web or API operation`,builder:Me,handler:async e=>o({command:`web-assets operations get`,classification:{safeFlags:[`with-schemas`,`dry-run`]}},e,async()=>{let o={feature:e.feature,with_schemas:e[`with-schemas`]};if(e.dryRun){i({command:`cf web-assets operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(je,{zone_id:c,operation_id:e[`operation-id`],...o}));r(l,{successLabel:`Loaded`})})};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Pe(e){return e.usage(`$0 web-assets operations labels bulk-create
43
43
 
44
44
  Attaches labels to multiple web or API operations in one request.`).option(`managed-labels`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user-labels`,{type:`string`,array:!0,description:`List of user label names.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Fe={command:`bulk-create`,describe:`Attach labels to web or API operations`,builder:Pe,handler:async e=>o({command:`web-assets operations labels bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(q,{body:t,zone_id:c}));r(n,{successLabel:`Created`});return}let u=l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}),d=await a(`Creating`,async()=>o.send(q,{body:u,zone_id:c}));r(d,{successLabel:`Created`})})};var J={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Ie(e){return e.usage(`$0 web-assets operations labels bulk-delete
45
45
 
@@ -53,6 +53,6 @@ Removes one or more labels from a web or API operation.`).positional(`operation-
53
53
 
54
54
  Replaces the complete label set on a web or API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`managed`,{type:`string`,array:!0,description:`List of managed label names. Omitting this property or passing an empty array will result in all managed labels being removed from the operation`}).option(`user`,{type:`string`,array:!0,description:`List of user label names. Omitting this property or passing an empty array will result in all user labels being removed from the operation`}).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 We={command:`update <operation-id>`,describe:`Replace labels on a web or API operation`,builder:Ue,handler:async e=>o({command:`web-assets operations labels update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:e.managed,user:e.user}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send($,{body:t,zone_id:c,operation_id:e[`operation-id`]}));r(n,{successLabel:`Updated`});return}let u=l({managed:e.managed,user:e.user}),d=await a(`Updating`,async()=>o.send($,{body:u,zone_id:c,operation_id:e[`operation-id`]}));r(d,{successLabel:`Updated`})})},Ge={command:`labels`,describe:`Operations for operations.labels`,builder:e=>e.command(Fe).command(Le).command(ze).command(Ve).command(Q).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ke={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations`,query:[`page`,`per_page`,`order`,`direction`,`host`,`method`,`endpoint`,`feature`]};function qe(e){return e.usage(`$0 web-assets operations list
55
55
 
56
- Lists web and API operations tracked for the zone, including each operation's method, path, and feature configuration.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`order`,{type:`string`,description:"Field to order by. When requesting a feature, the feature keys are available for ordering as well, e.g., `thresholds.suggested_threshold`.",choices:[`method`,`host`,`endpoint`,`thresholds.$key`]}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`host`,{type:`string`,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Je={command:`list`,describe:`List web and API operations`,builder:qe,handler:async e=>o({command:`web-assets operations list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,host:e.host,method:e.method,endpoint:e.endpoint,feature:e.feature};if(e.dryRun){i({command:`cf web-assets operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(Ke,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},Ye={command:`operations`,describe:`Operations for operations`,builder:e=>e.command(Se).command(Te).command(De).command(Ae).command(Ne).command(Je).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Xe={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/schemas`,query:[`host`,`feature`,`include_schema_kind`]};function Ze(e){return e.usage(`$0 web-assets schemas list
56
+ Lists web and API operations tracked for the zone, including each operation's method, path, and feature configuration.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`order`,{type:`string`,description:"Field to order by. When requesting a feature, the feature keys are available for ordering as well, e.g., `thresholds.suggested_threshold`.",choices:[`method`,`host`,`endpoint`,`thresholds.$key`]}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`host`,{type:`string`,array:!0,description:`Filter results to only include the specified hosts.`}).option(`method`,{type:`string`,array:!0,description:`Filter results to only include the specified HTTP methods.`}).option(`endpoint`,{type:`string`,description:`Filter results to only include endpoints containing this pattern.`}).option(`feature`,{type:`string`,array:!0,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Je={command:`list`,describe:`List web and API operations`,builder:qe,handler:async e=>o({command:`web-assets operations list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],order:e.order,direction:e.direction,host:e.host,method:e.method,endpoint:e.endpoint,feature:e.feature};if(e.dryRun){i({command:`cf web-assets operations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(Ke,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},Ye={command:`operations`,describe:`Operations for operations`,builder:e=>e.command(Se).command(Te).command(De).command(Ae).command(Ne).command(Je).command(Ge).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Xe={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/schemas`,query:[`host`,`feature`,`include_schema_kind`]};function Ze(e){return e.usage(`$0 web-assets schemas list
57
57
 
58
- Returns tracked web and API operations and their feature configuration rendered as OpenAPI schemas.`).option(`host`,{type:`string`,description:`Receive schema only for the given host(s).`}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`include-schema-kind`,{type:`string`,description:`Schema kinds to include in exported OpenAPI schemas.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`Export web and API operations as OpenAPI schemas`,builder:Ze,handler:async e=>o({command:`web-assets schemas list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={host:e.host,feature:e.feature,include_schema_kind:e[`include-schema-kind`]};if(e.dryRun){i({command:`cf web-assets schemas list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(Xe,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},$e={command:`schemas`,describe:`Operations for schemas`,builder:e=>e.command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},et={command:`web-assets`,describe:`web-assets`,builder:e=>e.command(b).command(ye).command(Ye).command($e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{et as default};
58
+ Returns tracked web and API operations and their feature configuration rendered as OpenAPI schemas.`).option(`host`,{type:`string`,array:!0,description:`Receive schema only for the given host(s).`}).option(`feature`,{type:`string`,array:!0,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`include-schema-kind`,{type:`string`,array:!0,description:`Schema kinds to include in exported OpenAPI schemas.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`Export web and API operations as OpenAPI schemas`,builder:Ze,handler:async e=>o({command:`web-assets schemas list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={host:e.host,feature:e.feature,include_schema_kind:e[`include-schema-kind`]};if(e.dryRun){i({command:`cf web-assets schemas list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(Xe,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},$e={command:`schemas`,describe:`Operations for schemas`,builder:e=>e.command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},et={command:`web-assets`,describe:`web-assets`,builder:e=>e.command(b).command(ye).command(Ye).command($e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{et as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-pbuzyz4C.mjs";import{i as n}from"./context-BryBS1zQ.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-C_yVLVcl.mjs";import{t as o}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as s,n as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-kxvGZ6nF.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-D5Yj9eYU.mjs";import{i as n}from"./context-BvLXzoMs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-B-CVX0kn.mjs";import{t as o}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as s,n as c,t as l}from"./body-parser-BKcZS9iJ.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-DJF_Rs5S.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
3
3
 
4
4
  Create Web3 Hostname`).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`name`,{type:`string`,description:`Specify the hostname that points to the target gateway via CNAME.`}).option(`target`,{type:`string`,description:`Specify the target gateway of the hostname.`,choices:[`ethereum`,`ipfs`,`ipfs_universal_path`]}).coerce(`target`,e=>u(e,`target`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create Web3 Hostname`,builder:h,handler:async e=>o({command:`web3 hostnames create`,classification:{safeFlags:[`target`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}):c(e.body)});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),n=await a(`Creating`,async()=>o.send(m,{body:t,zone_id:s}));r(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await d(`name`,`Specify the hostname that points to the target gateway via CNAME.`)),e.target===void 0&&(e.target=await f(`target`,`Specify the target gateway of the hostname.`,[`ethereum`,`ipfs`,`ipfs_universal_path`]));let p=l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}),h=await a(`Creating`,async()=>o.send(m,{body:p,zone_id:s}));r(h,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`};function v(e){return e.usage(`$0 web3 hostnames delete <identifier>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-CD1nuS38.mjs";import{r as t}from"./dotenv-qsoPELMm.mjs";import{J as n}from"./dist-D5YYi2LO.mjs";import"./api-X3wKppsT.mjs";import{t as r}from"./path-DRw6Y-nd.mjs";import{t as i}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as a}from"./local-CIeKNHSz.mjs";import{i as o,n as s}from"./auth-pbuzyz4C.mjs";import{t as c}from"./log-BWdaOGOW.mjs";import{a as l,r as u,t as d}from"./context-BryBS1zQ.mjs";import{t as ee}from"./deploy-context-D51tgJGI.mjs";import{t as f}from"./output-BJEgbI0G.mjs";import{t as p}from"./dry-run-gy0Hl9xo.mjs";import{t as m}from"./progress-C_yVLVcl.mjs";import{n as h,t as g}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as _,n as v,r as y,s as b,t as x}from"./body-parser-BKcZS9iJ.mjs";import{n as S,t as C}from"./input-validation-D7z60HJH.mjs";import{a as w,i as T,n as E}from"./prompt-kxvGZ6nF.mjs";import{n as D,t as O}from"./raw-fetch-C_hWBr7n.mjs";import{c as te,r as ne,u as k}from"./containers-IBtaInTL.mjs";import{a as A,i as j,n as M,o as N,r as P,s as F}from"./build-CCepbVuJ.mjs";import{r as I}from"./deploy-input-em95cFc7.mjs";import{n as L,t as R}from"./shared-foRpbmSV.mjs";import{readBuildOutput as z}from"@cloudflare/build-output-utils";var B={method:`DELETE`,path:e=>r`/accounts/${e.account_id}/workers/workers/${e.worker_id}`,query:[`force`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function V(e){return e.usage(`$0 workers delete <worker-id>
2
+ import{t as e}from"./lazy-command-DeTzOWvU.mjs";import{r as t}from"./dotenv-DKRemNCH.mjs";import{J as n}from"./dist-DehXZozc.mjs";import"./api-X3wKppsT.mjs";import{t as r}from"./path-DRw6Y-nd.mjs";import{t as i}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as a}from"./local-CvzO-cQH.mjs";import{i as o,n as s}from"./auth-D5Yj9eYU.mjs";import{t as c}from"./log-BWdaOGOW.mjs";import{a as l,r as u,t as d}from"./context-BvLXzoMs.mjs";import{t as ee}from"./deploy-context-DsEVu7bf.mjs";import{t as f}from"./output-BJEgbI0G.mjs";import{t as p}from"./dry-run-gy0Hl9xo.mjs";import{t as m}from"./progress-B-CVX0kn.mjs";import{n as h,t as g}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as _,n as v,r as y,s as b,t as x}from"./body-parser-BKcZS9iJ.mjs";import{n as S,t as C}from"./input-validation-D7z60HJH.mjs";import{a as w,i as T,n as E}from"./prompt-DJF_Rs5S.mjs";import{n as D,t as O}from"./raw-fetch-BrOxDN9k.mjs";import{c as te,r as ne,u as k}from"./containers-D4sa-Eoy.mjs";import{a as A,i as j,n as M,o as N,r as P,s as F}from"./build-Dwd1_7o0.mjs";import{r as I}from"./deploy-input-BA_3Q2Xu.mjs";import{n as L,t as R}from"./shared-DmmWSObC.mjs";import{readBuildOutput as z}from"@cloudflare/build-output-utils";var B={method:`DELETE`,path:e=>r`/accounts/${e.account_id}/workers/workers/${e.worker_id}`,query:[`force`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`,500:`InternalServerError`}};function V(e){return e.usage(`$0 workers delete <worker-id>
3
3
 
4
4
  Delete a Worker and all its associated resources (versions, deployments, etc.).`).positional(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`delete-with-references`,{type:`boolean`,description:`If true, delete the Worker even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Worker are deleted even if other Workers reference them.`}).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 <worker-id>`,describe:`Delete Worker`,builder:V,handler:async e=>g({command:`workers delete`,classification:{safeFlags:[`delete-with-references`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let t={force:e[`delete-with-references`]};if(e.dryRun){let n=await l();p({command:`cf workers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await s(e),r=e.local?a:await d();if(e.accountId=r,!await E({force:!!e.force,message:`This will permanently delete the Worker and its associated versions and deployments.`}))return;let i=await m(`Deleting`,async()=>n.send(B,{account_id:r,worker_id:e[`worker-id`],...t}));f(i,{successLabel:`Deleted`})})};var U={method:`POST`,path:e=>r`/accounts/${e.account_id}/workers/scripts/${e.script_name}/deployments`,query:[`force`],body:`json`,constants:{strategy:`percentage`}};function W(e){return e.usage(`$0 workers deployments create
5
5
 
@@ -36,4 +36,4 @@ Get details about a specific Worker version.`).positional(`version-id`,{type:`st
36
36
 
37
37
  List all versions for a Worker.`).option(`worker-id`,{type:`string`,description:`Identifier for the Worker, which can be ID or name.`,demandOption:!0}).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`list`,describe:`List Worker Versions`,builder:Re,handler:async e=>g({command:`workers versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let n=await l();p({command:`cf workers versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions`,pathParams:{"worker-id":String(e[`worker-id`]??``)},query:t,bodyKind:`none`});return}let n=await s(e),r=e.local?a:await d();e.accountId=r;let i=await m(`Loading`,async()=>n.send(Le,{account_id:r,worker_id:e[`worker-id`],...t}));f(i,{successLabel:`Loaded`})})};function Be(e){return e.usage(`$0 workers versions profile <version-id>
38
38
 
39
- Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version, which may not be deployed. Use "latest-deployed" to profile a version in the active deployment. Versions are tried in order of traffic share until one has a loaded isolate.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifies the Worker by ID or name.`,demandOption:!0}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>S(e,`profile-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)`}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Ve={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:Be,handler:async e=>g({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await l();p({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?x({actor_id:S(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:S(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):v(e.body)});return}await s(e);let t=e.local?a:await d();if(e.accountId=t,e.body){let n=v(e.body),r=await m(`Creating`,async()=>O(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(n),contentType:`application/json`}));D(e.text===!0?r.toString(`utf-8`):r);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let n={};e[`actor-id`]!==void 0&&b(n,[`actor_id`],S(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&b(n,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&b(n,[`namespace_id`],S(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&b(n,[`profile_type`],e[`profile-type`]);let r=await m(`Creating`,async()=>O(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(n).length>0?n:void 0}));D(e.text===!0?r.toString(`utf-8`):r)})};function $(e){return L(e).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var He=h({command:`create`,describe:`Upload a new Worker Version without deploying it`,builder:$,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);await R(e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const Ue={command:`versions`,describe:`Operations for versions`,builder:e=>e.command(i(He,`native`)).command(Ne).command(Ie).command(ze).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var We=e(`check`,`Profile a Worker's startup performance`,()=>import(`./command-BJFKdqVc.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function Ge(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,P)}const Ke={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:Ge,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);if(!e.prebuilt){if(await M(e.mode,{worker:e.worker,dryRun:e[`dry-run`]})===`setup-needed`){c.success(`--dry-run: exiting now.`);return}c.message(``)}await t(e,()=>qe(e))}};async function qe(e){let{workers:t,rootConfig:r}=await z(process.cwd());if(r.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...r.buildContext.mode===void 0?[]:[`--mode`,r.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}F(e.mode,r.buildContext.mode),N(r.accountId,e[`temporary-account`]===!0);let i=A(t,e.worker),{wranglerConfig:a}=j(i,r),o=n(a),{authToken:s,accountId:l}=await ne({accountId:r.accountId,complianceRegion:o,dryRun:e[`dry-run`]});k(ee(s)),c.section(`Deploy triggers`),await te({...I(i,a,l,e),queueCreateCommand:e=>`cf queues create --queue-name ${e}`,workersDevConfigFieldName:`workersDev`,workersDevConfigAssignment:e=>`workersDev: ${e}`,previewUrlsConfigFieldName:`previewUrls`,previewUrlsConfigAssignment:e=>`previewUrls: ${e}`}),e[`dry-run`]||c.success(`Trigger deploy complete`)}const Je={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(h(Ke,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ye=e(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-MxFFWqMg.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});const Xe={command:`workers`,describe:`workers`,builder:e=>e.command(i(We,`preview`)).command(H).command(le).command(fe).command(i(Ye,`preview`)).command(oe).command(ge).command(Ae).command(i(Je,`native`)).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Xe as default};
39
+ Captures a CPU or heap profile from a recently active isolate running the specified Worker version. This endpoint requires the Worker profiling feature to be enabled for the account.`).positional(`version-id`,{type:`string`,description:`Identifies the version by UUID or UUID prefix with a minimum length of eight characters. Use "latest" to select the most recently created version, which may not be deployed. Use "latest-deployed" to profile a version in the active deployment. Versions are tried in order of traffic share until one has a loaded isolate.`,demandOption:!0}).option(`worker-id`,{type:`string`,description:`Identifies the Worker by ID or name.`,demandOption:!0}).option(`actor-id`,{type:`string`,description:`Identifies the exact Durable Object actor to profile. Must be specified together with namespace_id. The actor must currently be active and running the requested version.`}).option(`duration-ms`,{type:`number`,description:`Profile duration in milliseconds.`}).option(`namespace-id`,{type:`string`,description:`Identifies the Durable Object namespace containing the actor to profile. Must be specified together with actor_id.`}).option(`profile-type`,{type:`string`,description:`The profile_type field`,choices:[`cpu`,`heap`],default:`cpu`}).coerce(`profile-type`,e=>S(e,`profile-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)`}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Ve={command:`profile <version-id>`,describe:`Profile Worker Version`,builder:Be,handler:async e=>g({command:`workers versions profile`,classification:{safeFlags:[`profile-type`,`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await l();p({command:`cf workers versions profile`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/workers/${e[`worker-id`]==null?`<worker-id>`:encodeURIComponent(String(e[`worker-id`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/profile`,pathParams:{"worker-id":String(e[`worker-id`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`json`,body:e.body===void 0?x({actor_id:S(e[`actor-id`],`actor-id`,`text`),duration_ms:e[`duration-ms`],namespace_id:S(e[`namespace-id`],`namespace-id`,`text`),profile_type:e[`profile-type`]}):v(e.body)});return}await s(e);let t=e.local?a:await d();if(e.accountId=t,e.body){let n=v(e.body),r=await m(`Creating`,async()=>O(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:JSON.stringify(n),contentType:`application/json`}));D(e.text===!0?r.toString(`utf-8`):r);return}if(e[`duration-ms`]===void 0)throw Error(`--duration-ms is required (or pass --body with this field set).`);let n={};e[`actor-id`]!==void 0&&b(n,[`actor_id`],S(e[`actor-id`],`actor-id`,`text`)),e[`duration-ms`]!==void 0&&b(n,[`duration_ms`],e[`duration-ms`]),e[`namespace-id`]!==void 0&&b(n,[`namespace_id`],S(e[`namespace-id`],`namespace-id`,`text`)),e[`profile-type`]!==void 0&&b(n,[`profile_type`],e[`profile-type`]);let r=await m(`Creating`,async()=>O(`/accounts/${t}/workers/workers/${encodeURIComponent(String(e[`worker-id`]))}/versions/${encodeURIComponent(String(e[`version-id`]))}/profile`,{method:`POST`,local:e.local===!0,persistTo:e.persistTo,body:Object.keys(n).length>0?n:void 0}));D(e.text===!0?r.toString(`utf-8`):r)})};function $(e){return L(e).hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`preview-alias`,{type:`string`,description:`Preview alias for this Worker Version`,requiresArg:!0})}var He=h({command:`create`,describe:`Upload a new Worker Version without deploying it`,builder:$,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers versions create.`);await R(e,{command:`Version upload`})}},{command:`workers versions create`,classification:{safeFlags:[`dry-run`,`prebuilt`]}});const Ue={command:`versions`,describe:`Operations for versions`,builder:e=>e.command(i(He,`native`)).command(Ne).command(Ie).command(ze).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var We=e(`check`,`Profile a Worker's startup performance`,()=>import(`./command-Dn39o5xQ.mjs`),{command:`workers check`,classification:{safeFlags:[`prebuilt`]}});function Ge(e){return e.hide(`local`).hide(`persist-to`).epilogue(`Local simulation (--local) is not supported by this command.`).option(`prebuilt`,{type:`boolean`,description:`Use existing Build Output Specification files without building`,default:!1}).option(`dry-run`,{type:`boolean`,description:`Run checks without applying triggers`,default:!1}).option(`worker`,P)}const Ke={command:`deploy`,describe:`Apply triggers (Routes, Workflows, Cron triggers etc.)`,builder:Ge,handler:async e=>{if(e.local)throw Error(`--local is not supported by cf workers triggers deploy.`);if(!e.prebuilt){if(await M(e.mode,{worker:e.worker,dryRun:e[`dry-run`]})===`setup-needed`){c.success(`--dry-run: exiting now.`);return}c.message(``)}await t(e,()=>qe(e))}};async function qe(e){let{workers:t,rootConfig:r}=await z(process.cwd());if(r.buildContext.isPreview){let e=[`cf previews deploy`,`--prebuilt`,...r.buildContext.mode===void 0?[]:[`--mode`,r.buildContext.mode]].join(` `);throw Error(`The Build Output was created for a Preview, but this command deploys production triggers. To use the existing Build Output and deploy the Preview, run "${e}". To deploy production triggers, rebuild without Preview settings before deploying.`)}F(e.mode,r.buildContext.mode),N(r.accountId,e[`temporary-account`]===!0);let i=A(t,e.worker),{wranglerConfig:a}=j(i,r),o=n(a),{authToken:s,accountId:l}=await ne({accountId:r.accountId,complianceRegion:o,dryRun:e[`dry-run`]});k(ee(s)),c.section(`Deploy triggers`),await te({...I(i,a,l,e),queueCreateCommand:e=>`cf queues create --queue-name ${e}`,workersDevConfigFieldName:`workersDev`,workersDevConfigAssignment:e=>`workersDev: ${e}`,previewUrlsConfigFieldName:`previewUrls`,previewUrlsConfigAssignment:e=>`previewUrls: ${e}`}),e[`dry-run`]||c.success(`Trigger deploy complete`)}const Je={command:`triggers`,describe:`Manage triggers (Routes, Workflows, Cron triggers etc.)`,builder:e=>e.command(h(Ke,{command:`workers triggers deploy`,classification:{safeFlags:[`dry-run`,`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ye=e(`types`,`Generate types from cloudflare.config.ts`,()=>import(`./command-MxFFWqMg.mjs`),{command:`workers types`,classification:{safeFlags:[`include-runtime`]}});const Xe={command:`workers`,describe:`workers`,builder:e=>e.command(i(We,`preview`)).command(H).command(le).command(fe).command(i(Ye,`preview`)).command(oe).command(ge).command(Ae).command(i(Je,`native`)).command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Xe as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{a as l,n as u,r as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/builds/workers/${t.script_tag}/migrate_to_previews`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`}};function h(e){return e.usage(`$0 workers-builds workers migrate-to-previews <script-tag>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{n}from"./auth-D5Yj9eYU.mjs";import{a as r,t as i}from"./context-BvLXzoMs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-B-CVX0kn.mjs";import{t as c}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{a as l,n as u,r as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/builds/workers/${t.script_tag}/migrate_to_previews`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`}};function h(e){return e.usage(`$0 workers-builds workers migrate-to-previews <script-tag>
3
3
 
4
4
  Migrate a Worker's legacy non-production trigger to Previews. The legacy build settings become the Previews base config and the legacy trigger is removed.`).positional(`script-tag`,{type:`string`,description:`The Worker script tag (external script ID)`,demandOption:!0}).option(`deploy-command`,{type:`string`,description:`Deploy command for the migrated Preview settings. Omit it to have the existing 'wrangler versions upload' command rewritten to 'wrangler preview' automatically, which fails with 400 when the existing command cannot be rewritten.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for migrating a Worker's legacy non-production trigger to Previews.`})}const g={command:`migrate-to-previews <script-tag>`,describe:`Migrate worker to previews`,builder:h,handler:async e=>c({command:`workers-builds workers migrate-to-previews`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-builds workers migrate-to-previews`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/builds/workers/${e[`script-tag`]==null?`<script-tag>`:encodeURIComponent(String(e[`script-tag`]))}/migrate_to_previews`,pathParams:{"script-tag":String(e[`script-tag`]??``)},bodyKind:`json`,body:e.body===void 0?f({deploy_command:p(e[`deploy-command`],`deploy-command`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(m,{body:t,account_id:l,script_tag:e[`script-tag`]}));a(n,{successLabel:`Created`});return}let d=f({deploy_command:p(e[`deploy-command`],`deploy-command`,`text`)}),h=await s(`Creating`,async()=>c.send(m,{body:d,account_id:l,script_tag:e[`script-tag`]}));a(h,{successLabel:`Created`})})};var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/builds/workers/${t.script_tag}/previews/${t.preview_id}/builds`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,404:`NotFoundError`}};function v(e){return e.usage(`$0 workers-builds workers previews create-build <preview-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as u,r as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-kxvGZ6nF.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
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{i as n,n as r}from"./auth-D5Yj9eYU.mjs";import{a as i,t as a}from"./context-BvLXzoMs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-B-CVX0kn.mjs";import{t as l}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as u,r as d,s as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-DJF_Rs5S.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
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{n}from"./auth-pbuzyz4C.mjs";import{a as r,t as i}from"./context-BryBS1zQ.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-C_yVLVcl.mjs";import{t as c}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-kxvGZ6nF.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
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{n}from"./auth-D5Yj9eYU.mjs";import{a as r,t as i}from"./context-BvLXzoMs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-B-CVX0kn.mjs";import{t as c}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-DJF_Rs5S.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
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CIeKNHSz.mjs";import{i as n,n as r}from"./auth-pbuzyz4C.mjs";import{a as i,t as a}from"./context-BryBS1zQ.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-C_yVLVcl.mjs";import{t as l}from"./run-BlSXngtI.mjs";import"./telemetry-jl3s2-bN.mjs";import{n as u,o as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-kxvGZ6nF.mjs";import{n as _,t as ee}from"./raw-fetch-C_hWBr7n.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
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CvzO-cQH.mjs";import{i as n,n as r}from"./auth-D5Yj9eYU.mjs";import{a as i,t as a}from"./context-BvLXzoMs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-B-CVX0kn.mjs";import{t as l}from"./run-BZ6Fj3jQ.mjs";import"./telemetry-BZdRnr26.mjs";import{n as u,o as d,t as f}from"./body-parser-BKcZS9iJ.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-DJF_Rs5S.mjs";import{n as _,t as ee}from"./raw-fetch-BrOxDN9k.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