cf 1.0.0-beta.1 → 1.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/README.md +12 -0
  2. package/dist/_meta/commands.json +11448 -13819
  3. package/dist/_meta/hand-written-commands.json +579 -41
  4. package/dist/_meta/schemas.json +14496 -16450
  5. package/dist/abuse-reports-BhSTEz7h.mjs +24 -0
  6. package/dist/access-D4DN4XZF.mjs +2 -0
  7. package/dist/{account-tags-DAf-hq1m.mjs → account-tags-BWEIZLID.mjs} +5 -5
  8. package/dist/{accounts-BDIKjiG2.mjs → accounts-ZQvIqGJz.mjs} +66 -60
  9. package/dist/{acm-D-q1FVWJ.mjs → acm-OQqE8FMc.mjs} +3 -3
  10. package/dist/{addressing-0w2U1NEy.mjs → addressing-DCFm17JQ.mjs} +50 -50
  11. package/dist/agent-context-GRiQ4zRU.mjs +2 -0
  12. package/dist/{agent-memory-Drumm4qd.mjs → agent-memory-BtfPt2me.mjs} +15 -15
  13. package/dist/ai-B0_sZbmy.mjs +29 -0
  14. package/dist/{ai-audit-CPrmohqf.mjs → ai-audit-DaubuhYF.mjs} +1 -1
  15. package/dist/ai-gateway-CJ-1Dzzr.mjs +82 -0
  16. package/dist/{ai-search-B5l4IDSR.mjs → ai-search-Dywa1kqX.mjs} +37 -37
  17. package/dist/{ai-security-C7_IGDDl.mjs → ai-security-2wxMPqKS.mjs} +1 -1
  18. package/dist/{alerting-B6m1Rhf4.mjs → alerting-yad9DYRv.mjs} +26 -26
  19. package/dist/analytics-DKNw2fVc.mjs +20 -0
  20. package/dist/{analytics_engine-BvjKCwn1.mjs → analytics_engine-BA3kF46s.mjs} +2 -2
  21. package/dist/{api-security-B9IozS2a.mjs → api-security-CSuYMpMO.mjs} +61 -61
  22. package/dist/{argo-C_QcqR6P.mjs → argo-DMfNmOV4.mjs} +1 -1
  23. package/dist/args-CXgkQKK7.mjs +2 -0
  24. package/dist/{artifacts-DDFNpYBz.mjs → artifacts-Cb3hwClm.mjs} +20 -20
  25. package/dist/{audit-logs-cTzNV0DV.mjs → audit-logs-BrjNuiLx.mjs} +2 -2
  26. package/dist/auth-BBlAI8HG.mjs +2 -0
  27. package/dist/auth-BIr56Mbx.mjs +8 -0
  28. package/dist/autoconfig-DPUztTL2.mjs +511 -0
  29. package/dist/banner-ClclgnBn.mjs +2 -0
  30. package/dist/basin-catalog-BLsQhJP4.mjs +46 -0
  31. package/dist/{billing-DU2X-q-x.mjs → billing-CRwD7oQS.mjs} +10 -10
  32. package/dist/{bot-management-BHAAoZOh.mjs → bot-management-CyW8F8Wm.mjs} +1 -1
  33. package/dist/{botnet-feed-DOOnGVVY.mjs → botnet-feed-BBKsxf3Y.mjs} +5 -5
  34. package/dist/{brand-protection-C_DYa7IK.mjs → brand-protection-DSeD8LXl.mjs} +13 -13
  35. package/dist/browser-extension-C1zmKFDG.mjs +2 -0
  36. package/dist/{browser-run-Dw-vgWGR.mjs → browser-run-BAcUTwB4.mjs} +23 -23
  37. package/dist/build-B5UYMEQH.mjs +2 -0
  38. package/dist/build-DLZ9gBNA.mjs +2 -0
  39. package/dist/{builds-CO0MmSd3.mjs → builds-W1HEG7Bv.mjs} +31 -31
  40. package/dist/{cache-XxusQxXe.mjs → cache-B7E_PXUp.mjs} +27 -27
  41. package/dist/{certificate-authorities-Dmxh7w-Z.mjs → certificate-authorities-D_uAJH9B.mjs} +1 -1
  42. package/dist/cf-Bh_fTFIj.mjs +18 -0
  43. package/dist/chunk-FT2NMTJB-1VFYM1Ro.mjs +97 -0
  44. package/dist/chunk-KKDV4JPS-DdzLLtnl.mjs +2 -0
  45. package/dist/chunk-U6NEESU5-BhF4rnpx.mjs +2 -0
  46. package/dist/chunk-WMOON6TZ-D_ToS88f.mjs +2 -0
  47. package/dist/cli-BeXSqJAj.mjs +6 -0
  48. package/dist/cli-exit-Dqoo6Jgb.mjs +2 -0
  49. package/dist/client-certificates-DqFcK_s1.mjs +13 -0
  50. package/dist/{client-side-security-D7NWV0YH.mjs → client-side-security-DJXZ1XAu.mjs} +1 -1
  51. package/dist/{cloud-connector-XMFOTNqT.mjs → cloud-connector-Czg1GdQi.mjs} +1 -1
  52. package/dist/{cloudflared-DhItYrCq.mjs → cloudflared-DGuau-lC.mjs} +1 -1
  53. package/dist/{cloudforce-one-Cew4MHvA.mjs → cloudforce-one-B1IhIZcp.mjs} +213 -222
  54. package/dist/command-6YTtWltE.mjs +2 -0
  55. package/dist/command-B6DqnUwt.mjs +2 -0
  56. package/dist/command-BCag-xjk.mjs +2 -0
  57. package/dist/command-BOLlvEan.mjs +2 -0
  58. package/dist/command-BrHTpaji.mjs +2 -0
  59. package/dist/command-CAtsHc1V.mjs +2 -0
  60. package/dist/command-C__qB2mo.mjs +2 -0
  61. package/dist/command-DUafPVUr.mjs +2 -0
  62. package/dist/command-DZookrfw.mjs +2 -0
  63. package/dist/command-DfffeX-k.mjs +2 -0
  64. package/dist/command-DxSJy_ym.mjs +2 -0
  65. package/dist/command-DzHL5LKI.mjs +2 -0
  66. package/dist/command-K1-DZFJS.mjs +2 -0
  67. package/dist/command-TCklVvOY.mjs +2 -0
  68. package/dist/command-xU78ACNA.mjs +2 -0
  69. package/dist/{completions-xPLd1cvL.mjs → completions-Cm9brGAI.mjs} +26 -26
  70. package/dist/{connector-interrupts-BfQN_pm6.mjs → connector-interrupts-D93KTMkw.mjs} +3 -3
  71. package/dist/{connector-telemetry-events-B7qLZsZJ.mjs → connector-telemetry-events-D6CmKR14.mjs} +3 -3
  72. package/dist/{connector-telemetry-snapshots-Ckvg9BPc.mjs → connector-telemetry-snapshots-WO9IUk0e.mjs} +3 -3
  73. package/dist/{connectors-BhvAP5fb.mjs → connectors-DNT6GTW3.mjs} +7 -7
  74. package/dist/{containers-Bl3EY-cy.mjs → containers-Btx7vCDP.mjs} +17 -17
  75. package/dist/{containers-Cq1gtnq6.mjs → containers-Ce7IO-Ia.mjs} +70 -72
  76. package/dist/{content-scan-BYGe9fFj.mjs → content-scan-C_ROsbTJ.mjs} +1 -1
  77. package/dist/context-CEOHpZgd.mjs +7 -0
  78. package/dist/{cps-BWMDWeVq.mjs → cps-BPQqyL2E.mjs} +1 -1
  79. package/dist/{csamScanner-DMYGzLNi.mjs → csamScanner-D-oO5cxT.mjs} +1 -1
  80. package/dist/{ct-alerting-Vq4l2s7n.mjs → ct-alerting-CnTRE1Fb.mjs} +1 -1
  81. package/dist/{custom-certificates-BDEHH0Ym.mjs → custom-certificates-DvnFBZdJ.mjs} +4 -4
  82. package/dist/{custom-csrs-CHSkZNdX.mjs → custom-csrs-BZ8TXbuQ.mjs} +5 -5
  83. package/dist/{custom-hostnames-Bch3iQZC.mjs → custom-hostnames-CTqf-KlT.mjs} +6 -6
  84. package/dist/{custom-nameservers-Tdvu1-vr.mjs → custom-nameservers-B0CpnUVg.mjs} +5 -5
  85. package/dist/{custom-pages-rFsiIXlr.mjs → custom-pages-DcoSGN56.mjs} +10 -10
  86. package/dist/{d1-C1GK7DsW.mjs → d1-m7UfzBzl.mjs} +16 -20
  87. package/dist/{dcv-delegation-D6xiYj2l.mjs → dcv-delegation-yOtz90qE.mjs} +1 -1
  88. package/dist/{delegate-GctF_lrq.mjs → delegate-B6LetRpZ.mjs} +1 -1
  89. package/dist/delegate.mjs +1 -1
  90. package/dist/{deploy-D04Xvm0m.mjs → deploy-C4p6SzLH.mjs} +1 -1
  91. package/dist/{deploy-input-COEKxOA1.mjs → deploy-input-DTjBGloL.mjs} +1 -1
  92. package/dist/dev-BML-bpNU.mjs +4 -0
  93. package/dist/{diagnostics-BZVAAguV.mjs → diagnostics-hOvnx5DT.mjs} +7 -7
  94. package/dist/dialog-BlUXJKbA.mjs +2 -0
  95. package/dist/discover-C5aiI6u0.mjs +2 -0
  96. package/dist/discover-DwczTkRX.mjs +2 -0
  97. package/dist/dist-BuCJ_55d.mjs +366 -0
  98. package/dist/dist-C3s9SXTd.mjs +48 -0
  99. package/dist/{dist-BpadEMNY.mjs → dist-DW47TUGh.mjs} +35 -35
  100. package/dist/{dls-BsnURYja.mjs → dls-v6DyEWTd.mjs} +8 -8
  101. package/dist/{dns-B_nTXhuM.mjs → dns-C9sUPsNt.mjs} +72 -63
  102. package/dist/{dns-firewall-DDsrdulo.mjs → dns-firewall-EDiT-Zli.mjs} +8 -8
  103. package/dist/dot-prop-IITUZ2XW-BilKo4kO.mjs +2 -0
  104. package/dist/dotenv-CcQjGlV0.mjs +4 -0
  105. package/dist/dry-run-Bq0JAsbX.mjs +2 -0
  106. package/dist/durable-objects-C01phVwL.mjs +6 -0
  107. package/dist/{email-auth-CzjtGH6g.mjs → email-auth-BgvoEHJk.mjs} +1 -1
  108. package/dist/{email-routing-B92fty1-.mjs → email-routing-Bggn219w.mjs} +24 -24
  109. package/dist/email-security-_t7rzrzd.mjs +158 -0
  110. package/dist/{email-sending-B7f95epu.mjs → email-sending-_dKCs2VF.mjs} +23 -23
  111. package/dist/error-sanitization-CJ5OLJrh.mjs +2 -0
  112. package/dist/error-sanitization-hmi1CqE5.mjs +2 -0
  113. package/dist/{fieldExtractors-DL_H1m7E.mjs → fieldExtractors-Cm5QnkE0.mjs} +4 -4
  114. package/dist/firewall-CZEN8iA_.mjs +36 -0
  115. package/dist/flagship-B_SAI_ZL.mjs +28 -0
  116. package/dist/{fraud-DU_YCLC5.mjs → fraud-9_9hobAh.mjs} +1 -1
  117. package/dist/generate-BPqoDbck.mjs +2 -0
  118. package/dist/generate-CLqGOlOx.mjs +3 -0
  119. package/dist/{google-tag-gateway-xqN-QudN.mjs → google-tag-gateway-O_N0vHRY.mjs} +1 -1
  120. package/dist/gt-DmcMNPX6.mjs +2 -0
  121. package/dist/{healthchecks-COnq1YOx.mjs → healthchecks-Bt3Gw_JZ.mjs} +1 -1
  122. package/dist/{hostnames-CxRAY_Pp.mjs → hostnames-DdOube3R.mjs} +1 -1
  123. package/dist/hyperdrive-C14NAh9l.mjs +37 -0
  124. package/dist/{iam-CtX9NPCy.mjs → iam-DUW7neMx.mjs} +24 -24
  125. package/dist/{images-CuWFOsGw.mjs → images-B9dnr1z0.mjs} +38 -38
  126. package/dist/index.mjs +1 -1
  127. package/dist/init-BGcAIvV7.mjs +39 -0
  128. package/dist/{intel-BeGV3VXt.mjs → intel-BQpZMck3.mjs} +38 -38
  129. package/dist/interactive-C-o16XQs.mjs +32 -0
  130. package/dist/interactive-SgAjen2z.mjs +2 -0
  131. package/dist/{ips-d6aoKAI4.mjs → ips-PT_uQKAf.mjs} +1 -1
  132. package/dist/k2-nPYti7Y0.mjs +13 -0
  133. package/dist/keyless-certificates-BHvas2q1.mjs +13 -0
  134. package/dist/{keys-Fyf3vWcA.mjs → keys-O5kAW9ox.mjs} +2 -2
  135. package/dist/kv-BUP_ZLM_.mjs +15 -0
  136. package/dist/lazy-command-glNW3jzf.mjs +2 -0
  137. package/dist/{leaked-credential-checks-B7ewx3W-.mjs → leaked-credential-checks-De9hI1rl.mjs} +1 -1
  138. package/dist/{load-balancers-DHD4f2CT.mjs → load-balancers-Cs6bUHS1.mjs} +39 -39
  139. package/dist/{local-B6b2OIBW.mjs → local-B5oRPTEN.mjs} +1 -1
  140. package/dist/local-Bj-l0TP6.mjs +2 -0
  141. package/dist/{local-runtime-DD8DAIlm.mjs → local-runtime-CZnegFEM.mjs} +1 -1
  142. package/dist/login-C5nSIS-T.mjs +2 -0
  143. package/dist/login-CUup7w0e.mjs +5 -0
  144. package/dist/{logo-matches-BAX8v3iL.mjs → logo-matches-BkQKdu4Z.mjs} +3 -3
  145. package/dist/{logos-BWBVGwU6.mjs → logos-C_sv-boo.mjs} +3 -3
  146. package/dist/{logpush-CZKR8DHO.mjs → logpush-NUcyMKHi.mjs} +23 -23
  147. package/dist/logs-BZT4PlqZ.mjs +36 -0
  148. package/dist/{magic-cloud-networking-DttrBXqd.mjs → magic-cloud-networking-DQnSdmgA.mjs} +34 -34
  149. package/dist/{magic-network-monitoring-9VXDSYuL.mjs → magic-network-monitoring-pHTU6aS8.mjs} +17 -17
  150. package/dist/{magic-transit-Dsu_cSGM.mjs → magic-transit-5302bQNh.mjs} +154 -158
  151. package/dist/{managed-defense-SYreve4W.mjs → managed-defense-8OEfDzuO.mjs} +9 -9
  152. package/dist/{managed-transforms-CzSy_xPw.mjs → managed-transforms-CCpUz4TY.mjs} +1 -1
  153. package/dist/{matches-qf7GReyu.mjs → matches-BSiYXs99.mjs} +3 -3
  154. package/dist/{mcp-DYSk5_gc.mjs → mcp-CCMiS75R.mjs} +15 -15
  155. package/dist/{mesh-DdY07OYt.mjs → mesh-DKBGTlCD.mjs} +12 -12
  156. package/dist/migrate-BJ9Go_wP.mjs +2 -0
  157. package/dist/monetization-CFf_lb6x.mjs +20 -0
  158. package/dist/mtls-certificates-DsF3NFNs.mjs +13 -0
  159. package/dist/{network-DpaZ5LJL.mjs → network-Bm0qYRqY.mjs} +24 -24
  160. package/dist/{network-interconnects-C4uUoeNa.mjs → network-interconnects-YiRUBbjx.mjs} +17 -17
  161. package/dist/{oauth-nsTDJ0dF.mjs → oauth-DxGgIwFc.mjs} +1 -1
  162. package/dist/oauth-cNZUky3h.mjs +9 -0
  163. package/dist/{oauth-clients-D7Ou7oAS.mjs → oauth-clients-CP6alY0_.mjs} +7 -7
  164. package/dist/{oauth-scopes-BFoE82Mv.mjs → oauth-scopes-xl-pcWdg.mjs} +1 -1
  165. package/dist/{observability-smcOFbC1.mjs → observability-Bp71PtlD.mjs} +44 -44
  166. package/dist/open-PCXX3ZDZ-BKRik1gi.mjs +4 -0
  167. package/dist/{organization-Dyf_0mq4.mjs → organization-Dbom1gTR.mjs} +7 -7
  168. package/dist/{organizations-D7zGPLVm.mjs → organizations-OUMVsuen.mjs} +1 -1
  169. package/dist/{origin-ca-certificates-DJrp29gv.mjs → origin-ca-certificates-B3-T0-Nn.mjs} +3 -3
  170. package/dist/{origin-post-quantum-encryption-BYj3kJiq.mjs → origin-post-quantum-encryption-CGB6AfPa.mjs} +1 -1
  171. package/dist/{origin-tls-client-auth-j0tGh6Fy.mjs → origin-tls-client-auth-CgzzfAWr.mjs} +5 -5
  172. package/dist/output-CvQFJkvi.mjs +2 -0
  173. package/dist/{page-rules-CLzba_nr.mjs → page-rules-B9BQKU4_.mjs} +1 -1
  174. package/dist/pages-DZPdyuT4.mjs +54 -0
  175. package/dist/{pay-per-crawl-DbaTVI8V.mjs → pay-per-crawl-CnveMVDi.mjs} +32 -32
  176. package/dist/{pay-per-use-BEvtoppJ.mjs → pay-per-use-Bpxe8PHv.mjs} +3 -3
  177. package/dist/{pipelines-lps71uoA.mjs → pipelines-CHev3o5G.mjs} +20 -20
  178. package/dist/precursor-C9PK9Bue.mjs +4 -0
  179. package/dist/previews-BIMI1dTz.mjs +4 -0
  180. package/dist/progress-A61dRbXl.mjs +2 -0
  181. package/dist/prompt-CGUzvBgY.mjs +3 -0
  182. package/dist/{queries-EJYlFw8m.mjs → queries-f-btyefs.mjs} +4 -4
  183. package/dist/{queues-CozKGaA4.mjs → queues-kLNdeb3q.mjs} +29 -35
  184. package/dist/r2-D_awYx2p.mjs +125 -0
  185. package/dist/r2-data-catalog-2jQrdAdo.mjs +2 -0
  186. package/dist/{radar-NmpdyMo5.mjs → radar-CU4T02Ag.mjs} +1 -1
  187. package/dist/raw-fetch-CvkmFO23.mjs +2 -0
  188. package/dist/{realtime-iWTz8WbH.mjs → realtime-C0dvcBBM.mjs} +78 -78
  189. package/dist/{registrar-Cza1L8i_.mjs → registrar-CHc-4vcf.mjs} +8 -8
  190. package/dist/{registrar-sandbox-BP4GQg5s.mjs → registrar-sandbox-Dq8LV2AI.mjs} +6 -6
  191. package/dist/{registry-vreNkX6u.mjs → registry-Cg5lP8oo.mjs} +1 -1
  192. package/dist/{reporting-gvXX2MxY.mjs → reporting-4u21g6Dk.mjs} +7 -7
  193. package/dist/request-headers-D31kdxrQ.mjs +2 -0
  194. package/dist/{request-tracers-F8a_aj32.mjs → request-tracers-CupJ_83j.mjs} +2 -2
  195. package/dist/resolve-PZuJ878-.mjs +2 -0
  196. package/dist/{resource-sharing-D6XWIDmb.mjs → resource-sharing-CO-Lh-u7.mjs} +14 -14
  197. package/dist/{resource-tagging-c_z4VZt0.mjs → resource-tagging-D0R5SzR6.mjs} +2 -2
  198. package/dist/{rules-_QDaG3U5.mjs → rules-BsmKzB9H.mjs} +8 -8
  199. package/dist/{rulesets-Bc4ZuPG_.mjs → rulesets-HOOnxHZZ.mjs} +20 -20
  200. package/dist/{rum-ChPyfpM2.mjs → rum-wcLEvVJl.mjs} +14 -14
  201. package/dist/run-CIJTelJL.mjs +2 -0
  202. package/dist/run-quhbAvQi.mjs +2 -0
  203. package/dist/schema-GdBsV4P7.mjs +2 -0
  204. package/dist/{schema-flags-C9lbLgE-.mjs → schema-flags-D8vL2oiF.mjs} +2 -2
  205. package/dist/{scim-BjiswXbC.mjs → scim-BkdJmAS8.mjs} +10 -10
  206. package/dist/{sdk-CsWOex96.mjs → sdk-BCzcRJCi.mjs} +2 -2
  207. package/dist/{secrets-store-Cn3D5a0d.mjs → secrets-store-CHs0oYA0.mjs} +11 -11
  208. package/dist/security-insights-vsl-4xFa.mjs +40 -0
  209. package/dist/{security-txt-CaR5Idmz.mjs → security-txt-Fnl3LdSn.mjs} +1 -1
  210. package/dist/session-CZTuHcbm.mjs +2 -0
  211. package/dist/shared-BS30oCf8.mjs +2 -0
  212. package/dist/{smart-shield-CphSzoh4.mjs → smart-shield-DB0E7cZI.mjs} +1 -1
  213. package/dist/{snippets-r-Mre0cE.mjs → snippets-CFaF_NyG.mjs} +1 -1
  214. package/dist/source-38bULAR8.mjs +6 -0
  215. package/dist/spawn-B0Sl8lUu.mjs +10 -0
  216. package/dist/{spectrum-BhjCVFZk.mjs → spectrum-DtG0jYjE.mjs} +1 -1
  217. package/dist/{speed-CPgypY7n.mjs → speed-B-RiNHGK.mjs} +1 -1
  218. package/dist/src-CM3XaB4p.mjs +109 -0
  219. package/dist/{ssl-DsMrXyqK.mjs → ssl-DBVpCZAM.mjs} +4 -4
  220. package/dist/startup-profile-CLmojOrn.mjs +2 -0
  221. package/dist/startup-profile-CR7GMuLx.mjs +17 -0
  222. package/dist/{state-BxCejn42.mjs → state-BaGRaYow.mjs} +1 -1
  223. package/dist/state-CpXhcMdX.mjs +2 -0
  224. package/dist/{stream-L2NmGPby.mjs → stream-cAdBvpS1.mjs} +45 -45
  225. package/dist/{submit-KN0Ul5fV.mjs → submit-Bkd7l2rK.mjs} +2 -2
  226. package/dist/{tags-CZMFKGdP.mjs → tags--eph7JbN.mjs} +2 -2
  227. package/dist/telemetry-51etasAu.mjs +2 -0
  228. package/dist/telemetry-Q3_UmwHj.mjs +2 -0
  229. package/dist/tenant-Bj-He2xO.mjs +10 -0
  230. package/dist/{tenant-custom-nameservers-Nx59Buv0.mjs → tenant-custom-nameservers-B5IIIwbz.mjs} +1 -1
  231. package/dist/{theme-BiIYWOed.mjs → theme-BIWQFmZ0.mjs} +2 -2
  232. package/dist/tools-BJZ0DDlL.mjs +2 -0
  233. package/dist/{tunnels-C-mMZy4v.mjs → tunnels-CgtuRpcD.mjs} +15 -15
  234. package/dist/turnstile-Bmcnrzw7.mjs +33 -0
  235. package/dist/ui-BQxRjahW.mjs +5 -0
  236. package/dist/update-check-BqSpgzHk.mjs +2 -0
  237. package/dist/update-check-DC0qP_8z.mjs +2 -0
  238. package/dist/update-check-worker.mjs +1 -1
  239. package/dist/{url-info-7ikewAnp.mjs → url-info-DhVehaT8.mjs} +2 -2
  240. package/dist/{url-normalization-B0D7Fhf3.mjs → url-normalization-BpGDUUQc.mjs} +1 -1
  241. package/dist/{url-scanner-DpKIqkin.mjs → url-scanner-DiLdqsQk.mjs} +8 -8
  242. package/dist/{user-BFq8UM1s.mjs → user-B6P5_OjP.mjs} +1 -1
  243. package/dist/{values-DnBYV1ZD.mjs → values-Cxx4Lxrd.mjs} +2 -2
  244. package/dist/{vectorize-BpZ4UsUj.mjs → vectorize-YyxVpql-.mjs} +15 -15
  245. package/dist/version-C0pInAZ9.mjs +2 -0
  246. package/dist/{waiting-rooms-DJfqehy9.mjs → waiting-rooms-BdahlCdD.mjs} +25 -25
  247. package/dist/{web-assets-CCSSW_JH.mjs → web-assets-yaKxN4w_.mjs} +1 -1
  248. package/dist/{web3-bbT1REPc.mjs → web3-Bu9c_QAt.mjs} +1 -1
  249. package/dist/workers-5GgoGA2e.mjs +38 -0
  250. package/dist/{workers-builds-TRF3K416.mjs → workers-builds-h-1FJjE1.mjs} +7 -7
  251. package/dist/workers-for-platforms-CV9iRrp9.mjs +42 -0
  252. package/dist/{workers-vpc-kgryQ48l.mjs → workers-vpc-C1oUHHqk.mjs} +6 -6
  253. package/dist/{workflows-CKdPlIkK.mjs → workflows-dtMlkj1-.mjs} +20 -20
  254. package/dist/wrangler-migration-CJEb9hY3.mjs +2 -0
  255. package/dist/{zaraz-BXFlEWSx.mjs → zaraz-838AbMEX.mjs} +1 -1
  256. package/dist/{zero-trust-M08mBsYd.mjs → zero-trust-CYt-eELJ.mjs} +460 -434
  257. package/dist/{zone-DHmrotGW.mjs → zone-uJwRLSnn.mjs} +1 -1
  258. package/dist/{zones-C0eKBTqG.mjs → zones-Dpofsnth.mjs} +1 -1
  259. package/package.json +15 -12
  260. package/dist/abuse-reports-Dd6kJM7r.mjs +0 -26
  261. package/dist/access-C_2rEi0H.mjs +0 -27
  262. package/dist/account-CZ9SPVdz.mjs +0 -12
  263. package/dist/ai-ARwLeQ1O.mjs +0 -31
  264. package/dist/ai-gateway-DNY4FPF2.mjs +0 -147
  265. package/dist/analytics-nnzFBB_7.mjs +0 -21
  266. package/dist/auth-DJhSjNNL.mjs +0 -8
  267. package/dist/auth-sAorfdWU.mjs +0 -2
  268. package/dist/browser-extension-C48pKh3t.mjs +0 -15
  269. package/dist/build-1a8CiNIT.mjs +0 -2
  270. package/dist/build-Ca_drQY2.mjs +0 -2
  271. package/dist/cf-oadujOtC.mjs +0 -18
  272. package/dist/chunk-6EUZQHAF-QVTL_mC-.mjs +0 -2
  273. package/dist/chunk-DL5FNmn1.mjs +0 -2
  274. package/dist/chunk-Q72B4Q5Z-Cr1H_iK6.mjs +0 -2
  275. package/dist/chunk-Q72B4Q5Z-DKhx_4ok.mjs +0 -2
  276. package/dist/chunk-QBZBEHZB-Byagrlop.mjs +0 -2
  277. package/dist/chunk-XLADBZ7F-BXKOjWbx.mjs +0 -374
  278. package/dist/client-certificates-CgaIc3zN.mjs +0 -13
  279. package/dist/command-CF0giIIc.mjs +0 -3
  280. package/dist/command-CsZFRm3P.mjs +0 -2
  281. package/dist/command-DBz8QiFk.mjs +0 -2
  282. package/dist/command-RiZ_LYcm.mjs +0 -2
  283. package/dist/config-B4vIa0zp.mjs +0 -2
  284. package/dist/data-security-DDhPnX8Z.mjs +0 -71
  285. package/dist/dev-CVD3BVUG.mjs +0 -4
  286. package/dist/dialog--iw0F2s-.mjs +0 -2
  287. package/dist/dist-CUUGKvjh.mjs +0 -48
  288. package/dist/dist-dc4E1u01.mjs +0 -272
  289. package/dist/dot-prop-6SRZBKHT-Dj7YOlwR.mjs +0 -2
  290. package/dist/dry-run-CLX6Pbtq.mjs +0 -2
  291. package/dist/durable-objects-8U8DpF9q.mjs +0 -8
  292. package/dist/email-security-keTqF0nJ.mjs +0 -160
  293. package/dist/error-sanitization-Cbd_oegl.mjs +0 -2
  294. package/dist/error-sanitization-DwOlM3R7.mjs +0 -2
  295. package/dist/firewall-67qoXiqD.mjs +0 -56
  296. package/dist/flagship-CjC3dF7L.mjs +0 -28
  297. package/dist/hyperdrive-DPWyiXpj.mjs +0 -37
  298. package/dist/interactive-B6woOLo-.mjs +0 -32
  299. package/dist/interactive-DnUvQHjc.mjs +0 -2
  300. package/dist/keyless-certificates-Dvib4jhw.mjs +0 -13
  301. package/dist/kv-CA4J7cCq.mjs +0 -21
  302. package/dist/local-BrfySqnx.mjs +0 -2
  303. package/dist/login-CLW108XX.mjs +0 -5
  304. package/dist/login-xgRjiyJa.mjs +0 -2
  305. package/dist/logs-CiDyrqEu.mjs +0 -48
  306. package/dist/mtls-certificates-LXlgdkf1.mjs +0 -13
  307. package/dist/oauth-Dzk6Gy-6.mjs +0 -14
  308. package/dist/open-PBXRGS4R-C4CKEADM.mjs +0 -4
  309. package/dist/open-PBXRGS4R-C_-G_4DC.mjs +0 -4
  310. package/dist/output-Bia1u2k5.mjs +0 -2
  311. package/dist/pages-pah6dZBJ.mjs +0 -60
  312. package/dist/precursor-DTTYLDEa.mjs +0 -4
  313. package/dist/previews-B89cUmpr.mjs +0 -4
  314. package/dist/progress-D_mL-Kcy.mjs +0 -2
  315. package/dist/prompt-sL_yMZbI.mjs +0 -3
  316. package/dist/r2-Chn_JQUM.mjs +0 -127
  317. package/dist/r2-data-catalog-Bfn3AWzn.mjs +0 -44
  318. package/dist/raw-fetch-lSVttVJF.mjs +0 -2
  319. package/dist/request-headers-POBKmu93.mjs +0 -2
  320. package/dist/resolve-BXemCSyA.mjs +0 -2
  321. package/dist/run-DtN51G2A.mjs +0 -2
  322. package/dist/run-oACgYK8I.mjs +0 -2
  323. package/dist/schema-DZSSJaY0.mjs +0 -2
  324. package/dist/security-center-DP4GC1cG.mjs +0 -30
  325. package/dist/shared-W9uoX1-W.mjs +0 -2
  326. package/dist/source-BR4_k2ad.mjs +0 -6
  327. package/dist/spawn-BWEuIO-w.mjs +0 -523
  328. package/dist/src-Hw-TlVAO.mjs +0 -108
  329. package/dist/startup-profile-CYEokTVe.mjs +0 -2
  330. package/dist/startup-profile-CgWHy4rE.mjs +0 -17
  331. package/dist/state-DSzkxXML.mjs +0 -2
  332. package/dist/telemetry-CSj_ezpk.mjs +0 -2
  333. package/dist/telemetry-DAf9gLyH.mjs +0 -2
  334. package/dist/telemetry-Dk1GcQ0u.mjs +0 -5
  335. package/dist/tenant-Cu4P-foo.mjs +0 -12
  336. package/dist/tools-BMKpYraQ.mjs +0 -2
  337. package/dist/turnstile-39JL9tMt.mjs +0 -33
  338. package/dist/ui-DH95w1Qk.mjs +0 -5
  339. package/dist/undici-DTSBJHNS.mjs +0 -96
  340. package/dist/update-check-BKQBD4MQ.mjs +0 -2
  341. package/dist/update-check-CE9XB6gf.mjs +0 -2
  342. package/dist/version-Bh3b9vTa.mjs +0 -2
  343. package/dist/workers-CXuyjZB8.mjs +0 -36
  344. package/dist/workers-for-platforms-B57iKiSN.mjs +0 -25
  345. /package/dist/{Page-C-JHZnIy.mjs → Page-CjJht2qT.mjs} +0 -0
  346. /package/dist/{alerts-CstOk8n0.mjs → alerts-DY_7Nknx.mjs} +0 -0
  347. /package/dist/{autorag-PRTwXGgn.mjs → autorag-K396-M2S.mjs} +0 -0
  348. /package/dist/{body-parser-CUWbw_Tq.mjs → body-parser-hh2avzkz.mjs} +0 -0
  349. /package/dist/{brands-BHRXlWDm.mjs → brands-DeLbFxSt.mjs} +0 -0
  350. /package/dist/{clear-UvKESVx3.mjs → clear-CRfI7WS7.mjs} +0 -0
  351. /package/dist/{cli-types-tt_LZMbn.mjs → cli-types-DoVT5q_M.mjs} +0 -0
  352. /package/dist/{connector-telemetry-events-latest-DwnFeZg0.mjs → connector-telemetry-events-latest-D8p_dR8s.mjs} +0 -0
  353. /package/dist/{connector-telemetry-snapshots-latest-Dv6rZlxs.mjs → connector-telemetry-snapshots-latest-COFmzmlk.mjs} +0 -0
  354. /package/dist/{domain-info-BqTDXNBo.mjs → domain-info-aiwP60Fo.mjs} +0 -0
  355. /package/dist/{health-CwPzzrV6.mjs → health-Bz33n-_F.mjs} +0 -0
  356. /package/dist/{input-validation-Ch4Vllrm.mjs → input-validation-Dk52b0me.mjs} +0 -0
  357. /package/dist/{internal-WLHfxX64.mjs → internal-BHrJbbdA.mjs} +0 -0
  358. /package/dist/{lifecycle-Ichnb2x1.mjs → lifecycle-C7tAC1Mn.mjs} +0 -0
  359. /package/dist/{live-D_k7eHdv.mjs → live-MeJQXIei.mjs} +0 -0
  360. /package/dist/{metadata-APBiectA.mjs → metadata-C33s4rc-.mjs} +0 -0
  361. /package/dist/{project-settings-DSXevRvj.mjs → project-settings-DO6njFg_.mjs} +0 -0
  362. /package/dist/{rate-limit-analytics-CDTPxSET.mjs → rate-limit-analytics-CU55zqCU.mjs} +0 -0
  363. /package/dist/{rate-limits-C3K9smdl.mjs → rate-limits-CZ-qHDPK.mjs} +0 -0
  364. /package/dist/{ready-CvwvbdTX.mjs → ready-BOpbZ1pN.mjs} +0 -0
  365. /package/dist/{recent-submissions-CjzcT-iH.mjs → recent-submissions-KDqD2HyS.mjs} +0 -0
  366. /package/dist/{refute-CIAFMj00.mjs → refute-DkF4XIMw.mjs} +0 -0
  367. /package/dist/{resolve-CUDKxUrW.mjs → resolve-BCTrtcx7.mjs} +0 -0
  368. /package/dist/{scan-logo-zFkphtQ3.mjs → scan-logo-DQkf6glG.mjs} +0 -0
  369. /package/dist/{scan-page-CLl2MAkZ.mjs → scan-page-CMOJ_E0n.mjs} +0 -0
  370. /package/dist/{search-12jA1b4l.mjs → search-Bre1Zwn3.mjs} +0 -0
  371. /package/dist/{signed-url-U0T_PEMR.mjs → signed-url-24ZbX4yV.mjs} +0 -0
  372. /package/dist/{submission-info-CZ84a3Nb.mjs → submission-info-BmkbZVqM.mjs} +0 -0
  373. /package/dist/{total-queries-CJTc9Pde.mjs → total-queries-j8OAF_cE.mjs} +0 -0
  374. /package/dist/{tracked-domains-BKLxnnSv.mjs → tracked-domains-fe3EWYmF.mjs} +0 -0
  375. /package/dist/{verify-CZW5Fo1q.mjs → verify-CKgZYvln.mjs} +0 -0
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,i as u,n as d}from"./prompt-sL_yMZbI.mjs";function f(e){return e.usage(`$0 content-scan expressions create
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,i as u,n as d}from"./prompt-CGUzvBgY.mjs";function f(e){return e.usage(`$0 content-scan expressions create
3
3
 
4
4
  Create one or more Content Scanning custom expressions, appending them to the existing list of the zone, and return the updated list. Each expression reaches content objects the scanner cannot find automatically, for example \`lookup_json_string(http.request.body.raw, "file")\`.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Array of Content Scanning custom expressions to create.`})}const p={command:`create`,describe:`Create Content Scanning custom expressions for a zone.`,builder:f,handler:async s=>a({command:`content-scan expressions create`,classification:{safeFlags:[`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf content-scan expressions create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/content-upload-scan/payloads`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?void 0:o(s.body)});return}let a=await t(s),c=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=c,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.contentScan.expressions.create({body:e,zone_id:c})),{successLabel:`Created`});return}if(s.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function m(e){return e.usage(`$0 content-scan expressions delete <expression-id>
5
5
 
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import{i as e,r as t}from"./project-settings-DO6njFg_.mjs";import{n}from"./resolve-BCTrtcx7.mjs";function r(e,t){if(t)return{value:t,source:`flag`};let n=process.env[e];if(n)return{value:n,source:`env`}}async function i(n={}){let r=process.env.CLOUDFLARE_ACCOUNT_ID;if(r)return{value:r,source:`env`};if(n.skipProjectSettings)return;let i=t(void 0,n),a=i===void 0?await e(void 0,n):i;if(a?.settings?.accountId)return{value:a.settings.accountId,source:`settings`,path:a.path}}async function a(){let e=await i();if(e)return e.value;let{getActiveAccountId:t}=await import(`./oauth-DxGgIwFc.mjs`);try{return t()}catch{return}}async function o(e){let t=await i(e);t&&s(t.value,g(t,`accountId`));let{getOrSelectAccountId:n}=await import(`./oauth-DxGgIwFc.mjs`);return n(t?.value,e)}function s(e,t){if(!process.env.DEBUG)return;let n=e.length>12?e.slice(0,12)+`…`:e;process.stderr.write(`Using account: ${n} (${t})\n`)}async function c(e,t,n){if(e?.zoneId)return l(e.zoneId,t);let i=r(`CLOUDFLARE_ZONE_ID`,e?.zone);if(i){if(!n?.quiet&&i.source!==`flag`){let e=g(i);console.error(`Using zone: ${i.value} (from ${e})`)}return l(i.value,t)}throw Error(`No zone specified.
3
+
4
+ Please provide one of the following:
5
+ 1. Zone as a positional argument: cf dns records list <zone>
6
+ 2. --zone flag (or -z): cf dns records list --zone example.com
7
+ 3. CLOUDFLARE_ZONE_ID environment variable`)}async function l(e,t){if(n(e)||!t)return e;let{resolveZoneId:r}=await import(`./resolve-PZuJ878-.mjs`);return r(t,await o(),e)}function u(e){if(e?.scriptName)return e.scriptName;throw Error("Required Worker name missing. Please specify the Worker name with `--worker <name>`.")}const d=[`public`,`fedramp_high`];let f=!1;async function p(n={}){let r=t(void 0,n),i=(r===void 0?await e(void 0,n):r)?.settings?.complianceRegion,a=h(i,`cloudflare.config.ts`),o=process.env.CLOUDFLARE_COMPLIANCE_REGION,s=h(o,`CLOUDFLARE_COMPLIANCE_REGION`);return s?(a&&a!==s&&!f&&(f=!0,console.warn(`The compliance region was resolved to "${o}" from the \`CLOUDFLARE_COMPLIANCE_REGION\` environment variable, which takes precedence over the configured value "${i}" in \`cloudflare.config.ts\`.`)),s):a}async function m(e){return await p(e)??`public`}function h(e,t){switch(e){case`fedramp-high`:return`fedramp_high`;case`fedramp_high`:case`public`:case void 0:return e;default:throw Error(`Invalid compliance region "${e}" from ${t}. Valid values are: ${d.join(`, `)}`)}}function g(e,t=`zone`){switch(e.source){case`flag`:return t===`zone`?`--zone flag`:`(flag)`;case`env`:return{accountId:`CLOUDFLARE_ACCOUNT_ID`,zone:`CLOUDFLARE_ZONE_ID`,complianceRegion:`CLOUDFLARE_COMPLIANCE_REGION`}[t];case`settings`:return`cloudflare.config.ts`}}export{a,c as i,m as n,u as r,o as t};
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./auth-DJhSjNNL.mjs";import{t}from"./output-Bia1u2k5.mjs";import{t as n}from"./dry-run-CLX6Pbtq.mjs";import{t as r}from"./progress-D_mL-Kcy.mjs";import{t as i}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as a,t as o}from"./body-parser-CUWbw_Tq.mjs";import{n as s}from"./input-validation-Ch4Vllrm.mjs";function c(e){return e.usage(`$0 cps get
2
+ import{r as e}from"./auth-BIr56Mbx.mjs";import{t}from"./output-CvQFJkvi.mjs";import{t as n}from"./dry-run-Bq0JAsbX.mjs";import{t as r}from"./progress-A61dRbXl.mjs";import{t as i}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as a,t as o}from"./body-parser-hh2avzkz.mjs";import{n as s}from"./input-validation-Dk52b0me.mjs";function c(e){return e.usage(`$0 cps get
3
3
 
4
4
  Retrieve the communication preferences for the authenticated user, including email verification status, marketing subscription opt-in/opt-out state, and language locale. Callers authenticate with standard Cloudflare API tokens or keys.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get communication preferences`,builder:c,handler:async a=>i({command:`cps get`,classification:{safeFlags:[`dry-run`]}},a,async()=>{if(a.dryRun){n({command:`cf cps get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/user/communication_preferences`,pathParams:{},bodyKind:`none`});return}let i=await e(a);t(await r(`Loading`,async()=>i.cps.get()),{successLabel:`Loaded`})})};function u(e){return e.usage(`$0 cps update
5
5
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";function l(e){return e.usage(`$0 csamScanner edit
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";function l(e){return e.usage(`$0 csamScanner edit
3
3
 
4
4
  Update the CSAM Scanner configuration for a zone. Allows enabling or disabling CSAM scanning, updating the notification email, and configuring scanning sources. When a new email is provided, email verification is triggered automatically. The \`enabled\` field is a toggle; the server may adjust it based on whether the notification email is verified. Returns 403 if the zone or account is locked by Trust & Safety.`).option(`id`,{type:`string`,description:`The feature identifier.`,choices:[`csam_scanner`]}).option(`value-email`,{type:`string`,description:`Notification email address for CSAM scan results. When changed,
5
5
  email verification is triggered automatically.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";function c(e){return e.usage(`$0 ct-alerting get
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";function c(e){return e.usage(`$0 ct-alerting get
3
3
 
4
4
  Retrieve the Certificate Transparency alerting subscription settings for a zone. Returns whether CT monitoring is enabled and the list of email addresses that receive alerts, if any have been configured.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const l={command:`get`,describe:`Get CT Alerting Subscription`,builder:c,handler:async o=>a({command:`ct-alerting get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.ctAlerting.get({zone_id:s})),{successLabel:`Loaded`})})};function u(e){return e.usage("$0 ct-alerting update\n\nCreate or update the Certificate Transparency alerting subscription for a zone. Enables or disables email notifications when certificates are issued for the zone's domains. The `enabled` field is required on every request and controls whether the subscription is active. The `emails` field is optional and, when provided, replaces the stored recipient list for the zone. When `emails` is omitted, the stored recipient list is preserved and only the enabled state is toggled. A maximum of 100 email addresses may be configured per zone. Requests that omit `enabled` are rejected with error code 1008. Subscribe and unsubscribe notification emails are only sent for recipients whose effective subscription state changes. Idempotent requests (no state change) send no notification email.").option(`emails`,{type:`string`,array:!0,description:`Email addresses that receive CT alert notifications for the zone. A maximum of 100 addresses may be configured. Each address must be a valid RFC 5322 email address and must not contain a comma.
5
5
  `}).option(`enabled`,{type:`boolean`,description:`Whether CT alerting is enabled for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for updating CT alerting subscription settings.`})}const d={command:`update`,describe:`Update CT Alerting Subscription`,builder:u,handler:async c=>a({command:`ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},c,async()=>{if(c.dryRun){r({command:`cf ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${c.zone??c.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(c.zone??c[`zone-id`]??``)},bodyKind:`json`,body:c.body===void 0?s({emails:c.emails,enabled:c.enabled}):o(c.body)});return}let a=await t(c),l=await e({zone:c.zone},a,{quiet:c.quiet});if(c.zoneId=l,c.body){let e=o(c.body);n(await i(`Updating`,async()=>a.ctAlerting.update({...e,zone_id:l})),{successLabel:`Updated`});return}if(c.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let u=s({emails:c.emails,enabled:c.enabled});n(await i(`Updating`,async()=>a.ctAlerting.update({...u,zone_id:l})),{successLabel:`Updated`})})},f={command:`ct-alerting`,describe:`ct-alerting`,builder:e=>e.command(l).command(d).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{f as default};
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,r as s,t as c}from"./body-parser-CUWbw_Tq.mjs";import{n as l}from"./input-validation-Ch4Vllrm.mjs";import{a as u,n as d}from"./prompt-sL_yMZbI.mjs";import{t as f}from"./cli-types-tt_LZMbn.mjs";function p(e){return e.usage(`$0 custom-certificates create
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,r as s,t as c}from"./body-parser-hh2avzkz.mjs";import{n as l}from"./input-validation-Dk52b0me.mjs";import{a as u,n as d}from"./prompt-CGUzvBgY.mjs";import{t as f}from"./cli-types-DoVT5q_M.mjs";function p(e){return e.usage(`$0 custom-certificates create
3
3
 
4
4
  Upload a new SSL certificate for a zone.`).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`],default:`ubiquitous`}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`],default:`production`}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
5
5
  Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).option(`type`,{type:`string`,description:`The type 'legacy_custom' enables support for legacy clients which do not include SNI in the TLS handshake.`,choices:[`legacy_custom`,`sni_custom`],default:`legacy_custom`}).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:`Create SSL Configuration`,builder:p,handler:async s=>a({command:`custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)}):o(s.body)});return}let a=await t(s),d=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=d,s.body){let e=o(s.body);n(await i(`Creating`,async()=>a.customCertificates.create({...e,zone_id:d})),{successLabel:`Created`});return}s.certificate===void 0&&(s.certificate=await u(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let f=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`),type:l(s.type,`type`,`text`)});n(await i(`Creating`,async()=>a.customCertificates.create({...f,zone_id:d})),{successLabel:`Created`})})};function h(e){return e.usage(`$0 custom-certificates delete <custom-certificate-id>
6
6
 
7
- Remove a SSL certificate from a zone.`).positional(`custom-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const g={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:h,handler:async o=>a({command:`custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
7
+ Remove a SSL certificate from a zone.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom 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 g={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:h,handler:async o=>a({command:`custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await d({force:!!o.force})){process.stderr.write(`Aborted.
8
8
  `);return}n(await i(`Deleting`,async()=>a.customCertificates.delete({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Deleted`})})};function _(e){return e.usage(`$0 custom-certificates edit <custom-certificate-id>
9
9
 
10
- Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.`).positional(`custom-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`]}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
10
+ Upload a new private key and/or PEM/CRT for the SSL certificate. Note: PATCHing a configuration for sni_custom certificates will result in a new resource id being returned, and the previous one being deleted.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom certificate identifier tag.`,demandOption:!0}).option(`bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`deploy`,{type:`string`,description:`The environment to deploy the certificate to, defaults to production.`,choices:[`staging`,`production`]}).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).option(`policy`,{type:`string`,description:`Specify the policy that determines the region where your private key will be held locally. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Any combination of countries, specified by their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected.
11
11
  Note: The API accepts this field as either "policy" or "policy_restrictions" in requests. Responses return this field as "policy_restrictions".`}).option(`private-key`,{type:`string`,description:`The zone's private key. Not required if custom_csr_id is provided, in which case the private key is retrieved from the CSR record held by Cloudflare.`}).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 v={command:`edit <custom-certificate-id>`,describe:`Edit SSL Configuration`,builder:_,handler:async s=>a({command:`custom-certificates edit`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`dry-run`]}},s,async()=>{if(s.dryRun){r({command:`cf custom-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${s.zone??s.zoneId??`<zone>`}/custom_certificates/${s[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(s[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(s[`custom-certificate-id`]??``),"zone-id":String(s.zone??s[`zone-id`]??``)},bodyKind:`json`,body:s.body===void 0?c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)}):o(s.body)});return}let a=await t(s),u=await e({zone:s.zone},a,{quiet:s.quiet});if(s.zoneId=u,s.body){let e=o(s.body);n(await i(`Updating`,async()=>a.customCertificates.edit({...e,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`});return}let d=c({bundle_method:l(s[`bundle-method`],`bundle-method`,`text`),certificate:l(s.certificate,`certificate`,`text`),custom_csr_id:l(s[`custom-csr-id`],`custom-csr-id`,`text`),deploy:l(s.deploy,`deploy`,`text`),geo_restrictions:{label:l(s[`geo-restrictions-label`],`geo-restrictions-label`,`text`)},policy:l(s.policy,`policy`,`text`),private_key:l(s[`private-key`],`private-key`,`text`)});n(await i(`Updating`,async()=>a.customCertificates.edit({...d,zone_id:u,custom_certificate_id:s[`custom-certificate-id`]})),{successLabel:`Updated`})})};function y(e){return e.usage(`$0 custom-certificates get <custom-certificate-id>
12
12
 
13
- Retrieves details for a specific custom SSL certificate, including certificate metadata, bundle method, geographic restrictions, and associated keyless server configuration.`).positional(`custom-certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const b={command:`get <custom-certificate-id>`,describe:`SSL Configuration Details`,builder:y,handler:async o=>a({command:`custom-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.customCertificates.get({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-certificates list
13
+ Retrieves details for a specific custom SSL certificate, including certificate metadata, bundle method, geographic restrictions, and associated keyless server configuration.`).positional(`custom-certificate-id`,{type:`string`,description:`Custom 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-certificate-id>`,describe:`SSL Configuration Details`,builder:y,handler:async o=>a({command:`custom-certificates get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates/${o[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(o[`custom-certificate-id`]))}`,pathParams:{"custom-certificate-id":String(o[`custom-certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.customCertificates.get({zone_id:s,custom_certificate_id:o[`custom-certificate-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-certificates list
14
14
 
15
15
  List, search, and filter all of your custom SSL certificates. The higher priority will break ties across overlapping 'legacy_custom' certificates, but 'legacy_custom' certificates will always supercede 'sni_custom' certificates.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of zones per page.`}).option(`match`,{type:`string`,description:`Whether to match all search requirements or at least one (any).`,choices:[`any`,`all`]}).option(`status`,{type:`string`,description:`Status of the zone's custom SSL.`,choices:[`active`,`expired`,`deleted`,`pending`,`initializing`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List SSL Configurations`,builder:f(x),handler:async o=>a({command:`custom-certificates list`,classification:{safeFlags:[`match`,`status`,`dry-run`]}},o,async()=>{let a={page:o.page,per_page:o[`per-page`],match:o.match,status:o.status};if(o.dryRun){r({command:`cf custom-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.customCertificates.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function C(e){return e.usage(`$0 custom-certificates prioritize update
16
16
 
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-sL_yMZbI.mjs";import{t as m}from"./cli-types-tt_LZMbn.mjs";function h(e){return e.usage(`$0 custom-csrs create
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-CGUzvBgY.mjs";import{t as m}from"./cli-types-DoVT5q_M.mjs";function h(e){return e.usage(`$0 custom-csrs create
3
3
 
4
- Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const g={command:`create`,describe:`Create Custom CSR`,builder:h,handler:async p=>c({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customCsrs.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}if(p[`common-name`]===void 0&&(p[`common-name`]=await f(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),p.country===void 0&&(p.country=await f(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),p.locality===void 0&&(p.locality=await f(`locality`,`City or locality name.`)),p.organization===void 0&&(p.organization=await f(`organization`,`Organization name.`)),p.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);p.state===void 0&&(p.state=await f(`state`,`State or province name.`));let g=u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)});a(await s(`Creating`,async()=>c.customCsrs.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
4
+ Generate a new custom Certificate Signing Request (CSR) for an account or zone. Cloudflare generates and securely stores the private key associated with the CSR.`).option(`common-name`,{type:`string`,description:`The common name (domain) for the CSR. Must be at most 64 characters.`}).option(`country`,{type:`string`,description:`Two-letter ISO 3166-1 alpha-2 country code.`}).option(`description`,{type:`string`,description:`Optional description for the CSR.`}).option(`key-type`,{type:`string`,description:`Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.`,choices:[`rsa2048`,`p256v1`],default:`rsa2048`}).option(`locality`,{type:`string`,description:`City or locality name.`}).option(`name`,{type:`string`,description:`Human-readable name for the CSR.`}).option(`organization`,{type:`string`,description:`Organization name.`}).option(`organizational-unit`,{type:`string`,description:`Organizational unit name.`}).option(`sans`,{type:`string`,array:!0,description:`Subject Alternative Names for the CSR. At least one SAN is required.`}).option(`state`,{type:`string`,description:`State or province name.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for creating a custom CSR.`})}const g={command:`create`,describe:`Create Custom CSR`,builder:h,handler:async p=>c({command:`custom-csrs create`,classification:{safeFlags:[`key-type`,`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-csrs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customCsrs.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}if(p[`common-name`]===void 0&&(p[`common-name`]=await f(`common-name`,`The common name (domain) for the CSR. Must be at most 64 characters.`)),p.country===void 0&&(p.country=await f(`country`,`Two-letter ISO 3166-1 alpha-2 country code.`)),p.locality===void 0&&(p.locality=await f(`locality`,`City or locality name.`)),p.organization===void 0&&(p.organization=await f(`organization`,`Organization name.`)),p.sans===void 0)throw Error(`--sans is required (or pass --body with this field set).`);p.state===void 0&&(p.state=await f(`state`,`State or province name.`));let g=u({common_name:d(p[`common-name`],`common-name`,`text`),country:d(p.country,`country`,`text`),description:d(p.description,`description`,`text`),key_type:d(p[`key-type`],`key-type`,`text`),locality:d(p.locality,`locality`,`text`),name:d(p.name,`name`,`text`),organization:d(p.organization,`organization`,`text`),organizational_unit:d(p[`organizational-unit`],`organizational-unit`,`text`),sans:p.sans,state:d(p.state,`state`,`text`)});a(await s(`Creating`,async()=>c.customCsrs.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function _(e){return e.usage(`$0 custom-csrs delete <custom-csr-id>
5
5
 
6
- Delete a custom Certificate Signing Request (CSR) and its associated private key.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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 v={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:_,handler:async l=>c({command:`custom-csrs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();if(u===`zones`?l.zoneId=d:l.accountId=d,!await p({force:!!l.force})){process.stderr.write(`Aborted.
6
+ Delete a custom Certificate Signing Request (CSR) and its associated private key.`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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 v={command:`delete <custom-csr-id>`,describe:`Delete Custom CSR`,builder:_,handler:async l=>c({command:`custom-csrs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(n),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();if(u===`zones`?l.zoneId=d:l.accountId=d,!await p({force:!!l.force})){process.stderr.write(`Aborted.
7
7
  `);return}a(await s(`Deleting`,async()=>c.customCsrs.delete({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Deleted`})})};function y(e){return e.usage(`$0 custom-csrs get <custom-csr-id>
8
8
 
9
- Retrieve details for a specific custom Certificate Signing Request (CSR).`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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-csr-id>`,describe:`Custom CSR Details`,builder:y,handler:async l=>c({command:`custom-csrs get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(t),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customCsrs.get({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-csrs list
9
+ Retrieve details for a specific custom Certificate Signing Request (CSR).`).positional(`custom-csr-id`,{type:`string`,description:`Custom CSR 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-csr-id>`,describe:`Custom CSR Details`,builder:y,handler:async l=>c({command:`custom-csrs get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs/${l[`custom-csr-id`]==null?`<custom-csr-id>`:encodeURIComponent(String(l[`custom-csr-id`]))}`,pathParams:{"account-or-zone":String(n),"custom-csr-id":String(l[`custom-csr-id`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customCsrs.get({account_or_zone:u,account_or_zone_id:d,custom_csr_id:l[`custom-csr-id`]})),{successLabel:`Loaded`})})};function x(e){return e.usage(`$0 custom-csrs list
10
10
 
11
- List all custom Certificate Signing Requests (CSRs) for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Custom CSRs`,builder:m(x),handler:async l=>c({command:`custom-csrs list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`],order:l.order,direction:l.direction};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-csrs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_csrs`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customCsrs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},C={command:`custom-csrs`,describe:`custom-csrs`,builder:e=>e.command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{C as default};
11
+ List all custom Certificate Signing Requests (CSRs) for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom CSRs per page.`}).option(`order`,{type:`string`,description:`The field to sort the returned custom CSRs by.`,choices:[`name`,`account_tag`,`created_at`]}).option(`direction`,{type:`string`,description:`The direction to sort by.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`list`,describe:`List Custom CSRs`,builder:m(x),handler:async l=>c({command:`custom-csrs list`,classification:{safeFlags:[`order`,`direction`,`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`],order:l.order,direction:l.direction};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-csrs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_csrs`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customCsrs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},C={command:`custom-csrs`,describe:`custom-csrs`,builder:e=>e.command(g).command(v).command(b).command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{C as default};
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import{_ as e}from"./oauth-Dzk6Gy-6.mjs";import{r as t}from"./auth-DJhSjNNL.mjs";import{t as n}from"./output-Bia1u2k5.mjs";import{t as r}from"./dry-run-CLX6Pbtq.mjs";import{t as i}from"./progress-D_mL-Kcy.mjs";import{t as a}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as o,t as s}from"./body-parser-CUWbw_Tq.mjs";import{n as c}from"./input-validation-Ch4Vllrm.mjs";import{a as l,n as u}from"./prompt-sL_yMZbI.mjs";import{t as d}from"./cli-types-tt_LZMbn.mjs";function f(e){return e.usage(`$0 custom-hostnames certificate-pack certificates delete <certificate-id>
2
+ import{i as e}from"./context-CEOHpZgd.mjs";import{r as t}from"./auth-BIr56Mbx.mjs";import{t as n}from"./output-CvQFJkvi.mjs";import{t as r}from"./dry-run-Bq0JAsbX.mjs";import{t as i}from"./progress-A61dRbXl.mjs";import{t as a}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as o,t as s}from"./body-parser-hh2avzkz.mjs";import{n as c}from"./input-validation-Dk52b0me.mjs";import{a as l,n as u}from"./prompt-CGUzvBgY.mjs";import{t as d}from"./cli-types-DoVT5q_M.mjs";function f(e){return e.usage(`$0 custom-hostnames certificate-pack certificates delete <certificate-id>
3
3
 
4
- Delete a single custom certificate from a certificate pack that contains two bundled certificates. Deletion is subject to the following constraints. You cannot delete a certificate if it is the only remaining certificate in the pack. At least one certificate must remain in the pack.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const p={command:`delete <certificate-id>`,describe:`Delete Single Certificate And Key For Custom Hostname`,builder:f,handler:async o=>a({command:`custom-hostnames certificate-pack certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames certificate-pack certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}/certificate_pack/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"certificate-pack-id":String(o[`certificate-pack-id`]??``),"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
4
+ Delete a single custom certificate from a certificate pack that contains two bundled certificates. Deletion is subject to the following constraints. You cannot delete a certificate if it is the only remaining certificate in the pack. At least one certificate must remain in the pack.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname 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 p={command:`delete <certificate-id>`,describe:`Delete Single Certificate And Key For Custom Hostname`,builder:f,handler:async o=>a({command:`custom-hostnames certificate-pack certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames certificate-pack certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}/certificate_pack/${o[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(o[`certificate-pack-id`]))}/certificates/${o[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(o[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"certificate-pack-id":String(o[`certificate-pack-id`]??``),"certificate-id":String(o[`certificate-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
5
5
  `);return}n(await i(`Deleting`,async()=>a.customHostnames.certificatePack.certificates.delete({zone_id:s,custom_hostname_id:o[`custom-hostname-id`],certificate_pack_id:o[`certificate-pack-id`],certificate_id:o[`certificate-id`]})),{successLabel:`Deleted`})})};function m(e){return e.usage(`$0 custom-hostnames certificate-pack certificates update <certificate-id>
6
6
 
7
- Replace a single custom certificate within a certificate pack that contains two bundled certificates. The replacement must adhere to the following constraints. You can only replace an RSA certificate with another RSA certificate or an ECDSA certificate with another ECDSA certificate.`).positional(`certificate-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).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 h={command:`update <certificate-id>`,describe:`Replace Custom Certificate and Custom Key In Custom Hostname`,builder:m,handler:async u=>a({command:`custom-hostnames certificate-pack certificates update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf custom-hostnames certificate-pack certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/custom_hostnames/${u[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(u[`custom-hostname-id`]))}/certificate_pack/${u[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(u[`certificate-pack-id`]))}/certificates/${u[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(u[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(u[`custom-hostname-id`]??``),"certificate-pack-id":String(u[`certificate-pack-id`]??``),"certificate-id":String(u[`certificate-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({custom_certificate:c(u[`custom-certificate`],`custom-certificate`,`text`),custom_key:c(u[`custom-key`],`custom-key`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.customHostnames.certificatePack.certificates.update({body:e,zone_id:d,custom_hostname_id:u[`custom-hostname-id`],certificate_pack_id:u[`certificate-pack-id`],certificate_id:u[`certificate-id`]})),{successLabel:`Updated`});return}u[`custom-certificate`]===void 0&&(u[`custom-certificate`]=await l(`custom-certificate`,`If a custom uploaded certificate is used.`)),u[`custom-key`]===void 0&&(u[`custom-key`]=await l(`custom-key`,`The key for a custom uploaded certificate.`,{kind:`secret`}));let f=s({custom_certificate:c(u[`custom-certificate`],`custom-certificate`,`text`),custom_key:c(u[`custom-key`],`custom-key`,`text`)});n(await i(`Updating`,async()=>a.customHostnames.certificatePack.certificates.update({body:f,zone_id:d,custom_hostname_id:u[`custom-hostname-id`],certificate_pack_id:u[`certificate-pack-id`],certificate_id:u[`certificate-id`]})),{successLabel:`Updated`})})},g={command:`certificates`,describe:`Operations for certificate-pack.certificates`,builder:e=>e.command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_={command:`certificate-pack`,describe:`Operations for certificate-pack`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 custom-hostnames create
7
+ Replace a single custom certificate within a certificate pack that contains two bundled certificates. The replacement must adhere to the following constraints. You can only replace an RSA certificate with another RSA certificate or an ECDSA certificate with another ECDSA certificate.`).positional(`certificate-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`certificate-pack-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).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 h={command:`update <certificate-id>`,describe:`Replace Custom Certificate and Custom Key In Custom Hostname`,builder:m,handler:async u=>a({command:`custom-hostnames certificate-pack certificates update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf custom-hostnames certificate-pack certificates update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/custom_hostnames/${u[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(u[`custom-hostname-id`]))}/certificate_pack/${u[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(u[`certificate-pack-id`]))}/certificates/${u[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(u[`certificate-id`]))}`,pathParams:{"custom-hostname-id":String(u[`custom-hostname-id`]??``),"certificate-pack-id":String(u[`certificate-pack-id`]??``),"certificate-id":String(u[`certificate-id`]??``),"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({custom_certificate:c(u[`custom-certificate`],`custom-certificate`,`text`),custom_key:c(u[`custom-key`],`custom-key`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.customHostnames.certificatePack.certificates.update({body:e,zone_id:d,custom_hostname_id:u[`custom-hostname-id`],certificate_pack_id:u[`certificate-pack-id`],certificate_id:u[`certificate-id`]})),{successLabel:`Updated`});return}u[`custom-certificate`]===void 0&&(u[`custom-certificate`]=await l(`custom-certificate`,`If a custom uploaded certificate is used.`)),u[`custom-key`]===void 0&&(u[`custom-key`]=await l(`custom-key`,`The key for a custom uploaded certificate.`,{kind:`secret`}));let f=s({custom_certificate:c(u[`custom-certificate`],`custom-certificate`,`text`),custom_key:c(u[`custom-key`],`custom-key`,`text`)});n(await i(`Updating`,async()=>a.customHostnames.certificatePack.certificates.update({body:f,zone_id:d,custom_hostname_id:u[`custom-hostname-id`],certificate_pack_id:u[`certificate-pack-id`],certificate_id:u[`certificate-id`]})),{successLabel:`Updated`})})},g={command:`certificates`,describe:`Operations for certificate-pack.certificates`,builder:e=>e.command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},_={command:`certificate-pack`,describe:`Operations for certificate-pack`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 custom-hostnames create
8
8
 
9
9
  Add a new custom hostname and request that an SSL certificate be issued for it. One of three validation methods—http, txt, email—should be used, with 'http' recommended if the CNAME is already in place (or will be soon). Specifying 'email' will send an email to the WHOIS contacts on file for the base domain plus hostmaster, postmaster, webmaster, admin, administrator. If http is used and the domain is not already pointing to the Managed CNAME host, the PATCH method must be used once it is (to complete validation). Enable bundling of certificates using the custom_cert_bundle field. The bundling process requires the following condition One certificate in the bundle must use an RSA, and the other must use an ECDSA.`).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`hostname`,{type:`string`,description:`The custom hostname that will point to your hostname via CNAME.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`create`,describe:`Create Custom Hostname`,builder:v,handler:async u=>a({command:`custom-hostnames create`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf custom-hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/custom_hostnames`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({custom_origin_server:c(u[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(u[`custom-origin-sni`],`custom-origin-sni`,`text`),hostname:c(u.hostname,`hostname`,`text`),ssl:{bundle_method:c(u[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(u[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:u[`ssl-cloudflare-branding`],custom_certificate:c(u[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(u[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(u[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(u[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:u[`ssl-settings-ciphers`],early_hints:c(u[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(u[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(u[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(u[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(u[`ssl-type`],`ssl-type`,`text`),wildcard:u[`ssl-wildcard`]}}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Creating`,async()=>a.customHostnames.create({...e,zone_id:d})),{successLabel:`Created`});return}u.hostname===void 0&&(u.hostname=await l(`hostname`,`The custom hostname that will point to your hostname via CNAME.`));let f=s({custom_origin_server:c(u[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(u[`custom-origin-sni`],`custom-origin-sni`,`text`),hostname:c(u.hostname,`hostname`,`text`),ssl:{bundle_method:c(u[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(u[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:u[`ssl-cloudflare-branding`],custom_certificate:c(u[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(u[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(u[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(u[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:u[`ssl-settings-ciphers`],early_hints:c(u[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(u[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(u[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(u[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(u[`ssl-type`],`ssl-type`,`text`),wildcard:u[`ssl-wildcard`]}});n(await i(`Creating`,async()=>a.customHostnames.create({...f,zone_id:d})),{successLabel:`Created`})})};function b(e){return e.usage(`$0 custom-hostnames delete <custom-hostname-id>
10
10
 
11
- Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone.`).positional(`custom-hostname-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const x={command:`delete <custom-hostname-id>`,describe:`Delete Custom Hostname (and any issued SSL certificates)`,builder:b,handler:async o=>a({command:`custom-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
11
+ Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname 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 x={command:`delete <custom-hostname-id>`,describe:`Delete Custom Hostname (and any issued SSL certificates)`,builder:b,handler:async o=>a({command:`custom-hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
12
12
  `);return}n(await i(`Deleting`,async()=>a.customHostnames.delete({zone_id:s,custom_hostname_id:o[`custom-hostname-id`]})),{successLabel:`Deleted`})})};function S(e){return e.usage(`$0 custom-hostnames edit <custom-hostname-id>
13
13
 
14
- Modify SSL configuration for a custom hostname. When sent with SSL config that matches existing config, used to indicate that hostname should pass domain control validation (DCV). Can also be used to change validation type, e.g., from 'http' to 'email'. Bundle an existing certificate with another certificate by using the "custom_cert_bundle" field. The bundling process supports combining certificates as long as the following condition is met. One certificate must use the RSA algorithm, and the other must use the ECDSA algorithm.`).positional(`custom-hostname-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`edit <custom-hostname-id>`,describe:`Edit Custom Hostname`,builder:S,handler:async l=>a({command:`custom-hostnames edit`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf custom-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/custom_hostnames/${l[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(l[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(l[`custom-hostname-id`]??``),"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({custom_origin_server:c(l[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(l[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:c(l[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(l[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:l[`ssl-cloudflare-branding`],custom_certificate:c(l[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(l[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(l[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(l[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:l[`ssl-settings-ciphers`],early_hints:c(l[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(l[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(l[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(l[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(l[`ssl-type`],`ssl-type`,`text`),wildcard:l[`ssl-wildcard`]}}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.customHostnames.edit({...e,zone_id:u,custom_hostname_id:l[`custom-hostname-id`]})),{successLabel:`Updated`});return}let d=s({custom_origin_server:c(l[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(l[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:c(l[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(l[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:l[`ssl-cloudflare-branding`],custom_certificate:c(l[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(l[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(l[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(l[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:l[`ssl-settings-ciphers`],early_hints:c(l[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(l[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(l[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(l[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(l[`ssl-type`],`ssl-type`,`text`),wildcard:l[`ssl-wildcard`]}});n(await i(`Updating`,async()=>a.customHostnames.edit({...d,zone_id:u,custom_hostname_id:l[`custom-hostname-id`]})),{successLabel:`Updated`})})};function w(e){return e.usage(`$0 custom-hostnames fallback-origin delete
14
+ Modify SSL configuration for a custom hostname. When sent with SSL config that matches existing config, used to indicate that hostname should pass domain control validation (DCV). Can also be used to change validation type, e.g., from 'http' to 'email'. Bundle an existing certificate with another certificate by using the "custom_cert_bundle" field. The bundling process supports combining certificates as long as the following condition is met. One certificate must use the RSA algorithm, and the other must use the ECDSA algorithm.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`custom-origin-server`,{type:`string`,description:`a valid hostname that’s been added to your DNS zone as an A, AAAA, or CNAME record.`}).option(`custom-origin-sni`,{type:`string`,description:`A hostname that will be sent to your custom origin server as SNI for TLS handshake. This can be a valid subdomain of the zone or custom origin server name or the string ':request_host_header:' which will cause the host header in the request to be used as SNI. Not configurable with default/fallback origin server.`}).option(`ssl-bundle-method`,{type:`string`,description:`A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.`,choices:[`ubiquitous`,`optimal`,`force`]}).option(`ssl-certificate-authority`,{type:`string`,description:`The Certificate Authority that will issue the certificate.`,choices:[`digicert`,`google`,`lets_encrypt`,`ssl_com`]}).option(`ssl-cloudflare-branding`,{type:`boolean`,description:`Whether or not to add Cloudflare Branding for the order. This will add a subdomain of sni.cloudflaressl.com as the Common Name if set to true.`}).option(`ssl-custom-certificate`,{type:`string`,description:`If a custom uploaded certificate is used.`}).option(`ssl-custom-csr-id`,{type:`string`,description:`The identifier for the Custom CSR that was used.`}).option(`ssl-custom-key`,{type:`string`,description:`The key for a custom uploaded certificate.`}).option(`ssl-method`,{type:`string`,description:`Domain control validation (DCV) method used for this hostname.`,choices:[`http`,`txt`,`email`]}).option(`ssl-settings-ciphers`,{type:`string`,array:!0,description:`An allowlist of ciphers for TLS termination. These ciphers must be in the BoringSSL format.`}).option(`ssl-settings-early-hints`,{type:`string`,description:`Whether or not Early Hints is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-http2`,{type:`string`,description:`Whether or not HTTP2 is enabled.`,choices:[`on`,`off`]}).option(`ssl-settings-min-tls-version`,{type:`string`,description:`The minimum TLS version supported.`,choices:[`1.0`,`1.1`,`1.2`,`1.3`]}).option(`ssl-settings-tls-1-3`,{type:`string`,description:`Whether or not TLS 1.3 is enabled.`,choices:[`on`,`off`]}).option(`ssl-type`,{type:`string`,description:`Level of validation to be used for this hostname. Domain validation (dv) must be used.`,choices:[`dv`]}).option(`ssl-wildcard`,{type:`boolean`,description:`Indicates whether the certificate covers a wildcard.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const C={command:`edit <custom-hostname-id>`,describe:`Edit Custom Hostname`,builder:S,handler:async l=>a({command:`custom-hostnames edit`,classification:{safeFlags:[`ssl-bundle-method`,`ssl-certificate-authority`,`ssl-cloudflare-branding`,`ssl-method`,`ssl-settings-early-hints`,`ssl-settings-http2`,`ssl-settings-min-tls-version`,`ssl-settings-tls-1-3`,`ssl-type`,`ssl-wildcard`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf custom-hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/custom_hostnames/${l[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(l[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(l[`custom-hostname-id`]??``),"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({custom_origin_server:c(l[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(l[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:c(l[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(l[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:l[`ssl-cloudflare-branding`],custom_certificate:c(l[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(l[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(l[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(l[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:l[`ssl-settings-ciphers`],early_hints:c(l[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(l[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(l[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(l[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(l[`ssl-type`],`ssl-type`,`text`),wildcard:l[`ssl-wildcard`]}}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.customHostnames.edit({...e,zone_id:u,custom_hostname_id:l[`custom-hostname-id`]})),{successLabel:`Updated`});return}let d=s({custom_origin_server:c(l[`custom-origin-server`],`custom-origin-server`,`text`),custom_origin_sni:c(l[`custom-origin-sni`],`custom-origin-sni`,`text`),ssl:{bundle_method:c(l[`ssl-bundle-method`],`ssl-bundle-method`,`text`),certificate_authority:c(l[`ssl-certificate-authority`],`ssl-certificate-authority`,`text`),cloudflare_branding:l[`ssl-cloudflare-branding`],custom_certificate:c(l[`ssl-custom-certificate`],`ssl-custom-certificate`,`text`),custom_csr_id:c(l[`ssl-custom-csr-id`],`ssl-custom-csr-id`,`text`),custom_key:c(l[`ssl-custom-key`],`ssl-custom-key`,`text`),method:c(l[`ssl-method`],`ssl-method`,`text`),settings:{ciphers:l[`ssl-settings-ciphers`],early_hints:c(l[`ssl-settings-early-hints`],`ssl-settings-early-hints`,`text`),http2:c(l[`ssl-settings-http2`],`ssl-settings-http2`,`text`),min_tls_version:c(l[`ssl-settings-min-tls-version`],`ssl-settings-min-tls-version`,`text`),tls_1_3:c(l[`ssl-settings-tls-1-3`],`ssl-settings-tls-1-3`,`text`)},type:c(l[`ssl-type`],`ssl-type`,`text`),wildcard:l[`ssl-wildcard`]}});n(await i(`Updating`,async()=>a.customHostnames.edit({...d,zone_id:u,custom_hostname_id:l[`custom-hostname-id`]})),{successLabel:`Updated`})})};function w(e){return e.usage(`$0 custom-hostnames fallback-origin delete
15
15
 
16
16
  Removes the fallback origin configuration for custom hostnames on a zone. Custom hostnames without specific origins will no longer have a fallback.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const T={command:`delete`,describe:`Delete Fallback Origin for Custom Hostnames`,builder:w,handler:async o=>a({command:`custom-hostnames fallback-origin delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames fallback-origin delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/fallback_origin`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await u({force:!!o.force})){process.stderr.write(`Aborted.
17
17
  `);return}n(await i(`Deleting`,async()=>a.customHostnames.fallbackOrigin.delete({zone_id:s})),{successLabel:`Deleted`})})};function E(e){return e.usage(`$0 custom-hostnames fallback-origin get
@@ -20,7 +20,7 @@ Retrieves the current fallback origin configuration for custom hostnames on a zo
20
20
 
21
21
  Updates the fallback origin configuration for custom hostnames on a zone. Sets the default origin server for custom hostname traffic.`).option(`origin`,{type:`string`,description:`Your origin hostname that requests to your custom hostnames will be sent to.`}).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 k={command:`update`,describe:`Update Fallback Origin for Custom Hostnames`,builder:O,handler:async u=>a({command:`custom-hostnames fallback-origin update`,classification:{safeFlags:[`dry-run`]}},u,async()=>{if(u.dryRun){r({command:`cf custom-hostnames fallback-origin update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${u.zone??u.zoneId??`<zone>`}/custom_hostnames/fallback_origin`,pathParams:{"zone-id":String(u.zone??u[`zone-id`]??``)},bodyKind:`json`,body:u.body===void 0?s({origin:c(u.origin,`origin`,`text`)}):o(u.body)});return}let a=await t(u),d=await e({zone:u.zone},a,{quiet:u.quiet});if(u.zoneId=d,u.body){let e=o(u.body);n(await i(`Updating`,async()=>a.customHostnames.fallbackOrigin.update({...e,zone_id:d})),{successLabel:`Updated`});return}u.origin===void 0&&(u.origin=await l(`origin`,`Your origin hostname that requests to your custom hostnames will be sent to.`));let f=s({origin:c(u.origin,`origin`,`text`)});n(await i(`Updating`,async()=>a.customHostnames.fallbackOrigin.update({...f,zone_id:d})),{successLabel:`Updated`})})},A={command:`fallback-origin`,describe:`Operations for fallback-origin`,builder:e=>e.command(T).command(D).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function j(e){return e.usage(`$0 custom-hostnames get <custom-hostname-id>
22
22
 
23
- Retrieves detailed information about a specific custom hostname, including SSL certificate status, ownership verification, and origin configuration.`).positional(`custom-hostname-id`,{type:`string`,description:`Identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get <custom-hostname-id>`,describe:`Custom Hostname Details`,builder:j,handler:async o=>a({command:`custom-hostnames get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.customHostnames.get({zone_id:s,custom_hostname_id:o[`custom-hostname-id`]})),{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 custom-hostnames list
23
+ Retrieves detailed information about a specific custom hostname, including SSL certificate status, ownership verification, and origin configuration.`).positional(`custom-hostname-id`,{type:`string`,description:`Custom hostname identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const M={command:`get <custom-hostname-id>`,describe:`Custom Hostname Details`,builder:j,handler:async o=>a({command:`custom-hostnames get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf custom-hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames/${o[`custom-hostname-id`]==null?`<custom-hostname-id>`:encodeURIComponent(String(o[`custom-hostname-id`]))}`,pathParams:{"custom-hostname-id":String(o[`custom-hostname-id`]??``),"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.customHostnames.get({zone_id:s,custom_hostname_id:o[`custom-hostname-id`]})),{successLabel:`Loaded`})})};function N(e){return e.usage(`$0 custom-hostnames list
24
24
 
25
25
  List, search, sort, and filter all of your custom hostnames.`).option(`hostname`,{type:`string`,description:`Fully qualified domain name to match against. This parameter cannot be used with the 'id', 'hostname.exact', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`hostname-exact`,{type:`string`,description:`Fully qualified domain name to match against. This parameter cannot be used with the 'id', 'hostname', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`hostname-starts-with`,{type:`string`,description:`Filters hostnames by a prefix match on the hostname value. This parameter cannot be used with the 'id', 'hostname', 'hostname.exact', or 'hostname.contain' parameters.`}).option(`hostname-contain`,{type:`string`,description:`Filters hostnames by a substring match on the hostname value. This parameter cannot be used with the 'id', 'hostname', 'hostname.exact', or 'hostname.startsWith' parameters.`}).option(`id`,{type:`string`,description:`Hostname ID to match against. This ID was generated and returned during the initial custom_hostname creation. This parameter cannot be used with the 'hostname', 'hostname.exact', 'hostname.contain', or 'hostname.startsWith' parameters.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of hostnames per page.`}).option(`order`,{type:`string`,description:`Field to order hostnames by.`,choices:[`ssl`,`ssl_status`]}).option(`direction`,{type:`string`,description:`Direction to order hostnames.`,choices:[`asc`,`desc`]}).option(`ssl-status`,{type:`string`,description:`Filter by SSL certificate status.`,choices:[`initializing`,`pending_validation`,`deleted`,`pending_issuance`,`pending_deployment`,`pending_deletion`,`pending_expiration`,`expired`,`active`,`initializing_timed_out`,`validation_timed_out`,`issuance_timed_out`,`deployment_timed_out`,`deletion_timed_out`,`pending_cleanup`,`staging_deployment`,`staging_active`,`deactivating`,`inactive`,`backup_issued`,`holding_deployment`]}).option(`hostname-status`,{type:`string`,description:`Filter by the hostname's activation status.`,choices:[`active`,`pending`,`active_redeploying`,`moved`,`pending_deletion`,`deleted`,`pending_blocked`,`pending_migration`,`pending_provisioned`,`test_pending`,`test_active`,`test_active_apex`,`test_blocked`,`test_failed`,`provisioned`,`blocked`]}).option(`certificate-authority`,{type:`string`,description:`Filter by the certificate authority that issued the SSL certificate.`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).option(`wildcard`,{type:`boolean`,description:`Filter by whether the custom hostname is a wildcard hostname.`}).option(`custom-origin-server`,{type:`string`,description:`Filter by custom origin server name.`}).option(`ssl`,{type:`string`,description:`Whether to filter hostnames based on if they have SSL enabled.`,choices:[`0`,`1`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`list`,describe:`List Custom Hostnames`,builder:d(N),handler:async o=>a({command:`custom-hostnames list`,classification:{safeFlags:[`order`,`direction`,`ssl-status`,`hostname-status`,`certificate-authority`,`wildcard`,`ssl`,`dry-run`]}},o,async()=>{let a={hostname:o.hostname,"hostname.exact":o[`hostname-exact`],"hostname.startsWith":o[`hostname-starts-with`],"hostname.contain":o[`hostname-contain`],id:o.id,page:o.page,per_page:o[`per-page`],order:o.order,direction:o.direction,ssl_status:o[`ssl-status`],hostname_status:o[`hostname-status`],certificate_authority:o[`certificate-authority`],wildcard:o.wildcard,custom_origin_server:o[`custom-origin-server`],ssl:o.ssl};if(o.dryRun){r({command:`cf custom-hostnames list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/custom_hostnames`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},query:a,bodyKind:`none`});return}let s=await t(o),c=await e({zone:o.zone},s,{quiet:o.quiet});o.zoneId=c,n(await i(`Loading`,async()=>s.customHostnames.list({zone_id:c,...a})),{successLabel:`Loaded`})})};function F(e){return e.usage(`$0 custom-hostnames quota get
26
26
 
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,n as p}from"./prompt-sL_yMZbI.mjs";function m(e){return e.usage(`$0 custom-nameservers create
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,n as p}from"./prompt-CGUzvBgY.mjs";function m(e){return e.usage(`$0 custom-nameservers create
3
3
 
4
- Adds a custom nameserver to the account or zone for use as a vanity nameserver on zones.`).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).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 h={command:`create`,describe:`Add account or zone Custom Nameserver`,builder:m,handler:async p=>c({command:`custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_ns`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({ns_name:d(p[`ns-name`],`ns-name`,`text`),ns_set:p[`ns-set`]}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customNameservers.create({body:e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p[`ns-name`]===void 0&&(p[`ns-name`]=await f(`ns-name`,`The FQDN of the name server.`));let g=u({ns_name:d(p[`ns-name`],`ns-name`,`text`),ns_set:p[`ns-set`]});a(await s(`Creating`,async()=>c.customNameservers.create({body:g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 custom-nameservers delete <custom-ns-id>
4
+ Adds a custom nameserver to the account or zone for use as a vanity nameserver on zones.`).option(`ns-name`,{type:`string`,description:`The FQDN of the name server.`}).option(`ns-set`,{type:`number`,description:`The number of the set that this name server belongs to.`,default:1}).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 h={command:`create`,describe:`Add account or zone Custom Nameserver`,builder:m,handler:async p=>c({command:`custom-nameservers create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-nameservers create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_ns`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({ns_name:d(p[`ns-name`],`ns-name`,`text`),ns_set:p[`ns-set`]}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customNameservers.create({body:e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p[`ns-name`]===void 0&&(p[`ns-name`]=await f(`ns-name`,`The FQDN of the name server.`));let g=u({ns_name:d(p[`ns-name`],`ns-name`,`text`),ns_set:p[`ns-set`]});a(await s(`Creating`,async()=>c.customNameservers.create({body:g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})};function g(e){return e.usage(`$0 custom-nameservers delete <custom-ns-id>
5
5
 
6
- Removes a custom nameserver from the account.`).positional(`custom-ns-id`,{type:`string`,description:`The FQDN of the name server.`,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-ns-id>`,describe:`Delete Account Custom Nameserver`,builder:g,handler:async t=>c({command:`custom-nameservers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},t,async()=>{if(t.dryRun){o({command:`cf custom-nameservers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await r()??`<account-id>`}/custom_ns/${t[`custom-ns-id`]==null?`<custom-ns-id>`:encodeURIComponent(String(t[`custom-ns-id`]))}`,pathParams:{"custom-ns-id":String(t[`custom-ns-id`]??``)},bodyKind:`none`});return}let c=await i(t),l=t.local?e:await n();if(t.accountId=l,!await p({force:!!t.force})){process.stderr.write(`Aborted.
7
- `);return}a(await s(`Deleting`,async()=>c.customNameservers.delete({account_id:l,custom_ns_id:t[`custom-ns-id`]})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 custom-nameservers get
6
+ Removes a custom nameserver from the account.`).positional(`custom-ns-id`,{type:`string`,description:`The FQDN of the name server.`,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-ns-id>`,describe:`Delete Account Custom Nameserver`,builder:g,handler:async n=>c({command:`custom-nameservers delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},n,async()=>{if(n.dryRun){o({command:`cf custom-nameservers delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await t()??`<account-id>`}/custom_ns/${n[`custom-ns-id`]==null?`<custom-ns-id>`:encodeURIComponent(String(n[`custom-ns-id`]))}`,pathParams:{"custom-ns-id":String(n[`custom-ns-id`]??``)},bodyKind:`none`});return}let c=await i(n),l=n.local?e:await r();if(n.accountId=l,!await p({force:!!n.force})){process.stderr.write(`Aborted.
7
+ `);return}a(await s(`Deleting`,async()=>c.customNameservers.delete({account_id:l,custom_ns_id:n[`custom-ns-id`]})),{successLabel:`Deleted`})})};function v(e){return e.usage(`$0 custom-nameservers get
8
8
 
9
- List an account or zone's custom nameservers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`List account or zone Custom Nameservers`,builder:v,handler:async l=>c({command:`custom-nameservers get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-nameservers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_ns`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customNameservers.get({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})},b={command:`custom-nameservers`,describe:`custom-nameservers`,builder:e=>e.command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
9
+ List an account or zone's custom nameservers.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`List account or zone Custom Nameservers`,builder:v,handler:async l=>c({command:`custom-nameservers get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-nameservers get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_ns`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customNameservers.get({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})},b={command:`custom-nameservers`,describe:`custom-nameservers`,builder:e=>e.command(h).command(_).command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{b as default};
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./local-B6b2OIBW.mjs";import{_ as t,m as n,v as r}from"./oauth-Dzk6Gy-6.mjs";import{r as i}from"./auth-DJhSjNNL.mjs";import{t as a}from"./output-Bia1u2k5.mjs";import{t as o}from"./dry-run-CLX6Pbtq.mjs";import{t as s}from"./progress-D_mL-Kcy.mjs";import{t as c}from"./run-DtN51G2A.mjs";import"./telemetry-DAf9gLyH.mjs";import{n as l,t as u}from"./body-parser-CUWbw_Tq.mjs";import{n as d}from"./input-validation-Ch4Vllrm.mjs";import{a as f,i as p,n as m}from"./prompt-sL_yMZbI.mjs";function h(e){return e.usage(`$0 custom-pages account-custom-pages preview-tokens create
2
+ import{t as e}from"./local-B5oRPTEN.mjs";import{a as t,i as n,t as r}from"./context-CEOHpZgd.mjs";import{r as i}from"./auth-BIr56Mbx.mjs";import{t as a}from"./output-CvQFJkvi.mjs";import{t as o}from"./dry-run-Bq0JAsbX.mjs";import{t as s}from"./progress-A61dRbXl.mjs";import{t as c}from"./run-CIJTelJL.mjs";import"./telemetry-Q3_UmwHj.mjs";import{n as l,t as u}from"./body-parser-hh2avzkz.mjs";import{n as d}from"./input-validation-Dk52b0me.mjs";import{a as f,i as p,n as m}from"./prompt-CGUzvBgY.mjs";function h(e){return e.usage(`$0 custom-pages account-custom-pages preview-tokens create
3
3
 
4
- Creates a signed JWT for previewing an account or zone-level custom page before it is published.`).option(`act`,{type:`string`,description:`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`}).option(`target`,{type:`string`,description:`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`}).option(`url`,{type:`string`,description:`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a preview token`,builder:h,handler:async p=>c({command:`custom-pages account-custom-pages preview-tokens create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-pages account-custom-pages preview-tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/preview_tokens`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({act:d(p.act,`act`,`text`),target:d(p.target,`target`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customPages.accountCustomPages.previewTokens.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p.act===void 0&&(p.act=await f(`act`,`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`)),p.target===void 0&&(p.target=await f(`target`,`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`)),p.url===void 0&&(p.url=await f(`url`,`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`));let g=u({act:d(p.act,`act`,`text`),target:d(p.target,`target`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Creating`,async()=>c.customPages.accountCustomPages.previewTokens.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})},_={command:`preview-tokens`,describe:`Preview tokens for account-level custom pages`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 custom-pages account-custom-pages update <identifier>
4
+ Creates a signed JWT for previewing an account or zone-level custom page before it is published.`).option(`act`,{type:`string`,description:`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`}).option(`target`,{type:`string`,description:`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`}).option(`url`,{type:`string`,description:`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create a preview token`,builder:h,handler:async p=>c({command:`custom-pages account-custom-pages preview-tokens create`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-pages account-custom-pages preview-tokens create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/preview_tokens`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({act:d(p.act,`act`,`text`),target:d(p.target,`target`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customPages.accountCustomPages.previewTokens.create({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p.act===void 0&&(p.act=await f(`act`,`The preview action type. Required for request parsing but not used in token generation. Typically set to "preview".`)),p.target===void 0&&(p.target=await f(`target`,`The target custom page type to preview (e.g. "block:waf"). Encoded as the "endpoint" claim in the resulting JWT.`)),p.url===void 0&&(p.url=await f(`url`,`The URL of the custom page content to preview. Encoded as the "zone" claim in the resulting JWT.`));let g=u({act:d(p.act,`act`,`text`),target:d(p.target,`target`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Creating`,async()=>c.customPages.accountCustomPages.previewTokens.create({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})},_={command:`preview-tokens`,describe:`Preview tokens for account-level custom pages`,builder:e=>e.command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.usage(`$0 custom-pages account-custom-pages update <identifier>
5
5
 
6
- Updates the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`state`,{type:`string`,description:`The custom page state.`,choices:[`default`,`customized`]}).option(`url`,{type:`string`,description:`The URL associated with the custom page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`update <identifier>`,describe:`Update a custom page`,builder:v,handler:async m=>c({command:`custom-pages account-custom-pages update`,classification:{safeFlags:[`state`,`dry-run`]}},m,async()=>{if(m.dryRun){let e=m.zone===void 0?await r():void 0,t=m.zone===void 0?`accounts`:`zones`,n=m.zone??e??`<account-id>`;o({command:`cf custom-pages account-custom-pages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/${m.identifier==null?`<identifier>`:encodeURIComponent(String(m.identifier))}`,pathParams:{"account-or-zone":String(t),identifier:String(m.identifier??``),"account-or-zone-id":String(n)},bodyKind:`json`,body:m.body===void 0?u({state:d(m.state,`state`,`text`),url:d(m.url,`url`,`text`)}):l(m.body)});return}let c=await i(m),h=m.zone===void 0?`accounts`:`zones`,g=h===`zones`?await t({zone:m.zone},c,{quiet:m.quiet}):m.local?e:await n();if(h===`zones`?m.zoneId=g:m.accountId=g,m.body){let e=l(m.body);a(await s(`Updating`,async()=>c.customPages.accountCustomPages.update({...e,account_or_zone:h,account_or_zone_id:g,identifier:m.identifier})),{successLabel:`Updated`});return}m.state===void 0&&(m.state=await p(`state`,`The custom page state.`,[`default`,`customized`])),m.url===void 0&&(m.url=await f(`url`,`The URL associated with the custom page.`));let _=u({state:d(m.state,`state`,`text`),url:d(m.url,`url`,`text`)});a(await s(`Updating`,async()=>c.customPages.accountCustomPages.update({..._,account_or_zone:h,account_or_zone_id:g,identifier:m.identifier})),{successLabel:`Updated`})})},b={command:`account-custom-pages`,describe:`Manage account-level custom pages`,builder:e=>e.command(y).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 custom-pages assets create custom asset
6
+ Updates the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`state`,{type:`string`,description:`The custom page state.`,choices:[`default`,`customized`]}).option(`url`,{type:`string`,description:`The URL associated with the custom page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const y={command:`update <identifier>`,describe:`Update a custom page`,builder:v,handler:async m=>c({command:`custom-pages account-custom-pages update`,classification:{safeFlags:[`state`,`dry-run`]}},m,async()=>{if(m.dryRun){let e=m.zone===void 0?await t():void 0,n=m.zone===void 0?`accounts`:`zones`,r=m.zone??e??`<account-id>`;o({command:`cf custom-pages account-custom-pages update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/${m.identifier==null?`<identifier>`:encodeURIComponent(String(m.identifier))}`,pathParams:{"account-or-zone":String(n),identifier:String(m.identifier??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:m.body===void 0?u({state:d(m.state,`state`,`text`),url:d(m.url,`url`,`text`)}):l(m.body)});return}let c=await i(m),h=m.zone===void 0?`accounts`:`zones`,g=h===`zones`?await n({zone:m.zone},c,{quiet:m.quiet}):m.local?e:await r();if(h===`zones`?m.zoneId=g:m.accountId=g,m.body){let e=l(m.body);a(await s(`Updating`,async()=>c.customPages.accountCustomPages.update({...e,account_or_zone:h,account_or_zone_id:g,identifier:m.identifier})),{successLabel:`Updated`});return}m.state===void 0&&(m.state=await p(`state`,`The custom page state.`,[`default`,`customized`])),m.url===void 0&&(m.url=await f(`url`,`The URL associated with the custom page.`));let _=u({state:d(m.state,`state`,`text`),url:d(m.url,`url`,`text`)});a(await s(`Updating`,async()=>c.customPages.accountCustomPages.update({..._,account_or_zone:h,account_or_zone_id:g,identifier:m.identifier})),{successLabel:`Updated`})})},b={command:`account-custom-pages`,describe:`Manage account-level custom pages`,builder:e=>e.command(y).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.usage(`$0 custom-pages assets create custom asset
7
7
 
8
- Creates a custom asset for an account or zone.`).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).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:`asset`,describe:`Create a custom asset`,builder:x,handler:async p=>c({command:`custom-pages assets create custom asset`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-pages assets create custom asset`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/assets`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({description:d(p.description,`description`,`text`),name:d(p.name,`name`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customPages.assets.create.custom.asset({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p.description===void 0&&(p.description=await f(`description`,`A short description of the custom asset.`)),p.name===void 0&&(p.name=await f(`name`,`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`)),p.url===void 0&&(p.url=await f(`url`,`The URL where the asset content is fetched from.`));let g=u({description:d(p.description,`description`,`text`),name:d(p.name,`name`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Creating`,async()=>c.customPages.assets.create.custom.asset({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})},C={command:`custom`,describe:`Operations for assets.create.custom`,builder:e=>e.command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},w={command:`create`,describe:`Operations for assets.create`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 custom-pages assets delete custom asset <asset-name>
8
+ Creates a custom asset for an account or zone.`).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).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:`asset`,describe:`Create a custom asset`,builder:x,handler:async p=>c({command:`custom-pages assets create custom asset`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-pages assets create custom asset`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/assets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({description:d(p.description,`description`,`text`),name:d(p.name,`name`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Creating`,async()=>c.customPages.assets.create.custom.asset({...e,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`});return}p.description===void 0&&(p.description=await f(`description`,`A short description of the custom asset.`)),p.name===void 0&&(p.name=await f(`name`,`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`)),p.url===void 0&&(p.url=await f(`url`,`The URL where the asset content is fetched from.`));let g=u({description:d(p.description,`description`,`text`),name:d(p.name,`name`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Creating`,async()=>c.customPages.assets.create.custom.asset({...g,account_or_zone:m,account_or_zone_id:h})),{successLabel:`Created`})})},C={command:`custom`,describe:`Operations for assets.create.custom`,builder:e=>e.command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},w={command:`create`,describe:`Operations for assets.create`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function T(e){return e.usage(`$0 custom-pages assets delete custom asset <asset-name>
9
9
 
10
- Deletes a custom asset from an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,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:`asset <asset-name>`,describe:`Delete a custom asset`,builder:T,handler:async l=>c({command:`custom-pages assets delete custom asset`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets delete custom asset`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/assets/${l[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(l[`asset-name`]))}`,pathParams:{"account-or-zone":String(t),"asset-name":String(l[`asset-name`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();if(u===`zones`?l.zoneId=d:l.accountId=d,!await m({force:!!l.force})){process.stderr.write(`Aborted.
10
+ Deletes a custom asset from an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,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:`asset <asset-name>`,describe:`Delete a custom asset`,builder:T,handler:async l=>c({command:`custom-pages assets delete custom asset`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets delete custom asset`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/assets/${l[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(l[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(l[`asset-name`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();if(u===`zones`?l.zoneId=d:l.accountId=d,!await m({force:!!l.force})){process.stderr.write(`Aborted.
11
11
  `);return}a(await s(`Deleting`,async()=>c.customPages.assets.delete.custom.asset({account_or_zone:u,account_or_zone_id:d,asset_name:l[`asset-name`]})),{successLabel:`Deleted`})})},D={command:`custom`,describe:`Operations for assets.delete.custom`,builder:e=>e.command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},O={command:`delete`,describe:`Operations for assets.delete`,builder:e=>e.command(D).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function k(e){return e.usage(`$0 custom-pages assets get custom asset <asset-name>
12
12
 
13
- Returns a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`asset <asset-name>`,describe:`Get a custom asset`,builder:k,handler:async l=>c({command:`custom-pages assets get custom asset`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets get custom asset`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/assets/${l[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(l[`asset-name`]))}`,pathParams:{"account-or-zone":String(t),"asset-name":String(l[`asset-name`]??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.assets.get.custom.asset({account_or_zone:u,account_or_zone_id:d,asset_name:l[`asset-name`]})),{successLabel:`Loaded`})})},j={command:`custom`,describe:`Operations for assets.get.custom`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`get`,describe:`Operations for assets.get`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 custom-pages assets list custom assets
13
+ Returns a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`asset <asset-name>`,describe:`Get a custom asset`,builder:k,handler:async l=>c({command:`custom-pages assets get custom asset`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets get custom asset`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/assets/${l[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(l[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(l[`asset-name`]??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.assets.get.custom.asset({account_or_zone:u,account_or_zone_id:d,asset_name:l[`asset-name`]})),{successLabel:`Loaded`})})},j={command:`custom`,describe:`Operations for assets.get.custom`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},M={command:`get`,describe:`Operations for assets.get`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.usage(`$0 custom-pages assets list custom assets
14
14
 
15
- Lists custom assets for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom assets per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`assets`,describe:`List custom assets`,builder:N,handler:async l=>c({command:`custom-pages assets list custom assets`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets list custom assets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/assets`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await t({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await n();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customPages.assets.list.custom.assets({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},F={command:`custom`,describe:`Operations for assets.list.custom`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`list`,describe:`Operations for assets.list`,builder:e=>e.command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function L(e){return e.usage(`$0 custom-pages assets update custom asset <asset-name>
15
+ Lists custom assets for an account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of custom assets per page.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`assets`,describe:`List custom assets`,builder:N,handler:async l=>c({command:`custom-pages assets list custom assets`,classification:{safeFlags:[`dry-run`]}},l,async()=>{let c={page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-pages assets list custom assets`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/assets`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await n({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await r();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.customPages.assets.list.custom.assets({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},F={command:`custom`,describe:`Operations for assets.list.custom`,builder:e=>e.command(P).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},I={command:`list`,describe:`Operations for assets.list`,builder:e=>e.command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function L(e){return e.usage(`$0 custom-pages assets update custom asset <asset-name>
16
16
 
17
- Updates a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).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 R={command:`asset <asset-name>`,describe:`Update a custom asset`,builder:L,handler:async p=>c({command:`custom-pages assets update custom asset`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await r():void 0,t=p.zone===void 0?`accounts`:`zones`,n=p.zone??e??`<account-id>`;o({command:`cf custom-pages assets update custom asset`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/assets/${p[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(p[`asset-name`]))}`,pathParams:{"account-or-zone":String(t),"asset-name":String(p[`asset-name`]??``),"account-or-zone-id":String(n)},bodyKind:`json`,body:p.body===void 0?u({description:d(p.description,`description`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await t({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await n();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Updating`,async()=>c.customPages.assets.update.custom.asset({...e,account_or_zone:m,account_or_zone_id:h,asset_name:p[`asset-name`]})),{successLabel:`Updated`});return}p.description===void 0&&(p.description=await f(`description`,`A short description of the custom asset.`)),p.url===void 0&&(p.url=await f(`url`,`The URL where the asset content is fetched from.`));let g=u({description:d(p.description,`description`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Updating`,async()=>c.customPages.assets.update.custom.asset({...g,account_or_zone:m,account_or_zone_id:h,asset_name:p[`asset-name`]})),{successLabel:`Updated`})})},z={command:`custom`,describe:`Operations for assets.update.custom`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`update`,describe:`Operations for assets.update`,builder:e=>e.command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`assets`,describe:`Manage account- and zone-level custom assets`,builder:e=>e.command(w).command(O).command(M).command(I).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function H(e){return e.usage(`$0 custom-pages get <identifier>
17
+ Updates a custom asset for an account or zone.`).positional(`asset-name`,{type:`string`,description:`The unique name of the custom asset. Can only contain letters (A-Z, a-z), numbers (0-9), and underscores (_).`,demandOption:!0}).option(`description`,{type:`string`,description:`A short description of the custom asset.`}).option(`url`,{type:`string`,description:`The URL where the asset content is fetched from.`}).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 R={command:`asset <asset-name>`,describe:`Update a custom asset`,builder:L,handler:async p=>c({command:`custom-pages assets update custom asset`,classification:{safeFlags:[`dry-run`]}},p,async()=>{if(p.dryRun){let e=p.zone===void 0?await t():void 0,n=p.zone===void 0?`accounts`:`zones`,r=p.zone??e??`<account-id>`;o({command:`cf custom-pages assets update custom asset`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/assets/${p[`asset-name`]==null?`<asset-name>`:encodeURIComponent(String(p[`asset-name`]))}`,pathParams:{"account-or-zone":String(n),"asset-name":String(p[`asset-name`]??``),"account-or-zone-id":String(r)},bodyKind:`json`,body:p.body===void 0?u({description:d(p.description,`description`,`text`),url:d(p.url,`url`,`text`)}):l(p.body)});return}let c=await i(p),m=p.zone===void 0?`accounts`:`zones`,h=m===`zones`?await n({zone:p.zone},c,{quiet:p.quiet}):p.local?e:await r();if(m===`zones`?p.zoneId=h:p.accountId=h,p.body){let e=l(p.body);a(await s(`Updating`,async()=>c.customPages.assets.update.custom.asset({...e,account_or_zone:m,account_or_zone_id:h,asset_name:p[`asset-name`]})),{successLabel:`Updated`});return}p.description===void 0&&(p.description=await f(`description`,`A short description of the custom asset.`)),p.url===void 0&&(p.url=await f(`url`,`The URL where the asset content is fetched from.`));let g=u({description:d(p.description,`description`,`text`),url:d(p.url,`url`,`text`)});a(await s(`Updating`,async()=>c.customPages.assets.update.custom.asset({...g,account_or_zone:m,account_or_zone_id:h,asset_name:p[`asset-name`]})),{successLabel:`Updated`})})},z={command:`custom`,describe:`Operations for assets.update.custom`,builder:e=>e.command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},B={command:`update`,describe:`Operations for assets.update`,builder:e=>e.command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},V={command:`assets`,describe:`Manage account- and zone-level custom assets`,builder:e=>e.command(w).command(O).command(M).command(I).command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function H(e){return e.usage(`$0 custom-pages get <identifier>
18
18
 
19
- Returns the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <identifier>`,describe:`Get a custom page`,builder:H,handler:async l=>c({command:`custom-pages get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages/${l.identifier==null?`<identifier>`:encodeURIComponent(String(l.identifier))}`,pathParams:{"account-or-zone":String(t),identifier:String(l.identifier??``),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.get({account_or_zone:u,account_or_zone_id:d,identifier:l.identifier})),{successLabel:`Loaded`})})};function W(e){return e.usage(`$0 custom-pages list
19
+ Returns the configuration for a custom page type.`).positional(`identifier`,{type:`string`,description:`Custom page type.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const U={command:`get <identifier>`,describe:`Get a custom page`,builder:H,handler:async l=>c({command:`custom-pages get`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-pages get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages/${l.identifier==null?`<identifier>`:encodeURIComponent(String(l.identifier))}`,pathParams:{"account-or-zone":String(n),identifier:String(l.identifier??``),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.get({account_or_zone:u,account_or_zone_id:d,identifier:l.identifier})),{successLabel:`Loaded`})})};function W(e){return e.usage(`$0 custom-pages list
20
20
 
21
- Lists all custom page configurations for an account or zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`List custom pages`,builder:W,handler:async l=>c({command:`custom-pages list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await r():void 0,t=l.zone===void 0?`accounts`:`zones`,n=l.zone??e??`<account-id>`;o({command:`cf custom-pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${n}/custom_pages`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(n)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await t({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await n();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})},K={command:`custom-pages`,describe:`Manage custom error and challenge pages and their assets for accounts and zones`,builder:e=>e.command(U).command(G).command(b).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{K as default};
21
+ Lists all custom page configurations for an account or zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`list`,describe:`List custom pages`,builder:W,handler:async l=>c({command:`custom-pages list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await t():void 0,n=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf custom-pages list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${r}/custom_pages`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await n({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await r();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.customPages.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})},K={command:`custom-pages`,describe:`Manage custom error and challenge pages and their assets for accounts and zones`,builder:e=>e.command(U).command(G).command(b).command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{K as default};