cf 1.0.0-beta.21 → 1.0.0-beta.23

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 (250) hide show
  1. package/dist/_meta/commands.json +5085 -4936
  2. package/dist/_meta/schemas.json +3053 -3057
  3. package/dist/{abuse-reports-CbUAnJxd.mjs → abuse-reports-SaxhQy6n.mjs} +1 -1
  4. package/dist/{access-C-78DlxL.mjs → access-BI_7K9ye.mjs} +1 -1
  5. package/dist/{accounts-DEqQPxCz.mjs → accounts-yCqYkAyG.mjs} +50 -52
  6. package/dist/{acm-jmhCq3Yh.mjs → acm-Cyvj0TLt.mjs} +1 -1
  7. package/dist/{addressing-BeYFpQvC.mjs → addressing-CPjDXCGE.mjs} +1 -1
  8. package/dist/agent-context-Dtyy4aKL.mjs +2 -0
  9. package/dist/{agent-memory-Chlovb7j.mjs → agent-memory-EoP2Uwo7.mjs} +1 -1
  10. package/dist/{ai-BndH3HYN.mjs → ai-DU5T7Rw7.mjs} +1 -1
  11. package/dist/{ai-audit-BUJ-70O_.mjs → ai-audit-DVT8qGLn.mjs} +1 -1
  12. package/dist/{ai-gateway-CCk7VKhL.mjs → ai-gateway-BYtptiIM.mjs} +1 -1
  13. package/dist/{ai-search-BexET_wp.mjs → ai-search-CJJ5XZTd.mjs} +1 -1
  14. package/dist/{ai-security-D4MxRlxX.mjs → ai-security-CidIWQ2m.mjs} +1 -1
  15. package/dist/{alerting-rw8Oi3x7.mjs → alerting-CVatzxaS.mjs} +1 -1
  16. package/dist/{analytics-q-guNEOK.mjs → analytics-BWJAOVxo.mjs} +1 -1
  17. package/dist/{analytics-engine-Bk7dQLcm.mjs → analytics-engine-CZgKAEo0.mjs} +1 -1
  18. package/dist/api-X3wKppsT.mjs +3 -0
  19. package/dist/{api-security-BDc6gkf1.mjs → api-security-CAeFfkOp.mjs} +1 -1
  20. package/dist/{argo-CnLIqm0i.mjs → argo-YKMl_X-Q.mjs} +1 -1
  21. package/dist/{artifacts-Cil33dzV.mjs → artifacts-CrWK_jdk.mjs} +1 -1
  22. package/dist/{audit-logs--E2Eclb7.mjs → audit-logs-C7Z4o6lL.mjs} +1 -1
  23. package/dist/{auth-BtZmY6sE.mjs → auth-0yg8UHy1.mjs} +1 -1
  24. package/dist/auth-DCnxMUAZ.mjs +2 -0
  25. package/dist/{auth-BcNLQji1.mjs → auth-DkPhAgZv.mjs} +1 -1
  26. package/dist/{auth-token-aF5AVLlH.mjs → auth-token-C-ushV4K.mjs} +1 -1
  27. package/dist/{autoconfig-Dbp6J25P.mjs → autoconfig-CwWsgTP2.mjs} +12 -12
  28. package/dist/{basin-catalog-dnVyzopm.mjs → basin-catalog-Df0BLUfb.mjs} +1 -1
  29. package/dist/{billing-Fqp3jB2V.mjs → billing-C7qD2cBJ.mjs} +1 -1
  30. package/dist/blocks-hVx18MUM.mjs +5 -0
  31. package/dist/body-parser-BKcZS9iJ.mjs +2 -0
  32. package/dist/{bot-management-SEDgo1Xg.mjs → bot-management-Dv2tluEZ.mjs} +1 -1
  33. package/dist/{botnet-feed-DPqR4M0Y.mjs → botnet-feed-DrIY4gpG.mjs} +1 -1
  34. package/dist/{brand-protection-B8vwKfM9.mjs → brand-protection-of9uwStG.mjs} +1 -1
  35. package/dist/{browser-run-BybYDq3I.mjs → browser-run-CbMV-Pf5.mjs} +1 -1
  36. package/dist/build-DHPdqjpj.mjs +2 -0
  37. package/dist/{build-CWlpWVBf.mjs → build-Yf5bvUk2.mjs} +1 -1
  38. package/dist/{builds-CvtOG-Gk.mjs → builds-DQrlz2-K.mjs} +1 -1
  39. package/dist/{cache-Bme_d2Wx.mjs → cache-suoMuQMh.mjs} +1 -1
  40. package/dist/{cf-fIBhEAxU.mjs → cf-CInFH4Ng.mjs} +1 -1
  41. package/dist/{chunk-XVBBSNW2-DfMyGS-l.mjs → chunk-3PJ54H4K-C8sxQzhB.mjs} +25 -25
  42. package/dist/{chunk-DSGVRFIS-DHC6NOIj.mjs → chunk-DSGVRFIS-CP2xC0bc.mjs} +1 -1
  43. package/dist/{cli-CIKDqm-u.mjs → cli-BjAkPFKt.mjs} +1 -1
  44. package/dist/{client-side-security-ZQeRoo1t.mjs → client-side-security-lh4tvRH8.mjs} +1 -1
  45. package/dist/{cloud-connector-BeunZlNV.mjs → cloud-connector-C65g5ddh.mjs} +1 -1
  46. package/dist/{cloudflared-DbzoIouQ.mjs → cloudflared-FEg1GxHT.mjs} +1 -1
  47. package/dist/cloudforce-one-C2K8Sbji.mjs +316 -0
  48. package/dist/{command-C9CNvZi_.mjs → command-BHJu931_.mjs} +1 -1
  49. package/dist/{command-orlUsdgf.mjs → command-BaIY4UuC.mjs} +1 -1
  50. package/dist/{command-C6kE7BU0.mjs → command-BfoLlrr1.mjs} +1 -1
  51. package/dist/{command-CkZkTjIj.mjs → command-BqEoltQG.mjs} +1 -1
  52. package/dist/{command-B3uWlw57.mjs → command-C2ZXXZI4.mjs} +1 -1
  53. package/dist/{command-BGRucANI.mjs → command-C5465_vZ.mjs} +1 -1
  54. package/dist/{command-CzWWQv8j.mjs → command-CBQp3Znu.mjs} +1 -1
  55. package/dist/{command-CtlD6MEi.mjs → command-CKXrXY0q.mjs} +1 -1
  56. package/dist/{command-CQ5qHE7n.mjs → command-Cby3gjqh.mjs} +1 -1
  57. package/dist/{command-prWMAJbg.mjs → command-CszTdUQV.mjs} +1 -1
  58. package/dist/{command-CqKRlHGv.mjs → command-D3E7d8E7.mjs} +1 -1
  59. package/dist/{command-DkwmylF2.mjs → command-DCJgoFz9.mjs} +1 -1
  60. package/dist/{command-DWWuXQV8.mjs → command-DRBtP4R8.mjs} +1 -1
  61. package/dist/{command-rUCxlpQI.mjs → command-DrdxR1tJ.mjs} +1 -1
  62. package/dist/{completions-2Otv0HMd.mjs → completions-DIIrktem.mjs} +1 -1
  63. package/dist/{connector-interrupts-Dfhxupmg.mjs → connector-interrupts-B4xZTu7K.mjs} +1 -1
  64. package/dist/{connector-telemetry-events-CLVpDTIa.mjs → connector-telemetry-events-DtTO6KCB.mjs} +1 -1
  65. package/dist/{connector-telemetry-snapshots-E_1tmNmQ.mjs → connector-telemetry-snapshots-BS1Cq8v_.mjs} +1 -1
  66. package/dist/{connectors-ChJpQFSl.mjs → connectors-CUywNbTu.mjs} +1 -1
  67. package/dist/{containers-Cj5-9nUg.mjs → containers-CQxEk5xO.mjs} +2 -2
  68. package/dist/containers-DCL31jYE.mjs +380 -0
  69. package/dist/{content-scan-CIA_9PV8.mjs → content-scan-6BGlT-em.mjs} +1 -1
  70. package/dist/{context-DVh8Wyfs.mjs → context-DoGlohS-.mjs} +1 -1
  71. package/dist/{cps-hJkqdsHx.mjs → cps-BoQ1alPM.mjs} +1 -1
  72. package/dist/create-BtmuVqVL.mjs +2 -0
  73. package/dist/{csam-scanner-cCVO3lNF.mjs → csam-scanner-OFnvPsqP.mjs} +1 -1
  74. package/dist/{custom-csrs-BrTWUZ0c.mjs → custom-csrs-BT-kjyPt.mjs} +1 -1
  75. package/dist/{custom-hostnames-C4ft77oC.mjs → custom-hostnames-ItOUZwKc.mjs} +1 -1
  76. package/dist/{custom-nameservers-BWfrZhD1.mjs → custom-nameservers-BZ1SzRQI.mjs} +1 -1
  77. package/dist/{custom-pages-DqTMKtRc.mjs → custom-pages-rIzNbxrh.mjs} +1 -1
  78. package/dist/{d1-B58AA9PA.mjs → d1-DtEeX2ua.mjs} +4 -4
  79. package/dist/{delegate-D7yYckA4.mjs → delegate-3IgxBeFH.mjs} +1 -1
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-CEROLAdh.mjs → deploy-CvIiOhGj.mjs} +1 -1
  82. package/dist/{deploy-context-Do89WayB.mjs → deploy-context-CCahKKFs.mjs} +1 -1
  83. package/dist/{deploy-input-DyMuMsi5.mjs → deploy-input-BusFZFqu.mjs} +1 -1
  84. package/dist/{dev-BaFS7kOM.mjs → dev-2hNwTy0s.mjs} +1 -1
  85. package/dist/{diagnostics-4gfYj7Pf.mjs → diagnostics-Di6xJHuC.mjs} +1 -1
  86. package/dist/dist-D5YYi2LO.mjs +453 -0
  87. package/dist/{dls-ClWVxTBg.mjs → dls-CAlQiQv4.mjs} +1 -1
  88. package/dist/{dns-CML-wxIt.mjs → dns-BzxLC4D1.mjs} +1 -1
  89. package/dist/{dns-firewall-CL0b3dJ1.mjs → dns-firewall-CHVL95X_.mjs} +1 -1
  90. package/dist/{docs-BeYBHwUN.mjs → docs-SWvG8lKe.mjs} +1 -1
  91. package/dist/{dotenv-CmPRiXmU.mjs → dotenv-qsoPELMm.mjs} +1 -1
  92. package/dist/{durable-objects-uZECeq_f.mjs → durable-objects-DZl4seSi.mjs} +1 -1
  93. package/dist/{email-auth-CCNW798I.mjs → email-auth-hHJQmtYR.mjs} +1 -1
  94. package/dist/{email-domains-1rD1d84O.mjs → email-domains-BBFPOLQx.mjs} +1 -1
  95. package/dist/{email-routing-CYv-LrbV.mjs → email-routing-Cimk4lg2.mjs} +1 -1
  96. package/dist/{email-security-CWEUYPYo.mjs → email-security-DiNFIpmg.mjs} +1 -1
  97. package/dist/{email-sending-DHSzCfJx.mjs → email-sending-yIqoikwn.mjs} +3 -3
  98. package/dist/{error-sanitization-DWJ5ka7h.mjs → error-sanitization-ahuAGEjT.mjs} +1 -1
  99. package/dist/error-sanitization-rodO1WCL.mjs +2 -0
  100. package/dist/{errors-ol9sMqSe.mjs → errors-d_Ld5w3d.mjs} +5 -5
  101. package/dist/{field-extractors-CuBM_uO4.mjs → field-extractors-CiuZnMX2.mjs} +1 -1
  102. package/dist/{firewall-SMIUSypF.mjs → firewall-B8QK0M1Y.mjs} +1 -1
  103. package/dist/{flagship-D3v6iDdw.mjs → flagship-Dh0-PZgv.mjs} +1 -1
  104. package/dist/{fraud-B2f7O15X.mjs → fraud-DDebasT8.mjs} +1 -1
  105. package/dist/get-Be821dio.mjs +2 -0
  106. package/dist/{google-tag-gateway-BwOc62Gy.mjs → google-tag-gateway-BPrh4DbT.mjs} +1 -1
  107. package/dist/{healthchecks-BQXHnihB.mjs → healthchecks-CF8SJ-wN.mjs} +1 -1
  108. package/dist/{hyperdrive-Bd6Yfje3.mjs → hyperdrive-B9uPSMiW.mjs} +1 -1
  109. package/dist/{iam-qJPI1_aZ.mjs → iam-g9EBjHMK.mjs} +1 -1
  110. package/dist/{images-goHZJOxy.mjs → images-BqSlZF88.mjs} +1 -1
  111. package/dist/index.mjs +1 -1
  112. package/dist/{init-CVx0Ya1E.mjs → init-CIfT7Qx1.mjs} +1 -1
  113. package/dist/{intel-CwiqwJI9.mjs → intel-D8nT11Y4.mjs} +1 -1
  114. package/dist/{interactive-D4E8PdaW.mjs → interactive-DOWEcR6_.mjs} +8 -4
  115. package/dist/{internal-5cnlw9mH.mjs → internal-C7zUQ4fS.mjs} +1 -1
  116. package/dist/{ips-KBxmXhvO.mjs → ips-DwrIBecV.mjs} +1 -1
  117. package/dist/{k2-KhIP5NFT.mjs → k2-7r63P37v.mjs} +1 -1
  118. package/dist/{kv-CCem2sEY.mjs → kv-BQSq0aQ5.mjs} +1 -1
  119. package/dist/{lazy-command-BMhD5ffF.mjs → lazy-command-JgUZQW-c.mjs} +1 -1
  120. package/dist/{leaked-credential-checks-BkPZiwE2.mjs → leaked-credential-checks-Bu2NYq31.mjs} +1 -1
  121. package/dist/{live-BhHzxFna.mjs → live-ZSukf_dI.mjs} +1 -1
  122. package/dist/{load-balancers-17GBXdju.mjs → load-balancers-CthmhsmC.mjs} +1 -1
  123. package/dist/local-CxTyXQlK.mjs +2 -0
  124. package/dist/{local-CSH3UMpD.mjs → local-Y4rIAAtA.mjs} +1 -1
  125. package/dist/{local-runtime-KOFLRZeZ.mjs → local-runtime-Crs0aOFO.mjs} +1 -1
  126. package/dist/login-C_gOc9pk.mjs +2 -0
  127. package/dist/{login-Buhvx6Fi.mjs → login-lXb4Sqs9.mjs} +1 -1
  128. package/dist/{logpush-BCCUxa4J.mjs → logpush-Mw2VklWj.mjs} +1 -1
  129. package/dist/{logs-4CwupKRG.mjs → logs-DQrNjo77.mjs} +1 -1
  130. package/dist/{magic-cloud-networking-Xy6SC-V-.mjs → magic-cloud-networking-D8s1hN3K.mjs} +1 -1
  131. package/dist/{magic-network-monitoring-B8pRZp2g.mjs → magic-network-monitoring-f0ccLJlt.mjs} +1 -1
  132. package/dist/{magic-transit-CwfO3OOX.mjs → magic-transit-7WpZJc0a.mjs} +1 -1
  133. package/dist/{managed-defense-CtFLuvuB.mjs → managed-defense-QLYmbNgC.mjs} +1 -1
  134. package/dist/{managed-transforms-Hto8OCBS.mjs → managed-transforms-CkaQn7tC.mjs} +1 -1
  135. package/dist/{mcp-SQ0MAVUJ.mjs → mcp-Di1X9Amj.mjs} +1 -1
  136. package/dist/{mesh-C8A6tVqA.mjs → mesh-CkvqQb6B.mjs} +1 -1
  137. package/dist/{migrate-Dufxsb_F.mjs → migrate-KOhIz9fX.mjs} +1 -1
  138. package/dist/{monetization-CYVaCAe9.mjs → monetization-C9c2OCag.mjs} +1 -1
  139. package/dist/{network-CJBTdEM3.mjs → network-0PlPsgfJ.mjs} +1 -1
  140. package/dist/{network-interconnects-CKlNFj3i.mjs → network-interconnects-BeiuYp7F.mjs} +1 -1
  141. package/dist/{o11y-5x2Q8CWm.mjs → o11y-Ys4wGQJ8.mjs} +1 -1
  142. package/dist/{oauth-D_A8AcIS.mjs → oauth-BL039mqa.mjs} +1 -1
  143. package/dist/{oauth-BN6_FpYp.mjs → oauth-BX5dMp7e.mjs} +1 -1
  144. package/dist/{oauth-clients-qKXg8ZH3.mjs → oauth-clients-DhVG_Upv.mjs} +1 -1
  145. package/dist/{oauth-scopes-Ct1jDyC5.mjs → oauth-scopes-B1n8hUMj.mjs} +1 -1
  146. package/dist/{organization-lBQSeqS1.mjs → organization-8ateLjgl.mjs} +1 -1
  147. package/dist/{organizations-DEX8Er3g.mjs → organizations-DdQAC66Z.mjs} +1 -1
  148. package/dist/{origin-post-quantum-encryption-DUsxVGCs.mjs → origin-post-quantum-encryption-D9qT0WUV.mjs} +1 -1
  149. package/dist/package-C4H_6MHV.mjs +2 -0
  150. package/dist/{page-rules-BMt6nt03.mjs → page-rules-DlOky6Zl.mjs} +1 -1
  151. package/dist/{pages-Jxa92ECz.mjs → pages-BcqYjzyx.mjs} +2 -2
  152. package/dist/{pay-per-crawl-Cv0044CZ.mjs → pay-per-crawl-DtYmYcHH.mjs} +1 -1
  153. package/dist/{pay-per-use-DGEeG-dC.mjs → pay-per-use-DOUCWPNy.mjs} +1 -1
  154. package/dist/{pipelines-CEC78A3w.mjs → pipelines-8yHQduBt.mjs} +1 -1
  155. package/dist/{precursor-Ba0Ejhzt.mjs → precursor-CX7gjIRG.mjs} +1 -1
  156. package/dist/{previews-DnZbUTym.mjs → previews-WL-CudUP.mjs} +1 -1
  157. package/dist/{progress-CtGsPOpV.mjs → progress-D2_AF54c.mjs} +1 -1
  158. package/dist/{prompt-YrI7ltMa.mjs → prompt-BBR19lgj.mjs} +1 -1
  159. package/dist/{queues-Chq997uj.mjs → queues-BDNnjJ5M.mjs} +1 -1
  160. package/dist/{r2-BFgZDs-F.mjs → r2-B9b18zom.mjs} +1 -1
  161. package/dist/{radar-DJdDzLJw.mjs → radar-BCxOSIwx.mjs} +1 -1
  162. package/dist/{raw-fetch-BE3QgdTE.mjs → raw-fetch-BFcMz5hY.mjs} +1 -1
  163. package/dist/{ready-Cok0aqke.mjs → ready-C8zZ63yB.mjs} +1 -1
  164. package/dist/{realtime-BHWWCiKp.mjs → realtime-C8z8iTs4.mjs} +73 -71
  165. package/dist/{registrar-9Y-1IQ0n.mjs → registrar-BTMp4ivm.mjs} +1 -1
  166. package/dist/{registrar-sandbox-DTS1kRnb.mjs → registrar-sandbox-C2PG_Alv.mjs} +1 -1
  167. package/dist/{registry-Bm-GgDC3.mjs → registry-DpNVjLuS.mjs} +1 -1
  168. package/dist/{reporting-D5RbKQJf.mjs → reporting-BQY6_uXf.mjs} +1 -1
  169. package/dist/{request-headers-KhW_hy36.mjs → request-headers-_yTB3kAw.mjs} +1 -1
  170. package/dist/{request-tracers-wxWCjmHo.mjs → request-tracers-Dijdzs6y.mjs} +1 -1
  171. package/dist/{resource-sharing-BGoaVvJa.mjs → resource-sharing-DYaOk_EC.mjs} +1 -1
  172. package/dist/{rules-Cd3EjhdF.mjs → rules-TsOBYamD.mjs} +1 -1
  173. package/dist/{rulesets-Bnz3rSBT.mjs → rulesets-BICRAp0v.mjs} +1 -1
  174. package/dist/{rum-CK9HEe3O.mjs → rum-wY_8vewy.mjs} +1 -1
  175. package/dist/{run-DnZGQbq_.mjs → run-C2-1SFrS.mjs} +1 -1
  176. package/dist/run-C9r-Beel.mjs +2 -0
  177. package/dist/{schema-flags-BrDlFwLv.mjs → schema-flags-DHP8ll5_.mjs} +1 -1
  178. package/dist/{scim-UdqaWnOu.mjs → scim-BCB-RVUX.mjs} +1 -1
  179. package/dist/{secrets-store-Bf5v96LC.mjs → secrets-store-BR-h9nxX.mjs} +3 -3
  180. package/dist/{security-insights-BAGySlGu.mjs → security-insights-C3pM4_QG.mjs} +1 -1
  181. package/dist/{security-txt-D0fMmjHs.mjs → security-txt-BYeDQJyf.mjs} +1 -1
  182. package/dist/{session-6xqrJWXy.mjs → session-CG79ZLE9.mjs} +1 -1
  183. package/dist/{shared-DYRRG9A-.mjs → shared-Z4B68uro.mjs} +1 -1
  184. package/dist/{signed-url-Ce0muRem.mjs → signed-url-BWwUnIl-.mjs} +1 -1
  185. package/dist/{smart-shield-CCy7_M3j.mjs → smart-shield-Dlsh9Xdx.mjs} +1 -1
  186. package/dist/{snippets-Bc8m3HSV.mjs → snippets-DWTJdzIF.mjs} +1 -1
  187. package/dist/{spawn-BAEdy9kS.mjs → spawn-DdvGNWEs.mjs} +1 -1
  188. package/dist/{spectrum-DtNX8WBX.mjs → spectrum-RbNSnJya.mjs} +1 -1
  189. package/dist/{speed-TbkeWV_x.mjs → speed-Bh18cP0e.mjs} +1 -1
  190. package/dist/{sql-DI319y25.mjs → sql-BKjCDDS-.mjs} +1 -1
  191. package/dist/src-BZtxQa8v.mjs +131 -0
  192. package/dist/{ssl-D0MIzFl2.mjs → ssl-BHMbK4Be.mjs} +1 -1
  193. package/dist/{startup-profile-DlWrt4Fm.mjs → startup-profile-B7yHR_YB.mjs} +2 -4
  194. package/dist/startup-profile-zt6cFnBn.mjs +2 -0
  195. package/dist/state-C5mQ9At8.mjs +2 -0
  196. package/dist/{state-DazGSbRx.mjs → state-DNuVv5i-.mjs} +1 -1
  197. package/dist/{stream-4Mrb8HEo.mjs → stream-BFs1vbTA.mjs} +1 -1
  198. package/dist/{tags-BP25qydR.mjs → tags-ACINMEUC.mjs} +1 -1
  199. package/dist/{telemetry-DKSJSLtq.mjs → telemetry-Da9TmAgm.mjs} +1 -1
  200. package/dist/telemetry-Q7QghPwV.mjs +2 -0
  201. package/dist/{tenant-jmfZqEZ4.mjs → tenant-Decq0ghq.mjs} +1 -1
  202. package/dist/{tenant-custom-nameservers-BzVP85Tq.mjs → tenant-custom-nameservers-CGcqESj5.mjs} +1 -1
  203. package/dist/{tunnels-BNswR1Dj.mjs → tunnels-ff1a_ucB.mjs} +2 -2
  204. package/dist/{turnstile-BgsTP2fz.mjs → turnstile-BmJeENqH.mjs} +1 -1
  205. package/dist/ui-C1y5cXUM.mjs +2 -0
  206. package/dist/{update-check-C7mfEeQ7.mjs → update-check-BjlU_02g.mjs} +1 -1
  207. package/dist/{update-check-BOF1hn_I.mjs → update-check-imcniBzu.mjs} +1 -1
  208. package/dist/update-check-worker.mjs +1 -1
  209. package/dist/{url-normalization-Bqrs4-2F.mjs → url-normalization-DPqqTNzy.mjs} +1 -1
  210. package/dist/{url-scanner-Dm4Fps5T.mjs → url-scanner-SmzhVLS-.mjs} +1 -1
  211. package/dist/{user-u_LxzLM4.mjs → user-LDJcWt0X.mjs} +1 -1
  212. package/dist/{vectorize-DLGiOyd4.mjs → vectorize-D57FE9YT.mjs} +1 -1
  213. package/dist/version-CbBZJTiB.mjs +2 -0
  214. package/dist/{waiting-rooms-DmgJgJXb.mjs → waiting-rooms-Bp5glzYE.mjs} +1 -1
  215. package/dist/{web-assets-rNhZWP-6.mjs → web-assets-BzSBU057.mjs} +1 -1
  216. package/dist/{web3-BVBdFt8E.mjs → web3-DmeS2XCY.mjs} +1 -1
  217. package/dist/{workers-CjUKJvH8.mjs → workers-BUmSAYvI.mjs} +2 -2
  218. package/dist/{workers-builds-D3Q97l7X.mjs → workers-builds-BRRyYyDr.mjs} +1 -1
  219. package/dist/{workers-for-platforms-C_fcw30y.mjs → workers-for-platforms-Bq5hpU-X.mjs} +1 -1
  220. package/dist/{workers-vpc-CnRO3Stc.mjs → workers-vpc-Dn83sJ0S.mjs} +1 -1
  221. package/dist/{workflows-cpHFe5v6.mjs → workflows-BI1Oqr1y.mjs} +1 -1
  222. package/dist/wrangler-migration-DHfxfsd8.mjs +946 -0
  223. package/dist/{zaraz-BRj0J7vK.mjs → zaraz-eWdwn_FV.mjs} +1 -1
  224. package/dist/{zero-trust-CVZKDLCB.mjs → zero-trust-Dj_s_8u8.mjs} +37 -37
  225. package/dist/{zones-C4S_kpGz.mjs → zones-D7J5AMUO.mjs} +50 -48
  226. package/package.json +14 -14
  227. package/dist/agent-context-DFEgYjEQ.mjs +0 -2
  228. package/dist/api-eMuS5GI1.mjs +0 -3
  229. package/dist/auth-B0lEsD_1.mjs +0 -2
  230. package/dist/blocks-BOQH-Won.mjs +0 -5
  231. package/dist/body-parser-ChnyBsfm.mjs +0 -2
  232. package/dist/build-BqGmiORA.mjs +0 -2
  233. package/dist/cloudforce-one-D20t9ojD.mjs +0 -370
  234. package/dist/containers-CzAZfmnj.mjs +0 -380
  235. package/dist/create-OXylMu6m.mjs +0 -2
  236. package/dist/dist-BtzWfAjU.mjs +0 -453
  237. package/dist/error-sanitization-Byb-_IS9.mjs +0 -2
  238. package/dist/get-iPUHxD1r.mjs +0 -2
  239. package/dist/local-CAs8RWYW.mjs +0 -2
  240. package/dist/login-BTiflOun.mjs +0 -2
  241. package/dist/package-BqSbnt6u.mjs +0 -2
  242. package/dist/run-Be6Js7D6.mjs +0 -2
  243. package/dist/src-Dc6ojwUW.mjs +0 -117
  244. package/dist/startup-profile-CZYtQziF.mjs +0 -2
  245. package/dist/state-B3Uy1jPX.mjs +0 -2
  246. package/dist/telemetry-CvZean4s.mjs +0 -2
  247. package/dist/ui-Bo6DCvbS.mjs +0 -2
  248. package/dist/version-DmTuWNZ5.mjs +0 -2
  249. package/dist/wrangler-migration-DQehjmoh.mjs +0 -946
  250. package/dist/zone-N6ccK70C.mjs +0 -4
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r,t as i}from"./version-DmTuWNZ5.mjs";import{n as a}from"./blocks-BOQH-Won.mjs";import{t as o}from"./session-6xqrJWXy.mjs";import{t as s}from"./errors-ol9sMqSe.mjs";import{n as c,t as l}from"./project-settings-nBMEx1f-.mjs";import{a as u,n as d,o as f,t as p}from"./cf-fIBhEAxU.mjs";import{c as m,i as h,l as g,o as _}from"./log-BWdaOGOW.mjs";import{n as v}from"./context-DVh8Wyfs.mjs";import{n as y}from"./interactive-wQM7Blhm.mjs";import{i as b}from"./dialog-D5lus4M4.mjs";import{relative as x}from"node:path";function S(t,n={}){let{cwd:r=process.cwd(),output:i=process.stderr}=n,o=n.columns??(i.columns||80),s=c(r),u=s?x(r,s):l,d=s?`To make this the project's default account, add accountId to ${u}:`:`To make this the project's default account, create ${u}:`,f=/* @__PURE__ */ new Set([`accountId`,u]),p=a(d,Math.max(20,o-3)).map(t=>t.split(` `).map(t=>{let n=t.replace(/:$/,``);return f.has(n)?`${e.code(n)}${t.slice(n.length)}`:t}).join(` `));h.info(p.join(`
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{t as n}from"./cli-exit-CstFZ1eJ.mjs";import{n as r,t as i}from"./version-CbBZJTiB.mjs";import{n as a}from"./blocks-hVx18MUM.mjs";import{t as o}from"./session-CG79ZLE9.mjs";import{t as s}from"./errors-d_Ld5w3d.mjs";import{n as c,t as l}from"./project-settings-nBMEx1f-.mjs";import{a as u,n as d,o as f,t as p}from"./cf-CInFH4Ng.mjs";import{c as m,i as h,l as g,o as _}from"./log-BWdaOGOW.mjs";import{n as v}from"./context-DoGlohS-.mjs";import{n as y}from"./interactive-wQM7Blhm.mjs";import{i as b}from"./dialog-D5lus4M4.mjs";import{relative as x}from"node:path";function S(t,n={}){let{cwd:r=process.cwd(),output:i=process.stderr}=n,o=n.columns??(i.columns||80),s=c(r),u=s?x(r,s):l,d=s?`To make this the project's default account, add accountId to ${u}:`:`To make this the project's default account, create ${u}:`,f=/* @__PURE__ */ new Set([`accountId`,u]),p=a(d,Math.max(20,o-3)).map(t=>t.split(` `).map(t=>{let n=t.replace(/:$/,``);return f.has(n)?`${e.code(n)}${t.slice(n.length)}`:t}).join(` `));h.info(p.join(`
3
3
  `),{output:i});let m=`accountId: ${e.jsonString(JSON.stringify(t))},`,g=s?[m]:[`import { defineConfig } from "cf/config";`,``,`export default defineConfig({`,` ${m}`,`});`],_=` `.repeat(3);i.write(`\n${g.map(e=>e&&_+e).join(`
4
4
  `)}\n\n`)}const C={debug:(...e)=>{process.env.DEBUG&&console.error(...e)},info:(...e)=>console.error(...e),log:(...e)=>console.error(...e),warn:(...e)=>console.error(...e),error:(...e)=>console.error(...e)};var w=class extends Error{};async function T(e){if(y())throw new w;o(r);let t=await m({message:b(e),output:process.stderr});if(g(t)||typeof t!=`string`)throw new n(130,{cancelled:!0});return t}async function E(e,i){if(y())throw new w;o(r);let a=await _({message:e,output:process.stderr,options:i.choices.map(({title:e,value:t})=>({label:e,value:t}))});if(g(a)||typeof a!=`string`)throw new n(130,{cancelled:!0});return t()||S(a),a}const D=p({logger:C,userAgent:i,prompt:T,select:E,isNoDefaultValueProvidedError:e=>e instanceof w});let O=!1;function k(e,t){O=e,D.setTemporaryAllowed(e,t)}function A(){return O}async function j(e){if(!A())throw Error(`Temporary accounts require --temporary-account.`);try{let t=await D.requireAuth({compliance_region:e?.complianceRegion??await v(e)}),{apiToken:n}=D.requireApiToken();return{accountId:t,apiToken:n}}catch(e){throw e instanceof Error&&(e.message=e.message.replaceAll(/--temporary(?!-account)/g,`--temporary-account`)),e}}async function M(e,t){try{return await D.getOrSelectAccountId({account_id:e,compliance_region:t?.complianceRegion??await v(t)})}catch(e){throw e instanceof Error&&!(`reason`in e)&&`telemetryMessage`in e&&e.telemetryMessage===`cfetch auth login required`&&y()&&D.getAPIToken()===void 0?new s(e.message,{cause:e}):e}}function N(){return D.getActiveAccountId({})}async function P(){return D.fetchAllAccounts({compliance_region:await v()},{throwOnEmpty:!1})}async function F(e){if(e?.scopes&&!f(e.scopes))throw Error(`One or more of the requested scopes are not valid cf OAuth scopes.`);return D.login({compliance_region:await v()},{browser:e?.browser??!0,device:e?.device??!0,...e?.scopes&&{scopes:e.scopes},...e?.profile&&{profile:e.profile}})}function I(e){return D.logout(e)}function L(e){D.setProfile(e)}function R(e){u(e,{logger:C,getCredentialStore:()=>D.getCredentialStore()})}function z(){return D.getActiveProfile()}function B(){return d({logger:C})}function V(e,t=process.cwd()){let n=B().resolve({profile:e,cwd:t});return L(n),n}function H(){return D.getOAuthTokenFromLocalState()}function U(){return D.readAuthCredentials()?.oauth_token!==void 0}function W(){return D.readAuthCredentials()}function G(){return D.getCredentialStore().path()}export{k as _,M as a,U as c,I as d,W as f,L as g,R as h,G as i,A as l,V as m,N as n,B as o,j as p,z as r,H as s,P as t,F as u};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export{n as getActiveAccountId,a as getOrSelectAccountId,l as isTemporaryAccountRequested,p as requireTemporaryAccount,m as resolveProfile,_ as setTemporaryAccountRequested}from"./oauth-D_A8AcIS.mjs";
2
+ export{n as getActiveAccountId,a as getOrSelectAccountId,l as isTemporaryAccountRequested,p as requireTemporaryAccount,m as resolveProfile,_ as setTemporaryAccountRequested}from"./oauth-BL039mqa.mjs";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-YrI7ltMa.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/oauth_clients`,body:`json`};function g(e){return e.usage(`$0 oauth-clients create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.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-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/oauth_clients`,body:`json`};function g(e){return e.usage(`$0 oauth-clients create
3
3
 
4
4
  Create a new OAuth client for an account.`).option(`allowed-cors-origins`,{type:`string`,array:!0,description:`Array of allowed CORS origins.`}).option(`client-name`,{type:`string`,description:`Human-readable name of the OAuth client.`}).option(`client-uri`,{type:`string`,description:`URL of the home page of the client.`}).option(`grant-types`,{type:`string`,array:!0,description:"Array of OAuth grant types the client is allowed to use. `authorization_code` is required; `refresh_token` may be included optionally."}).option(`logo-uri`,{type:`string`,description:`URL of the client's logo.`}).option(`optional-scopes`,{type:`string`,array:!0,description:"Scopes that the authorizing user may decline during consent. Each value must also appear in `scopes`. The scopes `openid`, `offline`, and `offline_access` cannot be optional."}).option(`policy-uri`,{type:`string`,description:`URL that points to a privacy policy document.`}).option(`post-logout-redirect-uris`,{type:`string`,array:!0,description:`Array of allowed post-logout redirect URIs.`}).option(`redirect-uris`,{type:`string`,array:!0,description:`Array of allowed redirect URIs for the client.`}).option(`response-types`,{type:`string`,array:!0,description:`Array of OAuth response types the client is allowed to use.`}).option(`scopes`,{type:`string`,array:!0,description:"Array of OAuth scopes the client is allowed to request. Colon-delimited scopes are not accepted. Dot-delimited scopes are validated against available OAuth API scopes; simple identity scopes are allowed. Protocol scopes `offline_access` and `openid` are added or removed automatically based on `grant_types` and `response_types`."}).option(`token-endpoint-auth-method`,{type:`string`,description:`The authentication method the client uses at the token endpoint.`,choices:[`none`,`client_secret_basic`,`client_secret_post`]}).coerce(`token-endpoint-auth-method`,e=>d(e,`token-endpoint-auth-method`,`text`)).option(`tos-uri`,{type:`string`,description:`URL that points to a terms of service document.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create`,describe:`Create OAuth Client`,builder:g,handler:async e=>c({command:`oauth-clients create`,classification:{safeFlags:[`token-endpoint-auth-method`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf oauth-clients create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/oauth_clients`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({allowed_cors_origins:e[`allowed-cors-origins`],client_name:d(e[`client-name`],`client-name`,`text`),client_uri:d(e[`client-uri`],`client-uri`,`text`),grant_types:e[`grant-types`],logo_uri:d(e[`logo-uri`],`logo-uri`,`text`),optional_scopes:e[`optional-scopes`],policy_uri:d(e[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:e[`post-logout-redirect-uris`],redirect_uris:e[`redirect-uris`],response_types:e[`response-types`],scopes:e.scopes,token_endpoint_auth_method:e[`token-endpoint-auth-method`],tos_uri:d(e[`tos-uri`],`tos-uri`,`text`)}):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}if(e[`client-name`]===void 0&&(e[`client-name`]=await f(`client-name`,`Human-readable name of the OAuth client.`)),e[`grant-types`]===void 0)throw Error(`--grant-types is required (or pass --body with this field set).`);if(e[`redirect-uris`]===void 0)throw Error(`--redirect-uris is required (or pass --body with this field set).`);if(e[`response-types`]===void 0)throw Error(`--response-types is required (or pass --body with this field set).`);if(e.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);e[`token-endpoint-auth-method`]===void 0&&(e[`token-endpoint-auth-method`]=await p(`token-endpoint-auth-method`,`The authentication method the client uses at the token endpoint.`,[`none`,`client_secret_basic`,`client_secret_post`]));let g=u({allowed_cors_origins:e[`allowed-cors-origins`],client_name:d(e[`client-name`],`client-name`,`text`),client_uri:d(e[`client-uri`],`client-uri`,`text`),grant_types:e[`grant-types`],logo_uri:d(e[`logo-uri`],`logo-uri`,`text`),optional_scopes:e[`optional-scopes`],policy_uri:d(e[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:e[`post-logout-redirect-uris`],redirect_uris:e[`redirect-uris`],response_types:e[`response-types`],scopes:e.scopes,token_endpoint_auth_method:e[`token-endpoint-auth-method`],tos_uri:d(e[`tos-uri`],`tos-uri`,`text`)}),_=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}/oauth_clients/${t.oauth_client_id}/rotate_secret`};function y(e){return e.usage(`$0 oauth-clients delete-rotated-secret <oauth-client-id>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{n as e}from"./auth-BcNLQji1.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./dry-run-gy0Hl9xo.mjs";import{t as r}from"./progress-CtGsPOpV.mjs";import{t as i}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";var a={method:`GET`,path:()=>`/oauth/scopes`};function o(e){return e.usage(`$0 oauth-scopes list
2
+ import{n as e}from"./auth-DkPhAgZv.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./dry-run-gy0Hl9xo.mjs";import{t as r}from"./progress-D2_AF54c.mjs";import{t as i}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";var a={method:`GET`,path:()=>`/oauth/scopes`};function o(e){return e.usage(`$0 oauth-scopes list
3
3
 
4
4
  List all available OAuth scopes. This endpoint requires authentication but has no authorization role requirements.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`list`,describe:`List OAuth Scopes`,builder:o,handler:async o=>i({command:`oauth-scopes list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf oauth-scopes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/oauth/scopes`,pathParams:{},bodyKind:`none`});return}let i=await e(o),s=await r(`Loading`,async()=>i.send(a));t(s,{successLabel:`Loaded`})})},c={command:`oauth-scopes`,describe:`oauth-scopes`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-CtGsPOpV.mjs";import{t as a}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as o,n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,i as d,n as f}from"./prompt-YrI7ltMa.mjs";var p={method:`GET`,path:t=>e`/organizations/${t.organization_id}/accounts`,query:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`order_by`,`direction`,`include_tags`,`include_total`,`page_token`,`page_size`],joined:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`order_by`,`direction`,`include_tags`,`include_total`,`page_token`,`page_size`]};function m(e){return e.usage(`$0 organization account list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-D2_AF54c.mjs";import{t as a}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as o,n as s,t as c}from"./body-parser-BKcZS9iJ.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,i as d,n as f}from"./prompt-BBR19lgj.mjs";var p={method:`GET`,path:t=>e`/organizations/${t.organization_id}/accounts`,query:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`order_by`,`direction`,`include_tags`,`include_total`,`page_token`,`page_size`],joined:[`account_pubname`,`account_pubname.startsWith`,`account_pubname.endsWith`,`account_pubname.contains`,`name`,`name.startsWith`,`name.endsWith`,`name.contains`,`order_by`,`direction`,`include_tags`,`include_total`,`page_token`,`page_size`]};function m(e){return e.usage(`$0 organization account list
3
3
 
4
4
  Retrieve the accounts immediately attached to a specific organization. Accounts attached to sub-organizations are not included.`).option(`organization-id`,{type:`string`,description:`The ID of the organization to retrieve a list of accounts for.`,demandOption:!0}).option(`account-pubname`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname is equal to
5
5
  a particular string.`}).option(`account-pubname-starts-with`,{type:`string`,description:`(case-insensitive) Filter the list of accounts to where the account_pubname starts with
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-CtGsPOpV.mjs";import{t as a}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";var o={method:`GET`,path:t=>e`/organizations/${t.organization_id}/billable/usage`,query:[`from`,`to`]};function s(e){return e.usage("$0 organizations billing usage get <organization-id>\n\nReturns cost and usage data for all accounts within an organization, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. The response includes usage for every account belonging to the specified organization. **Note:** This endpoint serves `usage` records only; cost and pricing fields are absent from responses. Rated costs are available per account via `POST /accounts/{account_id}/billable/usage` with `Metric: cost`. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days. An organization with no accounts, or an organization ID that does not exist, returns a successful response with an empty result set rather than an error.").positional(`organization-id`,{type:`string`,description:`Identifies the Cloudflare organization.`,demandOption:!0}).option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:s,handler:async e=>a({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={from:e.from,to:e.to};if(e.dryRun){r({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${e[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(e[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(e[`organization-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(e),c=await i(`Loading`,async()=>s.send(o,{organization_id:e[`organization-id`],...a}));n(c,{successLabel:`Loaded`})})},l={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},u={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/organizations/${t.organization_id}/logs/audit`,query:/* @__PURE__ */ `action_result,action_type,actor_context,actor_email,actor_id,actor_ip_address,actor_token_id,actor_token_name,actor_type,id,raw_cf_ray_id,raw_method,raw_status_code,raw_uri,resource_id,resource_product,resource_type,resource_scope,action_result.not,action_type.not,actor_context.not,actor_email.not,actor_id.not,actor_ip_address.not,actor_token_id.not,actor_token_name.not,actor_type.not,id.not,raw_cf_ray_id.not,raw_method.not,raw_status_code.not,raw_uri.not,resource_id.not,resource_product.not,resource_type.not,resource_scope.not,since,before,direction,limit,cursor`.split(`,`)};function f(e){return e.usage(`$0 organizations logs audit get <organization-id>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-D2_AF54c.mjs";import{t as a}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";var o={method:`GET`,path:t=>e`/organizations/${t.organization_id}/billable/usage`,query:[`from`,`to`]};function s(e){return e.usage("$0 organizations billing usage get <organization-id>\n\nReturns cost and usage data for all accounts within an organization, aligned with the [FinOps FOCUS v1.3](https://focus.finops.org/focus-specification/v1-3/) Cost and Usage dataset specification. Each record represents one billable metric for one account on one day. This includes all metered usage, including usage that falls within free-tier allowances and may result in zero cost. The response includes usage for every account belonging to the specified organization. **Note:** This endpoint serves `usage` records only; cost and pricing fields are absent from responses. Rated costs are available per account via `POST /accounts/{account_id}/billable/usage` with `Metric: cost`. When `from` and `to` are omitted, defaults to the start of the current month through today. The maximum date range is 31 days. An organization with no accounts, or an organization ID that does not exist, returns a successful response with an empty result set rather than an error.").positional(`organization-id`,{type:`string`,description:`Identifies the Cloudflare organization.`,demandOption:!0}).option(`from`,{type:`string`,description:"Start date for the usage query (ISO 8601). Required if `to` is set. When omitted along with `to`, defaults to the start of the current month. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`to`,{type:`string`,description:"End date for the usage query (ISO 8601). Required if `from` is set. When omitted along with `from`, defaults to today. Filters by charge period (when consumption happened), not billing period. The maximum date range is 31 days."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const c={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:s,handler:async e=>a({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let a={from:e.from,to:e.to};if(e.dryRun){r({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${e[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(e[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(e[`organization-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(e),c=await i(`Loading`,async()=>s.send(o,{organization_id:e[`organization-id`],...a}));n(c,{successLabel:`Loaded`})})},l={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},u={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(l).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/organizations/${t.organization_id}/logs/audit`,query:/* @__PURE__ */ `action_result,action_type,actor_context,actor_email,actor_id,actor_ip_address,actor_token_id,actor_token_name,actor_type,id,raw_cf_ray_id,raw_method,raw_status_code,raw_uri,resource_id,resource_product,resource_type,resource_scope,action_result.not,action_type.not,actor_context.not,actor_email.not,actor_id.not,actor_ip_address.not,actor_token_id.not,actor_token_name.not,actor_type.not,id.not,raw_cf_ray_id.not,raw_method.not,raw_status_code.not,raw_uri.not,resource_id.not,resource_product.not,resource_type.not,resource_scope.not,since,before,direction,limit,cursor`.split(`,`)};function f(e){return e.usage(`$0 organizations logs audit get <organization-id>
3
3
 
4
4
  Gets a list of audit logs for an organization.`).positional(`organization-id`,{type:`string`,description:`The unique id that identifies the organization.`,demandOption:!0}).option(`action-result`,{type:`string`,description:`Filters by whether the action was successful or not.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-context`,{type:`string`,description:"Filters by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email`,{type:`string`,description:`Filters by the actor's email address.`}).option(`actor-id`,{type:`string`,description:`Filters by the actor's user ID.`}).option(`actor-ip-address`,{type:`string`,description:`The IP address where the action was initiated.`}).option(`actor-token-id`,{type:`string`,description:`Filters by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name`,{type:`string`,description:`Filters by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type`,{type:`string`,description:`Filters by the actor type.`}).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`raw-cf-ray-id`,{type:`string`,description:`Filters by the response CF Ray ID.`}).option(`raw-method`,{type:`string`,description:`The HTTP method for the API call.`}).option(`raw-status-code`,{type:`string`,description:`The response status code that was returned.`}).option(`raw-uri`,{type:`string`,description:`Filters by the request URI.`}).option(`resource-id`,{type:`string`,description:`Filters by the resource ID.`}).option(`resource-product`,{type:`string`,description:`Filters audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type`,{type:`string`,description:`Filters audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope`,{type:`string`,description:`Filters by the resource scope, specifying whether the resource is associated with an organization.`}).option(`action-result-not`,{type:`string`,description:`Filters out audit logs by whether the action was successful or not.`}).option(`action-type-not`,{type:`string`,description:`Filters out audit logs by the action type.`}).option(`actor-context-not`,{type:`string`,description:"Filters out audit logs by the actor context.\n- `api`: The action was performed through the API. The specific credential type was not recorded.\n- `api_key`: The action was authenticated with a Cloudflare Global API Key.\n- `api_token`: The action was authenticated with an API token.\n- `dash`: The action was performed through the Cloudflare dashboard.\n- `oauth`: The action was authenticated with an OAuth token.\n- `origin_ca_key`: The action was authenticated with an Origin CA key."}).option(`actor-email-not`,{type:`string`,description:`Filters out audit logs by the actor's email address.`}).option(`actor-id-not`,{type:`string`,description:`Filters out audit logs by the actor's user ID.`}).option(`actor-ip-address-not`,{type:`string`,description:`Filters out audit logs IP address where the action was initiated.`}).option(`actor-token-id-not`,{type:`string`,description:`Filters out audit logs by the API token ID when the actor context is an api_token or oauth.`}).option(`actor-token-name-not`,{type:`string`,description:`Filters out audit logs by the API token name when the actor context is an api_token or oauth.`}).option(`actor-type-not`,{type:`string`,description:`Filters out audit logs by the actor type.`}).option(`id-not`,{type:`string`,description:`Filters out audit logs by their IDs.`}).option(`raw-cf-ray-id-not`,{type:`string`,description:`Filters out audit logs by the response CF Ray ID.`}).option(`raw-method-not`,{type:`string`,description:`Filters out audit logs by the HTTP method for the API call.`}).option(`raw-status-code-not`,{type:`string`,description:`Filters out audit logs by the response status code that was returned.`}).option(`raw-uri-not`,{type:`string`,description:`Filters out audit logs by the request URI.`}).option(`resource-id-not`,{type:`string`,description:`Filters out audit logs by the resource ID.`}).option(`resource-product-not`,{type:`string`,description:`Filters out audit logs by the Cloudflare product associated with the changed resource.`}).option(`resource-type-not`,{type:`string`,description:`Filters out audit logs based on the unique type of resource changed by the action.`}).option(`resource-scope-not`,{type:`string`,description:`Filters out audit logs by the resource scope, specifying whether the resource is associated with an organization.`}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get <organization-id>`,describe:`Get organization audit logs (Version 2)`,builder:f,handler:async e=>a({command:`organizations logs audit get`,classification:{safeFlags:[`direction`,`dry-run`]}},e,async()=>{let a={action_result:e[`action-result`],action_type:e[`action-type`],actor_context:e[`actor-context`],actor_email:e[`actor-email`],actor_id:e[`actor-id`],actor_ip_address:e[`actor-ip-address`],actor_token_id:e[`actor-token-id`],actor_token_name:e[`actor-token-name`],actor_type:e[`actor-type`],id:e.id,raw_cf_ray_id:e[`raw-cf-ray-id`],raw_method:e[`raw-method`],raw_status_code:e[`raw-status-code`],raw_uri:e[`raw-uri`],resource_id:e[`resource-id`],resource_product:e[`resource-product`],resource_type:e[`resource-type`],resource_scope:e[`resource-scope`],"action_result.not":e[`action-result-not`],"action_type.not":e[`action-type-not`],"actor_context.not":e[`actor-context-not`],"actor_email.not":e[`actor-email-not`],"actor_id.not":e[`actor-id-not`],"actor_ip_address.not":e[`actor-ip-address-not`],"actor_token_id.not":e[`actor-token-id-not`],"actor_token_name.not":e[`actor-token-name-not`],"actor_type.not":e[`actor-type-not`],"id.not":e[`id-not`],"raw_cf_ray_id.not":e[`raw-cf-ray-id-not`],"raw_method.not":e[`raw-method-not`],"raw_status_code.not":e[`raw-status-code-not`],"raw_uri.not":e[`raw-uri-not`],"resource_id.not":e[`resource-id-not`],"resource_product.not":e[`resource-product-not`],"resource_type.not":e[`resource-type-not`],"resource_scope.not":e[`resource-scope-not`],since:e.since,before:e.before,direction:e.direction,limit:e.limit,cursor:e.cursor};if(e.dryRun){r({command:`cf organizations logs audit get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${e[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(e[`organization-id`]))}/logs/audit`,pathParams:{"organization-id":String(e[`organization-id`]??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(d,{organization_id:e[`organization-id`],...a}));n(s,{successLabel:`Loaded`})})};var m={method:`GET`,path:t=>e`/organizations/${t.organization_id}/logs/audit/${t.id}/history`,query:[`action_time`,`since`,`before`,`direction`,`limit`,`cursor`],errors:{404:`NotFoundError`}};function h(e){return e.usage("$0 organizations logs audit history <id>\n\nReturns the chronological change history for the resource identified by the given organization-scoped audit log entry. The endpoint first locates the source audit log entry by `id` (using `action_time` to narrow the lookup window), derives identifying filters from that entry, and then returns matching audit logs within the `since`/`before` window. The `result_info.history_status` field indicates the quality of the resource identification used: - `exact`: Resource was identified by the resource URI. - `approximate`: Resource was identified without the resource URI. - `unavailable`: The source audit log entry did not contain enough information to identify the resource; an empty result is returned.").positional(`id`,{type:`string`,description:`The ID of the audit log to fetch resource history for.`,demandOption:!0}).option(`organization-id`,{type:`string`,description:`The unique ID that identifies the organization.`,demandOption:!0}).option(`action-time`,{type:`string`,description:"RFC3339 timestamp of the source audit log entry's action time. Used to narrow the source-entry lookup window. Provide the `action.time` value from the audit log identified by `id`.",demandOption:!0}).option(`since`,{type:`string`,description:`Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`before`,{type:`string`,description:`Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Sets sorting order.`,choices:[`desc`,`asc`]}).option(`limit`,{type:`number`,description:`The number limits the objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`The cursor is an opaque token used to paginate through large sets of records. It indicates the position from which to continue when requesting the next set of records. A valid cursor value can be obtained from the cursor object in the result_info structure of a previous response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`history <id>`,describe:`Get resource change history from an organization audit log entry (Version 2)`,builder:h,handler:async e=>a({command:`organizations logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},e,async()=>{let a={action_time:e[`action-time`],since:e.since,before:e.before,direction:e.direction,limit:e.limit,cursor:e.cursor};if(e.dryRun){r({command:`cf organizations logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${e[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(e[`organization-id`]))}/logs/audit/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/history`,pathParams:{"organization-id":String(e[`organization-id`]??``),id:String(e.id??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(m,{organization_id:e[`organization-id`],id:e.id,...a}));n(s,{successLabel:`Loaded`})})},_={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},v={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},y={command:`organizations`,describe:`Multi-user organizations that group accounts, members, and shared settings under a single entity`,builder:e=>e.command(u).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{y as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{i as u}from"./prompt-YrI7ltMa.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/cache/origin_post_quantum_encryption`};function f(e){return e.usage(`$0 origin-post-quantum-encryption get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.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}from"./prompt-BBR19lgj.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/cache/origin_post_quantum_encryption`};function f(e){return e.usage(`$0 origin-post-quantum-encryption get
3
3
 
4
4
  Instructs Cloudflare to use Post-Quantum (PQ) key agreement algorithms when connecting to your origin. Preferred instructs Cloudflare to opportunistically send a Post-Quantum keyshare in the first message to the origin (for fastest connections when the origin supports and prefers PQ), supported means that PQ algorithms are advertised but only used when requested by the origin, and off means that PQ algorithms are not advertised.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get Origin Post-Quantum Encryption setting`,builder:f,handler:async e=>o({command:`origin-post-quantum-encryption get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf origin-post-quantum-encryption get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/cache/origin_post_quantum_encryption`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/cache/origin_post_quantum_encryption`,body:`json`};function h(e){return e.usage(`$0 origin-post-quantum-encryption update
5
5
 
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ var e=`1.0.0-beta.23`;export{e as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as s,n as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{n as d}from"./prompt-YrI7ltMa.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/pagerules`,body:`json`};function p(e){return e.usage(`$0 page-rules create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.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{n as d}from"./prompt-BBR19lgj.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/pagerules`,body:`json`};function p(e){return e.usage(`$0 page-rules create
3
3
 
4
4
  Creates a new Page Rule.`).option(`actions`,{type:`string`,description:`The set of actions to perform if the targets of this rule match the
5
5
  request. Actions can redirect to another URL or override settings, but
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-BMhD5ffF.mjs";import"./api-eMuS5GI1.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-CSH3UMpD.mjs";import{i,n as a}from"./auth-BcNLQji1.mjs";import{a as o,t as s}from"./context-DVh8Wyfs.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-CtGsPOpV.mjs";import{t as d}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as f,r as p,t as m}from"./body-parser-ChnyBsfm.mjs";import{n as h,t as ee}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-YrI7ltMa.mjs";var y={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function te(e){return e.usage(`$0 pages build-cache purge <project-name>
2
+ import{t as e}from"./lazy-command-JgUZQW-c.mjs";import"./api-X3wKppsT.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{t as n}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as r}from"./local-Y4rIAAtA.mjs";import{i,n as a}from"./auth-DkPhAgZv.mjs";import{a as o,t as s}from"./context-DoGlohS-.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-D2_AF54c.mjs";import{t as d}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as f,r as p,t as m}from"./body-parser-BKcZS9iJ.mjs";import{n as h,t as ee}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-BBR19lgj.mjs";var y={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/purge_build_cache`};function te(e){return e.usage(`$0 pages build-cache purge <project-name>
3
3
 
4
4
  Remove cached build artifacts so subsequent builds run without the project's existing build cache.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 ne={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:te,handler:async e=>d({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/purge_build_cache`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force,message:`This operation purges the build cache for a Pages project.`}))return;let i=await u(`Deleting`,async()=>t.send(y,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},re={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(ne).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:e=>t`/accounts/${e.account_id}/pages/projects`,body:`json`};function x(e){return e.usage(`$0 pages create
5
5
 
@@ -45,4 +45,4 @@ Connect a GitHub or GitLab repository to a Cloudflare Pages project to enable Gi
45
45
  When disabled, no deployments (production or preview) will be triggered automatically.
46
46
  `}).option(`source-config-owner`,{type:`string`,description:`The owner of the repository.`}).option(`source-config-owner-id`,{type:`string`,description:`The owner ID of the repository.`}).option(`source-config-path-excludes`,{type:`string`,array:!0,description:"A list of paths that should be excluded from triggering a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-path-includes`,{type:`string`,array:!0,description:"A list of paths that should be watched to trigger a preview deployment. Wildcard syntax (`*`) is supported."}).option(`source-config-pr-comments-enabled`,{type:`boolean`,description:`Whether to enable PR comments.`}).option(`source-config-preview-branch-excludes`,{type:`string`,array:!0,description:"A list of branches that should not trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-branch-includes`,{type:`string`,array:!0,description:"A list of branches that should trigger a preview deployment. Wildcard syntax (`*`) is supported. Must be used with `preview_deployment_setting` set to `custom`."}).option(`source-config-preview-deployment-setting`,{type:`string`,description:`Controls whether commits to preview branches trigger a preview deployment.`,choices:[`all`,`none`,`custom`]}).coerce(`source-config-preview-deployment-setting`,e=>h(e,`source-config-preview-deployment-setting`,`text`)).option(`source-config-production-branch`,{type:`string`,description:`The production branch of the repository.`}).option(`source-config-production-deployments-enabled`,{type:`boolean`,description:`Whether to trigger a production deployment on commits to the production branch.`}).option(`source-config-repo-id`,{type:`string`,description:`The ID of the repository.`}).option(`source-config-repo-name`,{type:`string`,description:`The name of the repository.`}).option(`type`,{type:`string`,description:`The source control management provider.`,choices:[`github`,`gitlab`]}).coerce(`type`,e=>h(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Repository and deployment settings for connecting a Git repository to a Pages project.`})}const Oe={command:`connect <project-name>`,describe:`Connect a Git repository`,builder:$,handler:async e=>d({command:`pages source connect`,classification:{safeFlags:[`source-config-deployments-enabled`,`source-config-pr-comments-enabled`,`source-config-preview-deployment-setting`,`source-config-production-deployments-enabled`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source connect`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`json`,body:e.body===void 0?m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}):f(e.body)});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,e.body){let r=f(e.body),i=await u(`Creating`,async()=>t.send(Q,{body:r,account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Created`});return}if(e[`source-config-deployments-enabled`]===void 0)throw Error(`--source-config-deployments-enabled is required (or pass --body with this field set).`);if(e[`source-config-owner`]===void 0&&(e[`source-config-owner`]=await g(`source-config-owner`,`The owner of the repository.`)),e[`source-config-owner-id`]===void 0&&(e[`source-config-owner-id`]=await g(`source-config-owner-id`,`The owner ID of the repository.`)),e[`source-config-path-excludes`]===void 0)throw Error(`--source-config-path-excludes is required (or pass --body with this field set).`);if(e[`source-config-path-includes`]===void 0)throw Error(`--source-config-path-includes is required (or pass --body with this field set).`);if(e[`source-config-pr-comments-enabled`]===void 0)throw Error(`--source-config-pr-comments-enabled is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-excludes`]===void 0)throw Error(`--source-config-preview-branch-excludes is required (or pass --body with this field set).`);if(e[`source-config-preview-branch-includes`]===void 0)throw Error(`--source-config-preview-branch-includes is required (or pass --body with this field set).`);if(e[`source-config-preview-deployment-setting`]===void 0&&(e[`source-config-preview-deployment-setting`]=await _(`source-config-preview-deployment-setting`,`Controls whether commits to preview branches trigger a preview deployment.`,[`all`,`none`,`custom`])),e[`source-config-production-branch`]===void 0&&(e[`source-config-production-branch`]=await g(`source-config-production-branch`,`The production branch of the repository.`)),e[`source-config-production-deployments-enabled`]===void 0)throw Error(`--source-config-production-deployments-enabled is required (or pass --body with this field set).`);e[`source-config-repo-id`]===void 0&&(e[`source-config-repo-id`]=await g(`source-config-repo-id`,`The ID of the repository.`)),e[`source-config-repo-name`]===void 0&&(e[`source-config-repo-name`]=await g(`source-config-repo-name`,`The name of the repository.`)),e.type===void 0&&(e.type=await _(`type`,`The source control management provider.`,[`github`,`gitlab`]));let i=m({config:{deployments_enabled:e[`source-config-deployments-enabled`],owner:h(e[`source-config-owner`],`source-config-owner`,`text`),owner_id:h(e[`source-config-owner-id`],`source-config-owner-id`,`text`),path_excludes:e[`source-config-path-excludes`],path_includes:e[`source-config-path-includes`],pr_comments_enabled:e[`source-config-pr-comments-enabled`],preview_branch_excludes:e[`source-config-preview-branch-excludes`],preview_branch_includes:e[`source-config-preview-branch-includes`],preview_deployment_setting:e[`source-config-preview-deployment-setting`],production_branch:h(e[`source-config-production-branch`],`source-config-production-branch`,`text`),production_deployments_enabled:e[`source-config-production-deployments-enabled`],repo_id:h(e[`source-config-repo-id`],`source-config-repo-id`,`text`),repo_name:h(e[`source-config-repo-name`],`source-config-repo-name`,`text`)},type:e.type}),d=await u(`Creating`,async()=>t.send(Q,{body:i,account_id:n,project_name:e[`project-name`]}));c(d,{successLabel:`Created`})})};var ke={method:`DELETE`,path:e=>t`/accounts/${e.account_id}/pages/projects/${e.project_name}/source`};function Ae(e){return e.usage(`$0 pages source disconnect <project-name>
47
47
 
48
- Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>d({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(ke,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-CqKRlHGv.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(n(Ne,`preview`)).command(xe).command(we).command(De).command(re).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe as default};
48
+ Disconnect the Git repository from a Cloudflare Pages project to stop Git-based deployments.`).positional(`project-name`,{type:`string`,description:`Name of the Pages project. Must begin with a lowercase letter or digit and contain only lowercase letters, digits, and hyphens.`,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 je={command:`disconnect <project-name>`,describe:`Disconnect a Git repository`,builder:Ae,handler:async e=>d({command:`pages source disconnect`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await o();l({command:`cf pages source disconnect`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pages/projects/${e[`project-name`]==null?`<project-name>`:encodeURIComponent(String(e[`project-name`]))}/source`,pathParams:{"project-name":String(e[`project-name`]??``)},bodyKind:`none`});return}let t=await a(e),n=e.local?r:await s();if(e.accountId=n,!await v({force:!!e.force}))return;let i=await u(`Deleting`,async()=>t.send(ke,{account_id:n,project_name:e[`project-name`]}));c(i,{successLabel:`Deleted`})})},Me={command:`source`,describe:`Operations for source`,builder:e=>e.command(Oe).command(je).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ne=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-D3E7d8E7.mjs`),{command:`pages deploy`,recordArgs:!1});const Pe={command:`pages`,describe:`Full-stack application hosting with Git-integrated builds, preview deployments, and custom domains`,builder:e=>e.command(S).command(T).command(n(Ne,`preview`)).command(xe).command(we).command(De).command(re).command(Y).command(ye).command(Me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Pe as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./prompt-YrI7ltMa.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n as d,r as f,t as p}from"./body-parser-BKcZS9iJ.mjs";import{n as m}from"./prompt-BBR19lgj.mjs";var h={method:`POST`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 pay-per-crawl config create
3
3
 
4
4
  Creates the pay-per-crawl config for a zone.`).option(`bot-overrides`,{type:`string`,description:`The bot_overrides field. Provide as a JSON object or @path/to/file.json.`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`price-usd-microcents`,{type:`number`,description:`Price in microcents 1 USD = 100,000,000 microcents. Must be 0 or a multiple of 100,000 $0.001. Range: $0.001–$9,999.999.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Data for fully replacing a pay-per-crawl zone configuration`})}const g={command:`create`,describe:`Creates pay-per-crawl config for a zone`,builder:ee,handler:async e=>l({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf pay-per-crawl config create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/pay-per-crawl/configuration`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]):d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}])});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body,[{path:[`bot_overrides`],flag:`bot-overrides`}]),i=await c(`Creating`,async()=>t.send(h,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e[`bot-overrides`]===void 0)throw Error(`--bot-overrides is required (or pass --body with this field set).`);if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);if(e[`price-usd-microcents`]===void 0)throw Error(`--price-usd-microcents is required (or pass --body with this field set).`);let a=p({bot_overrides:f(e[`bot-overrides`],`bot-overrides`,!0),enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]},[[`bot_overrides`]]),l=await c(`Creating`,async()=>t.send(h,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var _={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/pay-per-crawl/configuration`,body:`json`,errors:{400:`BadRequestError`}};function te(e){return e.usage(`$0 pay-per-crawl config edit
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BcNLQji1.mjs";import{a as i,i as a,t as o}from"./context-DVh8Wyfs.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-CtGsPOpV.mjs";import{t as u}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-YrI7ltMa.mjs";var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/enabled-domains`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function ee(e){return e.usage(`$0 pay-per-use enabled-domains list
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,i as a,t as o}from"./context-DoGlohS-.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-D2_AF54c.mjs";import{t as u}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as d,n 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-BBR19lgj.mjs";var y={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/enabled-domains`,query:[`cursor`,`per_page`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,500:`InternalServerError`}};function ee(e){return e.usage(`$0 pay-per-use enabled-domains list
3
3
 
4
4
  Returns publisher domains associated with the requesting Pay Per Use operator through an accepted price agreement. License expiration is the earlier non-null boundary from the price agreement and publisher zone lifecycles. A future expiration remains active and is exposed to the operator. After expiration, the license remains listed as expired for one calendar month before it is omitted; an active agreement for the same domain takes precedence. The requesting account must be an active Pay Per Use operator.`).option(`cursor`,{type:`string`,description:`Opaque, account-bound cursor returned by the previous page. Cursors expire after one hour; restart pagination without a cursor after receiving a 400 response for an expired cursor.`}).option(`per-page`,{type:`number`,description:`Maximum number of domains to return`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`list`,describe:`List enabled Pay Per Use domains`,builder:ee,handler:async e=>u({command:`pay-per-use enabled-domains list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={cursor:e.cursor,per_page:e[`per-page`]};if(e.dryRun){let e=await i();c({command:`cf pay-per-use enabled-domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/pay-per-use/enabled-domains`,pathParams:{},query:n,bodyKind:`none`});return}let a=await r(e),u=e.local?t:await o();e.accountId=u;let d=await l(`Loading`,async()=>a.send(y,{account_id:u,...n}));s(d,{successLabel:`Loaded`})})},ne={command:`enabled-domains`,describe:`Operations for enabled-domains`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`GET`,path:t=>e`/accounts/${t.account_id}/pay-per-use/operator/configuration`,errors:{403:`ForbiddenError`,404:`NotFoundError`}};function x(e){return e.usage(`$0 pay-per-use operator get-configuration
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-YrI7ltMa.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines`,body:`json`};function _(e){return e.usage(`$0 pipelines create
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n 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-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines`,body:`json`};function _(e){return e.usage(`$0 pipelines create
3
3
 
4
4
  Create a new Pipeline.`).option(`name`,{type:`string`,description:`Specifies the name of the Pipeline.`}).option(`sql`,{type:`string`,description:`Specifies SQL for the Pipeline processing flow.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Create Pipeline`,builder:_,handler:async e=>c({command:`pipelines create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf pipelines create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/pipelines/v1/pipelines`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`text`),sql:f(e.sql,`sql`,`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(g,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Specifies the name of the Pipeline.`)),e.sql===void 0&&(e.sql=await p(`sql`,`Specifies SQL for the Pipeline processing flow.`));let m=d({name:f(e.name,`name`,`text`),sql:f(e.sql,`sql`,`text`)}),h=await s(`Creating`,async()=>c.send(g,{body:m,account_id:l}));a(h,{successLabel:`Created`})})};var y={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/pipelines/v1/pipelines/${t.pipeline_id}`};function b(e){return e.usage(`$0 pipelines delete <pipeline-id>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{i as e,n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as s,n as c,s as l,t as u}from"./body-parser-ChnyBsfm.mjs";function d(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Zone Precursor Config`,builder:d,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));r(l,{successLabel:`Loaded`})})};function p(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
2
+ import{i as e,n as t}from"./auth-DkPhAgZv.mjs";import{i as n}from"./context-DoGlohS-.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-D2_AF54c.mjs";import{t as o}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as s,n as c,s as l,t as u}from"./body-parser-BKcZS9iJ.mjs";function d(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the detection `mode`, whether to `show_interstitial`, and the ordered list of `rules`.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const f={command:`get`,describe:`Get Zone Precursor Config`,builder:d,handler:async s=>o({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},s,async()=>{let o={};if(s[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(s[`cloudflare-version`])),s.dryRun){i({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`none`});return}let c=await t(s);s.zoneId=await n({zone:s.zone},c,{quiet:s.quiet});let l=await a(`Loading`,async()=>e(c,`GET`,`/zones/${s.zoneId}/precursor`,{headers:Object.keys(o).length>0?o:void 0}));r(l,{successLabel:`Loaded`})})};function p(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `mode` controls whether Precursor detection is off, monitoring, or armed. `show_interstitial` controls the zone-level response when armed. `rules` is the ordered list of overrides for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all rules. - At least one of `mode`, `show_interstitial`, or `rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `show_interstitial` is required and controls the response for requests that match that rule. - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`cloudflare-version`,{type:`string`,description:`Selects the split Precursor API schema.`,demandOption:!0}).option(`rules`,{type:`string`,description:`The ordered list of Precursor rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`show-interstitial`,{type:`boolean`,description:`Whether Precursor shows an interstitial when it takes action on a
3
3
  request.
4
4
  `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`update`,describe:`Update Zone Precursor Config`,builder:p,handler:async d=>o({command:`precursor update`,classification:{safeFlags:[`show-interstitial`,`dry-run`]}},d,async()=>{let o={};if(d[`cloudflare-version`]!==void 0&&(o[`Cloudflare-Version`]=String(d[`cloudflare-version`])),d.dryRun){i({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${d.zone??d.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(d.zone??d[`zone-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({rules:s(d.rules,`rules`),show_interstitial:d[`show-interstitial`],cloudflare_version:d[`cloudflare-version`]}):c(d.body)});return}let f=await t(d);if(d.zoneId=await n({zone:d.zone},f,{quiet:d.quiet}),d.body){let t=c(d.body),n=await a(`Updating`,async()=>e(f,`PUT`,`/zones/${d.zoneId}/precursor`,{body:t,headers:Object.keys(o).length>0?o:void 0}));r(n,{successLabel:`Updated`});return}let p={};d.rules!==void 0&&l(p,[`rules`],s(d.rules,`rules`)),d[`show-interstitial`]!==void 0&&l(p,[`show_interstitial`],d[`show-interstitial`]),d[`cloudflare-version`]!==void 0&&(p.cloudflare_version=d[`cloudflare-version`]);let m=await a(`Updating`,async()=>e(f,`PUT`,`/zones/${d.zoneId}/precursor`,{body:p,headers:Object.keys(o).length>0?o:void 0}));r(m,{successLabel:`Updated`})})},h={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(f).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{h as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./dotenv-CmPRiXmU.mjs";import{J as t,K as n,rt as r,z as i}from"./dist-BtzWfAjU.mjs";import{t as a}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as o}from"./local-CSH3UMpD.mjs";import{i as s,n as c}from"./auth-BcNLQji1.mjs";import{a as l,t as u}from"./context-DVh8Wyfs.mjs";import{d,s as f}from"./interactive-D4E8PdaW.mjs";import{C as p,_ as m,d as h,f as g,l as _,r as v,t as y,x as b,y as x}from"./deploy-context-Do89WayB.mjs";import{t as S}from"./output-BJEgbI0G.mjs";import{t as C}from"./dry-run-gy0Hl9xo.mjs";import{t as w}from"./progress-CtGsPOpV.mjs";import{n as T,t as E}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as D}from"./prompt-YrI7ltMa.mjs";import{i as O,n as k,o as A,r as j,s as M,t as N,u as P}from"./containers-CzAZfmnj.mjs";import{a as F,c as I,i as ee,n as L,o as R,r as z,s as B}from"./build-CWlpWVBf.mjs";import{t as V}from"./deploy-input-DyMuMsi5.mjs";import{readBuildOutput as H}from"@cloudflare/build-output-utils";function U(e){return e.usage(`$0 previews delete <name>
2
+ import{r as e}from"./dotenv-qsoPELMm.mjs";import{J as t,K as n,rt as r,z as i}from"./dist-D5YYi2LO.mjs";import{t as a}from"./hand-written-dry-run-B82fRl2N.mjs";import{t as o}from"./local-Y4rIAAtA.mjs";import{i as s,n as c}from"./auth-DkPhAgZv.mjs";import{a as l,t as u}from"./context-DoGlohS-.mjs";import{d,s as f}from"./interactive-DOWEcR6_.mjs";import{C as p,_ as m,d as h,f as g,l as _,r as v,t as y,x as b,y as x}from"./deploy-context-CCahKKFs.mjs";import{t as S}from"./output-BJEgbI0G.mjs";import{t as C}from"./dry-run-gy0Hl9xo.mjs";import{t as w}from"./progress-D2_AF54c.mjs";import{n as T,t as E}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as D}from"./prompt-BBR19lgj.mjs";import{i as O,n as k,o as A,r as j,s as M,t as N,u as P}from"./containers-DCL31jYE.mjs";import{a as F,c as I,i as ee,n as L,o as R,r as z,s as B}from"./build-Yf5bvUk2.mjs";import{t as V}from"./deploy-input-BusFZFqu.mjs";import{readBuildOutput as H}from"@cloudflare/build-output-utils";function U(e){return e.usage(`$0 previews delete <name>
3
3
 
4
4
  Delete a Preview.`).positional(`name`,{type:`string`,description:`Identifier for the Preview, which can be ID, slug, or URL-encoded name.`,demandOption:!0}).option(`worker`,{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 Preview even when other Workers still reference it. Service bindings in those Workers may be left broken. Durable Object namespaces implemented by the deleted Preview 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 W={command:`delete <name>`,describe:`Delete Preview`,builder:U,handler:async e=>E({command:`previews 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();C({command:`cf previews delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${n??`<account-id>`}/workers/workers/${e.worker==null?`<worker>`:encodeURIComponent(String(e.worker))}/previews/${e.name==null?`<name>`:encodeURIComponent(String(e.name))}`,pathParams:{worker:String(e.worker??``),name:String(e.name??``)},query:t,bodyKind:`none`});return}let n=await c(e),r=e.local?o:await u();if(e.accountId=r,!await D({force:!!e.force,message:`This operation permanently deletes the Preview.`}))return;let i=await w(`Deleting`,async()=>s(n,`DELETE`,`/accounts/${r}/workers/workers/${encodeURIComponent(String(e.worker))}/previews/${encodeURIComponent(String(e.name))}`,{query:t}));S(i,{successLabel:`Deleted`})})};function G(e){return{getNormalizedContainerOptions:async t=>e.standard.normalized.map(e=>({...e,name:t.containers?.find(({class_name:t})=>t===e.class_name)?.name??e.name})),deployPreviewContainers:async(t,n,i,a,o)=>K(o.quiet,async()=>{let s=/* @__PURE__ */ new Map;for(let e of Object.values(i.env??{}))e.type===`durable_object_namespace`&&e.class_name&&e.namespace_id&&e.script_name===void 0&&s.set(e.class_name,e.namespace_id);let c;for(let r of n){let n=s.get(r.class_name);if(n||=(c??=await x(t,a),c.find(e=>e.class===r.class_name&&e.preview?.id===i.preview_id)?.id),!n)throw Error(`Could not find a Preview Durable Object namespace for Container class "${r.class_name}".`);let l=await q(r,e,i.id,a,t,o.localImageReferences?.get(r.class_name));await _({imageRef:l,durable_object_namespace_id:n,configFileName:`cloudflare.config.ts`,observabilityTargetPercentageField:`targetInstancePercentage`,observabilityTargetCountField:`targetInstanceCount`},r,t,a)}await h(e.standard.builtImages.filter(({container:e})=>!o.localImageReferences?.has(e.class_name)),r())})}}async function K(e,t){if(!e)return t();let n=f();d(`error`);try{return await t()}finally{d(n)}}async function q(e,t,n,i,a,o){if(o!==void 0)return p({pathToDocker:r(),sourceTag:o,targetTag:o,accountId:i,complianceConfig:a,containerConfig:`dockerfile`in e?e:void 0,cleanupSourceTag:!1});let s=t.standard.builtImages.find(({container:t})=>t.class_name===e.class_name);if(s)return b(s,n,r(),i,a);if(`image_uri`in e)return{newTag:e.image_uri};throw Error(`Container "${e.name}" has no Build Output image to deploy.`)}function J(e){return e.positional(`preview-name`,{type:`string`,description:`Preview name. Defaults to the current CI or Git branch; required if no branch is available.`}).option(`prebuilt`,{type:`boolean`,description:`Use existing Preview Build Output Specification files without building`,default:!1}).option(`worker`,z)}function Y(e){return{type:`preview`,version:1,preview_id:e.preview.id,preview_name:e.preview.name,preview_slug:e.preview.slug,preview_urls:e.preview.urls,deployment_id:e.deployment.id,deployment_urls:e.deployment.urls}}async function X(t){let n=t[`preview-name`],r=n??A();if(!r||!n&&r===`HEAD`)throw Error(`We couldn't determine a Preview name from CI or Git. The name is optional when a branch is available. Otherwise, run:
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{n}from"./version-DmTuWNZ5.mjs";import{t as r}from"./session-6xqrJWXy.mjs";import{s as i}from"./log-BWdaOGOW.mjs";import{n as a}from"./interactive-wQM7Blhm.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||t()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!e(process.env,process.stderr.isTTY===!0)||a()||process.env.CF_QUIET===`1`)}async function u(e,t){if(!l())return t();r(n);let a=i({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(e);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let n=await t();return s.clear(),a.stop(e),n}catch(t){throw s.clear(),a.error(e),t}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
2
+ import{t as e}from"./theme-BGHWSKCw.mjs";import{t}from"./args-BAOHroBC.mjs";import{n}from"./version-CbBZJTiB.mjs";import{t as r}from"./session-CG79ZLE9.mjs";import{s as i}from"./log-BWdaOGOW.mjs";import{n as a}from"./interactive-wQM7Blhm.mjs";const o={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},s=new class{cleanupRegistered=!1;get isDisabled(){return process.env.CF_NO_OSC_PROGRESS===`1`||process.env.CF_QUIET===`1`||t()}get isSupported(){if(this.isDisabled||!process.stderr.isTTY)return!1;if(process.env.CF_FORCE_OSC_PROGRESS===`1`)return!0;let e=process.env.TERM_PROGRAM?.toLowerCase()??``;return!!(e.includes(`ghostty`)||e.includes(`iterm`)||e.includes(`wezterm`)||process.env.WT_SESSION||process.env.ConEmuANSI===`ON`)}setIndeterminate(){this.isSupported&&(this.ensureCleanup(),this.write(o.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${o.Hidden};0\x07`)}ensureCleanup(){this.cleanupRegistered||(this.cleanupRegistered=!0,process.on(`exit`,()=>{this.clear()}))}write(e){this.isSupported&&process.stderr.write(`\x1b]9;4;${e};0\x07`)}},c=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function l(){return!(!e(process.env,process.stderr.isTTY===!0)||a()||process.env.CF_QUIET===`1`)}async function u(e,t){if(!l())return t();r(n);let a=i({frames:[...c],indicator:`timer`,delay:80,output:process.stderr});s.setIndeterminate(),a.start(e);let o=e=>process.exit(e===`SIGTERM`?143:130),u=e=>{e===0&&(process.exitCode=130)};process.on(`SIGINT`,o),process.on(`SIGTERM`,o),process.on(`exit`,u);try{let n=await t();return s.clear(),a.stop(e),n}catch(t){throw s.clear(),a.error(e),t}finally{process.off(`SIGINT`,o),process.off(`SIGTERM`,o),process.off(`exit`,u)}}export{u as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{n}from"./version-DmTuWNZ5.mjs";import{t as r}from"./session-6xqrJWXy.mjs";import{a as i,c as a,l as o,n as s,o as c,r as l}from"./log-BWdaOGOW.mjs";import{n as u}from"./interactive-wQM7Blhm.mjs";import{i as d}from"./dialog-D5lus4M4.mjs";function f(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function p(){r(n)}async function m(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{n}from"./version-CbBZJTiB.mjs";import{t as r}from"./session-CG79ZLE9.mjs";import{a as i,c as a,l as o,n as s,o as c,r as l}from"./log-BWdaOGOW.mjs";import{n as u}from"./interactive-wQM7Blhm.mjs";import{i as d}from"./dialog-D5lus4M4.mjs";function f(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function p(){r(n)}async function m(){let e=[];for await(let t of process.stdin)e.push(Buffer.from(t));let t=Buffer.concat(e).toString(`utf-8`);return t.endsWith(`
3
3
  `)?t.slice(0,-1):t}async function h(e,n,r){let s=r?.kind??`text`;if(u()){if(s===`secret`){let t=await m();if(t.length>0)return t;throw Error(`--${e} is required. Pipe the value via stdin, pass --${e} <value>, or run interactively.`)}throw Error(`--${e} is required. Pass --${e} <value> or run interactively.`)}let c=`Enter value for --${e}`,l=d(n||r?.question||c),f=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;p();let h=s===`secret`?await i({message:l,mask:`•`,validate:f,output:process.stderr}):await a({message:l,validate:f,output:process.stderr});if(o(h)||typeof h!=`string`)throw new t(130,{cancelled:!0});return h}async function g(e,n,r,i={}){let a=f(e),s=r.map(f);if(u())throw Error(`--${a} is required (one of: ${s.join(`, `)}). Pass --${a} <value> or run interactively.`);let l=`Select value for --${a}`,d=f(n||l);p();let m=await c({message:d,output:process.stderr,options:r.map(e=>({value:e,label:f((Object.hasOwn(i,e)?i[e]:void 0)??e)}))});if(o(m)||typeof m!=`string`)throw new t(130,{cancelled:!0});return m}async function _(e,n){if(u())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);p();let r=await l({message:n||`Confirm --${e}`,initialValue:!1,output:process.stderr});if(o(r))throw new t(130,{cancelled:!0});return r===!0}async function v(e,{defaultValue:n=!0,fallbackValue:r=!0}={}){if(u())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;p();let i=await l({message:e,initialValue:n,output:process.stderr});if(o(i))throw new t(130,{cancelled:!0});return i===!0}async function y(n={}){if(n.force===!0)return!0;let r=n.message?`${n.message} Continue?`:`This permanently deletes the resource. Continue?`;if(u())throw process.stderr.write(`${e.warning(`?`)} ${r}\n ${e.muted(`(non-interactive; pass --force to confirm)`)}\nAborted.
4
4
  `),new t(1);p();let i=await l({message:r,initialValue:!1,output:process.stderr});if(o(i))throw new t(130,{cancelled:!0});return i===!0||(s(`Aborted.`,{output:process.stderr}),!1)}export{h as a,g as i,y as n,f as o,_ as r,v as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-YrI7ltMa.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{n}from"./auth-DkPhAgZv.mjs";import{a as r,t as i}from"./context-DoGlohS-.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-D2_AF54c.mjs";import{t as c}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as l,n 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-BBR19lgj.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers`,body:`json`};function _(e){return e.usage(`$0 queues consumers create <queue-id>
3
3
 
4
4
  Creates a consumer for a Queue.`).positional(`queue-id`,{type:`string`,description:`A Resource identifier.`,demandOption:!0}).option(`dead-letter-queue`,{type:`string`,description:`The dead_letter_queue field`}).option(`script-name`,{type:`string`,description:`Name of a Worker`}).option(`settings-batch-size`,{type:`number`,description:`The maximum number of messages to include in a batch.`}).option(`settings-max-concurrency`,{type:`number`,description:"Maximum number of concurrent consumers that may consume from this Queue. Set to `null` to automatically opt in to the platform's maximum (recommended)."}).option(`settings-max-retries`,{type:`number`,description:`The maximum number of retries`}).option(`settings-max-wait-time-ms`,{type:`number`,description:`The number of milliseconds to wait for a batch to fill up before attempting to deliver it`}).option(`settings-retry-delay`,{type:`number`,description:`The number of seconds to delay before making the message available for another attempt.`}).option(`settings-visibility-timeout-ms`,{type:`number`,description:`The number of milliseconds that a message is exclusively leased. After the timeout, the message becomes available for another attempt.`}).option(`type`,{type:`string`,description:`The type field`,choices:[`worker`,`http_pull`]}).coerce(`type`,e=>f(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating or updating a consumer`}).conflicts(`script-name`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-concurrency`,[`settings-visibility-timeout-ms`]).conflicts(`settings-max-wait-time-ms`,[`settings-visibility-timeout-ms`]).conflicts(`settings-visibility-timeout-ms`,[`script-name`,`settings-max-concurrency`,`settings-max-wait-time-ms`])}const ee={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:_,handler:async e=>c({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/queues/${e[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(e[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(e[`queue-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}):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(g,{body:t,account_id:l,queue_id:e[`queue-id`]}));a(n,{successLabel:`Created`});return}e.type===void 0&&(e.type=await m(`type`,`The type field`,[`worker`,`http_pull`])),e.type===`worker`&&e[`script-name`]===void 0&&(e[`script-name`]=await p(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=d({dead_letter_queue:f(e[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:f(e[`script-name`],`script-name`,`text`),settings:{batch_size:e[`settings-batch-size`],max_concurrency:e[`settings-max-concurrency`],max_retries:e[`settings-max-retries`],max_wait_time_ms:e[`settings-max-wait-time-ms`],retry_delay:e[`settings-retry-delay`],visibility_timeout_ms:e[`settings-visibility-timeout-ms`]},type:e.type}),_=await s(`Creating`,async()=>c.send(g,{body:h,account_id:l,queue_id:e[`queue-id`]}));a(_,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/queues/${t.queue_id}/consumers/${t.consumer_id}`};function v(e){return e.usage(`$0 queues consumers delete <consumer-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BcNLQji1.mjs";import{a as i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,i as _,n as v}from"./prompt-YrI7ltMa.mjs";import{n as y,t as b}from"./raw-fetch-BE3QgdTE.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Y4rIAAtA.mjs";import{i as n,n as r}from"./auth-DkPhAgZv.mjs";import{a as i,t as a}from"./context-DoGlohS-.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-D2_AF54c.mjs";import{t as l}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{a as u,n 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-BBR19lgj.mjs";import{n as y,t as b}from"./raw-fetch-BFcMz5hY.mjs";function ee(e){return e.usage(`$0 r2 buckets cors delete <bucket-name>
3
3
 
4
4
  Delete the CORS policy for a bucket.`).positional(`bucket-name`,{type:`string`,description:`Name of the bucket.`,demandOption:!0}).option(`cf-r2-jurisdiction`,{type:`string`,description:`Jurisdiction where objects in this bucket are guaranteed to be stored.`}).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 te={command:`delete <bucket-name>`,describe:`Delete Bucket CORS Policy`,builder:ee,handler:async e=>l({command:`r2 buckets cors delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let l={};if(e[`cf-r2-jurisdiction`]!==void 0&&(l[`cf-r2-jurisdiction`]=String(e[`cf-r2-jurisdiction`])),e.dryRun){let t=await i();s({command:`cf r2 buckets cors delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/r2/buckets/${e[`bucket-name`]==null?`<bucket-name>`:encodeURIComponent(String(e[`bucket-name`]))}/cors`,pathParams:{"bucket-name":String(e[`bucket-name`]??``)},bodyKind:`none`});return}let u=await r(e),d=e.local?t:await a();if(e.accountId=d,!await v({force:!!e.force,message:`This removes the R2 bucket's CORS policy. Browser requests that depend on these cross-origin permissions may fail.`}))return;let f=await c(`Deleting`,async()=>n(u,`DELETE`,`/accounts/${d}/r2/buckets/${encodeURIComponent(String(e[`bucket-name`]))}/cors`,{headers:Object.keys(l).length>0?l:void 0}));o(f,{successLabel:`Deleted`})})};function ne(e){return e.usage(`$0 r2 buckets cors get <bucket-name>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-CtGsPOpV.mjs";import{t as a}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as o,t as s}from"./body-parser-ChnyBsfm.mjs";import{n as c,t as l}from"./raw-fetch-BE3QgdTE.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DkPhAgZv.mjs";import{t as n}from"./output-BJEgbI0G.mjs";import{t as r}from"./dry-run-gy0Hl9xo.mjs";import{t as i}from"./progress-D2_AF54c.mjs";import{t as a}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";import{n as o,t as s}from"./body-parser-BKcZS9iJ.mjs";import{n as c,t as l}from"./raw-fetch-BFcMz5hY.mjs";var u={method:`GET`,path:t=>e`/radar/agent_readiness/summary/${t.dimension}`,query:[`date`,`domainCategory`,`name`,`format`],errors:{400:`BadRequestError`}};function ee(e){return e.usage(`$0 radar agent-readiness summary <dimension>
3
3
 
4
4
  Returns a summary of AI agent readiness scores across scanned domains, grouped by the specified dimension. Data is sourced from weekly bulk scans. All values are raw domain counts.`).positional(`dimension`,{type:`string`,description:`Specifies the agent readiness data dimension by which to group the results.`,demandOption:!0}).option(`date`,{type:`string`,description:`Filters results by the specified date.`}).option(`domain-category`,{type:`string`,description:`Filters results by domain category.`}).option(`name`,{type:`string`,description:`Array of names used to label the series in the response.`}).option(`format`,{type:`string`,description:`Format in which results will be returned.`,choices:[`JSON`,`CSV`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const te={command:`summary <dimension>`,describe:`Get agent readiness summary`,builder:ee,handler:async e=>a({command:`radar agent-readiness summary`,classification:{safeFlags:[`format`,`dry-run`]}},e,async()=>{let a={date:e.date,domainCategory:e[`domain-category`],name:e.name,format:e.format};if(e.dryRun){r({command:`cf radar agent-readiness summary`,method:`GET`,url:`https://api.cloudflare.com/client/v4/radar/agent_readiness/summary/${e.dimension==null?`<dimension>`:encodeURIComponent(String(e.dimension))}`,pathParams:{dimension:String(e.dimension??``)},query:a,bodyKind:`none`});return}let o=await t(e),s=await i(`Loading`,async()=>o.send(u,{dimension:e.dimension,...a}));n(s,{successLabel:`Loaded`})})},ne={command:`agent-readiness`,describe:`Agent readiness summary statistics across the Cloudflare network`,builder:e=>e.command(te).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var d={method:`GET`,path:t=>e`/radar/ai/bots/timeseries_groups/${t.dimension}`,query:[`aggInterval`,`name`,`dateRange`,`dateStart`,`dateEnd`,`asn`,`location`,`continent`,`crawlPurpose`,`userAgent`,`industry`,`vertical`,`contentType`,`responseStatus`,`responseStatusCategory`,`limitPerGroup`,`normalization`,`format`],errors:{400:`BadRequestError`}};function f(e){return e.usage(`$0 radar ai bots timeseries-groups <dimension>
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{K as e}from"./dist-BtzWfAjU.mjs";import{n as t}from"./api-eMuS5GI1.mjs";import{r as n}from"./local-CSH3UMpD.mjs";import{c as r,l as i}from"./auth-BcNLQji1.mjs";import{n as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./auth-token-aF5AVLlH.mjs";import{n as s}from"./request-headers-KhW_hy36.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
2
+ import{K as e}from"./dist-D5YYi2LO.mjs";import{n as t}from"./api-X3wKppsT.mjs";import{r as n}from"./local-Y4rIAAtA.mjs";import{c as r,l as i}from"./auth-DkPhAgZv.mjs";import{n as a}from"./context-DoGlohS-.mjs";import{t as o}from"./auth-token-C-ushV4K.mjs";import{n as s}from"./request-headers-_yTB3kAw.mjs";async function c(c,l={}){let{method:u=`GET`,local:d=!1}=l,f=e({compliance_region:await a()}),p=`${f.replace(/\/+$/,``)}${c}`,m={...s()};l.headers&&Object.assign(m,l.headers);let h=globalThis.fetch;d?h=n({persistTo:l.persistTo,apiBaseUrl:f}):m.Authorization=`Bearer ${await o()}`;let g,_=l.body;_!=null&&(_ instanceof FormData?g=_:Buffer.isBuffer(_)||_ instanceof Uint8Array||_ instanceof ArrayBuffer?(g=_,m[`Content-Type`]??=l.contentType??`application/octet-stream`):typeof _==`string`?(g=_,l.contentType&&(m[`Content-Type`]??=l.contentType)):(g=JSON.stringify(_),m[`Content-Type`]??=l.contentType??`application/json`));let v=await h(p,{method:u,headers:m,...g===void 0?{}:{body:g},...r(g)?{}:{signal:AbortSignal.timeout(i)}});if(!v.ok){let e=v.headers.get(`content-type`)??``,n;try{n=e.includes(`application/json`)?await v.json():await v.text()}catch{n=null}throw new t({statusCode:v.status,body:n,rawResponse:{status:v.status,statusText:v.statusText,url:v.url||p,headers:v.headers,redirected:v.redirected,type:v.type}})}let y=await v.arrayBuffer();return Buffer.from(y)}function l(e){process.stdout.write(e)}export{l as n,c as t};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{n as e}from"./auth-BcNLQji1.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./dry-run-gy0Hl9xo.mjs";import{t as r}from"./progress-CtGsPOpV.mjs";import{t as i}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";var a={method:`GET`,path:()=>`/ready`,response:!1,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function o(e){return e.usage(`$0 ready get
2
+ import{n as e}from"./auth-DkPhAgZv.mjs";import{t}from"./output-BJEgbI0G.mjs";import{t as n}from"./dry-run-gy0Hl9xo.mjs";import{t as r}from"./progress-D2_AF54c.mjs";import{t as i}from"./run-C2-1SFrS.mjs";import"./telemetry-Q7QghPwV.mjs";var a={method:`GET`,path:()=>`/ready`,response:!1,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,429:`TooManyRequestsError`,500:`InternalServerError`}};function o(e){return e.usage(`$0 ready get
3
3
 
4
4
  Return a success message after running readiness checks.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const s={command:`get`,describe:`Run readiness checks`,builder:o,handler:async o=>i({command:`ready get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){n({command:`cf ready get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/ready`,pathParams:{},bodyKind:`none`});return}let i=await e(o),s=await r(`Loading`,async()=>i.send(a));t(s,{successLabel:`Loaded`})})},c={command:`ready`,describe:`ready`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};