cf 1.0.0-beta.15 → 1.0.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/dist/_meta/commands.json +3797 -3220
  2. package/dist/_meta/hand-written-commands.json +2 -2
  3. package/dist/_meta/schemas.json +4768 -4250
  4. package/dist/{abuse-reports-CnQBtN1G.mjs → abuse-reports-C4LxDvUM.mjs} +1 -1
  5. package/dist/{access-BzmXSwzj.mjs → access-DnWW2AAT.mjs} +1 -1
  6. package/dist/{account-tags-2qPWbW17.mjs → account-tags-zvHRQZxb.mjs} +1 -1
  7. package/dist/{accounts-B0Byg-AV.mjs → accounts-8UcHNm3S.mjs} +39 -39
  8. package/dist/{acm-DgAu0cnk.mjs → acm-qRM3iy4Z.mjs} +3 -3
  9. package/dist/{addressing-J1oa0ML2.mjs → addressing-CAb8z2Dq.mjs} +14 -14
  10. package/dist/{agent-memory-4KGou-tm.mjs → agent-memory-oIUP4ZV5.mjs} +1 -1
  11. package/dist/{ai-WY7wVQfA.mjs → ai-DnhytGdc.mjs} +1 -1
  12. package/dist/{ai-audit-D38HaEoZ.mjs → ai-audit-B7_5EOcN.mjs} +1 -1
  13. package/dist/{ai-gateway-C0gIipT8.mjs → ai-gateway-b3FFu6UV.mjs} +6 -6
  14. package/dist/{ai-search-ClwnPU-9.mjs → ai-search-CtfW5fzl.mjs} +25 -25
  15. package/dist/{ai-security-BIsvFPYV.mjs → ai-security-KUs94UW-.mjs} +1 -1
  16. package/dist/{alerting-MHhv28oO.mjs → alerting-CCmyEPzN.mjs} +1 -1
  17. package/dist/{analytics-BfBz7bqB.mjs → analytics-BAvBj6qx.mjs} +1 -1
  18. package/dist/{analytics_engine-CXVdBF1n.mjs → analytics-engine-DAJp89gM.mjs} +2 -2
  19. package/dist/{api-security-DUCfcdC1.mjs → api-security-BItVQymb.mjs} +2 -2
  20. package/dist/{argo-CUlzI4v3.mjs → argo-DsJCvfml.mjs} +1 -1
  21. package/dist/{artifacts-BLfWGzBg.mjs → artifacts-DzHXeah6.mjs} +1 -1
  22. package/dist/audit-logs-D9XxsVZm.mjs +4 -0
  23. package/dist/{auth-CGRemu5W.mjs → auth-C530fHKQ.mjs} +1 -1
  24. package/dist/auth-Ccm5viK_.mjs +2 -0
  25. package/dist/{auth-C6u9qIGO.mjs → auth-MNz2D-PD.mjs} +1 -1
  26. package/dist/{auth-token-DkkYg4DP.mjs → auth-token-Cw4c0y89.mjs} +1 -1
  27. package/dist/{autoconfig-B0ESZ8DJ.mjs → autoconfig-9po_tqsS.mjs} +1 -1
  28. package/dist/{basin-catalog-CrKRYJ0b.mjs → basin-catalog-DcMiZV9J.mjs} +1 -1
  29. package/dist/{billing-NxehgXrR.mjs → billing-COgAWTYh.mjs} +7 -7
  30. package/dist/{bot-management-C993iQKL.mjs → bot-management-Dx3lh9Fi.mjs} +1 -1
  31. package/dist/{botnet-feed-CZ4vYk5y.mjs → botnet-feed-C8496Nhl.mjs} +1 -1
  32. package/dist/{brand-protection-ADVgIi0l.mjs → brand-protection-B0p8Sv6s.mjs} +1 -1
  33. package/dist/browser-run-ChXohmNG.mjs +42 -0
  34. package/dist/build-BRJnyeu8.mjs +2 -0
  35. package/dist/{build-sBpqm9ga.mjs → build-i8l2qGVZ.mjs} +1 -1
  36. package/dist/{builds-DqtiTH7p.mjs → builds-DmEFTQTa.mjs} +1 -1
  37. package/dist/{cache-hX5QxmI0.mjs → cache-BUh85NRr.mjs} +1 -1
  38. package/dist/{certificate-authorities-BOcybjc1.mjs → certificate-authorities-BTLdA7EQ.mjs} +1 -1
  39. package/dist/chunk-JP6R7L72-C0kFUelb.mjs +2 -0
  40. package/dist/cli-DJhpXf38.mjs +6 -0
  41. package/dist/{client-certificates-Bez_ArKE.mjs → client-certificates-B3UxH_Au.mjs} +1 -1
  42. package/dist/{client-side-security-CSmA50Bv.mjs → client-side-security-km3-4L_4.mjs} +1 -1
  43. package/dist/{cloud-connector-0Wivqi7S.mjs → cloud-connector-BoKFprDD.mjs} +1 -1
  44. package/dist/{cloudforce-one-J-rU6k1U.mjs → cloudforce-one-DN5N3C3w.mjs} +21 -21
  45. package/dist/{command-BCJN-ZM2.mjs → command-B694oLDo.mjs} +1 -1
  46. package/dist/{command-BG-kLOnS.mjs → command-Bmee6uwe.mjs} +1 -1
  47. package/dist/{command-BKDbbA-L.mjs → command-CAs3SxlI.mjs} +1 -1
  48. package/dist/{command-DIs-Nqtl.mjs → command-CCq-Z2Ua.mjs} +1 -1
  49. package/dist/{command-Bdy69UFU.mjs → command-CbQFbfps.mjs} +1 -1
  50. package/dist/{command-0BOb1pgV.mjs → command-CiApsRql.mjs} +1 -1
  51. package/dist/{command-CKW6UhTh.mjs → command-D1JR8Fb7.mjs} +1 -1
  52. package/dist/{command-DPn5ANHs.mjs → command-DerHAjQL.mjs} +1 -1
  53. package/dist/{command-BIsI-mMX.mjs → command-RC9WM5jq.mjs} +1 -1
  54. package/dist/{command-BWQIKu6I.mjs → command-rx0Kb5pn.mjs} +1 -1
  55. package/dist/{completions-CpNGTlUX.mjs → completions-11latun5.mjs} +1 -1
  56. package/dist/{connector-interrupts-CH-DaLuo.mjs → connector-interrupts-wvQcZsO1.mjs} +1 -1
  57. package/dist/{connector-telemetry-events-X3Fod9nl.mjs → connector-telemetry-events-C0GGCIQk.mjs} +1 -1
  58. package/dist/{connector-telemetry-snapshots-D-WR4npQ.mjs → connector-telemetry-snapshots-ZXzsFgea.mjs} +1 -1
  59. package/dist/{connectors-CORKD31m.mjs → connectors-DXIUG4Zi.mjs} +1 -1
  60. package/dist/{containers-BboUbx3k.mjs → containers-DCH6MFjY.mjs} +5 -5
  61. package/dist/{containers-Di3_Vopq.mjs → containers-WMWKhLkp.mjs} +1 -1
  62. package/dist/{content-scan-DXGREAXa.mjs → content-scan-CRDmR7rD.mjs} +1 -1
  63. package/dist/{context-A6T-NKPI.mjs → context-q-6bMSL-.mjs} +1 -1
  64. package/dist/{cps-1BoOLtTq.mjs → cps-Due0P5IW.mjs} +1 -1
  65. package/dist/csam-scanner-DvLrPw45.mjs +10 -0
  66. package/dist/{ct-alerting-DlH4ILQo.mjs → ct-alerting-BtEGkRJi.mjs} +1 -1
  67. package/dist/{custom-certificates-zJqJZ2Th.mjs → custom-certificates-CMLXTTEc.mjs} +4 -4
  68. package/dist/{custom-csrs-DoLIGqYL.mjs → custom-csrs-BV017SqE.mjs} +3 -3
  69. package/dist/{custom-hostnames-YfV-aoAK.mjs → custom-hostnames-DI_dFaof.mjs} +6 -6
  70. package/dist/{custom-nameservers-BV43gmgt.mjs → custom-nameservers-BLoE8VGG.mjs} +1 -1
  71. package/dist/{custom-pages-CoOU1Cdx.mjs → custom-pages-ubava9Qm.mjs} +6 -6
  72. package/dist/{d1-DujBmzLa.mjs → d1-Dbs8HItA.mjs} +1 -1
  73. package/dist/{dcv-delegation-CPLsVYOl.mjs → dcv-delegation-sGGt6UU_.mjs} +1 -1
  74. package/dist/{deploy-wNujfGUJ.mjs → deploy-5utIiOMN.mjs} +1 -1
  75. package/dist/{deploy-context-tEhwEXnA.mjs → deploy-context-C0iVbWRG.mjs} +1 -1
  76. package/dist/{deploy-input-BqJ7GVZ-.mjs → deploy-input-KK6yyBN_.mjs} +1 -1
  77. package/dist/{dev-EtnMYA7K.mjs → dev-CnoMHxf4.mjs} +1 -1
  78. package/dist/{diagnostics-B3TYPVRi.mjs → diagnostics-C9B07eJY.mjs} +1 -1
  79. package/dist/{dls-CWm1HRF0.mjs → dls-lbM3i4x-.mjs} +7 -7
  80. package/dist/{dns-CjAFU7Z9.mjs → dns-QTMPGYMa.mjs} +5 -5
  81. package/dist/{dns-firewall-BooBP9ap.mjs → dns-firewall-Bfv0S44I.mjs} +1 -1
  82. package/dist/{docs-C5XB7HdG.mjs → docs-bV3hPwQL.mjs} +1 -1
  83. package/dist/{durable-objects-CSrMQDCE.mjs → durable-objects-0JvGTV27.mjs} +1 -1
  84. package/dist/{email-auth-Bp1Mui-n.mjs → email-auth-PzRqG0ex.mjs} +1 -1
  85. package/dist/{email-routing-CVF6SwQt.mjs → email-routing-BgHL0Rbz.mjs} +4 -4
  86. package/dist/{email-security-mYZtazae.mjs → email-security-CSTKIecn.mjs} +1 -1
  87. package/dist/{email-sending-BqaKU_Xu.mjs → email-sending-BSwuAir8.mjs} +14 -14
  88. package/dist/field-extractors-B_lFnwaL.mjs +9 -0
  89. package/dist/{firewall-DgTDsYOt.mjs → firewall-BsZxVitA.mjs} +11 -11
  90. package/dist/{flagship-Db3PxxyZ.mjs → flagship-qBohOZaM.mjs} +1 -1
  91. package/dist/{fraud-BEOQczy8.mjs → fraud-vGNdrSm-.mjs} +1 -1
  92. package/dist/{google-tag-gateway-DjLQ9wo0.mjs → google-tag-gateway-BHdOg4VW.mjs} +1 -1
  93. package/dist/{healthchecks-C3ScnKss.mjs → healthchecks-DAYYLZ6u.mjs} +7 -7
  94. package/dist/{hostnames-DU0k-xO9.mjs → hostnames-CLlaMqHu.mjs} +1 -1
  95. package/dist/{hyperdrive-IpCCLCRd.mjs → hyperdrive-CXTqaIqk.mjs} +3 -3
  96. package/dist/{iam-96CYM8Vw.mjs → iam-Dl_n_Lqq.mjs} +1 -1
  97. package/dist/{images-AB9EgZgT.mjs → images-vMtXk2Rf.mjs} +1 -1
  98. package/dist/index.mjs +1 -1
  99. package/dist/{init-D2nPoW4f.mjs → init-_7djeBVw.mjs} +1 -1
  100. package/dist/{intel-BKb4RLvS.mjs → intel-Bq4GGXv-.mjs} +1 -1
  101. package/dist/{ips-z9APCV_b.mjs → ips-BcvZS46g.mjs} +1 -1
  102. package/dist/{k2-Bv-HiJ29.mjs → k2-DL4hrVTj.mjs} +1 -1
  103. package/dist/{keyless-certificates-ChgSGHq4.mjs → keyless-certificates-0pzjkZb6.mjs} +4 -4
  104. package/dist/{keys-BhngDsDa.mjs → keys-BSV5IXdU.mjs} +1 -1
  105. package/dist/{kv-CB5MQVGP.mjs → kv-BLo9wMgb.mjs} +3 -3
  106. package/dist/{lazy-command-CaZ1kdlW.mjs → lazy-command-CRcT6Dx-.mjs} +1 -1
  107. package/dist/{leaked-credential-checks-Bsi2WpSU.mjs → leaked-credential-checks-Dx4RXMyN.mjs} +3 -3
  108. package/dist/{load-balancers-0gXZNCeI.mjs → load-balancers-CCCWoQXv.mjs} +40 -40
  109. package/dist/{login-CiQGR8ha.mjs → login-DT6Q1UJw.mjs} +1 -1
  110. package/dist/{login-Ik98G4K6.mjs → login-Du_W6b9o.mjs} +1 -1
  111. package/dist/{logo-matches-DmoF5Otu.mjs → logo-matches-C-1J0Oc3.mjs} +1 -1
  112. package/dist/{logos-BL6ohIMH.mjs → logos-BuhvSu_H.mjs} +1 -1
  113. package/dist/{logpush-UVopW68t.mjs → logpush-DgZtF9vG.mjs} +6 -6
  114. package/dist/{logs-BVfxiEiM.mjs → logs-CaKOk-1v.mjs} +1 -1
  115. package/dist/{magic-cloud-networking-B5S3aM6f.mjs → magic-cloud-networking-CKxXYT8r.mjs} +1 -1
  116. package/dist/{magic-network-monitoring-CDSJPP47.mjs → magic-network-monitoring-BykFGQCz.mjs} +1 -1
  117. package/dist/{magic-transit-TcDTKM43.mjs → magic-transit-DYULsrUP.mjs} +1 -1
  118. package/dist/{managed-defense-C88HL0pg.mjs → managed-defense-DIb_uN25.mjs} +5 -5
  119. package/dist/{managed-transforms-Ja41Tahl.mjs → managed-transforms-an3wQ0DW.mjs} +1 -1
  120. package/dist/{matches-BL_Y-9Yq.mjs → matches-DkLSWb5X.mjs} +1 -1
  121. package/dist/{mcp-BWp5Q09R.mjs → mcp-BcV1XqE8.mjs} +1 -1
  122. package/dist/{mesh-lFPLRWhV.mjs → mesh-CSSlZ-0F.mjs} +1 -1
  123. package/dist/{migrate-6e5mJ79R.mjs → migrate-DerOyuv2.mjs} +1 -1
  124. package/dist/{monetization-BIc4Bwo2.mjs → monetization-B-nJ0SyI.mjs} +1 -1
  125. package/dist/{mtls-certificates-CVBw-Jli.mjs → mtls-certificates-ukwDz6Lc.mjs} +1 -1
  126. package/dist/{network-Wig0qbaC.mjs → network-ZzxQ_Dcz.mjs} +1 -1
  127. package/dist/{network-interconnects-C16z1HuQ.mjs → network-interconnects-CI9NXQpe.mjs} +1 -1
  128. package/dist/{o11y-Bhy4qDRm.mjs → o11y-LG6Y9LUZ.mjs} +2 -2
  129. package/dist/{oauth-oWaW7ICv.mjs → oauth-Bx693Af5.mjs} +1 -1
  130. package/dist/{oauth-CfEedDZi.mjs → oauth-CP82E1_0.mjs} +1 -1
  131. package/dist/{oauth-clients-eXjmK5yf.mjs → oauth-clients-BA30rTEl.mjs} +1 -1
  132. package/dist/{oauth-scopes-DZWn50EA.mjs → oauth-scopes-hseWES1v.mjs} +1 -1
  133. package/dist/open-PCXX3ZDZ-5J5IU2MX-CKla-jDt.mjs +4 -0
  134. package/dist/{organization-QdAQTrKa.mjs → organization-DMr_z6n4.mjs} +3 -3
  135. package/dist/{organizations-CgAQYdK5.mjs → organizations-CcgZPmFl.mjs} +1 -1
  136. package/dist/{origin-ca-certificates-BklXqp8X.mjs → origin-ca-certificates-BZxUbB5N.mjs} +1 -1
  137. package/dist/{origin-post-quantum-encryption-Dg16ueT4.mjs → origin-post-quantum-encryption-BhdlaolV.mjs} +1 -1
  138. package/dist/{origin-tls-client-auth-d8bDU5zU.mjs → origin-tls-client-auth-DzbZvtmi.mjs} +6 -6
  139. package/dist/{page-rules-CgMkC6YR.mjs → page-rules-DFfqfllI.mjs} +5 -5
  140. package/dist/{pages-CkBtOOf8.mjs → pages-BkcL5rC4.mjs} +9 -9
  141. package/dist/{pay-per-crawl-CnGXOWyz.mjs → pay-per-crawl-Dulm7Xy5.mjs} +1 -1
  142. package/dist/{pay-per-use-HbfxpATr.mjs → pay-per-use-C_HxhpM4.mjs} +1 -1
  143. package/dist/{pipelines-CnO9CCs0.mjs → pipelines-DUMIVwof.mjs} +1 -1
  144. package/dist/{precursor-Bc55XJdQ.mjs → precursor-DsGbA_YJ.mjs} +1 -1
  145. package/dist/{previews-C7vZrajd.mjs → previews-Cma3-M7K.mjs} +1 -1
  146. package/dist/{progress-D5po7ScB.mjs → progress-DaQ4MzBI.mjs} +1 -1
  147. package/dist/{prompt-BAJpE3jV.mjs → prompt-KWYZvJWM.mjs} +1 -1
  148. package/dist/{queries-BJAH4B74.mjs → queries-DoyhspQf.mjs} +1 -1
  149. package/dist/{queues-D4G8vvwi.mjs → queues-BPxTU2rU.mjs} +4 -4
  150. package/dist/{r2-CJ8rD6Jb.mjs → r2-CQt4S7o7.mjs} +4 -4
  151. package/dist/{radar-DgaxOdcd.mjs → radar-CALpR1vq.mjs} +1 -1
  152. package/dist/{raw-fetch-yY-wX5Xx.mjs → raw-fetch-Cy09TjHc.mjs} +1 -1
  153. package/dist/{realtime-DU09m7L7.mjs → realtime-BiHKBoI4.mjs} +6 -6
  154. package/dist/{registrar-Cj7OfvGs.mjs → registrar-gERQ3b85.mjs} +1 -1
  155. package/dist/{registrar-sandbox-CA0Mua-j.mjs → registrar-sandbox-BttFwYqE.mjs} +1 -1
  156. package/dist/reporting-8aRJD5HX.mjs +14 -0
  157. package/dist/{request-headers-D_eQn93b.mjs → request-headers-CqfJOkpO.mjs} +1 -1
  158. package/dist/{request-tracers-VBD4R3s3.mjs → request-tracers-DcnwQg3K.mjs} +1 -1
  159. package/dist/{resource-sharing-BtUF3psS.mjs → resource-sharing-uVVpMW0w.mjs} +1 -1
  160. package/dist/{resource-tagging--90INP8_.mjs → resource-tagging-SlsUtLsq.mjs} +1 -1
  161. package/dist/{rules-CcwPngVo.mjs → rules-CFOuN3t2.mjs} +10 -10
  162. package/dist/{rulesets-CfdruY82.mjs → rulesets-DkhV2Hny.mjs} +15 -15
  163. package/dist/{rum-RLkdfSL7.mjs → rum-BnMW0Tlb.mjs} +1 -1
  164. package/dist/run-CHNyLZLG.mjs +2 -0
  165. package/dist/{run-DASYqJsY.mjs → run-Clc3P2u7.mjs} +1 -1
  166. package/dist/{schema-flags-CShtn7ya.mjs → schema-flags-b096XMpt.mjs} +1 -1
  167. package/dist/{scim-BZYsTPIL.mjs → scim-tvZm6A-r.mjs} +1 -1
  168. package/dist/{secrets-store-C_-FkSH_.mjs → secrets-store-DuNxSh1_.mjs} +1 -1
  169. package/dist/{security-insights-BVBEaZmD.mjs → security-insights-C17c9ZYZ.mjs} +1 -1
  170. package/dist/{security-txt--IoHrHee.mjs → security-txt-D4pRk7-w.mjs} +1 -1
  171. package/dist/{shared-zNQNv1im.mjs → shared-zePemxHi.mjs} +1 -1
  172. package/dist/{smart-shield-CByC4_60.mjs → smart-shield-2egm1Vaw.mjs} +5 -5
  173. package/dist/{snippets-DB-jiZAV.mjs → snippets-BIcZ6vSW.mjs} +1 -1
  174. package/dist/{spawn-DQttFH05.mjs → spawn-BW2bJmKO.mjs} +1 -1
  175. package/dist/{spectrum-Bs2g1BmK.mjs → spectrum-DjDX0geK.mjs} +9 -9
  176. package/dist/{speed-Bq4evEnJ.mjs → speed-DiPoFJMm.mjs} +1 -1
  177. package/dist/{sql-XGci7hZC.mjs → sql-DLjCt_R3.mjs} +1 -1
  178. package/dist/{src-GiuwAT55.mjs → src-CutrsNl4.mjs} +7 -7
  179. package/dist/{ssl-KJTLW1NR.mjs → ssl-vNzK0c9S.mjs} +5 -5
  180. package/dist/{stream-BotgYspF.mjs → stream-uhn_Zsni.mjs} +8 -8
  181. package/dist/{submit-C5VytaHP.mjs → submit-C3suIDBX.mjs} +1 -1
  182. package/dist/{tags-3Hq-B9qp.mjs → tags-Dy2jG-Dt.mjs} +1 -1
  183. package/dist/telemetry-Bdv5LZZs.mjs +2 -0
  184. package/dist/{telemetry-3FJOXl_C.mjs → telemetry-DYjsavEr.mjs} +1 -1
  185. package/dist/{tenant-BgX5onPc.mjs → tenant-DK88yQM4.mjs} +1 -1
  186. package/dist/{tenant-custom-nameservers-BVG8v1Xo.mjs → tenant-custom-nameservers-BZ1JD1Yf.mjs} +2 -2
  187. package/dist/{tunnels-CThOI3qH.mjs → tunnels-DjbomhCa.mjs} +3 -3
  188. package/dist/{turnstile-BgZaUx-g.mjs → turnstile-DXrbEy2A.mjs} +1 -1
  189. package/dist/{update-check-jb89ih_g.mjs → update-check-BhhtSXVZ.mjs} +1 -1
  190. package/dist/update-check-Dld7rbLd.mjs +2 -0
  191. package/dist/update-check-worker.mjs +1 -1
  192. package/dist/{url-info-DQERN0Xq.mjs → url-info-a0mY4UsC.mjs} +1 -1
  193. package/dist/{url-normalization-Cb1hofqv.mjs → url-normalization-DiwpDIhc.mjs} +1 -1
  194. package/dist/{url-scanner-gHgx1bW7.mjs → url-scanner-D0egjBe5.mjs} +1 -1
  195. package/dist/{user-CdKzIuSi.mjs → user-DDH9lxf5.mjs} +58 -58
  196. package/dist/{values-EwA8Sx0w.mjs → values-Bfr5-bL6.mjs} +1 -1
  197. package/dist/{vectorize-DejgIJIv.mjs → vectorize-DaT3amFV.mjs} +1 -1
  198. package/dist/version-CAuKDZAG.mjs +2 -0
  199. package/dist/{waiting-rooms-BNR1HvAP.mjs → waiting-rooms-BGMpu9gS.mjs} +18 -18
  200. package/dist/{web-assets-iglnzkTV.mjs → web-assets-NqNglLSI.mjs} +1 -1
  201. package/dist/{web3-JBUU6IVt.mjs → web3-UnCUuIfB.mjs} +11 -11
  202. package/dist/{workers-CDp4kLTJ.mjs → workers-DfA9ugmb.mjs} +2 -2
  203. package/dist/{workers-builds-CSb9Dglt.mjs → workers-builds-Cy6fdtm5.mjs} +1 -1
  204. package/dist/{workers-for-platforms-D4srNZvt.mjs → workers-for-platforms-JscCHivQ.mjs} +1 -1
  205. package/dist/{workers-vpc-LPC8TadH.mjs → workers-vpc-FDZQBqOu.mjs} +1 -1
  206. package/dist/{workflows-DN_VqWJC.mjs → workflows-Dq-k81hU.mjs} +1 -1
  207. package/dist/wrangler-migration-R9TQ_4Qd.mjs +946 -0
  208. package/dist/{zaraz-DDErl5yc.mjs → zaraz-Dpr1pLDx.mjs} +1 -1
  209. package/dist/{zero-trust-M88XX3uD.mjs → zero-trust-CZ685QhO.mjs} +27 -27
  210. package/dist/{zone-BsGvedmN.mjs → zone-DcZIUTWt.mjs} +1 -1
  211. package/dist/{zones-l_sRKrVl.mjs → zones-BVdvYUCv.mjs} +3 -3
  212. package/package.json +11 -10
  213. package/dist/alerts-BSON-vFh.mjs +0 -2
  214. package/dist/audit-logs-CsfIm2QS.mjs +0 -4
  215. package/dist/auth-8Sm4uLGM.mjs +0 -2
  216. package/dist/autorag-kNrLiqDX.mjs +0 -2
  217. package/dist/brands-bBJgbbOH.mjs +0 -2
  218. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  219. package/dist/browser-run-CEptKZYl.mjs +0 -42
  220. package/dist/build-Bm6kGyzo.mjs +0 -2
  221. package/dist/clear-BW9vLgI3.mjs +0 -2
  222. package/dist/cli-R8h3OKZI.mjs +0 -6
  223. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  224. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  225. package/dist/csamScanner-CHfbfeup.mjs +0 -10
  226. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  227. package/dist/fieldExtractors-CAGZVmYg.mjs +0 -9
  228. package/dist/health-CTaCeVyC.mjs +0 -2
  229. package/dist/internal-BYS7hO8c.mjs +0 -2
  230. package/dist/live-BJE_YWE1.mjs +0 -2
  231. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  232. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  233. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  234. package/dist/ready-B3pLxnjc.mjs +0 -2
  235. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  236. package/dist/refute-Dp3VodMn.mjs +0 -2
  237. package/dist/reporting-3kDVF5c8.mjs +0 -14
  238. package/dist/run-CUNhH5CQ.mjs +0 -2
  239. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  240. package/dist/scan-page-CxeudOzj.mjs +0 -2
  241. package/dist/search-B_P5ZTQj.mjs +0 -2
  242. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  243. package/dist/submission-info-_t78q2OE.mjs +0 -2
  244. package/dist/telemetry-BhKfwxyh.mjs +0 -2
  245. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  246. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  247. package/dist/update-check-Yy7Ivq2V.mjs +0 -2
  248. package/dist/verify-5KcvRk-q.mjs +0 -2
  249. package/dist/version-B6MnUIqV.mjs +0 -2
  250. package/dist/wrangler-migration-DxTB5yPT.mjs +0 -2
@@ -1,12 +1,12 @@
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-C6u9qIGO.mjs";import{i as n}from"./context-A6T-NKPI.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-D5po7ScB.mjs";import{t as o}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-BAJpE3jV.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-MNz2D-PD.mjs";import{i as n}from"./context-q-6bMSL-.mjs";import{t as r}from"./output-Co4xdFf6.mjs";import{t as i}from"./dry-run-C2KjGX10.mjs";import{t as a}from"./progress-DaQ4MzBI.mjs";import{t as o}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as s,t as c}from"./body-parser-DkHKPkJ7.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-KWYZvJWM.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
 
6
- Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:g,handler:async e=>o({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``),"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
6
+ Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:g,handler:async e=>o({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
7
7
  `);return}let c=await a(`Deleting`,async()=>o.send(h,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Deleted`})})};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function y(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
8
8
 
9
- Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:y,handler:async e=>o({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``),"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(v,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,query:[`page`,`per_page`,`limit`,`offset`]};function S(e){return e.usage(`$0 acm custom-trust-store list
9
+ Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:y,handler:async e=>o({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-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(v,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,query:[`page`,`per_page`,`limit`,`offset`]};function S(e){return e.usage(`$0 acm custom-trust-store list
10
10
 
11
11
  Get Custom Origin Trust Store for a Zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`list`,describe:`List Custom Origin Trust Store Details`,builder:S,handler:async e=>o({command:`acm custom-trust-store list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let o={page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){i({command:`cf acm custom-trust-store list`,method:`GET`,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`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(x,{zone_id:c,...o}));r(l,{successLabel:`Loaded`})})},w={command:`custom-trust-store`,describe:`Operations for custom-trust-store`,builder:e=>e.command(m).command(_).command(b).command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/total_tls`,body:`json`};function E(e){return e.usage(`$0 acm total-tls edit
12
12
 
@@ -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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,i as a,t as o}from"./context-A6T-NKPI.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-D5po7ScB.mjs";import{t as u}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-BAJpE3jV.mjs";import{n as ee,t as te}from"./raw-fetch-yY-wX5Xx.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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-MNz2D-PD.mjs";import{a as i,i as a,t as o}from"./context-q-6bMSL-.mjs";import{t as s}from"./output-Co4xdFf6.mjs";import{t as c}from"./dry-run-C2KjGX10.mjs";import{t as l}from"./progress-DaQ4MzBI.mjs";import{t as u}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-KWYZvJWM.mjs";import{n as ee,t as te}from"./raw-fetch-Cy09TjHc.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>
@@ -18,24 +18,24 @@ Show a particular address map owned by the account.`).positional(`address-map-id
18
18
  Remove multiple IPs from a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).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 O={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple IPs from an Address Map`,builder:D,handler:async e=>u({command:`addressing address-maps ips delete-bulk`,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 ips delete-bulk`,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`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
19
19
  `);return}if(e.body){let t=d(e.body),r=await l(`Deleting`,async()=>n.send(E,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({ips:e.ips}),f=await l(`Deleting`,async()=>n.send(E,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(f,{successLabel:`Deleted`})})};var k={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
20
20
 
21
- Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,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 j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips 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 ips 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`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"ip-address":String(e[`ip-address`]??``),"address-map-id":String(e[`address-map-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.
21
+ Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,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 j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips 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 ips 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`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},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.
22
22
  `);return}let u=await l(`Deleting`,async()=>n.send(k,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Deleted`})})};var M={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function N(e){return e.usage(`$0 addressing address-maps ips update-bulk <address-map-id>
23
23
 
24
24
  Add multiple IPs to a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips 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 P={command:`update-bulk <address-map-id>`,describe:`Add Multiple IPs to an Address Map`,builder:N,handler:async e=>u({command:`addressing address-maps ips update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update-bulk`,method:`POST`,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`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(M,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({ips:e.ips}),f=await l(`Creating`,async()=>n.send(M,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(f,{successLabel:`Created`})})};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function I(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
25
25
 
26
- Add an IP from a prefix owned by the account to a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,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})}const L={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:I,handler:async e=>u({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update`,method:`PUT`,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`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"ip-address":String(e[`ip-address`]??``),"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(F,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Updated`})})},R={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(O).command(L).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`};function B(e){return e.usage(`$0 addressing address-maps list
26
+ Add an IP from a prefix owned by the account to a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,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})}const L={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:I,handler:async e=>u({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update`,method:`PUT`,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`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(F,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Updated`})})},R={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(O).command(L).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`};function B(e){return e.usage(`$0 addressing address-maps list
27
27
 
28
28
  List all address maps owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List Address Maps`,builder:B,handler:async e=>u({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(z,{account_id:a}));s(u,{successLabel:`Loaded`})})};var H={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function pe(e){return e.usage(`$0 addressing address-maps zones delete-bulk <address-map-id>
29
29
 
30
30
  Remove multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).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 me={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple Zones from an Address Map`,builder:pe,handler:async e=>u({command:`addressing address-maps zones delete-bulk`,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 zones delete-bulk`,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`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
31
31
  `);return}if(e.body){let t=d(e.body),r=await l(`Deleting`,async()=>n.send(H,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({zones:e.zones}),f=await l(`Deleting`,async()=>n.send(H,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(f,{successLabel:`Deleted`})})};var he={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function ge(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
32
32
 
33
- Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,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 _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones 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 zones 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`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(e[`member-zone-id`]??``),"address-map-id":String(e[`address-map-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.
33
+ Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,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 _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones 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 zones 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`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-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.
34
34
  `);return}let u=await l(`Deleting`,async()=>n.send(he,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function ve(e){return e.usage(`$0 addressing address-maps zones update-bulk <address-map-id>
35
35
 
36
36
  Add multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones 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 ye={command:`update-bulk <address-map-id>`,describe:`Add Multiple Zones to an Address Map`,builder:ve,handler:async e=>u({command:`addressing address-maps zones update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update-bulk`,method:`POST`,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`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(U,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({zones:e.zones}),f=await l(`Creating`,async()=>n.send(U,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(f,{successLabel:`Created`})})};var be={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function xe(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
37
37
 
38
- Add a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,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})}const Se={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:xe,handler:async e=>u({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update`,method:`PUT`,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`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(e[`member-zone-id`]??``),"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(be,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Updated`})})},Ce={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(_e).command(me).command(Se).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},we={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(ce).command(de).command(S).command(T).command(V).command(oe).command(R).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/leases`};function Ee(e){return e.usage(`$0 addressing leases list
38
+ Add a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,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})}const Se={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:xe,handler:async e=>u({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update`,method:`PUT`,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`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(be,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Updated`})})},Ce={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(_e).command(me).command(Se).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},we={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(ce).command(de).command(S).command(T).command(V).command(oe).command(R).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/leases`};function Ee(e){return e.usage(`$0 addressing leases list
39
39
 
40
40
  List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`list`,describe:`List Leases`,builder:Ee,handler:async e=>u({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Te,{account_id:a}));s(u,{successLabel:`Loaded`})})},Oe={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ke(e){return e.usage(`$0 addressing loa-documents create
41
41
 
@@ -64,7 +64,7 @@ Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`A
64
64
 
65
65
  Create a new account delegation for a given IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegated-account-id`,{type:`string`,description:`Account identifier for the account to which prefix is being delegated.`}).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 ot={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:at,handler:async e=>u({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}):d(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=d(e.body),r=await l(`Creating`,async()=>n.send(J,{body:t,account_id:a,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`delegated-account-id`]===void 0&&(e[`delegated-account-id`]=await g(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let u=p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}),f=await l(`Creating`,async()=>n.send(J,{body:u,account_id:a,prefix_id:e[`prefix-id`]}));s(f,{successLabel:`Created`})})};var st={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations/${t.delegation_id}`};function ct(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
66
66
 
67
- Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,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 lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations 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 prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"delegation-id":String(e[`delegation-id`]??``),"prefix-id":String(e[`prefix-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.
67
+ Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,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 lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations 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 prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"delegation-id":String(e[`delegation-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.
68
68
  `);return}let u=await l(`Deleting`,async()=>n.send(st,{account_id:a,prefix_id:e[`prefix-id`],delegation_id:e[`delegation-id`]}));s(u,{successLabel:`Deleted`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`};function dt(e){return e.usage(`$0 addressing prefixes delegations list
69
69
 
70
70
  List all delegations for a given account IP prefix.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`list`,describe:`List Prefix Delegations`,builder:dt,handler:async e=>u({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ut,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},pt={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ot).command(lt).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function ht(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
@@ -87,19 +87,19 @@ Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`I
87
87
 
88
88
  Fetch a single Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mt={command:`get <binding-id>`,describe:`Get Service Binding`,builder:jt,handler:async e=>u({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(At,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Loaded`})})};var Nt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`};function Pt(e){return e.usage("$0 addressing prefixes service-bindings list\n\nList the Cloudflare services this prefix is currently bound to. Traffic sent to an address within an IP prefix will be routed to the Cloudflare service of the most-specific Service Binding matching the address. **Example:** binding `192.0.2.0/24` to Cloudflare Magic Transit and `192.0.2.1/32` to the Cloudflare CDN would route traffic for `192.0.2.1` to the CDN, and traffic for all other IPs in the prefix to Cloudflare Magic Transit.").option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ft={command:`list`,describe:`List Service Bindings`,builder:Pt,handler:async e=>u({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Nt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},It={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Et).command(kt).command(Mt).command(Ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Lt={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/validate`};function Rt(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
89
89
 
90
- Triggers a new prefix validation. The checks are run asynchronously and include IRR, RPKI, and prefix ownership.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:Rt,handler:async e=>u({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Creating`,async()=>n.send(Lt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Created`})})},Bt={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Vt={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(it).command(gt).command(vt).command(xt).command(wt).command(He).command(nt).command(pt).command(It).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`,body:`json`};function Ht(e){return e.usage(`$0 addressing regional_hostnames create
90
+ Triggers a new prefix validation. The checks are run asynchronously and include IRR, RPKI, and prefix ownership.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:Rt,handler:async e=>u({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Creating`,async()=>n.send(Lt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Created`})})},Bt={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Vt={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(it).command(gt).command(vt).command(xt).command(wt).command(He).command(nt).command(pt).command(It).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`,body:`json`};function Ht(e){return e.usage(`$0 addressing regional-hostnames create
91
91
 
92
- Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).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 Ut={command:`create`,describe:`Create Regional Hostname`,builder:Ht,handler:async e=>u({command:`addressing regional_hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional_hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}):d(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=d(e.body),i=await l(`Creating`,async()=>t.send(Z,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await g(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}),o=await l(`Creating`,async()=>t.send(Z,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Wt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Gt(e){return e.usage(`$0 addressing regional_hostnames delete <hostname>
92
+ Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).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 Ut={command:`create`,describe:`Create Regional Hostname`,builder:Ht,handler:async e=>u({command:`addressing regional-hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}):d(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=d(e.body),i=await l(`Creating`,async()=>t.send(Z,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await g(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}),o=await l(`Creating`,async()=>t.send(Z,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Wt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Gt(e){return e.usage(`$0 addressing regional-hostnames delete <hostname>
93
93
 
94
- Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",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 Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional_hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional_hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
95
- `);return}let i=await l(`Deleting`,async()=>t.send(Wt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional_hostnames edit <hostname>
94
+ Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",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 Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
95
+ `);return}let i=await l(`Deleting`,async()=>t.send(Wt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional-hostnames edit <hostname>
96
96
 
97
- Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).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 Jt={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:qt,handler:async e=>u({command:`addressing regional_hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional_hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?p({region_key:m(e[`region-key`],`region-key`,`text`)}):d(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=d(e.body),i=await l(`Updating`,async()=>t.send(Q,{body:r,zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({region_key:m(e[`region-key`],`region-key`,`text`)}),o=await l(`Updating`,async()=>t.send(Q,{body:i,zone_id:n,hostname:e.hostname}));s(o,{successLabel:`Updated`})})};var Yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Xt(e){return e.usage(`$0 addressing regional_hostnames get <hostname>
97
+ Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).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 Jt={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:qt,handler:async e=>u({command:`addressing regional-hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?p({region_key:m(e[`region-key`],`region-key`,`text`)}):d(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=d(e.body),i=await l(`Updating`,async()=>t.send(Q,{body:r,zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({region_key:m(e[`region-key`],`region-key`,`text`)}),o=await l(`Updating`,async()=>t.send(Q,{body:i,zone_id:n,hostname:e.hostname}));s(o,{successLabel:`Updated`})})};var Yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Xt(e){return e.usage(`$0 addressing regional-hostnames get <hostname>
98
98
 
99
- Fetch the configuration for a specific Regional Hostname, within a zone.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Xt,handler:async e=>u({command:`addressing regional_hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional_hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Yt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`};function $t(e){return e.usage(`$0 addressing regional_hostnames list
99
+ Fetch the configuration for a specific Regional Hostname, within a zone.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Xt,handler:async e=>u({command:`addressing regional-hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Yt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`};function $t(e){return e.usage(`$0 addressing regional-hostnames list
100
100
 
101
- List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Regional Hostnames`,builder:$t,handler:async e=>u({command:`addressing regional_hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional_hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Qt,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var en={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/regional_hostnames/regions`};function tn(e){return e.usage(`$0 addressing regional_hostnames regions list
101
+ List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Regional Hostnames`,builder:$t,handler:async e=>u({command:`addressing regional-hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Qt,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var en={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/regional_hostnames/regions`};function tn(e){return e.usage(`$0 addressing regional-hostnames regions list
102
102
 
103
- List all Regional Services regions available for use by this account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nn={command:`list`,describe:`List Regions`,builder:tn,handler:async e=>u({command:`addressing regional_hostnames regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing regional_hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(en,{account_id:a}));s(u,{successLabel:`Loaded`})})},rn={command:`regions`,describe:`Operations for regional_hostnames.regions`,builder:e=>e.command(nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},an={command:`regional_hostnames`,describe:`Operations for regional_hostnames`,builder:e=>e.command(Ut).command(Kt).command(Jt).command(Zt).command($).command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/services`};function sn(e){return e.usage(`$0 addressing services list
103
+ List all Regional Services regions available for use by this account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nn={command:`list`,describe:`List Regions`,builder:tn,handler:async e=>u({command:`addressing regional-hostnames regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing regional-hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(en,{account_id:a}));s(u,{successLabel:`Loaded`})})},rn={command:`regions`,describe:`Operations for regional-hostnames.regions`,builder:e=>e.command(nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},an={command:`regional-hostnames`,describe:`Operations for regional-hostnames`,builder:e=>e.command(Ut).command(Kt).command(Jt).command(Zt).command($).command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/services`};function sn(e){return e.usage(`$0 addressing services list
104
104
 
105
105
  Bring-Your-Own IP (BYOIP) prefixes onboarded to Cloudflare must be bound to a service running on the Cloudflare network to enable a Cloudflare product on the IP addresses. This endpoint can be used as a reference of available services on the Cloudflare network, and their service IDs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cn={command:`list`,describe:`List Services`,builder:sn,handler:async e=>u({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(on,{account_id:a}));s(u,{successLabel:`Loaded`})})},ln={command:`services`,describe:`Operations for services`,builder:e=>e.command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},un={command:`addressing`,describe:`addressing`,builder:e=>e.command(we).command(Oe).command(Ie).command(Vt).command(an).command(ln).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{un 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-Dil4fTWX.mjs";import{n}from"./auth-C6u9qIGO.mjs";import{a as r,t as i}from"./context-A6T-NKPI.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-D5po7ScB.mjs";import{t as c}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-BAJpE3jV.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-Dil4fTWX.mjs";import{n}from"./auth-MNz2D-PD.mjs";import{a as r,t as i}from"./context-q-6bMSL-.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-DaQ4MzBI.mjs";import{t as c}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as l,r as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-KWYZvJWM.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`)}):l(e.body)});return}let c=await n(e),u=e.local?t:await i();if(e.accountId=u,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:u}));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:u}));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-Dil4fTWX.mjs";import{a as i,i as a,n as o}from"./auth-C6u9qIGO.mjs";import{a as s,t as c}from"./context-A6T-NKPI.mjs";import{t as l}from"./output-Co4xdFf6.mjs";import{t as u}from"./dry-run-C2KjGX10.mjs";import{t as d}from"./progress-D5po7ScB.mjs";import{n as f,t as p}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as m,t as h}from"./body-parser-DkHKPkJ7.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{a as v,i as ee,n as te}from"./prompt-BAJpE3jV.mjs";import{n as ne}from"./raw-fetch-yY-wX5Xx.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-CShtn7ya.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-Dil4fTWX.mjs";import{a as i,i as a,n as o}from"./auth-MNz2D-PD.mjs";import{a as s,t as c}from"./context-q-6bMSL-.mjs";import{t as l}from"./output-Co4xdFf6.mjs";import{t as u}from"./dry-run-C2KjGX10.mjs";import{t as d}from"./progress-DaQ4MzBI.mjs";import{n as f,t as p}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as m,t as h}from"./body-parser-DkHKPkJ7.mjs";import{n as g,t as _}from"./input-validation-D7z60HJH.mjs";import{a as v,i as ee,n as te}from"./prompt-KWYZvJWM.mjs";import{n as ne}from"./raw-fetch-Cy09TjHc.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-b096XMpt.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-C6u9qIGO.mjs";import{i as r}from"./context-A6T-NKPI.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-D5po7ScB.mjs";import{t as s}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{n as c}from"./body-parser-DkHKPkJ7.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-MNz2D-PD.mjs";import{i as r}from"./context-q-6bMSL-.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-DaQ4MzBI.mjs";import{t as s}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{n as c}from"./body-parser-DkHKPkJ7.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`});return}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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-C6u9qIGO.mjs";import{a as i,t as a}from"./context-A6T-NKPI.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-D5po7ScB.mjs";import{t as l}from"./run-DASYqJsY.mjs";import"./telemetry-BhKfwxyh.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-BAJpE3jV.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function v(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-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-MNz2D-PD.mjs";import{a as i,t as a}from"./context-q-6bMSL-.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-DaQ4MzBI.mjs";import{t as l}from"./run-Clc3P2u7.mjs";import"./telemetry-Bdv5LZZs.mjs";import{i as u,n as d,r as f,t as p}from"./body-parser-DkHKPkJ7.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,n as g}from"./prompt-KWYZvJWM.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains`,body:`json`,errors:{400:`BadRequestError`}};function v(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=>m(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 y={command:`create <gateway-id>`,describe:`Create a custom domain for a gateway`,builder:v,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?p({domain:m(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:m(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(_,{body:t,account_id:l,gateway_id:e[`gateway-id`]}));o(r,{successLabel:`Created`});return}e.domain===void 0&&(e.domain=await h(`domain`,"Custom hostname that you own, such as `ai.example.com`.")),e[`zone-id`]===void 0&&(e[`zone-id`]=await h(`zone-id`,`ID of the Cloudflare zone that contains the custom hostname.`));let u=p({domain:m(e.domain,`domain`,`text`),minTLS:e[`min-tls`],zone_id:m(e[`zone-id`],`zone-id`,`text`)}),f=await c(`Creating`,async()=>n.send(_,{body:u,account_id:l,gateway_id:e[`gateway-id`]}));o(f,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/custom-domains/${t.hostname}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 ai-gateway custom-domains delete <hostname>
5
5
 
@@ -69,12 +69,12 @@ Updates the configuration of an AI Gateway, such as its caching, rate limiting,
69
69
  Deletes gateway log entries matching the specified criteria.`).positional(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`order-by`,{type:`string`,description:`Order by`,choices:[`created_at`,`provider`,`model`,`model_type`,`success`,`cached`,`cost`,`tokens_in`,`tokens_out`,`duration`,`feedback`]}).option(`order-by-direction`,{type:`string`,description:`Order by direction`,choices:[`asc`,`desc`]}).option(`filters`,{type:`string`,description:`Filters`}).option(`limit`,{type:`number`,description:`Limit`}).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 ot={command:`delete <gateway-id>`,describe:`Delete Gateway Logs`,builder:at,handler:async e=>l({command:`ai-gateway logs delete`,classification:{safeFlags:[`order-by`,`order-by-direction`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{let n={order_by:e[`order-by`],order_by_direction:e[`order-by-direction`],filters:e.filters,limit:e.limit};if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs delete`,method:`DELETE`,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`]))}/logs`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();if(e.accountId=u,!await g({force:!!e.force,message:`This permanently deletes every stored log entry on the gateway that matches the filters. Deleted logs cannot be recovered.`})){process.stderr.write(`Aborted.
70
70
  `);return}let d=await c(`Deleting`,async()=>l.send(it,{account_id:u,gateway_id:e[`gateway-id`],...n}));o(d,{successLabel:`Deleted`})})};var st={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}/request`,errors:{404:`NotFoundError`}};function ct(e){return e.usage(`$0 ai-gateway logs get-request <id>
71
71
 
72
- Retrieves the original request payload for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`get-request <id>`,describe:`Get Gateway Log Request`,builder:ct,handler:async e=>l({command:`ai-gateway logs get-request`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get-request`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/request`,pathParams:{id:String(e.id??``),"gateway-id":String(e[`gateway-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(st,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}/response`,errors:{404:`NotFoundError`}};function dt(e){return e.usage(`$0 ai-gateway logs get-response <id>
72
+ Retrieves the original request payload for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const lt={command:`get-request <id>`,describe:`Get Gateway Log Request`,builder:ct,handler:async e=>l({command:`ai-gateway logs get-request`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get-request`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/request`,pathParams:{"gateway-id":String(e[`gateway-id`]??``),id:String(e.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(st,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}/response`,errors:{404:`NotFoundError`}};function dt(e){return e.usage(`$0 ai-gateway logs get-response <id>
73
73
 
74
- Retrieves the response payload for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`get-response <id>`,describe:`Get Gateway Log Response`,builder:dt,handler:async e=>l({command:`ai-gateway logs get-response`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get-response`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/response`,pathParams:{id:String(e.id??``),"gateway-id":String(e[`gateway-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(ut,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var pt={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}`,errors:{404:`NotFoundError`}};function Q(e){return e.usage(`$0 ai-gateway logs get <id>
74
+ Retrieves the response payload for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`get-response <id>`,describe:`Get Gateway Log Response`,builder:dt,handler:async e=>l({command:`ai-gateway logs get-response`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get-response`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/response`,pathParams:{"gateway-id":String(e[`gateway-id`]??``),id:String(e.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(ut,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var pt={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}`,errors:{404:`NotFoundError`}};function Q(e){return e.usage(`$0 ai-gateway logs get <id>
75
75
 
76
- Retrieves detailed information for a specific AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mt={command:`get <id>`,describe:`Get Gateway Log Detail`,builder:Q,handler:async e=>l({command:`ai-gateway logs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``),"gateway-id":String(e[`gateway-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(pt,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs`,query:/* @__PURE__ */ `search.page.per_page.order_by.order_by_direction.filters.meta_info.direction.start_date.end_date.min_cost.max_cost.min_tokens_in.max_tokens_in.min_tokens_out.max_tokens_out.min_total_tokens.max_total_tokens.min_duration.max_duration.feedback.success.cached.model.model_type.provider.request_content_type.response_content_type`.split(`.`),errors:{400:`BadRequestError`}};function gt(e){return e.usage(`$0 ai-gateway logs list
76
+ Retrieves detailed information for a specific AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const mt={command:`get <id>`,describe:`Get Gateway Log Detail`,builder:Q,handler:async e=>l({command:`ai-gateway logs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs get`,method:`GET`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{"gateway-id":String(e[`gateway-id`]??``),id:String(e.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(pt,{account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(u,{successLabel:`Loaded`})})};var ht={method:`GET`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs`,query:/* @__PURE__ */ `search.page.per_page.order_by.order_by_direction.filters.meta_info.direction.start_date.end_date.min_cost.max_cost.min_tokens_in.max_tokens_in.min_tokens_out.max_tokens_out.min_total_tokens.max_total_tokens.min_duration.max_duration.feedback.success.cached.model.model_type.provider.request_content_type.response_content_type`.split(`.`),errors:{400:`BadRequestError`}};function gt(e){return e.usage(`$0 ai-gateway logs list
77
77
 
78
- Lists request/response log entries for the AI gateway with filtering and pagination.`).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`search`,{type:`string`,description:`Free-text search over log metadata.`}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`order-by`,{type:`string`,description:`Order by`,choices:[`created_at`,`provider`,`model`,`model_type`,`success`,`cached`]}).option(`order-by-direction`,{type:`string`,description:`Order by direction`,choices:[`asc`,`desc`]}).option(`filters`,{type:`string`,description:`Filters`}).option(`meta-info`,{type:`boolean`,description:`Meta info`}).option(`direction`,{type:`string`,description:`Direction`,choices:[`asc`,`desc`]}).option(`start-date`,{type:`string`,description:`Start date`}).option(`end-date`,{type:`string`,description:`End date`}).option(`min-cost`,{type:`number`,description:`Min cost`}).option(`max-cost`,{type:`number`,description:`Max cost`}).option(`min-tokens-in`,{type:`number`,description:`Min tokens in`}).option(`max-tokens-in`,{type:`number`,description:`Max tokens in`}).option(`min-tokens-out`,{type:`number`,description:`Min tokens out`}).option(`max-tokens-out`,{type:`number`,description:`Max tokens out`}).option(`min-total-tokens`,{type:`number`,description:`Min total tokens`}).option(`max-total-tokens`,{type:`number`,description:`Max total tokens`}).option(`min-duration`,{type:`number`,description:`Min duration`}).option(`max-duration`,{type:`number`,description:`Max duration`}).option(`feedback`,{type:`string`,description:`Feedback`,choices:[`-1`]}).option(`success`,{type:`boolean`,description:`Success`}).option(`cached`,{type:`boolean`,description:`Cached`}).option(`model`,{type:`string`,description:`Model filter.`}).option(`model-type`,{type:`string`,description:`Model type`}).option(`ai-gateway-provider`,{type:`string`,description:`Provider`}).option(`request-content-type`,{type:`string`,description:`Request content type`}).option(`response-content-type`,{type:`string`,description:`Response content type`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List Gateway Logs`,builder:gt,handler:async e=>l({command:`ai-gateway logs list`,classification:{safeFlags:[`order-by`,`order-by-direction`,`meta-info`,`direction`,`feedback`,`success`,`cached`,`dry-run`]}},e,async()=>{let n={search:e.search,page:e.page,per_page:e[`per-page`],order_by:e[`order-by`],order_by_direction:e[`order-by-direction`],filters:e.filters,meta_info:e[`meta-info`],direction:e.direction,start_date:e[`start-date`],end_date:e[`end-date`],min_cost:e[`min-cost`],max_cost:e[`max-cost`],min_tokens_in:e[`min-tokens-in`],max_tokens_in:e[`max-tokens-in`],min_tokens_out:e[`min-tokens-out`],max_tokens_out:e[`max-tokens-out`],min_total_tokens:e[`min-total-tokens`],max_total_tokens:e[`max-total-tokens`],min_duration:e[`min-duration`],max_duration:e[`max-duration`],feedback:e.feedback,success:e.success,cached:e.cached,model:e.model,model_type:e[`model-type`],provider:e[`ai-gateway-provider`],request_content_type:e[`request-content-type`],response_content_type:e[`response-content-type`]};if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs list`,method:`GET`,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`]))}/logs`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(ht,{account_id:u,gateway_id:e[`gateway-id`],...n}));o(d,{successLabel:`Loaded`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}`,body:`json`,errors:{404:`NotFoundError`}};function vt(e){return e.usage(`$0 ai-gateway logs update <id>
78
+ Lists request/response log entries for the AI gateway with filtering and pagination.`).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`search`,{type:`string`,description:`Free-text search over log metadata.`}).option(`page`,{type:`number`,description:`Page`}).option(`per-page`,{type:`number`,description:`Per page`}).option(`order-by`,{type:`string`,description:`Order by`,choices:[`created_at`,`provider`,`model`,`model_type`,`success`,`cached`]}).option(`order-by-direction`,{type:`string`,description:`Order by direction`,choices:[`asc`,`desc`]}).option(`filters`,{type:`string`,description:`Filters`}).option(`meta-info`,{type:`boolean`,description:`Meta info`}).option(`direction`,{type:`string`,description:`Direction`,choices:[`asc`,`desc`]}).option(`start-date`,{type:`string`,description:`Start date`}).option(`end-date`,{type:`string`,description:`End date`}).option(`min-cost`,{type:`number`,description:`Min cost`}).option(`max-cost`,{type:`number`,description:`Max cost`}).option(`min-tokens-in`,{type:`number`,description:`Min tokens in`}).option(`max-tokens-in`,{type:`number`,description:`Max tokens in`}).option(`min-tokens-out`,{type:`number`,description:`Min tokens out`}).option(`max-tokens-out`,{type:`number`,description:`Max tokens out`}).option(`min-total-tokens`,{type:`number`,description:`Min total tokens`}).option(`max-total-tokens`,{type:`number`,description:`Max total tokens`}).option(`min-duration`,{type:`number`,description:`Min duration`}).option(`max-duration`,{type:`number`,description:`Max duration`}).option(`feedback`,{type:`string`,description:`Feedback`,choices:[`-1`,`0`,`1`]}).option(`success`,{type:`boolean`,description:`Success`}).option(`cached`,{type:`boolean`,description:`Cached`}).option(`model`,{type:`string`,description:`Model filter.`}).option(`model-type`,{type:`string`,description:`Model type`}).option(`ai-gateway-provider`,{type:`string`,description:`Provider`}).option(`request-content-type`,{type:`string`,description:`Request content type`}).option(`response-content-type`,{type:`string`,description:`Response content type`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const _t={command:`list`,describe:`List Gateway Logs`,builder:gt,handler:async e=>l({command:`ai-gateway logs list`,classification:{safeFlags:[`order-by`,`order-by-direction`,`meta-info`,`direction`,`feedback`,`success`,`cached`,`dry-run`]}},e,async()=>{let n={search:e.search,page:e.page,per_page:e[`per-page`],order_by:e[`order-by`],order_by_direction:e[`order-by-direction`],filters:e.filters,meta_info:e[`meta-info`],direction:e.direction,start_date:e[`start-date`],end_date:e[`end-date`],min_cost:e[`min-cost`],max_cost:e[`max-cost`],min_tokens_in:e[`min-tokens-in`],max_tokens_in:e[`max-tokens-in`],min_tokens_out:e[`min-tokens-out`],max_tokens_out:e[`max-tokens-out`],min_total_tokens:e[`min-total-tokens`],max_total_tokens:e[`max-total-tokens`],min_duration:e[`min-duration`],max_duration:e[`max-duration`],feedback:e.feedback,success:e.success,cached:e.cached,model:e.model,model_type:e[`model-type`],provider:e[`ai-gateway-provider`],request_content_type:e[`request-content-type`],response_content_type:e[`response-content-type`]};if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs list`,method:`GET`,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`]))}/logs`,pathParams:{"gateway-id":String(e[`gateway-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(ht,{account_id:u,gateway_id:e[`gateway-id`],...n}));o(d,{successLabel:`Loaded`})})};var $={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/ai-gateway/gateways/${t.gateway_id}/logs/${t.id}`,body:`json`,errors:{404:`NotFoundError`}};function vt(e){return e.usage(`$0 ai-gateway logs update <id>
79
79
 
80
- Updates metadata for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`feedback`,{type:`number`,description:`The feedback field`}).option(`score`,{type:`number`,description:`The score 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 yt={command:`update <id>`,describe:`Patch Gateway Log`,builder:vt,handler:async e=>l({command:`ai-gateway logs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs update`,method:`PATCH`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``),"gateway-id":String(e[`gateway-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({feedback:e.feedback,score:e.score}):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(`Updating`,async()=>n.send($,{body:t,account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(r,{successLabel:`Updated`});return}let u=p({feedback:e.feedback,score:e.score}),f=await c(`Updating`,async()=>n.send($,{body:u,account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(f,{successLabel:`Updated`})})},bt={command:`logs`,describe:`Inspect, annotate, and delete gateway request logs stored by Legacy Logs`,builder:e=>e.command(ot).command(mt).command(lt).command(ft).command(_t).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xt={command:`ai-gateway`,describe:`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,builder:e=>e.command(se).command(L).command(ke).command(rt).command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{xt as default};
80
+ Updates metadata for an AI Gateway log entry.`).positional(`id`,{type:`string`,description:`ID`,demandOption:!0}).option(`gateway-id`,{type:`string`,description:`Unique identifier of the AI Gateway within the account.`,demandOption:!0}).option(`feedback`,{type:`number`,description:`The feedback field`}).option(`score`,{type:`number`,description:`The score 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 yt={command:`update <id>`,describe:`Patch Gateway Log`,builder:vt,handler:async e=>l({command:`ai-gateway logs update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf ai-gateway logs update`,method:`PATCH`,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`]))}/logs/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{"gateway-id":String(e[`gateway-id`]??``),id:String(e.id??``)},bodyKind:`json`,body:e.body===void 0?p({feedback:e.feedback,score:e.score}):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(`Updating`,async()=>n.send($,{body:t,account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(r,{successLabel:`Updated`});return}let u=p({feedback:e.feedback,score:e.score}),f=await c(`Updating`,async()=>n.send($,{body:u,account_id:l,gateway_id:e[`gateway-id`],id:e.id}));o(f,{successLabel:`Updated`})})},bt={command:`logs`,describe:`Inspect, annotate, and delete gateway request logs stored by Legacy Logs`,builder:e=>e.command(ot).command(mt).command(lt).command(ft).command(_t).command(yt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},xt={command:`ai-gateway`,describe:`Proxy, cache, rate-limit, and observe requests to AI providers — OpenAI, Anthropic, Workers AI, and more`,builder:e=>e.command(se).command(L).command(ke).command(rt).command(bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{xt as default};