cf 1.0.0-beta.17 → 1.0.0-beta.18

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 (226) hide show
  1. package/dist/_meta/commands.json +6117 -4540
  2. package/dist/_meta/schemas.json +5016 -3257
  3. package/dist/{abuse-reports-C4LxDvUM.mjs → abuse-reports-Ce-g5uZP.mjs} +6 -6
  4. package/dist/{access-DnWW2AAT.mjs → access-BtsMwesh.mjs} +1 -1
  5. package/dist/{accounts-8UcHNm3S.mjs → accounts-X5QVzEUW.mjs} +27 -21
  6. package/dist/{acm-qRM3iy4Z.mjs → acm-C_NepMi6.mjs} +1 -1
  7. package/dist/{addressing-CAb8z2Dq.mjs → addressing-BkQY1hoA.mjs} +18 -18
  8. package/dist/{agent-memory-oIUP4ZV5.mjs → agent-memory-1OPgC3lK.mjs} +6 -6
  9. package/dist/{ai-DnhytGdc.mjs → ai-Bb0_Zknm.mjs} +1 -1
  10. package/dist/{ai-audit-B7_5EOcN.mjs → ai-audit-DuEjVdML.mjs} +1 -1
  11. package/dist/{ai-gateway-b3FFu6UV.mjs → ai-gateway-Cm2vWMSI.mjs} +42 -42
  12. package/dist/ai-search-DDRpxyOM.mjs +79 -0
  13. package/dist/{ai-security-KUs94UW-.mjs → ai-security-A2STvE1b.mjs} +5 -5
  14. package/dist/{alerting-CCmyEPzN.mjs → alerting-CIwSk-Ks.mjs} +1 -1
  15. package/dist/{analytics-BAvBj6qx.mjs → analytics-H--uM3DA.mjs} +7 -7
  16. package/dist/{analytics-engine-DAJp89gM.mjs → analytics-engine-Alu7cllT.mjs} +1 -1
  17. package/dist/{api-security-BItVQymb.mjs → api-security-D-pcnhUL.mjs} +26 -26
  18. package/dist/{argo-DsJCvfml.mjs → argo-Lvmcx3am.mjs} +1 -1
  19. package/dist/{artifacts-DzHXeah6.mjs → artifacts-xT5S-mVa.mjs} +1 -1
  20. package/dist/{audit-logs-D9XxsVZm.mjs → audit-logs-DEoRBLkU.mjs} +1 -1
  21. package/dist/{auth-C530fHKQ.mjs → auth-B73lQS2h.mjs} +1 -1
  22. package/dist/auth-DMzEmOhG.mjs +2 -0
  23. package/dist/{auth-MNz2D-PD.mjs → auth-Db1KT0vm.mjs} +1 -1
  24. package/dist/{auth-token-Cw4c0y89.mjs → auth-token-D9XIPlwf.mjs} +1 -1
  25. package/dist/{basin-catalog-DcMiZV9J.mjs → basin-catalog-DFHt3cWi.mjs} +1 -1
  26. package/dist/{billing-COgAWTYh.mjs → billing-Bm2JNSGa.mjs} +6 -6
  27. package/dist/body-parser-DnBfDdx3.mjs +2 -0
  28. package/dist/{bot-management-Dx3lh9Fi.mjs → bot-management-CSr38g-O.mjs} +4 -4
  29. package/dist/{botnet-feed-C8496Nhl.mjs → botnet-feed-ebeWWSJj.mjs} +1 -1
  30. package/dist/{brand-protection-B0p8Sv6s.mjs → brand-protection-BCn9Mv-d.mjs} +5 -5
  31. package/dist/browser-run-BcWxzhAn.mjs +42 -0
  32. package/dist/{builds-DmEFTQTa.mjs → builds-BMwDzi7G.mjs} +39 -39
  33. package/dist/{cache-BUh85NRr.mjs → cache-_VaTLC5T.mjs} +1 -1
  34. package/dist/{cli-DJhpXf38.mjs → cli-P3q5DG3W.mjs} +1 -1
  35. package/dist/{client-side-security-km3-4L_4.mjs → client-side-security-CjSXrpa9.mjs} +1 -1
  36. package/dist/{cloud-connector-BoKFprDD.mjs → cloud-connector-BPJBeP06.mjs} +1 -1
  37. package/dist/{cloudforce-one-DN5N3C3w.mjs → cloudforce-one-DXX31GMi.mjs} +189 -189
  38. package/dist/{command-B694oLDo.mjs → command-BXiA79DP.mjs} +1 -1
  39. package/dist/{command-rx0Kb5pn.mjs → command-BbsPxJBT.mjs} +1 -1
  40. package/dist/{command-RC9WM5jq.mjs → command-Bkc04OyY.mjs} +1 -1
  41. package/dist/{command-Bmee6uwe.mjs → command-BtTc28ql.mjs} +1 -1
  42. package/dist/{command-CAs3SxlI.mjs → command-CBZhxmKD.mjs} +1 -1
  43. package/dist/{command-CCq-Z2Ua.mjs → command-CL7LLXM7.mjs} +1 -1
  44. package/dist/{command-DerHAjQL.mjs → command-CYyfigfC.mjs} +1 -1
  45. package/dist/{command-D1JR8Fb7.mjs → command-CxWLFv5Y.mjs} +1 -1
  46. package/dist/{command-CiApsRql.mjs → command-DDcBC4px.mjs} +1 -1
  47. package/dist/{command-CbQFbfps.mjs → command-NoxvOARP.mjs} +1 -1
  48. package/dist/{completions-11latun5.mjs → completions-CrDmwKnK.mjs} +1 -1
  49. package/dist/{connector-interrupts-wvQcZsO1.mjs → connector-interrupts-V4HGULCM.mjs} +1 -1
  50. package/dist/{connector-telemetry-events-C0GGCIQk.mjs → connector-telemetry-events-D9mTcfbJ.mjs} +1 -1
  51. package/dist/{connector-telemetry-snapshots-ZXzsFgea.mjs → connector-telemetry-snapshots-COrPVKol.mjs} +1 -1
  52. package/dist/{connectors-DXIUG4Zi.mjs → connectors-DvVlxGDx.mjs} +1 -1
  53. package/dist/{containers-DCH6MFjY.mjs → containers-Bt2zFsFd.mjs} +8 -8
  54. package/dist/{containers-WMWKhLkp.mjs → containers-BtcOgwm5.mjs} +2 -2
  55. package/dist/{content-scan-CRDmR7rD.mjs → content-scan-DldLmTjy.mjs} +1 -1
  56. package/dist/{context-q-6bMSL-.mjs → context-C_a8oSY9.mjs} +1 -1
  57. package/dist/cps-REo1OWP1.mjs +6 -0
  58. package/dist/csam-scanner-CIbbdoJK.mjs +10 -0
  59. package/dist/{custom-csrs-BV017SqE.mjs → custom-csrs-iGNc3rSZ.mjs} +1 -1
  60. package/dist/{custom-hostnames-DI_dFaof.mjs → custom-hostnames-BNxYbTyu.mjs} +15 -15
  61. package/dist/{custom-nameservers-BLoE8VGG.mjs → custom-nameservers-BMJoTSlQ.mjs} +1 -1
  62. package/dist/custom-pages-Qdemt1Fm.mjs +21 -0
  63. package/dist/{d1-Dbs8HItA.mjs → d1-DvCiQibO.mjs} +8 -8
  64. package/dist/{deploy-5utIiOMN.mjs → deploy-K664XPOb.mjs} +1 -1
  65. package/dist/{deploy-context-C0iVbWRG.mjs → deploy-context-ClNVJYlR.mjs} +13 -13
  66. package/dist/{diagnostics-C9B07eJY.mjs → diagnostics-Cw0mtcep.mjs} +2 -2
  67. package/dist/{dls-lbM3i4x-.mjs → dls-DoqfqutH.mjs} +1 -1
  68. package/dist/{dns-QTMPGYMa.mjs → dns-DC6WcO3m.mjs} +21 -21
  69. package/dist/{dns-firewall-Bfv0S44I.mjs → dns-firewall-DpQH9BCE.mjs} +9 -9
  70. package/dist/{docs-bV3hPwQL.mjs → docs-CqNRBHab.mjs} +1 -1
  71. package/dist/{durable-objects-0JvGTV27.mjs → durable-objects-CJDDy3CC.mjs} +1 -1
  72. package/dist/{email-auth-PzRqG0ex.mjs → email-auth--NHg1TjG.mjs} +1 -1
  73. package/dist/{email-routing-BgHL0Rbz.mjs → email-routing-COjENK55.mjs} +13 -13
  74. package/dist/{email-security-CSTKIecn.mjs → email-security-rdjH95T2.mjs} +38 -38
  75. package/dist/{email-sending-BSwuAir8.mjs → email-sending-26VJhR6Q.mjs} +18 -18
  76. package/dist/{field-extractors-B_lFnwaL.mjs → field-extractors-DBOvGOwz.mjs} +2 -2
  77. package/dist/{firewall-BsZxVitA.mjs → firewall-D8K93ffF.mjs} +20 -20
  78. package/dist/{flagship-qBohOZaM.mjs → flagship-CHdmCmvQ.mjs} +11 -11
  79. package/dist/{fraud-vGNdrSm-.mjs → fraud-CY4TV5Vc.mjs} +1 -1
  80. package/dist/{google-tag-gateway-BHdOg4VW.mjs → google-tag-gateway-DzSt4wlz.mjs} +1 -1
  81. package/dist/healthchecks-B52Mf3uL.mjs +22 -0
  82. package/dist/{hostnames-CLlaMqHu.mjs → hostnames-BMITIM8P.mjs} +1 -1
  83. package/dist/{hyperdrive-CXTqaIqk.mjs → hyperdrive-CHsW0r6Z.mjs} +1 -1
  84. package/dist/{iam-Dl_n_Lqq.mjs → iam-o1n9eUXf.mjs} +9 -9
  85. package/dist/{images-vMtXk2Rf.mjs → images-CJHAGxX6.mjs} +37 -37
  86. package/dist/index.mjs +1 -1
  87. package/dist/{init-_7djeBVw.mjs → init-CqQDL6i3.mjs} +1 -1
  88. package/dist/{intel-Bq4GGXv-.mjs → intel-B3S1gxUg.mjs} +1 -1
  89. package/dist/{ips-BcvZS46g.mjs → ips-q_UJMiy8.mjs} +1 -1
  90. package/dist/{k2-DL4hrVTj.mjs → k2-BNqVZnDN.mjs} +2 -2
  91. package/dist/{kv-BLo9wMgb.mjs → kv-B0nXSOcW.mjs} +1 -1
  92. package/dist/{lazy-command-CRcT6Dx-.mjs → lazy-command-4ccdBqrc.mjs} +1 -1
  93. package/dist/{leaked-credential-checks-Dx4RXMyN.mjs → leaked-credential-checks-BXwIjlTs.mjs} +1 -1
  94. package/dist/load-balancers-DJtMztJ0.mjs +76 -0
  95. package/dist/{login-Du_W6b9o.mjs → login-D-1FiBNv.mjs} +1 -1
  96. package/dist/{login-DT6Q1UJw.mjs → login-chQP8825.mjs} +1 -1
  97. package/dist/{logo-matches-C-1J0Oc3.mjs → logo-matches-qVYq8tWL.mjs} +1 -1
  98. package/dist/{logos-BuhvSu_H.mjs → logos-tnIahhcu.mjs} +1 -1
  99. package/dist/{logpush-DgZtF9vG.mjs → logpush-D4s3pJRw.mjs} +24 -24
  100. package/dist/{logs-CaKOk-1v.mjs → logs-cw7UL5V2.mjs} +3 -3
  101. package/dist/{magic-cloud-networking-CKxXYT8r.mjs → magic-cloud-networking-CLEHztNY.mjs} +1 -1
  102. package/dist/{magic-network-monitoring-BykFGQCz.mjs → magic-network-monitoring-DRwygeVq.mjs} +9 -9
  103. package/dist/{magic-transit-DYULsrUP.mjs → magic-transit-BFopRdPs.mjs} +170 -170
  104. package/dist/{managed-defense-DIb_uN25.mjs → managed-defense-D5kpmq0T.mjs} +9 -9
  105. package/dist/{managed-transforms-an3wQ0DW.mjs → managed-transforms-CT4jjnzJ.mjs} +2 -2
  106. package/dist/{matches-DkLSWb5X.mjs → matches-ClJ_24EY.mjs} +1 -1
  107. package/dist/{mcp-BcV1XqE8.mjs → mcp-50os3IRG.mjs} +10 -10
  108. package/dist/{mesh-CSSlZ-0F.mjs → mesh-jxtQP8sS.mjs} +2 -2
  109. package/dist/{monetization-B-nJ0SyI.mjs → monetization-D6cCDi-h.mjs} +4 -4
  110. package/dist/{network-ZzxQ_Dcz.mjs → network-dnWHB2uY.mjs} +27 -25
  111. package/dist/{network-interconnects-CI9NXQpe.mjs → network-interconnects-Cf8qSVdt.mjs} +1 -1
  112. package/dist/{o11y-LG6Y9LUZ.mjs → o11y-oMSg1pG4.mjs} +49 -49
  113. package/dist/{oauth-CP82E1_0.mjs → oauth-BfBdHhPS.mjs} +1 -1
  114. package/dist/{oauth-Bx693Af5.mjs → oauth-DDOiiH7h.mjs} +1 -1
  115. package/dist/{oauth-clients-BA30rTEl.mjs → oauth-clients-XDmoe-b4.mjs} +1 -1
  116. package/dist/{oauth-scopes-hseWES1v.mjs → oauth-scopes-D9VYGuTs.mjs} +1 -1
  117. package/dist/organization-94lHeeOs.mjs +75 -0
  118. package/dist/{organizations-CcgZPmFl.mjs → organizations-BJf3UTFi.mjs} +1 -1
  119. package/dist/{origin-post-quantum-encryption-BhdlaolV.mjs → origin-post-quantum-encryption-DMytVSUZ.mjs} +1 -1
  120. package/dist/{page-rules-DFfqfllI.mjs → page-rules-BUI-50oz.mjs} +4 -4
  121. package/dist/pages-CcdpCzHs.mjs +54 -0
  122. package/dist/pay-per-crawl-B1uHZn9j.mjs +38 -0
  123. package/dist/{pay-per-use-C_HxhpM4.mjs → pay-per-use-t066I5wm.mjs} +7 -7
  124. package/dist/{pipelines-DUMIVwof.mjs → pipelines-Co6S044l.mjs} +8 -8
  125. package/dist/precursor-BftyvS86.mjs +4 -0
  126. package/dist/previews-BLhnhElx.mjs +7 -0
  127. package/dist/{progress-DaQ4MzBI.mjs → progress-Q5w9PNTT.mjs} +1 -1
  128. package/dist/{prompt-KWYZvJWM.mjs → prompt-C0hKSr-R.mjs} +1 -1
  129. package/dist/{queries-DoyhspQf.mjs → queries-4MubO6Sz.mjs} +3 -3
  130. package/dist/{queues-BPxTU2rU.mjs → queues-CteS5M92.mjs} +17 -17
  131. package/dist/{r2-CQt4S7o7.mjs → r2-2QpT_Gso.mjs} +24 -24
  132. package/dist/{radar-CALpR1vq.mjs → radar-ODKaK4FJ.mjs} +1 -1
  133. package/dist/{raw-fetch-Cy09TjHc.mjs → raw-fetch-CEOuoKl9.mjs} +1 -1
  134. package/dist/{realtime-BiHKBoI4.mjs → realtime-DkfU8uEX.mjs} +84 -84
  135. package/dist/registrar-DM6JTVPS.mjs +43 -0
  136. package/dist/{registrar-sandbox-BttFwYqE.mjs → registrar-sandbox-BPNGf65G.mjs} +11 -9
  137. package/dist/{reporting-8aRJD5HX.mjs → reporting-5yFNXbJg.mjs} +1 -1
  138. package/dist/{request-headers-CqfJOkpO.mjs → request-headers-DXvswze2.mjs} +1 -1
  139. package/dist/request-tracers-BarLZY95.mjs +4 -0
  140. package/dist/{resource-sharing-uVVpMW0w.mjs → resource-sharing-BVEwBPs8.mjs} +19 -19
  141. package/dist/{rules-CFOuN3t2.mjs → rules-_C31X4Jz.mjs} +6 -6
  142. package/dist/{rulesets-DkhV2Hny.mjs → rulesets-8RwxoFhG.mjs} +6 -6
  143. package/dist/{rum-BnMW0Tlb.mjs → rum-CAUcpXpM.mjs} +6 -6
  144. package/dist/{run-Clc3P2u7.mjs → run-DtFLvOHB.mjs} +1 -1
  145. package/dist/run-LcOb9rhI.mjs +2 -0
  146. package/dist/{schema-flags-b096XMpt.mjs → schema-flags-DibfxEF6.mjs} +1 -1
  147. package/dist/{scim-tvZm6A-r.mjs → scim-DX5XrQ4w.mjs} +1 -1
  148. package/dist/{secrets-store-DuNxSh1_.mjs → secrets-store-DSqqrr25.mjs} +1 -1
  149. package/dist/{security-insights-C17c9ZYZ.mjs → security-insights-FSktO04S.mjs} +1 -1
  150. package/dist/{security-txt-D4pRk7-w.mjs → security-txt-D2g3lQdg.mjs} +1 -1
  151. package/dist/{shared-zePemxHi.mjs → shared-eefMO8R4.mjs} +1 -1
  152. package/dist/smart-shield-IVb2sR0C.mjs +24 -0
  153. package/dist/{snippets-BIcZ6vSW.mjs → snippets-cWwWficN.mjs} +2 -2
  154. package/dist/{spectrum-DjDX0geK.mjs → spectrum-DYiIBYRB.mjs} +1 -1
  155. package/dist/{speed-DiPoFJMm.mjs → speed-C7uiW2Wf.mjs} +1 -1
  156. package/dist/{sql-DLjCt_R3.mjs → sql-TGV8qQMj.mjs} +1 -1
  157. package/dist/{src-CutrsNl4.mjs → src-BUH-P_zd.mjs} +5 -5
  158. package/dist/ssl-xQP_HbWN.mjs +139 -0
  159. package/dist/{stream-uhn_Zsni.mjs → stream-CfWgj8Cr.mjs} +55 -55
  160. package/dist/{submit-C3suIDBX.mjs → submit-DxGr1T40.mjs} +1 -1
  161. package/dist/tags-LEJ2VYhQ.mjs +23 -0
  162. package/dist/{telemetry-DYjsavEr.mjs → telemetry-BHne10Yy.mjs} +1 -1
  163. package/dist/telemetry-BavSU4ku.mjs +2 -0
  164. package/dist/{tenant-DK88yQM4.mjs → tenant-7d5vwc6K.mjs} +1 -1
  165. package/dist/{tenant-custom-nameservers-BZ1JD1Yf.mjs → tenant-custom-nameservers-BkxlPr5O.mjs} +1 -1
  166. package/dist/{tunnels-DjbomhCa.mjs → tunnels-DlGODvwT.mjs} +4 -4
  167. package/dist/{turnstile-DXrbEy2A.mjs → turnstile-DhLkdhij.mjs} +5 -5
  168. package/dist/update-check-nLfkSfdz.mjs +2 -0
  169. package/dist/update-check-worker.mjs +1 -1
  170. package/dist/{update-check-BhhtSXVZ.mjs → update-check-wvjOsnGK.mjs} +1 -1
  171. package/dist/{url-info-a0mY4UsC.mjs → url-info-CeoV5dBc.mjs} +1 -1
  172. package/dist/{url-normalization-DiwpDIhc.mjs → url-normalization-9NoaoRNh.mjs} +1 -1
  173. package/dist/{url-scanner-D0egjBe5.mjs → url-scanner-w_-Sumz-.mjs} +8 -8
  174. package/dist/{user-DDH9lxf5.mjs → user-D33B3alX.mjs} +59 -59
  175. package/dist/{vectorize-DaT3amFV.mjs → vectorize-Wp9De13y.mjs} +17 -17
  176. package/dist/version-B2RUUqGT.mjs +2 -0
  177. package/dist/{waiting-rooms-BGMpu9gS.mjs → waiting-rooms-BE8FloRd.mjs} +13 -13
  178. package/dist/{web-assets-NqNglLSI.mjs → web-assets-ew0iaP7c.mjs} +35 -35
  179. package/dist/{web3-UnCUuIfB.mjs → web3-BUyXBaqq.mjs} +6 -6
  180. package/dist/{workers-builds-Cy6fdtm5.mjs → workers-builds-DzU9NGno.mjs} +7 -7
  181. package/dist/{workers-for-platforms-JscCHivQ.mjs → workers-for-platforms-B4xzFNxJ.mjs} +25 -22
  182. package/dist/{workers-DfA9ugmb.mjs → workers-pP5tsDbD.mjs} +25 -22
  183. package/dist/{workers-vpc-FDZQBqOu.mjs → workers-vpc-Bre_t9Al.mjs} +1 -1
  184. package/dist/{workflows-Dq-k81hU.mjs → workflows-DXYGKtqq.mjs} +1 -1
  185. package/dist/zaraz-DoH4QD0u.mjs +22 -0
  186. package/dist/{zero-trust-CZ685QhO.mjs → zero-trust-DKt20rzE.mjs} +461 -458
  187. package/dist/{zone-DcZIUTWt.mjs → zone-BXM3p0JR.mjs} +1 -1
  188. package/dist/{zones-BVdvYUCv.mjs → zones-CJdtqEBx.mjs} +21 -21
  189. package/package.json +9 -9
  190. package/dist/account-tags-zvHRQZxb.mjs +0 -15
  191. package/dist/ai-search-CtfW5fzl.mjs +0 -79
  192. package/dist/auth-Ccm5viK_.mjs +0 -2
  193. package/dist/body-parser-DkHKPkJ7.mjs +0 -2
  194. package/dist/browser-run-ChXohmNG.mjs +0 -42
  195. package/dist/certificate-authorities-BTLdA7EQ.mjs +0 -6
  196. package/dist/client-certificates-B3UxH_Au.mjs +0 -13
  197. package/dist/cps-Due0P5IW.mjs +0 -6
  198. package/dist/csam-scanner-DvLrPw45.mjs +0 -10
  199. package/dist/ct-alerting-BtEGkRJi.mjs +0 -5
  200. package/dist/custom-certificates-CMLXTTEc.mjs +0 -17
  201. package/dist/custom-pages-ubava9Qm.mjs +0 -21
  202. package/dist/dcv-delegation-sGGt6UU_.mjs +0 -4
  203. package/dist/healthchecks-DAYYLZ6u.mjs +0 -22
  204. package/dist/keyless-certificates-0pzjkZb6.mjs +0 -13
  205. package/dist/keys-BSV5IXdU.mjs +0 -4
  206. package/dist/load-balancers-CCCWoQXv.mjs +0 -76
  207. package/dist/mtls-certificates-ukwDz6Lc.mjs +0 -13
  208. package/dist/organization-DMr_z6n4.mjs +0 -71
  209. package/dist/origin-ca-certificates-BZxUbB5N.mjs +0 -11
  210. package/dist/origin-tls-client-auth-DzbZvtmi.mjs +0 -30
  211. package/dist/pages-BkcL5rC4.mjs +0 -54
  212. package/dist/pay-per-crawl-Dulm7Xy5.mjs +0 -38
  213. package/dist/precursor-DsGbA_YJ.mjs +0 -4
  214. package/dist/previews-Cma3-M7K.mjs +0 -7
  215. package/dist/registrar-gERQ3b85.mjs +0 -43
  216. package/dist/request-tracers-DcnwQg3K.mjs +0 -4
  217. package/dist/resource-tagging-SlsUtLsq.mjs +0 -4
  218. package/dist/run-CHNyLZLG.mjs +0 -2
  219. package/dist/smart-shield-2egm1Vaw.mjs +0 -24
  220. package/dist/ssl-vNzK0c9S.mjs +0 -45
  221. package/dist/tags-Dy2jG-Dt.mjs +0 -4
  222. package/dist/telemetry-Bdv5LZZs.mjs +0 -2
  223. package/dist/update-check-Dld7rbLd.mjs +0 -2
  224. package/dist/values-Bfr5-bL6.mjs +0 -4
  225. package/dist/version-CAuKDZAG.mjs +0 -2
  226. package/dist/zaraz-Dpr1pLDx.mjs +0 -22
@@ -0,0 +1,139 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-Db1KT0vm.mjs";import{a as r,i,t as a}from"./context-C_a8oSY9.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-Q5w9PNTT.mjs";import{t as l}from"./run-DtFLvOHB.mjs";import"./telemetry-BavSU4ku.mjs";import{i as u,n as d,t as f}from"./body-parser-DnBfDdx3.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-C0hKSr-R.mjs";var _={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/analyze`,body:`json`};function v(e){return e.usage(`$0 ssl analyze create
3
+
4
+ Returns the set of hostnames, the signature algorithm, and the expiration date of the certificate.`).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`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or certificate and the intermediate(s).`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ee={command:`create`,describe:`Analyze Certificate`,builder:v,handler:async e=>l({command:`ssl analyze create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl analyze create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/analyze`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(_,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`)}),l=await c(`Creating`,async()=>t.send(_,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})},te={command:`analyze`,describe:`Operations for analyze`,builder:e=>e.command(ee).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`,body:`json`};function b(e){return e.usage('$0 ssl auto-origin-tls-kex edit\n\nEnable or disable Auto-Origin TLS KEX selection for the zone by sending `{"enabled": true}` or `{"enabled": false}`. When enabled, Cloudflare runs a periodic scan of the zone\'s origins to determine the preferred key-exchange algorithm and writes that preference to the edge so it is sent first in the TLS ClientHello to the origin.').option(`enabled`,{type:`boolean`,description:`Controls enablement of Auto-Origin TLS KEX selection for the zone.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Auto-Origin TLS KEX selection.`})}const ne={command:`edit`,describe:`Patch Auto-Origin TLS KEX enrollment status for the given zone`,builder:b,handler:async e=>l({command:`ssl auto-origin-tls-kex edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl auto-origin-tls-kex edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(y,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let a=f({enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(y,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var re={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/auto_origin_tls_kex`};function ie(e){return e.usage(`$0 ssl auto-origin-tls-kex get
5
+
6
+ When enabled, Cloudflare automatically selects the preferred TLS key-exchange algorithm to use when establishing the TLS connection to the zone's origin, picking from the algorithms permitted by the zone's \`origin_tls_compliance_modes\` setting. When disabled, the default key-exchange ordering is used.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ae={command:`get`,describe:`Get Auto-Origin TLS KEX enrollment status for the given zone`,builder:ie,handler:async e=>l({command:`ssl auto-origin-tls-kex get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl auto-origin-tls-kex get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/auto_origin_tls_kex`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(re,{zone_id:r}));o(a,{successLabel:`Loaded`})})},oe={command:`auto-origin-tls-kex`,describe:`Operations for auto-origin-tls-kex`,builder:e=>e.command(ne).command(ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var se={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/ssl_automatic_mode`};function ce(e){return e.usage(`$0 ssl automatic-upgrader get
7
+
8
+ If the system is enabled, the response will include next_scheduled_scan, representing the next time this zone will be scanned and the zone's ssl/tls encryption mode is potentially upgraded by the system. If the system is disabled, next_scheduled_scan will not be present in the response body.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`get`,describe:`Get Automatic SSL/TLS enrollment status for the given zone`,builder:ce,handler:async e=>l({command:`ssl automatic-upgrader get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl automatic-upgrader get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(se,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var x={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/settings/ssl_automatic_mode`,body:`json`};function ue(e){return e.usage(`$0 ssl automatic-upgrader patch
9
+
10
+ The automatic system is enabled when this endpoint is hit with value in the request body is set to "auto", and disabled when the request body value is set to "custom".`).option(`value`,{type:`string`,description:`Controls enablement of Automatic SSL/TLS.`,choices:[`auto`,`custom`]}).coerce(`value`,e=>p(e,`value`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Update enablement of Automatic SSL/TLS.`})}const de={command:`patch`,describe:`Patch Automatic SSL/TLS Enrollment status for given zone`,builder:ue,handler:async e=>l({command:`ssl automatic-upgrader patch`,classification:{safeFlags:[`value`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl automatic-upgrader patch`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/ssl_automatic_mode`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({value:e.value}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(x,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}e.value===void 0&&(e.value=await h(`value`,`Controls enablement of Automatic SSL/TLS.`,[`auto`,`custom`]));let a=f({value:e.value}),l=await c(`Updating`,async()=>t.send(x,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},fe={command:`automatic-upgrader`,describe:`SSL automatic mode enrollment — get or update automatic SSL/TLS upgrader settings`,builder:e=>e.command(le).command(de).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var pe={method:`GET`,path:t=>e`/zones/${t.zone_id}/certificate_authorities/hostname_associations`,query:[`mtls_certificate_id`]};function me(e){return e.usage(`$0 ssl certificate-authorities hostname-associations get
11
+
12
+ List Hostname Associations.`).option(`mtls-certificate-id`,{type:`string`,description:`The UUID to match against for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the results will be the hostnames associated to your active Cloudflare Managed CA.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const he={command:`get`,describe:`List Hostname Associations`,builder:me,handler:async e=>l({command:`ssl certificate-authorities hostname-associations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={mtls_certificate_id:e[`mtls-certificate-id`]};if(e.dryRun){s({command:`cf ssl certificate-authorities hostname-associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/certificate_authorities/hostname_associations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(pe,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var S={method:`PUT`,path:t=>e`/zones/${t.zone_id}/certificate_authorities/hostname_associations`,body:`json`};function ge(e){return e.usage(`$0 ssl certificate-authorities hostname-associations update
13
+
14
+ Replace Hostname Associations.`).option(`hostnames`,{type:`string`,array:!0,description:`The hostnames field`}).option(`mtls-certificate-id`,{type:`string`,description:`The UUID for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the hostnames will be associated to your active Cloudflare Managed CA.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const _e={command:`update`,describe:`Replace Hostname Associations`,builder:ge,handler:async e=>l({command:`ssl certificate-authorities hostname-associations update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-authorities hostname-associations update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/certificate_authorities/hostname_associations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({hostnames:e.hostnames,mtls_certificate_id:p(e[`mtls-certificate-id`],`mtls-certificate-id`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(S,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({hostnames:e.hostnames,mtls_certificate_id:p(e[`mtls-certificate-id`],`mtls-certificate-id`,`text`)}),l=await c(`Updating`,async()=>t.send(S,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},C={command:`hostname-associations`,describe:`Operations for certificate-authorities.hostname-associations`,builder:e=>e.command(he).command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},w={command:`certificate-authorities`,describe:`Operations for certificate-authorities`,builder:e=>e.command(C).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var T={method:`POST`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/order`,body:`json`,constants:{type:`advanced`}};function E(e){return e.usage(`$0 ssl certificate-packs create
15
+
16
+ For a given zone, order an advanced certificate pack.`).option(`certificate-authority`,{type:`string`,description:`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,choices:[`google`,`lets_encrypt`,`ssl_com`]}).coerce(`certificate-authority`,e=>p(e,`certificate-authority`,`text`)).option(`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(`hosts`,{type:`string`,array:!0,description:`Comma separated list of valid host names for the certificate packs. Must contain the zone apex, may not contain more than 50 hosts, and may not be empty.`}).option(`type`,{type:`string`,description:`Type of certificate pack.`,choices:[`advanced`]}).coerce(`type`,e=>p(e,`type`,`text`)).option(`validation-method`,{type:`string`,description:`Validation Method selected for the order.`,choices:[`txt`,`http`,`email`]}).coerce(`validation-method`,e=>p(e,`validation-method`,`text`)).option(`validity-days`,{type:`number`,description:`Validity Days selected for the order.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`create`,describe:`Order Advanced Certificate Manager Certificate Pack`,builder:E,handler:async e=>l({command:`ssl certificate-packs create`,classification:{safeFlags:[`certificate-authority`,`cloudflare-branding`,`type`,`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/order`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(T,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e[`certificate-authority`]===void 0&&(e[`certificate-authority`]=await h(`certificate-authority`,`Certificate Authority selected for the order. For information on any certificate authority specific details or restrictions [see this page for more details](https://developers.cloudflare.com/ssl/reference/certificate-authorities).`,[`google`,`lets_encrypt`,`ssl_com`])),e.hosts===void 0)throw Error(`--hosts is required (or pass --body with this field set).`);if(e.type===void 0&&(e.type=await h(`type`,`Type of certificate pack.`,[`advanced`])),e[`validation-method`]===void 0&&(e[`validation-method`]=await h(`validation-method`,`Validation Method selected for the order.`,[`txt`,`http`,`email`])),e[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let a=f({certificate_authority:e[`certificate-authority`],cloudflare_branding:e[`cloudflare-branding`],hosts:e.hosts,type:e.type,validation_method:e[`validation-method`],validity_days:e[`validity-days`]}),l=await c(`Creating`,async()=>t.send(T,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var O={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function k(e){return e.usage(`$0 ssl certificate-packs delete <certificate-pack-id>
17
+
18
+ For a given zone, delete an advanced certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,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 A={command:`delete <certificate-pack-id>`,describe:`Delete Advanced Certificate Manager Certificate Pack`,builder:k,handler:async e=>l({command:`ssl certificate-packs delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
19
+ `);return}let a=await c(`Deleting`,async()=>t.send(O,{zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(a,{successLabel:`Deleted`})})};var j={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`,body:`json`};function M(e){return e.usage(`$0 ssl certificate-packs edit <certificate-pack-id>
20
+
21
+ For a given zone, restart validation or add cloudflare branding for an advanced certificate pack. The former is only a validation operation for a Certificate Pack in a validation_timed_out status.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`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(`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 N={command:`edit <certificate-pack-id>`,describe:`Restart Validation or Update Advanced Certificate Manager Certificate Pack`,builder:M,handler:async e=>l({command:`ssl certificate-packs edit`,classification:{safeFlags:[`cloudflare-branding`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({cloudflare_branding:e[`cloudflare-branding`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(j,{body:n,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(i,{successLabel:`Updated`});return}let a=f({cloudflare_branding:e[`cloudflare-branding`]}),l=await c(`Updating`,async()=>t.send(j,{body:a,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(l,{successLabel:`Updated`})})};var P={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/${t.certificate_pack_id}`};function F(e){return e.usage(`$0 ssl certificate-packs get <certificate-pack-id>
22
+
23
+ For a given zone, get a certificate pack.`).positional(`certificate-pack-id`,{type:`string`,description:`The unique identifier for a certificate_pack.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`get <certificate-pack-id>`,describe:`Get Certificate Pack`,builder:F,handler:async e=>l({command:`ssl certificate-packs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(P,{zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(a,{successLabel:`Loaded`})})};var ve={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs`,query:[`page`,`per_page`,`status`,`deploy`]};function ye(e){return e.usage(`$0 ssl certificate-packs list
24
+
25
+ For a given zone, list all active certificate packs.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of certificate packs per page.`}).option(`status`,{type:`string`,description:`Include Certificate Packs of all statuses, not just active ones.`,choices:[`all`]}).option(`deploy`,{type:`string`,description:`Specify the deployment environment for the certificate packs.`,choices:[`staging`,`production`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const be={command:`list`,describe:`List Certificate Packs`,builder:ye,handler:async e=>l({command:`ssl certificate-packs list`,classification:{safeFlags:[`status`,`deploy`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],status:e.status,deploy:e.deploy};if(e.dryRun){s({command:`cf ssl certificate-packs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(ve,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var xe={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/certificate_packs/quota`};function Se(e){return e.usage(`$0 ssl certificate-packs quota get
26
+
27
+ For a given zone, list certificate pack quotas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ce={command:`get`,describe:`Get Certificate Pack Quotas`,builder:Se,handler:async e=>l({command:`ssl certificate-packs quota get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl certificate-packs quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/certificate_packs/quota`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(xe,{zone_id:r}));o(a,{successLabel:`Loaded`})})},we={command:`quota`,describe:`Operations for certificate-packs.quota`,builder:e=>e.command(Ce).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Te={command:`certificate-packs`,describe:`Operations for certificate-packs`,builder:e=>e.command(D).command(A).command(N).command(I).command(be).command(we).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/zones/${t.zone_id}/client_certificates`,body:`json`};function Ee(e){return e.usage(`$0 ssl client-certificates create
28
+
29
+ Create a new API Shield mTLS Client Certificate.`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`validity-days`,{type:`number`,description:`The number of days the Client Certificate will be valid after the issued_on date.`}).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 De={command:`create`,describe:`Create Client Certificate`,builder:Ee,handler:async e=>l({command:`ssl client-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({csr:p(e.csr,`csr`,`text`),validity_days:e[`validity-days`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(L,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await m(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),e[`validity-days`]===void 0)throw Error(`--validity-days is required (or pass --body with this field set).`);let a=f({csr:p(e.csr,`csr`,`text`),validity_days:e[`validity-days`]}),l=await c(`Creating`,async()=>t.send(L,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Oe={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`};function ke(e){return e.usage(`$0 ssl client-certificates delete <client-certificate-id>
30
+
31
+ Set a API Shield mTLS Client Certificate to pending_revocation status for processing to revoked status.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate 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 Ae={command:`delete <client-certificate-id>`,describe:`Revoke Client Certificate`,builder:ke,handler:async e=>l({command:`ssl client-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
32
+ `);return}let a=await c(`Deleting`,async()=>t.send(Oe,{zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var R={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`,body:`json`};function je(e){return e.usage(`$0 ssl client-certificates edit <client-certificate-id>
33
+
34
+ If a API Shield mTLS Client Certificate is in a pending_revocation state, you may reactivate it with this endpoint.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`reactivate`,{type:`boolean`,description:`The reactivate field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Me={command:`edit <client-certificate-id>`,describe:`Reactivate Client Certificate`,builder:je,handler:async e=>l({command:`ssl client-certificates edit`,classification:{safeFlags:[`reactivate`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({reactivate:e.reactivate}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(R,{body:n,zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({reactivate:e.reactivate}),l=await c(`Updating`,async()=>t.send(R,{body:a,zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(l,{successLabel:`Updated`})})};var Ne={method:`GET`,path:t=>e`/zones/${t.zone_id}/client_certificates/${t.client_certificate_id}`};function Pe(e){return e.usage(`$0 ssl client-certificates get <client-certificate-id>
35
+
36
+ Get Details for a single mTLS API Shield Client Certificate.`).positional(`client-certificate-id`,{type:`string`,description:`Client Certificate Tag`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Fe={command:`get <client-certificate-id>`,describe:`Client Certificate Details`,builder:Pe,handler:async e=>l({command:`ssl client-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl client-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates/${e[`client-certificate-id`]==null?`<client-certificate-id>`:encodeURIComponent(String(e[`client-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"client-certificate-id":String(e[`client-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Ne,{zone_id:r,client_certificate_id:e[`client-certificate-id`]}));o(a,{successLabel:`Loaded`})})};var Ie={method:`GET`,path:t=>e`/zones/${t.zone_id}/client_certificates`,query:[`status`,`page`,`per_page`,`limit`,`offset`]};function Le(e){return e.usage(`$0 ssl client-certificates list
37
+
38
+ List all of your Zone's API Shield mTLS Client Certificates by Status and/or using Pagination.`).option(`status`,{type:`string`,description:`Client Certitifcate Status to filter results by.`,choices:[`all`,`active`,`pending_reactivation`,`pending_revocation`,`revoked`]}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Re={command:`list`,describe:`List Client Certificates`,builder:Le,handler:async e=>l({command:`ssl client-certificates list`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{let t={status:e.status,page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){s({command:`cf ssl client-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/client_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(Ie,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})},ze={command:`client-certificates`,describe:`Operations for client-certificates`,builder:e=>e.command(De).command(Ae).command(Me).command(Fe).command(Re).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Be={method:`GET`,path:t=>e`/zones/${t.zone_id}/ct/alerting`};function Ve(e){return e.usage(`$0 ssl ct-alerting get
39
+
40
+ 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 He={command:`get`,describe:`Get CT Alerting Subscription`,builder:Ve,handler:async e=>l({command:`ssl ct-alerting get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl ct-alerting get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Be,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var z={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ct/alerting`,body:`json`};function Ue(e){return e.usage("$0 ssl 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.
41
+ `}).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 We={command:`update`,describe:`Update CT Alerting Subscription`,builder:Ue,handler:async e=>l({command:`ssl ct-alerting update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl ct-alerting update`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ct/alerting`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({emails:e.emails,enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(z,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let a=f({emails:e.emails,enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(z,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},Ge={command:`ct-alerting`,describe:`Operations for ct-alerting`,builder:e=>e.command(He).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var B={method:`POST`,path:t=>e`/zones/${t.zone_id}/custom_certificates`,body:`json`};function Ke(e){return e.usage(`$0 ssl custom-certificates create
42
+
43
+ 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`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).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`}).coerce(`deploy`,e=>p(e,`deploy`,`text`)).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).coerce(`geo-restrictions-label`,e=>p(e,`geo-restrictions-label`,`text`)).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.
44
+ 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`}).coerce(`type`,e=>p(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const qe={command:`create`,describe:`Create SSL Configuration`,builder:Ke,handler:async e=>l({command:`ssl custom-certificates create`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`),type:e.type}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(B,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's SSL certificate or certificate and the intermediate(s).`));let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`),type:e.type}),l=await c(`Creating`,async()=>t.send(B,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Je={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`};function Ye(e){return e.usage(`$0 ssl custom-certificates delete <custom-certificate-id>
45
+
46
+ 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 Xe={command:`delete <custom-certificate-id>`,describe:`Delete SSL Configuration`,builder:Ye,handler:async e=>l({command:`ssl custom-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
47
+ `);return}let a=await c(`Deleting`,async()=>t.send(Je,{zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`,body:`json`};function Ze(e){return e.usage(`$0 ssl custom-certificates edit <custom-certificate-id>
48
+
49
+ 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`]}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).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`]}).coerce(`deploy`,e=>p(e,`deploy`,`text`)).option(`geo-restrictions-label`,{type:`string`,description:`The geo_restrictions.label field`,choices:[`us`,`eu`,`highest_security`]}).coerce(`geo-restrictions-label`,e=>p(e,`geo-restrictions-label`,`text`)).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.
50
+ 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 Qe={command:`edit <custom-certificate-id>`,describe:`Edit SSL Configuration`,builder:Ze,handler:async e=>l({command:`ssl custom-certificates edit`,classification:{safeFlags:[`bundle-method`,`deploy`,`geo-restrictions-label`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(V,{body:n,zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),custom_csr_id:p(e[`custom-csr-id`],`custom-csr-id`,`text`),deploy:e.deploy,geo_restrictions:{label:e[`geo-restrictions-label`]},policy:p(e.policy,`policy`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Updating`,async()=>t.send(V,{body:a,zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(l,{successLabel:`Updated`})})};var $e={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_certificates/${t.custom_certificate_id}`};function et(e){return e.usage(`$0 ssl custom-certificates get <custom-certificate-id>
51
+
52
+ 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 tt={command:`get <custom-certificate-id>`,describe:`SSL Configuration Details`,builder:et,handler:async e=>l({command:`ssl custom-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/${e[`custom-certificate-id`]==null?`<custom-certificate-id>`:encodeURIComponent(String(e[`custom-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"custom-certificate-id":String(e[`custom-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send($e,{zone_id:r,custom_certificate_id:e[`custom-certificate-id`]}));o(a,{successLabel:`Loaded`})})};var nt={method:`GET`,path:t=>e`/zones/${t.zone_id}/custom_certificates`,query:[`page`,`per_page`,`match`,`status`]};function rt(e){return e.usage(`$0 ssl custom-certificates list
53
+
54
+ 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 it={command:`list`,describe:`List SSL Configurations`,builder:rt,handler:async e=>l({command:`ssl custom-certificates list`,classification:{safeFlags:[`match`,`status`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],match:e.match,status:e.status};if(e.dryRun){s({command:`cf ssl custom-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(nt,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})};var H={method:`PUT`,path:t=>e`/zones/${t.zone_id}/custom_certificates/prioritize`,body:`json`};function at(e){return e.usage(`$0 ssl custom-certificates prioritize update
55
+
56
+ If a zone has multiple SSL certificates, you can set the order in which they should be used during a request. The higher priority will break ties across overlapping 'legacy_custom' certificates.`).option(`certificates`,{type:`string`,description:`Array of ordered certificates. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ot={command:`update`,describe:`Re-prioritize SSL Certificates`,builder:at,handler:async e=>l({command:`ssl custom-certificates prioritize update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl custom-certificates prioritize update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/custom_certificates/prioritize`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificates:u(e.certificates,`certificates`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(H,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.certificates===void 0)throw Error(`--certificates is required (or pass --body with this field set).`);let a=f({certificates:u(e.certificates,`certificates`)}),l=await c(`Updating`,async()=>t.send(H,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},st={command:`prioritize`,describe:`Operations for custom-certificates.prioritize`,builder:e=>e.command(ot).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ct={command:`custom-certificates`,describe:`Operations for custom-certificates`,builder:e=>e.command(qe).command(Xe).command(Qe).command(tt).command(it).command(st).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var lt={method:`GET`,path:t=>e`/zones/${t.zone_id}/dcv_delegation/uuid`};function ut(e){return e.usage(`$0 ssl dcv-delegation get
57
+
58
+ Retrieve the account and zone specific unique identifier used as part of the CNAME target for DCV Delegation.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const dt={command:`get`,describe:`Retrieve the DCV Delegation unique identifier.`,builder:ut,handler:async e=>l({command:`ssl dcv-delegation get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl dcv-delegation get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/dcv_delegation/uuid`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(lt,{zone_id:r}));o(a,{successLabel:`Loaded`})})},ft={command:`dcv-delegation`,describe:`Operations for dcv-delegation`,builder:e=>e.command(dt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var U={method:`POST`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`,body:`json`};function pt(e){return e.usage(`$0 ssl keyless-certificates create
59
+
60
+ Creates a Keyless SSL configuration that allows SSL/TLS termination without exposing private keys to Cloudflare. Keys remain on your infrastructure.`).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`}).coerce(`bundle-method`,e=>p(e,`bundle-method`,`text`)).option(`certificate`,{type:`string`,description:`The zone's SSL certificate or SSL certificate and intermediate(s).`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`,default:24008}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const mt={command:`create`,describe:`Create Keyless SSL Configuration`,builder:pt,handler:async e=>l({command:`ssl keyless-certificates create`,classification:{safeFlags:[`bundle-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(U,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's SSL certificate or SSL certificate and intermediate(s).`)),e.host===void 0&&(e.host=await m(`host`,`The keyless SSL name.`)),e.port===void 0)throw Error(`--port is required (or pass --body with this field set).`);let a=f({bundle_method:e[`bundle-method`],certificate:p(e.certificate,`certificate`,`text`),host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),l=await c(`Creating`,async()=>t.send(U,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var ht={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function gt(e){return e.usage(`$0 ssl keyless-certificates delete <keyless-certificate-id>
61
+
62
+ Removes a Keyless SSL configuration. SSL connections will no longer use the keyless server for cryptographic operations.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless 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 _t={command:`delete <keyless-certificate-id>`,describe:`Delete Keyless SSL Configuration`,builder:gt,handler:async e=>l({command:`ssl keyless-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
63
+ `);return}let a=await c(`Deleting`,async()=>t.send(ht,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(a,{successLabel:`Deleted`})})};var W={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`,body:`json`};function vt(e){return e.usage(`$0 ssl keyless-certificates edit <keyless-certificate-id>
64
+
65
+ This will update attributes of a Keyless SSL. Consists of one or more of the following: host,name,port.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`enabled`,{type:`boolean`,description:`Whether or not the Keyless SSL is on or off.`}).option(`host`,{type:`string`,description:`The keyless SSL name.`}).option(`name`,{type:`string`,description:`The keyless SSL name.`}).option(`port`,{type:`number`,description:`The keyless SSL port used to communicate between Cloudflare and the client's Keyless SSL server.`}).option(`tunnel-private-ip`,{type:`string`,description:`Private IP of the Key Server Host.`}).option(`tunnel-vnet-id`,{type:`string`,description:`Cloudflare Tunnel Virtual Network ID.`}).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)`}).check(e=>{if([`tunnel-private-ip`,`tunnel-vnet-id`].some(t=>e[t]!==void 0)){let t=[`tunnel-private-ip`,`tunnel-vnet-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tunnel-* flag is set`)}return!0})}const yt={command:`edit <keyless-certificate-id>`,describe:`Edit Keyless SSL Configuration`,builder:vt,handler:async e=>l({command:`ssl keyless-certificates edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled,host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(W,{body:n,zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(i,{successLabel:`Updated`});return}let a=f({enabled:e.enabled,host:p(e.host,`host`,`text`),name:p(e.name,`name`,`text`),port:e.port,tunnel:{private_ip:p(e[`tunnel-private-ip`],`tunnel-private-ip`,`text`),vnet_id:p(e[`tunnel-vnet-id`],`tunnel-vnet-id`,`text`)}}),l=await c(`Updating`,async()=>t.send(W,{body:a,zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(l,{successLabel:`Updated`})})};var bt={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates/${t.keyless_certificate_id}`};function xt(e){return e.usage(`$0 ssl keyless-certificates get <keyless-certificate-id>
66
+
67
+ Get details for one Keyless SSL configuration.`).positional(`keyless-certificate-id`,{type:`string`,description:`Keyless certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const St={command:`get <keyless-certificate-id>`,describe:`Get Keyless SSL Configuration`,builder:xt,handler:async e=>l({command:`ssl keyless-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates/${e[`keyless-certificate-id`]==null?`<keyless-certificate-id>`:encodeURIComponent(String(e[`keyless-certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"keyless-certificate-id":String(e[`keyless-certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(bt,{zone_id:r,keyless_certificate_id:e[`keyless-certificate-id`]}));o(a,{successLabel:`Loaded`})})};var Ct={method:`GET`,path:t=>e`/zones/${t.zone_id}/keyless_certificates`};function wt(e){return e.usage(`$0 ssl keyless-certificates list
68
+
69
+ List all Keyless SSL configurations for a given zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Tt={command:`list`,describe:`List Keyless SSL Configurations`,builder:wt,handler:async e=>l({command:`ssl keyless-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl keyless-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/keyless_certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Ct,{zone_id:r}));o(a,{successLabel:`Loaded`})})},Et={command:`keyless-certificates`,describe:`Operations for keyless-certificates`,builder:e=>e.command(mt).command(_t).command(yt).command(St).command(Tt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Dt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}/associations`};function Ot(e){return e.usage(`$0 ssl mtls-certificates associations get <mtls-certificate-id>
70
+
71
+ Lists all active associations between the certificate and Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const kt={command:`get <mtls-certificate-id>`,describe:`List mTLS certificate associations`,builder:Ot,handler:async e=>l({command:`ssl mtls-certificates associations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates associations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}/associations`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(Dt,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Loaded`})})},At={command:`associations`,describe:`Operations for mtls-certificates.associations`,builder:e=>e.command(kt).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var G={method:`POST`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,body:`json`};function jt(e){return e.usage(`$0 ssl mtls-certificates create
72
+
73
+ Upload a certificate that you want to use with mTLS-enabled Cloudflare services, such as Bring Your Own CA (BYO-CA) for mTLS. To create certificates issued by the Cloudflare managed CA, use the [Create Client Certificate endpoint](/api/resources/client_certificates/methods/create/).`).option(`ca`,{type:`boolean`,description:`Indicates whether the certificate is a CA or leaf certificate.`}).option(`certificates`,{type:`string`,description:`The uploaded root CA certificate.`}).option(`name`,{type:`string`,description:`Optional unique name for the certificate. Only used for human readability.`}).option(`private-key`,{type:`string`,description:`The private key for the certificate. This field is only needed for specific use cases such as using a custom certificate with Zero Trust's block 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 Mt={command:`create`,describe:`Upload mTLS certificate`,builder:jt,handler:async e=>l({command:`ssl mtls-certificates create`,classification:{safeFlags:[`ca`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({ca:e.ca,certificates:p(e.certificates,`certificates`,`text`),name:p(e.name,`name`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=d(e.body),n=await c(`Creating`,async()=>i.send(G,{body:t,account_id:l}));o(n,{successLabel:`Created`});return}if(e.ca===void 0)throw Error(`--ca is required (or pass --body with this field set).`);e.certificates===void 0&&(e.certificates=await m(`certificates`,`The uploaded root CA certificate.`));let u=f({ca:e.ca,certificates:p(e.certificates,`certificates`,`text`),name:p(e.name,`name`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),h=await c(`Creating`,async()=>i.send(G,{body:u,account_id:l}));o(h,{successLabel:`Created`})})};var Nt={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Pt(e){return e.usage(`$0 ssl mtls-certificates delete <mtls-certificate-id>
74
+
75
+ Deletes the mTLS certificate unless the certificate is in use by one or more Cloudflare services.`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ft={command:`delete <mtls-certificate-id>`,describe:`Delete mTLS certificate`,builder:Pt,handler:async e=>l({command:`ssl mtls-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();if(e.accountId=l,!await g({force:!!e.force})){process.stderr.write(`Aborted.
76
+ `);return}let u=await c(`Deleting`,async()=>i.send(Nt,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Deleted`})})};var It={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates/${t.mtls_certificate_id}`};function Lt(e){return e.usage(`$0 ssl mtls-certificates get <mtls-certificate-id>
77
+
78
+ Fetches a single mTLS certificate uploaded to your account. To get a certificate issued by the Cloudflare managed CA, use the [Client Certificate Details endpoint](/api/resources/client_certificates/methods/get/).`).positional(`mtls-certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Rt={command:`get <mtls-certificate-id>`,describe:`Get mTLS certificate`,builder:Lt,handler:async e=>l({command:`ssl mtls-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();s({command:`cf ssl mtls-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/mtls_certificates/${e[`mtls-certificate-id`]==null?`<mtls-certificate-id>`:encodeURIComponent(String(e[`mtls-certificate-id`]))}`,pathParams:{"mtls-certificate-id":String(e[`mtls-certificate-id`]??``)},bodyKind:`none`});return}let i=await n(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>i.send(It,{account_id:l,mtls_certificate_id:e[`mtls-certificate-id`]}));o(u,{successLabel:`Loaded`})})};var zt={method:`GET`,path:t=>e`/accounts/${t.account_id}/mtls_certificates`,query:[`type`],joined:[`type`]};function Bt(e){return e.usage(`$0 ssl mtls-certificates list
79
+
80
+ Lists all mTLS certificates uploaded to your account, such as Bring Your Own CA (BYO-CA) for mTLS. To list certificates issued by the Cloudflare managed CA, use the [List Client Certificates endpoint](/api/resources/client_certificates/methods/list/).`).option(`type`,{type:`string`,description:`Filters results by certificate type. Multiple types can be comma-separated.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Vt={command:`list`,describe:`List mTLS certificates`,builder:Bt,handler:async e=>l({command:`ssl mtls-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let i={type:e.type};if(e.dryRun){let e=await r();s({command:`cf ssl mtls-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/mtls_certificates`,pathParams:{},query:i,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(zt,{account_id:u,...i}));o(d,{successLabel:`Loaded`})})},Ht={command:`mtls-certificates`,describe:`Operations for mtls-certificates`,builder:e=>e.command(Mt).command(Ft).command(Rt).command(Vt).command(At).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var K={method:`POST`,path:()=>`/certificates`,body:`json`};function Ut(e){return e.usage(`$0 ssl origin-ca-certificates create
81
+
82
+ Create an Origin CA certificate. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`csr`,{type:`string`,description:`The Certificate Signing Request (CSR). Must be newline-encoded.`}).option(`hostnames`,{type:`string`,array:!0,description:"Array of hostnames or wildcard names bound to the certificate.\nHostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., `example.com` or `sub.example.com`). Wildcards are supported only as a `*.` prefix for a single level (e.g., `*.example.com`). Double wildcards (`*.*.example.com`) and interior wildcards (`foo.*.example.com`) are not allowed. The wildcard suffix must be a multi-label domain (`*.example.com` is valid, but `*.com` is not). Unicode/IDN hostnames are accepted and automatically converted to punycode."}).option(`request-type`,{type:`string`,description:`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,choices:[`origin-rsa`,`origin-ecc`,`keyless-certificate`]}).coerce(`request-type`,e=>p(e,`request-type`,`text`)).option(`requested-validity`,{type:`number`,description:`The number of days for which the certificate should be valid.`,default:5475}).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 Wt={command:`create`,describe:`Create Certificate`,builder:Ut,handler:async e=>l({command:`ssl origin-ca-certificates create`,classification:{safeFlags:[`request-type`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},bodyKind:`json`,body:e.body===void 0?f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}):d(e.body)});return}let t=await n(e);if(e.body){let n=d(e.body),r=await c(`Creating`,async()=>t.send(K,{body:n}));o(r,{successLabel:`Created`});return}if(e.csr===void 0&&(e.csr=await m(`csr`,`The Certificate Signing Request (CSR). Must be newline-encoded.`)),e.hostnames===void 0)throw Error(`--hostnames is required (or pass --body with this field set).`);e[`request-type`]===void 0&&(e[`request-type`]=await h(`request-type`,`Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa), or "keyless-certificate" (for Keyless SSL servers).`,[`origin-rsa`,`origin-ecc`,`keyless-certificate`]));let r=f({csr:p(e.csr,`csr`,`text`),hostnames:e.hostnames,request_type:e[`request-type`],requested_validity:e[`requested-validity`]}),i=await c(`Creating`,async()=>t.send(K,{body:r}));o(i,{successLabel:`Created`})})};var Gt={method:`DELETE`,path:t=>e`/certificates/${t.certificate_id}`};function Kt(e){return e.usage(`$0 ssl origin-ca-certificates delete <certificate-id>
83
+
84
+ Revoke an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,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 qt={command:`delete <certificate-id>`,describe:`Revoke Certificate`,builder:Kt,handler:async e=>l({command:`ssl origin-ca-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e);if(!await g({force:!!e.force})){process.stderr.write(`Aborted.
85
+ `);return}let r=await c(`Deleting`,async()=>t.send(Gt,{certificate_id:e[`certificate-id`]}));o(r,{successLabel:`Deleted`})})};var Jt={method:`GET`,path:t=>e`/certificates/${t.certificate_id}`};function Yt(e){return e.usage(`$0 ssl origin-ca-certificates get <certificate-id>
86
+
87
+ Get an existing Origin CA certificate by its serial number. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).positional(`certificate-id`,{type:`string`,description:`The x509 serial number of the Origin CA certificate.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Xt={command:`get <certificate-id>`,describe:`Get Certificate`,builder:Yt,handler:async e=>l({command:`ssl origin-ca-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-ca-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await c(`Loading`,async()=>t.send(Jt,{certificate_id:e[`certificate-id`]}));o(r,{successLabel:`Loaded`})})};var Zt={method:`GET`,path:()=>`/certificates`,query:[`zone_id`,`page`,`per_page`,`limit`,`offset`]};function Qt(e){return e.usage(`$0 ssl origin-ca-certificates list
88
+
89
+ List all existing Origin CA certificates for a given zone. You can use an Origin CA Key as your User Service Key or an API token when calling this endpoint ([see above](#requests)).`).option(`zone-id`,{type:`string`,description:`Identifier.`}).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of records per page.`}).option(`limit`,{type:`number`,description:`Limit to the number of records returned.`}).option(`offset`,{type:`number`,description:`Offset the results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const $t={command:`list`,describe:`List Certificates`,builder:Qt,handler:async e=>l({command:`ssl origin-ca-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={zone_id:e[`zone-id`],page:e.page,per_page:e[`per-page`],limit:e.limit,offset:e.offset};if(e.dryRun){s({command:`cf ssl origin-ca-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/certificates`,pathParams:{},query:t,bodyKind:`none`});return}let r=await n(e),i=await c(`Loading`,async()=>r.send(Zt,t));o(i,{successLabel:`Loaded`})})},en={command:`origin-ca-certificates`,describe:`Operations for origin-ca-certificates`,builder:e=>e.command(Wt).command(qt).command(Xt).command($t).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var tn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames`,query:[`page`,`per_page`,`status`]};function nn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-associations list
90
+
91
+ List certificate ID - hostname associations for the given zone. Shows which hostnames are associated to which certificates for authenticated origin pulls.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Number of associations per page.`}).option(`status`,{type:`string`,description:`Filter associations by status. Use comma-separated values to filter by multiple statuses, or "all" to include every status. Defaults to "active" if not provided.`,choices:[`active`,`pending_deployment`,`pending_deletion`,`deleted`,`deployment_timed_out`,`deletion_timed_out`,`all`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rn={command:`list`,describe:`List Hostname Associations`,builder:nn,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-associations list`,classification:{safeFlags:[`status`,`dry-run`]}},e,async()=>{let t={page:e.page,per_page:e[`per-page`],status:e.status};if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-associations list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(tn,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})},an={command:`hostname-associations`,describe:`Operations for origin-tls-client-auth.hostname-associations`,builder:e=>e.command(rn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates`,body:`json`};function on(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates create
92
+
93
+ Upload a certificate to be used for client authentication on a hostname. 10 hostname certificates per zone are allowed.`).option(`certificate`,{type:`string`,description:`The hostname certificate.`}).option(`private-key`,{type:`string`,description:`The hostname certificate's private key.`}).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 sn={command:`create`,describe:`Upload a Hostname Client Certificate`,builder:on,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(q,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The hostname certificate.`)),e[`private-key`]===void 0&&(e[`private-key`]=await m(`private-key`,`The hostname certificate's private key.`,{kind:`secret`}));let a=f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Creating`,async()=>t.send(q,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var cn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function ln(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates delete <certificate-id>
94
+
95
+ Removes a client certificate used for authenticated origin pulls on a specific hostname. Note: Before deleting the certificate, you must first invalidate the hostname for client authentication by sending a PUT request with \`enabled\` set to null. After invalidating the association, the certificate can be safely deleted.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const un={command:`delete <certificate-id>`,describe:`Delete Hostname Client Certificate`,builder:ln,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
96
+ `);return}let a=await c(`Deleting`,async()=>t.send(cn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var dn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates/${t.certificate_id}`};function fn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates get <certificate-id>
97
+
98
+ Get the certificate by ID to be used for client authentication on a hostname.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const pn={command:`get <certificate-id>`,describe:`Get the Hostname Client Certificate`,builder:fn,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(dn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Loaded`})})};var mn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/certificates`};function hn(e){return e.usage(`$0 ssl origin-tls-client-auth hostname-certificates list
99
+
100
+ Lists all client certificates configured for per-hostname authenticated origin pulls on the zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const gn={command:`list`,describe:`List Certificates`,builder:hn,handler:async e=>l({command:`ssl origin-tls-client-auth hostname-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostname-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/certificates`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(mn,{zone_id:r}));o(a,{successLabel:`Loaded`})})},_n={command:`hostname-certificates`,describe:`Operations for origin-tls-client-auth.hostname-certificates`,builder:e=>e.command(sn).command(un).command(pn).command(gn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var vn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames/${t.hostname}`};function yn(e){return e.usage(`$0 ssl origin-tls-client-auth hostnames get <hostname>
101
+
102
+ Retrieves the client certificate authentication status for a specific hostname, showing whether authenticated origin pulls are enabled.`).positional(`hostname`,{type:`string`,description:`The hostname on the origin for which the client certificate uploaded will be used.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const bn={command:`get <hostname>`,describe:`Get the Hostname Status for Client Authentication`,builder:yn,handler:async e=>l({command:`ssl origin-tls-client-auth hostnames get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostnames get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames/${e.hostname==null?`<hostname>`:encodeURIComponent(String(e.hostname))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),hostname:String(e.hostname??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(vn,{zone_id:r,hostname:e.hostname}));o(a,{successLabel:`Loaded`})})};var J={method:`PUT`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/hostnames`,body:`json`};function xn(e){return e.usage(`$0 ssl origin-tls-client-auth hostnames update
103
+
104
+ Associate a hostname to a certificate and enable, disable or invalidate the association. If disabled, client certificate will not be sent to the hostname even if activated at the zone level. 100 maximum associations on a single certificate are allowed. Note: Use a null value for parameter *enabled* to invalidate the association.`).option(`hostname-config`,{type:`string`,description:`The config field. Provide as a JSON array of objects or @path/to/file.json.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Sn={command:`update`,describe:`Enable or Disable a Hostname for Client Authentication`,builder:xn,handler:async e=>l({command:`ssl origin-tls-client-auth hostnames update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth hostnames update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({config:u(e[`hostname-config`],`hostname-config`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(J,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e[`hostname-config`]===void 0)throw Error(`--hostname-config is required (or pass --body with this field set).`);let a=f({config:u(e[`hostname-config`],`hostname-config`)}),l=await c(`Updating`,async()=>t.send(J,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},Cn={command:`hostnames`,describe:`Operations for origin-tls-client-auth.hostnames`,builder:e=>e.command(bn).command(Sn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var wn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/settings`};function Tn(e){return e.usage(`$0 ssl origin-tls-client-auth settings get
105
+
106
+ Get whether zone-level authenticated origin pulls is enabled or not. It is false by default.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const En={command:`get`,describe:`Get Enablement Setting for Zone`,builder:Tn,handler:async e=>l({command:`ssl origin-tls-client-auth settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(wn,{zone_id:r}));o(a,{successLabel:`Loaded`})})};var Y={method:`PUT`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/settings`,body:`json`};function Dn(e){return e.usage(`$0 ssl origin-tls-client-auth settings update
107
+
108
+ Enable or disable zone-level authenticated origin pulls. 'enabled' should be set true either before/after the certificate is uploaded to see the certificate in use.`).option(`enabled`,{type:`boolean`,description:`Indicates whether zone-level authenticated origin pulls is enabled.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const On={command:`update`,describe:`Set Enablement for Zone`,builder:Dn,handler:async e=>l({command:`ssl origin-tls-client-auth settings update`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth settings update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(Y,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}if(e.enabled===void 0)throw Error(`--enabled is required (or pass --body with this field set).`);let a=f({enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(Y,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})},kn={command:`settings`,describe:`Operations for origin-tls-client-auth.settings`,builder:e=>e.command(En).command(On).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var X={method:`POST`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth`,body:`json`};function An(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates create
109
+
110
+ Upload your own certificate you want Cloudflare to use for edge-to-origin communication to override the shared certificate. Please note that it is important to keep only one certificate active. Also, make sure to enable zone-level authenticated origin pulls by making a PUT call to settings endpoint to see the uploaded certificate in use.`).option(`certificate`,{type:`string`,description:`The zone's leaf certificate.`}).option(`private-key`,{type:`string`,description:`The zone's private key.`}).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 jn={command:`create`,describe:`Upload Certificate`,builder:An,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}):d(e.body),sensitiveBodyPaths:[[`private_key`]]});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(X,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}e.certificate===void 0&&(e.certificate=await m(`certificate`,`The zone's leaf certificate.`)),e[`private-key`]===void 0&&(e[`private-key`]=await m(`private-key`,`The zone's private key.`,{kind:`secret`}));let a=f({certificate:p(e.certificate,`certificate`,`text`),private_key:p(e[`private-key`],`private-key`,`text`)}),l=await c(`Creating`,async()=>t.send(X,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var Mn={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function Nn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates delete <certificate-id>
111
+
112
+ Removes a client certificate used for zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Pn={command:`delete <certificate-id>`,describe:`Delete Certificate`,builder:Nn,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force})){process.stderr.write(`Aborted.
113
+ `);return}let a=await c(`Deleting`,async()=>t.send(Mn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Deleted`})})};var Fn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth/${t.certificate_id}`};function In(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates get <certificate-id>
114
+
115
+ Retrieves details for a specific client certificate used in zone-level authenticated origin pulls.`).positional(`certificate-id`,{type:`string`,description:`Certificate identifier tag.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ln={command:`get <certificate-id>`,describe:`Get Certificate Details`,builder:In,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth/${e[`certificate-id`]==null?`<certificate-id>`:encodeURIComponent(String(e[`certificate-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-id":String(e[`certificate-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Fn,{zone_id:r,certificate_id:e[`certificate-id`]}));o(a,{successLabel:`Loaded`})})};var Rn={method:`GET`,path:t=>e`/zones/${t.zone_id}/origin_tls_client_auth`};function zn(e){return e.usage(`$0 ssl origin-tls-client-auth zone-certificates list
116
+
117
+ Lists all client certificates configured for zone-level authenticated origin pulls.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Bn={command:`list`,describe:`List Certificates`,builder:zn,handler:async e=>l({command:`ssl origin-tls-client-auth zone-certificates list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl origin-tls-client-auth zone-certificates list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/origin_tls_client_auth`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Rn,{zone_id:r}));o(a,{successLabel:`Loaded`})})},Vn={command:`zone-certificates`,describe:`Operations for origin-tls-client-auth.zone-certificates`,builder:e=>e.command(jn).command(Pn).command(Ln).command(Bn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Hn={command:`origin-tls-client-auth`,describe:`Operations for origin-tls-client-auth`,builder:e=>e.command(an).command(_n).command(Cn).command(kn).command(Vn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Z={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/recommendation`};function Un(e){return e.usage(`$0 ssl recommendations get
118
+
119
+ Retrieve the SSL/TLS Recommender's recommendation for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Wn={command:`get`,describe:`SSL/TLS Recommendation`,builder:Un,handler:async e=>l({command:`ssl recommendations get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl recommendations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/recommendation`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Z,{zone_id:r}));o(a,{successLabel:`Loaded`})})},Gn={command:`recommendations`,describe:`Get the recommended SSL/TLS encryption mode based on your origin server's certificate configuration`,builder:e=>e.command(Wn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/universal/settings`,body:`json`};function Kn(e){return e.usage(`$0 ssl universal settings edit
120
+
121
+ Patch Universal SSL Settings for a Zone.`).option(`enabled`,{type:`boolean`,description:`Disabling Universal SSL removes any currently active Universal SSL certificates for your zone from the edge and prevents any future Universal SSL certificates from being ordered. If there are no advanced certificates or custom certificates uploaded for the domain, visitors will be unable to access the domain over HTTPS.
122
+
123
+ By disabling Universal SSL, you understand that the following Cloudflare settings and preferences will result in visitors being unable to visit your domain unless you have uploaded a custom certificate or purchased an advanced certificate.
124
+
125
+ * HSTS
126
+ * Always Use HTTPS
127
+ * Opportunistic Encryption
128
+ * Onion Routing
129
+ * Any Page Rules redirecting traffic to HTTPS
130
+
131
+ Similarly, any HTTP redirect to HTTPS at the origin while the Cloudflare proxy is enabled will result in users being unable to visit your site without a valid certificate at Cloudflare's edge.
132
+
133
+ If you do not have a valid custom or advanced certificate at Cloudflare's edge and are unsure if any of the above Cloudflare settings are enabled, or if any HTTP redirects exist at your origin, we advise leaving Universal SSL enabled for your domain.`}).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 qn={command:`edit`,describe:`Edit Universal SSL Settings`,builder:Kn,handler:async e=>l({command:`ssl universal settings edit`,classification:{safeFlags:[`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl universal settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({enabled:e.enabled}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(Q,{body:n,zone_id:r}));o(i,{successLabel:`Updated`});return}let a=f({enabled:e.enabled}),l=await c(`Updating`,async()=>t.send(Q,{body:a,zone_id:r}));o(l,{successLabel:`Updated`})})};var Jn={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/universal/settings`};function Yn(e){return e.usage(`$0 ssl universal settings get
134
+
135
+ Get Universal SSL Settings for a Zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Xn={command:`get`,describe:`Universal SSL Settings Details`,builder:Yn,handler:async e=>l({command:`ssl universal settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl universal settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/universal/settings`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(Jn,{zone_id:r}));o(a,{successLabel:`Loaded`})})},Zn={command:`settings`,describe:`Operations for universal.settings`,builder:e=>e.command(qn).command(Xn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Qn={command:`universal`,describe:`Operations for universal`,builder:e=>e.command(Zn).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var $={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/ssl/verification/${t.certificate_pack_id}`,body:`json`};function $n(e){return e.usage(`$0 ssl verification edit <certificate-pack-id>
136
+
137
+ Edit SSL validation method for a certificate pack. A PATCH request will request an immediate validation check on any certificate, and return the updated status. If a validation method is provided, the validation will be immediately attempted using that method.`).positional(`certificate-pack-id`,{type:`string`,description:`Certificate Pack UUID.`,demandOption:!0}).option(`validation-method`,{type:`string`,description:`Desired validation method.`,choices:[`http`,`cname`,`txt`,`email`]}).coerce(`validation-method`,e=>p(e,`validation-method`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const er={command:`edit <certificate-pack-id>`,describe:`Edit SSL Certificate Pack Validation Method`,builder:$n,handler:async e=>l({command:`ssl verification edit`,classification:{safeFlags:[`validation-method`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf ssl verification edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/verification/${e[`certificate-pack-id`]==null?`<certificate-pack-id>`:encodeURIComponent(String(e[`certificate-pack-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"certificate-pack-id":String(e[`certificate-pack-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({validation_method:e[`validation-method`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send($,{body:n,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(i,{successLabel:`Updated`});return}e[`validation-method`]===void 0&&(e[`validation-method`]=await h(`validation-method`,`Desired validation method.`,[`http`,`cname`,`txt`,`email`]));let a=f({validation_method:e[`validation-method`]}),l=await c(`Updating`,async()=>t.send($,{body:a,zone_id:r,certificate_pack_id:e[`certificate-pack-id`]}));o(l,{successLabel:`Updated`})})};var tr={method:`GET`,path:t=>e`/zones/${t.zone_id}/ssl/verification`,query:[`retry`]};function nr(e){return e.usage(`$0 ssl verification get
138
+
139
+ Get SSL Verification Info for a Zone.`).option(`retry`,{type:`string`,description:`Immediately retry SSL Verification.`,choices:[`true`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const rr={command:`get`,describe:`SSL Verification Details`,builder:nr,handler:async e=>l({command:`ssl verification get`,classification:{safeFlags:[`retry`,`dry-run`]}},e,async()=>{let t={retry:e.retry};if(e.dryRun){s({command:`cf ssl verification get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/ssl/verification`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let r=await n(e),a=await i({zone:e.zone},r,{quiet:e.quiet});e.zoneId=a;let l=await c(`Loading`,async()=>r.send(tr,{zone_id:a,...t}));o(l,{successLabel:`Loaded`})})},ir={command:`verification`,describe:`Operations for verification`,builder:e=>e.command(er).command(rr).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},ar={command:`ssl`,describe:`SSL/TLS certificate management — certificate packs, Universal SSL, verification, and TLS mode recommendations`,builder:e=>e.command(te).command(oe).command(fe).command(w).command(Te).command(ze).command(Ge).command(ct).command(ft).command(Et).command(Ht).command(en).command(Hn).command(Gn).command(Qn).command(ir).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{ar as default};