cf 1.0.0-beta.6 → 1.0.0-beta.8

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 (237) hide show
  1. package/dist/_meta/commands.json +119 -218
  2. package/dist/_meta/schemas.json +77 -126
  3. package/dist/{abuse-reports-BtI6fvRl.mjs → abuse-reports-D9LttL99.mjs} +1 -1
  4. package/dist/{access-CqOyTHw4.mjs → access-CSUG9fDH.mjs} +1 -1
  5. package/dist/{account-tags-7I77Dwsd.mjs → account-tags-BkmuF6bd.mjs} +2 -2
  6. package/dist/{accounts-Cq-eOPzL.mjs → accounts-CmqKD3xG.mjs} +1 -1
  7. package/dist/{acm-CSXnlN6o.mjs → acm-D9WirG6Y.mjs} +1 -1
  8. package/dist/{addressing-C5XvjNhk.mjs → addressing-DAdzF3M5.mjs} +1 -1
  9. package/dist/{agent-memory-CSzr9gty.mjs → agent-memory-CIEk0dD-.mjs} +1 -1
  10. package/dist/{ai-C0xWIvsG.mjs → ai-Dq1GOYn7.mjs} +3 -3
  11. package/dist/{ai-audit-B43vm1KJ.mjs → ai-audit-D5XtqDkx.mjs} +1 -1
  12. package/dist/{ai-gateway-BK3MbIzT.mjs → ai-gateway-D16_7Zbq.mjs} +1 -1
  13. package/dist/{ai-search-TrFTxBbn.mjs → ai-search-Ce3p9ccc.mjs} +1 -1
  14. package/dist/{ai-security-JrYa27qd.mjs → ai-security-BodoNshv.mjs} +1 -1
  15. package/dist/{alerting-B1-ZwfVT.mjs → alerting-DuF0tdhO.mjs} +1 -1
  16. package/dist/{analytics-B-wlVtDV.mjs → analytics-DmnqxoBT.mjs} +1 -1
  17. package/dist/{analytics_engine-DWzzQzOs.mjs → analytics_engine-BOYHgzoX.mjs} +1 -1
  18. package/dist/{api-security-BWFWWmXl.mjs → api-security-B3v-EKrg.mjs} +1 -1
  19. package/dist/{argo-DHPGTvCT.mjs → argo-BsSvWev6.mjs} +1 -1
  20. package/dist/{artifacts-mmBDk3wO.mjs → artifacts-Dq5t2ZQO.mjs} +1 -1
  21. package/dist/{audit-logs-CCF5e500.mjs → audit-logs-DpszUSNO.mjs} +1 -1
  22. package/dist/{auth-gOCL6Pm0.mjs → auth-BjxUTZWb.mjs} +2 -2
  23. package/dist/{auth-Dnp10uLy.mjs → auth-skaSvH3I.mjs} +1 -1
  24. package/dist/{autoconfig-DqEPKpj0.mjs → autoconfig-DXXV-Xyz.mjs} +1 -1
  25. package/dist/{basin-catalog-hRY01t_Z.mjs → basin-catalog-c_Z-KmdC.mjs} +20 -18
  26. package/dist/{billing-C_ev-9nh.mjs → billing-D8eSkPUk.mjs} +1 -1
  27. package/dist/{bot-management-CyYsXkZt.mjs → bot-management-gPqJF81w.mjs} +1 -1
  28. package/dist/{botnet-feed-Dj5R5v2o.mjs → botnet-feed-B1TeX5OO.mjs} +1 -1
  29. package/dist/{brand-protection-CmQ6Iu0I.mjs → brand-protection-jjdTCYeF.mjs} +1 -1
  30. package/dist/{browser-run-sWHTsCSB.mjs → browser-run-CkmofJ6D.mjs} +1 -1
  31. package/dist/{build-_qqitpn0.mjs → build-B-tN7mO-.mjs} +1 -1
  32. package/dist/build-D5D56lvE.mjs +2 -0
  33. package/dist/{builds-c21rTfcg.mjs → builds-Ca9hPvgz.mjs} +1 -1
  34. package/dist/{cache-CuNjJl6m.mjs → cache-BnRnlPjP.mjs} +1 -1
  35. package/dist/{certificate-authorities-DRUUzvI3.mjs → certificate-authorities-D2J5rh-m.mjs} +1 -1
  36. package/dist/{cf-O3gEaXYZ.mjs → cf-Bh_fTFIj.mjs} +2 -2
  37. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  38. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  39. package/dist/{cli-Caa776EB.mjs → cli-xbKU3h28.mjs} +1 -1
  40. package/dist/{client-certificates-BSi1CEGk.mjs → client-certificates-D3mKJGFa.mjs} +1 -1
  41. package/dist/{client-side-security-BdxUX3Y8.mjs → client-side-security-DcO8apX2.mjs} +1 -1
  42. package/dist/{cloud-connector-B46ajuAj.mjs → cloud-connector-CCbT4xFi.mjs} +1 -1
  43. package/dist/{cloudflared-Ciq4L97v.mjs → cloudflared-C4KjWoEY.mjs} +1 -1
  44. package/dist/{cloudforce-one-adbVR2Ah.mjs → cloudforce-one-Cnj0OnZF.mjs} +1 -1
  45. package/dist/{command-C2bU5Etc.mjs → command-8lsstsSi.mjs} +1 -1
  46. package/dist/{command-CRgQ0dM3.mjs → command-B9rrie65.mjs} +1 -1
  47. package/dist/{command-DV196MKR.mjs → command-BUWmTl5w.mjs} +1 -1
  48. package/dist/{command-eBmGBTA7.mjs → command-BWUoVso3.mjs} +1 -1
  49. package/dist/{command-Bw-M_qxb.mjs → command-BtmIP6e1.mjs} +1 -1
  50. package/dist/{command-CkJvjkfK.mjs → command-BvwvCWkB.mjs} +1 -1
  51. package/dist/{command-B5Itp2BM.mjs → command-BxrOxsu9.mjs} +1 -1
  52. package/dist/{command-Du3MiYA7.mjs → command-CUQF-QFP.mjs} +1 -1
  53. package/dist/{command-CVg0qT13.mjs → command-CvzUv83h.mjs} +1 -1
  54. package/dist/{command-BmXnByw9.mjs → command-CwsA28Vt.mjs} +1 -1
  55. package/dist/{command-CHcCSvVz.mjs → command-D5vy9tlg.mjs} +1 -1
  56. package/dist/{command-B47VlNBp.mjs → command-DwbJIcAA.mjs} +1 -1
  57. package/dist/{command-D1Z5uf_S.mjs → command-WCtue6i1.mjs} +1 -1
  58. package/dist/{command-eqgT8zz4.mjs → command-_4j_XD3U.mjs} +1 -1
  59. package/dist/{completions-DbT6O2ol.mjs → completions-EHied_ON.mjs} +1 -1
  60. package/dist/{connector-interrupts-BhfMiPcq.mjs → connector-interrupts-CyeiC7gw.mjs} +1 -1
  61. package/dist/{connector-telemetry-events-CxKECRgO.mjs → connector-telemetry-events-D-cL2RuW.mjs} +1 -1
  62. package/dist/{connector-telemetry-snapshots-BHi-jHE5.mjs → connector-telemetry-snapshots-MrpBZ5fC.mjs} +1 -1
  63. package/dist/{connectors-gkP2aNSN.mjs → connectors-Ds5PWdpP.mjs} +1 -1
  64. package/dist/{containers-DUvBpnRo.mjs → containers-BR6paNcL.mjs} +1 -1
  65. package/dist/{containers-BY8pinEV.mjs → containers-D9masRwv.mjs} +7 -7
  66. package/dist/{content-scan-BCPhAjMZ.mjs → content-scan-eX3wIB8J.mjs} +1 -1
  67. package/dist/{context-CE7QFX-z.mjs → context-M2Ho8pi3.mjs} +1 -1
  68. package/dist/{cps-B35EPUAk.mjs → cps-CyviY22M.mjs} +1 -1
  69. package/dist/{csamScanner-DcTA9oLR.mjs → csamScanner-CHF53DZw.mjs} +1 -1
  70. package/dist/{ct-alerting-B3CS-CPk.mjs → ct-alerting-BORxnBtn.mjs} +1 -1
  71. package/dist/{custom-certificates-IjJJhl7_.mjs → custom-certificates-KsS8xnfG.mjs} +1 -1
  72. package/dist/{custom-csrs-ChYOaEQg.mjs → custom-csrs-BtNQaSVn.mjs} +1 -1
  73. package/dist/{custom-hostnames-Bai3cqAD.mjs → custom-hostnames-4tLpHtCK.mjs} +1 -1
  74. package/dist/{custom-nameservers-DsukmLNZ.mjs → custom-nameservers-DYM29vGA.mjs} +1 -1
  75. package/dist/{custom-pages-CiboX-9D.mjs → custom-pages-BIwM1IyN.mjs} +1 -1
  76. package/dist/{d1-s293SFAJ.mjs → d1-Yhj_t0--.mjs} +1 -1
  77. package/dist/{dcv-delegation-BfgvmpQT.mjs → dcv-delegation-DXspPfEr.mjs} +1 -1
  78. package/dist/{deploy-input-CNrImP7B.mjs → deploy-input-DJWWJs3a.mjs} +1 -1
  79. package/dist/{deploy-CvxNMDbS.mjs → deploy-su0BR90P.mjs} +1 -1
  80. package/dist/{dev-Z6vYszaT.mjs → dev-DqgkwmRH.mjs} +1 -1
  81. package/dist/{diagnostics-Ops0RjxG.mjs → diagnostics-B6FqDbQY.mjs} +1 -1
  82. package/dist/dist-BuCJ_55d.mjs +366 -0
  83. package/dist/{dist-Dgnf_i4w.mjs → dist-CxGYQfpW.mjs} +3 -3
  84. package/dist/{dls-uo7NYEqE.mjs → dls-CDvZjyjo.mjs} +1 -1
  85. package/dist/{dns-B-NwBOpQ.mjs → dns-DGMcGcBE.mjs} +1 -1
  86. package/dist/{dns-firewall-LTIP13nb.mjs → dns-firewall-BahlWOJO.mjs} +1 -1
  87. package/dist/{durable-objects-o7uB3YYg.mjs → durable-objects-Cnho3J7w.mjs} +1 -1
  88. package/dist/{email-auth-BUdBDCaE.mjs → email-auth-CkqeIq8V.mjs} +1 -1
  89. package/dist/{email-routing-BPRliM3z.mjs → email-routing-D_Mw8HSX.mjs} +1 -1
  90. package/dist/{email-security-dbLE3I5c.mjs → email-security-D9yMRsXl.mjs} +1 -1
  91. package/dist/{email-sending-BLlGy5Mn.mjs → email-sending-CQfuE7h6.mjs} +1 -1
  92. package/dist/{error-sanitization-CcNUzN1f.mjs → error-sanitization-BXqhvJsR.mjs} +1 -1
  93. package/dist/error-sanitization-CSlapZbU.mjs +2 -0
  94. package/dist/{fieldExtractors-M-KfLOGw.mjs → fieldExtractors-Bbbegy-c.mjs} +1 -1
  95. package/dist/{firewall-DzbLwqo3.mjs → firewall-DtlT_8mG.mjs} +1 -1
  96. package/dist/{flagship-DcXWEywy.mjs → flagship-BWEdMJSQ.mjs} +1 -1
  97. package/dist/{fraud-CGXRWANi.mjs → fraud-mszBJHV6.mjs} +1 -1
  98. package/dist/{google-tag-gateway-B3Z3Puwl.mjs → google-tag-gateway-DD8rztUs.mjs} +1 -1
  99. package/dist/{healthchecks-BIiV29q7.mjs → healthchecks-CzCJR3df.mjs} +1 -1
  100. package/dist/{hostnames-ueWsZFwv.mjs → hostnames-BTSxAv-T.mjs} +1 -1
  101. package/dist/hyperdrive-Bg1T58qE.mjs +37 -0
  102. package/dist/{iam-kA9gcv79.mjs → iam-cAzxdXI7.mjs} +1 -1
  103. package/dist/{images-CK4J5as7.mjs → images-CfHt8v2n.mjs} +1 -1
  104. package/dist/index.mjs +1 -1
  105. package/dist/{init-COcG8sp5.mjs → init-9TwyFuzD.mjs} +1 -1
  106. package/dist/{intel-z7DkM9Xc.mjs → intel-WWPG0-t7.mjs} +1 -1
  107. package/dist/{ips-BXdBK4Co.mjs → ips-CxSw5R88.mjs} +1 -1
  108. package/dist/{keyless-certificates-Dp9xTYtD.mjs → keyless-certificates-Jfsyada7.mjs} +1 -1
  109. package/dist/{keys-DrVlj4VI.mjs → keys-BrDarg28.mjs} +1 -1
  110. package/dist/{kv-WX-dlUT1.mjs → kv-C8eauBSy.mjs} +1 -1
  111. package/dist/{lazy-command-g04RHlS2.mjs → lazy-command-B0914_IJ.mjs} +1 -1
  112. package/dist/{leaked-credential-checks-BMQ0VhCd.mjs → leaked-credential-checks-Y9mDSJKn.mjs} +1 -1
  113. package/dist/{load-balancers-BbkSL89c.mjs → load-balancers-DsKJIF_U.mjs} +1 -1
  114. package/dist/local-B5d4OPhA.mjs +2 -0
  115. package/dist/{local-Cyk8fPvL.mjs → local-CQc36Viv.mjs} +1 -1
  116. package/dist/{local-runtime-CWWJJB2E.mjs → local-runtime-CifOYlPq.mjs} +1 -1
  117. package/dist/{login-CyU_ZTNI.mjs → login-DFZ3DEjI.mjs} +1 -1
  118. package/dist/{login-DYQ8UgJQ.mjs → login-DGXSiCII.mjs} +1 -1
  119. package/dist/{logo-matches-HFmD2hK6.mjs → logo-matches-D1vjZF-k.mjs} +1 -1
  120. package/dist/{logos-Di2PABE_.mjs → logos-CCEIMvE7.mjs} +1 -1
  121. package/dist/{logpush-DEqdt0I0.mjs → logpush-DAx2y5MY.mjs} +1 -1
  122. package/dist/{logs-Ckfw-3Q_.mjs → logs-D9BsByMt.mjs} +3 -4
  123. package/dist/{magic-cloud-networking-C0yBJKMb.mjs → magic-cloud-networking-C_FsIQoS.mjs} +1 -1
  124. package/dist/{magic-network-monitoring-CLvaiI7s.mjs → magic-network-monitoring-DBo1mI3a.mjs} +1 -1
  125. package/dist/{magic-transit-Bhb1kxYj.mjs → magic-transit-BgRq6ZeA.mjs} +1 -1
  126. package/dist/{managed-defense-COL3aqXw.mjs → managed-defense-BRdCrVVh.mjs} +1 -1
  127. package/dist/{managed-transforms-cK0strTK.mjs → managed-transforms-cmvRuRQ7.mjs} +1 -1
  128. package/dist/{matches-Df4WEz0x.mjs → matches-B0bzP6tB.mjs} +1 -1
  129. package/dist/{mcp-DK_5OUVl.mjs → mcp-CSxoAB-y.mjs} +1 -1
  130. package/dist/{mesh-CVXpTYED.mjs → mesh-C-n2gi4F.mjs} +1 -1
  131. package/dist/{monetization-BHk0S5BF.mjs → monetization-DHFiy5qs.mjs} +1 -1
  132. package/dist/{mtls-certificates-8pzdxzOX.mjs → mtls-certificates-o11WJKM1.mjs} +1 -1
  133. package/dist/{network-ClNeXTvG.mjs → network-Ck6XHs9j.mjs} +1 -1
  134. package/dist/{network-interconnects-t3jSoV7o.mjs → network-interconnects-CT4a_D5b.mjs} +1 -1
  135. package/dist/{oauth-CNSirGUu.mjs → oauth-D6EZEBcY.mjs} +1 -1
  136. package/dist/{oauth-CJamdfrC.mjs → oauth-D9jA6L9a.mjs} +1 -1
  137. package/dist/{oauth-clients-DBxdvlJC.mjs → oauth-clients-DRBvDDNL.mjs} +1 -1
  138. package/dist/{oauth-scopes-D39GYkt6.mjs → oauth-scopes-eV0VbNV-.mjs} +1 -1
  139. package/dist/{observability-ZV1yPflB.mjs → observability-CBCuWCen.mjs} +1 -1
  140. package/dist/{organization-Bk-TkQlB.mjs → organization-3y27rtm7.mjs} +1 -1
  141. package/dist/{organizations-hXITNpPl.mjs → organizations-Q9QPbB-p.mjs} +1 -1
  142. package/dist/{origin-ca-certificates-DsLR_Z2e.mjs → origin-ca-certificates-CbTgmQ2N.mjs} +1 -1
  143. package/dist/{origin-post-quantum-encryption-C_egsVQu.mjs → origin-post-quantum-encryption-D5zeAJJ1.mjs} +1 -1
  144. package/dist/{origin-tls-client-auth-DPG6A6kz.mjs → origin-tls-client-auth-V5hB1Bwu.mjs} +1 -1
  145. package/dist/{page-rules-B8lrkiiF.mjs → page-rules-BYYBcKRU.mjs} +1 -1
  146. package/dist/{pages-Cx4doLvQ.mjs → pages-CfinrrWX.mjs} +1 -1
  147. package/dist/{pay-per-crawl-BUVHqPPA.mjs → pay-per-crawl-C-S5WxQT.mjs} +1 -1
  148. package/dist/{pay-per-use-CzYgryid.mjs → pay-per-use-B3gl7GQo.mjs} +1 -1
  149. package/dist/{pipelines-CGHmwc4a.mjs → pipelines-lfvTXng7.mjs} +1 -1
  150. package/dist/{precursor--Jim5u4y.mjs → precursor-CNm5rIPl.mjs} +1 -1
  151. package/dist/{previews-BKO1pZyG.mjs → previews-DV7OxoSM.mjs} +1 -1
  152. package/dist/{progress-CRjK46r1.mjs → progress-BnIv4lh5.mjs} +1 -1
  153. package/dist/{prompt-C_90YsVE.mjs → prompt-DjRAo2Up.mjs} +1 -1
  154. package/dist/{queries-z2pjzXlA.mjs → queries-D0obyA9I.mjs} +1 -1
  155. package/dist/{queues-D0IXxSa7.mjs → queues-G1CS4M1H.mjs} +1 -1
  156. package/dist/{r2-DQ7w9dCM.mjs → r2-BLXUGlGq.mjs} +27 -34
  157. package/dist/{radar-DyLO7Zg1.mjs → radar-hGFsVuHs.mjs} +1 -1
  158. package/dist/{raw-fetch-C8SdmQBp.mjs → raw-fetch-CuMHmrn0.mjs} +1 -1
  159. package/dist/{realtime-mQzLbDxe.mjs → realtime-CZYwfmjr.mjs} +1 -1
  160. package/dist/{registrar-ClbtM5Dy.mjs → registrar-dvv2gU93.mjs} +1 -1
  161. package/dist/{registrar-sandbox-BIEHm_Jp.mjs → registrar-sandbox-Cnqn9BDJ.mjs} +1 -1
  162. package/dist/{registry-CSv7HR1J.mjs → registry-DWTPK8_Q.mjs} +1 -1
  163. package/dist/{reporting-CjkMzSsZ.mjs → reporting-Bfwnpc7z.mjs} +1 -1
  164. package/dist/{request-headers-jr2VznA9.mjs → request-headers-DaUqNccK.mjs} +1 -1
  165. package/dist/{request-tracers-BoSXOTox.mjs → request-tracers-CF4_bzqx.mjs} +1 -1
  166. package/dist/{resource-sharing-CFS39nJq.mjs → resource-sharing-DaY7ISTQ.mjs} +1 -1
  167. package/dist/{resource-tagging-CZ5mvMhE.mjs → resource-tagging-D669i7sI.mjs} +1 -1
  168. package/dist/{rules-CfqumI45.mjs → rules-C9w-8uyl.mjs} +1 -1
  169. package/dist/{rulesets-o3jsPv4U.mjs → rulesets-yYRTXZ71.mjs} +1 -1
  170. package/dist/{rum-BZ0rYlun.mjs → rum-DPrqqYSC.mjs} +1 -1
  171. package/dist/run-Dkcz54xY.mjs +2 -0
  172. package/dist/run-Duj1fsxa.mjs +2 -0
  173. package/dist/{schema-flags-nL7pHvaE.mjs → schema-flags-CK4J4XhG.mjs} +1 -1
  174. package/dist/{scim-0-eR9pvC.mjs → scim-DAZek91U.mjs} +1 -1
  175. package/dist/{sdk-Bmz7t_CD.mjs → sdk-DzVznUuv.mjs} +1 -1
  176. package/dist/{secrets-store-Duc29Zs-.mjs → secrets-store-COlaXNll.mjs} +1 -1
  177. package/dist/{security-insights-5CuLC-Yo.mjs → security-insights-DF6ffEWO.mjs} +1 -1
  178. package/dist/{security-txt-qm2PqCPz.mjs → security-txt-D1nLEOCZ.mjs} +1 -1
  179. package/dist/{session-CjQFm10R.mjs → session-CZTuHcbm.mjs} +1 -1
  180. package/dist/{shared-BDIrEKWt.mjs → shared-_YyZp2AY.mjs} +1 -1
  181. package/dist/{smart-shield-BXLH9OM0.mjs → smart-shield-CKSVq1sT.mjs} +1 -1
  182. package/dist/{snippets-DZG6UWeH.mjs → snippets-D5zLR7Nj.mjs} +1 -1
  183. package/dist/{spawn-KZqyx6KK.mjs → spawn-DiZTRMi2.mjs} +1 -1
  184. package/dist/{spectrum-Be4ImAIY.mjs → spectrum-L56rh44p.mjs} +1 -1
  185. package/dist/{speed-CNWujfIC.mjs → speed-CfufTtTk.mjs} +1 -1
  186. package/dist/{src-CW6py11z.mjs → src-BIRFlqDR.mjs} +5 -5
  187. package/dist/{ssl-BIlS4Qs8.mjs → ssl-BrDo1vL9.mjs} +1 -1
  188. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  189. package/dist/{startup-profile-DrV846S5.mjs → startup-profile-CR7GMuLx.mjs} +2 -2
  190. package/dist/{state-DhHOAdTo.mjs → state-BaGRaYow.mjs} +1 -1
  191. package/dist/state-CpXhcMdX.mjs +2 -0
  192. package/dist/{stream-C5RvTAKF.mjs → stream-1BpcnrhV.mjs} +1 -1
  193. package/dist/{submit-Bpru4P79.mjs → submit-C-ICyQA7.mjs} +1 -1
  194. package/dist/{tags-Rv7X1rU9.mjs → tags-BA2CG06z.mjs} +1 -1
  195. package/dist/telemetry-Bn5lYtiy.mjs +2 -0
  196. package/dist/{telemetry-0npQCuKc.mjs → telemetry-D14VqvDU.mjs} +1 -1
  197. package/dist/{tenant-CjYf6OPN.mjs → tenant-DZ4dgD2t.mjs} +1 -1
  198. package/dist/{tenant-custom-nameservers-BbHaaEhv.mjs → tenant-custom-nameservers-YjOHEMtf.mjs} +1 -1
  199. package/dist/{tunnels-CLWPaIIF.mjs → tunnels-l8YE_pie.mjs} +1 -1
  200. package/dist/{turnstile-C5ezKSoz.mjs → turnstile-BQrUOlSx.mjs} +1 -1
  201. package/dist/{update-check-aOpHVlzB.mjs → update-check-BPVQSvnH.mjs} +1 -1
  202. package/dist/update-check-worker.mjs +1 -1
  203. package/dist/update-check-zLVAcGWy.mjs +2 -0
  204. package/dist/{url-info-Gcf8-MyB.mjs → url-info-D2l_0t3y.mjs} +1 -1
  205. package/dist/{url-normalization-Dvg8mZRk.mjs → url-normalization-K8zAzorz.mjs} +1 -1
  206. package/dist/{url-scanner-BZCsgh0O.mjs → url-scanner-Dv7lSDeH.mjs} +1 -1
  207. package/dist/{user-BnkvXmjc.mjs → user-DleZBZED.mjs} +1 -1
  208. package/dist/{values-yUGls__L.mjs → values-BnpLZYLh.mjs} +1 -1
  209. package/dist/{vectorize-BiXngTuI.mjs → vectorize-DyHeuA7K.mjs} +1 -1
  210. package/dist/version-CH8K5y4G.mjs +2 -0
  211. package/dist/{waiting-rooms-BoLWF74U.mjs → waiting-rooms-CKp_ty0T.mjs} +1 -1
  212. package/dist/{web-assets-CEJ9Zne1.mjs → web-assets-XrKWHvN4.mjs} +1 -1
  213. package/dist/{web3-CIjm7EuJ.mjs → web3-Bntbgx_4.mjs} +1 -1
  214. package/dist/{workers-DdtWb7Ws.mjs → workers-DM3cs8PN.mjs} +1 -1
  215. package/dist/{workers-builds-DT4tA-KT.mjs → workers-builds-02i1psK2.mjs} +1 -1
  216. package/dist/{workers-for-platforms-CaCr8ApU.mjs → workers-for-platforms-B5RlZXZK.mjs} +1 -1
  217. package/dist/{workers-vpc-DRtjG39D.mjs → workers-vpc-kjiAIRuT.mjs} +1 -1
  218. package/dist/{workflows-DRme6yrC.mjs → workflows-BkuFC47X.mjs} +1 -1
  219. package/dist/{zaraz-DmjDEnUJ.mjs → zaraz-BPOqw7RU.mjs} +1 -1
  220. package/dist/{zero-trust-BRAHExxa.mjs → zero-trust-B4sjDfre.mjs} +1 -1
  221. package/dist/{zone-CclLvb-g.mjs → zone-DkaGQuB6.mjs} +1 -1
  222. package/dist/{zones-C6tc2OOV.mjs → zones-DIlihhZN.mjs} +1 -1
  223. package/package.json +12 -12
  224. package/dist/build-Dyt1M_Ib.mjs +0 -2
  225. package/dist/chunk-M77HNR46-DPbhuhiy.mjs +0 -2
  226. package/dist/chunk-RV27PEH3-Cws_30ln.mjs +0 -97
  227. package/dist/dist-DfMipWKR.mjs +0 -366
  228. package/dist/error-sanitization-CEf4JTNN.mjs +0 -2
  229. package/dist/hyperdrive-Bxk9LZf5.mjs +0 -37
  230. package/dist/local-BWhuu9TH.mjs +0 -2
  231. package/dist/run-D0_7wBp2.mjs +0 -2
  232. package/dist/run-huwFFwXd.mjs +0 -2
  233. package/dist/startup-profile-B0UCc9_J.mjs +0 -2
  234. package/dist/state-Dyo8DcW7.mjs +0 -2
  235. package/dist/telemetry-B4_YhD82.mjs +0 -2
  236. package/dist/update-check-CebyUyqG.mjs +0 -2
  237. package/dist/version-C3q1GMTe.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-C_90YsVE.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 mesh nodes configurations get <tunnel-id>
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-DjRAo2Up.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 mesh nodes configurations get <tunnel-id>
3
3
 
4
4
  Gets the high-availability configuration for a WARP Connector tunnel.`).positional(`tunnel-id`,{type:`string`,description:`UUID of the tunnel.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <tunnel-id>`,describe:`Get WARP Connector HA configuration`,builder:h,handler:async c=>s({command:`mesh nodes configurations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mesh nodes configurations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/warp_connector/${c[`tunnel-id`]==null?`<tunnel-id>`:encodeURIComponent(String(c[`tunnel-id`]))}/configurations`,pathParams:{"tunnel-id":String(c[`tunnel-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mesh.nodes.configurations.get({account_id:l,tunnel_id:c[`tunnel-id`]})),{successLabel:`Loaded`})})};function _(e){return e.usage(`$0 mesh nodes configurations update <tunnel-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,i as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{n as p}from"./prompt-C_90YsVE.mjs";function m(e){return e.usage(`$0 monetization account-eligibility check
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,i as n,t as r}from"./context-M2Ho8pi3.mjs";import{r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BnIv4lh5.mjs";import{t as c}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{n as p}from"./prompt-DjRAo2Up.mjs";function m(e){return e.usage(`$0 monetization account-eligibility check
3
3
 
4
4
  Checks the account or zone for Monetization Gateway eligibility and returns its pending, approved, or rejected decision.`).option(`accepted-terms-of-service`,{type:`boolean`,description:`Confirms acceptance of the Monetization Gateway terms of service.`}).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 h={command:`check`,describe:`Check account or zone monetization eligibility`,builder:m,handler:async u=>c({command:`monetization account-eligibility check`,classification:{safeFlags:[`accepted-terms-of-service`,`dry-run`]}},u,async()=>{if(u.dryRun){let e=u.zone===void 0?await t():void 0,n=u.zone===void 0?`accounts`:`zones`,r=u.zone??e??`<account-id>`;o({command:`cf monetization account-eligibility check`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/monetization`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:u.body===void 0?d({acceptedTermsOfService:u[`accepted-terms-of-service`]}):l(u.body)});return}let c=await i(u),f=u.zone===void 0?`accounts`:`zones`,p=f===`zones`?await n({zone:u.zone},c,{quiet:u.quiet}):u.local?e:await r();if(f===`zones`?u.zoneId=p:u.accountId=p,u.body){let e=l(u.body);a(await s(`Creating`,async()=>c.monetization.accountEligibility.check({...e,account_or_zone:f,account_or_zone_id:p})),{successLabel:`Created`});return}if(u[`accepted-terms-of-service`]===void 0)throw Error(`--accepted-terms-of-service is required (or pass --body with this field set).`);let m=d({acceptedTermsOfService:u[`accepted-terms-of-service`]});a(await s(`Creating`,async()=>c.monetization.accountEligibility.check({...m,account_or_zone:f,account_or_zone_id:p})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 monetization account-eligibility get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-C_90YsVE.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-id>
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-DjRAo2Up.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 mtls-certificates associations get <mtls-certificate-id>
3
3
 
4
4
  Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:m,handler:async c=>s({command:`mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/mtls_certificates/${c[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(c[`mtls-certificate-id`]))}/associations`,pathParams:{"mtls-certificate-id":String(c[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await n();c.accountId=l,i(await o(`Loading`,async()=>s.mtlsCertificates.associations.get({account_id:l,mtls_certificate_id:c[`mtls-certificate-id`]})),{successLabel:`Loaded`})})},g={command:`associations`,describe:`Operations for associations`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.usage(`$0 mtls-certificates create
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-C_90YsVE.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 network routes cidr create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-DjRAo2Up.mjs";import{t as p}from"./cli-types-DoVT5q_M.mjs";function m(e){return e.usage(`$0 network routes cidr create
3
3
 
4
4
  Routes a private network through a Cloudflare Tunnel.`).option(`comment`,{type:`string`,description:`Optional remark describing the route.`,default:``}).option(`network`,{type:`string`,description:`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`}).option(`virtual-network-id`,{type:`string`,description:`UUID of the virtual network.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Create a tunnel route`,builder:m,handler:async f=>s({command:`network routes cidr create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf network routes cidr create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/teamnet/routes`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await n();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.network.routes.cidr.create({...e,account_id:p})),{successLabel:`Created`});return}f.network===void 0&&(f.network=await d(`network`,`The private IPv4 or IPv6 range connected by the route, in CIDR notation.`));let m=l({comment:u(f.comment,`comment`,`text`),network:u(f.network,`network`,`text`),virtual_network_id:u(f[`virtual-network-id`],`virtual-network-id`,`text`)});i(await o(`Creating`,async()=>s.network.routes.cidr.create({...m,account_id:p})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 network routes cidr delete <route-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-C_90YsVE.mjs";function p(e){return e.usage(`$0 network-interconnects cnis create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,n as f}from"./prompt-DjRAo2Up.mjs";function p(e){return e.usage(`$0 network-interconnects cnis create
3
3
 
4
4
  Creates a new Cloud Network Interconnect (CNI) for private network connectivity between Cloudflare and your infrastructure. CNIs enable dedicated, high-performance network links.`).option(`account`,{type:`string`,description:`Customer account tag`}).option(`bgp-customer-asn`,{type:`number`,description:`ASN used on the customer end of the BGP session`}).option(`bgp-extra-prefixes`,{type:`string`,array:!0,description:`Extra set of static prefixes to advertise to the customer's end of the session`}).option(`bgp-md5-key`,{type:`string`,description:`MD5 key to use for session authentication.
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./version-C3q1GMTe.mjs";import{t as r}from"./session-CjQFm10R.mjs";import{a as i,n as a,t as o}from"./cf-O3gEaXYZ.mjs";import{n as s}from"./context-CE7QFX-z.mjs";import{M as c,n as l}from"./interactive-C-o16XQs.mjs";import{i as u,o as d}from"./dist-DW47TUGh.mjs";const f={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 p=class extends Error{};async function m(n){if(l())throw new p;r(t);let i=await d({message:n});if(c(i)||typeof i!=`string`)throw new e(130,{cancelled:!0});return i}async function h(n,i){if(l())throw new p;r(t);let a=await u({message:n,options:i.choices.map(({title:e,value:t})=>({label:e,value:t}))});if(c(a)||typeof a!=`string`)throw new e(130,{cancelled:!0});return f.log(`To have cf automatically use this account for future commands in this project, you can update your \`cloudflare.config.ts\`:
2
+ import{t as e}from"./cli-exit-Dqoo6Jgb.mjs";import{n as t,t as n}from"./version-CH8K5y4G.mjs";import{t as r}from"./session-CZTuHcbm.mjs";import{a as i,n as a,t as o}from"./cf-Bh_fTFIj.mjs";import{n as s}from"./context-M2Ho8pi3.mjs";import{M as c,n as l}from"./interactive-C-o16XQs.mjs";import{i as u,o as d}from"./dist-DW47TUGh.mjs";const f={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 p=class extends Error{};async function m(n){if(l())throw new p;r(t);let i=await d({message:n});if(c(i)||typeof i!=`string`)throw new e(130,{cancelled:!0});return i}async function h(n,i){if(l())throw new p;r(t);let a=await u({message:n,options:i.choices.map(({title:e,value:t})=>({label:e,value:t}))});if(c(a)||typeof a!=`string`)throw new e(130,{cancelled:!0});return f.log(`To have cf automatically use this account for future commands in this project, you can update your \`cloudflare.config.ts\`:
3
3
 
4
4
  import { defineConfig } from "cf/config";
5
5
 
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as e,f as t,n}from"./oauth-CNSirGUu.mjs";export{n as getActiveAccountId,e as getOrSelectAccountId,t as resolveProfile};
2
+ import{a as e,f as t,n}from"./oauth-D6EZEBcY.mjs";export{n as getActiveAccountId,e as getOrSelectAccountId,t as resolveProfile};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-C_90YsVE.mjs";function m(e){return e.usage(`$0 oauth-clients create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,t as l}from"./body-parser-hh2avzkz.mjs";import{n as u}from"./input-validation-Dk52b0me.mjs";import{a as d,i as f,n as p}from"./prompt-DjRAo2Up.mjs";function m(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`]}).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 h={command:`create`,describe:`Create OAuth Client`,builder:m,handler:async p=>s({command:`oauth-clients create`,classification:{safeFlags:[`token-endpoint-auth-method`,`dry-run`]}},p,async()=>{if(p.dryRun){a({command:`cf oauth-clients create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/oauth_clients`,pathParams:{},bodyKind:`json`,body:p.body===void 0?l({allowed_cors_origins:p[`allowed-cors-origins`],client_name:u(p[`client-name`],`client-name`,`text`),client_uri:u(p[`client-uri`],`client-uri`,`text`),grant_types:p[`grant-types`],logo_uri:u(p[`logo-uri`],`logo-uri`,`text`),optional_scopes:p[`optional-scopes`],policy_uri:u(p[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:p[`post-logout-redirect-uris`],redirect_uris:p[`redirect-uris`],response_types:p[`response-types`],scopes:p.scopes,token_endpoint_auth_method:u(p[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(p[`tos-uri`],`tos-uri`,`text`)}):c(p.body)});return}let s=await r(p),m=p.local?e:await n();if(p.accountId=m,p.body){let e=c(p.body);i(await o(`Creating`,async()=>s.oauthClients.create({...e,account_id:m})),{successLabel:`Created`});return}if(p[`client-name`]===void 0&&(p[`client-name`]=await d(`client-name`,`Human-readable name of the OAuth client.`)),p[`grant-types`]===void 0)throw Error(`--grant-types is required (or pass --body with this field set).`);if(p[`redirect-uris`]===void 0)throw Error(`--redirect-uris is required (or pass --body with this field set).`);if(p[`response-types`]===void 0)throw Error(`--response-types is required (or pass --body with this field set).`);if(p.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);p[`token-endpoint-auth-method`]===void 0&&(p[`token-endpoint-auth-method`]=await f(`token-endpoint-auth-method`,`The authentication method the client uses at the token endpoint.`,[`none`,`client_secret_basic`,`client_secret_post`]));let h=l({allowed_cors_origins:p[`allowed-cors-origins`],client_name:u(p[`client-name`],`client-name`,`text`),client_uri:u(p[`client-uri`],`client-uri`,`text`),grant_types:p[`grant-types`],logo_uri:u(p[`logo-uri`],`logo-uri`,`text`),optional_scopes:p[`optional-scopes`],policy_uri:u(p[`policy-uri`],`policy-uri`,`text`),post_logout_redirect_uris:p[`post-logout-redirect-uris`],redirect_uris:p[`redirect-uris`],response_types:p[`response-types`],scopes:p.scopes,token_endpoint_auth_method:u(p[`token-endpoint-auth-method`],`token-endpoint-auth-method`,`text`),tos_uri:u(p[`tos-uri`],`tos-uri`,`text`)});i(await o(`Creating`,async()=>s.oauthClients.create({...h,account_id:m})),{successLabel:`Created`})})};function g(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{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";function a(e){return e.usage(`$0 oauth-scopes list
2
+ import{r as e}from"./auth-BjxUTZWb.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BnIv4lh5.mjs";import{t as i}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";function a(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 o={command:`list`,describe:`List OAuth Scopes`,builder:a,handler:async a=>i({command:`oauth-scopes list`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.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(a);t(await r(`Loading`,async()=>i.oauthScopes.list()),{successLabel:`Loaded`})})},s={command:`oauth-scopes`,describe:`oauth-scopes`,builder:e=>e.command(o).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{s as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,i as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-C_90YsVE.mjs";import{t as g}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 observability destinations create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,i as n,t as r}from"./context-M2Ho8pi3.mjs";import{r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BnIv4lh5.mjs";import{t as c}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-DjRAo2Up.mjs";import{t as g}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 observability destinations create
3
3
 
4
4
  Create a new Workers Observability Telemetry Destination.`).option(`configuration-type`,{type:`string`,description:`The configuration.type field`,choices:[`logpush`]}).option(`configuration-url`,{type:`string`,description:`The configuration.url field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`name`,{type:`string`,description:`The name field`}).option(`skip-preflight-check`,{type:`boolean`,description:`The skipPreflightCheck field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const te={command:`create`,describe:`Create Destination`,builder:ee,handler:async n=>c({command:`observability destinations create`,classification:{safeFlags:[`configuration-type`,`enabled`,`skip-preflight-check`,`dry-run`]}},n,async()=>{if(n.dryRun){o({command:`cf observability destinations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/workers/observability/destinations`,pathParams:{},bodyKind:`json`,body:n.body===void 0?d({configuration:{type:f(n[`configuration-type`],`configuration-type`,`text`),url:f(n[`configuration-url`],`configuration-url`,`text`)},enabled:n.enabled,name:f(n.name,`name`,`text`),skipPreflightCheck:n[`skip-preflight-check`]}):l(n.body)});return}let c=await i(n),u=n.local?e:await r();if(n.accountId=u,n.body){let e=l(n.body);a(await s(`Creating`,async()=>c.observability.destinations.create({...e,account_id:u})),{successLabel:`Created`});return}if(n[`configuration-type`]===void 0&&(n[`configuration-type`]=await m(`configuration-type`,`The configuration.type field`,[`logpush`])),n[`configuration-url`]===void 0&&(n[`configuration-url`]=await p(`configuration-url`,`The configuration.url field`)),n.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);n.name===void 0&&(n.name=await p(`name`,`The name field`));let h=d({configuration:{type:f(n[`configuration-type`],`configuration-type`,`text`),url:f(n[`configuration-url`],`configuration-url`,`text`)},enabled:n.enabled,name:f(n.name,`name`,`text`),skipPreflightCheck:n[`skip-preflight-check`]});a(await s(`Creating`,async()=>c.observability.destinations.create({...h,account_id:u})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 observability destinations delete <slug>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as a,r as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-C_90YsVE.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 organization account list
2
+ import{r as e}from"./auth-BjxUTZWb.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BnIv4lh5.mjs";import{t as i}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as a,r as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-DjRAo2Up.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(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. (Currently in Public Beta - see https://developers.cloudflare.com/fundamentals/organizations/)`).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{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{t as a}from"./cli-types-DoVT5q_M.mjs";function o(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:** Cost and pricing fields are not yet populated and will be absent from responses until billing integration is complete. 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 s={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:o,handler:async a=>i({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={from:a.from,to:a.to};if(a.dryRun){n({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.billing.usage.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},c={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},l={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function u(e){return e.usage(`$0 organizations logs audit get <organization-id>
2
+ import{r as e}from"./auth-BjxUTZWb.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BnIv4lh5.mjs";import{t as i}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{t as a}from"./cli-types-DoVT5q_M.mjs";function o(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:** Cost and pricing fields are not yet populated and will be absent from responses until billing integration is complete. 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 s={command:`get <organization-id>`,describe:`Get Organization Usage (Version 2, Alpha, Restricted)`,builder:o,handler:async a=>i({command:`organizations billing usage get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{let i={from:a.from,to:a.to};if(a.dryRun){n({command:`cf organizations billing usage get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/billable/usage`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.billing.usage.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})},c={command:`usage`,describe:`Operations for billing.usage`,builder:e=>e.command(s).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},l={command:`billing`,describe:`Operations for billing`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function u(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 d={command:`get <organization-id>`,describe:`Get organization audit logs (Version 2)`,builder:a(u),handler:async a=>i({command:`organizations logs audit get`,classification:{safeFlags:[`direction`,`dry-run`]}},a,async()=>{let i={action_result:a[`action-result`],action_type:a[`action-type`],actor_context:a[`actor-context`],actor_email:a[`actor-email`],actor_id:a[`actor-id`],actor_ip_address:a[`actor-ip-address`],actor_token_id:a[`actor-token-id`],actor_token_name:a[`actor-token-name`],actor_type:a[`actor-type`],id:a.id,raw_cf_ray_id:a[`raw-cf-ray-id`],raw_method:a[`raw-method`],raw_status_code:a[`raw-status-code`],raw_uri:a[`raw-uri`],resource_id:a[`resource-id`],resource_product:a[`resource-product`],resource_type:a[`resource-type`],resource_scope:a[`resource-scope`],"action_result.not":a[`action-result-not`],"action_type.not":a[`action-type-not`],"actor_context.not":a[`actor-context-not`],"actor_email.not":a[`actor-email-not`],"actor_id.not":a[`actor-id-not`],"actor_ip_address.not":a[`actor-ip-address-not`],"actor_token_id.not":a[`actor-token-id-not`],"actor_token_name.not":a[`actor-token-name-not`],"actor_type.not":a[`actor-type-not`],"id.not":a[`id-not`],"raw_cf_ray_id.not":a[`raw-cf-ray-id-not`],"raw_method.not":a[`raw-method-not`],"raw_status_code.not":a[`raw-status-code-not`],"raw_uri.not":a[`raw-uri-not`],"resource_id.not":a[`resource-id-not`],"resource_product.not":a[`resource-product-not`],"resource_type.not":a[`resource-type-not`],"resource_scope.not":a[`resource-scope-not`],since:a.since,before:a.before,direction:a.direction,limit:a.limit,cursor:a.cursor};if(a.dryRun){n({command:`cf organizations logs audit get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/logs/audit`,pathParams:{"organization-id":String(a[`organization-id`]??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.logs.audit.get({organization_id:a[`organization-id`],...i})),{successLabel:`Loaded`})})};function f(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 p={command:`history <id>`,describe:`Get resource change history from an organization audit log entry (Version 2)`,builder:a(f),handler:async a=>i({command:`organizations logs audit history`,classification:{safeFlags:[`direction`,`dry-run`]}},a,async()=>{let i={action_time:a[`action-time`],since:a.since,before:a.before,direction:a.direction,limit:a.limit,cursor:a.cursor};if(a.dryRun){n({command:`cf organizations logs audit history`,method:`GET`,url:`https://api.cloudflare.com/client/v4/organizations/${a[`organization-id`]==null?`<organization-id>`:encodeURIComponent(String(a[`organization-id`]))}/logs/audit/${a.id==null?`<id>`:encodeURIComponent(String(a.id))}/history`,pathParams:{"organization-id":String(a[`organization-id`]??``),id:String(a.id??``)},query:i,bodyKind:`none`});return}let o=await e(a);t(await r(`Loading`,async()=>o.organizations.logs.audit.history({organization_id:a[`organization-id`],id:a.id,...i})),{successLabel:`Loaded`})})},m={command:`audit`,describe:`Operations for logs.audit`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},h={command:`logs`,describe:`Operations for logs`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`organizations`,describe:`Multi-user organizations that group accounts, members, and shared settings under a single entity`,builder:e=>e.command(l).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-gOCL6Pm0.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-CRjK46r1.mjs";import{t as i}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";import{a as c,i as l,n as u}from"./prompt-C_90YsVE.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 origin-ca-certificates create
2
+ import{r as e}from"./auth-BjxUTZWb.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-BnIv4lh5.mjs";import{t as i}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";import{a as c,i as l,n as u}from"./prompt-DjRAo2Up.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 origin-ca-certificates create
3
3
 
4
4
  Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`hostnames`,{type:`string`,array:!0,description:"Array of hostnames or wildcard names bound to the certificate.\nHostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., `example.com` or `sub.example.com`). Wildcards are supported only as a `*.` prefix for a single level (e.g., `*.example.com`). Double wildcards (`*.*.example.com`) and interior wildcards (`foo.*.example.com`) are not allowed. The wildcard suffix must be a multi-label domain (`*.example.com` is valid, but `*.com` is not). Unicode/IDN hostnames are accepted and automatically converted to punycode."}).option(`request-type`,{type:`string`,description:`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,choices:[`origin-rsa`,`origin-ecc`,`keyless-certificate`]}).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`create`,describe:`Create Certificate`,builder:f,handler:async u=>i({command:`origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},u,async()=>{if(u.dryRun){n({command:`cf origin-ca-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},bodyKind:`json`,body:u.body===void 0?o({csr:s(u.csr,`csr`,`text`),hostnames:u.hostnames,request_type:s(u[`request-type`],`request-type`,`text`),requested_validity:u[`requested-validity`]}):a(u.body)});return}let i=await e(u);if(u.body){let e=a(u.body);t(await r(`Creating`,async()=>i.originCaCertificates.create({...e})),{successLabel:`Created`});return}if(u.csr===void 0&&(u.csr=await c(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),u.hostnames===void 0)throw Error(`--hostnames is required (or pass --body with this field set).`);u[`request-type`]===void 0&&(u[`request-type`]=await l(`request-type`,`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,[`origin-rsa`,`origin-ecc`,`keyless-certificate`]));let d=o({csr:s(u.csr,`csr`,`text`),hostnames:u.hostnames,request_type:s(u[`request-type`],`request-type`,`text`),requested_validity:u[`requested-validity`]});t(await r(`Creating`,async()=>i.originCaCertificates.create({...d})),{successLabel:`Created`})})};function m(e){return e.usage(`$0 origin-ca-certificates delete <certificate-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l}from"./prompt-C_90YsVE.mjs";function u(e){return e.usage(`$0 origin-post-quantum-encryption get
2
+ import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{i as l}from"./prompt-DjRAo2Up.mjs";function u(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 d={command:`get`,describe:`Get Origin Post-Quantum Encryption setting`,builder:u,handler:async o=>a({command:`origin-post-quantum-encryption get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf origin-post-quantum-encryption get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/cache/origin_post_quantum_encryption`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.originPostQuantumEncryption.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.usage(`$0 origin-post-quantum-encryption update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-C_90YsVE.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 origin-tls-client-auth hostname-associations list
2
+ import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-DjRAo2Up.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 origin-tls-client-auth hostname-associations list
3
3
 
4
4
  List certificate ID - hostname associations for the given zone. Shows which hostnames are associated to which certificates for authenticated origin pulls.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of associations per page.`}).option(`status`,{type:`string`,description:`Filter associations by status. Use comma-separated values to filter by multiple statuses, or "all" to include every status. Defaults to "active" if not provided.`,choices:[`active`,`pending_deployment`,`pending_deletion`,`deleted`,`deployment_timed_out`,`deletion_timed_out`,`all`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List Hostname Associations`,builder:f(p),handler:async o=>a({command:`origin-tls-client-auth hostname-associations list`,classification:{safeFlags:[`status`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],status:o.status};if(o.dryRun){r({command:`cf origin-tls-client-auth hostname-associations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/origin_tls_client_auth/hostnames`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.originTlsClientAuth.hostnameAssociations.list({zone_id:c,...a})),{successLabel:`Loaded`})})},h={command:`hostname-associations`,describe:`Operations for hostname-associations`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 origin-tls-client-auth hostname-certificates create
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{i as e}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{n as u}from"./prompt-C_90YsVE.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 page-rules create
2
+ import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{n as u}from"./prompt-DjRAo2Up.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(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-g04RHlS2.mjs";import{t}from"./local-Cyk8fPvL.mjs";import{a as n,t as r}from"./context-CE7QFX-z.mjs";import{a as i,r as a}from"./auth-gOCL6Pm0.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-CRjK46r1.mjs";import{t as l}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f,t as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-C_90YsVE.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";var _=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-D1Z5uf_S.mjs`),{command:`pages deploy`,recordArgs:!1});function v(e){return e.usage(`$0 pages build-cache purge <project-name>
2
+ import{t as e}from"./lazy-command-B0914_IJ.mjs";import{t}from"./local-CQc36Viv.mjs";import{a as n,t as r}from"./context-M2Ho8pi3.mjs";import{a as i,r as a}from"./auth-BjxUTZWb.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-BnIv4lh5.mjs";import{t as l}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f,t as p}from"./input-validation-Dk52b0me.mjs";import{a as m,i as h,n as g}from"./prompt-DjRAo2Up.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";var _=e(`deploy [directory]`,`Deploy a directory of static assets as a Pages deployment`,()=>import(`./command-WCtue6i1.mjs`),{command:`pages deploy`,recordArgs:!1});function v(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 y={command:`purge <project-name>`,describe:`Purge the Pages build cache`,builder:v,handler:async e=>l({command:`pages build-cache purge`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf pages build-cache purge`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<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 i=await a(e),l=e.local?t:await r();if(e.accountId=l,!await g({force:!!e.force,message:`This operation purges the build cache for a Pages project.`})){process.stderr.write(`Aborted.
5
5
  `);return}o(await c(`Deleting`,async()=>i.pages.buildCache.purge({account_id:l,project_name:e[`project-name`]})),{successLabel:`Deleted`})})},b={command:`build-cache`,describe:`Operations for build-cache`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 pages create
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,i as n,t as r}from"./context-CE7QFX-z.mjs";import{r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-C_90YsVE.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";function te(e){return e.usage(`$0 pay-per-crawl config create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,i as n,t as r}from"./context-M2Ho8pi3.mjs";import{r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BnIv4lh5.mjs";import{t as c}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as l,r as u,t as d}from"./body-parser-hh2avzkz.mjs";import{n as f}from"./input-validation-Dk52b0me.mjs";import{a as p,i as m,n as h}from"./prompt-DjRAo2Up.mjs";import{t as ee}from"./cli-types-DoVT5q_M.mjs";function te(e){return e.usage(`$0 pay-per-crawl config create
3
3
 
4
4
  Creates the pay-per-crawl config for a zone.`).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:te,handler:async e=>c({command:`pay-per-crawl config create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){o({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?d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]}):l(e.body)});return}let t=await i(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=l(e.body);a(await s(`Creating`,async()=>t.payPerCrawl.config.create({...n,zone_id:r})),{successLabel:`Created`});return}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 c=d({enabled:e.enabled,price_usd_microcents:e[`price-usd-microcents`]});a(await s(`Creating`,async()=>t.payPerCrawl.config.create({...c,zone_id:r})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 pay-per-crawl config edit
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{a as r,r as i}from"./auth-gOCL6Pm0.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-CRjK46r1.mjs";import{t as c}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as l,t as u}from"./input-validation-Dk52b0me.mjs";function d(e){return e.usage(`$0 pay-per-use enabled-domains list
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{a as r,r as i}from"./auth-BjxUTZWb.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-BnIv4lh5.mjs";import{t as c}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as l,t as u}from"./input-validation-Dk52b0me.mjs";function d(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 f={command:`list`,describe:`List enabled Pay Per Use domains`,builder:d,handler:async r=>c({command:`pay-per-use enabled-domains list`,classification:{safeFlags:[`dry-run`]}},r,async()=>{let c={cursor:r.cursor,per_page:r[`per-page`]};if(r.dryRun){o({command:`cf pay-per-use enabled-domains list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/pay-per-use/enabled-domains`,pathParams:{},query:c,bodyKind:`none`});return}let l=await i(r),u=r.local?e:await n();r.accountId=u,a(await s(`Loading`,async()=>l.payPerUse.enabledDomains.list({account_id:u,...c})),{successLabel:`Loaded`})})},p={command:`enabled-domains`,describe:`Operations for enabled-domains`,builder:e=>e.command(f).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function m(e){return e.usage(`$0 pay-per-use usage-reports submit
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-C_90YsVE.mjs";function h(e){return e.usage(`$0 pipelines create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-DjRAo2Up.mjs";function h(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 g={command:`create`,describe:`Create Pipeline`,builder:h,handler:async l=>s({command:`pipelines create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf pipelines create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/pipelines/v1/pipelines`,pathParams:{},bodyKind:`json`,body:l.body===void 0?u({name:d(l.name,`name`,`text`),sql:d(l.sql,`sql`,`text`)}):c(l.body)});return}let s=await r(l),p=l.local?e:await n();if(l.accountId=p,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.pipelines.create({...e,account_id:p})),{successLabel:`Created`});return}l.name===void 0&&(l.name=await f(`name`,`Specifies the name of the Pipeline.`)),l.sql===void 0&&(l.sql=await f(`sql`,`Specifies SQL for the Pipeline processing flow.`));let m=u({name:d(l.name,`name`,`text`),sql:d(l.sql,`sql`,`text`)});i(await o(`Creating`,async()=>s.pipelines.create({...m,account_id:p})),{successLabel:`Created`})})};function _(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}from"./context-CE7QFX-z.mjs";import{r as t}from"./auth-gOCL6Pm0.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-CRjK46r1.mjs";import{t as a}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";function u(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the zone-level `default_mode` and the ordered list of `enforcement_rules`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get Zone Precursor Config`,builder:u,handler:async o=>a({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.precursor.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `default_mode` sets the zone-level enforcement mode. `enforcement_rules` is the ordered list of rules that override enforcement for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all enforcement rules. - At least one of `default_mode` or `enforcement_rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `mode` must be `min-friction` or `max-security` (`off` is not a valid rule mode; use `default_mode` to disable enforcement). - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`default-mode`,{type:`string`,description:`The zone-level Precursor enforcement mode applied to requests that do
2
+ import{i as e}from"./context-M2Ho8pi3.mjs";import{r as t}from"./auth-BjxUTZWb.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-BnIv4lh5.mjs";import{t as a}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";function u(e){return e.usage("$0 precursor get\n\nRetrieve a zone's Precursor configuration: the zone-level `default_mode` and the ordered list of `enforcement_rules`.").option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`get`,describe:`Get Zone Precursor Config`,builder:u,handler:async o=>a({command:`precursor get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf precursor get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.precursor.get({zone_id:s})),{successLabel:`Loaded`})})};function f(e){return e.usage("$0 precursor update\n\nUpdates the Precursor configuration for a zone. `default_mode` sets the zone-level enforcement mode. `enforcement_rules` is the ordered list of rules that override enforcement for matching requests. This is a partial update: only the fields present in the request body are changed. - Sending an empty array (`[]`) clears all enforcement rules. - At least one of `default_mode` or `enforcement_rules` must be present; an empty body (`{}`) is rejected with `400`. - Rule `id` is read-only (assigned by Cloudflare) and ignored on input. - Rule `mode` must be `min-friction` or `max-security` (`off` is not a valid rule mode; use `default_mode` to disable enforcement). - Rule `expression` is limited to 4000 characters. The limit applies to each rule individually, not to the combined size of all rules.").option(`default-mode`,{type:`string`,description:`The zone-level Precursor enforcement mode applied to requests that do
3
3
  not match a more specific enforcement rule.
4
4
  `,choices:[`off`,`min-friction`,`max-security`]}).option(`enforcement-rules`,{type:`string`,description:`The ordered list of enforcement rules for the zone. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const p={command:`update`,describe:`Update Zone Precursor Config`,builder:f,handler:async u=>a({command:`precursor update`,classification:{safeFlags:[`default-mode`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf precursor update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/precursor`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?c({default_mode:l(u[`default-mode`],`default-mode`,`text`),enforcement_rules:s(u[`enforcement-rules`],`enforcement-rules`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.precursor.update({body:e,zone_id:d})),{successLabel:`Updated`});return}let f=c({default_mode:l(u[`default-mode`],`default-mode`,`text`),enforcement_rules:s(u[`enforcement-rules`],`enforcement-rules`)});n(await i(`Updating`,async()=>a.precursor.update({body:f,zone_id:d})),{successLabel:`Updated`})})},m={command:`precursor`,describe:`Precursor settings for a zone`,builder:e=>e.command(d).command(p).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{m as default};
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./dotenv-CcQjGlV0.mjs";import{G as t,nt as n,q as r}from"./dist-DfMipWKR.mjs";import{t as i}from"./context-CE7QFX-z.mjs";import{m as a,u as o}from"./interactive-C-o16XQs.mjs";import{i as s}from"./auth-gOCL6Pm0.mjs";import{t as c}from"./output-CvQFJkvi.mjs";import{n as l}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{D as u,S as d,b as f,c as p,d as m,g as h,n as g,u as _,v}from"./dist-Dgnf_i4w.mjs";import{a as y,l as b,n as x,o as S,r as C,t as w}from"./containers-BY8pinEV.mjs";import{a as T,i as E,n as D,o as O,r as k,s as A}from"./build-_qqitpn0.mjs";import{t as j}from"./deploy-input-CNrImP7B.mjs";import{readBuildOutput as M}from"@cloudflare/build-output-utils";function N(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,r,i,a,o)=>P(o.quiet,async()=>{let s=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 n of r){let r=s.get(n.class_name);if(r||=(c??=await v(t,a),c.find(e=>e.class===n.class_name&&e.preview?.id===i.preview_id)?.id),!r)throw Error(`Could not find a Preview Durable Object namespace for Container class "${n.class_name}".`);await p({imageRef:await F(n,e,i.id,a,t,o.localImageReferences?.get(n.class_name)),durable_object_namespace_id:r},n,t,a)}await _(e.standard.builtImages.filter(({container:e})=>!o.localImageReferences?.has(e.class_name)),n())})}}async function P(e,t){if(!e)return t();let n=o();a(`error`);try{return await t()}finally{a(n)}}async function F(e,t,r,i,a,o){if(o!==void 0)return d({pathToDocker:n(),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 f(s,r,n(),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 I(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`,k)}function L(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 R(t){let n=t[`preview-name`],r=n??y();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:
2
+ import{r as e}from"./dotenv-CcQjGlV0.mjs";import{G as t,nt as n,q as r}from"./dist-BuCJ_55d.mjs";import{t as i}from"./context-M2Ho8pi3.mjs";import{m as a,u as o}from"./interactive-C-o16XQs.mjs";import{i as s}from"./auth-BjxUTZWb.mjs";import{t as c}from"./output-CvQFJkvi.mjs";import{n as l}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{D as u,S as d,b as f,c as p,d as m,g as h,n as g,u as _,v}from"./dist-CxGYQfpW.mjs";import{a as y,l as b,n as x,o as S,r as C,t as w}from"./containers-D9masRwv.mjs";import{a as T,i as E,n as D,o as O,r as k,s as A}from"./build-B-tN7mO-.mjs";import{t as j}from"./deploy-input-DJWWJs3a.mjs";import{readBuildOutput as M}from"@cloudflare/build-output-utils";function N(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,r,i,a,o)=>P(o.quiet,async()=>{let s=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 n of r){let r=s.get(n.class_name);if(r||=(c??=await v(t,a),c.find(e=>e.class===n.class_name&&e.preview?.id===i.preview_id)?.id),!r)throw Error(`Could not find a Preview Durable Object namespace for Container class "${n.class_name}".`);await p({imageRef:await F(n,e,i.id,a,t,o.localImageReferences?.get(n.class_name)),durable_object_namespace_id:r},n,t,a)}await _(e.standard.builtImages.filter(({container:e})=>!o.localImageReferences?.has(e.class_name)),n())})}}async function P(e,t){if(!e)return t();let n=o();a(`error`);try{return await t()}finally{a(n)}}async function F(e,t,r,i,a,o){if(o!==void 0)return d({pathToDocker:n(),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 f(s,r,n(),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 I(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`,k)}function L(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 R(t){let n=t[`preview-name`],r=n??y();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:
3
3
 
4
4
  cf previews deploy PREVIEW_NAME`);return t.prebuilt||await D(t.mode,{output:t.quiet?`silent`:`stderr`,worker:t.worker},{isPreview:!0}),e(t,()=>z(t,r))}async function z(e,n){let a=await M(process.cwd());C(a.rootConfig),O(e.mode,a.rootConfig.buildContext.mode);let o=T(a.workers,e.worker),{wranglerConfig:c,builtConfig:l}=E(o,a.rootConfig),d=await s(),f=a.rootConfig.accountId??await i({isPreview:!0,skipProjectSettings:!0,complianceRegion:r(c)}),p=u(d);b({...p,logger:{...p.logger,log:()=>{},info:()=>{}}}),h({logger:{...p.logger,debug:()=>{},debugWithSanitization:()=>{},log:()=>{},info:()=>{}},fetchResult:p.fetchResult,fetchPagedListResult:p.fetchPagedListResult});let _=new Set(Object.values(l.exports??{}).filter(x).map(({container:e})=>e)),v=a.containers?.filter(({config:e})=>_.has(e.name))??[],y=w(v,c,{accountId:f}),D=y.source;if(D?.some(e=>e.scheduling_policy===`durable_object`))throw new A(`Preview deployments do not support Durable Object-managed Containers (schedulingPolicy: "durable-object").`);return D&&D.length>0&&m(f,d,t(c)),S(f,{name:n,json:!0},{workerConfig:l,rootConfig:a.rootConfig,containers:v.filter(({config:e})=>D?.some(({name:t})=>t===e.name)).map(({config:e})=>e),buildResult:o.bundleDir?j(o,l):void 0,assets:o.assetsDir?{directory:o.assetsDir}:void 0},{...N(y),verifyContainersScope:async()=>{await g.listApplications()}})}const B={command:`deploy [preview-name]`,describe:`Deploy a Worker Preview`,builder:I,handler:async e=>{c(L(await R(e)),{quiet:e.quiet})}},V={command:`previews`,describe:`Manage Worker Previews`,builder:e=>e.command(l(B,{command:`previews deploy`,classification:{safeFlags:[`prebuilt`]}})).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{V as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./args-CXgkQKK7.mjs";import{n}from"./version-C3q1GMTe.mjs";import{t as r}from"./session-CjQFm10R.mjs";import{a as i}from"./dist-DW47TUGh.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=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(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.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`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!e()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,t){if(!c())return t();r(n);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let n=await t();return o.clear(),a.stop(e),n}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
2
+ import{t as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./args-CXgkQKK7.mjs";import{n}from"./version-CH8K5y4G.mjs";import{t as r}from"./session-CZTuHcbm.mjs";import{a as i}from"./dist-DW47TUGh.mjs";const a={Hidden:0,Normal:1,Error:2,Indeterminate:3,Warning:4},o=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(a.Indeterminate))}clear(){this.isSupported&&process.stderr.write(`\x1b]9;4;${a.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`)}},s=[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`];function c(){return!(!e()||!process.stdout.isTTY||process.env.CF_QUIET===`1`)}async function l(e,t){if(!c())return t();r(n);let a=i({frames:[...s],indicator:`timer`,delay:80});o.setIndeterminate(),a.start(e);try{let n=await t();return o.clear(),a.stop(e),n}catch(t){throw o.clear(),a.error(e),t}}export{l as t};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{n}from"./version-C3q1GMTe.mjs";import{t as r}from"./session-CjQFm10R.mjs";import{M as i,n as a}from"./interactive-C-o16XQs.mjs";import{i as o,o as s,r as c,t as l}from"./dist-DW47TUGh.mjs";function u(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function d(){r(n)}async function f(){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-BIWQFmZ0.mjs";import{t}from"./cli-exit-Dqoo6Jgb.mjs";import{n}from"./version-CH8K5y4G.mjs";import{t as r}from"./session-CZTuHcbm.mjs";import{M as i,n as a}from"./interactive-C-o16XQs.mjs";import{i as o,o as s,r as c,t as l}from"./dist-DW47TUGh.mjs";function u(e){return e.replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]/gu,` `)}function d(){r(n)}async function f(){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 p(e,n,r){let o=r?.kind??`text`;if(a()){if(o===`secret`){let t=await f();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 l=`Enter value for --${e}`,u=n||r?.question||l,p=e=>e&&e.length>0?r?.validate?.(e):`Value cannot be empty`;d();let m=o===`secret`?await c({message:u,mask:`•`,validate:p}):await s({message:u,validate:p});if(i(m)||typeof m!=`string`)throw new t(130,{cancelled:!0});return m}async function m(e,n,r,s={}){let c=u(e),l=r.map(u);if(a())throw Error(`--${c} is required (one of: ${l.join(`, `)}). Pass --${c} <value> or run interactively.`);let f=`Select value for --${c}`,p=u(n||f);d();let m=await o({message:p,options:r.map(e=>({value:e,label:u((Object.hasOwn(s,e)?s[e]:void 0)??e)}))});if(i(m)||typeof m!=`string`)throw new t(130,{cancelled:!0});return m}async function h(e,n){if(a())throw Error(`--${e} is required and must be true. Pass --${e} or run interactively.`);d();let r=await l({message:n||`Confirm --${e}`,initialValue:!1});if(i(r))throw new t(130,{cancelled:!0});return r===!0}async function g(e,{defaultValue:n=!0,fallbackValue:r=!0}={}){if(a())return process.stderr.write(`? ${e}\n Using fallback value in non-interactive context: ${r?`yes`:`no`}\n`),r;d();let o=await l({message:e,initialValue:n});if(i(o))throw new t(130,{cancelled:!0});return o===!0}async function _(n={}){if(n.force===!0)return!0;let r=n.message?`${n.message} Continue?`:`This permanently deletes the resource. Continue?`;if(a())return process.stderr.write(`${e.warning(`?`)} ${r}\n ${e.muted(`(non-interactive; pass --force to confirm)`)}\n`),!1;d();let o=await l({message:r,initialValue:!1});if(i(o))throw new t(130,{cancelled:!0});return o===!0}export{p as a,m as i,_ as n,u as o,h as r,g as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-C_90YsVE.mjs";function p(e){return e.usage(`$0 queries bulk create
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{n as f}from"./prompt-DjRAo2Up.mjs";function p(e){return e.usage(`$0 queries bulk create
3
3
 
4
4
  Return a success message after creating new saved string queries in bulk`).option(`queries`,{type:`string`,description:`The queries field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Create new saved string queries in bulk`,builder:p,handler:async d=>s({command:`queries bulk create`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf queries bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/brand-protection/queries/bulk`,pathParams:{},bodyKind:`json`,body:d.body===void 0?u({queries:l(d.queries,`queries`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await n();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Creating`,async()=>s.queries.bulk.create({...e,account_id:f})),{successLabel:`Created`});return}let p=u({queries:l(d.queries,`queries`)});i(await o(`Creating`,async()=>s.queries.bulk.create({...p,account_id:f})),{successLabel:`Created`})})},h={command:`bulk`,describe:`Operations for bulk`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function g(e){return e.usage(`$0 queries create
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-Cyk8fPvL.mjs";import{a as t,t as n}from"./context-CE7QFX-z.mjs";import{r}from"./auth-gOCL6Pm0.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-CRjK46r1.mjs";import{t as s}from"./run-huwFFwXd.mjs";import"./telemetry-B4_YhD82.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-C_90YsVE.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function ee(e){return e.usage(`$0 queues consumers create <queue-id>
2
+ import{t as e}from"./local-CQc36Viv.mjs";import{a as t,t as n}from"./context-M2Ho8pi3.mjs";import{r}from"./auth-BjxUTZWb.mjs";import{t as i}from"./output-CvQFJkvi.mjs";import{t as a}from"./dry-run-Bq0JAsbX.mjs";import{t as o}from"./progress-BnIv4lh5.mjs";import{t as s}from"./run-Duj1fsxa.mjs";import"./telemetry-Bn5lYtiy.mjs";import{n as c,r as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-DjRAo2Up.mjs";import{t as h}from"./cli-types-DoVT5q_M.mjs";function ee(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`]}).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 g={command:`create <queue-id>`,describe:`Create a Queue Consumer`,builder:ee,handler:async l=>s({command:`queues consumers create`,classification:{safeFlags:[`type`,`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf queues consumers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/queues/${l[`queue-id`]==null?`<queue-id>`:encodeURIComponent(String(l[`queue-id`]))}/consumers`,pathParams:{"queue-id":String(l[`queue-id`]??``)},bodyKind:`json`,body:l.body===void 0?u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)}):c(l.body)});return}let s=await r(l),m=l.local?e:await n();if(l.accountId=m,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.queues.consumers.create({body:e,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`});return}l.type===void 0&&(l.type=await p(`type`,`The type field`,[`worker`,`http_pull`])),l.type===`worker`&&l[`script-name`]===void 0&&(l[`script-name`]=await f(`script-name`,`Name of a Worker`,{question:`Enter value for --script-name`}));let h=u({dead_letter_queue:d(l[`dead-letter-queue`],`dead-letter-queue`,`text`),script_name:d(l[`script-name`],`script-name`,`text`),settings:{batch_size:l[`settings-batch-size`],max_concurrency:l[`settings-max-concurrency`],max_retries:l[`settings-max-retries`],max_wait_time_ms:l[`settings-max-wait-time-ms`],retry_delay:l[`settings-retry-delay`],visibility_timeout_ms:l[`settings-visibility-timeout-ms`]},type:d(l.type,`type`,`text`)});i(await o(`Creating`,async()=>s.queues.consumers.create({body:h,account_id:m,queue_id:l[`queue-id`]})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 queues consumers delete <consumer-id>
5
5