cf 0.12.0 → 0.13.0

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 (416) hide show
  1. package/dist/_meta/agent-context.json +55 -55
  2. package/dist/_meta/commands.json +24282 -24542
  3. package/dist/_meta/hand-written-commands.json +53 -12
  4. package/dist/_meta/schemas.json +27680 -28212
  5. package/dist/abuse-reports-BbaHw4ST.mjs +8 -0
  6. package/dist/access-D6Xz892p.mjs +11 -0
  7. package/dist/account-DvxcqeaK.mjs +2 -0
  8. package/dist/account-tags-CeqfEWpz.mjs +9 -0
  9. package/dist/accounts-Bx-8BMH9.mjs +30 -0
  10. package/dist/acm--0opdSGE.mjs +3 -0
  11. package/dist/addressing-BS1ynzLA.mjs +13 -0
  12. package/dist/agent-context-BPhyrSns.mjs +8 -0
  13. package/dist/agent-memory-DczzpEw5.mjs +6 -0
  14. package/dist/ai-CDdCTcQl.mjs +5 -0
  15. package/dist/ai-audit-Bx9KMQYh.mjs +2 -0
  16. package/dist/ai-gateway-BSXJEaYS.mjs +13 -0
  17. package/dist/ai-search-DRQj1aMu.mjs +7 -0
  18. package/dist/ai-security-C_Rb0lGT.mjs +4 -0
  19. package/dist/alerting-BAR9eFs2.mjs +6 -0
  20. package/dist/analytics-BaUZwNc5.mjs +4 -0
  21. package/dist/analytics_engine-DkEzlhfT.mjs +2 -0
  22. package/dist/api-security-jA0lOk6a.mjs +50 -0
  23. package/dist/argo-Cz4pDagx.mjs +2 -0
  24. package/dist/artifacts-BcLTGfAv.mjs +5 -0
  25. package/dist/audit-logs-DbIv4n6u.mjs +2 -0
  26. package/dist/auth-rW5d3jtr.mjs +5 -0
  27. package/dist/auth-tvDdC1J-.mjs +8 -0
  28. package/dist/billing-Md87QjqW.mjs +3 -0
  29. package/dist/bot-management-VHMo4hpU.mjs +5 -0
  30. package/dist/botnet-feed-BHqfo3sa.mjs +3 -0
  31. package/dist/brand-protection-HUeR6Pof.mjs +3 -0
  32. package/dist/browser-extension-199oZg3X.mjs +3 -0
  33. package/dist/browser-run-DDasyux-.mjs +4 -0
  34. package/dist/build-0QlYUfFS.mjs +2 -0
  35. package/dist/builds-B-lXn6JR.mjs +9 -0
  36. package/dist/cache-CevKpiTM.mjs +9 -0
  37. package/dist/certificate-authorities-DAg-aO1B.mjs +2 -0
  38. package/dist/{cf-yPz_IqW6.mjs → cf-C11NGkjx.mjs} +1 -1
  39. package/dist/{chunk-LQW53VED-9MACsvSG.mjs → chunk-LQW53VED-CoECHA3R.mjs} +1 -1
  40. package/dist/{chunk-QBZBEHZB-yeyhVUeD.mjs → chunk-QBZBEHZB-BuiXJn8j.mjs} +1 -1
  41. package/dist/client-certificates-Bay7oPLE.mjs +3 -0
  42. package/dist/client-side-security-CbU9xn0k.mjs +37 -0
  43. package/dist/cloud-connector-AH2ClcSL.mjs +2 -0
  44. package/dist/cloudforce-one-DwOfS75V.mjs +32 -0
  45. package/dist/{command-BV87D4tR.mjs → command-CMzMsll4.mjs} +1 -1
  46. package/dist/{completions-BnD46cXe.mjs → completions-nPO9PdSu.mjs} +1 -1
  47. package/dist/config-B8lwPpVl.mjs +2 -0
  48. package/dist/config.mjs +1 -1
  49. package/dist/connector-interrupts-DcLrqM2V.mjs +2 -0
  50. package/dist/connector-telemetry-events-PrJWgNs9.mjs +2 -0
  51. package/dist/connector-telemetry-snapshots-CIjJm5yu.mjs +2 -0
  52. package/dist/connectors-CEAy30E-.mjs +3 -0
  53. package/dist/containers-BsbDqbSn.mjs +58 -0
  54. package/dist/content-scan-BdK936iO.mjs +4 -0
  55. package/dist/cps-oP97-qkm.mjs +2 -0
  56. package/dist/csamScanner-DUNN4INg.mjs +6 -0
  57. package/dist/ct-alerting-dV_gsV2w.mjs +3 -0
  58. package/dist/custom-certificates-DYspvjo4.mjs +5 -0
  59. package/dist/custom-csrs-DjSWLQRu.mjs +3 -0
  60. package/dist/custom-hostnames-df1lH6IY.mjs +5 -0
  61. package/dist/custom-nameservers-CLTbN-9R.mjs +3 -0
  62. package/dist/custom-pages-DzKnSgL3.mjs +3 -0
  63. package/dist/d1-JBEqjJoj.mjs +20 -0
  64. package/dist/data-security-CIktWnXt.mjs +7 -0
  65. package/dist/dcv-delegation-_r6Vc6VL.mjs +2 -0
  66. package/dist/{deploy-BUSz35vq.mjs → deploy-QTGENpOM.mjs} +1 -1
  67. package/dist/{deploy-input-BvD9aRP1.mjs → deploy-input-C7W1Bsji.mjs} +1 -1
  68. package/dist/{dev-DY_DquQx.mjs → dev-CAubuxCc.mjs} +1 -1
  69. package/dist/diagnostics-B0DRh714.mjs +3 -0
  70. package/dist/{dist-DV7LR38l.mjs → dist-12KzRsBM.mjs} +36 -36
  71. package/dist/{dist-BBx1io2f.mjs → dist-BCVqQpg2.mjs} +1 -1
  72. package/dist/dist-Cp3uJN1x.mjs +48 -0
  73. package/dist/dist-DW5BPGFs.mjs +57 -0
  74. package/dist/{dist-Cb9TJ2VV.mjs → dist-S9K_8gq9.mjs} +1 -1
  75. package/dist/dls-CFzTHcZM.mjs +3 -0
  76. package/dist/dns-Dw6u-NV1.mjs +29 -0
  77. package/dist/dns-firewall-CIPptslp.mjs +57 -0
  78. package/dist/{dot-prop-6SRZBKHT-wwGHcwAa.mjs → dot-prop-6SRZBKHT-wIVDg_fl.mjs} +1 -1
  79. package/dist/dry-run-DiVy1lVo.mjs +2 -0
  80. package/dist/durable-objects-CCkeqqBq.mjs +2 -0
  81. package/dist/email-auth-kdxO51Oz.mjs +2 -0
  82. package/dist/email-routing-BLggZdQq.mjs +6 -0
  83. package/dist/email-security-DjADlgdM.mjs +18 -0
  84. package/dist/email-sending-Cz7E7GoP.mjs +7 -0
  85. package/dist/error-sanitization-DfLijlBJ.mjs +2 -0
  86. package/dist/fieldExtractors-BWaMi6lD.mjs +3 -0
  87. package/dist/firewall-5t6OBIOl.mjs +8 -0
  88. package/dist/flagship-CzG_VoNR.mjs +4 -0
  89. package/dist/fraud-UOg_69Ob.mjs +20 -0
  90. package/dist/google-tag-gateway-DirkD-Q2.mjs +2 -0
  91. package/dist/healthchecks-BkHZGTp1.mjs +4 -0
  92. package/dist/hostnames-EUYOZm21.mjs +3 -0
  93. package/dist/hyperdrive-ZoLJlJCL.mjs +21 -0
  94. package/dist/iam-BQ2xSgYN.mjs +6 -0
  95. package/dist/images-CkEq6ScP.mjs +8 -0
  96. package/dist/index.mjs +1 -1
  97. package/dist/intel-DDWEdGyl.mjs +8 -0
  98. package/dist/interactive-B2E03Fs-.mjs +11 -0
  99. package/dist/interactive-_B-EqD0Y.mjs +23 -0
  100. package/dist/ips-54Qmy-Uw.mjs +2 -0
  101. package/dist/keyless-certificates-CXHLc3Qz.mjs +3 -0
  102. package/dist/keys-rvI4TC3Z.mjs +2 -0
  103. package/dist/kv-CAeN1zBy.mjs +5 -0
  104. package/dist/leaked-credential-checks-CbbwtG-p.mjs +4 -0
  105. package/dist/lifecycle-XswDq0ZB.mjs +2 -0
  106. package/dist/load-balancers-BFwdwAIU.mjs +6 -0
  107. package/dist/{local-DGiIS1uM.mjs → local-C6XsFD_W.mjs} +1 -1
  108. package/dist/{local-runtime--IQr44qq.mjs → local-runtime-BUGCbx8r.mjs} +1 -1
  109. package/dist/logexplorer-D8rOPB5I.mjs +17 -0
  110. package/dist/logo-matches-Y3PxVn7t.mjs +2 -0
  111. package/dist/logos-BN8SvJhS.mjs +3 -0
  112. package/dist/logpush-BnLA4WVm.mjs +4 -0
  113. package/dist/logs-CDo7Y5sA.mjs +3 -0
  114. package/dist/magic-cloud-networking-wPuLwu-F.mjs +5 -0
  115. package/dist/magic-network-monitoring-BNERUpxS.mjs +4 -0
  116. package/dist/magic-transit-6tvVOECW.mjs +111 -0
  117. package/dist/managed-defense-AYwBOYIH.mjs +2 -0
  118. package/dist/managed-transforms-HZZNrkC7.mjs +3 -0
  119. package/dist/matches-Dp91L3dL.mjs +2 -0
  120. package/dist/mcp-P7pcieiT.mjs +4 -0
  121. package/dist/mesh-DjFrk6PL.mjs +4 -0
  122. package/dist/mtls-certificates-DZMoef2H.mjs +3 -0
  123. package/dist/network-7cd1U6-I.mjs +6 -0
  124. package/dist/network-interconnects-CQ7cPZjK.mjs +41 -0
  125. package/dist/oauth-DH3kMXSs.mjs +14 -0
  126. package/dist/oauth-clients-P9t-eMnx.mjs +4 -0
  127. package/dist/oauth-scopes-C3r9Qh_y.mjs +2 -0
  128. package/dist/observability-M1DnLhMR.mjs +10 -0
  129. package/dist/{open-PBXRGS4R-DIiYQyU9.mjs → open-PBXRGS4R-DARSUDEI.mjs} +1 -1
  130. package/dist/organization-cUE7GDCt.mjs +45 -0
  131. package/dist/organizations-C-Hcpd0w.mjs +2 -0
  132. package/dist/origin-ca-certificates-C8cJMyQH.mjs +3 -0
  133. package/dist/origin-post-quantum-encryption-DjZJCk8M.mjs +2 -0
  134. package/dist/origin-tls-client-auth-BsjR5EAV.mjs +4 -0
  135. package/dist/{output-BqDR9h74.mjs → output-COcSQsfn.mjs} +1 -1
  136. package/dist/page-rules-B-zq1EUb.mjs +27 -0
  137. package/dist/pages-B6YpkPos.mjs +14 -0
  138. package/dist/pay-per-crawl-B4wx0lUb.mjs +4 -0
  139. package/dist/pipelines-BJc_RylD.mjs +6 -0
  140. package/dist/precursor-CLQu7suY.mjs +4 -0
  141. package/dist/progress-V6SZV3Ux.mjs +2 -0
  142. package/dist/prompt-DjRTpML4.mjs +3 -0
  143. package/dist/queries-DSrrket-.mjs +3 -0
  144. package/dist/queues-Tf7kPBpn.mjs +7 -0
  145. package/dist/r2-DmKNnxtC.mjs +25 -0
  146. package/dist/r2-data-catalog-DBxoifOq.mjs +16 -0
  147. package/dist/radar-Csk7Ab-b.mjs +2 -0
  148. package/dist/rate-limits-cdChIg_S.mjs +2 -0
  149. package/dist/raw-fetch-BVYQR6C5.mjs +2 -0
  150. package/dist/realtime-CDehZVhV.mjs +20 -0
  151. package/dist/registrar-sandbox-BxVdfnam.mjs +56 -0
  152. package/dist/registrar-vflzeNQ9.mjs +43 -0
  153. package/dist/{registry-5-I2XLwF.mjs → registry-CWUfXloz.mjs} +1 -1
  154. package/dist/reporting-BaPZ1PHN.mjs +2 -0
  155. package/dist/request-headers-CC4eHmI2.mjs +3 -0
  156. package/dist/request-tracers-C_UVBexV.mjs +2 -0
  157. package/dist/resource-sharing-CoB4S9j1.mjs +6 -0
  158. package/dist/resource-tagging-CUiUC5g4.mjs +2 -0
  159. package/dist/rules-4O8076_s.mjs +4 -0
  160. package/dist/rulesets-C84MxTYo.mjs +5 -0
  161. package/dist/rum-Bvwkrntx.mjs +4 -0
  162. package/dist/run-CRfinkSe.mjs +2 -0
  163. package/dist/schema-C8hU6G9R.mjs +2 -0
  164. package/dist/{schema-flags-CTfQVGCs.mjs → schema-flags-DC4c6dka.mjs} +1 -1
  165. package/dist/scim-BvxQmde6.mjs +4 -0
  166. package/dist/{sdk-ZctLa5jW.mjs → sdk-C12y5qCN.mjs} +2 -2
  167. package/dist/secrets-store-DOKWiC-j.mjs +7 -0
  168. package/dist/security-center-Bhy_aC-w.mjs +2 -0
  169. package/dist/security-txt-L7HJ9tq5.mjs +3 -0
  170. package/dist/{shared-DlKGNPiT.mjs → shared-YJtB5KZB.mjs} +17 -17
  171. package/dist/smart-shield-COMXuQ1S.mjs +4 -0
  172. package/dist/snippets-DffQhlKt.mjs +4 -0
  173. package/dist/{spawn-C3_tJ3RB.mjs → spawn-C1AISA2V.mjs} +3 -3
  174. package/dist/spectrum-Cmf7SqQE.mjs +63 -0
  175. package/dist/speed-m8cdhLFS.mjs +4 -0
  176. package/dist/src-C8phrg-8.mjs +109 -0
  177. package/dist/ssl-D4ffsdSw.mjs +15 -0
  178. package/dist/{startup-profile-Dpxg-MjV.mjs → startup-profile-Dx95Y5cl.mjs} +1 -1
  179. package/dist/state-CHif8Y5I.mjs +2 -0
  180. package/dist/stream-DPF5fojV.mjs +16 -0
  181. package/dist/submit-Br8hfP0_.mjs +2 -0
  182. package/dist/tags-Bnt4JuxQ.mjs +2 -0
  183. package/dist/telemetry-Ch1vCICm.mjs +2 -0
  184. package/dist/telemetry-DjGNSlkU.mjs +5 -0
  185. package/dist/tenant-D8u0CxoC.mjs +2 -0
  186. package/dist/tenant-custom-nameservers-BrWMyslZ.mjs +3 -0
  187. package/dist/{tools-j8UGEtP1.mjs → tools-D9RZkZRc.mjs} +1 -1
  188. package/dist/tunnels-BkNPpTHa.mjs +5 -0
  189. package/dist/turnstile-MgwRECJv.mjs +23 -0
  190. package/dist/ui-DQSZeaG5.mjs +5 -0
  191. package/dist/url-info-Ddp7MgcI.mjs +2 -0
  192. package/dist/url-normalization-3ptK9ntV.mjs +3 -0
  193. package/dist/url-scanner-Psb9ollR.mjs +2 -0
  194. package/dist/user-DWdshcIu.mjs +12 -0
  195. package/dist/values-CDKQL1z2.mjs +2 -0
  196. package/dist/vectorize-CTYYUyQj.mjs +4 -0
  197. package/dist/waiting-rooms-BUdmwXDY.mjs +11 -0
  198. package/dist/web-assets-CpDwDEx8.mjs +8 -0
  199. package/dist/web3-YsjDyAzH.mjs +4 -0
  200. package/dist/workers-BKKxaZcz.mjs +6 -0
  201. package/dist/workers-builds-BWo5vUA9.mjs +2 -0
  202. package/dist/workers-for-platforms-ASJsxYdM.mjs +5 -0
  203. package/dist/workers-vpc-RkTnRvA2.mjs +3 -0
  204. package/dist/workflows-KrIFI9ns.mjs +5 -0
  205. package/dist/zaraz-DglXbVzZ.mjs +2 -0
  206. package/dist/zero-trust-RilTdSjX.mjs +91 -0
  207. package/dist/zone-DsBtVkvT.mjs +2 -0
  208. package/dist/zones-BFxvWFQW.mjs +44 -0
  209. package/package.json +1 -1
  210. package/dist/abuse-reports-D40QFl-y.mjs +0 -8
  211. package/dist/access-Dl2IU1ID.mjs +0 -11
  212. package/dist/account-CPbieCZ4.mjs +0 -2
  213. package/dist/account-tags-skfP7H8k.mjs +0 -9
  214. package/dist/accounts-CSgR6909.mjs +0 -28
  215. package/dist/acm-CVvCTaNk.mjs +0 -3
  216. package/dist/addressing-Uq5hEDDP.mjs +0 -13
  217. package/dist/agent-context-BvuDdaJb.mjs +0 -8
  218. package/dist/agent-memory-BrHMIU0E.mjs +0 -6
  219. package/dist/ai-audit-BoZuL84i.mjs +0 -2
  220. package/dist/ai-gateway-DE50Jem1.mjs +0 -13
  221. package/dist/ai-search-Fx7NHCHB.mjs +0 -7
  222. package/dist/ai-security-DyLbY9kv.mjs +0 -4
  223. package/dist/ai-v2fP1r0s.mjs +0 -5
  224. package/dist/alerting-5mFZjTcD.mjs +0 -6
  225. package/dist/analytics-BygTfozw.mjs +0 -3
  226. package/dist/analytics_engine-4L-q362P.mjs +0 -2
  227. package/dist/api-security-DjFsRYWx.mjs +0 -50
  228. package/dist/argo-TzXPN7tz.mjs +0 -2
  229. package/dist/args-CDgWUP4J.mjs +0 -2
  230. package/dist/artifacts-dEw2UUBV.mjs +0 -4
  231. package/dist/audit-logs-CqY7zzwv.mjs +0 -2
  232. package/dist/auth-CPLdkOC7.mjs +0 -5
  233. package/dist/auth-DY_Y2bXC.mjs +0 -9
  234. package/dist/billing-DHQuRT8S.mjs +0 -3
  235. package/dist/bot-management-CfqG79hF.mjs +0 -5
  236. package/dist/botnet-feed-BOeNnDoH.mjs +0 -3
  237. package/dist/brand-protection-DYttrKIM.mjs +0 -3
  238. package/dist/browser-extension-CTUCdgfn.mjs +0 -3
  239. package/dist/browser-run-373D4e1i.mjs +0 -4
  240. package/dist/build-D0ir_S70.mjs +0 -2
  241. package/dist/cache-DJXBmc3w.mjs +0 -7
  242. package/dist/calls-COO0Eoz1.mjs +0 -4
  243. package/dist/certificate-authorities-DbHLmKbd.mjs +0 -2
  244. package/dist/client-certificates-RBRqYP3f.mjs +0 -3
  245. package/dist/client-side-security-HOmA37et.mjs +0 -37
  246. package/dist/cloud-connector-C7hw1c1f.mjs +0 -2
  247. package/dist/cloudforce-one-DLOj76q4.mjs +0 -36
  248. package/dist/connector-interrupts-DY-z_LrH.mjs +0 -2
  249. package/dist/connector-telemetry-events-DCXmcAc9.mjs +0 -2
  250. package/dist/connector-telemetry-snapshots-D8GNuzx3.mjs +0 -2
  251. package/dist/connectors-fEOn-J_i.mjs +0 -3
  252. package/dist/containers-BDBsEs7-.mjs +0 -58
  253. package/dist/content-scan-Cmj9--XY.mjs +0 -4
  254. package/dist/csamScanner-BRXyMCyH.mjs +0 -6
  255. package/dist/ct-alerting-9AvYys-f.mjs +0 -3
  256. package/dist/custom-certificates-C5qrlyhb.mjs +0 -5
  257. package/dist/custom-csrs-BgOnTbBW.mjs +0 -3
  258. package/dist/custom-hostnames-CbQD9aYo.mjs +0 -5
  259. package/dist/custom-nameservers-2ZajBkRC.mjs +0 -3
  260. package/dist/custom-pages-Buki_Cb8.mjs +0 -3
  261. package/dist/d1-n2in0cSF.mjs +0 -20
  262. package/dist/data-security-DzOQMkv3.mjs +0 -7
  263. package/dist/dcv-delegation-BTP9LCOm.mjs +0 -2
  264. package/dist/diagnostics-BvHV8kQb.mjs +0 -3
  265. package/dist/directory-BeiSyg8A.mjs +0 -3
  266. package/dist/dispatch-namespaces-Dp8Jjpwy.mjs +0 -7
  267. package/dist/dist-DvizctjW.mjs +0 -48
  268. package/dist/dls-BwoU29mS.mjs +0 -3
  269. package/dist/dns-DISAfuzj.mjs +0 -29
  270. package/dist/dns-firewall-wBcCx_ua.mjs +0 -57
  271. package/dist/dry-run-ILZRVpnp.mjs +0 -2
  272. package/dist/durable-objects-DhDL3San.mjs +0 -2
  273. package/dist/email-auth-BROqK6-C.mjs +0 -2
  274. package/dist/email-routing-BZXHDAOO.mjs +0 -6
  275. package/dist/email-security-DVumybrk.mjs +0 -18
  276. package/dist/email-sending-CDQ3_wyz.mjs +0 -7
  277. package/dist/fieldExtractors-Cy1rxHEF.mjs +0 -3
  278. package/dist/firewall-C0g5X7Zd.mjs +0 -11
  279. package/dist/flagship-fFBiZUz-.mjs +0 -4
  280. package/dist/fraud-CjIETOaM.mjs +0 -20
  281. package/dist/google-tag-gateway-hPa5IHUx.mjs +0 -2
  282. package/dist/healthchecks-CoycpTf9.mjs +0 -4
  283. package/dist/hostnames-x_Yezxpr.mjs +0 -3
  284. package/dist/hyperdrive-BlfrTwSq.mjs +0 -21
  285. package/dist/iam-Bk7K_PPO.mjs +0 -6
  286. package/dist/images-BAEFb9q1.mjs +0 -8
  287. package/dist/intel-DDkyJVaP.mjs +0 -8
  288. package/dist/interactive-CRnq-B5I.mjs +0 -11
  289. package/dist/interactive-cytQzL94.mjs +0 -78
  290. package/dist/ips-DU0ti0i0.mjs +0 -2
  291. package/dist/keyless-certificates-E1P9jBTb.mjs +0 -3
  292. package/dist/keys-DqldTZqH.mjs +0 -2
  293. package/dist/kv-CcfCfnwq.mjs +0 -5
  294. package/dist/leaked-credential-checks-CqmKaEbd.mjs +0 -4
  295. package/dist/load-balancers-Dg4pDad1.mjs +0 -6
  296. package/dist/logexplorer-Bu2mG5rh.mjs +0 -17
  297. package/dist/logo-matches-CWUzxY7G.mjs +0 -2
  298. package/dist/logos-BTfdkDPi.mjs +0 -3
  299. package/dist/logpush-BZyay3h2.mjs +0 -4
  300. package/dist/logs-BqF7jjQO.mjs +0 -3
  301. package/dist/magic-cloud-networking-Dhd8pTyM.mjs +0 -5
  302. package/dist/magic-network-monitoring-D0FnkjuN.mjs +0 -4
  303. package/dist/magic-transit-B5skt0G7.mjs +0 -111
  304. package/dist/managed-transforms-B6X_crcJ.mjs +0 -3
  305. package/dist/matches-DeYaB4I0.mjs +0 -2
  306. package/dist/mcp-ChjBiMx2.mjs +0 -4
  307. package/dist/mesh-DRVAFLBX.mjs +0 -4
  308. package/dist/moq-DE7VDEFS.mjs +0 -13
  309. package/dist/mtls-certificates-Cbc3uAkN.mjs +0 -3
  310. package/dist/network-CDPZNFbn.mjs +0 -6
  311. package/dist/network-interconnects-CMRs_chR.mjs +0 -41
  312. package/dist/oauth-DAa7SwkM.mjs +0 -14
  313. package/dist/oauth-clients-DAI_gcuL.mjs +0 -4
  314. package/dist/oauth-scopes-BE6xF4_h.mjs +0 -2
  315. package/dist/observability-DnyI8rPJ.mjs +0 -4
  316. package/dist/organization-yh0mSUdI.mjs +0 -41
  317. package/dist/organizations-B3aU-RCG.mjs +0 -2
  318. package/dist/origin-ca-certificates-BaNWfVqf.mjs +0 -3
  319. package/dist/origin-post-quantum-encryption-CIUtQgyv.mjs +0 -2
  320. package/dist/origin-tls-client-auth-CvEpbX2Q.mjs +0 -4
  321. package/dist/page-rules-CzbyXbt6.mjs +0 -27
  322. package/dist/pages-CX8yefTI.mjs +0 -14
  323. package/dist/pay-per-crawl-v4vBOMWD.mjs +0 -4
  324. package/dist/pipelines-BZ1KGupx.mjs +0 -6
  325. package/dist/precursor-D42A9ay5.mjs +0 -4
  326. package/dist/progress-jYW64HY7.mjs +0 -2
  327. package/dist/project-settings-BN7tL0c7.mjs +0 -3
  328. package/dist/prompt-CyATfGUu.mjs +0 -3
  329. package/dist/queries-xvETUjUE.mjs +0 -3
  330. package/dist/queues-CpqHDtxF.mjs +0 -6
  331. package/dist/r2-data-catalog-DgKmlTKR.mjs +0 -16
  332. package/dist/r2-jhmLvD1z.mjs +0 -24
  333. package/dist/radar-C2J16wpX.mjs +0 -2
  334. package/dist/rate-limits-CoH9Xma0.mjs +0 -5
  335. package/dist/raw-fetch-CNKIypJ7.mjs +0 -2
  336. package/dist/realtimekit-CDs0Z5WW.mjs +0 -7
  337. package/dist/registrar-BI5ewTAk.mjs +0 -23
  338. package/dist/registrar-sandbox-al1znWMc.mjs +0 -61
  339. package/dist/reporting-CxsdHAH3.mjs +0 -2
  340. package/dist/request-tracers-DJJCncft.mjs +0 -2
  341. package/dist/resource-sharing-qQGn8AEn.mjs +0 -3
  342. package/dist/resource-tagging-aTtpX5e5.mjs +0 -2
  343. package/dist/rules-PpsDU89Q.mjs +0 -4
  344. package/dist/rulesets-DP12Aqik.mjs +0 -5
  345. package/dist/rum-DxvpzJYc.mjs +0 -4
  346. package/dist/schema-DlLbiOJj.mjs +0 -2
  347. package/dist/scim-DJ4AVU20.mjs +0 -4
  348. package/dist/secrets-store-D6KDNo_s.mjs +0 -7
  349. package/dist/security-center-008FMs_z.mjs +0 -2
  350. package/dist/security-txt-CqcfrhlN.mjs +0 -3
  351. package/dist/share-D5fzsVAJ.mjs +0 -5
  352. package/dist/smart-shield-DpFscIk8.mjs +0 -4
  353. package/dist/snippets-CCKgI2ZX.mjs +0 -4
  354. package/dist/spectrum-LmdqY3ki.mjs +0 -7
  355. package/dist/speed-CEK36h3A.mjs +0 -4
  356. package/dist/src-CEb2fgtT.mjs +0 -108
  357. package/dist/ssl-ChHUyaQm.mjs +0 -15
  358. package/dist/state-DeX23Kmg.mjs +0 -2
  359. package/dist/stream-DfUSELMX.mjs +0 -14
  360. package/dist/submit-DF2G5CIz.mjs +0 -2
  361. package/dist/tags-nFJJHlLJ.mjs +0 -2
  362. package/dist/tenant-CRLw1oRU.mjs +0 -2
  363. package/dist/tenant-custom-nameservers-BvBQRDcs.mjs +0 -3
  364. package/dist/tunnel-CMQeBgmb.mjs +0 -5
  365. package/dist/tunnels-iVA3MrdS.mjs +0 -2
  366. package/dist/turnstile-DQHP6-_b.mjs +0 -23
  367. package/dist/ui-DJFcf61J.mjs +0 -5
  368. package/dist/url-info-BVgdb_pf.mjs +0 -2
  369. package/dist/url-normalization-BTcxLxIQ.mjs +0 -3
  370. package/dist/url-scanner-DwuDZLPk.mjs +0 -2
  371. package/dist/user-I_MbB_KX.mjs +0 -12
  372. package/dist/values-S-Q7-5o8.mjs +0 -2
  373. package/dist/vectorize-CNZdF_0A.mjs +0 -4
  374. package/dist/waiting-rooms-Bo-OSsxu.mjs +0 -11
  375. package/dist/web-assets-tlFzKdNL.mjs +0 -8
  376. package/dist/web3-CdbfoZ2x.mjs +0 -4
  377. package/dist/workers-DQ9Q7czn.mjs +0 -28
  378. package/dist/workers-builds-CGRhYx-x.mjs +0 -9
  379. package/dist/workflows-BhEy-crm.mjs +0 -5
  380. package/dist/zaraz-DbKvA_8C.mjs +0 -2
  381. package/dist/zero-trust-DrHCPVOc.mjs +0 -93
  382. package/dist/zone-D2zrbJI2.mjs +0 -2
  383. package/dist/zones-DrpxQ_-A.mjs +0 -21
  384. /package/dist/{Page-9ry_XAVC.mjs → Page-C-JHZnIy.mjs} +0 -0
  385. /package/dist/{alerts-9PR5sQ_z.mjs → alerts-B2SJO4nd.mjs} +0 -0
  386. /package/dist/{autorag-Bevo1kIH.mjs → autorag-iNjZXw1n.mjs} +0 -0
  387. /package/dist/{body-parser-BGVbwPeM.mjs → body-parser-DIlfApuJ.mjs} +0 -0
  388. /package/dist/{brands-C4M04Man.mjs → brands-BrVnNrT3.mjs} +0 -0
  389. /package/dist/{chunk-6EUZQHAF-C3w62dek.mjs → chunk-6EUZQHAF-B7bSMYLe.mjs} +0 -0
  390. /package/dist/{chunk-Q72B4Q5Z-DVMMVVEs.mjs → chunk-Q72B4Q5Z-CPy_WJKU.mjs} +0 -0
  391. /package/dist/{clear-DS0eRXOc.mjs → clear-an9o3dJ3.mjs} +0 -0
  392. /package/dist/{cli-types-C3nVfpSG.mjs → cli-types-CrSoSMPF.mjs} +0 -0
  393. /package/dist/{connector-telemetry-events-latest-CKKG6_pD.mjs → connector-telemetry-events-latest-BqWfopFc.mjs} +0 -0
  394. /package/dist/{connector-telemetry-snapshots-latest-Bv5OddJr.mjs → connector-telemetry-snapshots-latest-C1m9U1En.mjs} +0 -0
  395. /package/dist/{domain-info-BUiaGCEq.mjs → domain-info-B0Ykqv5l.mjs} +0 -0
  396. /package/dist/{health-vX6Ml2Na.mjs → health-CIUg1C5o.mjs} +0 -0
  397. /package/dist/{input-validation-1esLElok.mjs → input-validation-BxchZ9jE.mjs} +0 -0
  398. /package/dist/{internal-ROz7anul.mjs → internal-DmpATljO.mjs} +0 -0
  399. /package/dist/{live-CSxvigCS.mjs → live-B66u3_0g.mjs} +0 -0
  400. /package/dist/{metadata-DEqBUaSv.mjs → metadata-D062SVyy.mjs} +0 -0
  401. /package/dist/{public-BMg6-Hxh-DgIH5obr.mjs → public-BMg6-Hxh-BfUOZTDP.mjs} +0 -0
  402. /package/dist/{rate-limit-analytics-CgHgKjmV.mjs → rate-limit-analytics-BknoecoM.mjs} +0 -0
  403. /package/dist/{ready-6G9zVGPJ.mjs → ready-C-H2cwp_.mjs} +0 -0
  404. /package/dist/{recent-submissions-B3Smh-QM.mjs → recent-submissions-DyuH_n5u.mjs} +0 -0
  405. /package/dist/{refute-DjkmLSNe.mjs → refute-uSlzkQKq.mjs} +0 -0
  406. /package/dist/{resolve-DEvdeprv.mjs → resolve-B8CyM1mi.mjs} +0 -0
  407. /package/dist/{scan-logo-545qLcGs.mjs → scan-logo-DMk--WT7.mjs} +0 -0
  408. /package/dist/{scan-page-DRQiVufl.mjs → scan-page-DEHnAOJo.mjs} +0 -0
  409. /package/dist/{schemas-BFCBlp_W.mjs → schemas-O_ZNaF8R.mjs} +0 -0
  410. /package/dist/{search-CXbqFoqe.mjs → search-BlKeSfVD.mjs} +0 -0
  411. /package/dist/{signed-url-rU_nvgFA.mjs → signed-url-CiGmGkLQ.mjs} +0 -0
  412. /package/dist/{submission-info-D6PgXNQP.mjs → submission-info-DHlTHDrs.mjs} +0 -0
  413. /package/dist/{theme-CrIBazAF.mjs → theme-CeVf-5qG.mjs} +0 -0
  414. /package/dist/{total-queries-XkFyu8H5.mjs → total-queries-D5WvVfYi.mjs} +0 -0
  415. /package/dist/{tracked-domains-CmcRXHj_.mjs → tracked-domains-9deBK9bp.mjs} +0 -0
  416. /package/dist/{verify-CM1NakP0.mjs → verify-S-TmhUDr.mjs} +0 -0
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n}from"./oauth-DH3kMXSs.mjs";import{r}from"./auth-tvDdC1J-.mjs";import{t as i}from"./output-COcSQsfn.mjs";import{t as a}from"./dry-run-DiVy1lVo.mjs";import{t as o}from"./progress-V6SZV3Ux.mjs";import{t as s}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as c,t as l}from"./body-parser-DIlfApuJ.mjs";import{n as u}from"./input-validation-BxchZ9jE.mjs";import{a as d,n as f}from"./prompt-DjRTpML4.mjs";import{t as p}from"./cli-types-CrSoSMPF.mjs";function m(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Lists the number of secrets used in the account.`,builder:m,handler:async c=>s({command:`secrets-store quota get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store quota get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/quota`,pathParams:{},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.quota.get({account_id:l})),{successLabel:`Loaded`})})},g={command:`quota`,describe:`Account quota limits for secrets stores, secrets count, and storage capacity`,builder:e=>e.command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function _(e){return e.positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const v={command:`create <store-id>`,describe:`Creates a secret in the account.`,builder:_,handler:async l=>s({command:`secrets-store secrets bulk create`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){a({command:`cf secrets-store secrets bulk create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${l[`store-id`]==null?`<store-id>`:encodeURIComponent(String(l[`store-id`]))}/secrets`,pathParams:{"store-id":String(l[`store-id`]??``)},bodyKind:`json`,body:l.body===void 0?void 0:c(l.body)});return}let s=await r(l),u=l.local?e:await t();if(l.accountId=u,l.body){let e=c(l.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.bulk.create({body:e,account_id:u,store_id:l[`store-id`]})),{successLabel:`Created`});return}if(l.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};function y(e){return e.positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`ids`,{type:`string`,array:!0,description:`List of secret identifier tags to delete.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Request body for bulk deleting secrets.`})}const b={command:`delete <store-id>`,describe:`Deletes one or more secrets.`,builder:y,handler:async u=>s({command:`secrets-store secrets bulk delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},u,async()=>{if(u.dryRun){a({command:`cf secrets-store secrets bulk delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${u[`store-id`]==null?`<store-id>`:encodeURIComponent(String(u[`store-id`]))}/secrets`,pathParams:{"store-id":String(u[`store-id`]??``)},bodyKind:`json`,body:u.body===void 0?l({ids:u.ids}):c(u.body)});return}let s=await r(u),d=u.local?e:await t();if(u.accountId=d,!await f({force:!!u.force})){process.stderr.write(`Aborted.
3
+ `);return}if(u.body){let e=c(u.body);i(await o(`Deleting`,async()=>s.secretsStore.secrets.bulk.delete({...e,account_id:d,store_id:u[`store-id`]})),{successLabel:`Deleted`});return}if(u.ids===void 0)throw Error(`--ids is required (or pass --body with this field set).`);let p=l({ids:u.ids});i(await o(`Deleting`,async()=>s.secretsStore.secrets.bulk.delete({...p,account_id:d,store_id:u[`store-id`]})),{successLabel:`Deleted`})})},x={command:`bulk`,describe:`Operations for secrets.bulk`,builder:e=>e.command(v).command(b).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function S(e){return e.positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const C={command:`delete <secret-id>`,describe:`Deletes a single secret.`,builder:S,handler:async c=>s({command:`secrets-store secrets delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();if(c.accountId=l,!await f({force:!!c.force})){process.stderr.write(`Aborted.
4
+ `);return}i(await o(`Deleting`,async()=>s.secretsStore.secrets.delete({account_id:l,store_id:c[`store-id`],secret_id:c[`secret-id`]})),{successLabel:`Deleted`})})};function w(e){return e.positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`name`,{type:`string`,description:`The name of the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).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 T={command:`duplicate <secret-id>`,describe:`Creates a duplicate of the secret, keeping the value.`,builder:w,handler:async f=>s({command:`secrets-store secrets duplicate`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf secrets-store secrets duplicate`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${f[`store-id`]==null?`<store-id>`:encodeURIComponent(String(f[`store-id`]))}/secrets/${f[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(f[`secret-id`]))}/duplicate`,pathParams:{"store-id":String(f[`store-id`]??``),"secret-id":String(f[`secret-id`]??``)},bodyKind:`json`,body:f.body===void 0?l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...e,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`});return}if(f.name===void 0&&(f.name=await d(`name`,`The name of the secret.`)),f.scopes===void 0)throw Error(`--scopes is required (or pass --body with this field set).`);let m=l({comment:u(f.comment,`comment`,`text`),name:u(f.name,`name`,`text`),scopes:f.scopes});i(await o(`Creating`,async()=>s.secretsStore.secrets.duplicate({...m,account_id:p,store_id:f[`store-id`],secret_id:f[`secret-id`]})),{successLabel:`Created`})})};function E(e){return e.positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`comment`,{type:`string`,description:`Freeform text describing the secret.`}).option(`scopes`,{type:`string`,array:!0,description:`The list of services that can use this secret.`}).option(`value`,{type:`string`,description:`The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - the API never returns this value; it exists only to create or modify secrets.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const D={command:`edit <secret-id>`,describe:`Updates a single secret.`,builder:E,handler:async d=>s({command:`secrets-store secrets edit`,classification:{safeFlags:[`dry-run`]}},d,async()=>{if(d.dryRun){a({command:`cf secrets-store secrets edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${d[`store-id`]==null?`<store-id>`:encodeURIComponent(String(d[`store-id`]))}/secrets/${d[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(d[`secret-id`]))}`,pathParams:{"store-id":String(d[`store-id`]??``),"secret-id":String(d[`secret-id`]??``)},bodyKind:`json`,body:d.body===void 0?l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)}):c(d.body)});return}let s=await r(d),f=d.local?e:await t();if(d.accountId=f,d.body){let e=c(d.body);i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...e,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`});return}let p=l({comment:u(d.comment,`comment`,`text`),scopes:d.scopes,value:u(d.value,`value`,`text`)});i(await o(`Updating`,async()=>s.secretsStore.secrets.edit({...p,account_id:f,store_id:d[`store-id`],secret_id:d[`secret-id`]})),{successLabel:`Updated`})})};function O(e){return e.positional(`secret-id`,{type:`string`,description:`Secret identifier.`,demandOption:!0}).option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get <secret-id>`,describe:`Returns details of a single secret.`,builder:O,handler:async c=>s({command:`secrets-store secrets get`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store secrets get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets/${c[`secret-id`]==null?`<secret-id>`:encodeURIComponent(String(c[`secret-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``),"secret-id":String(c[`secret-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.secrets.get({account_id:l,store_id:c[`store-id`],secret_id:c[`secret-id`]})),{successLabel:`Loaded`})})};function A(e){return e.option(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`search`,{type:`string`,description:`Search secrets using a filter string, filtering across name and comment.`}).option(`order`,{type:`string`,description:`Order secrets by values in the given field.`,choices:[`name`,`comment`,`created`,`modified`,`status`]}).option(`scopes`,{type:`string`,description:`Only secrets with the given scopes will be returned.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`list`,describe:`Lists all store secrets.`,builder:p(A),handler:async c=>s({command:`secrets-store secrets list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],search:c.search,order:c.order,scopes:c.scopes};if(c.dryRun){a({command:`cf secrets-store secrets list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}/secrets`,pathParams:{"store-id":String(c[`store-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.secrets.list({account_id:u,store_id:c[`store-id`],...s})),{successLabel:`Loaded`})})},M={command:`secrets`,describe:`Encrypted key-value secrets within a store. Pass --store-id to scope.`,builder:e=>e.command(C).command(T).command(D).command(k).command(j).command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.option(`name`,{type:`string`,description:`The name of the store.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`create`,describe:`Creates a store in the account.`,builder:N,handler:async f=>s({command:`secrets-store stores create`,classification:{safeFlags:[`dry-run`]}},f,async()=>{if(f.dryRun){a({command:`cf secrets-store stores create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores`,pathParams:{},bodyKind:`json`,body:f.body===void 0?l({name:u(f.name,`name`,`text`)}):c(f.body)});return}let s=await r(f),p=f.local?e:await t();if(f.accountId=p,f.body){let e=c(f.body);i(await o(`Creating`,async()=>s.secretsStore.stores.create({...e,account_id:p})),{successLabel:`Created`});return}f.name===void 0&&(f.name=await d(`name`,`The name of the store.`));let m=l({name:u(f.name,`name`,`text`)});i(await o(`Creating`,async()=>s.secretsStore.stores.create({...m,account_id:p})),{successLabel:`Created`})})};function F(e){return e.positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`force`,{type:`boolean`,description:`When true, cascade-deletes all secrets in the store before deleting the store itself.
5
+ Required when deleting a non-empty store. Without this parameter, attempting to
6
+ delete a non-empty store returns 409.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const I={command:`delete <store-id>`,describe:'Deletes a single store. By default, a store that still contains secrets cannot be deleted and returns HTTP 409 (Conflict) with the "store_not_empty" error. Pass `force=true` to cascade-delete all secrets in the store. Empty stores are always deleted regardless of the force parameter.',builder:F,handler:async c=>s({command:`secrets-store stores delete`,classification:{safeFlags:[`force`,`dry-run`]}},c,async()=>{let s={force:c.force};if(c.dryRun){a({command:`cf secrets-store stores delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``)},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();if(c.accountId=u,!await f({force:!!c.force})){process.stderr.write(`Aborted.
7
+ `);return}i(await o(`Deleting`,async()=>l.secretsStore.stores.delete({account_id:u,store_id:c[`store-id`],...s})),{successLabel:`Deleted`})})};function L(e){return e.option(`direction`,{type:`string`,description:`Direction to sort objects.`,choices:[`asc`,`desc`]}).option(`page`,{type:`number`,description:`Page number.`}).option(`per-page`,{type:`number`,description:`Number of objects to return per page.`}).option(`order`,{type:`string`,description:`Order stores by values in the given field.`,choices:[`name`,`created`,`modified`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const R={command:`list`,describe:`Lists all the stores in an account.`,builder:p(L),handler:async c=>s({command:`secrets-store stores list`,classification:{safeFlags:[`direction`,`order`,`dry-run`]}},c,async()=>{let s={direction:c.direction,page:c.page,per_page:c[`per-page`],order:c.order};if(c.dryRun){a({command:`cf secrets-store stores list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores`,pathParams:{},query:s,bodyKind:`none`});return}let l=await r(c),u=c.local?e:await t();c.accountId=u,i(await o(`Loading`,async()=>l.secretsStore.stores.list({account_id:u,...s})),{successLabel:`Loaded`})})},z={command:`stores`,describe:`Secret stores that hold encrypted key-value secrets accessible by Workers and services`,builder:e=>e.command(P).command(I).command(R).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function B(e){return e.positional(`store-id`,{type:`string`,description:`Store identifier.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const V={command:`id <store-id>`,describe:`Returns details of a single store.`,builder:B,handler:async c=>s({command:`secrets-store system-stores get by id`,classification:{safeFlags:[`dry-run`]}},c,async()=>{if(c.dryRun){a({command:`cf secrets-store system-stores get by id`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/secrets_store/stores/${c[`store-id`]==null?`<store-id>`:encodeURIComponent(String(c[`store-id`]))}`,pathParams:{"store-id":String(c[`store-id`]??``)},bodyKind:`none`});return}let s=await r(c),l=c.local?e:await t();c.accountId=l,i(await o(`Loading`,async()=>s.secretsStore.systemStores.get.by.id({account_id:l,store_id:c[`store-id`]})),{successLabel:`Loaded`})})},H={command:`by`,describe:`Operations for system-stores.get.by`,builder:e=>e.command(V).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},U={command:`get`,describe:`Operations for system-stores.get`,builder:e=>e.command(H).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},W={command:`system-stores`,describe:`Operations for system-stores`,builder:e=>e.command(U).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},G={command:`secrets-store`,describe:`Centralized secret management — store API keys, tokens, and credentials for use across Workers and other products`,builder:e=>e.command(g).command(M).command(z).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{G as default};
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import{t as e}from"./local-C6XsFD_W.mjs";import{f as t,g as n,h as r}from"./oauth-DH3kMXSs.mjs";import{r as i}from"./auth-tvDdC1J-.mjs";import{t as a}from"./output-COcSQsfn.mjs";import{t as o}from"./dry-run-DiVy1lVo.mjs";import{t as s}from"./progress-V6SZV3Ux.mjs";import{t as c}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as l,t as u}from"./body-parser-DIlfApuJ.mjs";import{n as d}from"./input-validation-BxchZ9jE.mjs";import{t as f}from"./cli-types-CrSoSMPF.mjs";function p(e){return e.positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get <issue-id>`,describe:`Lists audit log entries for a specific Security Center insight, showing changes to its status and classification over time.`,builder:f(p),handler:async l=>c({command:`security-center audit-logs get`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/${l[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(l[`issue-id`]))}/audit-log`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r),"issue-id":String(l[`issue-id`]??``)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.get({account_or_zone:d,account_or_zone_id:f,issue_id:l[`issue-id`],...c})),{successLabel:`Loaded`})})};function h(e){return e.option(`per-page`,{type:`number`,description:`Number of results per page.`}).option(`cursor`,{type:`string`,description:`Opaque cursor for pagination. Use the cursor value from result_info of the previous response.`}).option(`field-changed`,{type:`string`,description:`Filter by the field that was changed.`,choices:[`status`,`user_classification`]}).option(`changed-by`,{type:`string`,description:`Filter by the actor that made the change.`}).option(`since`,{type:`string`,description:`Filter entries changed at or after this timestamp (RFC 3339).`}).option(`before`,{type:`string`,description:`Filter entries changed before this timestamp (RFC 3339).`}).option(`order`,{type:`string`,description:`Sort order for results. Use 'asc' for oldest first or 'desc' for newest first.`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const g={command:`list`,describe:`Lists audit log entries for all Security Center insights in the account or zone, showing changes to insight status and classification.`,builder:f(h),handler:async l=>c({command:`security-center audit-logs list`,classification:{safeFlags:[`field-changed`,`order`,`dry-run`]}},l,async()=>{let c={per_page:l[`per-page`],cursor:l.cursor,field_changed:l[`field-changed`],changed_by:l[`changed-by`],since:l.since,before:l.before,order:l.order};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center audit-logs list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/audit-log`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.auditLogs.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},_={command:`audit-logs`,describe:`Operations for audit-logs`,builder:e=>e.command(m).command(g).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function v(e){return e.option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const y={command:`get`,describe:`Retrieves Security Center insight counts aggregated by classification class.`,builder:f(v),handler:async l=>c({command:`security-center insights class get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights class get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/class`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.class.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},b={command:`class`,describe:`Operations for insights.class`,builder:e=>e.command(y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function x(e){return e.positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dismiss`,{type:`boolean`,description:`The dismiss 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 S={command:`dismiss <issue-id>`,describe:`Archives a Security Center insight for an account or zone, removing it from the active insights list while preserving historical data.`,builder:x,handler:async d=>c({command:`security-center insights dismiss`,classification:{safeFlags:[`dismiss`,`dry-run`]}},d,async()=>{if(d.dryRun){let e=d.zone===void 0?await n():void 0,t=d.zone===void 0?`accounts`:`zones`,r=d.zone??e??`<account-id>`;o({command:`cf security-center insights dismiss`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/${d[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(d[`issue-id`]))}/dismiss`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r),"issue-id":String(d[`issue-id`]??``)},bodyKind:`json`,body:d.body===void 0?u({dismiss:d.dismiss}):l(d.body)});return}let c=await i(d),f=d.zone===void 0?`accounts`:`zones`,p=f===`zones`?await r({zone:d.zone},c,{quiet:d.quiet}):d.local?e:await t();if(f===`zones`?d.zoneId=p:d.accountId=p,d.body){let e=l(d.body);a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...e,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`});return}let m=u({dismiss:d.dismiss});a(await s(`Updating`,async()=>c.securityCenter.insights.dismiss({...m,account_or_zone:f,account_or_zone_id:p,issue_id:d[`issue-id`]})),{successLabel:`Updated`})})};function C(e){return e.option(`source`,{type:`string`,description:`Source`,choices:[`riskrecon`],demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const w={command:`get-partner-count`,describe:`Retrieves the uncapped count of active, non-dismissed, unclassified RiskRecon insights for the account or zone.`,builder:f(C),handler:async l=>c({command:`security-center insights get-partner-count`,classification:{safeFlags:[`source`,`dry-run`]}},l,async()=>{let c={source:l.source};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights get-partner-count`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/partner-count`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.getPartnerCount({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function T(e){return e.option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`page`,{type:`number`,description:`Specifies the current page within paginated list of results.`}).option(`per-page`,{type:`number`,description:`Sets the number of results per page of results.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`Lists all Security Center insights for the account or zone, showing security findings and recommendations.`,builder:f(T),handler:async l=>c({command:`security-center insights list`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject,page:l.page,per_page:l[`per-page`]};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.list({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})};function D(e){return e.option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const O={command:`get`,describe:`Retrieves Security Center insight counts aggregated by severity level (critical, high, medium, low).`,builder:f(D),handler:async l=>c({command:`security-center insights severity get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights severity get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/severity`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.severity.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},k={command:`severity`,describe:`Operations for insights.severity`,builder:e=>e.command(O).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function A(e){return e.option(`dismissed`,{type:`boolean`,description:`Dismissed`}).option(`issue-class`,{type:`string`,description:`Issue class`}).option(`issue-type`,{type:`string`,description:`Issue type`}).option(`product`,{type:`string`,description:`Product`}).option(`source`,{type:`string`,description:`Source`}).option(`severity`,{type:`string`,description:`Severity`}).option(`subject`,{type:`string`,description:`Subject`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const j={command:`get`,describe:`Retrieves Security Center insight counts aggregated by insight type.`,builder:f(A),handler:async l=>c({command:`security-center insights type get`,classification:{safeFlags:[`dismissed`,`dry-run`]}},l,async()=>{let c={dismissed:l.dismissed,issue_class:l[`issue-class`],issue_type:l[`issue-type`],product:l.product,source:l.source,severity:l.severity,subject:l.subject};if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center insights type get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/type`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},query:c,bodyKind:`none`});return}let u=await i(l),d=l.zone===void 0?`accounts`:`zones`,f=d===`zones`?await r({zone:l.zone},u,{quiet:l.quiet}):l.local?e:await t();d===`zones`?l.zoneId=f:l.accountId=f,a(await s(`Loading`,async()=>u.securityCenter.insights.type.get({account_or_zone:d,account_or_zone_id:f,...c})),{successLabel:`Loaded`})})},M={command:`type`,describe:`Operations for insights.type`,builder:e=>e.command(j).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function N(e){return e.positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`classification`,{type:`string`,description:`User-defined classification for the insight. Can be 'false_positive', 'accept_risk', 'other', or null.`,choices:[`false_positive`,`accept_risk`,`other`]}).option(`rationale`,{type:`string`,description:`Rationale for the classification change. Required when classification is 'accept_risk' or 'other'.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const P={command:`update-classification <issue-id>`,describe:`Updates the user classification for a Security Center insight. Valid values are 'false_positive' or 'accept_risk'. To reset, set classification to null. Cannot change directly between classification values - must reset to null first.`,builder:N,handler:async f=>c({command:`security-center insights update-classification`,classification:{safeFlags:[`classification`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await n():void 0,t=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-center insights update-classification`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/${f[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(f[`issue-id`]))}/classification`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r),"issue-id":String(f[`issue-id`]??``)},bodyKind:`json`,body:f.body===void 0?u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await r({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await t();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...e,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`});return}let h=u({classification:d(f.classification,`classification`,`text`),rationale:d(f.rationale,`rationale`,`text`)});a(await s(`Updating`,async()=>c.securityCenter.insights.updateClassification({...h,account_or_zone:p,account_or_zone_id:m,issue_id:f[`issue-id`]})),{successLabel:`Updated`})})},F={command:`insights`,describe:`Security findings and recommendations across your account — DNS, SSL, WAF misconfigurations, etc.`,builder:e=>e.command(S).command(w).command(E).command(P).command(b).command(k).command(M).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function I(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const L={command:`list`,describe:`Returns the most recent on-demand scans for the account or zone, up to a maximum of 5. Each scan includes its ID, start time, and current status. This includes both account or zone-wide and zone-scoped scans. Also returns quota information showing how many scans have been used and how many remain in the current 24-hour window.`,builder:I,handler:async l=>c({command:`security-center scans list`,classification:{safeFlags:[`dry-run`]}},l,async()=>{if(l.dryRun){let e=l.zone===void 0?await n():void 0,t=l.zone===void 0?`accounts`:`zones`,r=l.zone??e??`<account-id>`;o({command:`cf security-center scans list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},bodyKind:`none`});return}let c=await i(l),u=l.zone===void 0?`accounts`:`zones`,d=u===`zones`?await r({zone:l.zone},c,{quiet:l.quiet}):l.local?e:await t();u===`zones`?l.zoneId=d:l.accountId=d,a(await s(`Loading`,async()=>c.securityCenter.scans.list({account_or_zone:u,account_or_zone_id:d})),{successLabel:`Loaded`})})};function R(e){return e.option(`issue-type`,{type:`string`,description:`The issue_type field`,choices:[`compliance_violation`,`email_security`,`exposed_infrastructure`,`insecure_configuration`,`weak_authentication`,`configuration_suggestion`]}).option(`issue-class`,{type:`string`,description:`The issue_class field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Request body for starting an on-demand scan. Specify issue_type or issue_class to scope the scan, or provide an empty object to scan all issue types.`}).conflicts(`issue-type`,[`issue-class`]).conflicts(`issue-class`,[`issue-type`])}const z={command:`start`,describe:`Initiates an on-demand security scan for the entire account or zone, scanning all zones associated with the account or zone. Rate limited to 5 scans per account or zone per 24-hour window.`,builder:R,handler:async f=>c({command:`security-center scans start`,classification:{safeFlags:[`issue-type`,`dry-run`]}},f,async()=>{if(f.dryRun){let e=f.zone===void 0?await n():void 0,t=f.zone===void 0?`accounts`:`zones`,r=f.zone??e??`<account-id>`;o({command:`cf security-center scans start`,method:`POST`,url:`https://api.cloudflare.com/client/v4/${t}/${r}/security-center/insights/scans`,pathParams:{"account-or-zone":String(t),"account-or-zone-id":String(r)},bodyKind:`json`,body:f.body===void 0?u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)}):l(f.body)});return}let c=await i(f),p=f.zone===void 0?`accounts`:`zones`,m=p===`zones`?await r({zone:f.zone},c,{quiet:f.quiet}):f.local?e:await t();if(p===`zones`?f.zoneId=m:f.accountId=m,f.body){let e=l(f.body);a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:e,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`});return}let h=u({issue_type:d(f[`issue-type`],`issue-type`,`text`),issue_class:d(f[`issue-class`],`issue-class`,`text`)});a(await s(`Creating`,async()=>c.securityCenter.scans.start({body:h,account_or_zone:p,account_or_zone_id:m})),{successLabel:`Created`})})},B={command:`scans`,describe:`Operations for scans`,builder:e=>e.command(L).command(z).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function V(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const H={command:`get`,describe:`Returns account-level Security Center state: whether scans are enabled for the account and whether the account was recently reactivated from a dormant state.`,builder:V,handler:async r=>c({command:`security-center state get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf security-center state get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.state.get({account_id:l})),{successLabel:`Loaded`})})};function U(e){return e.option(`scans-enabled`,{type:`boolean`,description:`Enable or disable scans for the account.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const W={command:`update`,describe:`Updates account-level Security Center state. Currently supports enabling or disabling scans for the account. Returns the account's state after the update.`,builder:U,handler:async r=>c({command:`security-center state update`,classification:{safeFlags:[`scans-enabled`,`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf security-center state update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/security-center/state`,pathParams:{},bodyKind:`json`,body:r.body===void 0?u({scans_enabled:r[`scans-enabled`]}):l(r.body)});return}let c=await i(r),d=r.local?e:await t();if(r.accountId=d,r.body){let e=l(r.body);a(await s(`Updating`,async()=>c.securityCenter.state.update({...e,account_id:d})),{successLabel:`Updated`});return}if(r[`scans-enabled`]===void 0)throw Error(`--scans-enabled is required (or pass --body with this field set).`);let f=u({scans_enabled:r[`scans-enabled`]});a(await s(`Updating`,async()=>c.securityCenter.state.update({...f,account_id:d})),{successLabel:`Updated`})})},G={command:`state`,describe:`Operations for state`,builder:e=>e.command(H).command(W).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};function K(e){return e.positional(`issue-id`,{type:`string`,description:`Issue ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const q={command:`get <issue-id>`,describe:`Returns the full context payload for an insight. This endpoint is used for insights with large payloads that are not included inline in the list response.`,builder:K,handler:async r=>c({command:`security-center zone-insights context get`,classification:{safeFlags:[`dry-run`]}},r,async()=>{if(r.dryRun){o({command:`cf security-center zone-insights context get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${await n()??`<account-id>`}/security-center/insights/${r[`issue-id`]==null?`<issue-id>`:encodeURIComponent(String(r[`issue-id`]))}/context`,pathParams:{"issue-id":String(r[`issue-id`]??``)},bodyKind:`none`});return}let c=await i(r),l=r.local?e:await t();r.accountId=l,a(await s(`Loading`,async()=>c.securityCenter.zoneInsights.context.get({account_id:l,issue_id:r[`issue-id`]})),{successLabel:`Loaded`})})},J={command:`context`,describe:`Operations for zone-insights.context`,builder:e=>e.command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`zone-insights`,describe:`Zone-scoped security insights — counts by class, severity, type, and dismissal`,builder:e=>e.command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},X={command:`security-center`,describe:`Security posture dashboard — view and manage security insights, misconfigurations, and vulnerabilities`,builder:e=>e.command(_).command(F).command(B).command(G).command(Y).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{X as default};
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import{h as e}from"./oauth-DH3kMXSs.mjs";import{r as t}from"./auth-tvDdC1J-.mjs";import{t as n}from"./output-COcSQsfn.mjs";import{t as r}from"./dry-run-DiVy1lVo.mjs";import{t as i}from"./progress-V6SZV3Ux.mjs";import{t as a}from"./run-CRfinkSe.mjs";import"./telemetry-Ch1vCICm.mjs";import{n as o,t as s}from"./body-parser-DIlfApuJ.mjs";import{n as c}from"./input-validation-BxchZ9jE.mjs";import{n as l}from"./prompt-DjRTpML4.mjs";function u(e){return e.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 d={command:`delete`,describe:`Removes the security.txt file configuration for a zone. The /.well-known/security.txt endpoint will no longer be served.`,builder:u,handler:async o=>a({command:`security-txt delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},o,async()=>{if(o.dryRun){r({command:`cf security-txt delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/security-center/securitytxt`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});if(o.zoneId=s,!await l({force:!!o.force})){process.stderr.write(`Aborted.
3
+ `);return}n(await i(`Deleting`,async()=>a.securityTxt.delete({zone_id:s})),{successLabel:`Deleted`})})};function f(e){return e.option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const p={command:`get`,describe:`Retrieves the current security.txt file configuration for a zone, used for security vulnerability reporting.`,builder:f,handler:async o=>a({command:`security-txt get`,classification:{safeFlags:[`dry-run`]}},o,async()=>{if(o.dryRun){r({command:`cf security-txt get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${o.zone??o.zoneId??`<zone>`}/security-center/securitytxt`,pathParams:{"zone-id":String(o.zone??o[`zone-id`]??``)},bodyKind:`none`});return}let a=await t(o),s=await e({zone:o.zone},a,{quiet:o.quiet});o.zoneId=s,n(await i(`Loading`,async()=>a.securityTxt.get({zone_id:s})),{successLabel:`Loaded`})})};function m(e){return e.option(`acknowledgments`,{type:`string`,array:!0,description:`The acknowledgments field`}).option(`canonical`,{type:`string`,array:!0,description:`The canonical field`}).option(`contact`,{type:`string`,array:!0,description:`The contact field`}).option(`enabled`,{type:`boolean`,description:`The enabled field`}).option(`encryption`,{type:`string`,array:!0,description:`The encryption field`}).option(`expires`,{type:`string`,description:`The expires field`}).option(`hiring`,{type:`string`,array:!0,description:`The hiring field`}).option(`policy`,{type:`string`,array:!0,description:`The policy field`}).option(`preferred-languages`,{type:`string`,description:`The preferred_languages 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 h={command:`update`,describe:`Updates the security.txt file configuration for a zone, which provides security researchers with vulnerability reporting information.`,builder:m,handler:async l=>a({command:`security-txt update`,classification:{safeFlags:[`enabled`,`dry-run`]}},l,async()=>{if(l.dryRun){r({command:`cf security-txt update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${l.zone??l.zoneId??`<zone>`}/security-center/securitytxt`,pathParams:{"zone-id":String(l.zone??l[`zone-id`]??``)},bodyKind:`json`,body:l.body===void 0?s({acknowledgments:l.acknowledgments,canonical:l.canonical,contact:l.contact,enabled:l.enabled,encryption:l.encryption,expires:c(l.expires,`expires`,`text`),hiring:l.hiring,policy:l.policy,preferred_languages:c(l[`preferred-languages`],`preferred-languages`,`text`)}):o(l.body)});return}let a=await t(l),u=await e({zone:l.zone},a,{quiet:l.quiet});if(l.zoneId=u,l.body){let e=o(l.body);n(await i(`Updating`,async()=>a.securityTxt.update({body:e,zone_id:u})),{successLabel:`Updated`});return}let d=s({acknowledgments:l.acknowledgments,canonical:l.canonical,contact:l.contact,enabled:l.enabled,encryption:l.encryption,expires:c(l.expires,`expires`,`text`),hiring:l.hiring,policy:l.policy,preferred_languages:c(l[`preferred-languages`],`preferred-languages`,`text`)});n(await i(`Updating`,async()=>a.securityTxt.update({body:d,zone_id:u})),{successLabel:`Updated`})})},g={command:`security-txt`,describe:`Manage the /.well-known/security.txt file that tells security researchers how to report vulnerabilities`,builder:e=>e.command(d).command(p).command(h).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{g as default};