cf 1.0.0-beta.20 → 1.0.0-beta.21

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 (290) hide show
  1. package/README.md +1 -1
  2. package/dist/_meta/commands.json +911 -751
  3. package/dist/_meta/schemas.json +401 -382
  4. package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-CbUAnJxd.mjs} +1 -1
  5. package/dist/{access-CyRjTbhh.mjs → access-C-78DlxL.mjs} +1 -1
  6. package/dist/{accounts-BmF_YKvG.mjs → accounts-DEqQPxCz.mjs} +8 -15
  7. package/dist/{acm-BcIFiAb8.mjs → acm-jmhCq3Yh.mjs} +2 -3
  8. package/dist/{addressing-D6xVD7MM.mjs → addressing-BeYFpQvC.mjs} +12 -23
  9. package/dist/{agent-memory-Blldunhv.mjs → agent-memory-Chlovb7j.mjs} +5 -9
  10. package/dist/{ai-CU8tdTfC.mjs → ai-BndH3HYN.mjs} +2 -3
  11. package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-BUJ-70O_.mjs} +1 -1
  12. package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-CCk7VKhL.mjs} +9 -15
  13. package/dist/{ai-search-DOiZEmn7.mjs → ai-search-BexET_wp.mjs} +6 -11
  14. package/dist/{ai-security-CioADDZi.mjs → ai-security-D4MxRlxX.mjs} +3 -5
  15. package/dist/{alerting-BzN1N3Se.mjs → alerting-rw8Oi3x7.mjs} +5 -9
  16. package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-Bk7dQLcm.mjs} +1 -1
  17. package/dist/{analytics-Cte-DrzH.mjs → analytics-q-guNEOK.mjs} +1 -1
  18. package/dist/{api-security-CCs0g510.mjs → api-security-BDc6gkf1.mjs} +9 -17
  19. package/dist/{argo-BHBFZnmO.mjs → argo-CnLIqm0i.mjs} +1 -1
  20. package/dist/args-BAOHroBC.mjs +2 -0
  21. package/dist/{artifacts-BzAwvrCD.mjs → artifacts-Cil33dzV.mjs} +4 -7
  22. package/dist/{audit-logs-jWivEKCy.mjs → audit-logs--E2Eclb7.mjs} +1 -1
  23. package/dist/auth-B0lEsD_1.mjs +2 -0
  24. package/dist/{auth-BUQscD5b.mjs → auth-BcNLQji1.mjs} +1 -1
  25. package/dist/auth-BtZmY6sE.mjs +2 -0
  26. package/dist/{auth-token-T0aqYgl9.mjs → auth-token-aF5AVLlH.mjs} +1 -1
  27. package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Dbp6J25P.mjs} +88 -88
  28. package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-dnVyzopm.mjs} +3 -5
  29. package/dist/{billing-Ce0WN0yw.mjs → billing-Fqp3jB2V.mjs} +2 -3
  30. package/dist/{blocks-CFAm0Ma3.mjs → blocks-BOQH-Won.mjs} +1 -1
  31. package/dist/{bot-management-DskcSr4B.mjs → bot-management-SEDgo1Xg.mjs} +1 -1
  32. package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-DPqR4M0Y.mjs} +2 -3
  33. package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-B8vwKfM9.mjs} +2 -3
  34. package/dist/{browser-run-CXdzSOHa.mjs → browser-run-BybYDq3I.mjs} +3 -5
  35. package/dist/build-BqGmiORA.mjs +2 -0
  36. package/dist/build-CWlpWVBf.mjs +2 -0
  37. package/dist/{builds-_1u5Nx6f.mjs → builds-CvtOG-Gk.mjs} +8 -15
  38. package/dist/cache-Bme_d2Wx.mjs +36 -0
  39. package/dist/cf-fIBhEAxU.mjs +18 -0
  40. package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
  41. package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
  42. package/dist/{cli-DyhOdzMo.mjs → cli-CIKDqm-u.mjs} +3 -3
  43. package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-ZQeRoo1t.mjs} +2 -3
  44. package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BeunZlNV.mjs} +1 -1
  45. package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
  46. package/dist/{cloudforce-one-Rl6nCCm0.mjs → cloudforce-one-D20t9ojD.mjs} +26 -51
  47. package/dist/{command-BwgvUpNx.mjs → command-B3uWlw57.mjs} +1 -1
  48. package/dist/{command-DuLxEkGq.mjs → command-BGRucANI.mjs} +1 -1
  49. package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
  50. package/dist/{command-DOpykk8X.mjs → command-C9CNvZi_.mjs} +1 -1
  51. package/dist/{command-BRpBIju7.mjs → command-CQ5qHE7n.mjs} +1 -1
  52. package/dist/{command-CHGc-KZ7.mjs → command-CkZkTjIj.mjs} +1 -1
  53. package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
  54. package/dist/{command-BwlIi3Bv.mjs → command-CtlD6MEi.mjs} +1 -1
  55. package/dist/{command-CXzje7qc.mjs → command-CzWWQv8j.mjs} +1 -1
  56. package/dist/{command-BMYi_gS-.mjs → command-DWWuXQV8.mjs} +1 -1
  57. package/dist/{command-CPDQPdss.mjs → command-DkwmylF2.mjs} +1 -1
  58. package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
  59. package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
  60. package/dist/{command-CVoDyQnL.mjs → command-prWMAJbg.mjs} +1 -1
  61. package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
  62. package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
  63. package/dist/{completions-DMwrvK_S.mjs → completions-2Otv0HMd.mjs} +1 -1
  64. package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-Dfhxupmg.mjs} +1 -1
  65. package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-CLVpDTIa.mjs} +1 -1
  66. package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-E_1tmNmQ.mjs} +1 -1
  67. package/dist/{connectors-e_cpzDEm.mjs → connectors-ChJpQFSl.mjs} +2 -3
  68. package/dist/{containers-CEH15JUu.mjs → containers-Cj5-9nUg.mjs} +6 -9
  69. package/dist/containers-CzAZfmnj.mjs +380 -0
  70. package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-CIA_9PV8.mjs} +3 -5
  71. package/dist/{context-Sgba0fZP.mjs → context-DVh8Wyfs.mjs} +2 -2
  72. package/dist/{cps-uDD0SSJ-.mjs → cps-hJkqdsHx.mjs} +1 -1
  73. package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cCVO3lNF.mjs} +1 -1
  74. package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-BrTWUZ0c.mjs} +2 -3
  75. package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-C4ft77oC.mjs} +4 -7
  76. package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-BWfrZhD1.mjs} +2 -3
  77. package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DqTMKtRc.mjs} +2 -3
  78. package/dist/{d1-myRLEAGs.mjs → d1-B58AA9PA.mjs} +3 -6
  79. package/dist/delegate-D7yYckA4.mjs +2 -0
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-BJqCpycz.mjs → deploy-CEROLAdh.mjs} +1 -1
  82. package/dist/deploy-context-Do89WayB.mjs +56 -0
  83. package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-DyMuMsi5.mjs} +1 -1
  84. package/dist/{dev-S1PJi83q.mjs → dev-BaFS7kOM.mjs} +2 -2
  85. package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-4gfYj7Pf.mjs} +2 -3
  86. package/dist/dialog-D5lus4M4.mjs +2 -0
  87. package/dist/discover-6kAmVMPp.mjs +2 -0
  88. package/dist/discover-C06Syc2B.mjs +2 -0
  89. package/dist/dist-BtzWfAjU.mjs +453 -0
  90. package/dist/dls-ClWVxTBg.mjs +16 -0
  91. package/dist/{dns-DhARjFQs.mjs → dns-CML-wxIt.mjs} +68 -68
  92. package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-CL0b3dJ1.mjs} +2 -3
  93. package/dist/{docs-CReGWDrw.mjs → docs-BeYBHwUN.mjs} +1 -1
  94. package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
  95. package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
  96. package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-uZECeq_f.mjs} +1 -1
  97. package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-CCNW798I.mjs} +1 -1
  98. package/dist/email-domains-1rD1d84O.mjs +12 -0
  99. package/dist/{email-routing-CYo4dp50.mjs → email-routing-CYv-LrbV.mjs} +4 -7
  100. package/dist/{email-security-CNtWET2d.mjs → email-security-CWEUYPYo.mjs} +16 -31
  101. package/dist/{email-sending-BvagNLRr.mjs → email-sending-DHSzCfJx.mjs} +3 -5
  102. package/dist/{errors-DpbAQQv8.mjs → errors-ol9sMqSe.mjs} +8 -8
  103. package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-CuBM_uO4.mjs} +2 -3
  104. package/dist/{firewall-DsgUY-Qv.mjs → firewall-SMIUSypF.mjs} +4 -7
  105. package/dist/flagship-D3v6iDdw.mjs +24 -0
  106. package/dist/{fraud-24l8dKyk.mjs → fraud-B2f7O15X.mjs} +1 -1
  107. package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-BwOc62Gy.mjs} +1 -1
  108. package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
  109. package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BQXHnihB.mjs} +3 -5
  110. package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-Bd6Yfje3.mjs} +2 -3
  111. package/dist/{iam-ChldOMSL.mjs → iam-qJPI1_aZ.mjs} +5 -9
  112. package/dist/{images-Ba9tS5wT.mjs → images-goHZJOxy.mjs} +6 -11
  113. package/dist/index.mjs +1 -1
  114. package/dist/init-CVx0Ya1E.mjs +43 -0
  115. package/dist/{intel-DbLRah4Y.mjs → intel-CwiqwJI9.mjs} +18 -21
  116. package/dist/interactive-CHcvofEp.mjs +2 -0
  117. package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
  118. package/dist/interactive-wQM7Blhm.mjs +2 -0
  119. package/dist/internal-5cnlw9mH.mjs +4 -0
  120. package/dist/{ips-BGyzyQLL.mjs → ips-KBxmXhvO.mjs} +1 -1
  121. package/dist/{k2-BVQ3MqEl.mjs → k2-KhIP5NFT.mjs} +2 -3
  122. package/dist/kv-CCem2sEY.mjs +12 -0
  123. package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-BMhD5ffF.mjs} +1 -1
  124. package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BkPZiwE2.mjs} +3 -5
  125. package/dist/live-BhHzxFna.mjs +4 -0
  126. package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-17GBXdju.mjs} +5 -9
  127. package/dist/local-CAs8RWYW.mjs +2 -0
  128. package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
  129. package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
  130. package/dist/log-BWdaOGOW.mjs +66 -0
  131. package/dist/log-DZfik9Jk.mjs +2 -0
  132. package/dist/login-BTiflOun.mjs +2 -0
  133. package/dist/login-Buhvx6Fi.mjs +5 -0
  134. package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BCCUxa4J.mjs} +3 -5
  135. package/dist/{logs-CZBMuuBC.mjs → logs-4CwupKRG.mjs} +2 -3
  136. package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-Xy6SC-V-.mjs} +4 -7
  137. package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-B8pRZp2g.mjs} +3 -5
  138. package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-CwfO3OOX.mjs} +36 -67
  139. package/dist/managed-defense-CtFLuvuB.mjs +18 -0
  140. package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Hto8OCBS.mjs} +2 -3
  141. package/dist/{mcp-bGKgzz6F.mjs → mcp-SQ0MAVUJ.mjs} +3 -5
  142. package/dist/{mesh-DeQIll19.mjs → mesh-C8A6tVqA.mjs} +3 -5
  143. package/dist/{migrate-B6HsPeFh.mjs → migrate-Dufxsb_F.mjs} +1 -1
  144. package/dist/{monetization-B-TIrpA5.mjs → monetization-CYVaCAe9.mjs} +3 -5
  145. package/dist/{network-BrjykU-I.mjs → network-CJBTdEM3.mjs} +5 -9
  146. package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-CKlNFj3i.mjs} +3 -5
  147. package/dist/{o11y-Ba0Fa98_.mjs → o11y-5x2Q8CWm.mjs} +8 -15
  148. package/dist/{oauth-BH-uQd3C.mjs → oauth-BN6_FpYp.mjs} +1 -1
  149. package/dist/oauth-D_A8AcIS.mjs +4 -0
  150. package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-qKXg8ZH3.mjs} +3 -5
  151. package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-Ct1jDyC5.mjs} +1 -1
  152. package/dist/{organization-DKPqwe3j.mjs → organization-lBQSeqS1.mjs} +3 -5
  153. package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DEX8Er3g.mjs} +1 -1
  154. package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-DUsxVGCs.mjs} +1 -1
  155. package/dist/output-BJEgbI0G.mjs +2 -0
  156. package/dist/package-BqSbnt6u.mjs +2 -0
  157. package/dist/{page-rules-CDWTYaf7.mjs → page-rules-BMt6nt03.mjs} +2 -3
  158. package/dist/{pages-Dgtm51Uj.mjs → pages-Jxa92ECz.mjs} +7 -13
  159. package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-Cv0044CZ.mjs} +3 -5
  160. package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DGEeG-dC.mjs} +2 -3
  161. package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CEC78A3w.mjs} +5 -9
  162. package/dist/{precursor-mO-Zua09.mjs → precursor-Ba0Ejhzt.mjs} +1 -1
  163. package/dist/previews-DnZbUTym.mjs +6 -0
  164. package/dist/progress-CtGsPOpV.mjs +2 -0
  165. package/dist/prompt-YrI7ltMa.mjs +4 -0
  166. package/dist/{queues-D8cAr2lB.mjs → queues-Chq997uj.mjs} +6 -11
  167. package/dist/{r2-CJiJbG6b.mjs → r2-BFgZDs-F.mjs} +17 -33
  168. package/dist/{radar-PUZ_PCZ8.mjs → radar-DJdDzLJw.mjs} +1 -1
  169. package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BE3QgdTE.mjs} +1 -1
  170. package/dist/ready-Cok0aqke.mjs +4 -0
  171. package/dist/{realtime-X6uQsldp.mjs → realtime-BHWWCiKp.mjs} +10 -19
  172. package/dist/{registrar-BqZdUTss.mjs → registrar-9Y-1IQ0n.mjs} +1 -1
  173. package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DTS1kRnb.mjs} +1 -1
  174. package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
  175. package/dist/{reporting-DFVz98Xg.mjs → reporting-D5RbKQJf.mjs} +1 -1
  176. package/dist/request-headers-KhW_hy36.mjs +2 -0
  177. package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-wxWCjmHo.mjs} +1 -1
  178. package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BGoaVvJa.mjs} +5 -9
  179. package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
  180. package/dist/{rules-B663VetJ.mjs → rules-Cd3EjhdF.mjs} +3 -5
  181. package/dist/{rulesets-p4EijVr6.mjs → rulesets-Bnz3rSBT.mjs} +4 -7
  182. package/dist/{rum-CHHXe4KK.mjs → rum-CK9HEe3O.mjs} +3 -5
  183. package/dist/run-Be6Js7D6.mjs +2 -0
  184. package/dist/run-DnZGQbq_.mjs +2 -0
  185. package/dist/sanitization-DkVWMHkc.mjs +2 -0
  186. package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
  187. package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-BrDlFwLv.mjs} +1 -1
  188. package/dist/{scim-BMnUa4Oz.mjs → scim-UdqaWnOu.mjs} +3 -5
  189. package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-Bf5v96LC.mjs} +3 -5
  190. package/dist/{security-insights-C-AwDwXb.mjs → security-insights-BAGySlGu.mjs} +1 -1
  191. package/dist/{security-txt-CQMe8TD3.mjs → security-txt-D0fMmjHs.mjs} +2 -3
  192. package/dist/session-6xqrJWXy.mjs +2 -0
  193. package/dist/shared-DYRRG9A-.mjs +2 -0
  194. package/dist/signed-url-Ce0muRem.mjs +4 -0
  195. package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-CCy7_M3j.mjs} +3 -5
  196. package/dist/{snippets-DGSBz4lg.mjs → snippets-Bc8m3HSV.mjs} +3 -5
  197. package/dist/spawn-BAEdy9kS.mjs +5 -0
  198. package/dist/{spectrum-59LhYG1t.mjs → spectrum-DtNX8WBX.mjs} +2 -3
  199. package/dist/{speed-CMCfoG3s.mjs → speed-TbkeWV_x.mjs} +3 -5
  200. package/dist/{sql-MxWaTDdj.mjs → sql-DI319y25.mjs} +1 -1
  201. package/dist/src-COwxoocl.mjs +2 -0
  202. package/dist/{src-J3Yss3VM.mjs → src-Dc6ojwUW.mjs} +5 -5
  203. package/dist/{ssl-DTTFZR9x.mjs → ssl-D0MIzFl2.mjs} +9 -17
  204. package/dist/startup-profile-CZYtQziF.mjs +2 -0
  205. package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
  206. package/dist/state-B3Uy1jPX.mjs +2 -0
  207. package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
  208. package/dist/{stream-gVG_7si-.mjs → stream-4Mrb8HEo.mjs} +14 -27
  209. package/dist/tags-BP25qydR.mjs +22 -0
  210. package/dist/telemetry-CvZean4s.mjs +2 -0
  211. package/dist/telemetry-DKSJSLtq.mjs +2 -0
  212. package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-BzVP85Tq.mjs} +2 -3
  213. package/dist/{tenant-Qv_PC8gW.mjs → tenant-jmfZqEZ4.mjs} +1 -1
  214. package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
  215. package/dist/{tunnels-CHNKPYRV.mjs → tunnels-BNswR1Dj.mjs} +4 -6
  216. package/dist/{turnstile-C60RxPo2.mjs → turnstile-BgsTP2fz.mjs} +2 -3
  217. package/dist/ui-Bo6DCvbS.mjs +2 -0
  218. package/dist/{update-check-BHarE3V9.mjs → update-check-BOF1hn_I.mjs} +1 -1
  219. package/dist/update-check-C7mfEeQ7.mjs +2 -0
  220. package/dist/update-check-worker.mjs +1 -1
  221. package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-Bqrs4-2F.mjs} +2 -3
  222. package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-Dm4Fps5T.mjs} +1 -1
  223. package/dist/{user-B4i7OIFK.mjs → user-u_LxzLM4.mjs} +8 -15
  224. package/dist/{vectorize-y3PCQDDf.mjs → vectorize-DLGiOyd4.mjs} +3 -5
  225. package/dist/version-DmTuWNZ5.mjs +2 -0
  226. package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-DmgJgJXb.mjs} +4 -7
  227. package/dist/{web-assets-BlqHZywy.mjs → web-assets-rNhZWP-6.mjs} +7 -13
  228. package/dist/{web3-DGAJMcLv.mjs → web3-BVBdFt8E.mjs} +3 -5
  229. package/dist/{workers-cCNBx0Bc.mjs → workers-CjUKJvH8.mjs} +18 -22
  230. package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-D3Q97l7X.mjs} +1 -1
  231. package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-C_fcw30y.mjs} +5 -9
  232. package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-CnRO3Stc.mjs} +2 -3
  233. package/dist/{workflows-BYhgJvyR.mjs → workflows-cpHFe5v6.mjs} +5 -9
  234. package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-DQehjmoh.mjs} +74 -74
  235. package/dist/{zaraz-BW0kvRCK.mjs → zaraz-BRj0J7vK.mjs} +1 -1
  236. package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-CVZKDLCB.mjs} +75 -149
  237. package/dist/{zone-B-YJG2UA.mjs → zone-N6ccK70C.mjs} +1 -1
  238. package/dist/{zones-B8pqPHu8.mjs → zones-C4S_kpGz.mjs} +49 -52
  239. package/package.json +12 -12
  240. package/dist/auth-CdEGiJ5Y.mjs +0 -2
  241. package/dist/auth-DF_ml7rE.mjs +0 -2
  242. package/dist/build-BJHRK6qE.mjs +0 -2
  243. package/dist/build-D7s3a8zW.mjs +0 -2
  244. package/dist/cache-CDPUUv_O.mjs +0 -45
  245. package/dist/cf-3vj8dGYz.mjs +0 -18
  246. package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
  247. package/dist/containers-CcZHRM9g.mjs +0 -376
  248. package/dist/delegate-Tgfxa-MZ.mjs +0 -2
  249. package/dist/deploy-context-DIAl408H.mjs +0 -56
  250. package/dist/dialog-BnIgdgWi.mjs +0 -2
  251. package/dist/discover-DEjUARkU.mjs +0 -2
  252. package/dist/discover-P20XeGBF.mjs +0 -2
  253. package/dist/dist-CX6dDtzj.mjs +0 -449
  254. package/dist/dist-DAeCUX-u.mjs +0 -60
  255. package/dist/dls-CMTrCDjZ.mjs +0 -17
  256. package/dist/flagship-geGDHp9H.mjs +0 -28
  257. package/dist/init-C08hBFYn.mjs +0 -43
  258. package/dist/interactive-pjVqirHx.mjs +0 -2
  259. package/dist/kv-Cd8vbPWK.mjs +0 -15
  260. package/dist/local-CFZtOOxg.mjs +0 -2
  261. package/dist/log-CRbgNbDp.mjs +0 -3
  262. package/dist/login-C3Bahro9.mjs +0 -5
  263. package/dist/login-DvsRxI3E.mjs +0 -2
  264. package/dist/logo-matches-jeNkUxAq.mjs +0 -6
  265. package/dist/logos-pxN5aumY.mjs +0 -7
  266. package/dist/managed-defense-C_KLy4oB.mjs +0 -18
  267. package/dist/matches-DnjBnG-Y.mjs +0 -6
  268. package/dist/oauth-Cf3-g-kk.mjs +0 -4
  269. package/dist/output-CpiIVa7Q.mjs +0 -2
  270. package/dist/previews-oHUiD54J.mjs +0 -7
  271. package/dist/progress-B1dpmxCT.mjs +0 -2
  272. package/dist/prompt-Y5OBwDVE.mjs +0 -4
  273. package/dist/queries-CS0sYfte.mjs +0 -9
  274. package/dist/request-headers-Bg8_Idw3.mjs +0 -2
  275. package/dist/run-0EozpORq.mjs +0 -2
  276. package/dist/run-DKg70Sqf.mjs +0 -2
  277. package/dist/session-3DgztoAI.mjs +0 -2
  278. package/dist/shared-o8saqcSK.mjs +0 -2
  279. package/dist/source-AlTrHNem.mjs +0 -6
  280. package/dist/spawn-BZd__5sj.mjs +0 -10
  281. package/dist/startup-profile-DJsOtbVN.mjs +0 -2
  282. package/dist/state-Dvzl3aSj.mjs +0 -2
  283. package/dist/submit-wJYcQB8d.mjs +0 -4
  284. package/dist/tags-BwFKjaOr.mjs +0 -23
  285. package/dist/telemetry-BczXOpQn.mjs +0 -2
  286. package/dist/telemetry-CE15pfOU.mjs +0 -2
  287. package/dist/ui-CBhKUPys.mjs +0 -2
  288. package/dist/update-check-C3RhhXja.mjs +0 -2
  289. package/dist/url-info-By6VD20A.mjs +0 -4
  290. package/dist/version-izjB0Yrl.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-Y5OBwDVE.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BcNLQji1.mjs";import{a as i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as u,n as d,s as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m}from"./input-validation-D7z60HJH.mjs";import{a as h,i as g}from"./prompt-YrI7ltMa.mjs";var _={method:`GET`,path:t=>e`/accounts/${t.account_id}/abuse-reports/${t.report_id}/appeals/eligibility`,errors:{401:`UnauthorizedError`,403:`ForbiddenError`,404:`NotFoundError`,500:`InternalServerError`}};function v(e){return e.usage(`$0 abuse-reports appeals eligibility <report-id>
3
3
 
4
4
  Returns whether the report is currently appealable, along with the signals behind that decision: whether it already has an open appeal, how many appeals have been submitted against it, and whether it has at least one mitigation that an appeal could reverse. Report-level appeals are currently available only for DMCA (copyright) reports. For other report types this operation returns the same \`404 Report not found\` response as a report that does not exist for the account.`).positional(`report-id`,{type:`string`,description:`Abuse Report ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`eligibility <report-id>`,describe:`Check whether a report can be appealed`,builder:v,handler:async e=>l({command:`abuse-reports appeals eligibility`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf abuse-reports appeals eligibility`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/abuse-reports/${e[`report-id`]==null?`<report-id>`:encodeURIComponent(String(e[`report-id`]))}/appeals/eligibility`,pathParams:{"report-id":String(e[`report-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(_,{account_id:l,report_id:e[`report-id`]}));o(u,{successLabel:`Loaded`})})},b={command:`appeals`,describe:`Appeal eligibility for abuse reports`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage("$0 abuse-reports create <report-type>\n\nSubmit an abuse report of a particular type. Requires the abuse-reports entitlement on the account (Enterprise accounts have it by default; other accounts must request access) and an API token with the `Trust and Safety Write` permission. If the account is not entitled, the request is rejected with an HTTP `401` response (see below). Delegated reports: In limited circumstances, Cloudflare works with select customers who have established abuse-handling programs. For these customers, Cloudflare may forward abuse reports directly and in full—including reporter contact information, comments, and supporting evidence—without redaction or preprocessing by Cloudflare. This allows the customer to investigate and respond using their own policies and processes. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of the `host_notification` and `owner_notification` values.").positional(`report-type`,{type:`string`,description:`The report type to be submitted. Example: abuse_general`,demandOption:!0}).option(`act`,{type:`string`,description:`The act field`,choices:[`abuse_dmca`,`abuse_trademark`,`abuse_general`,`abuse_phishing`,`abuse_children`,`abuse_threat`,`abuse_registrar_whois`,`abuse_ncsei`]}).coerce(`act`,e=>m(e,`act`,`text`)).option(`comments`,{type:`string`,description:`Any additional comments about the infringement not exceeding 2000 characters. Comments are kept internal to Cloudflare and not shared with the host or customer as part of regular processing. For delegated reports, comments may be shared in full.`}).option(`company`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email`,{type:`string`,description:`A valid email of the abuse reporter. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`email2`,{type:`string`,description:"Should match the value provided in `email`"}).option(`name`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`reported-country`,{type:`string`,description:`Text containing 2 characters`}).option(`reported-user-agent`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`tele`,{type:`string`,description:`Text not exceeding 20 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`title`,{type:`string`,description:`Text not exceeding 255 characters`}).option(`urls`,{type:`string`,description:`A list of valid URLs separated by ‘\\n’ (new line character). The list of the URLs should not exceed 250 URLs. All URLs should have the same hostname. Each URL should be unique. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`address1`,{type:`string`,description:`Text not exceeding 100 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agent-name`,{type:`string`,description:`The name of the copyright holder. Text not exceeding 60 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`agree`,{type:`number`,description:"Can be `0` for false or `1` for true. Must be value: 1 for DMCA reports"}).option(`city`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).`}).option(`country`,{type:`string`,description:`Text not exceeding 255 characters. This field may be released by Cloudflare to third parties such as the Lumen Database (https://lumendatabase.org/).
5
5
  `}).option(`host-notification`,{type:`string`,description:`Notification type based on the abuse type. For delegated reports, the report—including contact information and comments—will be forwarded to the customer in full regardless of this value. NOTE: Copyright (DMCA) and Trademark reports cannot be anonymous.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./lazy-command-D0I6itZs.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-BwlIi3Bv.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-CXzje7qc.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-BMYi_gS-.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-BwgvUpNx.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-CVoDyQnL.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-CHGc-KZ7.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
2
+ import{t as e}from"./lazy-command-BMhD5ffF.mjs";import{t}from"./hand-written-dry-run-B82fRl2N.mjs";var n=e(`curl <url>`,`Run curl against an Access-protected application with its JWT injected by cloudflared.`,()=>import(`./command-CtlD6MEi.mjs`),{command:`access curl`,recordArgs:!1}),r=e(`login <url>`,`Authenticate with an Access application and store its JWT through cloudflared.`,()=>import(`./command-CzWWQv8j.mjs`),{command:`access login`,recordArgs:!1}),i=e(`ssh-config`,`Print an example SSH configuration for an Access application.`,()=>import(`./command-DWWuXQV8.mjs`),{command:`access ssh-config`,recordArgs:!1}),a=e(`ssh-gen`,`Generate a short-lived certificate for an Access SSH application.`,()=>import(`./command-B3uWlw57.mjs`),{command:`access ssh-gen`,recordArgs:!1}),o={...e(`tcp`,`Proxy a TCP connection through Access. The command is also available as ssh, rdp, and smb.`,()=>import(`./command-prWMAJbg.mjs`),{command:`access tcp`,recordArgs:!1}),aliases:[`ssh`,`rdp`,`smb`]},s=e(`token <url>`,`Print a JWT for authenticating with an Access application.`,()=>import(`./command-CkZkTjIj.mjs`),{command:`access token`,recordArgs:!1});const c={command:`access`,describe:`Access protected applications and services`,builder:e=>e.command(t(n,`preview`)).command(t(r,`preview`)).command(t(i,`preview`)).command(t(a,`preview`)).command(t(o,`preview`)).command(t(s,`preview`)).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{c as default};
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r,s as i}from"./auth-BUQscD5b.mjs";import{a,i as o,t as s}from"./context-Sgba0fZP.mjs";import{t as c}from"./output-CpiIVa7Q.mjs";import{t as l}from"./dry-run-BBjUQUhR.mjs";import{t as u}from"./progress-B1dpmxCT.mjs";import{t as d}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-Y5OBwDVE.mjs";import{n as ee,t as te}from"./raw-fetch-DSdFjojI.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function ne(e){return e.usage(`$0 accounts applications create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r,s as i}from"./auth-BcNLQji1.mjs";import{a,i as o,t as s}from"./context-DVh8Wyfs.mjs";import{t as c}from"./output-BJEgbI0G.mjs";import{t as l}from"./dry-run-gy0Hl9xo.mjs";import{t as u}from"./progress-CtGsPOpV.mjs";import{t as d}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as f,n as p,s as m,t as h}from"./body-parser-ChnyBsfm.mjs";import{n as g}from"./input-validation-D7z60HJH.mjs";import{a as _,i as v,n as y}from"./prompt-YrI7ltMa.mjs";import{n as ee,t as te}from"./raw-fetch-BE3QgdTE.mjs";var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,body:`json`};function ne(e){return e.usage(`$0 accounts applications create
3
3
 
4
4
  Create a custom application for an account from a name, category, and optional network matchers.`).option(`category-id`,{type:`number`,description:`Numeric identifier for an application category.`}).option(`hostnames`,{type:`string`,array:!0,description:`Hostnames matched by the application.`}).option(`human-id`,{type:`string`,description:`Human-readable identifier for the application.`}).option(`ip-subnets`,{type:`string`,array:!0,description:`IP subnets for this application. Custom application create and update requests accept IPv4 prefix lengths /8 through /32 and IPv6 prefix lengths /32 through /128.`}).option(`name`,{type:`string`,description:`Application name.`}).option(`port-protocols`,{type:`string`,array:!0,description:"Ports matched by the application, in `protocol/port` or inclusive `protocol/start-end` format (for example, `tcp/443` or `udp/10000-20000`). TCP and UDP ports must be between 0 and 65535."}).option(`support-domains`,{type:`string`,array:!0,description:`Support domains matched by the application.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:"Defines a custom application. At least one hostname or IP subnet is required. Support domains and port/protocol pairs do not satisfy this requirement. A NUL character (U+0000) in any string value returns `400`. "})}const re={command:`create`,describe:`Create application`,builder:ne,handler:async e=>d({command:`accounts applications create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(b,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e[`category-id`]===void 0)throw Error(`--category-id is required (or pass --body with this field set).`);e[`human-id`]===void 0&&(e[`human-id`]=await _(`human-id`,`Human-readable identifier for the application.`)),e.name===void 0&&(e.name=await _(`name`,`Application name.`));let o=h({category_id:e[`category-id`],hostnames:e.hostnames,human_id:g(e[`human-id`],`human-id`,`text`),ip_subnets:e[`ip-subnets`],name:g(e.name,`name`,`text`),port_protocols:e[`port-protocols`],support_domains:e[`support-domains`]}),d=await u(`Creating`,async()=>n.send(b,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ie={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`,errors:{409:`ConflictError`,502:`BadGatewayError`}};function ae(e){return e.usage(`$0 accounts applications delete <id>
5
5
 
6
- Delete a custom application and all of its versions. Deletion is rejected when other resources reference the application.`).positional(`id`,{type:`string`,description:`Application ID.`,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 oe={command:`delete <id>`,describe:`Delete application`,builder:ae,handler:async e=>d({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`This operation deletes the custom application and all of its versions. This action cannot be undone.`})){process.stderr.write(`Aborted.
7
- `);return}let o=await u(`Deleting`,async()=>n.send(ie,{account_id:i,id:e.id}));c(o,{successLabel:`Deleted`})})};var se={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`};function ce(e){return e.usage(`$0 accounts applications get <id>
6
+ Delete a custom application and all of its versions. Deletion is rejected when other resources reference the application.`).positional(`id`,{type:`string`,description:`Application ID.`,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 oe={command:`delete <id>`,describe:`Delete application`,builder:ae,handler:async e=>d({command:`accounts applications delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`This operation deletes the custom application and all of its versions. This action cannot be undone.`}))return;let o=await u(`Deleting`,async()=>n.send(ie,{account_id:i,id:e.id}));c(o,{successLabel:`Deleted`})})};var se={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications/${t.id}`};function ce(e){return e.usage(`$0 accounts applications get <id>
8
7
 
9
8
  Retrieve an application available to the account by its numeric application ID.`).positional(`id`,{type:`string`,description:`Application ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get <id>`,describe:`Get application`,builder:ce,handler:async e=>d({command:`accounts applications get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts applications get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/applications/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(se,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var ue={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/applications`,query:[`filter`,`limit`,`offset`,`cursor`,`order_by`,`search`,`lookup`,`fields`],errors:{403:`ForbiddenError`,502:`BadGatewayError`,503:`ServiceUnavailableError`}};function de(e){return e.usage("$0 accounts applications list\n\nList the applications available to an account, both the applications Cloudflare curates and the custom applications the account has defined. Results are paginated. Page with `cursor` so that applications added or removed between requests do not make other results repeat or go missing; `offset` paging can repeat or miss results when the list changes between requests. Use `filter` and `search` to narrow the list, `order_by` to sort it, and `fields` to reduce each result to only the properties you need. Use `lookup` to find complete application names mentioned in a rule sentence, ignoring case. Lookup does not correct misspellings. It ranks matches by relevance and uses the same filters, fields, and pagination as listing. `lookup` cannot be combined with `search`. Invalid UTF-8 or a NUL character (U+0000) in any query parameter name or value returns `400`. The authenticated principal must have access to the account identified by `account_id`.").option(`filter`,{type:`string`,description:"Filter applications using `key:value` format. Supported filter keys:\n- `name`: application name (for example, `name:HR`).\n- `id`: application ID (for example, `id:498`).\n- `human_id`: human-readable ID (for example, `human_id:HR`).\n- `hostname`: hostname or support domain (for example, `hostname:portal.example.com`).\n- `source`: application source name (for example, `source:cloudflare`).\n- `ip_subnet`: CIDR containment; returns applications where a stored subnet contains the search value (for example, `ip_subnet:10.0.1.5/32` matches `10.0.0.0/16`).\n- `category_id`: category ID (for example, `category_id:12`).\n- `category_name`: category name (for example, `category_name:HR`).\n- `supported`: supported Cloudflare product. Values: `GATEWAY`, `ACCESS`, `CASB`.\n- `review_status`: account-specific Gateway review status. Values: `approved`, `unapproved`, `in_review`, `unreviewed`."}).option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:"Number of results to skip. Defaults to 0; negative values are clamped to 0. Ignored when `cursor` is provided."}).option(`cursor`,{type:`string`,description:"Opaque value from `result_info.cursor` of the previous response. Returns the\nresults that follow it. Send the same `filter`, `search`, `lookup`, and\n`order_by` values as the request that returned it; `limit` and `fields` may\nchange. An empty value is the same as no cursor. A modified cursor, or one used\nwith different values, returns `400`."}).option(`order-by`,{type:`string`,description:`Order results using field:direction format. Supported fields are name, id, human_id,
10
9
  category_id, application_type, application_confidence_score, and gen_ai_score.
@@ -42,8 +41,7 @@ Pays an outstanding invoice for an account. Returns a Stripe client secret when
42
41
 
43
42
  Creates a new payment method for an account.`).option(`address`,{type:`string`,description:`Billing address line 1.`}).option(`address2`,{type:`string`,description:`Billing address line 2.`}).option(`bank-account-type`,{type:`string`,description:`Bank account type.`}).option(`bank-code`,{type:`string`,description:`Bank code.`}).option(`bank-country`,{type:`string`,description:`Bank country.`}).option(`bank-name`,{type:`string`,description:`Bank name for bank-based payment methods.`}).option(`bank-routing-number`,{type:`string`,description:`Bank routing number.`}).option(`cashapp-cash-tag`,{type:`string`,description:`Cash App cash tag.`}).option(`city`,{type:`string`,description:`Billing city.`}).option(`country`,{type:`string`,description:`Billing country.`}).option(`default`,{type:`boolean`,description:`Whether this is the default payment method.`}).option(`device-data`,{type:`string`,description:`Device data for fraud prevention.`}).option(`first-name`,{type:`string`,description:`Billing first name.`}).option(`last-name`,{type:`string`,description:`Billing last name.`}).option(`nick-name`,{type:`string`,description:`A nickname for the payment method.`}).option(`payment-account-email`,{type:`string`,description:`Email associated with the payment account.`}).option(`payment-email`,{type:`string`,description:`Payment email address.`}).option(`payment-gateway`,{type:`string`,description:`The payment gateway used.`}).option(`payment-nonce`,{type:`string`,description:`Payment nonce for tokenized payments.`}).option(`state`,{type:`string`,description:`Billing state.`}).option(`type`,{type:`string`,description:`The payment method type.`,choices:[`CREDIT_CARD`,`PAYPAL`,`CASHAPP`,`SEPA_DEBIT`,`LINK`,`ACH_DIRECT_DEBIT`]}).coerce(`type`,e=>g(e,`type`,`text`)).option(`zipcode`,{type:`string`,description:`Billing zip code.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Oe={command:`create`,describe:`Create Payment Method`,builder:De,handler:async e=>d({command:`accounts billing payment-methods create`,classification:{safeFlags:[`default`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(R,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}let o=h({address:g(e.address,`address`,`text`),address2:g(e.address2,`address2`,`text`),bank_account_type:g(e[`bank-account-type`],`bank-account-type`,`text`),bank_code:g(e[`bank-code`],`bank-code`,`text`),bank_country:g(e[`bank-country`],`bank-country`,`text`),bank_name:g(e[`bank-name`],`bank-name`,`text`),bank_routing_number:g(e[`bank-routing-number`],`bank-routing-number`,`text`),cashapp_cash_tag:g(e[`cashapp-cash-tag`],`cashapp-cash-tag`,`text`),city:g(e.city,`city`,`text`),country:g(e.country,`country`,`text`),default:e.default,device_data:g(e[`device-data`],`device-data`,`text`),first_name:g(e[`first-name`],`first-name`,`text`),last_name:g(e[`last-name`],`last-name`,`text`),nick_name:g(e[`nick-name`],`nick-name`,`text`),payment_account_email:g(e[`payment-account-email`],`payment-account-email`,`text`),payment_email:g(e[`payment-email`],`payment-email`,`text`),payment_gateway:g(e[`payment-gateway`],`payment-gateway`,`text`),payment_nonce:g(e[`payment-nonce`],`payment-nonce`,`text`),state:g(e.state,`state`,`text`),type:e.type,zipcode:g(e.zipcode,`zipcode`,`text`)}),d=await u(`Creating`,async()=>n.send(R,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var ke={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ae(e){return e.usage(`$0 accounts billing payment-methods delete <payment-method-id>
44
43
 
45
- Deletes a payment method from an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method 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 je={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Ae,handler:async e=>d({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force})){process.stderr.write(`Aborted.
46
- `);return}let o=await u(`Deleting`,async()=>n.send(ke,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Deleted`})})};var Me={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ne(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
44
+ Deletes a payment method from an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method 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 je={command:`delete <payment-method-id>`,describe:`Delete Payment Method`,builder:Ae,handler:async e=>d({command:`accounts billing payment-methods delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force}))return;let o=await u(`Deleting`,async()=>n.send(ke,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Deleted`})})};var Me={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods/${t.payment_method_id}`};function Ne(e){return e.usage(`$0 accounts billing payment-methods get <payment-method-id>
47
45
 
48
46
  Gets a specific payment method for an account.`).positional(`payment-method-id`,{type:`string`,description:`Payment method identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pe={command:`get <payment-method-id>`,describe:`Get Payment Method`,builder:Ne,handler:async e=>d({command:`accounts billing payment-methods get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts billing payment-methods get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/payment-methods/${e[`payment-method-id`]==null?`<payment-method-id>`:encodeURIComponent(String(e[`payment-method-id`]))}`,pathParams:{"payment-method-id":String(e[`payment-method-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Me,{account_id:i,payment_method_id:e[`payment-method-id`]}));c(o,{successLabel:`Loaded`})})};var Fe={method:`GET`,path:t=>e`/accounts/${t.account_id}/payment-methods`,query:[`page`,`per_page`]};function Ie(e){return e.usage(`$0 accounts billing payment-methods list
49
47
 
@@ -57,8 +55,7 @@ Toggles PDF invoice generation for an account.`).option(`toggle`,{type:`boolean`
57
55
 
58
56
  Retrieve an application category by its numeric ID.`).positional(`id`,{type:`string`,description:`Application category ID.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ye={command:`get <id>`,describe:`Get application category`,builder:Je,handler:async e=>d({command:`accounts categories get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts categories get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/resource-library/categories/${e.id==null?`<id>`:encodeURIComponent(String(e.id))}`,pathParams:{id:String(e.id??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(qe,{account_id:i,id:e.id}));c(o,{successLabel:`Loaded`})})};var Xe={method:`GET`,path:t=>e`/accounts/${t.account_id}/resource-library/categories`,query:[`limit`,`offset`,`cursor`],errors:{503:`ServiceUnavailableError`}};function Ze(e){return e.usage("$0 accounts categories list\n\nList the categories available for classifying applications, ordered by name. Results are paginated by `offset` or `cursor`.").option(`limit`,{type:`number`,description:`Number of results to return. Defaults to 25; values are clamped to 1–250.`}).option(`offset`,{type:`number`,description:"Number of results to skip. Defaults to 0; negative values are clamped to 0. Ignored when `cursor` is provided."}).option(`cursor`,{type:`string`,description:"Opaque value from `result_info.cursor` of the previous response. Returns the\ncategories that follow it. `limit` may change between requests. An empty value\nis the same as no cursor. A modified cursor, or one returned by a different list,\nreturns `400`."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Qe={command:`list`,describe:`List application categories`,builder:Ze,handler:async e=>d({command:`accounts categories list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={limit:e.limit,offset:e.offset,cursor:e.cursor};if(e.dryRun){let e=await a();l({command:`cf accounts categories list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/resource-library/categories`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Xe,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},$e={command:`categories`,describe:`Browse the categories used to classify applications`,builder:e=>e.command(Ye).command(Qe).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function et(e){return e.usage("$0 accounts create\n\nCreate an Account. To create the Account within an Organization, provide `unit.id` and omit `standalone`. To create a standalone Free Account, provide `standalone: true` and omit `unit`. Providing both fields is invalid. If you omit both fields, Cloudflare can determine the destination only when the User is an administrator of exactly one Organization. Cloudflare creates the Account in that Organization; otherwise, the request returns an error.").option(`idempotency-key`,{type:`string`,description:`Optional key that identifies an Account-creation request. Free Account creation can require exactly one valid key, so API clients should send a key with every Account-creation request. Reuse the same key when retrying the same request.`}).option(`name`,{type:`string`,description:`Account name`}).option(`standalone`,{type:`boolean`,description:"Set to `true` and omit `unit` to create a standalone Free Account. If provided, this field must be `true`."}).option(`type`,{type:`string`,description:`The type field`,choices:[`standard`,`enterprise`]}).coerce(`type`,e=>g(e,`type`,`text`)).option(`unit-id`,{type:`string`,description:`Tenant unit ID`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Parameters for account creation`})}const tt={command:`create`,describe:`Create an Account`,builder:et,handler:async e=>d({command:`accounts create`,classification:{safeFlags:[`standalone`,`type`,`dry-run`]}},e,async()=>{let t={};if(e[`idempotency-key`]!==void 0&&(t[`Idempotency-Key`]=String(e[`idempotency-key`])),e.dryRun){l({command:`cf accounts create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({name:g(e.name,`name`,`text`),standalone:e.standalone,type:e.type,unit:{id:g(e[`unit-id`],`unit-id`,`text`)}}):p(e.body)});return}let i=await r(e);if(e.body){let r=p(e.body),a=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:r,headers:Object.keys(t).length>0?t:void 0}));c(a,{successLabel:`Created`});return}e.name===void 0&&(e.name=await _(`name`,`Account name`));let a={};e.name!==void 0&&m(a,[`name`],g(e.name,`name`,`text`)),e.standalone!==void 0&&m(a,[`standalone`],e.standalone),e.type!==void 0&&m(a,[`type`],e.type),e[`unit-id`]!==void 0&&m(a,[`unit`,`id`],g(e[`unit-id`],`unit-id`,`text`));let o=await u(`Creating`,async()=>n(i,`POST`,`/accounts`,{body:a,headers:Object.keys(t).length>0?t:void 0}));c(o,{successLabel:`Created`})})};var nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}`};function rt(e){return e.usage(`$0 accounts delete
59
57
 
60
- Delete a specific account (only available for tenant admins at this time). This is a permanent operation that will delete any zones or other resources under the account`).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 it={command:`delete`,describe:`Delete a specific account`,builder:rt,handler:async e=>d({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
61
- `);return}let o=await u(`Deleting`,async()=>n.send(nt,{account_id:i}));c(o,{successLabel:`Deleted`})})};var at={method:`GET`,path:t=>e`/accounts/${t.account_id}`};function ot(e){return e.usage(`$0 accounts get
58
+ Delete a specific account (only available for tenant admins at this time). This is a permanent operation that will delete any zones or other resources under the account`).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 it={command:`delete`,describe:`Delete a specific account`,builder:rt,handler:async e=>d({command:`accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`}))return;let o=await u(`Deleting`,async()=>n.send(nt,{account_id:i}));c(o,{successLabel:`Deleted`})})};var at={method:`GET`,path:t=>e`/accounts/${t.account_id}`};function ot(e){return e.usage(`$0 accounts get
62
59
 
63
60
  Get information about a specific account that you are a member of.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const st={command:`get`,describe:`Account Details`,builder:ot,handler:async e=>d({command:`accounts get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await a();l({command:`cf accounts get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}`,pathParams:{},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(at,{account_id:i}));c(o,{successLabel:`Loaded`})})};function ct(e){return e.usage(`$0 accounts list
64
61
 
@@ -72,8 +69,7 @@ Add a user to the list of members for this account.`).option(`email`,{type:`stri
72
69
  Changing from 'accepted' back to 'pending' will trigger a replacement of the member resource in Terraform.
73
70
  `,choices:[`accepted`,`pending`]}).coerce(`status`,e=>g(e,`status`,`text`)).option(`policies`,{type:`string`,description:`Array of policies associated with this member. 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)`}).conflicts(`roles`,[`policies`]).conflicts(`policies`,[`roles`])}const St={command:`create`,describe:`Add Member`,builder:xt,handler:async e=>d({command:`accounts members create`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({email:g(e.email,`email`,`text`),roles:e.roles,status:e.status,policies:f(e.policies,`policies`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(V,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}e.email===void 0&&(e.email=await _(`email`,`The contact email address of the user.`));let o=h({email:g(e.email,`email`,`text`),roles:e.roles,status:e.status,policies:f(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(V,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var Ct={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function wt(e){return e.usage(`$0 accounts members delete <member-id>
74
71
 
75
- Remove a member from an account.`).positional(`member-id`,{type:`string`,description:`Membership 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 Tt={command:`delete <member-id>`,describe:`Remove Member`,builder:wt,handler:async e=>d({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure you want to remove this user from the account?`})){process.stderr.write(`Aborted.
76
- `);return}let o=await u(`Deleting`,async()=>n.send(Ct,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Deleted`})})};var Et={method:`GET`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Dt(e){return e.usage(`$0 accounts members get <member-id>
72
+ Remove a member from an account.`).positional(`member-id`,{type:`string`,description:`Membership 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 Tt={command:`delete <member-id>`,describe:`Remove Member`,builder:wt,handler:async e=>d({command:`accounts members delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure you want to remove this user from the account?`}))return;let o=await u(`Deleting`,async()=>n.send(Ct,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Deleted`})})};var Et={method:`GET`,path:t=>e`/accounts/${t.account_id}/members/${t.member_id}`};function Dt(e){return e.usage(`$0 accounts members get <member-id>
77
73
 
78
74
  Get information about a specific member of an account.`).positional(`member-id`,{type:`string`,description:`Membership identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ot={command:`get <member-id>`,describe:`Member Details`,builder:Dt,handler:async e=>d({command:`accounts members get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts members get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/members/${e[`member-id`]==null?`<member-id>`:encodeURIComponent(String(e[`member-id`]))}`,pathParams:{"member-id":String(e[`member-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(Et,{account_id:i,member_id:e[`member-id`]}));c(o,{successLabel:`Loaded`})})};var kt={method:`GET`,path:t=>e`/accounts/${t.account_id}/members`,query:[`order`,`status`,`page`,`per_page`,`direction`]};function At(e){return e.usage(`$0 accounts members list
79
75
 
@@ -95,8 +91,7 @@ Records a cancellation reason for an account subscription.`).positional(`subscri
95
91
 
96
92
  Creates an account or zone subscription.`).option(`app-install-id`,{type:`string`,description:`app install id.`}).option(`component-values`,{type:`string`,description:`Configurable component values for the subscription. Provide as a JSON array of objects or @path/to/file.json.`}).option(`frequency`,{type:`string`,description:`How often the subscription is renewed automatically.`,choices:[`weekly`,`monthly`,`quarterly`,`yearly`]}).coerce(`frequency`,e=>g(e,`frequency`,`text`)).option(`rate-plan-currency`,{type:`string`,description:`The currency applied to the rate plan subscription.`}).option(`rate-plan-externally-managed`,{type:`boolean`,description:`Whether this rate plan is managed externally from Cloudflare.`}).option(`rate-plan-id`,{type:`string`,description:`The ID of the rate plan.`}).option(`rate-plan-is-contract`,{type:`boolean`,description:`Whether a rate plan is enterprise-based (or newly adopted term contract).`}).option(`rate-plan-public-name`,{type:`string`,description:`The full name of the rate plan.`}).option(`rate-plan-scope`,{type:`string`,description:`The scope that this rate plan applies to.`}).option(`rate-plan-sets`,{type:`string`,array:!0,description:`The list of sets this rate plan applies to. Returns array of strings.`}).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 Qt={command:`create`,describe:`Create Subscription`,builder:Zt,handler:async e=>d({command:`accounts subscriptions create`,classification:{safeFlags:[`frequency`,`rate-plan-externally-managed`,`rate-plan-is-contract`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=e.zone===void 0?await a():void 0,n=e.zone===void 0?`accounts`:`zones`,r=e.zone??t??`<account-id>`;l({command:`cf accounts subscriptions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/subscriptions`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:e.body===void 0?h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:f(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}):p(e.body)});return}let n=await r(e),i=e.zone===void 0?`accounts`:`zones`,d=i===`zones`?await o({zone:e.zone},n,{quiet:e.quiet}):e.local?t:await s();if(i===`zones`?e.zoneId=d:e.accountId=d,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(q,{body:t,account_or_zone:i,account_or_zone_id:d}));c(r,{successLabel:`Created`});return}let m=h({app:{install_id:g(e[`app-install-id`],`app-install-id`,`text`)},component_values:f(e[`component-values`],`component-values`),frequency:e.frequency,rate_plan:{currency:g(e[`rate-plan-currency`],`rate-plan-currency`,`text`),externally_managed:e[`rate-plan-externally-managed`],id:g(e[`rate-plan-id`],`rate-plan-id`,`text`),is_contract:e[`rate-plan-is-contract`],public_name:g(e[`rate-plan-public-name`],`rate-plan-public-name`,`text`),scope:g(e[`rate-plan-scope`],`rate-plan-scope`,`text`),sets:e[`rate-plan-sets`]}}),_=await u(`Creating`,async()=>n.send(q,{body:m,account_or_zone:i,account_or_zone_id:d}));c(_,{successLabel:`Created`})})};var $t={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`};function en(e){return e.usage(`$0 accounts subscriptions delete <subscription-identifier>
97
93
 
98
- Deletes an account's subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription 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 tn={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:en,handler:async e=>d({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force})){process.stderr.write(`Aborted.
99
- `);return}let o=await u(`Deleting`,async()=>n.send($t,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Deleted`})})};var nn={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,errors:{404:`NotFoundError`}};function rn(e){return e.usage(`$0 accounts subscriptions get-by-identifier <subscription-identifier>
94
+ Deletes an account's subscription.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription 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 tn={command:`delete <subscription-identifier>`,describe:`Delete Subscription`,builder:en,handler:async e=>d({command:`accounts subscriptions delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force}))return;let o=await u(`Deleting`,async()=>n.send($t,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Deleted`})})};var nn={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}`,errors:{404:`NotFoundError`}};function rn(e){return e.usage(`$0 accounts subscriptions get-by-identifier <subscription-identifier>
100
95
 
101
96
  Gets an account subscription by identifier.`).positional(`subscription-identifier`,{type:`string`,description:`Subscription identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const an={command:`get-by-identifier <subscription-identifier>`,describe:`Get Subscription`,builder:rn,handler:async e=>d({command:`accounts subscriptions get-by-identifier`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts subscriptions get-by-identifier`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/subscriptions/${e[`subscription-identifier`]==null?`<subscription-identifier>`:encodeURIComponent(String(e[`subscription-identifier`]))}`,pathParams:{"subscription-identifier":String(e[`subscription-identifier`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(nn,{account_id:i,subscription_identifier:e[`subscription-identifier`]}));c(o,{successLabel:`Loaded`})})};var on={method:`GET`,path:t=>e`/accounts/${t.account_id}/subscriptions/${t.subscription_identifier}/cancel-reason`};function sn(e){return e.usage(`$0 accounts subscriptions get-cancel-reason <subscription-identifier>
102
97
 
@@ -108,8 +103,7 @@ Updates an account subscription.`).positional(`subscription-identifier`,{type:`s
108
103
 
109
104
  Create a new Account Owned API token.`).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. 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 gn={command:`create`,describe:`Create Token`,builder:hn,handler:async e=>d({command:`accounts tokens create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens`,pathParams:{},bodyKind:`json`,body:e.body===void 0?h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:f(e.policies,`policies`)}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Creating`,async()=>n.send(Y,{body:t,account_id:i}));c(r,{successLabel:`Created`});return}if(e.name===void 0&&(e.name=await _(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:f(e.policies,`policies`)}),d=await u(`Creating`,async()=>n.send(Y,{body:o,account_id:i}));c(d,{successLabel:`Created`})})};var _n={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function vn(e){return e.usage(`$0 accounts tokens delete <token-id>
110
105
 
111
- Destroy an Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token 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 yn={command:`delete <token-id>`,describe:`Delete Token`,builder:vn,handler:async e=>d({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`})){process.stderr.write(`Aborted.
112
- `);return}let o=await u(`Deleting`,async()=>n.send(_n,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var bn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function xn(e){return e.usage(`$0 accounts tokens get <token-id>
106
+ Destroy an Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token 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 yn={command:`delete <token-id>`,describe:`Delete Token`,builder:vn,handler:async e=>d({command:`accounts tokens delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Are you sure? This action cannot be undone.`}))return;let o=await u(`Deleting`,async()=>n.send(_n,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var bn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`};function xn(e){return e.usage(`$0 accounts tokens get <token-id>
113
107
 
114
108
  Get information about a specific Account Owned API token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Sn={command:`get <token-id>`,describe:`Token Details`,builder:xn,handler:async e=>d({command:`accounts tokens get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();e.accountId=i;let o=await u(`Loading`,async()=>n.send(bn,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Loaded`})})};var Cn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens`,query:[`page`,`per_page`,`direction`,`include_expired`]};function wn(e){return e.usage("$0 accounts tokens list\n\nList Account Owned API tokens created for this account. Callers with `com.cloudflare.api.account.token.list_self` permission only receive tokens they created. Results include active, disabled, and recently-expired tokens when `include_expired` is set to true.").option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page.`}).option(`direction`,{type:`string`,description:`Direction to order results.`,choices:[`asc`,`desc`]}).option(`include-expired`,{type:`boolean`,description:`When true, includes recently-expired tokens in the response.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tn={command:`list`,describe:`List Tokens`,builder:wn,handler:async e=>d({command:`accounts tokens list`,classification:{safeFlags:[`direction`,`include-expired`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],direction:e.direction,include_expired:e[`include-expired`]};if(e.dryRun){let e=await a();l({command:`cf accounts tokens list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(Cn,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})};var En={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/permission_groups`,query:[`name`,`scope`]};function Dn(e){return e.usage(`$0 accounts tokens permission-groups list
115
109
 
@@ -117,8 +111,7 @@ Find all available permission groups for Account Owned API Tokens. Each permissi
117
111
  The value must be URL-encoded.`}).option(`scope`,{type:`string`,description:`Filter by the scope of the permission group.
118
112
  The value must be URL-encoded.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const On={command:`list`,describe:`List Permission Groups`,builder:Dn,handler:async e=>d({command:`accounts tokens permission-groups list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={name:e.name,scope:e.scope};if(e.dryRun){let e=await a();l({command:`cf accounts tokens permission-groups list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/tokens/permission_groups`,pathParams:{},query:n,bodyKind:`none`});return}let i=await r(e),o=e.local?t:await s();e.accountId=o;let d=await u(`Loading`,async()=>i.send(En,{account_id:o,...n}));c(d,{successLabel:`Loaded`})})},kn={command:`permission-groups`,describe:`Operations for tokens.permission-groups`,builder:e=>e.command(On).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var An={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}/value`};function jn(e){return e.usage(`$0 accounts tokens roll <token-id>
119
113
 
120
- Roll the Account Owned API token secret.`).positional(`token-id`,{type:`string`,description:`Token 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 Mn={command:`roll <token-id>`,describe:`Roll Token`,builder:jn,handler:async e=>d({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`})){process.stderr.write(`Aborted.
121
- `);return}let o=await u(`Deleting`,async()=>n.send(An,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`,body:`json`};function Nn(e){return e.usage(`$0 accounts tokens update <token-id>
114
+ Roll the Account Owned API token secret.`).positional(`token-id`,{type:`string`,description:`Token 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 Mn={command:`roll <token-id>`,describe:`Roll Token`,builder:jn,handler:async e=>d({command:`accounts tokens roll`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens roll`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}/value`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`none`});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,!await y({force:!!e.force,message:`Rolling this token will invalidate the current secret and generate a new one. Any integrations using the current secret will stop working.`}))return;let o=await u(`Deleting`,async()=>n.send(An,{account_id:i,token_id:e[`token-id`]}));c(o,{successLabel:`Deleted`})})};var X={method:`PUT`,path:t=>e`/accounts/${t.account_id}/tokens/${t.token_id}`,body:`json`};function Nn(e){return e.usage(`$0 accounts tokens update <token-id>
122
115
 
123
116
  Update an existing token.`).positional(`token-id`,{type:`string`,description:`Token identifier tag.`,demandOption:!0}).option(`condition-request-ip-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`condition-request-ip-not-in`,{type:`string`,array:!0,description:`List of IPv4/IPv6 CIDR addresses.`}).option(`expires-on`,{type:`string`,description:`The expiration time on or after which the JWT MUST NOT be accepted for processing.`}).option(`name`,{type:`string`,description:`Token name.`}).option(`not-before`,{type:`string`,description:`The time before which the token MUST NOT be accepted for processing.`}).option(`policies`,{type:`string`,description:`List of access policies assigned to the token. Provide as a JSON array of objects or @path/to/file.json.`}).option(`status`,{type:`string`,description:`Status of the token.`,choices:[`active`,`disabled`,`expired`]}).coerce(`status`,e=>g(e,`status`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Pn={command:`update <token-id>`,describe:`Update Token`,builder:Nn,handler:async e=>d({command:`accounts tokens update`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await a();l({command:`cf accounts tokens update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/tokens/${e[`token-id`]==null?`<token-id>`:encodeURIComponent(String(e[`token-id`]))}`,pathParams:{"token-id":String(e[`token-id`]??``)},bodyKind:`json`,body:e.body===void 0?h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:f(e.policies,`policies`),status:e.status}):p(e.body)});return}let n=await r(e),i=e.local?t:await s();if(e.accountId=i,e.body){let t=p(e.body),r=await u(`Updating`,async()=>n.send(X,{body:t,account_id:i,token_id:e[`token-id`]}));c(r,{successLabel:`Updated`});return}if(e.name===void 0&&(e.name=await _(`name`,`Token name.`)),e.policies===void 0)throw Error(`--policies is required (or pass --body with this field set).`);let o=h({condition:{request_ip:{in:e[`condition-request-ip-in`],not_in:e[`condition-request-ip-not-in`]}},expires_on:g(e[`expires-on`],`expires-on`,`text`),name:g(e.name,`name`,`text`),not_before:g(e[`not-before`],`not-before`,`text`),policies:f(e.policies,`policies`),status:e.status}),d=await u(`Updating`,async()=>n.send(X,{body:o,account_id:i,token_id:e[`token-id`]}));c(d,{successLabel:`Updated`})})};var Fn={method:`GET`,path:t=>e`/accounts/${t.account_id}/tokens/verify`};function Z(e){return e.usage(`$0 accounts tokens verify
124
117
 
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BUQscD5b.mjs";import{i as n}from"./context-Sgba0fZP.mjs";import{t as r}from"./output-CpiIVa7Q.mjs";import{t as i}from"./dry-run-BBjUQUhR.mjs";import{t as a}from"./progress-B1dpmxCT.mjs";import{t as o}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-Y5OBwDVE.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as s,t as c}from"./body-parser-ChnyBsfm.mjs";import{n as l}from"./input-validation-D7z60HJH.mjs";import{a as u,n as d}from"./prompt-YrI7ltMa.mjs";var f={method:`POST`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,body:`json`};function p(e){return e.usage(`$0 acm custom-trust-store create
3
3
 
4
4
  Upload a root CA certificate to the Custom Origin Trust Store for a Zone. Only root CA certificates are accepted.`).option(`certificate`,{type:`string`,description:`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const m={command:`create`,describe:`Upload Custom Origin Trust Store`,builder:p,handler:async e=>o({command:`acm custom-trust-store create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?c({certificate:l(e.certificate,`certificate`,`text`)}):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(f,{body:t,zone_id:d}));r(n,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await u(`certificate`,`The root CA certificate in PEM format. Only root CA certificates are accepted; intermediate and leaf certificates are not supported.`));let p=c({certificate:l(e.certificate,`certificate`,`text`)}),m=await a(`Creating`,async()=>o.send(f,{body:p,zone_id:d}));r(m,{successLabel:`Created`})})};var h={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function g(e){return e.usage(`$0 acm custom-trust-store delete <custom-origin-trust-store-id>
5
5
 
6
- Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:g,handler:async e=>o({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force})){process.stderr.write(`Aborted.
7
- `);return}let c=await a(`Deleting`,async()=>o.send(h,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Deleted`})})};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function y(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
6
+ Removes a root CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _={command:`delete <custom-origin-trust-store-id>`,describe:`Delete Custom Origin Trust Store`,builder:g,handler:async e=>o({command:`acm custom-trust-store delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await d({force:!!e.force}))return;let c=await a(`Deleting`,async()=>o.send(h,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Deleted`})})};var v={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store/${t.custom_origin_trust_store_id}`};function y(e){return e.usage(`$0 acm custom-trust-store get <custom-origin-trust-store-id>
8
7
 
9
8
  Retrieves details about a specific root CA certificate in the custom origin trust store, including expiration and subject information.`).positional(`custom-origin-trust-store-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-origin-trust-store-id>`,describe:`Custom Origin Trust Store Details`,builder:y,handler:async e=>o({command:`acm custom-trust-store get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf acm custom-trust-store get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/acm/custom_trust_store/${e[`custom-origin-trust-store-id`]==null?`<custom-origin-trust-store-id>`:encodeURIComponent(String(e[`custom-origin-trust-store-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-origin-trust-store-id":String(e[`custom-origin-trust-store-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(v,{zone_id:s,custom_origin_trust_store_id:e[`custom-origin-trust-store-id`]}));r(c,{successLabel:`Loaded`})})};var x={method:`GET`,path:t=>e`/zones/${t.zone_id}/acm/custom_trust_store`,query:[`page`,`per_page`,`limit`,`offset`]};function S(e){return e.usage(`$0 acm custom-trust-store list
10
9
 
@@ -1,25 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{i as n,n as r}from"./auth-BUQscD5b.mjs";import{a as i,i as a,t as o}from"./context-Sgba0fZP.mjs";import{t as s}from"./output-CpiIVa7Q.mjs";import{t as c}from"./dry-run-BBjUQUhR.mjs";import{t as l}from"./progress-B1dpmxCT.mjs";import{t as u}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-Y5OBwDVE.mjs";import{n as ee,t as te}from"./raw-fetch-DSdFjojI.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{i as n,n as r}from"./auth-BcNLQji1.mjs";import{a as i,i as a,t as o}from"./context-DVh8Wyfs.mjs";import{t as s}from"./output-BJEgbI0G.mjs";import{t as c}from"./dry-run-gy0Hl9xo.mjs";import{t as l}from"./progress-CtGsPOpV.mjs";import{t as u}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as d,n as f,t as p}from"./body-parser-ChnyBsfm.mjs";import{n as m,t as h}from"./input-validation-D7z60HJH.mjs";import{a as g,n as _}from"./prompt-YrI7ltMa.mjs";import{n as ee,t as te}from"./raw-fetch-BE3QgdTE.mjs";var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function y(e){return e.usage(`$0 addressing address-maps accounts delete <member-account-id>
3
3
 
4
- Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ne={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:y,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
5
- `);return}let u=await l(`Deleting`,async()=>n.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Deleted`})})};var re={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
4
+ Remove an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ne={command:`delete <member-account-id>`,describe:`Remove an account membership from an Address Map`,builder:y,handler:async e=>u({command:`addressing address-maps accounts delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(v,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Deleted`})})};var re={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/accounts/${t.member_account_id}`};function ie(e){return e.usage(`$0 addressing address-maps accounts update <member-account-id>
6
5
 
7
6
  Add an account as a member of a particular address map.`).positional(`member-account-id`,{type:`string`,description:`Identifier of a Cloudflare account.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`update <member-account-id>`,describe:`Add an account membership to an Address Map`,builder:ie,handler:async e=>u({command:`addressing address-maps accounts update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps accounts update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/accounts/${e[`member-account-id`]==null?`<member-account-id>`:encodeURIComponent(String(e[`member-account-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-account-id":String(e[`member-account-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Updating`,async()=>n.send(re,{account_id:a,address_map_id:e[`address-map-id`],member_account_id:e[`member-account-id`]}));s(u,{successLabel:`Updated`})})},oe={command:`accounts`,describe:`Operations for address-maps.accounts`,builder:e=>e.command(ne).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps`,body:`json`};function se(e){return e.usage(`$0 addressing address-maps create
8
7
 
9
8
  Create a new address map under the account.`).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`,default:!1}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`memberships`,{type:`string`,description:`Zones and Accounts which will be assigned IPs on this Address Map. A zone membership will take priority over an account membership. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ce={command:`create`,describe:`Create Address Map`,builder:se,handler:async e=>u({command:`addressing address-maps create`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:d(e.memberships,`memberships`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(b,{body:t,account_id:a}));s(r,{successLabel:`Created`});return}let u=p({description:m(e.description,`description`,`text`),enabled:e.enabled,ips:e.ips,memberships:d(e.memberships,`memberships`)}),h=await l(`Creating`,async()=>n.send(b,{body:u,account_id:a}));s(h,{successLabel:`Created`})})};var le={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function ue(e){return e.usage(`$0 addressing address-maps delete <address-map-id>
10
9
 
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 de={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:ue,handler:async e=>u({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
12
- `);return}let u=await l(`Deleting`,async()=>n.send(le,{account_id:a,address_map_id:e[`address-map-id`]}));s(u,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`,body:`json`};function fe(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
10
+ Delete a particular address map owned by the account. An Address Map must be disabled before it can be deleted.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const de={command:`delete <address-map-id>`,describe:`Delete Address Map`,builder:ue,handler:async e=>u({command:`addressing address-maps delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(le,{account_id:a,address_map_id:e[`address-map-id`]}));s(u,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`,body:`json`};function fe(e){return e.usage(`$0 addressing address-maps edit <address-map-id>
13
11
 
14
12
  Modify properties of an address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`default-sni`,{type:`string`,description:`If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map. If Cloudflare receives a TLS handshake from a client without an SNI, it will respond with the default SNI on those IPs. The default SNI can be any valid zone or subdomain owned by the account.`}).option(`description`,{type:`string`,description:`An optional description field which may be used to describe the types of IPs or zones on the map.`}).option(`enabled`,{type:`boolean`,description:`Whether the Address Map is enabled or not. Cloudflare's DNS will not respond with IP addresses on an Address Map until the map is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <address-map-id>`,describe:`Update Address Map`,builder:fe,handler:async e=>u({command:`addressing address-maps edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({default_sni:m(e[`default-sni`],`default-sni`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(x,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Updated`});return}let u=p({default_sni:m(e[`default-sni`],`default-sni`,`text`),description:m(e.description,`description`,`text`),enabled:e.enabled}),d=await l(`Updating`,async()=>n.send(x,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}`};function w(e){return e.usage(`$0 addressing address-maps get <address-map-id>
15
13
 
16
14
  Show a particular address map owned by the account.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get <address-map-id>`,describe:`Address Map Details`,builder:w,handler:async e=>u({command:`addressing address-maps get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(C,{account_id:a,address_map_id:e[`address-map-id`]}));s(u,{successLabel:`Loaded`})})};var E={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function D(e){return e.usage(`$0 addressing address-maps ips delete-bulk <address-map-id>
17
15
 
18
- Remove multiple IPs from a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple IPs from an Address Map`,builder:D,handler:async e=>u({command:`addressing address-maps ips delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
19
- `);return}if(e.body){let t=f(e.body),r=await l(`Deleting`,async()=>n.send(E,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({ips:e.ips}),d=await l(`Deleting`,async()=>n.send(E,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Deleted`})})};var k={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
16
+ Remove multiple IPs from a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple IPs from an Address Map`,builder:D,handler:async e=>u({command:`addressing address-maps ips delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;if(e.body){let t=f(e.body),r=await l(`Deleting`,async()=>n.send(E,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({ips:e.ips}),d=await l(`Deleting`,async()=>n.send(E,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Deleted`})})};var k={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function A(e){return e.usage(`$0 addressing address-maps ips delete <ip-address>
20
17
 
21
- Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
22
- `);return}let u=await l(`Deleting`,async()=>n.send(k,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Deleted`})})};var M={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function N(e){return e.usage(`$0 addressing address-maps ips update-bulk <address-map-id>
18
+ Remove an IP from a particular address map.`).positional(`ip-address`,{type:`string`,description:`An IPv4 or IPv6 address.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <ip-address>`,describe:`Remove an IP from an Address Map`,builder:A,handler:async e=>u({command:`addressing address-maps ips delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips/${e[`ip-address`]==null?`<ip-address>`:encodeURIComponent(String(e[`ip-address`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"ip-address":String(e[`ip-address`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(k,{account_id:a,address_map_id:e[`address-map-id`],ip_address:e[`ip-address`]}));s(u,{successLabel:`Deleted`})})};var M={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips`,body:`json`};function N(e){return e.usage(`$0 addressing address-maps ips update-bulk <address-map-id>
23
19
 
24
20
  Add multiple IPs to a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`ips`,{type:`string`,array:!0,description:`The ips field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`update-bulk <address-map-id>`,describe:`Add Multiple IPs to an Address Map`,builder:N,handler:async e=>u({command:`addressing address-maps ips update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps ips update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/ips`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({ips:e.ips}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(M,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.ips===void 0)throw Error(`--ips is required (or pass --body with this field set).`);let u=p({ips:e.ips}),d=await l(`Creating`,async()=>n.send(M,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Created`})})};var F={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/ips/${t.ip_address}`};function I(e){return e.usage(`$0 addressing address-maps ips update <ip-address>
25
21
 
@@ -27,11 +23,9 @@ Add an IP from a prefix owned by the account to a particular address map.`).posi
27
23
 
28
24
  List all address maps owned by the account.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`list`,describe:`List Address Maps`,builder:B,handler:async e=>u({command:`addressing address-maps list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();c({command:`cf addressing address-maps list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/addressing/address_maps`,pathParams:{},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(z,{account_id:a}));s(u,{successLabel:`Loaded`})})};var H={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function pe(e){return e.usage(`$0 addressing address-maps zones delete-bulk <address-map-id>
29
25
 
30
- Remove multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const me={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple Zones from an Address Map`,builder:pe,handler:async e=>u({command:`addressing address-maps zones delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
31
- `);return}if(e.body){let t=f(e.body),r=await l(`Deleting`,async()=>n.send(H,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({zones:e.zones}),d=await l(`Deleting`,async()=>n.send(H,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Deleted`})})};var he={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function ge(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
26
+ Remove multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const me={command:`delete-bulk <address-map-id>`,describe:`Remove Multiple Zones from an Address Map`,builder:pe,handler:async e=>u({command:`addressing address-maps zones delete-bulk`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete-bulk`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;if(e.body){let t=f(e.body),r=await l(`Deleting`,async()=>n.send(H,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Deleted`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({zones:e.zones}),d=await l(`Deleting`,async()=>n.send(H,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Deleted`})})};var he={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function ge(e){return e.usage(`$0 addressing address-maps zones delete <member-zone-id>
32
27
 
33
- Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
34
- `);return}let u=await l(`Deleting`,async()=>n.send(he,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function ve(e){return e.usage(`$0 addressing address-maps zones update-bulk <address-map-id>
28
+ Remove a zone as a member of a particular address map.`).positional(`member-zone-id`,{type:`string`,description:`Identifier of a zone.`,demandOption:!0}).option(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const _e={command:`delete <member-zone-id>`,describe:`Remove a zone membership from an Address Map`,builder:ge,handler:async e=>u({command:`addressing address-maps zones delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones/${e[`member-zone-id`]==null?`<member-zone-id>`:encodeURIComponent(String(e[`member-zone-id`]))}`,pathParams:{"address-map-id":String(e[`address-map-id`]??``),"member-zone-id":String(e[`member-zone-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(he,{account_id:a,address_map_id:e[`address-map-id`],member_zone_id:e[`member-zone-id`]}));s(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones`,body:`json`};function ve(e){return e.usage(`$0 addressing address-maps zones update-bulk <address-map-id>
35
29
 
36
30
  Add multiple zones as members of a particular address map.`).positional(`address-map-id`,{type:`string`,description:`Identifier of an Address Map.`,demandOption:!0}).option(`zones`,{type:`string`,array:!0,description:`The zones field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ye={command:`update-bulk <address-map-id>`,describe:`Add Multiple Zones to an Address Map`,builder:ve,handler:async e=>u({command:`addressing address-maps zones update-bulk`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing address-maps zones update-bulk`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/address_maps/${e[`address-map-id`]==null?`<address-map-id>`:encodeURIComponent(String(e[`address-map-id`]))}/zones`,pathParams:{"address-map-id":String(e[`address-map-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({zones:e.zones}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(U,{body:t,account_id:a,address_map_id:e[`address-map-id`]}));s(r,{successLabel:`Created`});return}if(e.zones===void 0)throw Error(`--zones is required (or pass --body with this field set).`);let u=p({zones:e.zones}),d=await l(`Creating`,async()=>n.send(U,{body:u,account_id:a,address_map_id:e[`address-map-id`]}));s(d,{successLabel:`Created`})})};var be={method:`PUT`,path:t=>e`/accounts/${t.account_id}/addressing/address_maps/${t.address_map_id}/zones/${t.member_zone_id}`};function xe(e){return e.usage(`$0 addressing address-maps zones update <member-zone-id>
37
31
 
@@ -51,8 +45,7 @@ View the current advertisement state for a prefix. **Deprecated:** Prefer the BG
51
45
 
52
46
  Create a BGP prefix, controlling the BGP advertisement status of a specific subnet. When created, BGP prefixes are initially withdrawn, and can be advertised with the Update BGP Prefix API.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const We={command:`create <prefix-id>`,describe:`Create BGP Prefix`,builder:Ue,handler:async e=>u({command:`addressing prefixes bgp-prefixes create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(G,{body:t,account_id:a,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`));let u=p({cidr:m(e.cidr,`cidr`,`text`)}),d=await l(`Creating`,async()=>n.send(G,{body:u,account_id:a,prefix_id:e[`prefix-id`]}));s(d,{successLabel:`Created`})})};var Ge={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ke(e){return e.usage(`$0 addressing prefixes bgp-prefixes delete <bgp-prefix-id>
53
47
 
54
- Delete a BGP Prefix associated with the specified IP Prefix. A BGP Prefix must be withdrawn before it can be deleted.`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const qe={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:Ke,handler:async e=>u({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
55
- `);return}let u=await l(`Deleting`,async()=>n.send(Ge,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(u,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`,body:`json`};function Je(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
48
+ Delete a BGP Prefix associated with the specified IP Prefix. A BGP Prefix must be withdrawn before it can be deleted.`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const qe={command:`delete <bgp-prefix-id>`,describe:`Delete BGP Prefix`,builder:Ke,handler:async e=>u({command:`addressing prefixes bgp-prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Ge,{account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(u,{successLabel:`Deleted`})})};var K={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`,body:`json`};function Je(e){return e.usage(`$0 addressing prefixes bgp-prefixes edit <bgp-prefix-id>
56
49
 
57
50
  Update the properties of a BGP Prefix, such as the on demand advertisement status (advertised or withdrawn).`).positional(`bgp-prefix-id`,{type:`string`,description:`Identifier of BGP Prefix.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`asn-prepend-count`,{type:`number`,description:`Number of times to prepend the Cloudflare ASN to the BGP AS-Path attribute`}).option(`auto-advertise-withdraw`,{type:`boolean`,description:`Determines if Cloudflare advertises a BYOIP BGP prefix even when there is no matching BGP prefix in the Magic routing table. When true, Cloudflare will automatically withdraw the BGP prefix when there are no matching BGP routes, and will resume advertising when there is at least one matching BGP route.`}).option(`on-demand-advertised`,{type:`boolean`,description:`The on_demand.advertised field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ye={command:`edit <bgp-prefix-id>`,describe:`Update BGP Prefix`,builder:Je,handler:async e=>u({command:`addressing prefixes bgp-prefixes edit`,classification:{safeFlags:[`auto-advertise-withdraw`,`on-demand-advertised`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes bgp-prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bgp/prefixes/${e[`bgp-prefix-id`]==null?`<bgp-prefix-id>`:encodeURIComponent(String(e[`bgp-prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"bgp-prefix-id":String(e[`bgp-prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(K,{body:t,account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(r,{successLabel:`Updated`});return}let u=p({asn_prepend_count:e[`asn-prepend-count`],auto_advertise_withdraw:e[`auto-advertise-withdraw`],on_demand:{advertised:e[`on-demand-advertised`]}}),d=await l(`Updating`,async()=>n.send(K,{body:u,account_id:a,prefix_id:e[`prefix-id`],bgp_prefix_id:e[`bgp-prefix-id`]}));s(d,{successLabel:`Updated`})})};var Xe={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bgp/prefixes/${t.bgp_prefix_id}`};function Ze(e){return e.usage(`$0 addressing prefixes bgp-prefixes get <bgp-prefix-id>
58
51
 
@@ -64,13 +57,11 @@ Add a new prefix under the account.`).option(`asn`,{type:`number`,description:`A
64
57
 
65
58
  Create a new account delegation for a given IP prefix.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`cidr`,{type:`string`,description:`IP Prefix in Classless Inter-Domain Routing format.`}).option(`delegated-account-id`,{type:`string`,description:`Account identifier for the account to which prefix is being delegated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ot={command:`create <prefix-id>`,describe:`Create Prefix Delegation`,builder:at,handler:async e=>u({command:`addressing prefixes delegations create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(J,{body:t,account_id:a,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`delegated-account-id`]===void 0&&(e[`delegated-account-id`]=await g(`delegated-account-id`,`Account identifier for the account to which prefix is being delegated.`));let u=p({cidr:m(e.cidr,`cidr`,`text`),delegated_account_id:m(e[`delegated-account-id`],`delegated-account-id`,`text`)}),d=await l(`Creating`,async()=>n.send(J,{body:u,account_id:a,prefix_id:e[`prefix-id`]}));s(d,{successLabel:`Created`})})};var st={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations/${t.delegation_id}`};function ct(e){return e.usage(`$0 addressing prefixes delegations delete <delegation-id>
66
59
 
67
- Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"delegation-id":String(e[`delegation-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
68
- `);return}let u=await l(`Deleting`,async()=>n.send(st,{account_id:a,prefix_id:e[`prefix-id`],delegation_id:e[`delegation-id`]}));s(u,{successLabel:`Deleted`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`};function dt(e){return e.usage(`$0 addressing prefixes delegations list
60
+ Delete an account delegation for a given IP prefix.`).positional(`delegation-id`,{type:`string`,description:`Identifier of a Delegation.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const lt={command:`delete <delegation-id>`,describe:`Delete Prefix Delegation`,builder:ct,handler:async e=>u({command:`addressing prefixes delegations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations/${e[`delegation-id`]==null?`<delegation-id>`:encodeURIComponent(String(e[`delegation-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"delegation-id":String(e[`delegation-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(st,{account_id:a,prefix_id:e[`prefix-id`],delegation_id:e[`delegation-id`]}));s(u,{successLabel:`Deleted`})})};var ut={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/delegations`};function dt(e){return e.usage(`$0 addressing prefixes delegations list
69
61
 
70
62
  List all delegations for a given account IP prefix.`).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ft={command:`list`,describe:`List Prefix Delegations`,builder:dt,handler:async e=>u({command:`addressing prefixes delegations list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delegations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/delegations`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(ut,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},pt={command:`delegations`,describe:`Operations for prefixes.delegations`,builder:e=>e.command(ot).command(lt).command(ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var mt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function ht(e){return e.usage(`$0 addressing prefixes delete <prefix-id>
71
63
 
72
- Delete an unapproved prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const gt={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:ht,handler:async e=>u({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
73
- `);return}let u=await l(`Deleting`,async()=>n.send(mt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`,body:`json`};function _t(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
64
+ Delete an unapproved prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const gt={command:`delete <prefix-id>`,describe:`Delete Prefix`,builder:ht,handler:async e=>u({command:`addressing prefixes delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(mt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`,body:`json`};function _t(e){return e.usage(`$0 addressing prefixes edit <prefix-id>
74
65
 
75
66
  Modify the description for a prefix owned by the account.`).positional(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`description`,{type:`string`,description:`Description of the prefix.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const vt={command:`edit <prefix-id>`,describe:`Update Prefix Description`,builder:_t,handler:async e=>u({command:`addressing prefixes edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({description:m(e.description,`description`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Updating`,async()=>n.send(Y,{body:t,account_id:a,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Updated`});return}e.description===void 0&&(e.description=await g(`description`,`Description of the prefix.`));let u=p({description:m(e.description,`description`,`text`)}),d=await l(`Updating`,async()=>n.send(Y,{body:u,account_id:a,prefix_id:e[`prefix-id`]}));s(d,{successLabel:`Updated`})})};var yt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}`};function bt(e){return e.usage(`$0 addressing prefixes get <prefix-id>
76
67
 
@@ -82,8 +73,7 @@ Creates a new Service Binding, routing traffic to IPs within the given CIDR to a
82
73
  **List Services** endpoint.
83
74
  `}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Et={command:`create <prefix-id>`,describe:`Create Service Binding`,builder:Tt,handler:async e=>u({command:`addressing prefixes service-bindings create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({cidr:m(e.cidr,`cidr`,`text`),service_id:m(e[`service-id`],`service-id`,`text`)}):f(e.body)});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,e.body){let t=f(e.body),r=await l(`Creating`,async()=>n.send(X,{body:t,account_id:a,prefix_id:e[`prefix-id`]}));s(r,{successLabel:`Created`});return}e.cidr===void 0&&(e.cidr=await g(`cidr`,`IP Prefix in Classless Inter-Domain Routing format.`)),e[`service-id`]===void 0&&(e[`service-id`]=await g(`service-id`,`Identifier of a Service on the Cloudflare network. Available services and their IDs may be found in the **List Services** endpoint. `));let u=p({cidr:m(e.cidr,`cidr`,`text`),service_id:m(e[`service-id`],`service-id`,`text`)}),d=await l(`Creating`,async()=>n.send(X,{body:u,account_id:a,prefix_id:e[`prefix-id`]}));s(d,{successLabel:`Created`})})};var Dt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function Ot(e){return e.usage(`$0 addressing prefixes service-bindings delete <binding-id>
84
75
 
85
- Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const kt={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Ot,handler:async e=>u({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force})){process.stderr.write(`Aborted.
86
- `);return}let u=await l(`Deleting`,async()=>n.send(Dt,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Deleted`})})};var At={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function jt(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
76
+ Delete a Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const kt={command:`delete <binding-id>`,describe:`Delete Service Binding`,builder:Ot,handler:async e=>u({command:`addressing prefixes service-bindings delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();if(e.accountId=a,!await _({force:!!e.force}))return;let u=await l(`Deleting`,async()=>n.send(Dt,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Deleted`})})};var At={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings/${t.binding_id}`};function jt(e){return e.usage(`$0 addressing prefixes service-bindings get <binding-id>
87
77
 
88
78
  Fetch a single Service Binding`).positional(`binding-id`,{type:`string`,description:`Identifier of a Service Binding.`,demandOption:!0}).option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Mt={command:`get <binding-id>`,describe:`Get Service Binding`,builder:jt,handler:async e=>u({command:`addressing prefixes service-bindings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings/${e[`binding-id`]==null?`<binding-id>`:encodeURIComponent(String(e[`binding-id`]))}`,pathParams:{"prefix-id":String(e[`prefix-id`]??``),"binding-id":String(e[`binding-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(At,{account_id:a,prefix_id:e[`prefix-id`],binding_id:e[`binding-id`]}));s(u,{successLabel:`Loaded`})})};var Nt={method:`GET`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/bindings`};function Pt(e){return e.usage("$0 addressing prefixes service-bindings list\n\nList the Cloudflare services this prefix is currently bound to. Traffic sent to an address within an IP prefix will be routed to the Cloudflare service of the most-specific Service Binding matching the address. **Example:** binding `192.0.2.0/24` to Cloudflare Magic Transit and `192.0.2.1/32` to the Cloudflare CDN would route traffic for `192.0.2.1` to the CDN, and traffic for all other IPs in the prefix to Cloudflare Magic Transit.").option(`prefix-id`,{type:`string`,description:`Identifier of an IP Prefix.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ft={command:`list`,describe:`List Service Bindings`,builder:Pt,handler:async e=>u({command:`addressing prefixes service-bindings list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();c({command:`cf addressing prefixes service-bindings list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/addressing/prefixes/${e[`prefix-id`]==null?`<prefix-id>`:encodeURIComponent(String(e[`prefix-id`]))}/bindings`,pathParams:{"prefix-id":String(e[`prefix-id`]??``)},bodyKind:`none`});return}let n=await r(e),a=e.local?t:await o();e.accountId=a;let u=await l(`Loading`,async()=>n.send(Nt,{account_id:a,prefix_id:e[`prefix-id`]}));s(u,{successLabel:`Loaded`})})},It={command:`service-bindings`,describe:`Operations for prefixes.service-bindings`,builder:e=>e.command(Et).command(kt).command(Mt).command(Ft).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Lt={method:`POST`,path:t=>e`/accounts/${t.account_id}/addressing/prefixes/${t.prefix_id}/validate`};function Rt(e){return e.usage(`$0 addressing prefixes validate create <prefix-id>
89
79
 
@@ -91,8 +81,7 @@ Triggers a new prefix validation. The checks are run asynchronously and include
91
81
 
92
82
  Create a new Regional Hostname entry. Cloudflare will only use data centers that are physically located within the chosen region to decrypt and service HTTPS traffic. Learn more about [Regional Services](https://developers.cloudflare.com/data-localization/regional-services/get-started/).`).option(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`"}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`routing`,{type:`string`,description:`Configure which routing method to use for the regional hostname`,default:`dns`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Ut={command:`create`,describe:`Create Regional Hostname`,builder:Ht,handler:async e=>u({command:`addressing regional-hostnames create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Creating`,async()=>t.send(Z,{body:r,zone_id:n}));s(i,{successLabel:`Created`});return}e.hostname===void 0&&(e.hostname=await g(`hostname`,"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`")),e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({hostname:m(e.hostname,`hostname`,`text`),region_key:m(e[`region-key`],`region-key`,`text`),routing:m(e.routing,`routing`,`text`)}),o=await l(`Creating`,async()=>t.send(Z,{body:i,zone_id:n}));s(o,{successLabel:`Created`})})};var Wt={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Gt(e){return e.usage(`$0 addressing regional-hostnames delete <hostname>
93
83
 
94
- Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force})){process.stderr.write(`Aborted.
95
- `);return}let i=await l(`Deleting`,async()=>t.send(Wt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional-hostnames edit <hostname>
84
+ Delete the region configuration for a specific Regional Hostname.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Kt={command:`delete <hostname>`,describe:`Delete Regional Hostname`,builder:Gt,handler:async e=>u({command:`addressing regional-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,!await _({force:!!e.force}))return;let i=await l(`Deleting`,async()=>t.send(Wt,{zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Deleted`})})};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`,body:`json`};function qt(e){return e.usage(`$0 addressing regional-hostnames edit <hostname>
96
85
 
97
86
  Update the configuration for a specific Regional Hostname. Only the region_key of a hostname is mutable.`).positional(`hostname`,{type:`string`,description:"DNS hostname to be regionalized, must be a subdomain of the zone. Wildcards are supported for one level, e.g `*.example.com`",demandOption:!0}).option(`region-key`,{type:`string`,description:`Identifying key for the region`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Jt={command:`edit <hostname>`,describe:`Update Regional Hostname`,builder:qt,handler:async e=>u({command:`addressing regional-hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){c({command:`cf addressing regional-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/addressing/regional_hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`json`,body:e.body===void 0?p({region_key:m(e[`region-key`],`region-key`,`text`)}):f(e.body)});return}let t=await r(e),n=await a({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=n,e.body){let r=f(e.body),i=await l(`Updating`,async()=>t.send(Q,{body:r,zone_id:n,hostname:e.hostname}));s(i,{successLabel:`Updated`});return}e[`region-key`]===void 0&&(e[`region-key`]=await g(`region-key`,`Identifying key for the region`));let i=p({region_key:m(e[`region-key`],`region-key`,`text`)}),o=await l(`Updating`,async()=>t.send(Q,{body:i,zone_id:n,hostname:e.hostname}));s(o,{successLabel:`Updated`})})};var Yt={method:`GET`,path:t=>e`/zones/${t.zone_id}/addressing/regional_hostnames/${t.hostname}`};function Xt(e){return e.usage(`$0 addressing regional-hostnames get <hostname>
98
87
 
@@ -1,19 +1,15 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,t as i}from"./context-Sgba0fZP.mjs";import{t as a}from"./output-CpiIVa7Q.mjs";import{t as o}from"./dry-run-BBjUQUhR.mjs";import{t as s}from"./progress-B1dpmxCT.mjs";import{t as c}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-Y5OBwDVE.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(e){return e.usage(`$0 agent-memory create-namespace
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,t as i}from"./context-DVh8Wyfs.mjs";import{t as a}from"./output-BJEgbI0G.mjs";import{t as o}from"./dry-run-gy0Hl9xo.mjs";import{t as s}from"./progress-CtGsPOpV.mjs";import{t as c}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as l,n as u,t as d}from"./body-parser-ChnyBsfm.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,n as m}from"./prompt-YrI7ltMa.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces`,body:`json`};function g(e){return e.usage(`$0 agent-memory create-namespace
3
3
 
4
4
  Creates a new memory namespace owned by the account.`).option(`name`,{type:`string`,description:`Namespace name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _={command:`create-namespace`,describe:`Create a namespace`,builder:g,handler:async e=>c({command:`agent-memory create-namespace`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory create-namespace`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({name:f(e.name,`name`,`text`)}):u(e.body)});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,e.body){let t=u(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:l}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await p(`name`,`Namespace name.`));let m=d({name:f(e.name,`name`,`text`)}),g=await s(`Creating`,async()=>c.send(h,{body:m,account_id:l}));a(g,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function y(e){return e.usage(`$0 agent-memory delete-memory <memory-id>
5
5
 
6
- Deletes a memory by ID. Removes the memory and any source messages linked to it. Returns the deleted memory.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,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 b={command:`delete-memory <memory-id>`,describe:`Delete a memory`,builder:y,handler:async e=>c({command:`agent-memory delete-memory`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-memory`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}/memories/${e[`memory-id`]==null?`<memory-id>`:encodeURIComponent(String(e[`memory-id`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``),"memory-id":String(e[`memory-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the memory and any source messages linked to it.`})){process.stderr.write(`Aborted.
7
- `);return}let u=await s(`Deleting`,async()=>c.send(v,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`],memory_id:e[`memory-id`]}));a(u,{successLabel:`Deleted`})})};var x={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}`};function S(e){return e.usage(`$0 agent-memory delete-namespace <namespace-name>
6
+ Deletes a memory by ID. Removes the memory and any source messages linked to it. Returns the deleted memory.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,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 b={command:`delete-memory <memory-id>`,describe:`Delete a memory`,builder:y,handler:async e=>c({command:`agent-memory delete-memory`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-memory`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}/memories/${e[`memory-id`]==null?`<memory-id>`:encodeURIComponent(String(e[`memory-id`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``),"memory-id":String(e[`memory-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the memory and any source messages linked to it.`}))return;let u=await s(`Deleting`,async()=>c.send(v,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`],memory_id:e[`memory-id`]}));a(u,{successLabel:`Deleted`})})};var x={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}`};function S(e){return e.usage(`$0 agent-memory delete-namespace <namespace-name>
8
7
 
9
- Deletes a namespace.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,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 C={command:`delete-namespace <namespace-name>`,describe:`Delete a namespace`,builder:S,handler:async e=>c({command:`agent-memory delete-namespace`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-namespace`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the namespace along with all memory profiles, memories, and sessions it contains.`})){process.stderr.write(`Aborted.
10
- `);return}let u=await s(`Deleting`,async()=>c.send(x,{account_id:l,namespace_name:e[`namespace-name`]}));a(u,{successLabel:`Deleted`})})};var w={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}`};function T(e){return e.usage(`$0 agent-memory delete-profile <profile-name>
8
+ Deletes a namespace.`).positional(`namespace-name`,{type:`string`,description:`Namespace name.`,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 C={command:`delete-namespace <namespace-name>`,describe:`Delete a namespace`,builder:S,handler:async e=>c({command:`agent-memory delete-namespace`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-namespace`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the namespace along with all memory profiles, memories, and sessions it contains.`}))return;let u=await s(`Deleting`,async()=>c.send(x,{account_id:l,namespace_name:e[`namespace-name`]}));a(u,{successLabel:`Deleted`})})};var w={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}`};function T(e){return e.usage(`$0 agent-memory delete-profile <profile-name>
11
9
 
12
- Marks a profile for deletion.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const E={command:`delete-profile <profile-name>`,describe:`Delete a profile`,builder:T,handler:async e=>c({command:`agent-memory delete-profile`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-profile`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the profile along with all of its memories and messages.`})){process.stderr.write(`Aborted.
13
- `);return}let u=await s(`Deleting`,async()=>c.send(w,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`]}));a(u,{successLabel:`Deleted`})})};var D={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/sessions/${t.session_id}`};function O(e){return e.usage(`$0 agent-memory delete-session <session-id>
10
+ Marks a profile for deletion.`).positional(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const E={command:`delete-profile <profile-name>`,describe:`Delete a profile`,builder:T,handler:async e=>c({command:`agent-memory delete-profile`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-profile`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes the profile along with all of its memories and messages.`}))return;let u=await s(`Deleting`,async()=>c.send(w,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`]}));a(u,{successLabel:`Deleted`})})};var D={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/sessions/${t.session_id}`};function O(e){return e.usage(`$0 agent-memory delete-session <session-id>
14
11
 
15
- Marks all memories and messages in a profile that are tagged with the given session ID for deletion.`).positional(`session-id`,{type:`string`,description:`Session identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,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 k={command:`delete-session <session-id>`,describe:`Delete a session`,builder:O,handler:async e=>c({command:`agent-memory delete-session`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-session`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``),"session-id":String(e[`session-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes all memories and messages tagged with this session ID.`})){process.stderr.write(`Aborted.
16
- `);return}let u=await s(`Deleting`,async()=>c.send(D,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`],session_id:e[`session-id`]}));a(u,{successLabel:`Deleted`})})};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function j(e){return e.usage(`$0 agent-memory get-memory <memory-id>
12
+ Marks all memories and messages in a profile that are tagged with the given session ID for deletion.`).positional(`session-id`,{type:`string`,description:`Session identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,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 k={command:`delete-session <session-id>`,describe:`Delete a session`,builder:O,handler:async e=>c({command:`agent-memory delete-session`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory delete-session`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}/sessions/${e[`session-id`]==null?`<session-id>`:encodeURIComponent(String(e[`session-id`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``),"session-id":String(e[`session-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation deletes all memories and messages tagged with this session ID.`}))return;let u=await s(`Deleting`,async()=>c.send(D,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`],session_id:e[`session-id`]}));a(u,{successLabel:`Deleted`})})};var A={method:`GET`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}/profiles/${t.profile_name}/memories/${t.memory_id}`};function j(e){return e.usage(`$0 agent-memory get-memory <memory-id>
17
13
 
18
14
  Retrieves a memory by ID.`).positional(`memory-id`,{type:`string`,description:`Memory Identifier.`,demandOption:!0}).option(`namespace-name`,{type:`string`,description:`Namespace name.`,demandOption:!0}).option(`profile-name`,{type:`string`,description:`Profile name.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get-memory <memory-id>`,describe:`Get a memory`,builder:j,handler:async e=>c({command:`agent-memory get-memory`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf agent-memory get-memory`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/agent-memory/namespaces/${e[`namespace-name`]==null?`<namespace-name>`:encodeURIComponent(String(e[`namespace-name`]))}/profiles/${e[`profile-name`]==null?`<profile-name>`:encodeURIComponent(String(e[`profile-name`]))}/memories/${e[`memory-id`]==null?`<memory-id>`:encodeURIComponent(String(e[`memory-id`]))}`,pathParams:{"namespace-name":String(e[`namespace-name`]??``),"profile-name":String(e[`profile-name`]??``),"memory-id":String(e[`memory-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(A,{account_id:l,namespace_name:e[`namespace-name`],profile_name:e[`profile-name`],memory_id:e[`memory-id`]}));a(u,{successLabel:`Loaded`})})};var N={method:`GET`,path:t=>e`/accounts/${t.account_id}/agent-memory/namespaces/${t.namespace_name}`};function P(e){return e.usage(`$0 agent-memory get-namespace <namespace-name>
19
15