cf 1.0.0-beta.0 → 1.0.0-beta.10

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 (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11755 -14070
  3. package/dist/_meta/hand-written-commands.json +610 -42
  4. package/dist/_meta/schemas.json +18290 -20222
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-BNrSShjj.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-CCAnDjFk.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-ZPYQbZQr.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-BFpzLfTn.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-DEvy2dLU.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-Dn03zntn.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-g0tR8Cut.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-BXXA0Jnk.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-Bst10SOG.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-B4DvcYmB.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-Dkx1Codr.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-BvswWPlP.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-D8kZKJq0.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-Bp_yQpXJ.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-Cqj64fqz.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-CzZx_aml.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-Co0c8Xdj.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-CDsGaPIl.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-DFrohJ1p.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CamhClyb.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-BiTk4-Zc.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dal9DNjW.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-CIO_YPtN.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-vwdixea0.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-C1cFVBGK.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-DQ5T-HMN.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-DWam38_9.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-DX6AJf9Q.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-CBhLWVd-.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-C7blN-pe.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Bx_44bmJ.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-CC91dAlv.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-D9a4N_bH.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-T7nbCnep.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-CkjNJlla.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-DnWnt9oJ.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-Db2pF9Ib.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-B_N-uSIa.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-DPA_sFY8.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-D6fxEBoh.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-DXs1xVmH.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-as1ue_wx.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D2XXCkqk.mjs → deploy-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-BCYyKXpp.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BKH1Oh-C.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-C5kAQsN6.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-CYwXrdJO.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-BEw4QcXj.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-B3MD8FrJ.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-C4YhZGPw.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-BO1GOAho.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-BJDnzNCN.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-C7kS7kP9.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-8VR-j0sa.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-BJleItOD.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CHajvoHa.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-B7oTr6vW.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-xLAYe436.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-DwZXY1YE.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-BC_9nKE7.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-K-GFzhku.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-D8UuxztO.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-B0XeGLhT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-DWg5ezsM.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-6A6gJC5C.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-DwehajAw.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking--14hNj2F.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-Dzo4L6kd.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-DDO0A5v4.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-DQ0iwWdG.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-DDIdcPG0.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-D6ahHNaP.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-BcIrLbRv.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-wLiPcWyN.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DZsrs_sw.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-Cjbu4EMv.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-Cu1twz9z.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-DR0hzakz.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BDNpJJ32.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-BnHy2M6p.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-iasRm69J.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-CUzCIKXV.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-iQXSqBI0.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-DcMDK6Tz.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-D1X26X7y.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CXa8EYcP.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DmF8xlm_.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-DIp2fwJU.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-MmXlsxYO.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-VzdcSR5H.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-BZYl2emH.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-JzBTD249.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-yIdAJ0Yf.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-D-Li9gNk.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-CKSSHAyv.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-Cf-pnw6h.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-BegIQTzt.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-DEVgiYzM.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-Cm2yJkU9.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-DDCa7cYF.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-BhS7Hvtu.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-EIj9ViSn.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags--GosoCMU.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-DA83eNe-.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CvIO3tWS.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-BTd3eGIB.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-DSrHhVEN.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-DnSTo-OI.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-An5kQs33.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-Ci79n7fd.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-BBL7LrLn.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-B2psFIRm.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-Du0Q7UOh.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-CU8S2jBT.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-C3l5aZSi.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-DtKeyM5J.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-D1tRWQQi.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-BRA0XGT2.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B6N2m5s6.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-CeKkzkhe.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-CftksgmF.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-m7w9PX3o.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BWBEtsgZ.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-BVZSYTNJ.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CLU5vAgP.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-Dkd4XRNH.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-BgtPSDYJ.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-DjGfJgQn.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-Cm7WsAgB.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-DurWe32F.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-D8SVU8YZ.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-B3AEAfcd.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-DiX5LoSU.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-BwsJLiPN.mjs +0 -26
  261. package/dist/access-BVbIajYr.mjs +0 -27
  262. package/dist/account-DBLarar2.mjs +0 -12
  263. package/dist/ai-BF0_0NtS.mjs +0 -31
  264. package/dist/ai-gateway-CVABbCjv.mjs +0 -147
  265. package/dist/analytics-DgEaxta8.mjs +0 -21
  266. package/dist/auth-B9w55oRg.mjs +0 -2
  267. package/dist/auth-C80y97yu.mjs +0 -8
  268. package/dist/browser-extension-BRHJm3Qf.mjs +0 -15
  269. package/dist/build-BbjcJxKq.mjs +0 -2
  270. package/dist/build-DQh5-KK4.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-DDisXoTE.mjs +0 -13
  279. package/dist/command-BP7ldws1.mjs +0 -2
  280. package/dist/command-BtNRBTP6.mjs +0 -2
  281. package/dist/command-CF0giIIc.mjs +0 -3
  282. package/dist/command-Ck9rbHA4.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-CVZAIzhe.mjs +0 -71
  285. package/dist/dev-nsNxyg2D.mjs +0 -4
  286. package/dist/dialog-Dx4rRcKM.mjs +0 -2
  287. package/dist/dist-BDOzKthe.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-3jvUgzKd.mjs +0 -8
  292. package/dist/email-security-BcFyWNby.mjs +0 -160
  293. package/dist/error-sanitization-BkgUhGVc.mjs +0 -2
  294. package/dist/error-sanitization-DOlqWkNu.mjs +0 -2
  295. package/dist/firewall-BSMa9aH3.mjs +0 -56
  296. package/dist/flagship-BJYMb7hb.mjs +0 -28
  297. package/dist/hyperdrive-DlxQrok-.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-CtsCsbZ2.mjs +0 -13
  301. package/dist/kv-Bfwz_ULu.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CAsRUF4c.mjs +0 -2
  304. package/dist/login-DaglE6WA.mjs +0 -5
  305. package/dist/logs-BWg7YymF.mjs +0 -48
  306. package/dist/mtls-certificates-AEuNOERQ.mjs +0 -13
  307. package/dist/oauth-C-QCVfWz.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-Cu0m9GSH.mjs +0 -60
  312. package/dist/precursor-jqeEG_mJ.mjs +0 -4
  313. package/dist/previews-Cg6lc24N.mjs +0 -4
  314. package/dist/progress-Bpp73hIu.mjs +0 -2
  315. package/dist/prompt-CpZztV8c.mjs +0 -3
  316. package/dist/r2-data-catalog-DISnPFPY.mjs +0 -44
  317. package/dist/r2-omcKF8_A.mjs +0 -127
  318. package/dist/raw-fetch-DxGs_eRm.mjs +0 -2
  319. package/dist/request-headers-DaXBfmVn.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-CSFE1qVX.mjs +0 -2
  322. package/dist/run-ChM_YpZ0.mjs +0 -2
  323. package/dist/schema-DCBb3Fcs.mjs +0 -2
  324. package/dist/security-center-DbH_7h-T.mjs +0 -30
  325. package/dist/shared-CtBkOWGN.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-7IW1UyoH.mjs +0 -523
  328. package/dist/src-CNHNCZpy.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CNt8H3aA.mjs +0 -2
  333. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  334. package/dist/telemetry-PHe8XxA2.mjs +0 -2
  335. package/dist/tenant-BZ0ysR9L.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-DBa4_Vyz.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-AAn7EXw8.mjs +0 -2
  341. package/dist/update-check-BbIXBq1o.mjs +0 -2
  342. package/dist/version-cPq-WKL8.mjs +0 -2
  343. package/dist/workers-BQi4_SBS.mjs +0 -36
  344. package/dist/workers-for-platforms-actLCM6Q.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-C-QCVfWz.mjs";import{r as t}from"./auth-C80y97yu.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-Bpp73hIu.mjs";import{t as a}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,n as u}from"./prompt-CpZztV8c.mjs";function d(e){return e.usage(`$0 acm custom-trust-store create
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-CGUzvBgY.mjs";function d(e){return e.usage(`$0 acm custom-trust-store create
3
3
 
4
4
  Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const f={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:d,handler:async u=>a({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({certificate:c(u.certificate,`certificate`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...e,zone_id:d})),{successLabel:`Created`});return}u.certificate===void 0&&(u.certificate=await l(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let f=s({certificate:c(u.certificate,`certificate`,`text`)});n(await i(`Creating`,async()=>a.acm.customTrustStore.create({...f,zone_id:d})),{successLabel:`Created`})})};function p(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
5
5
 
6
- Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const m={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:p,handler:async o=>a({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
6
+ Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const m={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:p,handler:async o=>a({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
7
7
  `);return}n(await i(`Deleting`,async()=>a.acm.customTrustStore.delete({zone_id:s,custom_origin_trust_store_id:o[`custom-origin-trust-store-id`]})),{successLabel:`Deleted`})})};function h(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
8
8
 
9
- Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:h,handler:async o=>a({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.acm.customTrustStore.get({zone_id:s,custom_origin_trust_store_id:o[`custom-origin-trust-store-id`]})),{successLabel:`Loaded`})})};function _(e){return e.usage(`$0 acm custom-trust-store list
9
+ Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:h,handler:async o=>a({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store/${o[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(o[`custom-origin-trust-store-id`]))}`,pathParams:{"custom-origin-trust-store-id":String(o[`custom-origin-trust-store-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.acm.customTrustStore.get({zone_id:s,custom_origin_trust_store_id:o[`custom-origin-trust-store-id`]})),{successLabel:`Loaded`})})};function _(e){return e.usage(`$0 acm custom-trust-store list
10
10
 
11
11
  Get Custom Origin Trust Store for a Zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`list`,describe:`List Custom Origin Trust Store Details`,builder:_,handler:async o=>a({command:`acm custom-trust-store list`,classification:{safeFlags:[`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],limit:o.limit,offset:o.offset};if(o.dryRun){r({command:`cf acm custom-trust-store list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.acm.customTrustStore.list({zone_id:c,...a})),{successLabel:`Loaded`})})},y={command:`custom-trust-store`,describe:`Operations for custom-trust-store`,builder:e=>e.command(f).command(m).command(g).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function b(e){return e.usage(`$0 acm total-tls edit
12
12
 
@@ -1,93 +1,93 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-C-QCVfWz.mjs";import{a as i,r as a}from"./auth-C80y97yu.mjs";import{t as o}from"./output-Bia1u2k5.mjs";import{t as s}from"./dry-run-CLX6Pbtq.mjs";import{t as c}from"./progress-Bpp73hIu.mjs";import{t as l}from"./run-ChM_YpZ0.mjs";import"./telemetry-CNt8H3aA.mjs";import{n as u,r as d,t as f}from"./body-parser-CUWbw_Tq.mjs";import{n as p,t as m}from"./input-validation-Ch4Vllrm.mjs";import{a as h,n as g}from"./prompt-CpZztV8c.mjs";import{n as ee,t as te}from"./raw-fetch-DxGs_eRm.mjs";function _(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{a as i,r as a}from"./auth-BIr56Mbx.mjs";import{t as o}from"./output-CvQFJkvi.mjs";import{t as s}from"./dry-run-Bq0JAsbX.mjs";import{t as c}from"./progress-A61dRbXl.mjs";import{t as l}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as u,r as d,t as f}from"./body-parser-hh2avzkz.mjs";import{n as p,t as m}from"./input-validation-Dk52b0me.mjs";import{a as h,n as g}from"./prompt-CGUzvBgY.mjs";import{n as ee,t as te}from"./raw-fetch-CvkmFO23.mjs";function _(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 v={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:_,handler:async t=>l({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/accounts/${t[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(t[`member-account-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``),"member-account-id":String(t[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
5
- `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.accounts.delete({account_id:l,address_map_id:t[`address-map-id`],member_account_id:t[`member-account-id`]})),{successLabel:`Deleted`})})};function y(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 v={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:_,handler:async n=>l({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/accounts/${n[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(n[`member-account-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``),"member-account-id":String(n[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
5
+ `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.accounts.delete({account_id:l,address_map_id:n[`address-map-id`],member_account_id:n[`member-account-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
6
6
 
7
- 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 b={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:y,handler:async t=>l({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/accounts/${t[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(t[`member-account-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``),"member-account-id":String(t[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.accounts.update({account_id:l,address_map_id:t[`address-map-id`],member_account_id:t[`member-account-id`]})),{successLabel:`Updated`})})},x={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.usage(`$0 addressing address-maps create
7
+ 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 b={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:y,handler:async n=>l({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/accounts/${n[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(n[`member-account-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``),"member-account-id":String(n[`member-account-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.accounts.update({account_id:l,address_map_id:n[`address-map-id`],member_account_id:n[`member-account-id`]})),{successLabel:`Updated`})})},x={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.usage(`$0 addressing address-maps create
8
8
 
9
- 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 C={command:`create`,describe:`Create Address Map`,builder:S,handler:async t=>l({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`),enabled:t.enabled,ips:t.ips,memberships:d(t.memberships,`memberships`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...e,account_id:l})),{successLabel:`Created`});return}let m=f({description:p(t.description,`description`,`text`),enabled:t.enabled,ips:t.ips,memberships:d(t.memberships,`memberships`)});o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...m,account_id:l})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
9
+ 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 C={command:`create`,describe:`Create Address Map`,builder:S,handler:async n=>l({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:n.body===void 0?f({description:p(n.description,`description`,`text`),enabled:n.enabled,ips:n.ips,memberships:d(n.memberships,`memberships`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...e,account_id:l})),{successLabel:`Created`});return}let m=f({description:p(n.description,`description`,`text`),enabled:n.enabled,ips:n.ips,memberships:d(n.memberships,`memberships`)});o(await c(`Creating`,async()=>i.addressing.addressMaps.create({...m,account_id:l})),{successLabel:`Created`})})};function w(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
10
10
 
11
- 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 T={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:w,handler:async t=>l({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
12
- `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.delete({account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Deleted`})})};function E(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
11
+ 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 T={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:w,handler:async n=>l({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
12
+ `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.delete({account_id:l,address_map_id:n[`address-map-id`]})),{successLabel:`Deleted`})})};function E(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
13
13
 
14
- 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 D={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:E,handler:async t=>l({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({default_sni:p(t[`default-sni`],`default-sni`,`text`),description:p(t.description,`description`,`text`),enabled:t.enabled}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...e,account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Updated`});return}let d=f({default_sni:p(t[`default-sni`],`default-sni`,`text`),description:p(t.description,`description`,`text`),enabled:t.enabled});o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...d,account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Updated`})})};function O(e){return e.usage(`$0 addressing address-maps get <address-map-id>
14
+ 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 D={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:E,handler:async n=>l({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({default_sni:p(n[`default-sni`],`default-sni`,`text`),description:p(n.description,`description`,`text`),enabled:n.enabled}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...e,account_id:l,address_map_id:n[`address-map-id`]})),{successLabel:`Updated`});return}let d=f({default_sni:p(n[`default-sni`],`default-sni`,`text`),description:p(n.description,`description`,`text`),enabled:n.enabled});o(await c(`Updating`,async()=>i.addressing.addressMaps.edit({...d,account_id:l,address_map_id:n[`address-map-id`]})),{successLabel:`Updated`})})};function O(e){return e.usage(`$0 addressing address-maps get <address-map-id>
15
15
 
16
- 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 k={command:`get <address-map-id>`,describe:`Address Map Details`,builder:O,handler:async t=>l({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}`,pathParams:{"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.get({account_id:l,address_map_id:t[`address-map-id`]})),{successLabel:`Loaded`})})};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
16
+ 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 k={command:`get <address-map-id>`,describe:`Address Map Details`,builder:O,handler:async n=>l({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}`,pathParams:{"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.get({account_id:l,address_map_id:n[`address-map-id`]})),{successLabel:`Loaded`})})};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 t=>l({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/ips/${t[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(t[`ip-address`]))}`,pathParams:{"ip-address":String(t[`ip-address`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
19
- `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.ips.delete({account_id:l,address_map_id:t[`address-map-id`],ip_address:t[`ip-address`]})),{successLabel:`Deleted`})})};function M(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
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 n=>l({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/ips/${n[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(n[`ip-address`]))}`,pathParams:{"ip-address":String(n[`ip-address`]??``),"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
19
+ `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.ips.delete({account_id:l,address_map_id:n[`address-map-id`],ip_address:n[`ip-address`]})),{successLabel:`Deleted`})})};function M(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
20
20
 
21
- 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 N={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:M,handler:async t=>l({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps ips update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${t[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(t[`address-map-id`]))}/ips/${t[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(t[`ip-address`]))}`,pathParams:{"ip-address":String(t[`ip-address`]??``),"address-map-id":String(t[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.ips.update({account_id:l,address_map_id:t[`address-map-id`],ip_address:t[`ip-address`]})),{successLabel:`Updated`})})},P={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 addressing address-maps list
21
+ 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 N={command:`update <ip-address>`,describe:`Add an IP to an Address Map`,builder:M,handler:async n=>l({command:`addressing address-maps ips update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps ips update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/ips/${n[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(n[`ip-address`]))}`,pathParams:{"ip-address":String(n[`ip-address`]??``),"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.ips.update({account_id:l,address_map_id:n[`address-map-id`],ip_address:n[`ip-address`]})),{successLabel:`Updated`})})},P={command:`ips`,describe:`Operations for address-maps.ips`,builder:e=>e.command(j).command(N).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function F(e){return e.usage(`$0 addressing address-maps list
22
22
 
23
- 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 I={command:`list`,describe:`List Address Maps`,builder:F,handler:async t=>l({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.list({account_id:l})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 addressing address-maps zones delete
23
+ 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 I={command:`list`,describe:`List Address Maps`,builder:F,handler:async n=>l({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.addressMaps.list({account_id:l})),{successLabel:`Loaded`})})};function L(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
24
24
 
25
- Remove a zone as a member of a particular address map.`).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 R={command:`delete`,describe:`Remove a zone membership from an Address Map`,builder:L,handler:async i=>l({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},i,async()=>{if(i.dryRun){s({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${i[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(i[`address-map-id`]))}/zones/${i.zone??i.zoneId??`<zone>`}`,pathParams:{"zone-id":String(i.zone??i[`zone-id`]??``),"address-map-id":String(i[`address-map-id`]??``)},bodyKind:`none`});return}let l=await a(i),u=i.local?e:await n();i.accountId=u;let d=await t({zone:i.zone},l,{quiet:i.quiet});if(i.zoneId=d,!await g({force:!!i.force})){process.stderr.write(`Aborted.
26
- `);return}o(await c(`Deleting`,async()=>l.addressing.addressMaps.zones.delete({account_id:u,address_map_id:i[`address-map-id`],zone_id:d})),{successLabel:`Deleted`})})};function z(e){return e.usage(`$0 addressing address-maps zones update
25
+ 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 R={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:L,handler:async n=>l({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/zones/${n[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(n[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(n[`member-zone-id`]??``),"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
26
+ `);return}o(await c(`Deleting`,async()=>i.addressing.addressMaps.zones.delete({account_id:l,address_map_id:n[`address-map-id`],member_zone_id:n[`member-zone-id`]})),{successLabel:`Deleted`})})};function z(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
27
27
 
28
- Add a zone as a member of a particular address map.`).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 B={command:`update`,describe:`Add a zone membership to an Address Map`,builder:z,handler:async i=>l({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},i,async()=>{if(i.dryRun){s({command:`cf addressing address-maps zones update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/address_maps/${i[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(i[`address-map-id`]))}/zones/${i.zone??i.zoneId??`<zone>`}`,pathParams:{"zone-id":String(i.zone??i[`zone-id`]??``),"address-map-id":String(i[`address-map-id`]??``)},bodyKind:`none`});return}let l=await a(i),u=i.local?e:await n();i.accountId=u;let d=await t({zone:i.zone},l,{quiet:i.quiet});i.zoneId=d,o(await c(`Updating`,async()=>l.addressing.addressMaps.zones.update({account_id:u,address_map_id:i[`address-map-id`],zone_id:d})),{successLabel:`Updated`})})},V={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(R).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(C).command(T).command(D).command(k).command(I).command(x).command(P).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 addressing leases list
28
+ 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 B={command:`update <member-zone-id>`,describe:`Add a zone membership to an Address Map`,builder:z,handler:async n=>l({command:`addressing address-maps zones update`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing address-maps zones update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/address_maps/${n[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(n[`address-map-id`]))}/zones/${n[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(n[`member-zone-id`]))}`,pathParams:{"member-zone-id":String(n[`member-zone-id`]??``),"address-map-id":String(n[`address-map-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Updating`,async()=>i.addressing.addressMaps.zones.update({account_id:l,address_map_id:n[`address-map-id`],member_zone_id:n[`member-zone-id`]})),{successLabel:`Updated`})})},V={command:`zones`,describe:`Operations for address-maps.zones`,builder:e=>e.command(R).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},H={command:`address-maps`,describe:`Operations for address-maps`,builder:e=>e.command(C).command(T).command(D).command(k).command(I).command(x).command(P).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function U(e){return e.usage(`$0 addressing leases list
29
29
 
30
- List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List Leases`,builder:U,handler:async t=>l({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.leases.list({account_id:l})),{successLabel:`Loaded`})})},G={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 addressing loa-documents create
30
+ List all leases owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`list`,describe:`List Leases`,builder:U,handler:async n=>l({command:`addressing leases list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing leases list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/leases`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.leases.list({account_id:l})),{successLabel:`Loaded`})})},G={command:`leases`,describe:`Operations for leases`,builder:e=>e.command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.usage(`$0 addressing loa-documents create
31
31
 
32
- 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 q={command:`create`,describe:`Upload LOA Document`,builder:K,handler:async t=>l({command:`addressing loa-documents create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing loa-documents create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`multipart`,body:{body:t.body,file:t.file,"loa-document":t[`loa-document`]}});return}let l=await a(t),u=t.local?e:await n();if(t.accountId=u,t.file!==void 0||t.body!==void 0||t[`loa-document`]!==void 0){let e=new FormData;if(t.file){let n=m(t.file);e.append(`file`,new Blob([n]),t.file.split(/[\\/]/).filter(Boolean).pop())}else t.body!==void 0&&e.append(`file`,t.body);t[`loa-document`]!==void 0&&e.append(`loa_document`,String(p(t[`loa-document`],`loa-document`,`text`)??``)),o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e})),{successLabel:`Created`});return}if(t.body){let e=p(t.body,`body`,`binary`);o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(t.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function J(e){return e.usage(`$0 addressing loa-documents get <loa-document-id>
32
+ 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 q={command:`create`,describe:`Upload LOA Document`,builder:K,handler:async n=>l({command:`addressing loa-documents create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing loa-documents create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/loa_documents`,pathParams:{},bodyKind:`multipart`,body:{body:n.body,file:n.file,"loa-document":n[`loa-document`]}});return}let l=await a(n),u=n.local?e:await r();if(n.accountId=u,n.file!==void 0||n.body!==void 0||n[`loa-document`]!==void 0){let e=new FormData;if(n.file){let t=m(n.file);e.append(`file`,new Blob([t]),n.file.split(/[\\/]/).filter(Boolean).pop())}else n.body!==void 0&&e.append(`file`,n.body);n[`loa-document`]!==void 0&&e.append(`loa_document`,String(p(n[`loa-document`],`loa-document`,`text`)??``)),o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e})),{successLabel:`Created`});return}if(n.body){let e=p(n.body,`body`,`binary`);o(await c(`Creating`,async()=>i(l,`POST`,`/accounts/${u}/addressing/loa_documents`,{body:e,headers:{"Content-Type":`multipart/form-data`}})),{successLabel:`Created`});return}if(n.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function J(e){return e.usage(`$0 addressing loa-documents get <loa-document-id>
33
33
 
34
- 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 Y={command:`get <loa-document-id>`,describe:`Download LOA Document`,builder:J,handler:async t=>l({command:`addressing loa-documents get`,classification:{safeFlags:[`dry-run`,`text`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing loa-documents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/loa_documents/${t[`loa-document-id`]==null?`<loa-document-id>`:encodeURIComponent(String(t[`loa-document-id`]))}/download`,pathParams:{"loa-document-id":String(t[`loa-document-id`]??``)},bodyKind:`none`});return}await a(t);let i=t.local?e:await n();t.accountId=i;let o=await c(`Loading`,async()=>te(`/accounts/${i}/addressing/loa_documents/${encodeURIComponent(String(t[`loa-document-id`]))}/download`,{method:`GET`,local:t.local===!0,persistTo:t.persistTo}));ee(t.text===!0?o.toString(`utf-8`):o)})},X={command:`loa-documents`,describe:`Operations for loa-documents`,builder:e=>e.command(q).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 addressing prefixes advertisement-status edit <prefix-id>
34
+ 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 Y={command:`get <loa-document-id>`,describe:`Download LOA Document`,builder:J,handler:async n=>l({command:`addressing loa-documents get`,classification:{safeFlags:[`dry-run`,`text`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing loa-documents get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/loa_documents/${n[`loa-document-id`]==null?`<loa-document-id>`:encodeURIComponent(String(n[`loa-document-id`]))}/download`,pathParams:{"loa-document-id":String(n[`loa-document-id`]??``)},bodyKind:`none`});return}await a(n);let i=n.local?e:await r();n.accountId=i;let o=await c(`Loading`,async()=>te(`/accounts/${i}/addressing/loa_documents/${encodeURIComponent(String(n[`loa-document-id`]))}/download`,{method:`GET`,local:n.local===!0,persistTo:n.persistTo}));ee(n.text===!0?o.toString(`utf-8`):o)})},X={command:`loa-documents`,describe:`Operations for loa-documents`,builder:e=>e.command(q).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Z(e){return e.usage(`$0 addressing prefixes advertisement-status edit <prefix-id>
35
35
 
36
- 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 Q={command:`edit <prefix-id>`,describe:`Update Prefix Dynamic Advertisement Status`,builder:Z,handler:async t=>l({command:`addressing prefixes advertisement-status edit`,classification:{safeFlags:[`advertised`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes advertisement-status edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({advertised:t.advertised}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`});return}if(t.advertised===void 0)throw Error(`--advertised is required (or pass --body with this field set).`);let d=f({advertised:t.advertised});o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`})})};function ne(e){return e.usage(`$0 addressing prefixes advertisement-status get <prefix-id>
36
+ 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 Q={command:`edit <prefix-id>`,describe:`Update Prefix Dynamic Advertisement Status`,builder:Z,handler:async n=>l({command:`addressing prefixes advertisement-status edit`,classification:{safeFlags:[`advertised`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes advertisement-status edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({advertised:n.advertised}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...e,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Updated`});return}if(n.advertised===void 0)throw Error(`--advertised is required (or pass --body with this field set).`);let d=f({advertised:n.advertised});o(await c(`Updating`,async()=>i.addressing.prefixes.advertisementStatus.edit({...d,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Updated`})})};function ne(e){return e.usage(`$0 addressing prefixes advertisement-status get <prefix-id>
37
37
 
38
- 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 re={command:`get <prefix-id>`,describe:`Get Advertisement Status`,builder:ne,handler:async t=>l({command:`addressing prefixes advertisement-status get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes advertisement-status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.advertisementStatus.get({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},ie={command:`advertisement-status`,describe:`Operations for prefixes.advertisement-status`,builder:e=>e.command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 addressing prefixes bgp-prefixes create <prefix-id>
38
+ 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 re={command:`get <prefix-id>`,describe:`Get Advertisement Status`,builder:ne,handler:async n=>l({command:`addressing prefixes advertisement-status get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes advertisement-status get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/status`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.advertisementStatus.get({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Loaded`})})},ie={command:`advertisement-status`,describe:`Operations for prefixes.advertisement-status`,builder:e=>e.command(Q).command(re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ae(e){return e.usage(`$0 addressing prefixes bgp-prefixes create <prefix-id>
39
39
 
40
- 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 oe={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:ae,handler:async t=>l({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({cidr:p(t.cidr,`cidr`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function se(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
40
+ 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 oe={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:ae,handler:async n=>l({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({cidr:p(n.cidr,`cidr`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...e,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`});return}n.cidr===void 0&&(n.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({cidr:p(n.cidr,`cidr`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.bgpPrefixes.create({...d,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`})})};function se(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
41
41
 
42
- 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 ce={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:se,handler:async t=>l({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
43
- `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.bgpPrefixes.delete({account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Deleted`})})};function le(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
42
+ 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 ce={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:se,handler:async n=>l({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/prefixes/${n[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(n[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``),"bgp-prefix-id":String(n[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
43
+ `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.bgpPrefixes.delete({account_id:l,prefix_id:n[`prefix-id`],bgp_prefix_id:n[`bgp-prefix-id`]})),{successLabel:`Deleted`})})};function le(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
44
44
 
45
- 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 ue={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:le,handler:async t=>l({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({asn_prepend_count:t[`asn-prepend-count`],auto_advertise_withdraw:t[`auto-advertise-withdraw`],on_demand:{advertised:t[`on-demand-advertised`]}}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...e,account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Updated`});return}let d=f({asn_prepend_count:t[`asn-prepend-count`],auto_advertise_withdraw:t[`auto-advertise-withdraw`],on_demand:{advertised:t[`on-demand-advertised`]}});o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...d,account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Updated`})})};function de(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
45
+ 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 ue={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:le,handler:async n=>l({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/prefixes/${n[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(n[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``),"bgp-prefix-id":String(n[`bgp-prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({asn_prepend_count:n[`asn-prepend-count`],auto_advertise_withdraw:n[`auto-advertise-withdraw`],on_demand:{advertised:n[`on-demand-advertised`]}}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...e,account_id:l,prefix_id:n[`prefix-id`],bgp_prefix_id:n[`bgp-prefix-id`]})),{successLabel:`Updated`});return}let d=f({asn_prepend_count:n[`asn-prepend-count`],auto_advertise_withdraw:n[`auto-advertise-withdraw`],on_demand:{advertised:n[`on-demand-advertised`]}});o(await c(`Updating`,async()=>i.addressing.prefixes.bgpPrefixes.edit({...d,account_id:l,prefix_id:n[`prefix-id`],bgp_prefix_id:n[`bgp-prefix-id`]})),{successLabel:`Updated`})})};function de(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
46
46
 
47
- 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 fe={command:`get <bgp-prefix-id>`,describe:`Fetch BGP Prefix`,builder:de,handler:async t=>l({command:`addressing prefixes bgp-prefixes get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes/${t[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(t[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"bgp-prefix-id":String(t[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.get({account_id:l,prefix_id:t[`prefix-id`],bgp_prefix_id:t[`bgp-prefix-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 addressing prefixes bgp-prefixes list
47
+ 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 fe={command:`get <bgp-prefix-id>`,describe:`Fetch BGP Prefix`,builder:de,handler:async n=>l({command:`addressing prefixes bgp-prefixes get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes bgp-prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/prefixes/${n[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(n[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``),"bgp-prefix-id":String(n[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.get({account_id:l,prefix_id:n[`prefix-id`],bgp_prefix_id:n[`bgp-prefix-id`]})),{successLabel:`Loaded`})})};function pe(e){return e.usage(`$0 addressing prefixes bgp-prefixes list
48
48
 
49
- 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 me={command:`list`,describe:`List BGP Prefixes`,builder:pe,handler:async t=>l({command:`addressing prefixes bgp-prefixes list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes bgp-prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},he={command:`bgp-prefixes`,describe:`Operations for prefixes.bgp-prefixes`,builder:e=>e.command(oe).command(ce).command(ue).command(fe).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ge(e){return e.usage(`$0 addressing prefixes create
49
+ 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 me={command:`list`,describe:`List BGP Prefixes`,builder:pe,handler:async n=>l({command:`addressing prefixes bgp-prefixes list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes bgp-prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.bgpPrefixes.list({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Loaded`})})},he={command:`bgp-prefixes`,describe:`Operations for prefixes.bgp-prefixes`,builder:e=>e.command(oe).command(ce).command(ue).command(fe).command(me).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function ge(e){return e.usage(`$0 addressing prefixes create
50
50
 
51
- Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`Autonomous System Number (ASN) the prefix will be advertised under.`}).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 _e={command:`create`,describe:`Add Prefix`,builder:ge,handler:async t=>l({command:`addressing prefixes create`,classification:{safeFlags:[`delegate-loa-creation`,`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`json`,body:t.body===void 0?f({asn:t.asn,cidr:p(t.cidr,`cidr`,`text`),delegate_loa_creation:t[`delegate-loa-creation`],description:p(t.description,`description`,`text`),loa_document_id:p(t[`loa-document-id`],`loa-document-id`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.create({...e,account_id:l})),{successLabel:`Created`});return}if(t.asn===void 0)throw Error(`--asn is required (or pass --body with this field set).`);t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({asn:t.asn,cidr:p(t.cidr,`cidr`,`text`),delegate_loa_creation:t[`delegate-loa-creation`],description:p(t.description,`description`,`text`),loa_document_id:p(t[`loa-document-id`],`loa-document-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.create({...d,account_id:l})),{successLabel:`Created`})})};function ve(e){return e.usage(`$0 addressing prefixes delegations create <prefix-id>
51
+ Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`Autonomous System Number (ASN) the prefix will be advertised under.`}).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 _e={command:`create`,describe:`Add Prefix`,builder:ge,handler:async n=>l({command:`addressing prefixes create`,classification:{safeFlags:[`delegate-loa-creation`,`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`json`,body:n.body===void 0?f({asn:n.asn,cidr:p(n.cidr,`cidr`,`text`),delegate_loa_creation:n[`delegate-loa-creation`],description:p(n.description,`description`,`text`),loa_document_id:p(n[`loa-document-id`],`loa-document-id`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.addressing.prefixes.create({...e,account_id:l})),{successLabel:`Created`});return}if(n.asn===void 0)throw Error(`--asn is required (or pass --body with this field set).`);n.cidr===void 0&&(n.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let d=f({asn:n.asn,cidr:p(n.cidr,`cidr`,`text`),delegate_loa_creation:n[`delegate-loa-creation`],description:p(n.description,`description`,`text`),loa_document_id:p(n[`loa-document-id`],`loa-document-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.create({...d,account_id:l})),{successLabel:`Created`})})};function ve(e){return e.usage(`$0 addressing prefixes delegations create <prefix-id>
52
52
 
53
- 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 ye={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:ve,handler:async t=>l({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`),delegated_account_id:p(t[`delegated-account-id`],`delegated-account-id`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),t[`delegated-account-id`]===void 0&&(t[`delegated-account-id`]=await h(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let d=f({cidr:p(t.cidr,`cidr`,`text`),delegated_account_id:p(t[`delegated-account-id`],`delegated-account-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function be(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
53
+ 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 ye={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:ve,handler:async n=>l({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({cidr:p(n.cidr,`cidr`,`text`),delegated_account_id:p(n[`delegated-account-id`],`delegated-account-id`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...e,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`});return}n.cidr===void 0&&(n.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),n[`delegated-account-id`]===void 0&&(n[`delegated-account-id`]=await h(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let d=f({cidr:p(n.cidr,`cidr`,`text`),delegated_account_id:p(n[`delegated-account-id`],`delegated-account-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.delegations.create({...d,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`})})};function be(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
54
54
 
55
- 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 xe={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:be,handler:async t=>l({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations/${t[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(t[`delegation-id`]))}`,pathParams:{"delegation-id":String(t[`delegation-id`]??``),"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
56
- `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delegations.delete({account_id:l,prefix_id:t[`prefix-id`],delegation_id:t[`delegation-id`]})),{successLabel:`Deleted`})})};function Se(e){return e.usage(`$0 addressing prefixes delegations list
55
+ 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 xe={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:be,handler:async n=>l({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/delegations/${n[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(n[`delegation-id`]))}`,pathParams:{"delegation-id":String(n[`delegation-id`]??``),"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
56
+ `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delegations.delete({account_id:l,prefix_id:n[`prefix-id`],delegation_id:n[`delegation-id`]})),{successLabel:`Deleted`})})};function Se(e){return e.usage(`$0 addressing prefixes delegations list
57
57
 
58
- 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 Ce={command:`list`,describe:`List Prefix Delegations`,builder:Se,handler:async t=>l({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.delegations.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},we={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ye).command(xe).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Te(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
58
+ 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 Ce={command:`list`,describe:`List Prefix Delegations`,builder:Se,handler:async n=>l({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.delegations.list({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Loaded`})})},we={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ye).command(xe).command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Te(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
59
59
 
60
- 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 Ee={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:Te,handler:async t=>l({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
61
- `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delete({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Deleted`})})};function De(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
60
+ 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 Ee={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:Te,handler:async n=>l({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
61
+ `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.delete({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Deleted`})})};function De(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
62
62
 
63
- 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 Oe={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:De,handler:async t=>l({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({description:p(t.description,`description`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`});return}t.description===void 0&&(t.description=await h(`description`,`Description of the prefix.`));let d=f({description:p(t.description,`description`,`text`)});o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Updated`})})};function ke(e){return e.usage(`$0 addressing prefixes get <prefix-id>
63
+ 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 Oe={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:De,handler:async n=>l({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({description:p(n.description,`description`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...e,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Updated`});return}n.description===void 0&&(n.description=await h(`description`,`Description of the prefix.`));let d=f({description:p(n.description,`description`,`text`)});o(await c(`Updating`,async()=>i.addressing.prefixes.edit({...d,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Updated`})})};function ke(e){return e.usage(`$0 addressing prefixes get <prefix-id>
64
64
 
65
- 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 Ae={command:`get <prefix-id>`,describe:`Prefix Details`,builder:ke,handler:async t=>l({command:`addressing prefixes get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.get({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 addressing prefixes list
65
+ 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 Ae={command:`get <prefix-id>`,describe:`Prefix Details`,builder:ke,handler:async n=>l({command:`addressing prefixes get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.get({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Loaded`})})};function je(e){return e.usage(`$0 addressing prefixes list
66
66
 
67
- List all prefixes owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List Prefixes`,builder:je,handler:async t=>l({command:`addressing prefixes list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.list({account_id:l})),{successLabel:`Loaded`})})};function Ne(e){return e.usage(`$0 addressing prefixes service-bindings create <prefix-id>
67
+ List all prefixes owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Me={command:`list`,describe:`List Prefixes`,builder:je,handler:async n=>l({command:`addressing prefixes list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.list({account_id:l})),{successLabel:`Loaded`})})};function Ne(e){return e.usage(`$0 addressing prefixes service-bindings create <prefix-id>
68
68
 
69
69
  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
70
70
  **List Services** endpoint.
71
- `}).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 Pe={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Ne,handler:async t=>l({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`json`,body:t.body===void 0?f({cidr:p(t.cidr,`cidr`,`text`),service_id:p(t[`service-id`],`service-id`,`text`)}):u(t.body)});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,t.body){let e=u(t.body);o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...e,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`});return}t.cidr===void 0&&(t.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),t[`service-id`]===void 0&&(t[`service-id`]=await h(`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=f({cidr:p(t.cidr,`cidr`,`text`),service_id:p(t[`service-id`],`service-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...d,account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})};function Fe(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
71
+ `}).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 Pe={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Ne,handler:async n=>l({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`json`,body:n.body===void 0?f({cidr:p(n.cidr,`cidr`,`text`),service_id:p(n[`service-id`],`service-id`,`text`)}):u(n.body)});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,n.body){let e=u(n.body);o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...e,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`});return}n.cidr===void 0&&(n.cidr=await h(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),n[`service-id`]===void 0&&(n[`service-id`]=await h(`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=f({cidr:p(n.cidr,`cidr`,`text`),service_id:p(n[`service-id`],`service-id`,`text`)});o(await c(`Creating`,async()=>i.addressing.prefixes.serviceBindings.create({...d,account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`})})};function Fe(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
72
72
 
73
- 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 Ie={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Fe,handler:async t=>l({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings/${t[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(t[`binding-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"binding-id":String(t[`binding-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();if(t.accountId=l,!await g({force:!!t.force})){process.stderr.write(`Aborted.
74
- `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.serviceBindings.delete({account_id:l,prefix_id:t[`prefix-id`],binding_id:t[`binding-id`]})),{successLabel:`Deleted`})})};function Le(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
73
+ 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 Ie={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Fe,handler:async n=>l({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bindings/${n[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(n[`binding-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``),"binding-id":String(n[`binding-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();if(n.accountId=l,!await g({force:!!n.force})){process.stderr.write(`Aborted.
74
+ `);return}o(await c(`Deleting`,async()=>i.addressing.prefixes.serviceBindings.delete({account_id:l,prefix_id:n[`prefix-id`],binding_id:n[`binding-id`]})),{successLabel:`Deleted`})})};function Le(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
75
75
 
76
- 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 Re={command:`get <binding-id>`,describe:`Get Service Binding`,builder:Le,handler:async t=>l({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings/${t[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(t[`binding-id`]))}`,pathParams:{"prefix-id":String(t[`prefix-id`]??``),"binding-id":String(t[`binding-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.get({account_id:l,prefix_id:t[`prefix-id`],binding_id:t[`binding-id`]})),{successLabel:`Loaded`})})};function ze(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 Be={command:`list`,describe:`List Service Bindings`,builder:ze,handler:async t=>l({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.list({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Loaded`})})},Ve={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Pe).command(Ie).command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
76
+ 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 Re={command:`get <binding-id>`,describe:`Get Service Binding`,builder:Le,handler:async n=>l({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bindings/${n[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(n[`binding-id`]))}`,pathParams:{"prefix-id":String(n[`prefix-id`]??``),"binding-id":String(n[`binding-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.get({account_id:l,prefix_id:n[`prefix-id`],binding_id:n[`binding-id`]})),{successLabel:`Loaded`})})};function ze(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 Be={command:`list`,describe:`List Service Bindings`,builder:ze,handler:async n=>l({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.prefixes.serviceBindings.list({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Loaded`})})},Ve={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Pe).command(Ie).command(Re).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function He(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
77
77
 
78
- Triggers a new prefix validation. The checks are run asynchronously and include IRR, RPKI, and prefix ownership.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ue={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:He,handler:async t=>l({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/prefixes/${t[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(t[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(t[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Creating`,async()=>i.addressing.prefixes.validate.create({account_id:l,prefix_id:t[`prefix-id`]})),{successLabel:`Created`})})},We={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(_e).command(Ee).command(Oe).command(Ae).command(Me).command(ie).command(he).command(we).command(Ve).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ke(e){return e.usage(`$0 addressing regional_hostnames create
78
+ Triggers a new prefix validation. The checks are run asynchronously and include IRR, RPKI, and prefix ownership.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ue={command:`create <prefix-id>`,describe:`Validate Prefix`,builder:He,handler:async n=>l({command:`addressing prefixes validate create`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing prefixes validate create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/prefixes/${n[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(n[`prefix-id`]))}/validate`,pathParams:{"prefix-id":String(n[`prefix-id`]??``)},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Creating`,async()=>i.addressing.prefixes.validate.create({account_id:l,prefix_id:n[`prefix-id`]})),{successLabel:`Created`})})},We={command:`validate`,describe:`Operations for prefixes.validate`,builder:e=>e.command(Ue).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ge={command:`prefixes`,describe:`Operations for prefixes`,builder:e=>e.command(_e).command(Ee).command(Oe).command(Ae).command(Me).command(ie).command(he).command(we).command(Ve).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function Ke(e){return e.usage(`$0 addressing regional_hostnames create
79
79
 
80
- 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 qe={command:`create`,describe:`Create Regional Hostname`,builder:Ke,handler:async e=>l({command:`addressing regional_hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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?f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Creating`,async()=>n.addressing.regionalHostnames.create({...t,zone_id:r})),{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await h(`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 h(`region-key`,`Identifying key for the region`));let i=f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)});o(await c(`Creating`,async()=>n.addressing.regionalHostnames.create({...i,zone_id:r})),{successLabel:`Created`})})};function Je(e){return e.usage(`$0 addressing regional_hostnames delete <hostname>
80
+ 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 qe={command:`create`,describe:`Create Regional Hostname`,builder:Ke,handler:async e=>l({command:`addressing regional_hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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?f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Creating`,async()=>t.addressing.regionalHostnames.create({...n,zone_id:r})),{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await h(`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 h(`region-key`,`Identifying key for the region`));let i=f({hostname:p(e.hostname,`hostname`,`text`),region_key:p(e[`region-key`],`region-key`,`text`),routing:p(e.routing,`routing`,`text`)});o(await c(`Creating`,async()=>t.addressing.regionalHostnames.create({...i,zone_id:r})),{successLabel:`Created`})})};function Je(e){return e.usage(`$0 addressing regional_hostnames delete <hostname>
81
81
 
82
- 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 $={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Je,handler:async e=>l({command:`addressing regional_hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({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 n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
83
- `);return}o(await c(`Deleting`,async()=>n.addressing.regionalHostnames.delete({zone_id:r,hostname:e.hostname})),{successLabel:`Deleted`})})};function Ye(e){return e.usage(`$0 addressing regional_hostnames edit <hostname>
82
+ 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 $={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Je,handler:async e=>l({command:`addressing regional_hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({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 a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
83
+ `);return}o(await c(`Deleting`,async()=>t.addressing.regionalHostnames.delete({zone_id:r,hostname:e.hostname})),{successLabel:`Deleted`})})};function Ye(e){return e.usage(`$0 addressing regional_hostnames edit <hostname>
84
84
 
85
- 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 Xe={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:Ye,handler:async e=>l({command:`addressing regional_hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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?f({region_key:p(e[`region-key`],`region-key`,`text`)}):u(e.body)});return}let n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});if(e.zoneId=r,e.body){let t=u(e.body);o(await c(`Updating`,async()=>n.addressing.regionalHostnames.edit({...t,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await h(`region-key`,`Identifying key for the region`));let i=f({region_key:p(e[`region-key`],`region-key`,`text`)});o(await c(`Updating`,async()=>n.addressing.regionalHostnames.edit({...i,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`})})};function Ze(e){return e.usage(`$0 addressing regional_hostnames get <hostname>
85
+ 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 Xe={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:Ye,handler:async e=>l({command:`addressing regional_hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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?f({region_key:p(e[`region-key`],`region-key`,`text`)}):u(e.body)});return}let t=await a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=u(e.body);o(await c(`Updating`,async()=>t.addressing.regionalHostnames.edit({...n,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await h(`region-key`,`Identifying key for the region`));let i=f({region_key:p(e[`region-key`],`region-key`,`text`)});o(await c(`Updating`,async()=>t.addressing.regionalHostnames.edit({...i,zone_id:r,hostname:e.hostname})),{successLabel:`Updated`})})};function Ze(e){return e.usage(`$0 addressing regional_hostnames get <hostname>
86
86
 
87
- 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 Qe={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Ze,handler:async e=>l({command:`addressing regional_hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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 n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.addressing.regionalHostnames.get({zone_id:r,hostname:e.hostname})),{successLabel:`Loaded`})})};function $e(e){return e.usage(`$0 addressing regional_hostnames list
87
+ 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 Qe={command:`get <hostname>`,describe:`Fetch Regional Hostname`,builder:Ze,handler:async e=>l({command:`addressing regional_hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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 a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.addressing.regionalHostnames.get({zone_id:r,hostname:e.hostname})),{successLabel:`Loaded`})})};function $e(e){return e.usage(`$0 addressing regional_hostnames list
88
88
 
89
- List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`List Regional Hostnames`,builder:$e,handler:async e=>l({command:`addressing regional_hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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 n=await a(e),r=await t({zone:e.zone},n,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>n.addressing.regionalHostnames.list({zone_id:r})),{successLabel:`Loaded`})})};function tt(e){return e.usage(`$0 addressing regional_hostnames regions list
89
+ List all Regional Hostnames within a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const et={command:`list`,describe:`List Regional Hostnames`,builder:$e,handler:async e=>l({command:`addressing regional_hostnames list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({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 a(e),r=await n({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r,o(await c(`Loading`,async()=>t.addressing.regionalHostnames.list({zone_id:r})),{successLabel:`Loaded`})})};function tt(e){return e.usage(`$0 addressing regional_hostnames regions list
90
90
 
91
- 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 nt={command:`list`,describe:`List Regions`,builder:tt,handler:async t=>l({command:`addressing regional_hostnames regions list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing regional_hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.regionalHostnames.regions.list({account_id:l})),{successLabel:`Loaded`})})},rt={command:`regions`,describe:`Operations for regional_hostnames.regions`,builder:e=>e.command(nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},it={command:`regional_hostnames`,describe:`Operations for regional_hostnames`,builder:e=>e.command(qe).command($).command(Xe).command(Qe).command(et).command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function at(e){return e.usage(`$0 addressing services list
91
+ 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 nt={command:`list`,describe:`List Regions`,builder:tt,handler:async n=>l({command:`addressing regional_hostnames regions list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing regional_hostnames regions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/regional_hostnames/regions`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.regionalHostnames.regions.list({account_id:l})),{successLabel:`Loaded`})})},rt={command:`regions`,describe:`Operations for regional_hostnames.regions`,builder:e=>e.command(nt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},it={command:`regional_hostnames`,describe:`Operations for regional_hostnames`,builder:e=>e.command(qe).command($).command(Xe).command(Qe).command(et).command(rt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function at(e){return e.usage(`$0 addressing services list
92
92
 
93
- 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 ot={command:`list`,describe:`List Services`,builder:at,handler:async t=>l({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},t,async()=>{if(t.dryRun){s({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let i=await a(t),l=t.local?e:await n();t.accountId=l,o(await c(`Loading`,async()=>i.addressing.services.list({account_id:l})),{successLabel:`Loaded`})})},st={command:`services`,describe:`Operations for services`,builder:e=>e.command(ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ct={command:`addressing`,describe:`addressing`,builder:e=>e.command(H).command(G).command(X).command(Ge).command(it).command(st).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ct as default};
93
+ 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 ot={command:`list`,describe:`List Services`,builder:at,handler:async n=>l({command:`addressing services list`,classification:{safeFlags:[`dry-run`]}},n,async()=>{if(n.dryRun){s({command:`cf addressing services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/addressing/services`,pathParams:{},bodyKind:`none`});return}let i=await a(n),l=n.local?e:await r();n.accountId=l,o(await c(`Loading`,async()=>i.addressing.services.list({account_id:l})),{successLabel:`Loaded`})})},st={command:`services`,describe:`Operations for services`,builder:e=>e.command(ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ct={command:`addressing`,describe:`addressing`,builder:e=>e.command(H).command(G).command(X).command(Ge).command(it).command(st).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ct as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ const e=new Set([``,`0`,`false`,`no`,`off`]);function t(t,n){let r=t[n];if(typeof r!=`string`)return;let i=r.trim();return e.has(i.toLowerCase())?void 0:i}function n(e,t,n){return e[t]===n}function r(e,t,n){return t&&e.push(n),t}function i(e,t,n={}){return{harness:e,...n,signals:t}}const a=[e=>n(e,`OPENCODE`,`1`)?i({id:`opencode`,name:`OpenCode`},[`OPENCODE`]):null,e=>{let n=t(e,`QWEN_CODE_SESSION_ID`);if(!n)return null;let r=[`QWEN_CODE_SESSION_ID`],a=t(e,`QWEN_CODE_MODEL`),o=t(e,`QWEN_CODE_AGENT_ID`),s=t(e,`QWEN_CODE_PROMPT_ID`);return a&&r.push(`QWEN_CODE_MODEL`),o&&r.push(`QWEN_CODE_AGENT_ID`),s&&r.push(`QWEN_CODE_PROMPT_ID`),i({id:`qwen-code`,name:`Qwen Code`},r,{model:a?{id:a}:void 0,sessionId:n,invocationId:o??s})},e=>{let a=[],o=r(a,n(e,`PI_CODING_AGENT`,`true`),`PI_CODING_AGENT`),s=r(a,n(e,`AI_AGENT`,`pi`),`AI_AGENT`);if(!o&&!s)return null;let c=t(e,`PI_SESSION_ID`),l=t(e,`PI_PROVIDER`),u=t(e,`PI_MODEL`);return c&&a.push(`PI_SESSION_ID`),l&&a.push(`PI_PROVIDER`),u&&a.push(`PI_MODEL`),i({id:`pi`,name:`Pi`},a,{model:u?{id:u,provider:l}:void 0,sessionId:c})},e=>{if(!n(e,`CURSOR_AGENT`,`1`))return null;let r=[`CURSOR_AGENT`],a=t(e,`CURSOR_CONVERSATION_ID`),o=t(e,`CURSOR_TRACE_ID`);return a&&r.push(`CURSOR_CONVERSATION_ID`),o&&r.push(`CURSOR_TRACE_ID`),i({id:`cursor-agent`,name:`Cursor Agent`},r,{sessionId:a,invocationId:o})},e=>{if(!n(e,`CLAUDECODE`,`1`))return null;let r=[`CLAUDECODE`],a=t(e,`CLAUDE_CODE_SESSION_ID`);return a&&r.push(`CLAUDE_CODE_SESSION_ID`),i({id:`claude-code`,name:`Claude Code`},r,{sessionId:a})},e=>{let n=t(e,`CODEX_THREAD_ID`);return n?i({id:`codex`,name:`OpenAI Codex`},[`CODEX_THREAD_ID`],{sessionId:n}):null},e=>{let n=t(e,`AMP_CURRENT_THREAD_ID`);return n?i({id:`amp`,name:`Amp`},[`AMP_CURRENT_THREAD_ID`],{sessionId:n}):null},e=>n(e,`GEMINI_CLI`,`1`)?i({id:`gemini-agent`,name:`Gemini CLI`},[`GEMINI_CLI`]):null,e=>n(e,`AUGMENT_AGENT`,`1`)?i({id:`auggie`,name:`Auggie`},[`AUGMENT_AGENT`]):null,e=>{let t=[],a=r(t,n(e,`CRUSH`,`1`),`CRUSH`),o=r(t,n(e,`AI_AGENT`,`crush`),`AI_AGENT`);return a||o?i({id:`crush`,name:`Crush`},t):null},e=>{let t=[],a=r(t,n(e,`AI_AGENT`,`github_copilot_vscode_agent`),`AI_AGENT`),o=r(t,n(e,`COPILOT_AGENT`,`1`),`COPILOT_AGENT`);return a||o?i({id:`vscode-copilot-agent`,name:`GitHub Copilot in VS Code`,surface:`vscode`},t):null},e=>{let n=t(e,`OZ_RUN_ID`);return n?i({id:`warp`,name:`Warp`},[`OZ_RUN_ID`],{sessionId:n}):null}];function o(e=process.env,t=a){let n=[];for(let r of t)try{let t=r(e);t&&n.push(t)}catch{}return{isAgentic:n.length>0,harness:n[0]?.harness??null,model:n.find(e=>e.model)?.model??null,sessionId:n.find(e=>e.sessionId)?.sessionId??null,invocationId:n.find(e=>e.invocationId)?.invocationId??null,matches:n}}export{o as t};