cf 1.0.0-beta.28 → 1.0.0-beta.29

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 (328) hide show
  1. package/README.md +10 -3
  2. package/dist/_meta/commands.json +2240 -3181
  3. package/dist/_meta/hand-written-commands.json +38 -8
  4. package/dist/_meta/schemas.json +1683 -2505
  5. package/dist/{abuse-reports-D9edOyag.mjs → abuse-reports-DqXYX_6F.mjs} +10 -10
  6. package/dist/{access-CKCCSrrU.mjs → access-Cte4yyIz.mjs} +1 -1
  7. package/dist/{accounts-CNb9U9bK.mjs → accounts-G-x-_cEx.mjs} +58 -57
  8. package/dist/{acm-CdKTAToZ.mjs → acm-Bg3HqMGG.mjs} +7 -7
  9. package/dist/{addressing-eZI_C-b0.mjs → addressing-BwEofGEm.mjs} +46 -46
  10. package/dist/{agent-memory-BBHCEE7h.mjs → agent-memory-DhwZ2KRw.mjs} +15 -15
  11. package/dist/{ai-Csl_QNwv.mjs → ai-DWWRIQIt.mjs} +16 -16
  12. package/dist/{ai-audit-DlqWsQi-.mjs → ai-audit-CMEBz6ZP.mjs} +3 -3
  13. package/dist/ai-gateway-D2s0isU-.mjs +76 -0
  14. package/dist/ai-search-a0uqr9yJ.mjs +74 -0
  15. package/dist/{ai-security-DvU2iYkY.mjs → ai-security-H_RqjRoL.mjs} +4 -4
  16. package/dist/alerting-Bgp9rE4I.mjs +52 -0
  17. package/dist/analytics-CFYM82FD.mjs +17 -0
  18. package/dist/{analytics-engine-BlIecoOe.mjs → analytics-engine-BLiEaLxb.mjs} +2 -2
  19. package/dist/{api-security-DZ7GWOqD.mjs → api-security-B0YtHglt.mjs} +63 -63
  20. package/dist/{argo-Bh0_cj49.mjs → argo-BPwbzHY7.mjs} +7 -7
  21. package/dist/{artifacts-VZJWVq_6.mjs → artifacts-B6UwC2PH.mjs} +20 -20
  22. package/dist/{audit-logs-B8cGL4B9.mjs → audit-logs-kG97iEnI.mjs} +2 -2
  23. package/dist/auth-Czr8ChBB.mjs +2 -0
  24. package/dist/auth-DA1PHaHi.mjs +2 -0
  25. package/dist/auth-Dwfa4S3h.mjs +7 -0
  26. package/dist/{auth-token-DW4dJVdj.mjs → auth-token-CE3Wa5-b.mjs} +1 -1
  27. package/dist/{autoconfig-C0ynlGHf.mjs → autoconfig-B4tFR6ua.mjs} +120 -116
  28. package/dist/{basin-catalog-TehR1sKZ.mjs → basin-catalog-DzVEPupy.mjs} +17 -17
  29. package/dist/{billing-B2KusU6g.mjs → billing-TERxOuLR.mjs} +11 -11
  30. package/dist/{blocks-BFulF68V.mjs → blocks-C3Im7AT0.mjs} +1 -1
  31. package/dist/body-parser-HN91kAf0.mjs +2 -0
  32. package/dist/{body-unions-DNs981Ia.mjs → body-unions-D9OSaf4M.mjs} +1 -1
  33. package/dist/{bot-management-CXHXgrQC.mjs → bot-management-SZw9jTOC.mjs} +4 -4
  34. package/dist/{botnet-feed-UyK7Rfp6.mjs → botnet-feed-DjdAeUtb.mjs} +5 -5
  35. package/dist/brand-protection-BpA7Gmf1.mjs +18 -0
  36. package/dist/browser-run-BvjfMK3f.mjs +40 -0
  37. package/dist/build-CCwo_ydV.mjs +2 -0
  38. package/dist/{build-FFxzigo4.mjs → build-yQOzZg6Z.mjs} +1 -1
  39. package/dist/builds-tMa3sbQU.mjs +62 -0
  40. package/dist/{cache-BacNNtLu.mjs → cache-b_EPh6Is.mjs} +18 -18
  41. package/dist/cf-DmvZ2L51.mjs +18 -0
  42. package/dist/{chunk-DSGVRFIS-BaNZNW-M.mjs → chunk-DSGVRFIS-Cj7pO-YQ.mjs} +1 -1
  43. package/dist/chunk-Q5KVZMHK-WOCEMyET.mjs +363 -0
  44. package/dist/cli-Cc7ujzAy.mjs +4 -0
  45. package/dist/{client-side-security-bzB9JosR.mjs → client-side-security-DVkeCzcC.mjs} +14 -14
  46. package/dist/{cloud-connector-BHtf37R5.mjs → cloud-connector-MVf4acRR.mjs} +3 -3
  47. package/dist/{cloudflared-QDdHMUEY.mjs → cloudflared-BOkMl8Gm.mjs} +1 -1
  48. package/dist/cloudforce-one-KrCfQbRx.mjs +318 -0
  49. package/dist/{command-D895kdlh.mjs → command-BQbZw4Kx.mjs} +1 -1
  50. package/dist/command-BVct0Dvr.mjs +2 -0
  51. package/dist/{command-DeutqL1n.mjs → command-C4_lMRkw.mjs} +1 -1
  52. package/dist/command-CJ3ldWrA.mjs +2 -0
  53. package/dist/command-CyOdBNur.mjs +2 -0
  54. package/dist/command-D2XkyO1e.mjs +2 -0
  55. package/dist/command-DHODgfFZ.mjs +2 -0
  56. package/dist/command-DIIaZx_f.mjs +2 -0
  57. package/dist/command-DONwHpqZ.mjs +2 -0
  58. package/dist/command-DdYnSf-8.mjs +2 -0
  59. package/dist/command-DqOU7Ql2.mjs +2 -0
  60. package/dist/{command-CbxXc5IW.mjs → command-HW7k43qu.mjs} +1 -1
  61. package/dist/command-NqM0lo4a.mjs +2 -0
  62. package/dist/command-bwVDyMv4.mjs +2 -0
  63. package/dist/command-yzqs4m83.mjs +2 -0
  64. package/dist/{completions-BvdKtzsX.mjs → completions-0YKvIyBT.mjs} +2 -2
  65. package/dist/{connector-interrupts-dUPW6Ya_.mjs → connector-interrupts-CsunbRsr.mjs} +3 -3
  66. package/dist/{connector-telemetry-events-DWVCqnhn.mjs → connector-telemetry-events-DmQPD7xC.mjs} +3 -3
  67. package/dist/{connector-telemetry-snapshots-CeMP3qeI.mjs → connector-telemetry-snapshots-C62iHjC9.mjs} +3 -3
  68. package/dist/{connectors-DZFGNw3i.mjs → connectors-Bg0MU6ZT.mjs} +7 -7
  69. package/dist/{containers-DCzQCo79.mjs → containers-BiA_bpPR.mjs} +22 -21
  70. package/dist/{content-scan-XhnNJqXf.mjs → content-scan-4SA2nacB.mjs} +6 -6
  71. package/dist/{context-BY1Eh_Qe.mjs → context-BGm5_wTT.mjs} +1 -1
  72. package/dist/{cps-CohlxvuN.mjs → cps-WDmD3V5I.mjs} +3 -3
  73. package/dist/csam-scanner-Rmy-hBEA.mjs +8 -0
  74. package/dist/{custom-csrs-BVdMQjYq.mjs → custom-csrs-D-lvkyRV.mjs} +5 -5
  75. package/dist/{custom-hostnames-r-CxhSa1.mjs → custom-hostnames-B5BQX5m6.mjs} +12 -12
  76. package/dist/{custom-nameservers-CapMDyly.mjs → custom-nameservers-CZrRjcjx.mjs} +4 -4
  77. package/dist/{custom-pages-BVIniWfq.mjs → custom-pages-CWwjtfbj.mjs} +10 -10
  78. package/dist/d1-N81q-FAr.mjs +50 -0
  79. package/dist/{delegate-CcL6RoGw.mjs → delegate-livNdiwK.mjs} +1 -1
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/deploy-Ok4ncy06.mjs +2 -0
  82. package/dist/deploy-context-B_lLfxt7.mjs +55 -0
  83. package/dist/deploy-input-JZlEJwKB.mjs +2 -0
  84. package/dist/dev-DxbkJkzc.mjs +4 -0
  85. package/dist/{diagnostics-C3nqxsAO.mjs → diagnostics-DlJzpO8b.mjs} +7 -7
  86. package/dist/dialog-CD94-Kzw.mjs +2 -0
  87. package/dist/discover-D9FNaCDK.mjs +2 -0
  88. package/dist/discover-DGsMj9ZN.mjs +2 -0
  89. package/dist/{dist-D-ihn_mV.mjs → dist-BxhwE-W1.mjs} +193 -193
  90. package/dist/{dls-N1x8sAK3.mjs → dls-5OXuxLAB.mjs} +8 -8
  91. package/dist/{dns-DATWP-PF.mjs → dns-Burep9O7.mjs} +59 -69
  92. package/dist/{dns-firewall-n3Y2ui6W.mjs → dns-firewall-hUHaQ0DE.mjs} +8 -8
  93. package/dist/docs-BFVK88kB.mjs +3 -0
  94. package/dist/{dry-run-kJbjn4kG.mjs → dry-run-qsnRlRk6.mjs} +1 -1
  95. package/dist/{durable-objects-DHK9w-vO.mjs → durable-objects-D6R8S2Dk.mjs} +3 -3
  96. package/dist/email-auth--2KCzZNA.mjs +6 -0
  97. package/dist/email-routing-DzaExfVf.mjs +44 -0
  98. package/dist/{email-security-DK_SJ0yi.mjs → email-security-DwQJszzy.mjs} +71 -71
  99. package/dist/{email-sending-CTQafGec.mjs → email-sending-mQd2qB-o.mjs} +21 -21
  100. package/dist/errors-C_bGcR0X.mjs +11 -0
  101. package/dist/field-extractors-MVOizTlB.mjs +8 -0
  102. package/dist/{firewall-CW-fAI9m.mjs → firewall-DtSIlkfL.mjs} +19 -19
  103. package/dist/{flagship-RiLnDwfJ.mjs → flagship-9E5gwNki.mjs} +12 -12
  104. package/dist/{fraud-DvfBBTe8.mjs → fraud-DjqhVJdf.mjs} +3 -3
  105. package/dist/generate-BzOnRBij.mjs +2 -0
  106. package/dist/generate-DfxZtpn9.mjs +2 -0
  107. package/dist/{global-options-DiKj2cQy.mjs → global-options-4pyD17hd.mjs} +1 -1
  108. package/dist/{google-tag-gateway-C5WYsSXv.mjs → google-tag-gateway-BM5GmCZa.mjs} +3 -3
  109. package/dist/gt-BV-jij5q.mjs +4 -0
  110. package/dist/healthchecks-CEZ5f3XJ.mjs +20 -0
  111. package/dist/{hyperdrive-Ch6klUp3.mjs → hyperdrive-Da8hCcUw.mjs} +12 -12
  112. package/dist/{iam-LlGEzRCq.mjs → iam-BK6N7NdQ.mjs} +31 -31
  113. package/dist/{images-C5WqUXkK.mjs → images-3bCWE6Ml.mjs} +33 -33
  114. package/dist/index.mjs +1 -1
  115. package/dist/init-BgCF9K8h.mjs +43 -0
  116. package/dist/{intel-vcWyslaX.mjs → intel-BQ58CJLt.mjs} +30 -30
  117. package/dist/{interactive-BCDFSPtq.mjs → interactive-JBA3qOUa.mjs} +9 -9
  118. package/dist/{internal-BhV9WjLp.mjs → internal-CWPz0sBF.mjs} +2 -2
  119. package/dist/{ips-CqHjVsqd.mjs → ips-3WYegiVW.mjs} +2 -2
  120. package/dist/{k2-CZT2Pd5J.mjs → k2-Bc_hjmiv.mjs} +5 -5
  121. package/dist/{kv-Ipa7dnvF.mjs → kv-DbShBhhg.mjs} +6 -6
  122. package/dist/{lazy-command-DbKVgdGT.mjs → lazy-command-CbGyEqFK.mjs} +1 -1
  123. package/dist/leaked-credential-checks-DgPefxP9.mjs +16 -0
  124. package/dist/{live-C9L1bNuE.mjs → live-BTtMv1a6.mjs} +2 -2
  125. package/dist/load-balancers-C2hg52WA.mjs +84 -0
  126. package/dist/{local-DIJ7SIKC.mjs → local-B3zt9PXR.mjs} +1 -1
  127. package/dist/local-DRxctCh9.mjs +2 -0
  128. package/dist/local-runtime-BOnDiMDc.mjs +2 -0
  129. package/dist/{log-BWdaOGOW.mjs → log-Brx-wjJW.mjs} +3 -3
  130. package/dist/log-DBAHla_W.mjs +2 -0
  131. package/dist/login-CK3nn9a5.mjs +2 -0
  132. package/dist/{login-DG5ebyab.mjs → login-DiR-buzS.mjs} +3 -3
  133. package/dist/{logpush-C5Gw7F_9.mjs → logpush-CitvUX-J.mjs} +22 -22
  134. package/dist/{logs-y3REfHbb.mjs → logs-CfWHu4Ir.mjs} +14 -16
  135. package/dist/{magic-network-monitoring-BZBGZB6M.mjs → magic-network-monitoring-gU6yzzML.mjs} +17 -17
  136. package/dist/{magic-transit-BPV_POf5.mjs → magic-transit-B3JY9u5o.mjs} +139 -139
  137. package/dist/{managed-defense-BaUBSUcz.mjs → managed-defense-C_EQ-NYp.mjs} +9 -9
  138. package/dist/managed-transforms-DIGl6JkM.mjs +8 -0
  139. package/dist/{mcp-RPtrISTy.mjs → mcp-DqhQJVaz.mjs} +15 -15
  140. package/dist/{mesh-DZ4QHBPE.mjs → mesh-DXVZBNDC.mjs} +12 -12
  141. package/dist/{migrate-CRIUqGi2.mjs → migrate-CmXyk9vX.mjs} +1 -1
  142. package/dist/{monetization-CVZqM8Xo.mjs → monetization-CWg-mySr.mjs} +9 -9
  143. package/dist/{network-interconnects-9nS5jL__.mjs → network-interconnects-DhfKL5tG.mjs} +17 -19
  144. package/dist/{network-DLt2JUo1.mjs → network-jtgq5eb4.mjs} +24 -24
  145. package/dist/o11y-eYYs59X9.mjs +88 -0
  146. package/dist/oauth-BgDZMd72.mjs +5 -0
  147. package/dist/{oauth-Cidoyxfp.mjs → oauth-V37G-PaV.mjs} +1 -1
  148. package/dist/{observability-C-KNh__y.mjs → observability-CB72eC4T.mjs} +2 -2
  149. package/dist/{ohttp-gateway-B5nCl4s3.mjs → ohttp-gateway-K9ToEft8.mjs} +4 -4
  150. package/dist/{organizations-DbeeWUL4.mjs → organizations-BllV7l_c.mjs} +18 -19
  151. package/dist/output-hFMAotFl.mjs +2 -0
  152. package/dist/package-oNVeacC9.mjs +2 -0
  153. package/dist/page-rules-BVmi-ZFW.mjs +35 -0
  154. package/dist/pages-5spcBpX1.mjs +48 -0
  155. package/dist/{pay-per-crawl-EHYtSKxX.mjs → pay-per-crawl-BgsdGcBi.mjs} +18 -18
  156. package/dist/{pay-per-use-wdEhl8k4.mjs → pay-per-use-CzmI1kEA.mjs} +16 -16
  157. package/dist/pipelines-CbtmLRxt.mjs +40 -0
  158. package/dist/{precursor-Dx8lN4UJ.mjs → precursor-Dk8YOKf_.mjs} +2 -2
  159. package/dist/previews-Bv1HMMtO.mjs +6 -0
  160. package/dist/progress-DE_G09u2.mjs +2 -0
  161. package/dist/project-settings-D_S-UC8I.mjs +3 -0
  162. package/dist/prompt-D274Im1O.mjs +4 -0
  163. package/dist/{queues-DgMc7Z6A.mjs → queues-DGCYUr4g.mjs} +26 -26
  164. package/dist/{r2-BpTVicIq.mjs → r2-DtCk-Nfi.mjs} +51 -51
  165. package/dist/{radar-DW-S1VUh.mjs → radar-1CwqOsMZ.mjs} +150 -150
  166. package/dist/raw-fetch-DhlyWQtk.mjs +2 -0
  167. package/dist/{ready-d0li0X6r.mjs → ready-CcoEA7M7.mjs} +2 -2
  168. package/dist/{realtime-DMKHLYF4.mjs → realtime-DFUxwIG5.mjs} +80 -81
  169. package/dist/registrar-Cl1snz8z.mjs +43 -0
  170. package/dist/{registrar-sandbox-lVLB1-mC.mjs → registrar-sandbox-Cne9BVCZ.mjs} +9 -9
  171. package/dist/{reporting-WX8P3Y0k.mjs → reporting-D9FC-Z-3.mjs} +7 -7
  172. package/dist/request-headers-Bopp5lH_.mjs +2 -0
  173. package/dist/request-tracers-CSSB9_aW.mjs +4 -0
  174. package/dist/{resource-sharing-B2ZSt_cA.mjs → resource-sharing-D8yuzJm7.mjs} +18 -18
  175. package/dist/{rules-CB0QQTB3.mjs → rules-DzmOQ3MB.mjs} +8 -8
  176. package/dist/rulesets-DsTGcgbc.mjs +42 -0
  177. package/dist/{rum-BZ_24qZU.mjs → rum-DrJLI93T.mjs} +14 -14
  178. package/dist/run-C5yPsiO2.mjs +2 -0
  179. package/dist/run-CXWkMU3x.mjs +2 -0
  180. package/dist/schema-CfZOW8Zw.mjs +2 -0
  181. package/dist/{schema-cache-5NkOj7Y3.mjs → schema-cache-CtqAs0PP.mjs} +1 -1
  182. package/dist/schema-flags-DO3kLYBu.mjs +4 -0
  183. package/dist/{scim-DchxaJfE.mjs → scim-0OufLKru.mjs} +8 -8
  184. package/dist/{secrets-store-oAft1cFE.mjs → secrets-store-BQeLzFxv.mjs} +11 -11
  185. package/dist/{security-insights-DMm0qg_m.mjs → security-insights-D2pj8-O-.mjs} +20 -20
  186. package/dist/{security-txt-CIt0494b.mjs → security-txt-SKtgW4n-.mjs} +4 -4
  187. package/dist/session-COdP8BXD.mjs +2 -0
  188. package/dist/shared-D_2KLpP3.mjs +2 -0
  189. package/dist/{signed-url-gNangfwc.mjs → signed-url-CcE2zQ4Y.mjs} +2 -2
  190. package/dist/smart-shield-Dod9Gs6T.mjs +22 -0
  191. package/dist/snippets-DrrdpLnS.mjs +18 -0
  192. package/dist/spawn-DNf-Ge8d.mjs +5 -0
  193. package/dist/{spectrum-DLYIHelC.mjs → spectrum-CHBGZbZF.mjs} +11 -11
  194. package/dist/{speed-DugG9Tm9.mjs → speed-vOlHyG3v.mjs} +11 -11
  195. package/dist/sql-BCuLxGSf.mjs +4 -0
  196. package/dist/src-ByCoEqOw.mjs +133 -0
  197. package/dist/{ssl-Bg4X3WGk.mjs → ssl-BA_dcVwF.mjs} +60 -62
  198. package/dist/startup-profile-CyQk_f_L.mjs +2 -0
  199. package/dist/{startup-profile-DZL2DC44.mjs → startup-profile-uh-F0HRS.mjs} +3 -3
  200. package/dist/state-B6r-b_-d.mjs +2 -0
  201. package/dist/{state-mr5ux1Nb.mjs → state-CTLznbVs.mjs} +1 -1
  202. package/dist/static-assets-DGDoaJf1.mjs +386 -0
  203. package/dist/stream-CzlqY8hq.mjs +89 -0
  204. package/dist/{tags-SKz2odE_.mjs → tags-BLeaslAb.mjs} +8 -8
  205. package/dist/telemetry-COlodX5Z.mjs +2 -0
  206. package/dist/{telemetry-B4zmCpT0.mjs → telemetry-DF7A5Bpk.mjs} +1 -1
  207. package/dist/{tenant-custom-nameservers-BhkhBerL.mjs → tenant-custom-nameservers-C5rh6jPf.mjs} +4 -4
  208. package/dist/{tenants-DD-GMq0K.mjs → tenants-CRirmhxS.mjs} +3 -3
  209. package/dist/{tools-KW_4hvzY.mjs → tools-BRjRgZnj.mjs} +1 -1
  210. package/dist/tunnels-nLfIWPYT.mjs +27 -0
  211. package/dist/{turnstile-DhSU_Xar.mjs → turnstile-CZjXtBCr.mjs} +10 -10
  212. package/dist/ui-dWsVmFCG.mjs +2 -0
  213. package/dist/{update-check-HltjTMDE.mjs → update-check-CXMdVBhW.mjs} +1 -1
  214. package/dist/{update-check-CRttabfu.mjs → update-check-D_Oky9-u.mjs} +1 -1
  215. package/dist/update-check-worker.mjs +1 -1
  216. package/dist/{url-normalization-K7gkmPvG.mjs → url-normalization-DTKgJHE8.mjs} +4 -4
  217. package/dist/url-scanner-9XW3zLaU.mjs +16 -0
  218. package/dist/user-Bk1BIqZ5.mjs +103 -0
  219. package/dist/{vectorize-BTBerJME.mjs → vectorize-CgOfmWYq.mjs} +15 -15
  220. package/dist/version-CcuBNjqg.mjs +2 -0
  221. package/dist/waiting-rooms-C3nTKfK9.mjs +52 -0
  222. package/dist/{web-assets-LHPQsrnY.mjs → web-assets-CWU3jrit.mjs} +29 -29
  223. package/dist/{web3-BsOio0Ae.mjs → web3-CRpQ5sl4.mjs} +13 -13
  224. package/dist/workers-BZMvamn0.mjs +39 -0
  225. package/dist/{workers-for-platforms-BGp6yr6P.mjs → workers-for-platforms-C7F2ev-5.mjs} +18 -18
  226. package/dist/{workers-vpc-D8lefWDo.mjs → workers-vpc-ztEKvWmq.mjs} +6 -6
  227. package/dist/{workflows-B-ZIG3y7.mjs → workflows-Dd88_Nqc.mjs} +24 -24
  228. package/dist/{wrangler-migration-6E6wT_LZ.mjs → wrangler-migration-BzMTJPdI.mjs} +294 -294
  229. package/dist/zaraz-BFK0p28R.mjs +22 -0
  230. package/dist/{zero-trust-BZDXM5r6.mjs → zero-trust-Cdjfp0Ie.mjs} +441 -455
  231. package/dist/{zones-B-UV_DGE.mjs → zones-DDn5jk6I.mjs} +51 -51
  232. package/package.json +19 -19
  233. package/dist/ai-gateway-Lj4On37s.mjs +0 -74
  234. package/dist/ai-search-BxyhS3X7.mjs +0 -74
  235. package/dist/alerting-r0G2X9y9.mjs +0 -52
  236. package/dist/analytics-C6bfqm-W.mjs +0 -17
  237. package/dist/auth-B-h0BHg7.mjs +0 -2
  238. package/dist/auth-B6tswVxH.mjs +0 -2
  239. package/dist/auth-clmqFEWU.mjs +0 -7
  240. package/dist/body-parser-DoewLePl.mjs +0 -2
  241. package/dist/brand-protection-kv1ba80i.mjs +0 -14
  242. package/dist/browser-run-D-vRoZmf.mjs +0 -40
  243. package/dist/build-BzJGqb2o.mjs +0 -2
  244. package/dist/builds-BbxINHRP.mjs +0 -64
  245. package/dist/cf-BQ_LRiut.mjs +0 -18
  246. package/dist/chunk-SOBRPAPT-QTjnHSNs.mjs +0 -363
  247. package/dist/cli-B7vslRfu.mjs +0 -4
  248. package/dist/cloudforce-one-DWBPQDA3.mjs +0 -318
  249. package/dist/command-AVwd7XjE.mjs +0 -2
  250. package/dist/command-B87T_f2f.mjs +0 -2
  251. package/dist/command-CEHhi3t0.mjs +0 -2
  252. package/dist/command-CYmQE79n.mjs +0 -2
  253. package/dist/command-Ce8CVLth.mjs +0 -2
  254. package/dist/command-CqDudQZs.mjs +0 -2
  255. package/dist/command-D4YcwpVp.mjs +0 -2
  256. package/dist/command-D9Qyi1B0.mjs +0 -2
  257. package/dist/command-Dl9ICrRK.mjs +0 -2
  258. package/dist/command-DtCSe8Hy.mjs +0 -2
  259. package/dist/command-DwzVtmb3.mjs +0 -2
  260. package/dist/command-wtBubtZ4.mjs +0 -2
  261. package/dist/containers-B06OGOEB.mjs +0 -380
  262. package/dist/csam-scanner-BV4bHq8v.mjs +0 -8
  263. package/dist/d1-nJCOJZb8.mjs +0 -50
  264. package/dist/deploy-DJMnWFNk.mjs +0 -2
  265. package/dist/deploy-context-YCW3eqP1.mjs +0 -56
  266. package/dist/deploy-input-CQLBXFEB.mjs +0 -2
  267. package/dist/dev-GsYHvMah.mjs +0 -4
  268. package/dist/dialog-D5lus4M4.mjs +0 -2
  269. package/dist/discover-6kAmVMPp.mjs +0 -2
  270. package/dist/discover-C06Syc2B.mjs +0 -2
  271. package/dist/docs-CRc_WOXh.mjs +0 -3
  272. package/dist/email-auth-ptdqNSTZ.mjs +0 -6
  273. package/dist/email-domains-uL22-zRY.mjs +0 -14
  274. package/dist/email-routing-CV43rMJC.mjs +0 -44
  275. package/dist/errors-VG1mgwJl.mjs +0 -11
  276. package/dist/field-extractors-jcZ_bAGc.mjs +0 -8
  277. package/dist/generate-CeeWW3eX.mjs +0 -3
  278. package/dist/generate-D6V4Q58z.mjs +0 -2
  279. package/dist/gt-BQkaDQDq.mjs +0 -3
  280. package/dist/healthchecks-BA1fmzTm.mjs +0 -20
  281. package/dist/init-EVsjBrOz.mjs +0 -43
  282. package/dist/leaked-credential-checks-EzT4TTjO.mjs +0 -16
  283. package/dist/load-balancers-Cb3VkSfc.mjs +0 -84
  284. package/dist/local-D5Vq6ooZ.mjs +0 -2
  285. package/dist/local-runtime-BZjgkacr.mjs +0 -2
  286. package/dist/log-DZfik9Jk.mjs +0 -2
  287. package/dist/login-DRJugxya.mjs +0 -2
  288. package/dist/managed-transforms-CjkjLzMC.mjs +0 -8
  289. package/dist/o11y-ySxrnP1Z.mjs +0 -88
  290. package/dist/oauth-CFVUl-Wv.mjs +0 -4
  291. package/dist/output-BZQEl3mK.mjs +0 -2
  292. package/dist/package-B7RgwuFR.mjs +0 -2
  293. package/dist/page-rules-DRw763O1.mjs +0 -38
  294. package/dist/pages-DfQnxiTk.mjs +0 -48
  295. package/dist/pipelines-DbyrI6F4.mjs +0 -40
  296. package/dist/previews-DEVNSip2.mjs +0 -6
  297. package/dist/progress-yvPscjYg.mjs +0 -2
  298. package/dist/project-settings-nBMEx1f-.mjs +0 -3
  299. package/dist/prompt-CEpZ-lQZ.mjs +0 -4
  300. package/dist/raw-fetch-Cl5spWC3.mjs +0 -2
  301. package/dist/registrar-D23gfKBi.mjs +0 -43
  302. package/dist/request-headers-C0FpeBhz.mjs +0 -2
  303. package/dist/request-tracers-qd7XOAka.mjs +0 -4
  304. package/dist/rulesets-DmqwixUC.mjs +0 -42
  305. package/dist/run-BOKI1uWa.mjs +0 -2
  306. package/dist/run-DBqOjD1P.mjs +0 -2
  307. package/dist/schema-Dj9STsWI.mjs +0 -2
  308. package/dist/schema-flags-CXm9iIv6.mjs +0 -4
  309. package/dist/session-vzNfUhPl.mjs +0 -2
  310. package/dist/shared-MK-_lkbn.mjs +0 -2
  311. package/dist/smart-shield-Boy_qbqd.mjs +0 -22
  312. package/dist/snippets-DdoDYXW-.mjs +0 -18
  313. package/dist/spawn-B5F4OIHG.mjs +0 -5
  314. package/dist/sql-Bb56llsb.mjs +0 -4
  315. package/dist/src-BoSDeQ9m.mjs +0 -133
  316. package/dist/startup-profile-DQVkZZpb.mjs +0 -2
  317. package/dist/state-DW3QZtfh.mjs +0 -2
  318. package/dist/stream-BuZYDbNR.mjs +0 -89
  319. package/dist/telemetry-DkDUr4KK.mjs +0 -2
  320. package/dist/tunnels-D90ztENM.mjs +0 -27
  321. package/dist/ui-xjCox-gU.mjs +0 -2
  322. package/dist/url-scanner-BRdWwka4.mjs +0 -16
  323. package/dist/user-Cmb1_Wu5.mjs +0 -103
  324. package/dist/version-6Bpy6Bgt.mjs +0 -2
  325. package/dist/waiting-rooms-LymmKIGr.mjs +0 -52
  326. package/dist/workers-BnLiOjZf.mjs +0 -39
  327. package/dist/workers-builds-sKpITeRk.mjs +0 -14
  328. package/dist/zaraz-BBKki5WS.mjs +0 -22
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,t as i}from"./context-BY1Eh_Qe.mjs";import{t as a}from"./output-BZQEl3mK.mjs";import{t as o}from"./dry-run-kJbjn4kG.mjs";import{t as s}from"./progress-yvPscjYg.mjs";import{t as c}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{n as l,r as u,t as d}from"./body-parser-DoewLePl.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{n as p}from"./prompt-CEpZ-lQZ.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function h(e){return e.usage(`$0 dns-firewall create
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{i as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,t as o}from"./context-BGm5_wTT.mjs";import{t as s}from"./dry-run-qsnRlRk6.mjs";import{n as c}from"./input-validation-D7z60HJH.mjs";import{t as l}from"./local-B3zt9PXR.mjs";import{t as u}from"./run-CXWkMU3x.mjs";import{t as d}from"./output-hFMAotFl.mjs";import{t as f}from"./progress-DE_G09u2.mjs";import"./telemetry-COlodX5Z.mjs";import{n as p}from"./prompt-D274Im1O.mjs";var m={method:`POST`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,body:`json`};function h(e){return e.usage(`$0 dns-firewall create
3
3
 
4
4
  Create a DNS Firewall cluster`).option(`attack-mitigation-enabled`,{type:`boolean`,description:`When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers`}).option(`attack-mitigation-only-when-upstream-unhealthy`,{type:`boolean`,description:`Only mitigate attacks when upstream servers seem unhealthy`}).option(`deprecate-any-requests`,{type:`boolean`,description:`Whether to refuse to answer queries for the ANY type`}).option(`ecs-fallback`,{type:`boolean`,description:`Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent`}).option(`maximum-cache-ttl`,{type:`number`,description:`By default, Cloudflare attempts to cache responses for as long as
5
5
  indicated by the TTL received from upstream nameservers. This setting
@@ -28,9 +28,9 @@ responses (e.g., NXDOMAIN) from the upstream servers.
28
28
  This setting does not affect the TTL value in the DNS response
29
29
  Cloudflare returns to clients. Cloudflare will always forward the TTL
30
30
  value received from upstream nameservers.
31
- `}).option(`ratelimit`,{type:`number`,description:`Maximum number of DNS queries per second that will be forwarded to your upstream nameservers. The limit is enforced per server, where each server receives a fraction of the configured value. The actual aggregate rate for a data center may vary depending on how many servers are present. Responses served from cache do not count toward this limit. Set to null to disable rate limiting.`}).option(`retries`,{type:`number`,description:`Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt)`,default:2}).option(`upstream-ips`,{type:`string`,array:!0,description:`The upstream_ips field`}).option(`dns-firewall-ip-count`,{type:`number`,description:`Number of IPv4 addresses to assign to the DNS Firewall cluster. Only used during cluster creation and cannot be changed later.`,default:2}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create DNS Firewall Cluster`,builder:h,handler:async e=>c({command:`dns-firewall create`,classification:{safeFlags:[`attack-mitigation-enabled`,`attack-mitigation-only-when-upstream-unhealthy`,`deprecate-any-requests`,`ecs-fallback`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dns-firewall create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:f(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`],dns_firewall_ip_count:e[`dns-firewall-ip-count`]}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),u=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let e=c,t=await s(`Creating`,async()=>u.send(m,{body:e,account_id:p}));a(t,{successLabel:`Created`});return}let h=d({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:f(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`],dns_firewall_ip_count:e[`dns-firewall-ip-count`]}),g=await s(`Creating`,async()=>u.send(m,{body:h,account_id:p}));a(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`};function v(e){return e.usage(`$0 dns-firewall delete <dns-firewall-id>
31
+ `}).option(`ratelimit`,{type:`number`,description:`Maximum number of DNS queries per second that will be forwarded to your upstream nameservers. The limit is enforced per server, where each server receives a fraction of the configured value. The actual aggregate rate for a data center may vary depending on how many servers are present. Responses served from cache do not count toward this limit. Set to null to disable rate limiting.`}).option(`retries`,{type:`number`,description:`Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt)`,default:2}).option(`upstream-ips`,{type:`string`,array:!0,description:`The upstream_ips field`}).option(`dns-firewall-ip-count`,{type:`number`,description:`Number of IPv4 addresses to assign to the DNS Firewall cluster. Only used during cluster creation and cannot be changed later.`,default:2}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create DNS Firewall Cluster`,builder:h,handler:async e=>u({command:`dns-firewall create`,classification:{safeFlags:[`attack-mitigation-enabled`,`attack-mitigation-only-when-upstream-unhealthy`,`deprecate-any-requests`,`ecs-fallback`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf dns-firewall create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:c(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`],dns_firewall_ip_count:e[`dns-firewall-ip-count`]}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),p=e.local?l:await o();if(e.accountId=p,e.body!==void 0){let e=n,t=await f(`Creating`,async()=>u.send(m,{body:e,account_id:p}));d(t,{successLabel:`Created`});return}let h=i({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:c(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`],dns_firewall_ip_count:e[`dns-firewall-ip-count`]}),g=await f(`Creating`,async()=>u.send(m,{body:h,account_id:p}));d(g,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`};function v(e){return e.usage(`$0 dns-firewall delete <dns-firewall-id>
32
32
 
33
- Delete a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <dns-firewall-id>`,describe:`Delete DNS Firewall Cluster`,builder:v,handler:async e=>c({command:`dns-firewall delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dns-firewall delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await p({force:!!e.force}))return;let u=await s(`Deleting`,async()=>c.send(_,{account_id:l,dns_firewall_id:e[`dns-firewall-id`]}));a(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`,body:`json`};function x(e){return e.usage(`$0 dns-firewall edit <dns-firewall-id>
33
+ Delete a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const y={command:`delete <dns-firewall-id>`,describe:`Delete DNS Firewall Cluster`,builder:v,handler:async e=>u({command:`dns-firewall delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf dns-firewall delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();if(e.accountId=r,!await p({force:!!e.force}))return;let i=await f(`Deleting`,async()=>n.send(_,{account_id:r,dns_firewall_id:e[`dns-firewall-id`]}));d(i,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`,body:`json`};function x(e){return e.usage(`$0 dns-firewall edit <dns-firewall-id>
34
34
 
35
35
  Modify the configuration of a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`attack-mitigation-enabled`,{type:`boolean`,description:`When enabled, automatically mitigate random-prefix attacks to protect upstream DNS servers`}).option(`attack-mitigation-only-when-upstream-unhealthy`,{type:`boolean`,description:`Only mitigate attacks when upstream servers seem unhealthy`}).option(`deprecate-any-requests`,{type:`boolean`,description:`Whether to refuse to answer queries for the ANY type`}).option(`ecs-fallback`,{type:`boolean`,description:`Whether to forward client IP (resolver) subnet if no EDNS Client Subnet is sent`}).option(`maximum-cache-ttl`,{type:`number`,description:`By default, Cloudflare attempts to cache responses for as long as
36
36
  indicated by the TTL received from upstream nameservers. This setting
@@ -59,12 +59,12 @@ responses (e.g., NXDOMAIN) from the upstream servers.
59
59
  This setting does not affect the TTL value in the DNS response
60
60
  Cloudflare returns to clients. Cloudflare will always forward the TTL
61
61
  value received from upstream nameservers.
62
- `}).option(`ratelimit`,{type:`number`,description:`Maximum number of DNS queries per second that will be forwarded to your upstream nameservers. The limit is enforced per server, where each server receives a fraction of the configured value. The actual aggregate rate for a data center may vary depending on how many servers are present. Responses served from cache do not count toward this limit. Set to null to disable rate limiting.`}).option(`retries`,{type:`number`,description:`Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt)`}).option(`upstream-ips`,{type:`string`,array:!0,description:`The upstream_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 S={command:`edit <dns-firewall-id>`,describe:`Update DNS Firewall Cluster`,builder:x,handler:async e=>c({command:`dns-firewall edit`,classification:{safeFlags:[`attack-mitigation-enabled`,`attack-mitigation-only-when-upstream-unhealthy`,`deprecate-any-requests`,`ecs-fallback`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dns-firewall edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:f(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`]}):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),u=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>u.send(b,{body:t,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));a(n,{successLabel:`Updated`});return}let m=d({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:f(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`]}),h=await s(`Updating`,async()=>u.send(b,{body:m,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));a(h,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`};function w(e){return e.usage(`$0 dns-firewall get <dns-firewall-id>
62
+ `}).option(`ratelimit`,{type:`number`,description:`Maximum number of DNS queries per second that will be forwarded to your upstream nameservers. The limit is enforced per server, where each server receives a fraction of the configured value. The actual aggregate rate for a data center may vary depending on how many servers are present. Responses served from cache do not count toward this limit. Set to null to disable rate limiting.`}).option(`retries`,{type:`number`,description:`Number of retries for fetching DNS responses from upstream nameservers (not counting the initial attempt)`}).option(`upstream-ips`,{type:`string`,array:!0,description:`The upstream_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 S={command:`edit <dns-firewall-id>`,describe:`Update DNS Firewall Cluster`,builder:x,handler:async e=>u({command:`dns-firewall edit`,classification:{safeFlags:[`attack-mitigation-enabled`,`attack-mitigation-only-when-upstream-unhealthy`,`deprecate-any-requests`,`ecs-fallback`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf dns-firewall edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:c(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`]}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),u=await t(e),p=e.local?l:await o();if(e.accountId=p,e.body!==void 0){let t=n,r=await f(`Updating`,async()=>u.send(b,{body:t,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));d(r,{successLabel:`Updated`});return}let m=i({attack_mitigation:{enabled:e[`attack-mitigation-enabled`],only_when_upstream_unhealthy:e[`attack-mitigation-only-when-upstream-unhealthy`]},deprecate_any_requests:e[`deprecate-any-requests`],ecs_fallback:e[`ecs-fallback`],maximum_cache_ttl:e[`maximum-cache-ttl`],minimum_cache_ttl:e[`minimum-cache-ttl`],name:c(e.name,`name`,`text`),negative_cache_ttl:e[`negative-cache-ttl`],ratelimit:e.ratelimit,retries:e.retries,upstream_ips:e[`upstream-ips`]}),h=await f(`Updating`,async()=>u.send(b,{body:m,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));d(h,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}`};function w(e){return e.usage(`$0 dns-firewall get <dns-firewall-id>
63
63
 
64
- Show a single DNS Firewall cluster for an account`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <dns-firewall-id>`,describe:`DNS Firewall Cluster Details`,builder:w,handler:async e=>c({command:`dns-firewall get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dns-firewall get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(C,{account_id:l,dns_firewall_id:e[`dns-firewall-id`]}));a(u,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,query:[`page`,`per_page`]};function D(e){return e.usage(`$0 dns-firewall list
64
+ Show a single DNS Firewall cluster for an account`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <dns-firewall-id>`,describe:`DNS Firewall Cluster Details`,builder:w,handler:async e=>u({command:`dns-firewall get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf dns-firewall get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();e.accountId=r;let i=await f(`Loading`,async()=>n.send(C,{account_id:r,dns_firewall_id:e[`dns-firewall-id`]}));d(i,{successLabel:`Loaded`})})};var E={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall`,query:[`page`,`per_page`]};function D(e){return e.usage(`$0 dns-firewall list
65
65
 
66
- List DNS Firewall clusters for an account`).option(`page`,{type:`number`,description:`Page number of paginated results`}).option(`per-page`,{type:`number`,description:`Number of clusters per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List DNS Firewall Clusters`,builder:D,handler:async e=>c({command:`dns-firewall list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf dns-firewall list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_firewall`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(E,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var k={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}/reverse_dns`,body:`json`};function A(e){return e.usage(`$0 dns-firewall reverse-dns edit <dns-firewall-id>
66
+ List DNS Firewall clusters for an account`).option(`page`,{type:`number`,description:`Page number of paginated results`}).option(`per-page`,{type:`number`,description:`Number of clusters per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`list`,describe:`List DNS Firewall Clusters`,builder:D,handler:async e=>u({command:`dns-firewall list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await a();s({command:`cf dns-firewall list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/dns_firewall`,pathParams:{},query:n,bodyKind:`none`});return}let r=await t(e),i=e.local?l:await o();e.accountId=i;let c=await f(`Loading`,async()=>r.send(E,{account_id:i,...n}));d(c,{successLabel:`Loaded`})})};var k={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}/reverse_dns`,body:`json`};function A(e){return e.usage(`$0 dns-firewall reverse-dns edit <dns-firewall-id>
67
67
 
68
- Update reverse DNS configuration (PTR records) for a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`ptr`,{type:`string`,description:`Map of cluster IP addresses to PTR record contents. Provide as a JSON object or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const j={command:`edit <dns-firewall-id>`,describe:`Update DNS Firewall Cluster Reverse DNS`,builder:A,handler:async e=>c({command:`dns-firewall reverse-dns edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.body===void 0&&e.ptr===void 0)throw Error(`--body is required unless at least one JSON map flag is provided (--ptr).`);if(e.dryRun){let t=await r();o({command:`cf dns-firewall reverse-dns edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}/reverse_dns`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({ptr:u(e.ptr,`ptr`)},[[`ptr`]]):l(e.body)});return}let c=e.body===void 0?void 0:l(e.body),f=await n(e),p=e.local?t:await i();if(e.accountId=p,e.body!==void 0){let t=c,n=await s(`Updating`,async()=>f.send(k,{body:t,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));a(n,{successLabel:`Updated`});return}let m=d({ptr:u(e.ptr,`ptr`)},[[`ptr`]]),h=await s(`Updating`,async()=>f.send(k,{body:m,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));a(h,{successLabel:`Updated`})})};var M={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}/reverse_dns`};function N(e){return e.usage(`$0 dns-firewall reverse-dns get <dns-firewall-id>
68
+ Update reverse DNS configuration (PTR records) for a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`ptr`,{type:`string`,description:`Map of cluster IP addresses to PTR record contents. Provide as a JSON object or @path/to/file.json. Shape: {"<key>": string}.`}).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 j={command:`edit <dns-firewall-id>`,describe:`Update DNS Firewall Cluster Reverse DNS`,builder:A,handler:async e=>u({command:`dns-firewall reverse-dns edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.body===void 0&&e.ptr===void 0)throw Error(`--body is required unless at least one JSON map flag is provided (--ptr).`);if(e.dryRun){let t=await a();s({command:`cf dns-firewall reverse-dns edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}/reverse_dns`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({ptr:n(e.ptr,`ptr`)},[[`ptr`]]):r(e.body)});return}let c=e.body===void 0?void 0:r(e.body),u=await t(e),p=e.local?l:await o();if(e.accountId=p,e.body!==void 0){let t=c,n=await f(`Updating`,async()=>u.send(k,{body:t,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));d(n,{successLabel:`Updated`});return}let m=i({ptr:n(e.ptr,`ptr`)},[[`ptr`]]),h=await f(`Updating`,async()=>u.send(k,{body:m,account_id:p,dns_firewall_id:e[`dns-firewall-id`]}));d(h,{successLabel:`Updated`})})};var M={method:`GET`,path:t=>e`/accounts/${t.account_id}/dns_firewall/${t.dns_firewall_id}/reverse_dns`};function N(e){return e.usage(`$0 dns-firewall reverse-dns get <dns-firewall-id>
69
69
 
70
- Show reverse DNS configuration (PTR records) for a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <dns-firewall-id>`,describe:`Show DNS Firewall Cluster Reverse DNS`,builder:N,handler:async e=>c({command:`dns-firewall reverse-dns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf dns-firewall reverse-dns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}/reverse_dns`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(M,{account_id:l,dns_firewall_id:e[`dns-firewall-id`]}));a(u,{successLabel:`Loaded`})})},F={command:`reverse-dns`,describe:`Operations for reverse-dns`,builder:e=>e.command(j).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`dns-firewall`,describe:`dns-firewall`,builder:e=>e.command(g).command(y).command(S).command(T).command(O).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{I as default};
70
+ Show reverse DNS configuration (PTR records) for a DNS Firewall cluster`).positional(`dns-firewall-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <dns-firewall-id>`,describe:`Show DNS Firewall Cluster Reverse DNS`,builder:N,handler:async e=>u({command:`dns-firewall reverse-dns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();s({command:`cf dns-firewall reverse-dns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/dns_firewall/${e[`dns-firewall-id`]==null?`<dns-firewall-id>`:encodeURIComponent(String(e[`dns-firewall-id`]))}/reverse_dns`,pathParams:{"dns-firewall-id":String(e[`dns-firewall-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?l:await o();e.accountId=r;let i=await f(`Loading`,async()=>n.send(M,{account_id:r,dns_firewall_id:e[`dns-firewall-id`]}));d(i,{successLabel:`Loaded`})})},F={command:`reverse-dns`,describe:`Operations for reverse-dns`,builder:e=>e.command(j).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`dns-firewall`,describe:`dns-firewall`,builder:e=>e.command(g).command(y).command(S).command(T).command(O).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{I as default};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./output-hFMAotFl.mjs";import{n as t}from"./request-headers-Bopp5lH_.mjs";import{t as n}from"./run-CXWkMU3x.mjs";const r=`https://developers.cloudflare.com`;function i(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function a(e){return i(e)?e.success===!1?e.error===void 0||typeof e.error==`string`:e.success===!0&&i(e.result)&&Array.isArray(e.result.chunks)&&e.result.chunks.every(e=>{if(!i(e)||!i(e.item)||typeof e.item.key!=`string`||e.item.key.length===0)return!1;let t=e.item.metadata;return t===void 0||i(t)&&(t.title===void 0||typeof t.title==`string`)&&(t.description===void 0||typeof t.description==`string`)}):!1}function o(e){let t;try{t=new URL(e,`${r}/`)}catch{throw Error(`Cloudflare docs search returned an invalid URL.`)}if(t.origin!==r||t.username||t.password)throw Error(`Cloudflare docs search returned an invalid URL.`);return t.href}async function s(e){let n=AbortSignal.timeout(3e4),r;try{r=await fetch(`https://ai-search.developers.cloudflare.com/api/ai-search/search`,{method:`POST`,headers:{...t(),"Content-Type":`application/json`,Accept:`application/json`},body:JSON.stringify({messages:[{role:`user`,content:e}],stream:!1,ai_search_options:{retrieval:{metadata_only:!0,max_num_results:5}}}),signal:n})}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Unable to reach Cloudflare docs search. Check your connection and try again.`,{cause:e})}if(!r.ok)throw Error(`Cloudflare docs search failed (HTTP ${r.status}).`);let i;try{i=await r.json()}catch(e){throw Error(n.aborted?`Cloudflare docs search timed out. Try again.`:`Cloudflare docs search returned an invalid JSON response.`,{cause:e})}if(!a(i))throw Error(`Cloudflare docs search returned an invalid response.`);if(!i.success)throw Error(`Cloudflare docs search failed: ${i.error??`Unknown error`}`);return i.result.chunks.slice(0,5).map(({item:e})=>({title:e.metadata?.title??`Untitled`,description:e.metadata?.description??``,url:o(e.key)}))}const c={command:`search <query>`,describe:`Search live Cloudflare documentation, guides, tutorials, and examples`,builder:e=>e.positional(`query`,{describe:`Search terms or a question about Cloudflare`,type:`string`,demandOption:!0,coerce:e=>{let t=e.trim();if(!t)throw Error(`query must not be empty.`);return t}}).example(`cf docs search "schedule a worker"`,`Find guides and examples`).epilogue(`Returns up to five ranked JSON results with title, description, and url. No Cloudflare login is required.
3
+ Fetch a result's URL with Accept: text/markdown to read the full page as Markdown.`),handler:t=>n({command:`docs search`,recordArgs:!1,searchQuery:t.query},t,async()=>{e(await s(t.query))})},l={command:`docs`,describe:`Search live Cloudflare documentation`,builder:e=>e.command(c).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{l as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./output-BZQEl3mK.mjs";function t(e,t){let n=(e,t)=>{let r=t[0];if(r===void 0||typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>n(e,t));let i=e[r];return i===void 0?e:{...e,[r]:t.length===1?`<redacted>`:n(i,t.slice(1))}},r=e;for(let e of t)r=n(r,e);return r}function n({sensitiveBodyPaths:n,...r}){n?.length?e({...r,body:t(r.body,n)}):e(r)}export{n as t};
2
+ import{t as e}from"./output-hFMAotFl.mjs";function t(e,t){let n=(e,t)=>{let r=t[0];if(r===void 0||typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(e=>n(e,t));let i=e[r];return i===void 0?e:{...e,[r]:t.length===1?`<redacted>`:n(i,t.slice(1))}},r=e;for(let e of t)r=n(r,e);return r}function n({sensitiveBodyPaths:n,...r}){n?.length?e({...r,body:t(r.body,n)}):e(r)}export{n as t};
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-DIJ7SIKC.mjs";import{n}from"./auth-B-h0BHg7.mjs";import{a as r,t as i}from"./context-BY1Eh_Qe.mjs";import{t as a}from"./output-BZQEl3mK.mjs";import{t as o}from"./dry-run-kJbjn4kG.mjs";import{t as s}from"./progress-yvPscjYg.mjs";import{t as c}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces`,query:[`page`,`per_page`]};function u(e){return e.usage(`$0 durable-objects namespaces list
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{t as n}from"./dry-run-qsnRlRk6.mjs";import{a as r,t as i}from"./context-BGm5_wTT.mjs";import{t as a}from"./local-B3zt9PXR.mjs";import{t as o}from"./output-hFMAotFl.mjs";import{t as s}from"./progress-DE_G09u2.mjs";import{t as c}from"./run-CXWkMU3x.mjs";import"./telemetry-COlodX5Z.mjs";var l={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces`,query:[`page`,`per_page`]};function u(e){return e.usage(`$0 durable-objects namespaces list
3
3
 
4
- Returns the Durable Object namespaces owned by an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Durable Object Namespaces`,builder:u,handler:async e=>c({command:`durable-objects namespaces list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf durable-objects namespaces list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/durable_objects/namespaces`,pathParams:{},query:c,bodyKind:`none`});return}let u=await n(e),d=e.local?t:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));a(f,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces/${t.id}/objects`,query:[`limit`,`cursor`]};function p(e){return e.usage(`$0 durable-objects namespaces objects list
4
+ Returns the Durable Object namespaces owned by an account.`).option(`page`,{type:`number`,description:`Current page.`}).option(`per-page`,{type:`number`,description:`Items per-page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const d={command:`list`,describe:`List Durable Object Namespaces`,builder:u,handler:async e=>c({command:`durable-objects namespaces list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();n({command:`cf durable-objects namespaces list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workers/durable_objects/namespaces`,pathParams:{},query:c,bodyKind:`none`});return}let u=await t(e),d=e.local?a:await i();e.accountId=d;let f=await s(`Loading`,async()=>u.send(l,{account_id:d,...c}));o(f,{successLabel:`Loaded`})})};var f={method:`GET`,path:t=>e`/accounts/${t.account_id}/workers/durable_objects/namespaces/${t.id}/objects`,query:[`limit`,`cursor`]};function p(e){return e.usage(`$0 durable-objects namespaces objects list
5
5
 
6
- Returns the Durable Objects in a given Durable Object namespace.`).option(`id`,{type:`string`,description:`ID of the namespace.`,demandOption:!0}).option(`limit`,{type:`number`,description:`The number of objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List Objects in a Durable Object namespace`,builder:p,handler:async e=>c({command:`durable-objects namespaces objects list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={limit:e.limit,cursor:e.cursor};if(e.dryRun){let t=await r();o({command:`cf durable-objects namespaces objects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/durable_objects/namespaces/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/objects`,pathParams:{id:String(e.id??``)},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(f,{account_id:u,id:e.id,...c}));a(d,{successLabel:`Loaded`})})},h={command:`objects`,describe:`List Durable Object instances in a namespace`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`namespaces`,describe:`List Durable Object namespaces and inspect individual object instances within them`,builder:e=>e.command(d).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_={command:`durable-objects`,describe:`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
6
+ Returns the Durable Objects in a given Durable Object namespace.`).option(`id`,{type:`string`,description:`ID of the namespace.`,demandOption:!0}).option(`limit`,{type:`number`,description:`The number of objects to return. The cursor attribute may be used to iterate over the next batch of objects if there are more than the limit.`}).option(`cursor`,{type:`string`,description:`Opaque token indicating the position from which to continue when requesting the next set of records. A valid value for the cursor can be obtained from the cursors object in the result_info structure.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`list`,describe:`List Objects in a Durable Object namespace`,builder:p,handler:async e=>c({command:`durable-objects namespaces objects list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let c={limit:e.limit,cursor:e.cursor};if(e.dryRun){let t=await r();n({command:`cf durable-objects namespaces objects list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workers/durable_objects/namespaces/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}/objects`,pathParams:{id:String(e.id??``)},query:c,bodyKind:`none`});return}let l=await t(e),u=e.local?a:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(f,{account_id:u,id:e.id,...c}));o(d,{successLabel:`Loaded`})})},h={command:`objects`,describe:`List Durable Object instances in a namespace`,builder:e=>e.command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},g={command:`namespaces`,describe:`List Durable Object namespaces and inspect individual object instances within them`,builder:e=>e.command(d).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_={command:`durable-objects`,describe:`Stateful serverless objects with transactional storage, ideal for coordination, sessions, and real-time collaboration`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{_ as default};
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{i as n}from"./context-BGm5_wTT.mjs";import{r,t as i}from"./body-parser-HN91kAf0.mjs";import{t as a}from"./dry-run-qsnRlRk6.mjs";import{t as o}from"./output-hFMAotFl.mjs";import{t as s}from"./run-CXWkMU3x.mjs";import{t as c}from"./progress-DE_G09u2.mjs";import"./telemetry-COlodX5Z.mjs";var l={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`,body:`json`};function u(e){return e.usage("$0 email-auth dmarc-reports edit\n\nUpdates the DMARC report configuration for a zone. At least one of `enabled` or `skip_wizard` must be provided. When enabling, the handler will ensure the DMARC RUA record exists in DNS.").option(`enabled`,{type:`boolean`,description:`Enable or disable DMARC reports for this zone`}).option(`skip-wizard`,{type:`boolean`,description:`Skip the DMARC setup wizard`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for PATCH /dmarc-reports`})}const d={command:`edit`,describe:`Configure DMARC Reports`,builder:u,handler:async e=>s({command:`email-auth dmarc-reports edit`,classification:{safeFlags:[`enabled`,`skip-wizard`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf email-auth dmarc-reports edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}):r(e.body)});return}let s=e.body===void 0?void 0:r(e.body),u=await t(e),d=await n({zone:e.zone},u,{quiet:e.quiet});if(e.zoneId=d,e.body!==void 0){let e=s,t=await c(`Updating`,async()=>u.send(l,{body:e,zone_id:d}));o(t,{successLabel:`Updated`});return}let f=i({enabled:e.enabled,skip_wizard:e[`skip-wizard`]}),p=await c(`Updating`,async()=>u.send(l,{body:f,zone_id:d}));o(p,{successLabel:`Updated`})})};var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/dmarc-reports`};function p(e){return e.usage(`$0 email-auth dmarc-reports get
3
+
4
+ Retrieves the current DMARC report configuration and status for a zone. Returns the RUA prefix, enabled status, approved sources, and DNS records.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get DMARC Report Status`,builder:p,handler:async e=>s({command:`email-auth dmarc-reports get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf email-auth dmarc-reports get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/dmarc-reports`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let r=await t(e),i=await n({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let s=await c(`Loading`,async()=>r.send(f,{zone_id:i}));o(s,{successLabel:`Loaded`})})},h={command:`dmarc-reports`,describe:`Operations for dmarc-reports`,builder:e=>e.command(d).command(m).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var g={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/auth/spf/inspect`,query:[`id`]};function _(e){return e.usage(`$0 email-auth spf inspect
5
+
6
+ Inspects a specific SPF TXT record and returns a parsed tree structure in the spflimit-worker format. The record ID must be provided via the \`id\` query parameter. Returns a recursive tree showing: - Parsed components with their qualifiers and types - Nested includes recursively resolved within components - Per-component and total lookup counts - Detailed error information with context`).option(`id`,{type:`string`,description:`DNS record ID (rec_tag) to inspect`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`inspect`,describe:`Inspect SPF Record`,builder:_,handler:async e=>s({command:`email-auth spf inspect`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let r={id:e.id};if(e.dryRun){a({command:`cf email-auth spf inspect`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/auth/spf/inspect`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:r,bodyKind:`none`});return}let i=await t(e),s=await n({zone:e.zone},i,{quiet:e.quiet});e.zoneId=s;let l=await c(`Loading`,async()=>i.send(g,{zone_id:s,...r}));o(l,{successLabel:`Loaded`})})},y={command:`spf`,describe:`Operations for spf`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},b={command:`email-auth`,describe:`email-auth`,builder:e=>e.command(h).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env node
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-DA1PHaHi.mjs";import{o as n,r,t as i}from"./body-parser-HN91kAf0.mjs";import{a,i as o,t as s}from"./context-BGm5_wTT.mjs";import{t as c}from"./dry-run-qsnRlRk6.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{t as u}from"./local-B3zt9PXR.mjs";import{t as d}from"./run-CXWkMU3x.mjs";import{t as f}from"./output-hFMAotFl.mjs";import{t as p}from"./progress-DE_G09u2.mjs";import{a as m,i as h,n as g}from"./prompt-D274Im1O.mjs";import"./telemetry-COlodX5Z.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,body:`json`,errors:{422:`UnprocessableEntityError`}};function v(e){return e.usage(`$0 email-routing addresses create
3
+
4
+ Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.`).option(`email`,{type:`string`,description:`The contact email address of the user.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`create`,describe:`Create a destination address`,builder:v,handler:async e=>d({command:`email-routing addresses create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf email-routing addresses create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({email:l(e.email,`email`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),o=await t(e),d=e.local?u:await s();if(e.accountId=d,e.body!==void 0){let e=n,t=await p(`Creating`,async()=>o.send(_,{body:e,account_id:d}));f(t,{successLabel:`Created`});return}e.email===void 0&&(e.email=await m(`email`,`The contact email address of the user.`));let h=i({email:l(e.email,`email`,`text`)}),g=await p(`Creating`,async()=>o.send(_,{body:h,account_id:d}));f(g,{successLabel:`Created`})})};var b={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function x(e){return e.usage(`$0 email-routing addresses delete <destination-address-identifier>
5
+
6
+ Deletes a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,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 S={command:`delete <destination-address-identifier>`,describe:`Delete destination address`,builder:x,handler:async e=>d({command:`email-routing addresses delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf email-routing addresses delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?u:await s();if(e.accountId=r,!await g({force:!!e.force,message:`This operation permanently deletes a destination address.`}))return;let i=await p(`Deleting`,async()=>n.send(b,{account_id:r,destination_address_identifier:e[`destination-address-identifier`]}));f(i,{successLabel:`Deleted`})})};var ee={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,errors:{404:`NotFoundError`}};function te(e){return e.usage(`$0 email-routing addresses get <destination-address-identifier>
7
+
8
+ Gets information for a specific destination email already created.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ne={command:`get <destination-address-identifier>`,describe:`Get a destination address`,builder:te,handler:async e=>d({command:`email-routing addresses get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf email-routing addresses get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`none`});return}let n=await t(e),r=e.local?u:await s();e.accountId=r;let i=await p(`Loading`,async()=>n.send(ee,{account_id:r,destination_address_identifier:e[`destination-address-identifier`]}));f(i,{successLabel:`Loaded`})})};var re={method:`GET`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses`,query:[`page`,`per_page`,`direction`,`verified`],errors:{403:`ForbiddenError`}};function ie(e){return e.usage(`$0 email-routing addresses list
9
+
10
+ Lists destination addresses configured for Email Routing in an account.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Sorts results in an ascending or descending order.`,choices:[`asc`,`desc`]}).option(`verified`,{type:`string`,description:`Filter by verified destination addresses.`,choices:[`true`,`false`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`list`,describe:`List destination addresses`,builder:ie,handler:async e=>d({command:`email-routing addresses list`,classification:{safeFlags:[`direction`,`verified`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],direction:e.direction,verified:e.verified};if(e.dryRun){let e=await a();c({command:`cf email-routing addresses list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/email/routing/addresses`,pathParams:{},query:n,bodyKind:`none`});return}let r=await t(e),i=e.local?u:await s();e.accountId=i;let o=await p(`Loading`,async()=>r.send(re,{account_id:i,...n}));f(o,{successLabel:`Loaded`})})};var C={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/email/routing/addresses/${t.destination_address_identifier}`,body:`json`,errors:{404:`NotFoundError`}};function w(e){return e.usage(`$0 email-routing addresses update <destination-address-identifier>
11
+
12
+ Updates the status of a specific destination address.`).positional(`destination-address-identifier`,{type:`string`,description:`Destination address identifier.`,demandOption:!0}).option(`status`,{type:`string`,description:`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,choices:[`unverified`,`verified`]}).coerce(`status`,e=>l(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const T={command:`update <destination-address-identifier>`,describe:`Update destination address`,builder:w,handler:async e=>d({command:`email-routing addresses update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf email-routing addresses update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/addresses/${e[`destination-address-identifier`]==null?`<destination-address-identifier>`:encodeURIComponent(String(e[`destination-address-identifier`]))}`,pathParams:{"destination-address-identifier":String(e[`destination-address-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?i({status:e.status}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),o=await t(e),l=e.local?u:await s();if(e.accountId=l,e.body!==void 0){let t=n,r=await p(`Updating`,async()=>o.send(C,{body:t,account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));f(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await h(`status`,`Destination address status. Non-admin callers may only set verified addresses back to unverified; setting to verified requires admin privileges.`,[`unverified`,`verified`]));let d=i({status:e.status}),m=await p(`Updating`,async()=>o.send(C,{body:d,account_id:l,destination_address_identifier:e[`destination-address-identifier`]}));f(m,{successLabel:`Updated`})})},E={command:`addresses`,describe:`Verified destination email addresses that can receive forwarded mail`,builder:e=>e.command(y).command(S).command(ne).command(ae).command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function O(e){return e.usage(`$0 email-routing disable
13
+
14
+ Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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 k={command:`disable`,describe:`Disable Email Routing`,builder:O,handler:async e=>d({command:`email-routing disable`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf email-routing disable`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({name:l(e.name,`name`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,!await g({force:!!e.force,message:`This operation disables Email Routing and removes its DNS records.`}))return;if(e.body!==void 0){let e=n,t=await p(`Deleting`,async()=>a.send(D,{body:e,zone_id:s}));f(t,{successLabel:`Deleted`});return}let u=i({name:l(e.name,`name`,`text`)}),d=await p(`Deleting`,async()=>a.send(D,{body:u,zone_id:s}));f(d,{successLabel:`Deleted`})})};var A={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,query:[`subdomain`],errors:{403:`ForbiddenError`}};function j(e){return e.usage(`$0 email-routing dns get
15
+
16
+ Show the DNS records needed to configure your Email Routing zone.`).option(`subdomain`,{type:`string`,description:`Deprecated. When supplied, the response shape differs from the documented default and is not modeled in generated SDKs. Do not rely on this parameter.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get`,describe:`Email Routing - DNS settings`,builder:j,handler:async e=>d({command:`email-routing dns get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={subdomain:e.subdomain};if(e.dryRun){c({command:`cf email-routing dns get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:n,bodyKind:`none`});return}let r=await t(e),i=await o({zone:e.zone},r,{quiet:e.quiet});e.zoneId=i;let a=await p(`Loading`,async()=>r.send(A,{zone_id:i,...n}));f(a,{successLabel:`Loaded`})})};var N={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function P(e){return e.usage(`$0 email-routing dns unlock
17
+
18
+ Unlock MX Records previously locked by Email Routing.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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 F={command:`unlock`,describe:`Unlock Email Routing DNS records`,builder:P,handler:async e=>d({command:`email-routing dns unlock`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing dns unlock`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({name:l(e.name,`name`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await p(`Updating`,async()=>a.send(N,{body:e,zone_id:s}));f(t,{successLabel:`Updated`});return}let u=i({name:l(e.name,`name`,`text`)}),d=await p(`Updating`,async()=>a.send(N,{body:u,zone_id:s}));f(d,{successLabel:`Updated`})})},I={command:`dns`,describe:`Inspect or unlock the DNS records required by Email Routing`,builder:e=>e.command(M).command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/routing/dns`,body:`json`,errors:{403:`ForbiddenError`}};function R(e){return e.usage(`$0 email-routing enable
19
+
20
+ Enable your Email Routing zone. Add and lock the necessary MX and SPF records.`).option(`name`,{type:`string`,description:`Domain of your zone.`}).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 z={command:`enable`,describe:`Enable Email Routing`,builder:R,handler:async e=>d({command:`email-routing enable`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing enable`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/dns`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({name:l(e.name,`name`,`text`)}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await p(`Creating`,async()=>a.send(L,{body:e,zone_id:s}));f(t,{successLabel:`Created`});return}let u=i({name:l(e.name,`name`,`text`)}),d=await p(`Creating`,async()=>a.send(L,{body:u,zone_id:s}));f(d,{successLabel:`Created`})})};var B={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/catch_all`,errors:{403:`ForbiddenError`}};function V(e){return e.usage(`$0 email-routing rules catch-all get
21
+
22
+ Get information on the default catch-all routing rule.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`Get catch-all rule`,builder:V,handler:async e=>d({command:`email-routing rules catch-all get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules catch-all get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>n.send(B,{zone_id:r}));f(i,{successLabel:`Loaded`})})};var U={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/catch_all`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function W(e){return e.usage(`$0 email-routing rules catch-all update
23
+
24
+ Enable or disable catch-all routing rule, or change action to forward to a specific destination address. Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "drop" | "forward" | "worker", "value"?: [string]}]. ? marks optional keys.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`List of matchers for the catch-all routing rule. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "all"}].`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>l(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const G={command:`update`,describe:`Update catch-all rule`,builder:W,handler:async e=>d({command:`email-routing rules catch-all update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules catch-all update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/catch_all`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}):r(e.body)});return}let a=e.body===void 0?void 0:r(e.body),s=await t(e),u=await o({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=a,t=await p(`Updating`,async()=>s.send(U,{body:e,zone_id:u}));f(t,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let d=i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),source:e.source}),m=await p(`Updating`,async()=>s.send(U,{body:d,zone_id:u}));f(m,{successLabel:`Updated`})})},K={command:`catch-all`,describe:`Operations for rules.catch-all`,builder:e=>e.command(H).command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/email/routing/rules`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function J(e){return e.usage(`$0 email-routing rules create
25
+
26
+ Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address). Forward actions require exactly one verified destination address.`).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "drop" | "forward" | "worker", "value"?: [string]}]. ? marks optional keys.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`,default:!0}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "all" | "literal", "field"?: "to", "value"?: string}]. ? marks optional keys.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`,default:0}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`],default:`api`}).coerce(`source`,e=>l(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const oe={command:`create`,describe:`Create routing rule`,builder:J,handler:async e=>d({command:`email-routing rules create`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):r(e.body)});return}let a=e.body===void 0?void 0:r(e.body),s=await t(e),u=await o({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let e=a,t=await p(`Creating`,async()=>s.send(q,{body:e,zone_id:u}));f(t,{successLabel:`Created`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let d=i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),m=await p(`Creating`,async()=>s.send(q,{body:d,zone_id:u}));f(m,{successLabel:`Created`})})};var se={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,errors:{404:`NotFoundError`}};function ce(e){return e.usage(`$0 email-routing rules delete <rule-identifier>
27
+
28
+ Deletes a routing rule so matching incoming messages are no longer forwarded by it.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,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 le={command:`delete <rule-identifier>`,describe:`Delete routing rule`,builder:ce,handler:async e=>d({command:`email-routing rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-identifier":String(e[`rule-identifier`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation permanently deletes an Email Routing rule.`}))return;let i=await p(`Deleting`,async()=>n.send(se,{zone_id:r,rule_identifier:e[`rule-identifier`]}));f(i,{successLabel:`Deleted`})})};var ue={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,errors:{404:`NotFoundError`}};function de(e){return e.usage(`$0 email-routing rules get <rule-identifier>
29
+
30
+ Get information for a specific routing rule already created.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const fe={command:`get <rule-identifier>`,describe:`Get routing rule`,builder:de,handler:async e=>d({command:`email-routing rules get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-identifier":String(e[`rule-identifier`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>n.send(ue,{zone_id:r,rule_identifier:e[`rule-identifier`]}));f(i,{successLabel:`Loaded`})})};var pe={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/email/routing/rules`,query:[`page`,`per_page`,`enabled`],errors:{403:`ForbiddenError`}};function me(e){return e.usage(`$0 email-routing rules list-account
31
+
32
+ Lists existing routing rules across all zones in the account or zone.
33
+
34
+ Runs against your account. Pass --zone to run against a zone instead. CLOUDFLARE_ZONE_ID is ignored.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`enabled`,{type:`string`,description:`Filter by enabled routing rules.`,choices:[`true`,`false`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`list-account`,describe:`List account or zone routing rules`,builder:me,handler:async e=>d({command:`email-routing rules list-account`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],enabled:e.enabled};if(e.dryRun){let t=e.zone===void 0?await a():void 0,r=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;c({command:`cf email-routing rules list-account`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${r}/${i}/email/routing/rules`,pathParams:{"account-or-zone":String(r),"account-or-zone-id":String(i)},query:n,bodyKind:`none`});return}let r=await t(e),i=e.zone===void 0?`accounts`:`zones`,l=i===`zones`?await o({zone:e.zone},r,{quiet:e.quiet}):e.local?u:await s();i===`zones`?e.zoneId=l:e.accountId=l;let d=await p(`Loading`,async()=>r.send(pe,{account_or_zone:i,account_or_zone_id:l,...n}));f(d,{successLabel:`Loaded`})})};var Y={method:`POST`,path:t=>e`/accounts/${t.account_id}/email/routing/rules/plan`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,422:`UnprocessableEntityError`}};function ge(e){return e.usage(`$0 email-routing rules plan
35
+
36
+ Computes the Email Routing rule changes that would be needed to reconcile a Wrangler-managed desired ruleset. This endpoint is read-only and does not create, update, or delete rules.`).option(`catch-all-rules`,{type:`string`,description:`Desired catch-all Email Routing rules managed by the deploying Worker. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"rule": {...}, "target": string}].`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`rules`,{type:`string`,description:`Desired normal Email Routing rules managed by the deploying Worker. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"actions": [{...}], "matchers": [{...}], "enabled"?: true | false}]. ? marks optional keys.`}).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 _e={command:`plan`,describe:`Plan account routing rule changes`,builder:ge,handler:async e=>d({command:`email-routing rules plan`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();c({command:`cf email-routing rules plan`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/email/routing/rules/plan`,pathParams:{},bodyKind:`json`,body:e.body===void 0?i({catch_all_rules:n(e[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:n(e.rules,`rules`)}):r(e.body)});return}let o=e.body===void 0?void 0:r(e.body),d=await t(e),h=e.local?u:await s();if(e.accountId=h,e.body!==void 0){let e=o,t=await p(`Creating`,async()=>d.send(Y,{body:e,account_id:h}));f(t,{successLabel:`Created`});return}e[`owner-worker-tag`]===void 0&&(e[`owner-worker-tag`]=await m(`owner-worker-tag`,"Public tag (script_tag) of the Worker that owns this rule. Required when `source` is `wrangler`. "));let g=i({catch_all_rules:n(e[`catch-all-rules`],`catch-all-rules`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),rules:n(e.rules,`rules`)}),_=await p(`Creating`,async()=>d.send(Y,{body:g,account_id:h}));f(_,{successLabel:`Created`})})};var X={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing/rules/${t.rule_identifier}`,body:`json`,errors:{400:`BadRequestError`,422:`UnprocessableEntityError`}};function ve(e){return e.usage(`$0 email-routing rules update <rule-identifier>
37
+
38
+ Update actions and matches, or enable/disable specific routing rules. Forward actions require exactly one verified destination address.`).positional(`rule-identifier`,{type:`string`,description:`Routing rule identifier.`,demandOption:!0}).option(`actions`,{type:`string`,description:`List actions patterns. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "drop" | "forward" | "worker", "value"?: [string]}]. ? marks optional keys.`}).option(`enabled`,{type:`boolean`,description:`Routing rule status.`}).option(`matchers`,{type:`string`,description:`Matching patterns to forward to your actions. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"type": "all" | "literal", "field"?: "to", "value"?: string}]. ? marks optional keys.`}).option(`name`,{type:`string`,description:`Routing rule name.`}).option(`owner-worker-tag`,{type:`string`,description:"Public tag (script_tag) of the Worker that owns this rule. Required when\n`source` is `wrangler`.\n"}).option(`priority`,{type:`number`,description:`Priority of the routing rule.`}).option(`source`,{type:`string`,description:"Who manages the rule. `api` covers dashboard, generic API, and Terraform;\n`wrangler` means the rule is managed by a Worker's wrangler.jsonc. Defaults\nto `api` when omitted on write.\n",choices:[`api`,`wrangler`]}).coerce(`source`,e=>l(e,`source`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ye={command:`update <rule-identifier>`,describe:`Update routing rule`,builder:ve,handler:async e=>d({command:`email-routing rules update`,classification:{safeFlags:[`enabled`,`source`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing rules update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing/rules/${e[`rule-identifier`]==null?`<rule-identifier>`:encodeURIComponent(String(e[`rule-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"rule-identifier":String(e[`rule-identifier`]??``)},bodyKind:`json`,body:e.body===void 0?i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}):r(e.body)});return}let a=e.body===void 0?void 0:r(e.body),s=await t(e),u=await o({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=u,e.body!==void 0){let t=a,n=await p(`Updating`,async()=>s.send(X,{body:t,zone_id:u,rule_identifier:e[`rule-identifier`]}));f(n,{successLabel:`Updated`});return}if(e.actions===void 0)throw Error(`--actions is required (or pass --body with this field set).`);if(e.matchers===void 0)throw Error(`--matchers is required (or pass --body with this field set).`);let d=i({actions:n(e.actions,`actions`),enabled:e.enabled,matchers:n(e.matchers,`matchers`),name:l(e.name,`name`,`text`),owner_worker_tag:l(e[`owner-worker-tag`],`owner-worker-tag`,`text`),priority:e.priority,source:e.source}),m=await p(`Updating`,async()=>s.send(X,{body:d,zone_id:u,rule_identifier:e[`rule-identifier`]}));f(m,{successLabel:`Updated`})})},be={command:`rules`,describe:`Match incoming email addresses and forward messages to destination mailboxes or Workers`,builder:e=>e.command(oe).command(le).command(fe).command(he).command(_e).command(ye).command(K).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`PUT`,path:t=>e`/zones/${t.zone_id}/email/routing`,body:`json`,errors:{403:`ForbiddenError`}};function xe(e){return e.usage(`$0 email-routing settings apply
39
+
40
+ Apply the provided settings to your Email Routing zone. Omitted settings retain their current values, as with PATCH.`).option(`enabled`,{type:`boolean`,description:"State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`."}).option(`skip-wizard`,{type:`boolean`,description:`Flag to check if the user skipped the configuration wizard.`}).option(`support-subaddress`,{type:`boolean`,description:`Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.`}).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 Q={command:`apply`,describe:`Apply Email Routing settings`,builder:xe,handler:async e=>d({command:`email-routing settings apply`,classification:{safeFlags:[`enabled`,`skip-wizard`,`support-subaddress`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing settings apply`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await p(`Updating`,async()=>a.send(Z,{body:e,zone_id:s}));f(t,{successLabel:`Updated`});return}let l=i({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}),u=await p(`Updating`,async()=>a.send(Z,{body:l,zone_id:s}));f(u,{successLabel:`Updated`})})};var Se={method:`GET`,path:t=>e`/zones/${t.zone_id}/email/routing`,errors:{403:`ForbiddenError`}};function Ce(e){return e.usage(`$0 email-routing settings get
41
+
42
+ Get information about the settings for your Email Routing zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`get`,describe:`Get Email Routing settings`,builder:Ce,handler:async e=>d({command:`email-routing settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let n=await t(e),r=await o({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r;let i=await p(`Loading`,async()=>n.send(Se,{zone_id:r}));f(i,{successLabel:`Loaded`})})};var $={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/email/routing`,body:`json`,errors:{403:`ForbiddenError`}};function Te(e){return e.usage(`$0 email-routing settings update
43
+
44
+ Update the settings for your Email Routing zone.`).option(`enabled`,{type:`boolean`,description:"State of your zone Email Routing settings. No-op on this endpoint - use `POST`/`DELETE /zones/{zone_id}/email/routing/dns`."}).option(`skip-wizard`,{type:`boolean`,description:`Flag to check if the user skipped the configuration wizard.`}).option(`support-subaddress`,{type:`boolean`,description:`Whether subaddressing (plus-addressing) is honored when matching incoming mail against routing rules.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ee={command:`update`,describe:`Update Email Routing settings`,builder:Te,handler:async e=>d({command:`email-routing settings update`,classification:{safeFlags:[`enabled`,`skip-wizard`,`support-subaddress`,`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf email-routing settings update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/email/routing`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?i({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}):r(e.body)});return}let n=e.body===void 0?void 0:r(e.body),a=await t(e),s=await o({zone:e.zone},a,{quiet:e.quiet});if(e.zoneId=s,e.body!==void 0){let e=n,t=await p(`Updating`,async()=>a.send($,{body:e,zone_id:s}));f(t,{successLabel:`Updated`});return}let l=i({enabled:e.enabled,skip_wizard:e[`skip-wizard`],support_subaddress:e[`support-subaddress`]}),u=await p(`Updating`,async()=>a.send($,{body:l,zone_id:s}));f(u,{successLabel:`Updated`})})},De={command:`settings`,describe:`Inspect and update Email Routing settings`,builder:e=>e.command(Q).command(we).command(Ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Oe={command:`email-routing`,describe:`Route incoming email to verified destination addresses or Workers with routing rules, catch-all behavior, and managed DNS records`,builder:e=>e.command(k).command(z).command(E).command(I).command(be).command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Oe as default};