cf 1.0.0-beta.19 → 1.0.0-beta.20

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 (246) hide show
  1. package/README.md +2 -1
  2. package/dist/_meta/commands.json +47 -13
  3. package/dist/_meta/schemas.json +29 -3
  4. package/dist/{abuse-reports-DhgunVFo.mjs → abuse-reports-mKv00yPh.mjs} +1 -1
  5. package/dist/{access-BDoDq_WZ.mjs → access-CyRjTbhh.mjs} +1 -1
  6. package/dist/{accounts-DLTCzZJg.mjs → accounts-BmF_YKvG.mjs} +1 -1
  7. package/dist/{acm-DS1CosYq.mjs → acm-BcIFiAb8.mjs} +1 -1
  8. package/dist/{addressing-DFeYj8TY.mjs → addressing-D6xVD7MM.mjs} +1 -1
  9. package/dist/{agent-memory-DXjQ8N0g.mjs → agent-memory-Blldunhv.mjs} +1 -1
  10. package/dist/{ai-V5YopMkS.mjs → ai-CU8tdTfC.mjs} +1 -1
  11. package/dist/{ai-audit-yg8D0azz.mjs → ai-audit-Id3hq5pV.mjs} +1 -1
  12. package/dist/{ai-gateway--dkH9qGz.mjs → ai-gateway-BKeZ28CQ.mjs} +1 -1
  13. package/dist/{ai-search-BRtsUaUI.mjs → ai-search-DOiZEmn7.mjs} +1 -1
  14. package/dist/{ai-security-DRJCcLpF.mjs → ai-security-CioADDZi.mjs} +1 -1
  15. package/dist/{alerting-8DsyMKGG.mjs → alerting-BzN1N3Se.mjs} +1 -1
  16. package/dist/{analytics-BpYUZTtQ.mjs → analytics-Cte-DrzH.mjs} +1 -1
  17. package/dist/{analytics-engine-CT2E0Dkw.mjs → analytics-engine-CugCQfDe.mjs} +1 -1
  18. package/dist/{api-security-CBhWZE8z.mjs → api-security-CCs0g510.mjs} +1 -1
  19. package/dist/{argo-B0u2N3Dh.mjs → argo-BHBFZnmO.mjs} +1 -1
  20. package/dist/{artifacts-B6XzjMiM.mjs → artifacts-BzAwvrCD.mjs} +1 -1
  21. package/dist/{audit-logs-59fCc1aw.mjs → audit-logs-jWivEKCy.mjs} +1 -1
  22. package/dist/auth-BUQscD5b.mjs +2 -0
  23. package/dist/auth-CdEGiJ5Y.mjs +2 -0
  24. package/dist/auth-DF_ml7rE.mjs +2 -0
  25. package/dist/auth-token-T0aqYgl9.mjs +8 -0
  26. package/dist/{autoconfig-Cdm2IFLM.mjs → autoconfig-CBdcYYf4.mjs} +1 -1
  27. package/dist/{basin-catalog-CV05WlA4.mjs → basin-catalog-_8w_4599.mjs} +1 -1
  28. package/dist/{billing-Ad-rK-JH.mjs → billing-Ce0WN0yw.mjs} +1 -1
  29. package/dist/blocks-CFAm0Ma3.mjs +5 -0
  30. package/dist/{bot-management-CGpfjQ4w.mjs → bot-management-DskcSr4B.mjs} +1 -1
  31. package/dist/{botnet-feed-CMrF6ZGq.mjs → botnet-feed-CmBm13-D.mjs} +1 -1
  32. package/dist/{brand-protection-CP73_yX8.mjs → brand-protection-DTuFrsN0.mjs} +1 -1
  33. package/dist/{browser-run-OpUfawh_.mjs → browser-run-CXdzSOHa.mjs} +1 -1
  34. package/dist/build-BJHRK6qE.mjs +2 -0
  35. package/dist/build-D7s3a8zW.mjs +2 -0
  36. package/dist/{builds-DsRNlILV.mjs → builds-_1u5Nx6f.mjs} +1 -1
  37. package/dist/{cache-RppXjxXA.mjs → cache-CDPUUv_O.mjs} +1 -1
  38. package/dist/{cf-PISMdEje.mjs → cf-3vj8dGYz.mjs} +1 -1
  39. package/dist/{chunk-2K52M2W5-c__08AOB.mjs → chunk-2K52M2W5-iYNzknM1.mjs} +1 -1
  40. package/dist/{chunk-DSGVRFIS-DfQO1boa.mjs → chunk-DSGVRFIS-RUG6Dtqz.mjs} +1 -1
  41. package/dist/{cli-Dd1n2YAJ.mjs → cli-DyhOdzMo.mjs} +3 -5
  42. package/dist/{client-side-security-BYfwOkUo.mjs → client-side-security-DnnYaRsd.mjs} +1 -1
  43. package/dist/{cloud-connector-CQZUqAMQ.mjs → cloud-connector-Ct6b6pz8.mjs} +1 -1
  44. package/dist/{cloudflared-C1SdXpYv.mjs → cloudflared-CHLpWU35.mjs} +1 -1
  45. package/dist/{cloudforce-one-C1xdpspb.mjs → cloudforce-one-Rl6nCCm0.mjs} +1 -1
  46. package/dist/{command-D5BUzDX8.mjs → command-0WS5I_JW.mjs} +1 -1
  47. package/dist/{command-C8DV-x_C.mjs → command-BMYi_gS-.mjs} +1 -1
  48. package/dist/{command-DlB10kIb.mjs → command-BONLLcyz.mjs} +1 -1
  49. package/dist/{command-FOQNhNqP.mjs → command-BRXOUAGD.mjs} +1 -1
  50. package/dist/command-BRpBIju7.mjs +2 -0
  51. package/dist/{command-F0jlqvKr.mjs → command-BVO9UOuU.mjs} +1 -1
  52. package/dist/{command-DWE7YdeC.mjs → command-BwgvUpNx.mjs} +1 -1
  53. package/dist/{command-BioiZMm9.mjs → command-BwlIi3Bv.mjs} +1 -1
  54. package/dist/{command-DmPQXNRg.mjs → command-CHGc-KZ7.mjs} +1 -1
  55. package/dist/{command-D203VrTG.mjs → command-CMa807gY.mjs} +1 -1
  56. package/dist/{command-yAXk5NXh.mjs → command-CPDQPdss.mjs} +1 -1
  57. package/dist/{command-C7NIRU-u.mjs → command-CVoDyQnL.mjs} +1 -1
  58. package/dist/{command-C5ARgURy.mjs → command-CXzje7qc.mjs} +1 -1
  59. package/dist/{command-C0nJ2LRd.mjs → command-DOpykk8X.mjs} +1 -1
  60. package/dist/{command-ChQXv0jP.mjs → command-DuLxEkGq.mjs} +1 -1
  61. package/dist/{completions-Bh0Hz-hA.mjs → completions-DMwrvK_S.mjs} +1 -1
  62. package/dist/{connector-interrupts-Bd949WX0.mjs → connector-interrupts-DyWilINb.mjs} +1 -1
  63. package/dist/{connector-telemetry-events-Dw8iIg5Q.mjs → connector-telemetry-events-BUW9qTOs.mjs} +1 -1
  64. package/dist/{connector-telemetry-snapshots-DqEIaz99.mjs → connector-telemetry-snapshots-Djs5QssR.mjs} +1 -1
  65. package/dist/{connectors-RUEU1QDB.mjs → connectors-e_cpzDEm.mjs} +1 -1
  66. package/dist/{containers-xU-0EhLO.mjs → containers-CEH15JUu.mjs} +2 -2
  67. package/dist/{containers-yUOvm-4V.mjs → containers-CcZHRM9g.mjs} +204 -204
  68. package/dist/{content-scan-Cm2-Xhqo.mjs → content-scan-B6Ahw9JA.mjs} +1 -1
  69. package/dist/{context-BQ6KeMgq.mjs → context-Sgba0fZP.mjs} +1 -1
  70. package/dist/{cps-CgPduy0H.mjs → cps-uDD0SSJ-.mjs} +1 -1
  71. package/dist/{csam-scanner-B0Ra6fXL.mjs → csam-scanner-BSUl7jGn.mjs} +1 -1
  72. package/dist/{custom-csrs-6lfu1-RR.mjs → custom-csrs-BDcXggph.mjs} +1 -1
  73. package/dist/{custom-hostnames-Dzov_CPw.mjs → custom-hostnames-UmIlwkwt.mjs} +1 -1
  74. package/dist/{custom-nameservers-Bfhv_9_k.mjs → custom-nameservers-D7kU6d--.mjs} +1 -1
  75. package/dist/{custom-pages-DxVD_f10.mjs → custom-pages-CkhIQCfM.mjs} +1 -1
  76. package/dist/{d1-D7p4uJ-e.mjs → d1-myRLEAGs.mjs} +1 -1
  77. package/dist/{deploy-BjWvVZol.mjs → deploy-BJqCpycz.mjs} +1 -1
  78. package/dist/{deploy-context-C-ZdGP0Z.mjs → deploy-context-DIAl408H.mjs} +1 -1
  79. package/dist/{deploy-input-B8Nq6Eh6.mjs → deploy-input-v2DryyLP.mjs} +1 -1
  80. package/dist/{dev-D20UkcYT.mjs → dev-S1PJi83q.mjs} +1 -1
  81. package/dist/{diagnostics-DdhTemYB.mjs → diagnostics-q65rcNIk.mjs} +1 -1
  82. package/dist/{dist-CnKd5XoR.mjs → dist-CX6dDtzj.mjs} +4 -4
  83. package/dist/{dls-BBODA9Rk.mjs → dls-CMTrCDjZ.mjs} +1 -1
  84. package/dist/{dns-CK_hyn5q.mjs → dns-DhARjFQs.mjs} +1 -1
  85. package/dist/{dns-firewall-DbvX9R-7.mjs → dns-firewall-BP6r9QG6.mjs} +1 -1
  86. package/dist/{docs-BDTijwM3.mjs → docs-CReGWDrw.mjs} +1 -1
  87. package/dist/{dry-run-DQmFkNK_.mjs → dry-run-BBjUQUhR.mjs} +1 -1
  88. package/dist/{durable-objects-DcFbd1Ka.mjs → durable-objects-tOJy-5te.mjs} +1 -1
  89. package/dist/{email-auth-BEgDxU-g.mjs → email-auth-Bq9sq_2j.mjs} +1 -1
  90. package/dist/{email-routing-DKWmPOVo.mjs → email-routing-CYo4dp50.mjs} +1 -1
  91. package/dist/{email-security-RWbAp8qa.mjs → email-security-CNtWET2d.mjs} +1 -1
  92. package/dist/{email-sending-BbJy_vl8.mjs → email-sending-BvagNLRr.mjs} +1 -1
  93. package/dist/errors-DpbAQQv8.mjs +11 -0
  94. package/dist/{field-extractors-Bob6udAc.mjs → field-extractors-C9R3Qivh.mjs} +1 -1
  95. package/dist/{firewall-DziiEsR8.mjs → firewall-DsgUY-Qv.mjs} +1 -1
  96. package/dist/{flagship-xOtgddUK.mjs → flagship-geGDHp9H.mjs} +1 -1
  97. package/dist/{fraud-BUS7i5Yh.mjs → fraud-24l8dKyk.mjs} +1 -1
  98. package/dist/{google-tag-gateway-DgSzyeK-.mjs → google-tag-gateway-CAkudP5W.mjs} +1 -1
  99. package/dist/{healthchecks-CbD2PsnM.mjs → healthchecks-CEGMe3lO.mjs} +1 -1
  100. package/dist/{hyperdrive-Cs_cfSXU.mjs → hyperdrive-DLDaOU2O.mjs} +1 -1
  101. package/dist/{iam-DvsCztqU.mjs → iam-ChldOMSL.mjs} +1 -1
  102. package/dist/{images-BipVjHNw.mjs → images-Ba9tS5wT.mjs} +1 -1
  103. package/dist/index.mjs +1 -1
  104. package/dist/{init-LvFgCsNX.mjs → init-C08hBFYn.mjs} +1 -1
  105. package/dist/{intel-D1LPkkBM.mjs → intel-DbLRah4Y.mjs} +1 -1
  106. package/dist/{ips-2iUGs8ws.mjs → ips-BGyzyQLL.mjs} +1 -1
  107. package/dist/{k2-DGzRm3NJ.mjs → k2-BVQ3MqEl.mjs} +1 -1
  108. package/dist/{kv-BW-s9MJY.mjs → kv-Cd8vbPWK.mjs} +1 -1
  109. package/dist/{lazy-command-Bq-rWPQe.mjs → lazy-command-D0I6itZs.mjs} +1 -1
  110. package/dist/{leaked-credential-checks-CnY6ih6p.mjs → leaked-credential-checks-Dga83Qy3.mjs} +1 -1
  111. package/dist/{load-balancers-CtnusAzP.mjs → load-balancers-D9cB6of8.mjs} +1 -1
  112. package/dist/{local-B4sZZTRA.mjs → local-B7ZJ78al.mjs} +1 -1
  113. package/dist/local-CFZtOOxg.mjs +2 -0
  114. package/dist/{local-runtime-DoBuyriC.mjs → local-runtime-DB545Gqq.mjs} +1 -1
  115. package/dist/log-CRbgNbDp.mjs +3 -0
  116. package/dist/login-C3Bahro9.mjs +5 -0
  117. package/dist/login-DvsRxI3E.mjs +2 -0
  118. package/dist/{logo-matches-C1-6KOkZ.mjs → logo-matches-jeNkUxAq.mjs} +1 -1
  119. package/dist/{logos-Yzhd-VKb.mjs → logos-pxN5aumY.mjs} +1 -1
  120. package/dist/{logpush-JYG4gXZ-.mjs → logpush-Ccmr0Y_I.mjs} +1 -1
  121. package/dist/{logs-DLblEjK0.mjs → logs-CZBMuuBC.mjs} +1 -1
  122. package/dist/{magic-cloud-networking-CblQwsQr.mjs → magic-cloud-networking-BwOxZVql.mjs} +1 -1
  123. package/dist/{magic-network-monitoring-D2px4Ep4.mjs → magic-network-monitoring-Cx5kKdbk.mjs} +1 -1
  124. package/dist/{magic-transit-Bnwsi0UQ.mjs → magic-transit-BJwg3sVK.mjs} +1 -1
  125. package/dist/{managed-defense-CTtNoxzW.mjs → managed-defense-C_KLy4oB.mjs} +1 -1
  126. package/dist/{managed-transforms-B92mJi5i.mjs → managed-transforms-C-HMtesC.mjs} +1 -1
  127. package/dist/{matches-CzbL1XD-.mjs → matches-DnjBnG-Y.mjs} +1 -1
  128. package/dist/{mcp-Cic_aMer.mjs → mcp-bGKgzz6F.mjs} +1 -1
  129. package/dist/{mesh-DZTgD16C.mjs → mesh-DeQIll19.mjs} +1 -1
  130. package/dist/migrate-B6HsPeFh.mjs +2 -0
  131. package/dist/{monetization-DCQ2_niU.mjs → monetization-B-TIrpA5.mjs} +1 -1
  132. package/dist/{network-BqMqD2qn.mjs → network-BrjykU-I.mjs} +1 -1
  133. package/dist/{network-interconnects-BFQ1yARl.mjs → network-interconnects-I06kbxIl.mjs} +1 -1
  134. package/dist/{o11y-CS5q1vSh.mjs → o11y-Ba0Fa98_.mjs} +3 -3
  135. package/dist/oauth-BH-uQd3C.mjs +2 -0
  136. package/dist/oauth-Cf3-g-kk.mjs +4 -0
  137. package/dist/{oauth-clients-9BPswYm_.mjs → oauth-clients-Dd5gvDqf.mjs} +1 -1
  138. package/dist/{oauth-scopes-CLOKfQi2.mjs → oauth-scopes-CXpH3Syj.mjs} +1 -1
  139. package/dist/{organization-DFRN2g6z.mjs → organization-DKPqwe3j.mjs} +1 -1
  140. package/dist/{organizations-yiGopnKf.mjs → organizations-Cq4iy-Yr.mjs} +1 -1
  141. package/dist/{origin-post-quantum-encryption-n9gsxikn.mjs → origin-post-quantum-encryption-DSB1sbYV.mjs} +1 -1
  142. package/dist/output-CpiIVa7Q.mjs +2 -0
  143. package/dist/{page-rules-F1Jdxx6A.mjs → page-rules-CDWTYaf7.mjs} +1 -1
  144. package/dist/{pages-CezC0YrR.mjs → pages-Dgtm51Uj.mjs} +2 -2
  145. package/dist/{pay-per-crawl-fZ-kTBbN.mjs → pay-per-crawl-CHenxdhv.mjs} +1 -1
  146. package/dist/{pay-per-use-B14BTKVI.mjs → pay-per-use-Bd5l0hBi.mjs} +1 -1
  147. package/dist/{pipelines-BN7ydBHl.mjs → pipelines-GsyD6nUM.mjs} +5 -5
  148. package/dist/{precursor-B88RDDZT.mjs → precursor-mO-Zua09.mjs} +1 -1
  149. package/dist/{previews-CiqRIq_k.mjs → previews-oHUiD54J.mjs} +4 -4
  150. package/dist/{progress-CdlDthXA.mjs → progress-B1dpmxCT.mjs} +1 -1
  151. package/dist/{prompt-1AC-qwxS.mjs → prompt-Y5OBwDVE.mjs} +1 -1
  152. package/dist/{queries-C2sgUI9j.mjs → queries-CS0sYfte.mjs} +1 -1
  153. package/dist/{queues-DCP5x-PZ.mjs → queues-D8cAr2lB.mjs} +1 -1
  154. package/dist/{r2-D7UhzWR7.mjs → r2-CJiJbG6b.mjs} +1 -1
  155. package/dist/{radar-osOiFeY_.mjs → radar-PUZ_PCZ8.mjs} +1 -1
  156. package/dist/{raw-fetch-1VlXDwwX.mjs → raw-fetch-DSdFjojI.mjs} +1 -1
  157. package/dist/{realtime-DCnqxiWo.mjs → realtime-X6uQsldp.mjs} +1 -1
  158. package/dist/{registrar-DAFYjjRa.mjs → registrar-BqZdUTss.mjs} +1 -1
  159. package/dist/{registrar-sandbox-zeNHABZ0.mjs → registrar-sandbox-CmM3e1QN.mjs} +1 -1
  160. package/dist/{registry-DG4ZiuN9.mjs → registry-D0tMkLv6.mjs} +1 -1
  161. package/dist/{reporting-KehV_PXm.mjs → reporting-DFVz98Xg.mjs} +1 -1
  162. package/dist/{request-headers-ojAw3pQO.mjs → request-headers-Bg8_Idw3.mjs} +1 -1
  163. package/dist/{request-tracers-BStCgh6m.mjs → request-tracers-BC1u2WDU.mjs} +1 -1
  164. package/dist/{resource-sharing-3xtSgWG7.mjs → resource-sharing-CdEn5Iex.mjs} +1 -1
  165. package/dist/{rules-7F-G2Bg_.mjs → rules-B663VetJ.mjs} +1 -1
  166. package/dist/{rulesets-B0YtS2br.mjs → rulesets-p4EijVr6.mjs} +1 -1
  167. package/dist/{rum-B3V6tqS-.mjs → rum-CHHXe4KK.mjs} +1 -1
  168. package/dist/{run-B_07PrkW.mjs → run-0EozpORq.mjs} +1 -1
  169. package/dist/run-DKg70Sqf.mjs +2 -0
  170. package/dist/{schema-C-tyhSnb.mjs → schema-B38ojvsS.mjs} +1 -1
  171. package/dist/{schema-flags-DY3OKCvr.mjs → schema-flags-z7yn0JZ_.mjs} +3 -3
  172. package/dist/{scim-CQ9TdajH.mjs → scim-BMnUa4Oz.mjs} +1 -1
  173. package/dist/{secrets-store-Dl2hDxXu.mjs → secrets-store-EYrhEzVG.mjs} +1 -1
  174. package/dist/{security-insights-BsLMdo1r.mjs → security-insights-C-AwDwXb.mjs} +1 -1
  175. package/dist/{security-txt-pCAiHvys.mjs → security-txt-CQMe8TD3.mjs} +1 -1
  176. package/dist/{session-BsNzFtPi.mjs → session-3DgztoAI.mjs} +1 -1
  177. package/dist/shared-o8saqcSK.mjs +2 -0
  178. package/dist/{smart-shield-BTXQsVxz.mjs → smart-shield-CHSuitaH.mjs} +1 -1
  179. package/dist/{snippets-CYVieyc3.mjs → snippets-DGSBz4lg.mjs} +1 -1
  180. package/dist/{spawn-Bdznd0EB.mjs → spawn-BZd__5sj.mjs} +1 -1
  181. package/dist/{spectrum-DLRr4Q03.mjs → spectrum-59LhYG1t.mjs} +1 -1
  182. package/dist/{speed-BJfaDYxz.mjs → speed-CMCfoG3s.mjs} +1 -1
  183. package/dist/{sql-DQ4xrdc2.mjs → sql-MxWaTDdj.mjs} +1 -1
  184. package/dist/src-J3Yss3VM.mjs +117 -0
  185. package/dist/{ssl-CL1B69Pw.mjs → ssl-DTTFZR9x.mjs} +1 -1
  186. package/dist/startup-profile-DJsOtbVN.mjs +2 -0
  187. package/dist/{startup-profile-HMblAiBi.mjs → startup-profile-bp348qmf.mjs} +1 -1
  188. package/dist/{state-DN9yfd2C.mjs → state-CqAtTENS.mjs} +1 -1
  189. package/dist/state-Dvzl3aSj.mjs +2 -0
  190. package/dist/{stream-DrMZOO5u.mjs → stream-gVG_7si-.mjs} +1 -1
  191. package/dist/{submit-DjlLoVk2.mjs → submit-wJYcQB8d.mjs} +1 -1
  192. package/dist/{tags-DY7Ur1k-.mjs → tags-BwFKjaOr.mjs} +1 -1
  193. package/dist/telemetry-BczXOpQn.mjs +2 -0
  194. package/dist/{telemetry-BG3kcYsV.mjs → telemetry-CE15pfOU.mjs} +1 -1
  195. package/dist/{tenant-BEMfNMjO.mjs → tenant-Qv_PC8gW.mjs} +1 -1
  196. package/dist/{tenant-custom-nameservers-CCRbb0ch.mjs → tenant-custom-nameservers-DBmmUcxn.mjs} +1 -1
  197. package/dist/{tools-ZffhHUDd.mjs → tools-B1ajcUAF.mjs} +1 -1
  198. package/dist/{tunnels-_JXe-UgM.mjs → tunnels-CHNKPYRV.mjs} +2 -2
  199. package/dist/{turnstile-DXEfneQq.mjs → turnstile-C60RxPo2.mjs} +1 -1
  200. package/dist/ui-CBhKUPys.mjs +2 -0
  201. package/dist/{update-check-DfbYVefm.mjs → update-check-BHarE3V9.mjs} +1 -1
  202. package/dist/{update-check-atcehhBC.mjs → update-check-C3RhhXja.mjs} +1 -1
  203. package/dist/update-check-worker.mjs +1 -1
  204. package/dist/{url-info-B1kL9asc.mjs → url-info-By6VD20A.mjs} +1 -1
  205. package/dist/{url-normalization-CUHKRKJh.mjs → url-normalization-3t6Xpafi.mjs} +1 -1
  206. package/dist/{url-scanner-OnZP_-jm.mjs → url-scanner-DNG__DiK.mjs} +1 -1
  207. package/dist/{user-BBBuFNj4.mjs → user-B4i7OIFK.mjs} +1 -1
  208. package/dist/{vectorize-DcctB8bw.mjs → vectorize-y3PCQDDf.mjs} +1 -1
  209. package/dist/version-izjB0Yrl.mjs +2 -0
  210. package/dist/{waiting-rooms-JaFE5wP1.mjs → waiting-rooms-xkZLvPkT.mjs} +1 -1
  211. package/dist/{web-assets-Cu0swUPe.mjs → web-assets-BlqHZywy.mjs} +1 -1
  212. package/dist/{web3-C67z4OtQ.mjs → web3-DGAJMcLv.mjs} +1 -1
  213. package/dist/{workers-builds-C5wKhvKe.mjs → workers-builds-COKp3NfU.mjs} +1 -1
  214. package/dist/{workers-ClTP0Ysl.mjs → workers-cCNBx0Bc.mjs} +22 -22
  215. package/dist/{workers-for-platforms-rxwkYyb3.mjs → workers-for-platforms-CAtiWI_G.mjs} +1 -1
  216. package/dist/{workers-vpc-B4vyvr1W.mjs → workers-vpc-ChBfXwPy.mjs} +1 -1
  217. package/dist/{workflows-COJ5jwvk.mjs → workflows-BYhgJvyR.mjs} +1 -1
  218. package/dist/{wrangler-migration-Cp546RDG.mjs → wrangler-migration-B12OR2bu.mjs} +1 -1
  219. package/dist/{zaraz-BkZ7yW05.mjs → zaraz-BW0kvRCK.mjs} +1 -1
  220. package/dist/{zero-trust-lUFLYuL1.mjs → zero-trust-DSeWXkNV.mjs} +1 -1
  221. package/dist/{zone-CC1_qxt-.mjs → zone-B-YJG2UA.mjs} +1 -1
  222. package/dist/{zones-BRiLlTmW.mjs → zones-B8pqPHu8.mjs} +1 -1
  223. package/package.json +12 -12
  224. package/dist/auth-5cgi8ePZ.mjs +0 -2
  225. package/dist/auth-BaUNb1Ed.mjs +0 -2
  226. package/dist/auth-ChYOc_rS.mjs +0 -2
  227. package/dist/auth-token-B1pP2jaK.mjs +0 -8
  228. package/dist/blocks-CKb_aLWN.mjs +0 -5
  229. package/dist/build-CMPlf8mh.mjs +0 -2
  230. package/dist/build-DQZ2w_dQ.mjs +0 -2
  231. package/dist/command-CFV1cqfR.mjs +0 -2
  232. package/dist/local-DCnFIgLJ.mjs +0 -2
  233. package/dist/login-CqZJgUF1.mjs +0 -5
  234. package/dist/login-DR60WiAY.mjs +0 -2
  235. package/dist/migrate-DtNDRcAI.mjs +0 -2
  236. package/dist/oauth-DPLYUvRl.mjs +0 -2
  237. package/dist/oauth-DdYSPYoE.mjs +0 -4
  238. package/dist/output-O6b9MR9R.mjs +0 -2
  239. package/dist/run-D6AJfZT-.mjs +0 -2
  240. package/dist/shared-CWBjMZDR.mjs +0 -2
  241. package/dist/src-BnMvFE3q.mjs +0 -125
  242. package/dist/startup-profile-DuaJFX1y.mjs +0 -2
  243. package/dist/state-DePlO0Kv.mjs +0 -2
  244. package/dist/telemetry-Dpm6GfZD.mjs +0 -2
  245. package/dist/ui-CY79jlGZ.mjs +0 -2
  246. package/dist/version-CLgSHoNm.mjs +0 -2
package/README.md CHANGED
@@ -10,7 +10,8 @@ This is a beta preview. To learn more, see the [announcement blog post](https://
10
10
  npm install -g cf
11
11
  ```
12
12
 
13
- Requires Node.js 22 or newer.
13
+ cf supports the latest minor release of each supported Node.js major version.
14
+ See [package.json](package.json) for the supported versions.
14
15
 
15
16
  ## Quick start
16
17
 
@@ -78681,20 +78681,26 @@
78681
78681
  {
78682
78682
  "name": "configuration-headers",
78683
78683
  "type": "string",
78684
- "required": true,
78684
+ "required": false,
78685
78685
  "description": "The configuration.headers field. Provide as a JSON object or @path/to/file.json."
78686
78686
  },
78687
+ {
78688
+ "name": "configuration-replace-headers",
78689
+ "type": "boolean",
78690
+ "required": false,
78691
+ "description": "The configuration.replaceHeaders field"
78692
+ },
78687
78693
  {
78688
78694
  "name": "configuration-type",
78689
78695
  "type": "string",
78690
- "required": true,
78696
+ "required": false,
78691
78697
  "description": "The configuration.type field",
78692
78698
  "enum": ["logpush"]
78693
78699
  },
78694
78700
  {
78695
78701
  "name": "configuration-url",
78696
78702
  "type": "string",
78697
- "required": true,
78703
+ "required": false,
78698
78704
  "description": "The configuration.url field"
78699
78705
  },
78700
78706
  {
@@ -86324,6 +86330,20 @@
86324
86330
  "required": false,
86325
86331
  "description": "Filters sinks by name (case-insensitive substring)."
86326
86332
  },
86333
+ {
86334
+ "name": "order-by",
86335
+ "type": "string",
86336
+ "required": false,
86337
+ "description": "Sorts sinks by this field. Defaults to `created_at`.",
86338
+ "enum": ["name", "created_at"]
86339
+ },
86340
+ {
86341
+ "name": "direction",
86342
+ "type": "string",
86343
+ "required": false,
86344
+ "description": "Sort direction.",
86345
+ "enum": ["asc", "desc"]
86346
+ },
86327
86347
  {
86328
86348
  "name": "page",
86329
86349
  "type": "number",
@@ -86548,6 +86568,20 @@
86548
86568
  "required": false,
86549
86569
  "description": "Filters streams by name (case-insensitive substring)."
86550
86570
  },
86571
+ {
86572
+ "name": "order-by",
86573
+ "type": "string",
86574
+ "required": false,
86575
+ "description": "Sorts streams by this field. Defaults to `created_at`.",
86576
+ "enum": ["name", "created_at"]
86577
+ },
86578
+ {
86579
+ "name": "direction",
86580
+ "type": "string",
86581
+ "required": false,
86582
+ "description": "Sort direction.",
86583
+ "enum": ["asc", "desc"]
86584
+ },
86551
86585
  {
86552
86586
  "name": "page",
86553
86587
  "type": "number",
@@ -137451,7 +137485,7 @@
137451
137485
  "httpMethod": "GET",
137452
137486
  "apiPath": "/zones/{zone_id}/settings/zaraz/config",
137453
137487
  "operationId": "zaraz.config.get",
137454
- "hideCommand": true
137488
+ "hideCommand": false
137455
137489
  },
137456
137490
  {
137457
137491
  "command": "cf zaraz config update",
@@ -137733,7 +137767,7 @@
137733
137767
  "httpMethod": "PUT",
137734
137768
  "apiPath": "/zones/{zone_id}/settings/zaraz/config",
137735
137769
  "operationId": "zaraz.config.update",
137736
- "hideCommand": true
137770
+ "hideCommand": false
137737
137771
  },
137738
137772
  {
137739
137773
  "command": "cf zaraz default get",
@@ -137757,7 +137791,7 @@
137757
137791
  "httpMethod": "GET",
137758
137792
  "apiPath": "/zones/{zone_id}/settings/zaraz/default",
137759
137793
  "operationId": "zaraz.default.get",
137760
- "hideCommand": true
137794
+ "hideCommand": false
137761
137795
  },
137762
137796
  {
137763
137797
  "command": "cf zaraz export get",
@@ -137781,7 +137815,7 @@
137781
137815
  "httpMethod": "GET",
137782
137816
  "apiPath": "/zones/{zone_id}/settings/zaraz/export",
137783
137817
  "operationId": "zaraz.export.get",
137784
- "hideCommand": true
137818
+ "hideCommand": false
137785
137819
  },
137786
137820
  {
137787
137821
  "command": "cf zaraz history configs get",
@@ -137811,7 +137845,7 @@
137811
137845
  "httpMethod": "GET",
137812
137846
  "apiPath": "/zones/{zone_id}/settings/zaraz/history/configs",
137813
137847
  "operationId": "zaraz.history.configs.get",
137814
- "hideCommand": true
137848
+ "hideCommand": false
137815
137849
  },
137816
137850
  {
137817
137851
  "command": "cf zaraz history list",
@@ -137861,7 +137895,7 @@
137861
137895
  "httpMethod": "GET",
137862
137896
  "apiPath": "/zones/{zone_id}/settings/zaraz/history",
137863
137897
  "operationId": "zaraz.history.list",
137864
- "hideCommand": true
137898
+ "hideCommand": false
137865
137899
  },
137866
137900
  {
137867
137901
  "command": "cf zaraz history update",
@@ -137891,7 +137925,7 @@
137891
137925
  "httpMethod": "PUT",
137892
137926
  "apiPath": "/zones/{zone_id}/settings/zaraz/history",
137893
137927
  "operationId": "zaraz.history.update",
137894
- "hideCommand": true
137928
+ "hideCommand": false
137895
137929
  },
137896
137930
  {
137897
137931
  "command": "cf zaraz publish create",
@@ -137921,7 +137955,7 @@
137921
137955
  "httpMethod": "POST",
137922
137956
  "apiPath": "/zones/{zone_id}/settings/zaraz/publish",
137923
137957
  "operationId": "zaraz.publish.create",
137924
- "hideCommand": true
137958
+ "hideCommand": false
137925
137959
  },
137926
137960
  {
137927
137961
  "command": "cf zaraz workflow get",
@@ -137945,7 +137979,7 @@
137945
137979
  "httpMethod": "GET",
137946
137980
  "apiPath": "/zones/{zone_id}/settings/zaraz/workflow",
137947
137981
  "operationId": "zaraz.workflow.get",
137948
- "hideCommand": true
137982
+ "hideCommand": false
137949
137983
  },
137950
137984
  {
137951
137985
  "command": "cf zaraz workflow update",
@@ -137975,7 +138009,7 @@
137975
138009
  "httpMethod": "PUT",
137976
138010
  "apiPath": "/zones/{zone_id}/settings/zaraz/workflow",
137977
138011
  "operationId": "zaraz.workflow.update",
137978
- "hideCommand": true
138012
+ "hideCommand": false
137979
138013
  },
137980
138014
  {
137981
138015
  "command": "cf zero-trust access applications create",
@@ -55399,19 +55399,25 @@
55399
55399
  {
55400
55400
  "name": "configuration-headers",
55401
55401
  "type": "string",
55402
- "required": true,
55402
+ "required": false,
55403
55403
  "description": "The configuration.headers field. Provide as a JSON object or @path/to/file.json."
55404
55404
  },
55405
+ {
55406
+ "name": "configuration-replace-headers",
55407
+ "type": "boolean",
55408
+ "required": false,
55409
+ "description": "The configuration.replaceHeaders field"
55410
+ },
55405
55411
  {
55406
55412
  "name": "configuration-type",
55407
55413
  "type": "string",
55408
- "required": true,
55414
+ "required": false,
55409
55415
  "description": "The configuration.type field"
55410
55416
  },
55411
55417
  {
55412
55418
  "name": "configuration-url",
55413
55419
  "type": "string",
55414
- "required": true,
55420
+ "required": false,
55415
55421
  "description": "The configuration.url field"
55416
55422
  },
55417
55423
  {
@@ -61003,6 +61009,16 @@
61003
61009
  "type": "string",
61004
61010
  "required": false
61005
61011
  },
61012
+ {
61013
+ "name": "order_by",
61014
+ "type": "string",
61015
+ "required": false
61016
+ },
61017
+ {
61018
+ "name": "direction",
61019
+ "type": "string",
61020
+ "required": false
61021
+ },
61006
61022
  {
61007
61023
  "name": "page",
61008
61024
  "type": "number",
@@ -61173,6 +61189,16 @@
61173
61189
  "type": "string",
61174
61190
  "required": false
61175
61191
  },
61192
+ {
61193
+ "name": "order_by",
61194
+ "type": "string",
61195
+ "required": false
61196
+ },
61197
+ {
61198
+ "name": "direction",
61199
+ "type": "string",
61200
+ "required": false
61201
+ },
61176
61202
  {
61177
61203
  "name": "page",
61178
61204
  "type": "number",
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-1AC-qwxS.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-Y5OBwDVE.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
3
3
 
4
4
  Returns whether the report is currently appealable, along with the signals behind that decision: whether it already has an open appeal, how many appeals have been submitted against it, and whether it has at least one mitigation that an appeal could reverse. Report-level appeals are currently available only for DMCA (copyright) reports. For other report types this operation returns the same \`404 Report not found\` response as a report that does not exist for the account.`).positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:v,handler:async e=>l({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/abuse-reports/${e[`report-id`]==null?`<report-id>`:encodeURIComponent(String(e[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(e[`report-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(_,{account_id:l,report_id:e[`report-id`]}));o(u,{successLabel:`Loaded`})})},b={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage("$0 abuse-reports create <report-type>\n\nSubmit an abuse report of a particular type. Requires the abuse-reports entitlement on the account (Enterprise accounts have it by default; other accounts must request access) and an API token with the `Trust and Safety Write` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below). Delegated reports: In limited circumstances, Cloudflare works with select customers who have established abuse-handling programs. For these customers, Cloudflare may forward abuse reports directly and in full—including reporter contact information, comments, and supporting evidence—without redaction or preprocessing by Cloudflare. This allows the customer to investigate and respond using their own policies and processes. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of the `host_notification` and `owner_notification` values.").positional(`report-type`,{type:`string`,description:`The report type to be submitted. Example: abuse_general`,demandOption:!0}).option(`act`,{type:`string`,description:`The act field`,choices:[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`]}).coerce(`act`,e=>m(e,`act`,`text`)).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters. Comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For delegated reports, comments may be shared in full.`}).option(`company`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email`,{type:`string`,description:`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email2`,{type:`string`,description:"Should match the value provided in `email`"}).option(`name`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`reported-country`,{type:`string`,description:`Text containing 2 characters`}).option(`reported-user-agent`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`tele`,{type:`string`,description:`Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`title`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`urls`,{type:`string`,description:`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`address1`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agent-name`,{type:`string`,description:`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agree`,{type:`number`,description:"Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports"}).option(`city`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`country`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
5
5
  `}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-Bq-rWPQe.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-BioiZMm9.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-C5ARgURy.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-C8DV-x_C.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-DWE7YdeC.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-C7NIRU-u.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-DmPQXNRg.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
2
+ import{t as e}from"./lazy-command-D0I6itZs.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-BwlIi3Bv.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-CXzje7qc.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-BMYi_gS-.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-BwgvUpNx.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-CVoDyQnL.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-CHGc-KZ7.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r,s as i}from"./auth-BaUNb1Ed.mjs";import{a,i as o,t as s}from"./context-BQ6KeMgq.mjs";import{t as c}from"./output-O6b9MR9R.mjs";import{t as l}from"./dry-run-DQmFkNK_.mjs";import{t as u}from"./progress-CdlDthXA.mjs";import{t as d}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-1AC-qwxS.mjs";import{n as ee,t as te}from"./raw-fetch-1VlXDwwX.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function ne(e){return e.usage(`$0 accounts applications create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r,s as i}from"./auth-BUQscD5b.mjs";import{a,i as o,t as s}from"./context-Sgba0fZP.mjs";import{t as c}from"./output-CpiIVa7Q.mjs";import{t as l}from"./dry-run-BBjUQUhR.mjs";import{t as u}from"./progress-B1dpmxCT.mjs";import{t as d}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-Y5OBwDVE.mjs";import{n as ee,t as te}from"./raw-fetch-DSdFjojI.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function ne(e){return e.usage(`$0 accounts applications create
3
3
 
4
4
  Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for the application.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. A NUL character (U+0000) in any string value returns `400`. "})}const re={command:`create`,describe:`Create application`,builder:ne,handler:async e=>d({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(b,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`));let o=h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Creating`,async()=>n.send(b,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{409:`ConflictError`,502:`BadGatewayError`}};function ae(e){return e.usage(`$0 accounts applications delete <id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BaUNb1Ed.mjs";import{i as n}from"./context-BQ6KeMgq.mjs";import{t as r}from"./output-O6b9MR9R.mjs";import{t as i}from"./dry-run-DQmFkNK_.mjs";import{t as a}from"./progress-CdlDthXA.mjs";import{t as o}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-1AC-qwxS.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BUQscD5b.mjs";import{i as n}from"./context-Sgba0fZP.mjs";import{t as r}from"./output-CpiIVa7Q.mjs";import{t as i}from"./dry-run-BBjUQUhR.mjs";import{t as a}from"./progress-B1dpmxCT.mjs";import{t as o}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-Y5OBwDVE.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
3
3
 
4
4
  Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:p,handler:async e=>o({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate:l(e.certificate,`certificate`,`text`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:d}));r(n,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await u(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let p=c({certificate:l(e.certificate,`certificate`,`text`)}),m=await a(`Creating`,async()=>o.send(f,{body:p,zone_id:d}));r(m,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function g(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,i as a,t as o}from"./context-BQ6KeMgq.mjs";import{t as s}from"./output-O6b9MR9R.mjs";import{t as c}from"./dry-run-DQmFkNK_.mjs";import{t as l}from"./progress-CdlDthXA.mjs";import{t as u}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-1AC-qwxS.mjs";import{n as ee,t as te}from"./raw-fetch-1VlXDwwX.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,i as a,t as o}from"./context-Sgba0fZP.mjs";import{t as s}from"./output-CpiIVa7Q.mjs";import{t as c}from"./dry-run-BBjUQUhR.mjs";import{t as l}from"./progress-B1dpmxCT.mjs";import{t as u}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-Y5OBwDVE.mjs";import{n as ee,t as te}from"./raw-fetch-DSdFjojI.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
3
3
 
4
4
  Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ne={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:y,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
5
5
  `);return}let u=await l(`Deleting`,async()=>n.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Deleted`})})};var re={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,t as i}from"./context-BQ6KeMgq.mjs";import{t as a}from"./output-O6b9MR9R.mjs";import{t as o}from"./dry-run-DQmFkNK_.mjs";import{t as s}from"./progress-CdlDthXA.mjs";import{t as c}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-1AC-qwxS.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(e){return e.usage(`$0 agent-memory create-namespace
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-Y5OBwDVE.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(e){return e.usage(`$0 agent-memory create-namespace
3
3
 
4
4
  Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create-namespace`,describe:`Create a namespace`,builder:g,handler:async e=>c({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Namespace name.`));let m=d({name:f(e.name,`name`,`text`)}),g=await s(`Creating`,async()=>c.send(h,{body:m,account_id:l}));a(g,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function y(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-BGHWSKCw.mjs";import"./api-eMuS5GI1.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-B4sZZTRA.mjs";import{a as i,i as a,n as o}from"./auth-BaUNb1Ed.mjs";import{a as s,t as c}from"./context-BQ6KeMgq.mjs";import{t as l}from"./output-O6b9MR9R.mjs";import{t as u}from"./dry-run-DQmFkNK_.mjs";import{t as d}from"./progress-CdlDthXA.mjs";import{n as f,t as p}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{a as v,i as ee,n as te}from"./prompt-1AC-qwxS.mjs";import{n as ne}from"./raw-fetch-1VlXDwwX.mjs";import{_ as re,c as y,d as b,f as x,g as ie,h as ae,i as oe,l as S,m as se,n as ce,o as C,p as w,r as T,s as E,t as D}from"./schema-flags-DY3OKCvr.mjs";var O={method:`GET`,path:e=>t`/accounts/${e.account_id}/ai/authors/search`,errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 ai authors list
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import"./api-eMuS5GI1.mjs";import{t}from"./path-DRw6Y-nd.mjs";import{n,t as r}from"./local-B7ZJ78al.mjs";import{a as i,i as a,n as o}from"./auth-BUQscD5b.mjs";import{a as s,t as c}from"./context-Sgba0fZP.mjs";import{t as l}from"./output-CpiIVa7Q.mjs";import{t as u}from"./dry-run-BBjUQUhR.mjs";import{t as d}from"./progress-B1dpmxCT.mjs";import{n as f,t as p}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{a as v,i as ee,n as te}from"./prompt-Y5OBwDVE.mjs";import{n as ne}from"./raw-fetch-DSdFjojI.mjs";import{_ as re,c as y,d as b,f as x,g as ie,h as ae,i as oe,l as S,m as se,n as ce,o as C,p as w,r as T,s as E,t as D}from"./schema-flags-z7yn0JZ_.mjs";var O={method:`GET`,path:e=>t`/accounts/${e.account_id}/ai/authors/search`,errors:{400:`BadRequestError`}};function k(e){return e.usage(`$0 ai authors list
3
3
 
4
4
  Searches Workers AI models by author or organization name.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`list`,describe:`Author Search`,builder:k,handler:async e=>p({command:`ai authors list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await s();u({command:`cf ai authors list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/ai/authors/search`,pathParams:{},bodyKind:`none`});return}let t=await o(e),n=e.local?r:await c();e.accountId=n;let i=await d(`Loading`,async()=>t.send(O,{account_id:n}));l(i,{successLabel:`Loaded`})})},j={command:`authors`,describe:`Operations for authors`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function M(e){return e.usage(`$0 ai finetunes assets create <finetune-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-BaUNb1Ed.mjs";import{i as r}from"./context-BQ6KeMgq.mjs";import{t as i}from"./output-O6b9MR9R.mjs";import{t as a}from"./dry-run-DQmFkNK_.mjs";import{t as o}from"./progress-CdlDthXA.mjs";import{t as s}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as c}from"./body-parser-ChnyBsfm.mjs";function l(e){return e.usage(`$0 ai-audit robots bulk-get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-BUQscD5b.mjs";import{i as r}from"./context-Sgba0fZP.mjs";import{t as i}from"./output-CpiIVa7Q.mjs";import{t as a}from"./dry-run-BBjUQUhR.mjs";import{t as o}from"./progress-B1dpmxCT.mjs";import{t as s}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as c}from"./body-parser-ChnyBsfm.mjs";function l(e){return e.usage(`$0 ai-audit robots bulk-get
3
3
 
4
4
  Fetches and parses robots.txt files for multiple domains within a zone in a single request. Each domain must belong to the specified zone. Results are keyed by hostname.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of domain hostnames to fetch robots.txt for. Each domain must end with the zone name. Maximum 25 domains per request.`})}const u={command:`bulk-get`,describe:`Bulk get robots.txt rules`,builder:l,handler:async e=>s({command:`ai-audit robots bulk-get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf ai-audit robots bulk-get`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-audit/robots/bulk`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let s=await n(e);if(e.zoneId=await r({zone:e.zone},s,{quiet:e.quiet}),e.body){let n=c(e.body);if(Array.isArray(n)&&n.length>25){let r=Math.ceil(n.length/25),a=null;for(let i=0;i<n.length;i+=25){let c=n.slice(i,i+25),l=Math.floor(i/25)+1;a=await o(`Loading: batch ${l}/${r}`,async()=>t(s,`POST`,`/zones/${e.zoneId}/ai-audit/robots/bulk`,{body:c}))}i(a,{successLabel:`Loaded`});return}let r=await o(`Loading`,async()=>t(s,`POST`,`/zones/${e.zoneId}/ai-audit/robots/bulk`,{body:n}));i(r,{successLabel:`Loaded`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-audit/robots`,query:[`subdomain`],errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`,503:`ServiceUnavailableError`}};function f(e){return e.usage(`$0 ai-audit robots get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-ChnyBsfm.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-1AC-qwxS.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 ai-gateway custom-domains create <gateway-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-ChnyBsfm.mjs";import{n as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-Y5OBwDVE.mjs";var v={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function y(e){return e.usage(`$0 ai-gateway custom-domains create <gateway-id>
3
3
 
4
4
  Provisions a Cloudflare-for-SaaS custom hostname and returns the CNAME target to point DNS at.`).positional(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`domain`,{type:`string`,description:"Custom hostname that you own, such as `ai.example.com`."}).option(`min-tls`,{type:`string`,description:`The minTLS field`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).coerce(`min-tls`,e=>h(e,`min-tls`,`text`)).option(`zone-id`,{type:`string`,description:`ID of the Cloudflare zone that contains the custom hostname.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const b={command:`create <gateway-id>`,describe:`Create a custom domain for a gateway`,builder:y,handler:async e=>l({command:`ai-gateway custom-domains create`,classification:{safeFlags:[`min-tls`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway custom-domains create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/ai-gateway/gateways/${e[`gateway-id`]==null?`<gateway-id>`:encodeURIComponent(String(e[`gateway-id`]))}/custom-domains`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({domain:h(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:h(e[`zone-id`],`zone-id`,`text`)}):d(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n.send(v,{body:t,account_id:l,gateway_id:e[`gateway-id`]}));o(r,{successLabel:`Created`});return}e.domain===void 0&&(e.domain=await g(`domain`,"Custom hostname that you own, such as `ai.example.com`.")),e[`zone-id`]===void 0&&(e[`zone-id`]=await g(`zone-id`,`ID of the Cloudflare zone that contains the custom hostname.`));let u=m({domain:h(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:h(e[`zone-id`],`zone-id`,`text`)}),f=await c(`Creating`,async()=>n.send(v,{body:u,account_id:l,gateway_id:e[`gateway-id`]}));o(f,{successLabel:`Created`})})};var x={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains/${t.hostname}`,errors:{404:`NotFoundError`}};function S(e){return e.usage(`$0 ai-gateway custom-domains delete <hostname>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-ChnyBsfm.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-1AC-qwxS.mjs";import{n as ee,t as te}from"./raw-fetch-1VlXDwwX.mjs";function ne(e){return e.usage(`$0 ai-search chat-completions <instance-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,r as f,s as p,t as m}from"./body-parser-ChnyBsfm.mjs";import{n as h,t as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-Y5OBwDVE.mjs";import{n as ee,t as te}from"./raw-fetch-DSdFjojI.mjs";function ne(e){return e.usage(`$0 ai-search chat-completions <instance-id>
3
3
 
4
4
  Performs a chat completion request against an AI Search instance, using indexed content as context for generating responses.`).positional(`instance-id`,{type:`string`,description:`AI Search instance ID.`,demandOption:!0}).option(`namespace`,{type:`string`,description:`Namespace to use for this operation.`,demandOption:!0}).option(`ai-search-options-cache-cache-threshold`,{type:`string`,description:`The ai_search_options.cache.cache_threshold field`,choices:[`super_strict_match`,`close_enough`,`flexible_friend`,`anything_goes`]}).coerce(`ai-search-options-cache-cache-threshold`,e=>h(e,`ai-search-options-cache-cache-threshold`,`text`)).option(`ai-search-options-cache-enabled`,{type:`boolean`,description:`The ai_search_options.cache.enabled field`}).option(`ai-search-options-custom-metadata`,{type:`string`,description:`Metadata added to AI Gateway logs for requests this operation triggers. Accepts up to 2 string, number, or boolean entries. Reserved keys: 'ai-search', 'task', 'origin', and any key beginning with 'cf.'. Provide as a JSON object or @path/to/file.json.`}).option(`ai-search-options-query-rewrite-enabled`,{type:`boolean`,description:`The ai_search_options.query_rewrite.enabled field`}).option(`ai-search-options-query-rewrite-model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`ai-search-options-query-rewrite-rewrite-prompt`,{type:`string`,description:`The ai_search_options.query_rewrite.rewrite_prompt field`}).option(`ai-search-options-reranking-enabled`,{type:`boolean`,description:`The ai_search_options.reranking.enabled field`}).option(`ai-search-options-reranking-match-threshold`,{type:`number`,description:`The ai_search_options.reranking.match_threshold field`}).option(`ai-search-options-reranking-model`,{type:`string`,description:`The ai_search_options.reranking.model field`}).option(`ai-search-options-retrieval-boost-by`,{type:`string`,description:`Metadata fields to boost search results by. Overrides the instance-level boost_by config. Direction defaults to 'asc' for numeric/datetime fields, 'exists' for text/boolean fields. Fields must match 'timestamp' or a defined custom_metadata field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`ai-search-options-retrieval-context-expansion`,{type:`number`,description:`The ai_search_options.retrieval.context_expansion field`}).option(`ai-search-options-retrieval-filters`,{type:`string`,description:`The ai_search_options.retrieval.filters field. Provide as a JSON object or @path/to/file.json.`}).option(`ai-search-options-retrieval-fusion-method`,{type:`string`,description:`The ai_search_options.retrieval.fusion_method field`,choices:[`max`,`rrf`]}).coerce(`ai-search-options-retrieval-fusion-method`,e=>h(e,`ai-search-options-retrieval-fusion-method`,`text`)).option(`ai-search-options-retrieval-keyword-match-mode`,{type:`string`,description:`Controls which documents become candidates for BM25 scoring. 'and' restricts candidates to documents containing all query terms; 'or' includes any document containing at least one term and ranks results according to BM25 relevance. When omitted, falls back to the instance-level retrieval_options.keyword_match_mode, then to 'and'.`,choices:[`and`,`or`]}).coerce(`ai-search-options-retrieval-keyword-match-mode`,e=>h(e,`ai-search-options-retrieval-keyword-match-mode`,`text`)).option(`ai-search-options-retrieval-match-threshold`,{type:`number`,description:`Minimum similarity score a chunk must reach to be returned. When omitted, falls back to the instance-level score_threshold, then to 0.4.`}).option(`ai-search-options-retrieval-max-num-results`,{type:`number`,description:`Maximum number of results to return. When omitted, falls back to the instance-level max_num_results, then to 10.`}).option(`ai-search-options-retrieval-retrieval-type`,{type:`string`,description:`The ai_search_options.retrieval.retrieval_type field`,choices:[`vector`,`keyword`,`hybrid`]}).coerce(`ai-search-options-retrieval-retrieval-type`,e=>h(e,`ai-search-options-retrieval-retrieval-type`,`text`)).option(`ai-search-options-retrieval-return-on-failure`,{type:`boolean`,description:`The ai_search_options.retrieval.return_on_failure field`}).option(`messages`,{type:`string`,description:`The messages field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`model`,{type:`string`,description:`A Workers AI model ID or an AI Gateway model ID compatible with the OpenAI Chat Completions API. An empty string uses the configured or default model.`}).option(`stream`,{type:`boolean`,description:`The stream field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const re={command:`chat-completions <instance-id>`,describe:`Chat Completions`,builder:ne,handler:async e=>l({command:`ai-search chat-completions`,classification:{safeFlags:[`ai-search-options-cache-cache-threshold`,`ai-search-options-cache-enabled`,`ai-search-options-query-rewrite-enabled`,`ai-search-options-reranking-enabled`,`ai-search-options-retrieval-fusion-method`,`ai-search-options-retrieval-keyword-match-mode`,`ai-search-options-retrieval-retrieval-type`,`ai-search-options-retrieval-return-on-failure`,`stream`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-search chat-completions`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/ai-search/namespaces/${e.namespace==null?`<namespace>`:encodeURIComponent(String(e.namespace))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,pathParams:{namespace:String(e.namespace??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?m({ai_search_options:{cache:{cache_threshold:e[`ai-search-options-cache-cache-threshold`],enabled:e[`ai-search-options-cache-enabled`]},custom_metadata:f(e[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`),query_rewrite:{enabled:e[`ai-search-options-query-rewrite-enabled`],model:h(e[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`),rewrite_prompt:h(e[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)},reranking:{enabled:e[`ai-search-options-reranking-enabled`],match_threshold:e[`ai-search-options-reranking-match-threshold`],model:h(e[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)},retrieval:{boost_by:u(e[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`),context_expansion:e[`ai-search-options-retrieval-context-expansion`],filters:f(e[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`),fusion_method:e[`ai-search-options-retrieval-fusion-method`],keyword_match_mode:e[`ai-search-options-retrieval-keyword-match-mode`],match_threshold:e[`ai-search-options-retrieval-match-threshold`],max_num_results:e[`ai-search-options-retrieval-max-num-results`],retrieval_type:e[`ai-search-options-retrieval-retrieval-type`],return_on_failure:e[`ai-search-options-retrieval-return-on-failure`]}},messages:u(e.messages,`messages`),model:h(e.model,`model`,`text`),stream:e.stream},[[`ai_search_options`,`custom_metadata`],[`ai_search_options`,`retrieval`,`filters`]]):d(e.body)});return}let l=await r(e),g=e.local?t:await a();if(e.accountId=g,e.body){let t=d(e.body),r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(e.namespace))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,{body:t}));o(r,{successLabel:`Created`});return}if(e.messages===void 0)throw Error(`--messages is required (or pass --body with this field set).`);let _={};e[`ai-search-options-cache-cache-threshold`]!==void 0&&p(_,[`ai_search_options`,`cache`,`cache_threshold`],e[`ai-search-options-cache-cache-threshold`]),e[`ai-search-options-cache-enabled`]!==void 0&&p(_,[`ai_search_options`,`cache`,`enabled`],e[`ai-search-options-cache-enabled`]),e[`ai-search-options-custom-metadata`]!==void 0&&p(_,[`ai_search_options`,`custom_metadata`],f(e[`ai-search-options-custom-metadata`],`ai-search-options-custom-metadata`)),e[`ai-search-options-query-rewrite-enabled`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`enabled`],e[`ai-search-options-query-rewrite-enabled`]),e[`ai-search-options-query-rewrite-model`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`model`],h(e[`ai-search-options-query-rewrite-model`],`ai-search-options-query-rewrite-model`,`text`)),e[`ai-search-options-query-rewrite-rewrite-prompt`]!==void 0&&p(_,[`ai_search_options`,`query_rewrite`,`rewrite_prompt`],h(e[`ai-search-options-query-rewrite-rewrite-prompt`],`ai-search-options-query-rewrite-rewrite-prompt`,`text`)),e[`ai-search-options-reranking-enabled`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`enabled`],e[`ai-search-options-reranking-enabled`]),e[`ai-search-options-reranking-match-threshold`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`match_threshold`],e[`ai-search-options-reranking-match-threshold`]),e[`ai-search-options-reranking-model`]!==void 0&&p(_,[`ai_search_options`,`reranking`,`model`],h(e[`ai-search-options-reranking-model`],`ai-search-options-reranking-model`,`text`)),e[`ai-search-options-retrieval-boost-by`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`boost_by`],u(e[`ai-search-options-retrieval-boost-by`],`ai-search-options-retrieval-boost-by`)),e[`ai-search-options-retrieval-context-expansion`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`context_expansion`],e[`ai-search-options-retrieval-context-expansion`]),e[`ai-search-options-retrieval-filters`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`filters`],f(e[`ai-search-options-retrieval-filters`],`ai-search-options-retrieval-filters`)),e[`ai-search-options-retrieval-fusion-method`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`fusion_method`],e[`ai-search-options-retrieval-fusion-method`]),e[`ai-search-options-retrieval-keyword-match-mode`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`keyword_match_mode`],e[`ai-search-options-retrieval-keyword-match-mode`]),e[`ai-search-options-retrieval-match-threshold`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`match_threshold`],e[`ai-search-options-retrieval-match-threshold`]),e[`ai-search-options-retrieval-max-num-results`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`max_num_results`],e[`ai-search-options-retrieval-max-num-results`]),e[`ai-search-options-retrieval-retrieval-type`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`retrieval_type`],e[`ai-search-options-retrieval-retrieval-type`]),e[`ai-search-options-retrieval-return-on-failure`]!==void 0&&p(_,[`ai_search_options`,`retrieval`,`return_on_failure`],e[`ai-search-options-retrieval-return-on-failure`]),e.messages!==void 0&&p(_,[`messages`],u(e.messages,`messages`)),e.model!==void 0&&p(_,[`model`],h(e.model,`model`,`text`)),e.stream!==void 0&&p(_,[`stream`],e.stream);let v=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${g}/ai-search/namespaces/${encodeURIComponent(String(e.namespace))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/chat/completions`,{body:_}));o(v,{successLabel:`Created`})})};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-search/namespaces/${t.namespace}/instances`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`,503:`ServiceUnavailableError`}};function x(e){return e.usage(`$0 ai-search create <namespace> <id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BaUNb1Ed.mjs";import{i as n}from"./context-BQ6KeMgq.mjs";import{t as r}from"./output-O6b9MR9R.mjs";import{t as i}from"./dry-run-DQmFkNK_.mjs";import{t as a}from"./progress-CdlDthXA.mjs";import{t as o}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as s,n as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./prompt-1AC-qwxS.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(e){return e.usage(`$0 ai-security custom-topics get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BUQscD5b.mjs";import{i as n}from"./context-Sgba0fZP.mjs";import{t as r}from"./output-CpiIVa7Q.mjs";import{t as i}from"./dry-run-BBjUQUhR.mjs";import{t as a}from"./progress-B1dpmxCT.mjs";import{t as o}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as s,n as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./prompt-Y5OBwDVE.mjs";var d={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`};function f(e){return e.usage(`$0 ai-security custom-topics get
3
3
 
4
4
  Get the custom topic categories defined for the zone. While AI Security for Apps is enabled, it scores every incoming prompt against these topics and writes the scores to the \`cf.llm.prompt.custom_topic_categories\` field, keyed by topic label. Topics can be configured while the detection is disabled, but no prompt is scored until you enable it.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Get the AI Security for Apps custom topics of a zone.`,builder:f,handler:async e=>o({command:`ai-security custom-topics get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf ai-security custom-topics get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(d,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var m={method:`PUT`,path:t=>e`/zones/${t.zone_id}/ai-security/custom-topics`,body:`json`};function h(e){return e.usage("$0 ai-security custom-topics update\n\nUpdate the custom topic list of the zone, overwriting it entirely with the topics in the request, so include every topic you want to keep. Changes can take up to a minute to propagate. Each entry has a `label`, used to reference the topic in rule expressions and analytics, and a `topic` description, which the classifier scores prompts against while AI Security for Apps is enabled. The following rules apply: - A zone can hold at most 20 topics. - `label` must be 2–20 characters, using only lowercase letters (a–z), digits (0–9), and hyphens. - `topic` must be 2–50 printable ASCII characters. - Labels must be unique within the zone, and so must topic descriptions.").option(`topics`,{type:`string`,description:`Custom topic categories for AI Security for Apps content detection. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`update`,describe:`Update the AI Security for Apps custom topics of a zone.`,builder:h,handler:async e=>o({command:`ai-security custom-topics update`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf ai-security custom-topics update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ai-security/custom-topics`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({topics:s(e.topics,`topics`)}):c(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,!await u({force:!!e.force,message:`This operation overwrites the AI Security for Apps custom topics for a zone.`})){process.stderr.write(`Aborted.
5
5
  `);return}if(e.body){let t=c(e.body),n=await a(`Deleting`,async()=>o.send(m,{body:t,zone_id:d}));r(n,{successLabel:`Deleted`});return}let f=l({topics:s(e.topics,`topics`)}),p=await a(`Deleting`,async()=>o.send(m,{body:f,zone_id:d}));r(p,{successLabel:`Deleted`})})},_={command:`custom-topics`,describe:`Organization-specific topic categories used by AI Security for Apps content detection`,builder:e=>e.command(p).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/ai-security/settings`};function y(e){return e.usage(`$0 ai-security get
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,t as i}from"./context-BQ6KeMgq.mjs";import{t as a}from"./output-O6b9MR9R.mjs";import{t as o}from"./dry-run-DQmFkNK_.mjs";import{t as s}from"./progress-CdlDthXA.mjs";import{t as c}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-1AC-qwxS.mjs";import{n as g,t as _}from"./raw-fetch-1VlXDwwX.mjs";var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function y(e){return e.usage(`$0 alerting available-alerts list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-Y5OBwDVE.mjs";import{n as g,t as _}from"./raw-fetch-DSdFjojI.mjs";var v={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/available_alerts`};function y(e){return e.usage(`$0 alerting available-alerts list
3
3
 
4
4
  Gets a list of all alert types for which an account is eligible.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ee={command:`list`,describe:`Get Alert Types`,builder:y,handler:async e=>c({command:`alerting available-alerts list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();o({command:`cf alerting available-alerts list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/alerting/v3/available_alerts`,pathParams:{},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(v,{account_id:l}));a(u,{successLabel:`Loaded`})})},te={command:`available-alerts`,describe:`Operations for available-alerts`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/alerting/v3/destinations/eligible`};function re(e){return e.usage(`$0 alerting destinations eligible get
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as u,n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-1AC-qwxS.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(e){return e.usage(`$0 analytics latency colos get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m}from"./prompt-Y5OBwDVE.mjs";var h={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency/colos`};function g(e){return e.usage(`$0 analytics latency colos get
3
3
 
4
4
  Retrieves Argo Smart Routing analytics broken down by geographic points of presence (PoPs). Shows latency improvements and routing efficiency per location.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _={command:`get`,describe:`Argo Analytics for a zone at different PoPs`,builder:g,handler:async e=>l({command:`analytics latency colos get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf analytics latency colos get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/analytics/latency/colos`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(h,{zone_id:r}));o(a,{successLabel:`Loaded`})})},v={command:`colos`,describe:`Operations for latency.colos`,builder:e=>e.command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/analytics/latency`,query:[`bins`]};function b(e){return e.usage(`$0 analytics latency get
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/analytics_engine/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`,504:`GatewayTimeoutError`}};function p(e){return e.usage(`$0 analytics-engine sql query
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as u,t as d}from"./input-validation-D7z60HJH.mjs";var f={method:`POST`,path:t=>e`/accounts/${t.account_id}/analytics_engine/sql`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`,429:`TooManyRequestsError`,500:`InternalServerError`,503:`ServiceUnavailableError`,504:`GatewayTimeoutError`}};function p(e){return e.usage(`$0 analytics-engine sql query
3
3
 
4
4
  Executes a SQL query against Workers Analytics Engine data. Pass the SQL query in the request body as plain text. The response uses newline-delimited JSON (NDJSON) by default, or a single JSON object when the query includes a FORMAT JSON clause. Prefer this method for longer queries that may exceed URL length limits.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`})}const m={command:`query`,describe:`Execute an Analytics Engine SQL query via request body`,builder:p,handler:async e=>l({command:`analytics-engine sql query`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf analytics-engine sql query`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/analytics_engine/sql`,pathParams:{},bodyKind:`octet-stream`,body:e.body});return}let l=await r(e),p=e.local?t:await a();if(e.accountId=p,e.file){let t=d(e.file),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}if(e.body){let t=u(e.body,`body`,`binary`),r=await c(`Loading`,async()=>n(l,`POST`,`/accounts/${p}/analytics_engine/sql`,{body:t,headers:{"Content-Type":`text/plain`}}));o(r,{successLabel:`Loaded`});return}let m=await c(`Loading`,async()=>l.send(f,{account_id:p}));o(m,{successLabel:`Loaded`})})},h={command:`sql`,describe:`Operations for sql`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`analytics-engine`,describe:`analytics-engine`,builder:e=>e.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"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{i as n,n as r}from"./auth-BaUNb1Ed.mjs";import{a as i,i as a,t as o}from"./context-BQ6KeMgq.mjs";import{t as s}from"./output-O6b9MR9R.mjs";import{t as c}from"./dry-run-DQmFkNK_.mjs";import{t as l}from"./progress-CdlDthXA.mjs";import{t as u}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-1AC-qwxS.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,i as a,t as o}from"./context-Sgba0fZP.mjs";import{t as s}from"./output-CpiIVa7Q.mjs";import{t as c}from"./dry-run-BBjUQUhR.mjs";import{t as l}from"./progress-B1dpmxCT.mjs";import{t as u}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g,n as _}from"./prompt-Y5OBwDVE.mjs";var v={method:`POST`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas`,body:`json`,constants:{kind:`openapi_v3`}};function ee(e){return e.usage(`$0 api-security schema-validation schemas create
3
3
 
4
4
  Uploads an OpenAPI schema that defines expected request formats for API operations.`).option(`kind`,{type:`string`,description:`The kind of the schema`,choices:[`openapi_v3`]}).coerce(`kind`,e=>m(e,`kind`,`text`)).option(`name`,{type:`string`,description:`A human-readable name for the schema`}).option(`source`,{type:`string`,description:`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`}).option(`validation-enabled`,{type:`boolean`,description:`An indicator if this schema is enabled`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`create`,describe:`Upload a schema`,builder:ee,handler:async e=>u({command:`api-security schema-validation schemas create`,classification:{safeFlags:[`kind`,`validation-enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf api-security schema-validation schemas create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/schema_validation/schemas`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(v,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}if(e.kind===void 0&&(e.kind=await g(`kind`,`The kind of the schema`,[`openapi_v3`])),e.name===void 0&&(e.name=await h(`name`,`A human-readable name for the schema`)),e.source===void 0&&(e.source=await h(`source`,`The raw schema, e.g., the OpenAPI schema, either as JSON or YAML`)),e[`validation-enabled`]===void 0)throw Error(`--validation-enabled is required (or pass --body with this field set).`);let i=p({kind:e.kind,name:m(e.name,`name`,`text`),source:m(e.source,`source`,`text`),validation_enabled:e[`validation-enabled`]}),o=await l(`Creating`,async()=>t.send(v,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var te={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/schema_validation/schemas/${t.schema_id}`};function ne(e){return e.usage(`$0 api-security schema-validation schemas delete <schema-id>
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,i,t as a}from"./context-BQ6KeMgq.mjs";import{t as o}from"./output-O6b9MR9R.mjs";import{t as s}from"./dry-run-DQmFkNK_.mjs";import{t as c}from"./progress-CdlDthXA.mjs";import{t as l}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-1AC-qwxS.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{i as p}from"./prompt-Y5OBwDVE.mjs";var m={method:`GET`,path:t=>e`/accounts/${t.account_id}/argo/count_zones_enabled`};function h(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-account
3
3
 
4
4
  Returns the number of zones that have Argo Smart Routing enabled for the specified account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`count-zones-enabled-for-account`,describe:`Get count of zones with Argo Smart Routing enabled for account`,builder:h,handler:async e=>l({command:`argo smart-routing count-zones-enabled-for-account`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await r();s({command:`cf argo smart-routing count-zones-enabled-for-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/argo/count_zones_enabled`,pathParams:{},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(m,{account_id:l}));o(u,{successLabel:`Loaded`})})};var _={method:`GET`,path:()=>`/user/argo/count_zones_enabled`};function v(e){return e.usage(`$0 argo smart-routing count-zones-enabled-for-user
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,t as i}from"./context-BQ6KeMgq.mjs";import{t as a}from"./output-O6b9MR9R.mjs";import{t as o}from"./dry-run-DQmFkNK_.mjs";import{t as s}from"./progress-CdlDthXA.mjs";import{t as c}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-1AC-qwxS.mjs";import{n as m,t as h}from"./raw-fetch-1VlXDwwX.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 artifacts namespaces create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as l,t as u}from"./body-parser-ChnyBsfm.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,n as p}from"./prompt-Y5OBwDVE.mjs";import{n as m,t as h}from"./raw-fetch-DSdFjojI.mjs";var g={method:`POST`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces`,body:`json`,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,409:`ConflictError`,500:`InternalServerError`}};function _(e){return e.usage(`$0 artifacts namespaces create
3
3
 
4
4
  Creates an empty Artifacts namespace for an account.`).option(`jurisdiction`,{type:`string`,description:`The jurisdiction field`,choices:[`unrestricted`,`us`,`eu`,`fedramp`],default:`unrestricted`}).coerce(`jurisdiction`,e=>d(e,`jurisdiction`,`text`)).option(`namespace`,{type:`string`,description:`The namespace field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create`,describe:`Create a namespace`,builder:_,handler:async e=>c({command:`artifacts namespaces create`,classification:{safeFlags:[`jurisdiction`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf artifacts namespaces create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/artifacts/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}):l(e.body)});return}let c=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(g,{body:t,account_id:p}));a(n,{successLabel:`Created`});return}e.namespace===void 0&&(e.namespace=await f(`namespace`,`The namespace field`));let m=u({jurisdiction:e.jurisdiction,namespace:d(e.namespace,`namespace`,`text`)}),h=await s(`Creating`,async()=>c.send(g,{body:m,account_id:p}));a(h,{successLabel:`Created`})})};var ee={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/artifacts/namespaces/${t.namespace}`,response:!1,errors:{400:`BadRequestError`,401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`,500:`InternalServerError`}};function te(e){return e.usage(`$0 artifacts namespaces delete <namespace>
5
5
 
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B4sZZTRA.mjs";import{n}from"./auth-BaUNb1Ed.mjs";import{a as r,t as i}from"./context-BQ6KeMgq.mjs";import{t as a}from"./output-O6b9MR9R.mjs";import{t as o}from"./dry-run-DQmFkNK_.mjs";import{t as s}from"./progress-CdlDthXA.mjs";import{t as c}from"./run-B_07PrkW.mjs";import"./telemetry-Dpm6GfZD.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function u(e){return e.usage(`$0 audit-logs list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/audit_logs`,query:[`id`,`export`,`action.type`,`actor.ip`,`actor.email`,`since`,`before`,`zone.name`,`direction`,`per_page`,`page`,`hide_user_logs`]};function u(e){return e.usage(`$0 audit-logs list
3
3
 
4
4
  Gets a list of audit logs for an account. Can be filtered by who made the change, on which zone, and the timeframe of the change.`).option(`id`,{type:`string`,description:`Finds a specific log by its ID.`}).option(`export`,{type:`boolean`,description:`Indicates that this request is an export of logs in CSV format.`}).option(`action-type`,{type:`string`,description:`Filters by the action type.`}).option(`actor-ip`,{type:`string`,description:`Filters by the IP address of the request that made the change by specific IP address or valid CIDR Range.`}).option(`actor-email`,{type:`string`,description:`Filters by the email address of the actor that made the change.`}).option(`since`,{type:`string`,description:`Since`}).option(`before`,{type:`string`,description:`Before`}).option(`zone-name`,{type:`string`,description:`Filters by the name of the zone associated to the change.`}).option(`direction`,{type:`string`,description:`Changes the direction of the chronological sorting.`,choices:[`desc`,`asc`]}).option(`per-page`,{type:`number`,description:`Sets the number of results to return per page.`}).option(`page`,{type:`number`,description:`Defines which page of results to return.`}).option(`hide-user-logs`,{type:`boolean`,description:`Indicates whether or not to hide user level audit logs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`Get account audit logs`,builder:u,handler:async e=>c({command:`audit-logs list`,classification:{safeFlags:[`export`,`direction`,`hide-user-logs`,`dry-run`]}},e,async()=>{let c={id:e.id,export:e.export,"action.type":e[`action-type`],"actor.ip":e[`actor-ip`],"actor.email":e[`actor-email`],since:e.since,before:e.before,"zone.name":e[`zone-name`],direction:e.direction,per_page:e[`per-page`],page:e.page,hide_user_logs:e[`hide-user-logs`]};if(e.dryRun){let e=await r();o({command:`cf audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/audit_logs`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})},f={command:`audit-logs`,describe:`audit-logs`,builder:e=>e.command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{G as e}from"./dist-CX6dDtzj.mjs";import{n as t,t as n}from"./api-eMuS5GI1.mjs";import{a as r,n as i}from"./context-Sgba0fZP.mjs";import{l as a}from"./oauth-Cf3-g-kk.mjs";import{t as o}from"./auth-token-T0aqYgl9.mjs";import{n as s}from"./request-headers-Bg8_Idw3.mjs";const c=6e4;function l(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream}var u={method:`GET`,path:()=>`/accounts`,query:[`name`,`page`,`per_page`,`direction`]},d={method:`GET`,path:()=>`/memberships`,query:[`account.name`,`page`,`per_page`,`order`,`direction`,`name`,`status`]};function f(e){return e instanceof FormData||e instanceof Blob||e instanceof ArrayBuffer||ArrayBuffer.isView(e)||e instanceof ReadableStream||e instanceof URLSearchParams}function p(e){return Object.keys(e).some(e=>e.toLowerCase()===`content-type`)}async function m(e){let t=e.headers.get(`content-type`)??``;try{return t.includes(`application/json`)?await e.json():await e.text()}catch{return null}}function h(e,t,n){if(n!=null&&n!==``){if(Array.isArray(n))for(let r of n)h(e,t,r);else e.append(t,String(n))}}function g(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))h(t,n,r);return t.toString()}function _(e,t,n){let r=new URL(t.endsWith(`/`)?t:`${t}/`),i=new URL(e.startsWith(`/`)?e.slice(1):e,r);if(i.origin!==r.origin)throw Error(`Refusing to send an authenticated request to ${i.origin} (expected ${r.origin})`);let a=g(n??{});return a&&(i.search=a),i.toString()}const v=/* @__PURE__ */ new WeakMap,y=/* @__PURE__ */ new WeakMap;async function b(e,n,r,i={}){let a=e.baseUrl,o=_(r,a,i.query),s={...i.headers},c;i.body!==void 0&&(f(i.body)||typeof i.body==`string`&&p(s)?c=i.body:(s[`Content-Type`]??=`application/json`,c=JSON.stringify(i.body)));let u=i.timeout===void 0&&l(c)?y.get(e):void 0,d=i.timeout??v.get(e)??6e4,h;try{h=await(u??e).fetch(o,{method:n,headers:s,body:c,signal:i.signal},{timeoutInSeconds:i.timeout===void 0?void 0:i.timeout/1e3,abortSignal:i.signal})}catch(e){throw i.signal?.aborted?Error(`Request aborted`):e===`timeout`||e instanceof Error&&e.name===`AbortError`?Error(u?`Request timed out`:`Request timed out after ${d}ms`):e instanceof Error?Error(`Request failed: ${e.message}`):e}if(!h.ok)throw new t({statusCode:h.status,body:await m(h),rawResponse:{status:h.status,statusText:h.statusText,url:h.url||o,headers:h.headers,redirected:h.redirected,type:h.type}});if(h.status===204)return null;let g=h.headers.get(`content-type`)??``;if(!g.includes(`application/json`)&&i.preserveNonJsonBytes)return Buffer.from(await h.arrayBuffer());let b=await h.text();if(b===``)return null;if(!g.includes(`application/json`))return b;let x=JSON.parse(b);if(x.success===!1){let e=x.errors?.map(e=>e.message).filter(Boolean).join(`, `)||`unknown error`;throw new t({message:`API error: ${e}`,statusCode:h.status,body:x})}return`result`in x?x.result:x}function x(e){let t={baseUrl:e.baseURL??`https://api.cloudflare.com/client/v4`,auth:async()=>({headers:{Authorization:`Bearer ${e.apiToken}`}}),headers:e.defaultHeaders,timeoutInSeconds:(e.timeout??6e4)/1e3,maxRetries:0,fetch:e.fetch??globalThis.fetch},r=new n(t);return v.set(r,e.timeout??6e4),e.timeout===void 0&&y.set(r,new n({...t,timeoutInSeconds:void 0})),r}async function S(t){if(a())return;let n=await r();if(n)return n;try{let n=await o(),r=e({compliance_region:await i()}),a=t-Date.now();if(a<=0)return;let c=x({apiToken:n,baseURL:r,defaultHeaders:s()}),l={timeoutInSeconds:a/1e3,maxRetries:0},[f,p]=await Promise.allSettled([c.send(u,{per_page:50},l),c.send(d,{per_page:50},l)]);if(f.status===`rejected`)return;let m=f.value;if((m.result_info?.total_count??m.result.length)>m.result.length)return;let h=m.result;if(p.status===`fulfilled`){let e=p.value.result??[];if((p.value.result_info?.total_count??e.length)>e.length)return;let t=new Set(e.map(e=>e.account?.id).filter(e=>e!==void 0));h=h.filter(e=>t.has(e.id))}return h.length===1?h[0]?.id:void 0}catch{return}}async function C(t){if(t.dryRun&&a())throw Error(`This command's dry run cannot be used with --temporary-account. Remove --dry-run to run the command for real.`);let n=e({compliance_region:await i()});if(t.local){let{createLocalFetch:e}=await import(`./local-CFZtOOxg.mjs`);return x({apiToken:`cf-local-mode-no-auth`,baseURL:n,defaultHeaders:s(),fetch:e({persistTo:t.persistTo,apiBaseUrl:n})})}return x({apiToken:await o(),baseURL:n,defaultHeaders:s()})}export{S as a,l as c,b as i,c as l,C as n,d as o,g as r,u as s,x as t};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./agent-context-DFEgYjEQ.mjs";import{i as n}from"./blocks-CFAm0Ma3.mjs";import"./ui-CBhKUPys.mjs";import{n as r,t as i}from"./log-CRbgNbDp.mjs";import{d as a,f as o,i as s,r as c,t as l}from"./oauth-Cf3-g-kk.mjs";import{t as u}from"./auth-token-T0aqYgl9.mjs";import{t as d}from"./output-CpiIVa7Q.mjs";import{n as f}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as p,c as m,i as h,n as g,o as _,r as v,s as y,t as b}from"./login-C3Bahro9.mjs";const x={command:`logout`,describe:`Log out and remove stored credentials`,handler:async t=>{h(t,`logout`,"Run `cf auth delete <name>` to remove a named profile.");let n=c();n!=="default"&&(i.warn(`This directory has profile "${n}" active. ${e.code(`cf auth logout`)} removes the default profile's token, not "${n}". To delete "${n}", run:`),r(`cf auth delete ${n}`)),await a(`default`)}},S={command:`whoami`,describe:`Show current user and authentication status`,handler:async e=>{if(e[`temporary-account`]||e[`event-code`]!==void 0)throw Error(`--temporary-account and --event-code are not supported by cf auth whoami.`);let r=process.env.CLOUDFLARE_API_TOKEN,i=o(),a;a=r?`CLOUDFLARE_API_TOKEN environment variable`:i?.oauth_token?`OAuth token from ${s()}`:`none`;let c;try{c=await u()}catch{d({authenticated:!1,error:`Not logged in`}),a===`none`&&t().isAgentic&&console.error(n('Ask the user: "I can put this online for 60 minutes without you signing in. To keep it, complete the temporary-account claim before it expires. Would you like me to deploy it that way?" (https://developers.cloudflare.com/workers/platform/claim-deployments/) If they agree, run `cf deploy --temporary-account`.'));return}let{createCloudflareClientWithToken:f}=await import(`./auth-DF_ml7rE.mjs`),{default:p}=await import(`./get-BTisquA3.mjs`),m=f({apiToken:c}),h,g=[],[_,v]=await Promise.allSettled([m.send(p),l()]);if(_.status===`fulfilled`){let e=_.value;e&&`email`in e&&typeof e.email==`string`&&(h=e.email)}else process.env.DEBUG&&console.error(`User lookup error:`,_.reason);v.status===`fulfilled`?g=v.value:process.env.DEBUG&&console.error(`Account lookup error:`,v.reason);let y=_.status===`fulfilled`||v.status===`fulfilled`,b={authenticated:!0,authSource:a,tokenValid:y,...h&&{email:h},accounts:g};i?.oauth_token&&(b.scopes=i.scopes,b.expiresAt=i.expiration_time),d(b)}},C={command:`auth`,describe:`Manage authentication and profiles`,builder:e=>e.command(f(b,{command:`auth login`,classification:g})).command(w(x,`auth logout`)).command(w(S,`auth whoami`)).command(w(p,`auth create`,[`browser`,`device`])).command(w(y,`auth delete`)).command(w(v,`auth activate`)).command(w(_,`auth deactivate`)).command(w(m,`auth list`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function w(e,t,n=[],r){return f(e,{command:t,classification:{safeFlags:n,shortFlagAliases:r}})}export{C as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export{t as createCloudflareClientWithToken}from"./auth-BUQscD5b.mjs";import"./context-Sgba0fZP.mjs";import"./oauth-Cf3-g-kk.mjs";import"./auth-token-T0aqYgl9.mjs";
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import{o as e}from"./chunk-2K52M2W5-iYNzknM1.mjs";import{t}from"./errors-DpbAQQv8.mjs";import{c as n,l as r,p as i,s as a}from"./oauth-Cf3-g-kk.mjs";async function o(o){if(r())return(await i(o)).apiToken;let s=e({allowGlobalAuthKey:!1});if(s&&`apiToken`in s)return s.apiToken;let c=await a();if(c)return c;throw n()?Error(`Could not refresh your stored OAuth token. Check your connection and retry, or run 'cf auth login' to authenticate again.`):new t(`No authentication token found.
3
+
4
+ Please set one of the following:
5
+ 1. Set the CLOUDFLARE_API_TOKEN environment variable
6
+ 2. Run 'cf auth login' to authenticate via OAuth
7
+
8
+ For API tokens, visit: https://dash.cloudflare.com/profile/api-tokens`)}export{o as t};