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,94 +1,94 @@
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{i as n,n as r}from"./auth-B-h0BHg7.mjs";import{a as i,i as a,t as o}from"./context-BY1Eh_Qe.mjs";import{t as s}from"./output-BZQEl3mK.mjs";import{t as c}from"./dry-run-kJbjn4kG.mjs";import{t as l}from"./progress-yvPscjYg.mjs";import{t as u}from"./run-BOKI1uWa.mjs";import"./telemetry-DkDUr4KK.mjs";import{a as d,n as f,t as p}from"./body-parser-DoewLePl.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-CEpZ-lQZ.mjs";import{n as ee,t as te}from"./raw-fetch-Cl5spWC3.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
2
+ import"./api-Dnt6lRJG.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-DA1PHaHi.mjs";import{t as r}from"./dry-run-qsnRlRk6.mjs";import{a as i,i as a,t as o}from"./context-BGm5_wTT.mjs";import{t as s}from"./local-B3zt9PXR.mjs";import{t as c}from"./output-hFMAotFl.mjs";import{t as l}from"./progress-DE_G09u2.mjs";import{t as u}from"./run-CXWkMU3x.mjs";import{a as d,n as f}from"./prompt-D274Im1O.mjs";import"./telemetry-COlodX5Z.mjs";import{o as p,r as m,t as h}from"./body-parser-HN91kAf0.mjs";import{n as g,t as ee}from"./input-validation-D7z60HJH.mjs";import{n as te,t as _}from"./raw-fetch-DhlyWQtk.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ne(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
3
3
 
4
- Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ne={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:y,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Deleted`})})};var re={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
4
+ Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const re={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:ne,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));c(u,{successLabel:`Deleted`})})};var ie={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ae(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
5
5
 
6
- Add an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:ie,handler:async e=>u({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(re,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Updated`})})},oe={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(ne).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`,body:`json`};function se(e){return e.usage(`$0 addressing address-maps create
6
+ Add an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:ae,handler:async e=>u({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Updating`,async()=>t.send(ie,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));c(u,{successLabel:`Updated`})})},se={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(re).command(oe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`,body:`json`};function ce(e){return e.usage(`$0 addressing address-maps create
7
7
 
8
- Create a new address map under the account.`).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`,default:!1}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`memberships`,{type:`string`,description:`Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ce={command:`create`,describe:`Create Address Map`,builder:se,handler:async e=>u({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:d(e.memberships,`memberships`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(b,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}let h=p({description:m(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:d(e.memberships,`memberships`)}),g=await l(`Creating`,async()=>a.send(b,{body:h,account_id:u}));s(g,{successLabel:`Created`})})};var le={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function ue(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
8
+ Create a new address map under the account.`).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`,default:!1}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`memberships`,{type:`string`,description:`Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. Provide as a JSON array of objects or @path/to/file.json. Shape: [{"identifier"?: string, "kind"?: "zone" | "account"}]. ? 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 le={command:`create`,describe:`Create Address Map`,builder:ce,handler:async e=>u({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({description:g(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:p(e.memberships,`memberships`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await l(`Creating`,async()=>a.send(y,{body:e,account_id:u}));c(n,{successLabel:`Created`});return}let d=h({description:g(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:p(e.memberships,`memberships`)}),f=await l(`Creating`,async()=>a.send(y,{body:d,account_id:u}));c(f,{successLabel:`Created`})})};var ue={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function de(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
9
9
 
10
- Delete a particular address map owned by the account. An Address Map must be disabled before it can be deleted.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const de={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:ue,handler:async e=>u({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(le,{account_id:a,address_map_id:e[`address-map-id`]}));s(u,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`,body:`json`};function fe(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
10
+ Delete a particular address map owned by the account. An Address Map must be disabled before it can be deleted.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const fe={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:de,handler:async e=>u({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(ue,{account_id:a,address_map_id:e[`address-map-id`]}));c(u,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`,body:`json`};function x(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
11
11
 
12
- Modify properties of an address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`default-sni`,{type:`string`,description:`If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.`}).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:fe,handler:async e=>u({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({default_sni:m(e[`default-sni`],`default-sni`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(x,{body:t,account_id:u,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Updated`});return}let d=p({default_sni:m(e[`default-sni`],`default-sni`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled}),h=await l(`Updating`,async()=>a.send(x,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));s(h,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function w(e){return e.usage(`$0 addressing address-maps get <address-map-id>
12
+ Modify properties of an address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`default-sni`,{type:`string`,description:`If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.`}).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:x,handler:async e=>u({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({default_sni:g(e[`default-sni`],`default-sni`,`text`),description:g(e.description,`description`,`text`),enabled:e.enabled}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>a.send(b,{body:n,account_id:u,address_map_id:e[`address-map-id`]}));c(r,{successLabel:`Updated`});return}let d=h({default_sni:g(e[`default-sni`],`default-sni`,`text`),description:g(e.description,`description`,`text`),enabled:e.enabled}),f=await l(`Updating`,async()=>a.send(b,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));c(f,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function w(e){return e.usage(`$0 addressing address-maps get <address-map-id>
13
13
 
14
- Show a particular address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <address-map-id>`,describe:`Address Map Details`,builder:w,handler:async e=>u({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(C,{account_id:a,address_map_id:e[`address-map-id`]}));s(u,{successLabel:`Loaded`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function D(e){return e.usage(`$0 addressing address-maps ips delete-bulk <address-map-id>
14
+ Show a particular address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <address-map-id>`,describe:`Address Map Details`,builder:w,handler:async e=>u({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(C,{account_id:a,address_map_id:e[`address-map-id`]}));c(u,{successLabel:`Loaded`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function D(e){return e.usage(`$0 addressing address-maps ips delete-bulk <address-map-id>
15
15
 
16
- Remove multiple IPs from a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple IPs from an Address Map`,builder:D,handler:async e=>u({command:`addressing address-maps ips delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,!await _({force:!!e.force}))return;if(e.body!==void 0){let t=n,r=await l(`Deleting`,async()=>a.send(E,{body:t,account_id:u,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let d=p({ips:e.ips}),m=await l(`Deleting`,async()=>a.send(E,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));s(m,{successLabel:`Deleted`})})};var k={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
16
+ Remove multiple IPs from a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple IPs from an Address Map`,builder:D,handler:async e=>u({command:`addressing address-maps ips delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps ips delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({ips:e.ips}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,!await f({force:!!e.force}))return;if(e.body!==void 0){let n=t,r=await l(`Deleting`,async()=>a.send(E,{body:n,account_id:u,address_map_id:e[`address-map-id`]}));c(r,{successLabel:`Deleted`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let d=h({ips:e.ips}),p=await l(`Deleting`,async()=>a.send(E,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));c(p,{successLabel:`Deleted`})})};var k={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
17
17
 
18
- Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(k,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Deleted`})})};var M={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function N(e){return e.usage(`$0 addressing address-maps ips update-bulk <address-map-id>
18
+ Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(k,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));c(u,{successLabel:`Deleted`})})};var M={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function N(e){return e.usage(`$0 addressing address-maps ips update-bulk <address-map-id>
19
19
 
20
- Add multiple IPs to a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`update-bulk <address-map-id>`,describe:`Add Multiple IPs to an Address Map`,builder:N,handler:async e=>u({command:`addressing address-maps ips update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Creating`,async()=>a.send(M,{body:t,account_id:u,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let d=p({ips:e.ips}),m=await l(`Creating`,async()=>a.send(M,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));s(m,{successLabel:`Created`})})};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function I(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
20
+ Add multiple IPs to a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`update-bulk <address-map-id>`,describe:`Add Multiple IPs to an Address Map`,builder:N,handler:async e=>u({command:`addressing address-maps ips update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps ips update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({ips:e.ips}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Creating`,async()=>a.send(M,{body:n,account_id:u,address_map_id:e[`address-map-id`]}));c(r,{successLabel:`Created`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let d=h({ips:e.ips}),f=await l(`Creating`,async()=>a.send(M,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));c(f,{successLabel:`Created`})})};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function I(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
21
21
 
22
- Add an IP from a prefix owned by the account to a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:I,handler:async e=>u({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(F,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Updated`})})},R={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(O).command(L).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`};function B(e){return e.usage(`$0 addressing address-maps list
22
+ Add an IP from a prefix owned by the account to a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:I,handler:async e=>u({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps ips update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Updating`,async()=>t.send(F,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));c(u,{successLabel:`Updated`})})},R={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(O).command(L).command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var z={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`};function B(e){return e.usage(`$0 addressing address-maps list
23
23
 
24
- List all address maps owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List Address Maps`,builder:B,handler:async e=>u({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(z,{account_id:a}));s(u,{successLabel:`Loaded`})})};var H={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function pe(e){return e.usage(`$0 addressing address-maps zones delete-bulk <address-map-id>
24
+ List all address maps owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List Address Maps`,builder:B,handler:async e=>u({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(z,{account_id:a}));c(u,{successLabel:`Loaded`})})};var H={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function pe(e){return e.usage(`$0 addressing address-maps zones delete-bulk <address-map-id>
25
25
 
26
- Remove multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const me={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple Zones from an Address Map`,builder:pe,handler:async e=>u({command:`addressing address-maps zones delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,!await _({force:!!e.force}))return;if(e.body!==void 0){let t=n,r=await l(`Deleting`,async()=>a.send(H,{body:t,account_id:u,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=p({zones:e.zones}),m=await l(`Deleting`,async()=>a.send(H,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));s(m,{successLabel:`Deleted`})})};var he={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function ge(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
26
+ Remove multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const me={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple Zones from an Address Map`,builder:pe,handler:async e=>u({command:`addressing address-maps zones delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps zones delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({zones:e.zones}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,!await f({force:!!e.force}))return;if(e.body!==void 0){let n=t,r=await l(`Deleting`,async()=>a.send(H,{body:n,account_id:u,address_map_id:e[`address-map-id`]}));c(r,{successLabel:`Deleted`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=h({zones:e.zones}),p=await l(`Deleting`,async()=>a.send(H,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));c(p,{successLabel:`Deleted`})})};var he={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function ge(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
27
27
 
28
- Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(he,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function ve(e){return e.usage(`$0 addressing address-maps zones update-bulk <address-map-id>
28
+ Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(he,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));c(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function ve(e){return e.usage(`$0 addressing address-maps zones update-bulk <address-map-id>
29
29
 
30
- Add multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ye={command:`update-bulk <address-map-id>`,describe:`Add Multiple Zones to an Address Map`,builder:ve,handler:async e=>u({command:`addressing address-maps zones update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Creating`,async()=>a.send(U,{body:t,account_id:u,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=p({zones:e.zones}),m=await l(`Creating`,async()=>a.send(U,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));s(m,{successLabel:`Created`})})};var be={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function xe(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
30
+ Add multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ye={command:`update-bulk <address-map-id>`,describe:`Add Multiple Zones to an Address Map`,builder:ve,handler:async e=>u({command:`addressing address-maps zones update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps zones update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({zones:e.zones}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Creating`,async()=>a.send(U,{body:n,account_id:u,address_map_id:e[`address-map-id`]}));c(r,{successLabel:`Created`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let d=h({zones:e.zones}),f=await l(`Creating`,async()=>a.send(U,{body:d,account_id:u,address_map_id:e[`address-map-id`]}));c(f,{successLabel:`Created`})})};var be={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function xe(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
31
31
 
32
- Add a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:xe,handler:async e=>u({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(be,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Updated`})})},Ce={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(_e).command(me).command(Se).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},we={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(ce).command(de).command(S).command(T).command(V).command(oe).command(R).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/leases`};function Ee(e){return e.usage(`$0 addressing leases list
32
+ Add a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Se={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:xe,handler:async e=>u({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing address-maps zones update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Updating`,async()=>t.send(be,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));c(u,{successLabel:`Updated`})})},Ce={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(_e).command(me).command(Se).command(ye).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},we={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(le).command(fe).command(S).command(T).command(V).command(se).command(R).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Te={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/leases`};function Ee(e){return e.usage(`$0 addressing leases list
33
33
 
34
- List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`list`,describe:`List Leases`,builder:Ee,handler:async e=>u({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Te,{account_id:a}));s(u,{successLabel:`Loaded`})})},Oe={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ke(e){return e.usage(`$0 addressing loa-documents create
34
+ List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const De={command:`list`,describe:`List Leases`,builder:Ee,handler:async e=>u({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(Te,{account_id:a}));c(u,{successLabel:`Loaded`})})},Oe={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(De).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ke(e){return e.usage(`$0 addressing loa-documents create
35
35
 
36
- Submit LOA document (pdf format) under the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`loa-document`,{type:`string`,description:`LOA document to upload.`})}const Ae={command:`create`,describe:`Upload LOA Document`,builder:ke,handler:async e=>u({command:`addressing loa-documents create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing loa-documents create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file,"loa-document":e[`loa-document`]}});return}if(e.body===void 0&&e.file===void 0&&e[`loa-document`]===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e[`loa-document`]!==void 0){let t=new FormData;if(e.file!==void 0){let n=h(e.file);t.append(`file`,new Blob([n]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&t.append(`file`,e.body);e[`loa-document`]!==void 0&&t.append(`loa_document`,String(m(e[`loa-document`],`loa-document`,`text`)??``));let r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:t}));s(r,{successLabel:`Created`})}else if(e.body!==void 0){let t=m(e.body,`body`,`binary`),r=await l(`Creating`,async()=>n(a,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:t,headers:{"Content-Type":`multipart/form-data`}}));s(r,{successLabel:`Created`})}})};function je(e){return e.usage(`$0 addressing loa-documents get <loa-document-id>
36
+ Submit LOA document (pdf format) under the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).option(`file`,{type:`string`,description:`Path to a file to upload as the request body`}).option(`loa-document`,{type:`string`,description:`LOA document to upload.`})}const Ae={command:`create`,describe:`Upload LOA Document`,builder:ke,handler:async e=>u({command:`addressing loa-documents create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing loa-documents create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`multipart`,body:{body:e.body,file:e.file,"loa-document":e[`loa-document`]}});return}if(e.body===void 0&&e.file===void 0&&e[`loa-document`]===void 0)throw Error(`--body or --file is required for this command. Pass --body '<value>' or --file path/to/file.`);let a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.file!==void 0||e.body!==void 0||e[`loa-document`]!==void 0){let n=new FormData;if(e.file!==void 0){let t=ee(e.file);n.append(`file`,new Blob([t]),e.file.split(/[\\/]/).filter(Boolean).pop())}else e.body!==void 0&&n.append(`file`,e.body);e[`loa-document`]!==void 0&&n.append(`loa_document`,String(g(e[`loa-document`],`loa-document`,`text`)??``));let r=await l(`Creating`,async()=>t(a,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:n}));c(r,{successLabel:`Created`})}else if(e.body!==void 0){let n=g(e.body,`body`,`binary`),r=await l(`Creating`,async()=>t(a,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:n,headers:{"Content-Type":`multipart/form-data`}}));c(r,{successLabel:`Created`})}})};function je(e){return e.usage(`$0 addressing loa-documents get <loa-document-id>
37
37
 
38
- Download specified LOA document under the account.`).positional(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Me={command:`get <loa-document-id>`,describe:`Download LOA Document`,builder:je,handler:async e=>u({command:`addressing loa-documents get`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing loa-documents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/loa_documents/${e[`loa-document-id`]==null?`<loa-document-id>`:encodeURIComponent(String(e[`loa-document-id`]))}/download`,pathParams:{"loa-document-id":String(e[`loa-document-id`]??``)},bodyKind:`none`});return}await r(e);let n=e.local?t:await o();e.accountId=n;let a=await l(`Loading`,async()=>te(`/accounts/${n}/addressing/loa_documents/${encodeURIComponent(String(e[`loa-document-id`]))}/download`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));ee(e.text===!0?a.toString(`utf-8`):a)})};var Ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/loa_documents`};function Pe(e){return e.usage(`$0 addressing loa-documents list
38
+ Download specified LOA document under the account.`).positional(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const Me={command:`get <loa-document-id>`,describe:`Download LOA Document`,builder:je,handler:async e=>u({command:`addressing loa-documents get`,classification:{safeFlags:[`dry-run`,`text`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing loa-documents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/loa_documents/${e[`loa-document-id`]==null?`<loa-document-id>`:encodeURIComponent(String(e[`loa-document-id`]))}/download`,pathParams:{"loa-document-id":String(e[`loa-document-id`]??``)},bodyKind:`none`});return}await n(e);let t=e.local?s:await o();e.accountId=t;let a=await l(`Loading`,async()=>_(`/accounts/${t}/addressing/loa_documents/${encodeURIComponent(String(e[`loa-document-id`]))}/download`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));te(e.text===!0?a.toString(`utf-8`):a)})};var Ne={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/loa_documents`};function Pe(e){return e.usage(`$0 addressing loa-documents list
39
39
 
40
- List all LOA documents uploaded under the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`List LOA Documents`,builder:Pe,handler:async e=>u({command:`addressing loa-documents list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing loa-documents list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Ne,{account_id:a}));s(u,{successLabel:`Loaded`})})},Ie={command:`loa-documents`,describe:`Operations for loa-documents`,builder:e=>e.command(Ae).command(Me).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var W={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/status`,body:`json`};function Le(e){return e.usage(`$0 addressing prefixes advertisement-status edit <prefix-id>
40
+ List all LOA documents uploaded under the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`list`,describe:`List LOA Documents`,builder:Pe,handler:async e=>u({command:`addressing loa-documents list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing loa-documents list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(Ne,{account_id:a}));c(u,{successLabel:`Loaded`})})},Ie={command:`loa-documents`,describe:`Operations for loa-documents`,builder:e=>e.command(Ae).command(Me).command(Fe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var W={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/status`,body:`json`};function Le(e){return e.usage(`$0 addressing prefixes advertisement-status edit <prefix-id>
41
41
 
42
- Advertise or withdraw the BGP route for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`advertised`,{type:`boolean`,description:"Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If \n`false`, the BGP route is withdrawn.\n"}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Re={command:`edit <prefix-id>`,describe:`Update Prefix Dynamic Advertisement Status`,builder:Le,handler:async e=>u({command:`addressing prefixes advertisement-status edit`,classification:{safeFlags:[`advertised`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes advertisement-status edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({advertised:e.advertised}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(W,{body:t,account_id:u,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Updated`});return}if(e.advertised===void 0)throw Error(`--advertised is required (or pass --body with this field set).`);let d=p({advertised:e.advertised}),m=await l(`Updating`,async()=>a.send(W,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));s(m,{successLabel:`Updated`})})};var ze={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/status`};function Be(e){return e.usage(`$0 addressing prefixes advertisement-status get <prefix-id>
42
+ Advertise or withdraw the BGP route for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`advertised`,{type:`boolean`,description:"Advertisement status of the prefix. If `true`, the BGP route for the prefix is advertised to the Internet. If \n`false`, the BGP route is withdrawn.\n"}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Re={command:`edit <prefix-id>`,describe:`Update Prefix Dynamic Advertisement Status`,builder:Le,handler:async e=>u({command:`addressing prefixes advertisement-status edit`,classification:{safeFlags:[`advertised`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes advertisement-status edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({advertised:e.advertised}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>a.send(W,{body:n,account_id:u,prefix_id:e[`prefix-id`]}));c(r,{successLabel:`Updated`});return}if(e.advertised===void 0)throw Error(`--advertised is required (or pass --body with this field set).`);let d=h({advertised:e.advertised}),f=await l(`Updating`,async()=>a.send(W,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));c(f,{successLabel:`Updated`})})};var ze={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/status`};function Be(e){return e.usage(`$0 addressing prefixes advertisement-status get <prefix-id>
43
43
 
44
- View the current advertisement state for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ve={command:`get <prefix-id>`,describe:`Get Advertisement Status`,builder:Be,handler:async e=>u({command:`addressing prefixes advertisement-status get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes advertisement-status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ze,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},He={command:`advertisement-status`,describe:`Operations for prefixes.advertisement-status`,builder:e=>e.command(Re).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes`,body:`json`};function Ue(e){return e.usage(`$0 addressing prefixes bgp-prefixes create <prefix-id>
44
+ View the current advertisement state for a prefix. **Deprecated:** Prefer the BGP Prefixes endpoints, which additionally allow for advertising and withdrawing subnets of an IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ve={command:`get <prefix-id>`,describe:`Get Advertisement Status`,builder:Be,handler:async e=>u({command:`addressing prefixes advertisement-status get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes advertisement-status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(ze,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Loaded`})})},He={command:`advertisement-status`,describe:`Operations for prefixes.advertisement-status`,builder:e=>e.command(Re).command(Ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes`,body:`json`};function Ue(e){return e.usage(`$0 addressing prefixes bgp-prefixes create <prefix-id>
45
45
 
46
- Create a BGP prefix, controlling the BGP advertisement status of a specific subnet. When created, BGP prefixes are initially withdrawn, and can be advertised with the Update BGP Prefix API.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`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 We={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:Ue,handler:async e=>u({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Creating`,async()=>a.send(G,{body:t,account_id:u,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=p({cidr:m(e.cidr,`cidr`,`text`)}),h=await l(`Creating`,async()=>a.send(G,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));s(h,{successLabel:`Created`})})};var Ge={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ke(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
46
+ Create a BGP prefix, controlling the BGP advertisement status of a specific subnet. When created, BGP prefixes are initially withdrawn, and can be advertised with the Update BGP Prefix API.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`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 We={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:Ue,handler:async e=>u({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({cidr:g(e.cidr,`cidr`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Creating`,async()=>a.send(G,{body:n,account_id:u,prefix_id:e[`prefix-id`]}));c(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await d(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let f=h({cidr:g(e.cidr,`cidr`,`text`)}),p=await l(`Creating`,async()=>a.send(G,{body:f,account_id:u,prefix_id:e[`prefix-id`]}));c(p,{successLabel:`Created`})})};var Ge={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ke(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
47
47
 
48
- Delete a BGP Prefix associated with the specified IP Prefix. A BGP Prefix must be withdrawn before it can be deleted.`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const qe={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:Ke,handler:async e=>u({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Ge,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(u,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`,body:`json`};function Je(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
48
+ Delete a BGP Prefix associated with the specified IP Prefix. A BGP Prefix must be withdrawn before it can be deleted.`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const qe={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:Ke,handler:async e=>u({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(Ge,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));c(u,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`,body:`json`};function Je(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
49
49
 
50
- Update the properties of a BGP Prefix, such as the on demand advertisement status (advertised or withdrawn).`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`asn-prepend-count`,{type:`number`,description:`Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute`}).option(`auto-advertise-withdraw`,{type:`boolean`,description:`Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.`}).option(`on-demand-advertised`,{type:`boolean`,description:`The on_demand.advertised field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ye={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:Je,handler:async e=>u({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(K,{body:t,account_id:u,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(r,{successLabel:`Updated`});return}let d=p({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}),m=await l(`Updating`,async()=>a.send(K,{body:d,account_id:u,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(m,{successLabel:`Updated`})})};var Xe={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ze(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
50
+ Update the properties of a BGP Prefix, such as the on demand advertisement status (advertised or withdrawn).`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`asn-prepend-count`,{type:`number`,description:`Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute`}).option(`auto-advertise-withdraw`,{type:`boolean`,description:`Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.`}).option(`on-demand-advertised`,{type:`boolean`,description:`The on_demand.advertised field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ye={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:Je,handler:async e=>u({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>a.send(K,{body:n,account_id:u,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));c(r,{successLabel:`Updated`});return}let d=h({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}),f=await l(`Updating`,async()=>a.send(K,{body:d,account_id:u,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));c(f,{successLabel:`Updated`})})};var Xe={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ze(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
51
51
 
52
- Retrieve a single BGP Prefix according to its identifier`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`get <bgp-prefix-id>`,describe:`Fetch BGP Prefix`,builder:Ze,handler:async e=>u({command:`addressing prefixes bgp-prefixes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Xe,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(u,{successLabel:`Loaded`})})};var $e={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes`};function et(e){return e.usage(`$0 addressing prefixes bgp-prefixes list
52
+ Retrieve a single BGP Prefix according to its identifier`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`get <bgp-prefix-id>`,describe:`Fetch BGP Prefix`,builder:Ze,handler:async e=>u({command:`addressing prefixes bgp-prefixes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes bgp-prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(Xe,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));c(u,{successLabel:`Loaded`})})};var $e={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes`};function et(e){return e.usage(`$0 addressing prefixes bgp-prefixes list
53
53
 
54
- List all BGP Prefixes within the specified IP Prefix. BGP Prefixes are used to control which specific subnets are advertised to the Internet. It is possible to advertise subnets more specific than an IP Prefix by creating more specific BGP Prefixes.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const tt={command:`list`,describe:`List BGP Prefixes`,builder:et,handler:async e=>u({command:`addressing prefixes bgp-prefixes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send($e,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},nt={command:`bgp-prefixes`,describe:`Operations for prefixes.bgp-prefixes`,builder:e=>e.command(We).command(qe).command(Ye).command(Qe).command(tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes`,body:`json`};function rt(e){return e.usage(`$0 addressing prefixes create
54
+ List all BGP Prefixes within the specified IP Prefix. BGP Prefixes are used to control which specific subnets are advertised to the Internet. It is possible to advertise subnets more specific than an IP Prefix by creating more specific BGP Prefixes.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const tt={command:`list`,describe:`List BGP Prefixes`,builder:et,handler:async e=>u({command:`addressing prefixes bgp-prefixes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes bgp-prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send($e,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Loaded`})})},nt={command:`bgp-prefixes`,describe:`Operations for prefixes.bgp-prefixes`,builder:e=>e.command(We).command(qe).command(Ye).command(Qe).command(tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes`,body:`json`};function rt(e){return e.usage(`$0 addressing prefixes create
55
55
 
56
- Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`Autonomous System Number (ASN) the prefix will be advertised under. Use 13335 for Cloudflare's ASN, or your own ASN as an integer without the AS prefix. The IRR route and RPKI ROA must authorize this ASN.`}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegate-loa-creation`,{type:`boolean`,description:`Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.`,default:!1}).option(`description`,{type:`string`,description:`Description of the prefix.`}).option(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const it={command:`create`,describe:`Add Prefix`,builder:rt,handler:async e=>u({command:`addressing prefixes create`,classification:{safeFlags:[`delegate-loa-creation`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({asn:e.asn,cidr:m(e.cidr,`cidr`,`text`),delegate_loa_creation:e[`delegate-loa-creation`],description:m(e.description,`description`,`text`),loa_document_id:m(e[`loa-document-id`],`loa-document-id`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let e=n,t=await l(`Creating`,async()=>a.send(q,{body:e,account_id:u}));s(t,{successLabel:`Created`});return}if(e.asn===void 0)throw Error(`--asn is required (or pass --body with this field set).`);e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=p({asn:e.asn,cidr:m(e.cidr,`cidr`,`text`),delegate_loa_creation:e[`delegate-loa-creation`],description:m(e.description,`description`,`text`),loa_document_id:m(e[`loa-document-id`],`loa-document-id`,`text`)}),h=await l(`Creating`,async()=>a.send(q,{body:d,account_id:u}));s(h,{successLabel:`Created`})})};var J={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`,body:`json`};function at(e){return e.usage(`$0 addressing prefixes delegations create <prefix-id>
56
+ Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`Autonomous System Number (ASN) the prefix will be advertised under. Use 13335 for Cloudflare's ASN, or your own ASN as an integer without the AS prefix. The IRR route and RPKI ROA must authorize this ASN.`}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegate-loa-creation`,{type:`boolean`,description:`Whether Cloudflare is allowed to generate the LOA document on behalf of the prefix owner.`,default:!1}).option(`description`,{type:`string`,description:`Description of the prefix.`}).option(`loa-document-id`,{type:`string`,description:`Identifier for the uploaded LOA document.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const it={command:`create`,describe:`Add Prefix`,builder:rt,handler:async e=>u({command:`addressing prefixes create`,classification:{safeFlags:[`delegate-loa-creation`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({asn:e.asn,cidr:g(e.cidr,`cidr`,`text`),delegate_loa_creation:e[`delegate-loa-creation`],description:g(e.description,`description`,`text`),loa_document_id:g(e[`loa-document-id`],`loa-document-id`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let e=t,n=await l(`Creating`,async()=>a.send(q,{body:e,account_id:u}));c(n,{successLabel:`Created`});return}if(e.asn===void 0)throw Error(`--asn is required (or pass --body with this field set).`);e.cidr===void 0&&(e.cidr=await d(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let f=h({asn:e.asn,cidr:g(e.cidr,`cidr`,`text`),delegate_loa_creation:e[`delegate-loa-creation`],description:g(e.description,`description`,`text`),loa_document_id:g(e[`loa-document-id`],`loa-document-id`,`text`)}),p=await l(`Creating`,async()=>a.send(q,{body:f,account_id:u}));c(p,{successLabel:`Created`})})};var J={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`,body:`json`};function at(e){return e.usage(`$0 addressing prefixes delegations create <prefix-id>
57
57
 
58
- Create a new account delegation for a given IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegated-account-id`,{type:`string`,description:`Account identifier for the account to which prefix is being delegated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ot={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:at,handler:async e=>u({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Creating`,async()=>a.send(J,{body:t,account_id:u,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`delegated-account-id`]===void 0&&(e[`delegated-account-id`]=await g(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let d=p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}),h=await l(`Creating`,async()=>a.send(J,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));s(h,{successLabel:`Created`})})};var st={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations/${t.delegation_id}`};function ct(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
58
+ Create a new account delegation for a given IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegated-account-id`,{type:`string`,description:`Account identifier for the account to which prefix is being delegated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ot={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:at,handler:async e=>u({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({cidr:g(e.cidr,`cidr`,`text`),delegated_account_id:g(e[`delegated-account-id`],`delegated-account-id`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Creating`,async()=>a.send(J,{body:n,account_id:u,prefix_id:e[`prefix-id`]}));c(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await d(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`delegated-account-id`]===void 0&&(e[`delegated-account-id`]=await d(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let f=h({cidr:g(e.cidr,`cidr`,`text`),delegated_account_id:g(e[`delegated-account-id`],`delegated-account-id`,`text`)}),p=await l(`Creating`,async()=>a.send(J,{body:f,account_id:u,prefix_id:e[`prefix-id`]}));c(p,{successLabel:`Created`})})};var st={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations/${t.delegation_id}`};function ct(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
59
59
 
60
- Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"delegation-id":String(e[`delegation-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(st,{account_id:a,prefix_id:e[`prefix-id`],delegation_id:e[`delegation-id`]}));s(u,{successLabel:`Deleted`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`};function dt(e){return e.usage(`$0 addressing prefixes delegations list
60
+ Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"delegation-id":String(e[`delegation-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(st,{account_id:a,prefix_id:e[`prefix-id`],delegation_id:e[`delegation-id`]}));c(u,{successLabel:`Deleted`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`};function dt(e){return e.usage(`$0 addressing prefixes delegations list
61
61
 
62
- List all delegations for a given account IP prefix.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`list`,describe:`List Prefix Delegations`,builder:dt,handler:async e=>u({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ut,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},pt={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ot).command(lt).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function ht(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
62
+ List all delegations for a given account IP prefix.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`list`,describe:`List Prefix Delegations`,builder:dt,handler:async e=>u({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(ut,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Loaded`})})},pt={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ot).command(lt).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function ht(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
63
63
 
64
- Delete an unapproved prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const gt={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:ht,handler:async e=>u({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(mt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`,body:`json`};function _t(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
64
+ Delete an unapproved prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const gt={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:ht,handler:async e=>u({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(mt,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`,body:`json`};function _t(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
65
65
 
66
- Modify the description for a prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the prefix.`}).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 vt={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:_t,handler:async e=>u({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Updating`,async()=>a.send(Y,{body:t,account_id:u,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Updated`});return}e.description===void 0&&(e.description=await g(`description`,`Description of the prefix.`));let d=p({description:m(e.description,`description`,`text`)}),h=await l(`Updating`,async()=>a.send(Y,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));s(h,{successLabel:`Updated`})})};var yt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function bt(e){return e.usage(`$0 addressing prefixes get <prefix-id>
66
+ Modify the description for a prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the prefix.`}).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 vt={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:_t,handler:async e=>u({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({description:g(e.description,`description`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>a.send(Y,{body:n,account_id:u,prefix_id:e[`prefix-id`]}));c(r,{successLabel:`Updated`});return}e.description===void 0&&(e.description=await d(`description`,`Description of the prefix.`));let f=h({description:g(e.description,`description`,`text`)}),p=await l(`Updating`,async()=>a.send(Y,{body:f,account_id:u,prefix_id:e[`prefix-id`]}));c(p,{successLabel:`Updated`})})};var yt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function bt(e){return e.usage(`$0 addressing prefixes get <prefix-id>
67
67
 
68
- List a particular prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xt={command:`get <prefix-id>`,describe:`Prefix Details`,builder:bt,handler:async e=>u({command:`addressing prefixes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(yt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})};var St={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes`};function Ct(e){return e.usage(`$0 addressing prefixes list
68
+ List a particular prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const xt={command:`get <prefix-id>`,describe:`Prefix Details`,builder:bt,handler:async e=>u({command:`addressing prefixes get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(yt,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Loaded`})})};var St={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes`};function Ct(e){return e.usage(`$0 addressing prefixes list
69
69
 
70
- List all prefixes owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wt={command:`list`,describe:`List Prefixes`,builder:Ct,handler:async e=>u({command:`addressing prefixes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(St,{account_id:a}));s(u,{successLabel:`Loaded`})})};var X={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`,body:`json`};function Tt(e){return e.usage(`$0 addressing prefixes service-bindings create <prefix-id>
70
+ List all prefixes owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const wt={command:`list`,describe:`List Prefixes`,builder:Ct,handler:async e=>u({command:`addressing prefixes list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(St,{account_id:a}));c(u,{successLabel:`Loaded`})})};var X={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`,body:`json`};function Tt(e){return e.usage(`$0 addressing prefixes service-bindings create <prefix-id>
71
71
 
72
72
  Creates a new Service Binding, routing traffic to IPs within the given CIDR to a service running on Cloudflare's network. **NOTE:** The first Service Binding created for an IP Prefix must exactly match the IP Prefix's CIDR. Subsequent Service Bindings may be created with a more-specific CIDR. Refer to the [Service Bindings Documentation](https://developers.cloudflare.com/byoip/service-bindings/) for compatibility details.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`service-id`,{type:`string`,description:`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the
73
73
  **List Services** endpoint.
74
- `}).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 Et={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Tt,handler:async e=>u({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`),service_id:m(e[`service-id`],`service-id`,`text`)}):f(e.body)});return}let n=e.body===void 0?void 0:f(e.body),a=await r(e),u=e.local?t:await o();if(e.accountId=u,e.body!==void 0){let t=n,r=await l(`Creating`,async()=>a.send(X,{body:t,account_id:u,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`service-id`]===void 0&&(e[`service-id`]=await g(`service-id`,`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the **List Services** endpoint. `));let d=p({cidr:m(e.cidr,`cidr`,`text`),service_id:m(e[`service-id`],`service-id`,`text`)}),h=await l(`Creating`,async()=>a.send(X,{body:d,account_id:u,prefix_id:e[`prefix-id`]}));s(h,{successLabel:`Created`})})};var Dt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function Ot(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
74
+ `}).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 Et={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Tt,handler:async e=>u({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({cidr:g(e.cidr,`cidr`,`text`),service_id:g(e[`service-id`],`service-id`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),a=await n(e),u=e.local?s:await o();if(e.accountId=u,e.body!==void 0){let n=t,r=await l(`Creating`,async()=>a.send(X,{body:n,account_id:u,prefix_id:e[`prefix-id`]}));c(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await d(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`service-id`]===void 0&&(e[`service-id`]=await d(`service-id`,`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the **List Services** endpoint. `));let f=h({cidr:g(e.cidr,`cidr`,`text`),service_id:g(e[`service-id`],`service-id`,`text`)}),p=await l(`Creating`,async()=>a.send(X,{body:f,account_id:u,prefix_id:e[`prefix-id`]}));c(p,{successLabel:`Created`})})};var Dt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function Ot(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
75
75
 
76
- Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const kt={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Ot,handler:async e=>u({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Dt,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Deleted`})})};var At={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function jt(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
76
+ Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const kt={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Ot,handler:async e=>u({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();if(e.accountId=a,!await f({force:!!e.force}))return;let u=await l(`Deleting`,async()=>t.send(Dt,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));c(u,{successLabel:`Deleted`})})};var At={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function jt(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
77
77
 
78
- Fetch a single Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mt={command:`get <binding-id>`,describe:`Get Service Binding`,builder:jt,handler:async e=>u({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(At,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Loaded`})})};var Nt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`};function Pt(e){return e.usage("$0 addressing prefixes service-bindings list\n\nList the Cloudflare services this prefix is currently bound to. Traffic sent to an address within an IP prefix will be routed to the Cloudflare service of the most-specific Service Binding matching the address. **Example:** binding `192.0.2.0/24` to Cloudflare Magic Transit and `192.0.2.1/32` to the Cloudflare CDN would route traffic for `192.0.2.1` to the CDN, and traffic for all other IPs in the prefix to Cloudflare Magic Transit.").option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ft={command:`list`,describe:`List Service Bindings`,builder:Pt,handler:async e=>u({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Nt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},It={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Et).command(kt).command(Mt).command(Ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Lt={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/validate`};function Rt(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
78
+ Fetch a single Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mt={command:`get <binding-id>`,describe:`Get Service Binding`,builder:jt,handler:async e=>u({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(At,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));c(u,{successLabel:`Loaded`})})};var Nt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`};function Pt(e){return e.usage("$0 addressing prefixes service-bindings list\n\nList the Cloudflare services this prefix is currently bound to. Traffic sent to an address within an IP prefix will be routed to the Cloudflare service of the most-specific Service Binding matching the address. **Example:** binding `192.0.2.0/24` to Cloudflare Magic Transit and `192.0.2.1/32` to the Cloudflare CDN would route traffic for `192.0.2.1` to the CDN, and traffic for all other IPs in the prefix to Cloudflare Magic Transit.").option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ft={command:`list`,describe:`List Service Bindings`,builder:Pt,handler:async e=>u({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(Nt,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Loaded`})})},It={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Et).command(kt).command(Mt).command(Ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Lt={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/validate`};function Rt(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
79
79
 
80
- Triggers a new prefix validation. The checks run asynchronously and include IRR, RPKI, prefix ownership, and, when applicable, ASN ownership and Autonomous System Provider Authorization (ASPA). Use Prefix Details to monitor the results. Approval does not advertise the prefix or activate traffic.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:Rt,handler:async e=>u({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Creating`,async()=>n.send(Lt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Created`})})},Bt={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Vt={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(it).command(gt).command(vt).command(xt).command(wt).command(He).command(nt).command(pt).command(It).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`,body:`json`};function Ht(e){return e.usage(`$0 addressing regional-hostnames create
80
+ Triggers a new prefix validation. The checks run asynchronously and include IRR, RPKI, prefix ownership, and, when applicable, ASN ownership and Autonomous System Provider Authorization (ASPA). Use Prefix Details to monitor the results. Approval does not advertise the prefix or activate traffic.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const zt={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:Rt,handler:async e=>u({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();r({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Creating`,async()=>t.send(Lt,{account_id:a,prefix_id:e[`prefix-id`]}));c(u,{successLabel:`Created`})})},Bt={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(zt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Vt={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(it).command(gt).command(vt).command(xt).command(wt).command(He).command(nt).command(pt).command(It).command(Bt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`POST`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`,body:`json`};function Ht(e){return e.usage(`$0 addressing regional-hostnames create
81
81
 
82
- Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ut={command:`create`,describe:`Create Regional Hostname`,builder:Ht,handler:async e=>u({command:`addressing regional-hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let e=t,r=await l(`Creating`,async()=>n.send(Z,{body:e,zone_id:i}));s(r,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await g(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let o=p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}),u=await l(`Creating`,async()=>n.send(Z,{body:o,zone_id:i}));s(u,{successLabel:`Created`})})};var Wt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Gt(e){return e.usage(`$0 addressing regional-hostnames delete <hostname>
82
+ Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ut={command:`create`,describe:`Create Regional Hostname`,builder:Ht,handler:async e=>u({command:`addressing regional-hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf addressing regional-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({hostname:g(e.hostname,`hostname`,`text`),region_key:g(e[`region-key`],`region-key`,`text`),routing:g(e.routing,`routing`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let e=t,n=await l(`Creating`,async()=>i.send(Z,{body:e,zone_id:o}));c(n,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await d(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await d(`region-key`,`Identifying key for the region`));let s=h({hostname:g(e.hostname,`hostname`,`text`),region_key:g(e[`region-key`],`region-key`,`text`),routing:g(e.routing,`routing`,`text`)}),u=await l(`Creating`,async()=>i.send(Z,{body:s,zone_id:o}));c(u,{successLabel:`Created`})})};var Wt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Gt(e){return e.usage(`$0 addressing regional-hostnames delete <hostname>
83
83
 
84
- Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(Wt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional-hostnames edit <hostname>
84
+ Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){r({command:`cf addressing regional-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=i,!await f({force:!!e.force}))return;let o=await l(`Deleting`,async()=>t.send(Wt,{zone_id:i,hostname:e.hostname}));c(o,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional-hostnames edit <hostname>
85
85
 
86
- Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Jt={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:qt,handler:async e=>u({command:`addressing regional-hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?p({region_key:m(e[`region-key`],`region-key`,`text`)}):f(e.body)});return}let t=e.body===void 0?void 0:f(e.body),n=await r(e),i=await a({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=i,e.body!==void 0){let r=t,a=await l(`Updating`,async()=>n.send(Q,{body:r,zone_id:i,hostname:e.hostname}));s(a,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let o=p({region_key:m(e[`region-key`],`region-key`,`text`)}),u=await l(`Updating`,async()=>n.send(Q,{body:o,zone_id:i,hostname:e.hostname}));s(u,{successLabel:`Updated`})})};var Yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Xt(e){return e.usage(`$0 addressing regional-hostnames get <hostname>
86
+ Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Jt={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:qt,handler:async e=>u({command:`addressing regional-hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf addressing regional-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?h({region_key:g(e[`region-key`],`region-key`,`text`)}):m(e.body)});return}let t=e.body===void 0?void 0:m(e.body),i=await n(e),o=await a({zone:e.zone},i,{quiet:e.quiet});if(e.zoneId=o,e.body!==void 0){let n=t,r=await l(`Updating`,async()=>i.send(Q,{body:n,zone_id:o,hostname:e.hostname}));c(r,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await d(`region-key`,`Identifying key for the region`));let s=h({region_key:g(e[`region-key`],`region-key`,`text`)}),u=await l(`Updating`,async()=>i.send(Q,{body:s,zone_id:o,hostname:e.hostname}));c(u,{successLabel:`Updated`})})};var Yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Xt(e){return e.usage(`$0 addressing regional-hostnames get <hostname>
87
87
 
88
- Fetch the configuration for a specific Regional Hostname, within a zone.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Xt,handler:async e=>u({command:`addressing regional-hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Yt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`};function $t(e){return e.usage(`$0 addressing regional-hostnames list
88
+ Fetch the configuration for a specific Regional Hostname, within a zone.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Zt={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Xt,handler:async e=>u({command:`addressing regional-hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf addressing regional-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>t.send(Yt,{zone_id:i,hostname:e.hostname}));c(o,{successLabel:`Loaded`})})};var Qt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames`};function $t(e){return e.usage(`$0 addressing regional-hostnames list
89
89
 
90
- List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Regional Hostnames`,builder:$t,handler:async e=>u({command:`addressing regional-hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=n;let i=await l(`Loading`,async()=>t.send(Qt,{zone_id:n}));s(i,{successLabel:`Loaded`})})};var en={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/regional_hostnames/regions`};function tn(e){return e.usage(`$0 addressing regional-hostnames regions list
90
+ List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $={command:`list`,describe:`List Regional Hostnames`,builder:$t,handler:async e=>u({command:`addressing regional-hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){r({command:`cf addressing regional-hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),i=await a({zone:e.zone},t,{quiet:e.quiet});e.zoneId=i;let o=await l(`Loading`,async()=>t.send(Qt,{zone_id:i}));c(o,{successLabel:`Loaded`})})};var en={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/regional_hostnames/regions`};function tn(e){return e.usage(`$0 addressing regional-hostnames regions list
91
91
 
92
- List all Regional Services regions available for use by this account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nn={command:`list`,describe:`List Regions`,builder:tn,handler:async e=>u({command:`addressing regional-hostnames regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing regional-hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(en,{account_id:a}));s(u,{successLabel:`Loaded`})})},rn={command:`regions`,describe:`Operations for regional-hostnames.regions`,builder:e=>e.command(nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},an={command:`regional-hostnames`,describe:`Operations for regional-hostnames`,builder:e=>e.command(Ut).command(Kt).command(Jt).command(Zt).command($).command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/services`};function sn(e){return e.usage(`$0 addressing services list
92
+ List all Regional Services regions available for use by this account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const nn={command:`list`,describe:`List Regions`,builder:tn,handler:async e=>u({command:`addressing regional-hostnames regions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing regional-hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(en,{account_id:a}));c(u,{successLabel:`Loaded`})})},rn={command:`regions`,describe:`Operations for regional-hostnames.regions`,builder:e=>e.command(nn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},an={command:`regional-hostnames`,describe:`Operations for regional-hostnames`,builder:e=>e.command(Ut).command(Kt).command(Jt).command(Zt).command($).command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/services`};function sn(e){return e.usage(`$0 addressing services list
93
93
 
94
- Bring-Your-Own IP (BYOIP) prefixes onboarded to Cloudflare must be bound to a service running on the Cloudflare network to enable a Cloudflare product on the IP addresses. This endpoint can be used as a reference of available services on the Cloudflare network, and their service IDs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cn={command:`list`,describe:`List Services`,builder:sn,handler:async e=>u({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(on,{account_id:a}));s(u,{successLabel:`Loaded`})})},ln={command:`services`,describe:`Operations for services`,builder:e=>e.command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},un={command:`addressing`,describe:`addressing`,builder:e=>e.command(we).command(Oe).command(Ie).command(Vt).command(an).command(ln).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{un as default};
94
+ Bring-Your-Own IP (BYOIP) prefixes onboarded to Cloudflare must be bound to a service running on the Cloudflare network to enable a Cloudflare product on the IP addresses. This endpoint can be used as a reference of available services on the Cloudflare network, and their service IDs.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const cn={command:`list`,describe:`List Services`,builder:sn,handler:async e=>u({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();r({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let t=await n(e),a=e.local?s:await o();e.accountId=a;let u=await l(`Loading`,async()=>t.send(on,{account_id:a}));c(u,{successLabel:`Loaded`})})},ln={command:`services`,describe:`Operations for services`,builder:e=>e.command(cn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},un={command:`addressing`,describe:`addressing`,builder:e=>e.command(we).command(Oe).command(Ie).command(Vt).command(an).command(ln).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{un as default};