cf 1.0.0-beta.25 → 1.0.0-beta.27

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 (262) hide show
  1. package/dist/_meta/commands.json +2015 -3426
  2. package/dist/_meta/hand-written-commands.json +16 -1
  3. package/dist/_meta/schemas.json +9249 -2339
  4. package/dist/abuse-reports-RxXqfDEW.mjs +24 -0
  5. package/dist/{access-__sFDSFL.mjs → access-BxEprr2f.mjs} +1 -1
  6. package/dist/{accounts-CmggwRjh.mjs → accounts-DU2ZNYqP.mjs} +17 -11
  7. package/dist/{acm-AAhRZUAU.mjs → acm-CBCIKBJ4.mjs} +1 -1
  8. package/dist/{addressing-DVeJNPZc.mjs → addressing-BKxiLRHk.mjs} +1 -1
  9. package/dist/{agent-memory-DQhWO6sc.mjs → agent-memory-DkBpQYUL.mjs} +1 -1
  10. package/dist/{ai-CULO9sno.mjs → ai-DqEN_hhg.mjs} +2 -2
  11. package/dist/{ai-audit-udn4HF34.mjs → ai-audit-BmzOgt6x.mjs} +1 -1
  12. package/dist/{ai-gateway-Bm2MMdec.mjs → ai-gateway-B0uiYVHq.mjs} +3 -3
  13. package/dist/ai-search-DbZIxdio.mjs +74 -0
  14. package/dist/{ai-security-DXy9ht-9.mjs → ai-security-CvZfP2JC.mjs} +1 -1
  15. package/dist/{alerting-CssnaN2i.mjs → alerting-BjGwBxZT.mjs} +1 -1
  16. package/dist/{analytics-BVo7Ax0w.mjs → analytics-C7kT_H-W.mjs} +4 -4
  17. package/dist/{analytics-engine-BBd0Bydx.mjs → analytics-engine-BHpcNSdD.mjs} +1 -1
  18. package/dist/{api-security-C-D9OKtH.mjs → api-security-BbcvDtff.mjs} +2 -2
  19. package/dist/{argo-DSziwzvA.mjs → argo-D1VONzu-.mjs} +1 -1
  20. package/dist/{artifacts-nVMgn4dn.mjs → artifacts-2R2sxIKO.mjs} +3 -3
  21. package/dist/{audit-logs-DIZ5oA_y.mjs → audit-logs-LoBB1OO_.mjs} +1 -1
  22. package/dist/auth-CspwoBlp.mjs +2 -0
  23. package/dist/{auth-JsvLULHA.mjs → auth-D499YE2n.mjs} +3 -3
  24. package/dist/{auth-CB9wjyad.mjs → auth-FK2eLQ02.mjs} +1 -1
  25. package/dist/{auth-token-BAgw7kYP.mjs → auth-token-BwpERbnG.mjs} +1 -1
  26. package/dist/{autoconfig-CajkMb3B.mjs → autoconfig-B2w-woU0.mjs} +85 -83
  27. package/dist/{basin-catalog-BRvGeKm3.mjs → basin-catalog-AgOHGiPI.mjs} +2 -2
  28. package/dist/billing-DRNww0iC.mjs +24 -0
  29. package/dist/{blocks-D2tE8dp2.mjs → blocks-C8vyXIAT.mjs} +1 -1
  30. package/dist/body-unions-CjpNjwSW.mjs +2 -0
  31. package/dist/bot-management-fwxKIbaB.mjs +9 -0
  32. package/dist/{botnet-feed-VOL5P4s3.mjs → botnet-feed-DCYB5kYZ.mjs} +1 -1
  33. package/dist/{brand-protection-CSVHQ9Pt.mjs → brand-protection-BVICLzBc.mjs} +1 -1
  34. package/dist/browser-run-CEk-NIgP.mjs +40 -0
  35. package/dist/build-CRm2TQq8.mjs +2 -0
  36. package/dist/{build-BfkzV5_c.mjs → build-DO_GNhRl.mjs} +1 -1
  37. package/dist/{builds-y5BQCJ81.mjs → builds-CoazxuN-.mjs} +26 -26
  38. package/dist/{cache-Bvr988Hj.mjs → cache-jlLJLSu7.mjs} +1 -1
  39. package/dist/{cf-DgLg6Hop.mjs → cf-hP0SOgC6.mjs} +2 -2
  40. package/dist/{chunk-2HLTAS5V-B92NbX1j.mjs → chunk-AAQI36FL-e6E5HW1g.mjs} +1 -1
  41. package/dist/{chunk-DSGVRFIS-Dq2PrGsi.mjs → chunk-DSGVRFIS-DQwKND2c.mjs} +1 -1
  42. package/dist/chunk-SOBRPAPT-BKzUiNx_.mjs +363 -0
  43. package/dist/{cli-BTxJfFus.mjs → cli-Nqf58-1c.mjs} +3 -3
  44. package/dist/{client-side-security-CFmO0uz9.mjs → client-side-security-VmZzMy-m.mjs} +1 -1
  45. package/dist/{cloud-connector-CtwPdFBa.mjs → cloud-connector-bMlFnqP0.mjs} +1 -1
  46. package/dist/{cloudflared-DPkNN1Qv.mjs → cloudflared-Ba4KWdTO.mjs} +1 -1
  47. package/dist/{cloudforce-one-DHrMaxnU.mjs → cloudforce-one-CCaIBOAo.mjs} +121 -119
  48. package/dist/{command-CDYTsmxe.mjs → command-BASaTmJc.mjs} +1 -1
  49. package/dist/{command-BWyx7dNO.mjs → command-BiIVclNA.mjs} +1 -1
  50. package/dist/{command-CXwKBbj9.mjs → command-Bih1HLr3.mjs} +1 -1
  51. package/dist/{command-Ct3tf-P5.mjs → command-BxZBNPxG.mjs} +1 -1
  52. package/dist/{command-DPOjEs1B.mjs → command-ByYf12-8.mjs} +1 -1
  53. package/dist/{command-CmK8-DJ9.mjs → command-C0qCuw03.mjs} +1 -1
  54. package/dist/{command-DqWBPiew.mjs → command-C2FVMd1b.mjs} +1 -1
  55. package/dist/{command-ckixJeTm.mjs → command-C4OgtX_x.mjs} +1 -1
  56. package/dist/{command-CCDzJjIB.mjs → command-C5Kqc5Km.mjs} +1 -1
  57. package/dist/{command-lJJ7sEZe.mjs → command-CFxyp8Uo.mjs} +1 -1
  58. package/dist/{command-ClneauMx.mjs → command-CZAR85ba.mjs} +1 -1
  59. package/dist/{command-BXCk1OsI.mjs → command-CelQVrZL.mjs} +1 -1
  60. package/dist/{command-YFWLEK8W.mjs → command-CrAlzysj.mjs} +1 -1
  61. package/dist/{command-6_Ms3TZv.mjs → command-pMoNdd22.mjs} +1 -1
  62. package/dist/{completions-B1rYgw_a.mjs → completions-DRzBiqpv.mjs} +1 -1
  63. package/dist/{connector-interrupts-DecTdK6X.mjs → connector-interrupts-CrTeSyaM.mjs} +1 -1
  64. package/dist/{connector-telemetry-events-wePxPACj.mjs → connector-telemetry-events-BbAOUt9h.mjs} +1 -1
  65. package/dist/{connector-telemetry-snapshots-D8sXR1qx.mjs → connector-telemetry-snapshots-DcpBx7Qx.mjs} +1 -1
  66. package/dist/{connectors-C-6RQ_Q1.mjs → connectors-D1WFLJoE.mjs} +1 -1
  67. package/dist/{containers-D65Gpj9Q.mjs → containers-BOBEs1Gk.mjs} +4 -4
  68. package/dist/containers-DINLx5_i.mjs +380 -0
  69. package/dist/{content-scan-DbIDQ-Yu.mjs → content-scan-D1GfPSL0.mjs} +1 -1
  70. package/dist/{context-DCon1tRZ.mjs → context-Dp4CXG22.mjs} +1 -1
  71. package/dist/{cps-DGLmzCzp.mjs → cps-D4uhzg3k.mjs} +1 -1
  72. package/dist/{csam-scanner-R7Ih-Dnw.mjs → csam-scanner-DOOUBeBM.mjs} +1 -3
  73. package/dist/custom-csrs-DtdFo5YZ.mjs +18 -0
  74. package/dist/{custom-hostnames-BFWR-tR_.mjs → custom-hostnames-ccdlELaD.mjs} +1 -1
  75. package/dist/custom-nameservers-p3gDjfva.mjs +12 -0
  76. package/dist/custom-pages-DAkKVzgR.mjs +38 -0
  77. package/dist/d1-CDIyRdh4.mjs +52 -0
  78. package/dist/{delegate-CTj0dYET.mjs → delegate-B4bKqF7i.mjs} +1 -1
  79. package/dist/delegate.mjs +1 -1
  80. package/dist/{deploy-BVTA83rN.mjs → deploy-BaC5Ty7F.mjs} +1 -1
  81. package/dist/{deploy-context-CO8ZSRwx.mjs → deploy-context-DTTgNGro.mjs} +1 -1
  82. package/dist/{deploy-input-PhKRxa_2.mjs → deploy-input-mAy06fAI.mjs} +1 -1
  83. package/dist/{dev-CM5GLHNn.mjs → dev-De-HszNT.mjs} +1 -1
  84. package/dist/{diagnostics-DPjl0aCm.mjs → diagnostics-D1CUs2o9.mjs} +1 -1
  85. package/dist/{dist-ataVE8ob.mjs → dist-D5qkmHhC.mjs} +2 -2
  86. package/dist/{dls-BLTIVlbh.mjs → dls-DWBiYzY1.mjs} +1 -1
  87. package/dist/{dns-firewall-D1bb1byu.mjs → dns-firewall-DH9xIT5H.mjs} +8 -8
  88. package/dist/{dns-DkqVq-nB.mjs → dns-wMjf1t6-.mjs} +14 -8
  89. package/dist/{docs-tOv_OllI.mjs → docs-BA7qslb2.mjs} +1 -1
  90. package/dist/{dotenv-qsoPELMm.mjs → dotenv-DKRemNCH.mjs} +1 -1
  91. package/dist/{durable-objects-OJhns_to.mjs → durable-objects-DF0MYpnV.mjs} +1 -1
  92. package/dist/{email-auth-BbsIBNlu.mjs → email-auth-BShMFXn4.mjs} +1 -1
  93. package/dist/email-domains-CDSbVclP.mjs +14 -0
  94. package/dist/{email-routing-DnitWE1A.mjs → email-routing-CBCkbg_F.mjs} +4 -2
  95. package/dist/{email-security-DiWtb7cx.mjs → email-security-CnNa1YON.mjs} +4 -4
  96. package/dist/{email-sending-DuDjXykw.mjs → email-sending-CpDSw-Eb.mjs} +16 -16
  97. package/dist/error-sanitization-B025CygB.mjs +2 -0
  98. package/dist/{error-sanitization-ahuAGEjT.mjs → error-sanitization-DG8WSzHe.mjs} +1 -1
  99. package/dist/{errors-CCFmptqJ.mjs → errors-DatLr-iR.mjs} +1 -1
  100. package/dist/{field-extractors-DNNnkBZH.mjs → field-extractors-BwGdMnTr.mjs} +1 -1
  101. package/dist/{firewall-C7eZRNVF.mjs → firewall-CY_oem-d.mjs} +25 -9
  102. package/dist/{flagship-BczjsrJ5.mjs → flagship-Bat5EZCk.mjs} +1 -1
  103. package/dist/{fraud-wE0UM2SM.mjs → fraud-CSUKLh8X.mjs} +2 -2
  104. package/dist/global-options-DiKj2cQy.mjs +2 -0
  105. package/dist/{google-tag-gateway-6mvtxcJK.mjs → google-tag-gateway-C2skt6t-.mjs} +1 -1
  106. package/dist/{healthchecks-aIB3DebS.mjs → healthchecks-uC43QKQd.mjs} +1 -1
  107. package/dist/{hyperdrive-DHRP8SJS.mjs → hyperdrive-FcBbpew4.mjs} +3 -3
  108. package/dist/iam-8T74DNhH.mjs +62 -0
  109. package/dist/{images-CLgvxd0t.mjs → images-C3JUaf6b.mjs} +1 -1
  110. package/dist/index.mjs +1 -1
  111. package/dist/{init-B_DBTMXU.mjs → init-BEVVz4_P.mjs} +1 -1
  112. package/dist/{intel-jnoIVlYG.mjs → intel-DRy4rHrt.mjs} +6 -7
  113. package/dist/{interactive-1g0dnrA8.mjs → interactive-CKHdGvkh.mjs} +1 -1
  114. package/dist/{internal-Ba3b-Z8J.mjs → internal-CamuESs0.mjs} +1 -1
  115. package/dist/{ips-CQ4gFfex.mjs → ips-DinCNnWj.mjs} +1 -1
  116. package/dist/k2-wsanPL3y.mjs +10 -0
  117. package/dist/{kv-DQfnNE-w.mjs → kv-BLSPcEnH.mjs} +1 -1
  118. package/dist/{lazy-command-DjGzxiUT.mjs → lazy-command-WB1FOuew.mjs} +1 -1
  119. package/dist/{leaked-credential-checks-CaqjG3Oz.mjs → leaked-credential-checks-CSZd9hBQ.mjs} +1 -1
  120. package/dist/{live-BfobGv8W.mjs → live-B6AsI_E5.mjs} +1 -1
  121. package/dist/{load-balancers-BzSCp2Uh.mjs → load-balancers-gap5u4b1.mjs} +19 -7
  122. package/dist/local-CFsO9Tkg.mjs +2 -0
  123. package/dist/{local-BNmz58v4.mjs → local-CgBhtmON.mjs} +1 -1
  124. package/dist/{local-runtime-DvH92pV8.mjs → local-runtime-CmlJ20uJ.mjs} +1 -1
  125. package/dist/{login-B9wYab6S.mjs → login-BJHaTERg.mjs} +1 -1
  126. package/dist/login-BfuOf-Yi.mjs +2 -0
  127. package/dist/logpush-qhlxsioM.mjs +68 -0
  128. package/dist/{logs-Dan7xU-k.mjs → logs-bI54CJ0w.mjs} +23 -7
  129. package/dist/{magic-network-monitoring-TAjt04vN.mjs → magic-network-monitoring-CX3TaMTu.mjs} +1 -1
  130. package/dist/{magic-transit-BSuLHnQ5.mjs → magic-transit-BwDyySHJ.mjs} +20 -20
  131. package/dist/{managed-defense-CTnIZLg4.mjs → managed-defense-CsBBkfeQ.mjs} +2 -2
  132. package/dist/{managed-transforms-BETvesjp.mjs → managed-transforms-CUC-uAbW.mjs} +1 -1
  133. package/dist/{mcp-DhjMGaKc.mjs → mcp-CyI0sDmL.mjs} +3 -3
  134. package/dist/{mesh-jxLLG3t4.mjs → mesh-Czr0UCP4.mjs} +2 -2
  135. package/dist/{migrate-Bkhk38nJ.mjs → migrate-DKDWYrz2.mjs} +1 -1
  136. package/dist/{monetization-BqDgHlPv.mjs → monetization-NUgfDtSy.mjs} +7 -3
  137. package/dist/{network-D6BRpgOv.mjs → network-B42zrBic.mjs} +1 -1
  138. package/dist/{network-interconnects-tP41GbnL.mjs → network-interconnects-DuIBe8fK.mjs} +4 -4
  139. package/dist/{o11y-h4cIC_1T.mjs → o11y-oEUpMC3O.mjs} +6 -6
  140. package/dist/{oauth-CuM12iNb.mjs → oauth-BLQ1-y3R.mjs} +1 -1
  141. package/dist/{oauth-nDH3nTCa.mjs → oauth-BmSFLp_s.mjs} +1 -1
  142. package/dist/observability-BxhJQCgZ.mjs +4 -0
  143. package/dist/organization-CEnlXwrl.mjs +70 -0
  144. package/dist/{organizations-7Q3d9vcW.mjs → organizations-Dt86ToxE.mjs} +1 -1
  145. package/dist/{origin-post-quantum-encryption-XBMPCdSL.mjs → origin-post-quantum-encryption-lX-uaJSL.mjs} +1 -1
  146. package/dist/package-CiRJBRHO.mjs +2 -0
  147. package/dist/{page-rules-BlT5xlhH.mjs → page-rules-J6LhwR-s.mjs} +1 -1
  148. package/dist/{pages-CIbL62L2.mjs → pages-BksdnChs.mjs} +4 -4
  149. package/dist/{pay-per-crawl-BzsBqo_m.mjs → pay-per-crawl-BLcbHRoR.mjs} +1 -1
  150. package/dist/{pay-per-use-DtejLYJ8.mjs → pay-per-use-VatiU-Nt.mjs} +4 -2
  151. package/dist/{pipelines-LjLb8jq6.mjs → pipelines-B5AoB3f3.mjs} +5 -5
  152. package/dist/precursor-D3VH2MXT.mjs +4 -0
  153. package/dist/{previews-zRYO9uO9.mjs → previews-DzJ85fsr.mjs} +1 -1
  154. package/dist/{progress-_Jux05O5.mjs → progress-DLri-rA7.mjs} +1 -1
  155. package/dist/{prompt-SNVLBS1b.mjs → prompt-D0dXwuME.mjs} +1 -1
  156. package/dist/{queues-Ci4rGGC4.mjs → queues-BsAck4To.mjs} +5 -5
  157. package/dist/{r2-qm2hgS43.mjs → r2-BYjdHDEZ.mjs} +38 -38
  158. package/dist/{radar-C_ydbJe_.mjs → radar-CvLtu-Vr.mjs} +1 -1
  159. package/dist/{raw-fetch-D3ydyJYW.mjs → raw-fetch-DQeDx1wT.mjs} +1 -1
  160. package/dist/{ready-hk-_B8z3.mjs → ready-gsGEaWLL.mjs} +1 -1
  161. package/dist/{realtime-BAvjYmYw.mjs → realtime-DiCEgFTC.mjs} +81 -79
  162. package/dist/{registrar-DD7WZaP2.mjs → registrar-D4wdgWpo.mjs} +8 -8
  163. package/dist/{registrar-sandbox-DbxloH5s.mjs → registrar-sandbox-B6yopzdG.mjs} +2 -2
  164. package/dist/{reporting-CRVg3J1C.mjs → reporting-BiHgnT8L.mjs} +1 -1
  165. package/dist/{request-headers-Cn01EsbI.mjs → request-headers-CoxHUNcB.mjs} +1 -1
  166. package/dist/{request-tracers-BWs0rdFS.mjs → request-tracers-817HTytF.mjs} +1 -1
  167. package/dist/{resource-sharing-yipIkdbd.mjs → resource-sharing-CW9xxtq5.mjs} +12 -12
  168. package/dist/{rules-CCtaBLiN.mjs → rules-CRhe_ca9.mjs} +1 -1
  169. package/dist/rulesets-CKyc-Xlx.mjs +42 -0
  170. package/dist/{rum-gDOKylu_.mjs → rum-BfnWHW_d.mjs} +1 -1
  171. package/dist/{run-Br8sYjNF.mjs → run-Ciw_GIrC.mjs} +1 -1
  172. package/dist/run-DD45EQTm.mjs +2 -0
  173. package/dist/{schema-cache-Cb64Nqbt.mjs → schema-cache-BIo0Gi2H.mjs} +1 -1
  174. package/dist/schema-flags-DrqvwQNw.mjs +4 -0
  175. package/dist/{scim-CM8Xah56.mjs → scim-C4iRWNYB.mjs} +1 -1
  176. package/dist/{secrets-store-BEnXiYCC.mjs → secrets-store-DgtzZRze.mjs} +1 -1
  177. package/dist/security-insights-SlUGW3F_.mjs +62 -0
  178. package/dist/{security-txt-BF0PWAEW.mjs → security-txt-C3YS0REz.mjs} +1 -1
  179. package/dist/{session-B7vOqdZU.mjs → session-D2yuwO4i.mjs} +1 -1
  180. package/dist/{shared-CBMFY1VY.mjs → shared--uVkAAd7.mjs} +1 -1
  181. package/dist/{signed-url-VDDQlllt.mjs → signed-url-ClLk45_J.mjs} +1 -1
  182. package/dist/{smart-shield-DQku_wYi.mjs → smart-shield-Dn95hqUH.mjs} +1 -1
  183. package/dist/{snippets-B3FCEMuh.mjs → snippets-BNUKOajz.mjs} +1 -1
  184. package/dist/{spawn-9sE67p7c.mjs → spawn-DuT4snxu.mjs} +1 -1
  185. package/dist/{spectrum-nLirlVue.mjs → spectrum-Cj0BMtg2.mjs} +3 -3
  186. package/dist/{speed-C1hCyMPy.mjs → speed-BrVeZRyX.mjs} +1 -1
  187. package/dist/{sql-DVQOKThL.mjs → sql-BX1pBqj3.mjs} +2 -2
  188. package/dist/src-DPnUfK4c.mjs +131 -0
  189. package/dist/{ssl-CYDRgr24.mjs → ssl-Bx4LCutF.mjs} +3 -3
  190. package/dist/{startup-profile-BLvw_Wmc.mjs → startup-profile-DqaYNT0b.mjs} +1 -1
  191. package/dist/startup-profile-tZNb2HGz.mjs +2 -0
  192. package/dist/{state-B8n0QU04.mjs → state-BmzOLELo.mjs} +1 -1
  193. package/dist/state-Uwfrmw5I.mjs +2 -0
  194. package/dist/{stream-DHyejrI6.mjs → stream-BRzr6yh0.mjs} +1 -1
  195. package/dist/{tags-DOL6dKQE.mjs → tags-xVzjZxdt.mjs} +11 -5
  196. package/dist/{telemetry-DJ8-Q2pU.mjs → telemetry-CJ9URio3.mjs} +1 -1
  197. package/dist/telemetry-Pt5GpCKD.mjs +2 -0
  198. package/dist/tenant-custom-nameservers-M7Fxqh2W.mjs +8 -0
  199. package/dist/{tunnels-CMAmH4Vh.mjs → tunnels-DQVXKUKA.mjs} +3 -3
  200. package/dist/{turnstile-DTJjDMFp.mjs → turnstile-B_Ugzgom.mjs} +1 -1
  201. package/dist/ui-FYultowZ.mjs +2 -0
  202. package/dist/{update-check-DDGKWkmi.mjs → update-check-DHUo4FOJ.mjs} +1 -1
  203. package/dist/{update-check-BkCdHK-3.mjs → update-check-DRr0eRhB.mjs} +1 -1
  204. package/dist/update-check-worker.mjs +1 -1
  205. package/dist/{url-normalization-BbWOra1u.mjs → url-normalization-CZRQH_pJ.mjs} +1 -1
  206. package/dist/{url-scanner-Bj-eS_3C.mjs → url-scanner-BH4PLy16.mjs} +1 -1
  207. package/dist/{user-CMzTHHVX.mjs → user-Bn82Qw0Y.mjs} +10 -12
  208. package/dist/{vectorize-D4H7_KPs.mjs → vectorize-DoVVz_sh.mjs} +1 -1
  209. package/dist/version-Zr2oF8mY.mjs +2 -0
  210. package/dist/{waiting-rooms-CqMbVu9s.mjs → waiting-rooms-QUW131o3.mjs} +5 -3
  211. package/dist/{web-assets-BgfzyF8t.mjs → web-assets-CgQXsp8m.mjs} +2 -2
  212. package/dist/{web3-ByCe47FI.mjs → web3-TY9s6Swn.mjs} +3 -3
  213. package/dist/workers-B3uJqJKc.mjs +39 -0
  214. package/dist/{workers-builds-2N71_8MZ.mjs → workers-builds-BgGY0IGk.mjs} +2 -2
  215. package/dist/{workers-for-platforms-BMN4QXgT.mjs → workers-for-platforms-5RkV9MVp.mjs} +2 -2
  216. package/dist/workers-vpc-Bt4OQbwM.mjs +12 -0
  217. package/dist/{workflows-COiyqt-B.mjs → workflows-6m85DdqF.mjs} +7 -7
  218. package/dist/{wrangler-migration-CqSg8IDj.mjs → wrangler-migration-BbmGOu8l.mjs} +3 -3
  219. package/dist/{zaraz-DjwhCH8A.mjs → zaraz-8WSJ7l0L.mjs} +2 -2
  220. package/dist/{zero-trust-BmpuDOmH.mjs → zero-trust-DK0cqDZv.mjs} +483 -405
  221. package/dist/{zones-XYQiz5kF.mjs → zones-DTAcguf6.mjs} +3 -3
  222. package/package.json +14 -14
  223. package/dist/abuse-reports-BIS9MZn7.mjs +0 -24
  224. package/dist/ai-search-GRN_gXgU.mjs +0 -74
  225. package/dist/auth-Bls_1yRW.mjs +0 -2
  226. package/dist/billing-BhPoqyKC.mjs +0 -22
  227. package/dist/bot-management-BfjX5DuH.mjs +0 -9
  228. package/dist/browser-run-cxOd2cZE.mjs +0 -40
  229. package/dist/build-DCdLWwOg.mjs +0 -2
  230. package/dist/chunk-3PJ54H4K-CbRAWQWI.mjs +0 -363
  231. package/dist/containers-C_byVTZF.mjs +0 -380
  232. package/dist/custom-csrs-D0RnVoJ7.mjs +0 -10
  233. package/dist/custom-nameservers-Dn_9Ssti.mjs +0 -8
  234. package/dist/custom-pages-HqIQcb77.mjs +0 -20
  235. package/dist/d1-CopIY9RT.mjs +0 -89
  236. package/dist/email-domains-pWZi1M4q.mjs +0 -12
  237. package/dist/error-sanitization-rodO1WCL.mjs +0 -2
  238. package/dist/iam-6t7-ScrS.mjs +0 -48
  239. package/dist/k2-Bsm6rzNX.mjs +0 -10
  240. package/dist/local-ChR3YIMU.mjs +0 -2
  241. package/dist/login-ierSCYE6.mjs +0 -2
  242. package/dist/logpush-DgfiSd1b.mjs +0 -44
  243. package/dist/magic-cloud-networking-DP8fWC4a.mjs +0 -68
  244. package/dist/oauth-clients-B0voUiXM.mjs +0 -14
  245. package/dist/oauth-scopes-Bhns1ZHW.mjs +0 -4
  246. package/dist/organization-Cy55HoRR.mjs +0 -73
  247. package/dist/package-DK3JX4I3.mjs +0 -2
  248. package/dist/precursor-BKp5_Ag4.mjs +0 -4
  249. package/dist/rulesets-DBEvCNDS.mjs +0 -34
  250. package/dist/run-LOgTLpob.mjs +0 -2
  251. package/dist/schema-flags-BcbbCWR5.mjs +0 -4
  252. package/dist/security-insights-Be5GvdBA.mjs +0 -40
  253. package/dist/src-Bh2gHpI7.mjs +0 -131
  254. package/dist/startup-profile-ByxSdhEl.mjs +0 -2
  255. package/dist/state-BTOzaT5L.mjs +0 -2
  256. package/dist/telemetry-kjElc1zT.mjs +0 -2
  257. package/dist/tenant-2EdATz2Y.mjs +0 -10
  258. package/dist/tenant-custom-nameservers-DhEpJNST.mjs +0 -8
  259. package/dist/ui-7zujR-O7.mjs +0 -2
  260. package/dist/version-DIIJ2ixL.mjs +0 -2
  261. package/dist/workers-BiLsPkYD.mjs +0 -39
  262. package/dist/workers-vpc-3o7dMg7-.mjs +0 -12
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-CB9wjyad.mjs";import{i as r}from"./context-DCon1tRZ.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-_Jux05O5.mjs";import{t as s}from"./run-Br8sYjNF.mjs";import"./telemetry-kjElc1zT.mjs";import{n as c,r as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f}from"./prompt-SNVLBS1b.mjs";var p={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function m(e){return e.usage(`$0 zaraz config get
2
+ import"./api-X3wKppsT.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-FK2eLQ02.mjs";import{i as r}from"./context-Dp4CXG22.mjs";import{t as i}from"./output-BJEgbI0G.mjs";import{t as a}from"./dry-run-gy0Hl9xo.mjs";import{t as o}from"./progress-DLri-rA7.mjs";import{t as s}from"./run-Ciw_GIrC.mjs";import"./telemetry-Pt5GpCKD.mjs";import{n as c,r as l,t as u}from"./body-parser-BKcZS9iJ.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f}from"./prompt-D0dXwuME.mjs";var p={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function m(e){return e.usage(`$0 zaraz config get
3
3
 
4
4
  Gets latest Zaraz configuration for a zone. It can be preview or published configuration, whichever was the last updated. Secret variables values will not be included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Get Zaraz configuration`,builder:m,handler:async e=>s({command:`zaraz config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(p,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var g={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`,body:`json`};function _(e){return e.usage(`$0 zaraz config update
5
5
 
6
- Updates Zaraz configuration for a zone.`).option(`analytics-default-purpose`,{type:`string`,description:`Consent purpose assigned to Monitoring.`}).option(`analytics-enabled`,{type:`boolean`,description:`Whether Advanced Monitoring reports are enabled.`}).option(`analytics-session-exp-time`,{type:`number`,description:`Session expiration time (seconds).`}).option(`consent-button-text-translations-accept-all`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-button-text-translations-confirm-my-choices`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-button-text-translations-reject-all`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-company-email`,{type:`string`,description:`The consent.companyEmail field`}).option(`consent-company-name`,{type:`string`,description:`The consent.companyName field`}).option(`consent-company-street-address`,{type:`string`,description:`The consent.companyStreetAddress field`}).option(`consent-consent-modal-intro-html`,{type:`string`,description:`The consent.consentModalIntroHTML field`}).option(`consent-consent-modal-intro-htmlwith-translations`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-cookie-name`,{type:`string`,description:`The consent.cookieName field`}).option(`consent-custom-css`,{type:`string`,description:`The consent.customCSS field`}).option(`consent-custom-intro-disclaimer-dismissed`,{type:`boolean`,description:`The consent.customIntroDisclaimerDismissed field`}).option(`consent-default-language`,{type:`string`,description:`The consent.defaultLanguage field`}).option(`consent-enabled`,{type:`boolean`,description:`The consent.enabled field`}).option(`consent-hide-modal`,{type:`boolean`,description:`The consent.hideModal field`}).option(`consent-purposes`,{type:`string`,description:`Object where keys are purpose alpha-numeric IDs. Provide as a JSON object or @path/to/file.json.`}).option(`consent-purposes-with-translations`,{type:`string`,description:`Object where keys are purpose alpha-numeric IDs. Provide as a JSON object or @path/to/file.json.`}).option(`consent-tcf-compliant`,{type:`boolean`,description:`The consent.tcfCompliant field`}).option(`data-layer`,{type:`boolean`,description:`Data layer compatibility mode enabled.`}).option(`debug-key`,{type:`string`,description:`The key for Zaraz debug mode.`}).option(`history-change`,{type:`boolean`,description:`Single Page Application support enabled.`}).option(`settings-auto-inject-script`,{type:`boolean`,description:`Automatic injection of Zaraz scripts enabled.`}).option(`settings-context-enricher-escaped-worker-name`,{type:`string`,description:`The settings.contextEnricher.escapedWorkerName field`}).option(`settings-context-enricher-worker-tag`,{type:`string`,description:`The settings.contextEnricher.workerTag field`}).option(`settings-cookie-domain`,{type:`string`,description:`The domain Zaraz will use for writing and reading its cookies.`}).option(`settings-ecommerce`,{type:`boolean`,description:`Ecommerce API enabled.`}).option(`settings-events-api-path`,{type:`string`,description:`Custom endpoint for server-side track events.`}).option(`settings-hide-external-referer`,{type:`boolean`,description:`Hiding external referrer URL enabled.`}).option(`settings-hide-ipaddress`,{type:`boolean`,description:`Trimming IP address enabled.`}).option(`settings-hide-query-params`,{type:`boolean`,description:`Removing URL query params enabled.`}).option(`settings-hide-user-agent`,{type:`boolean`,description:`Removing sensitive data from User Agent string enabled.`}).option(`settings-init-path`,{type:`string`,description:`Custom endpoint for Zaraz init script.`}).option(`settings-inject-iframes`,{type:`boolean`,description:`Injection of Zaraz scripts into iframes enabled.`}).option(`settings-mc-root-path`,{type:`string`,description:`Custom path for Managed Components server functionalities.`}).option(`settings-script-path`,{type:`string`,description:`Custom endpoint for Zaraz main script.`}).option(`settings-track-path`,{type:`string`,description:`Custom endpoint for Zaraz tracking requests.`}).option(`triggers`,{type:`string`,description:`Triggers set up under Zaraz configuration, where key is the trigger alpha-numeric ID and value is the trigger configuration. Provide as a JSON object or @path/to/file.json.`}).option(`variables`,{type:`string`,description:`Variables set up under Zaraz configuration, where key is the variable alpha-numeric ID and value is the variable configuration. Values of variables of type secret are not included. Provide as a JSON object or @path/to/file.json.`}).option(`zaraz-version`,{type:`number`,description:`Zaraz internal version of the config.`}).option(`tools`,{type:`string`,description:`Tools set up under Zaraz configuration, where key is the alpha-numeric tool ID and value is the tool configuration object. Provide as a JSON object 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:`Zaraz configuration.`}).check(e=>{if([`consent-button-text-translations-accept-all`,`consent-button-text-translations-confirm-my-choices`,`consent-button-text-translations-reject-all`,`consent-company-email`,`consent-company-name`,`consent-company-street-address`,`consent-consent-modal-intro-html`,`consent-consent-modal-intro-htmlwith-translations`,`consent-cookie-name`,`consent-custom-css`,`consent-custom-intro-disclaimer-dismissed`,`consent-default-language`,`consent-enabled`,`consent-hide-modal`,`consent-purposes`,`consent-purposes-with-translations`,`consent-tcf-compliant`].some(t=>e[t]!==void 0)){let t=[`consent-button-text-translations-accept-all`,`consent-button-text-translations-confirm-my-choices`,`consent-button-text-translations-reject-all`,`consent-enabled`].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 --consent-* flag is set`)}return!0})}const v={command:`update`,describe:`Update Zaraz configuration`,builder:_,handler:async e=>s({command:`zaraz config update`,classification:{safeFlags:[`analytics-enabled`,`consent-custom-intro-disclaimer-dismissed`,`consent-enabled`,`consent-hide-modal`,`consent-tcf-compliant`,`data-layer`,`history-change`,`settings-auto-inject-script`,`settings-ecommerce`,`settings-hide-external-referer`,`settings-hide-ipaddress`,`settings-hide-query-params`,`settings-hide-user-agent`,`settings-inject-iframes`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({analytics:{defaultPurpose:d(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{buttonTextTranslations:{accept_all:l(e[`consent-button-text-translations-accept-all`],`consent-button-text-translations-accept-all`),confirm_my_choices:l(e[`consent-button-text-translations-confirm-my-choices`],`consent-button-text-translations-confirm-my-choices`),reject_all:l(e[`consent-button-text-translations-reject-all`],`consent-button-text-translations-reject-all`)},companyEmail:d(e[`consent-company-email`],`consent-company-email`,`text`),companyName:d(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:d(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:d(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),consentModalIntroHTMLWithTranslations:l(e[`consent-consent-modal-intro-htmlwith-translations`],`consent-consent-modal-intro-htmlwith-translations`),cookieName:d(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:d(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:d(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],purposes:l(e[`consent-purposes`],`consent-purposes`),purposesWithTranslations:l(e[`consent-purposes-with-translations`],`consent-purposes-with-translations`),tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:d(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:d(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:d(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:d(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:d(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:d(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:d(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:d(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:d(e[`settings-track-path`],`settings-track-path`,`text`)},triggers:l(e.triggers,`triggers`,!0),variables:l(e.variables,`variables`,!0),zarazVersion:e[`zaraz-version`],tools:l(e.tools,`tools`,!0)},[[`consent`,`buttonTextTranslations`,`accept_all`],[`consent`,`buttonTextTranslations`,`confirm_my_choices`],[`consent`,`buttonTextTranslations`,`reject_all`],[`consent`,`consentModalIntroHTMLWithTranslations`],[`consent`,`purposes`],[`consent`,`purposesWithTranslations`],[`triggers`],[`variables`],[`tools`]]):c(e.body,[{path:[`triggers`],flag:`triggers`},{path:[`variables`],flag:`variables`},{path:[`tools`],flag:`tools`}])});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=s,e.body){let n=c(e.body,[{path:[`triggers`],flag:`triggers`},{path:[`variables`],flag:`variables`},{path:[`tools`],flag:`tools`}]),r=await o(`Updating`,async()=>t.send(g,{body:n,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e[`data-layer`]===void 0)throw Error(`--data-layer is required (or pass --body with this field set).`);if(e[`debug-key`]===void 0&&(e[`debug-key`]=await f(`debug-key`,`The key for Zaraz debug mode.`)),e[`settings-auto-inject-script`]===void 0)throw Error(`--settings-auto-inject-script is required (or pass --body with this field set).`);if(e[`settings-context-enricher-escaped-worker-name`]===void 0&&(e[`settings-context-enricher-escaped-worker-name`]=await f(`settings-context-enricher-escaped-worker-name`,`The settings.contextEnricher.escapedWorkerName field`)),e[`settings-context-enricher-worker-tag`]===void 0&&(e[`settings-context-enricher-worker-tag`]=await f(`settings-context-enricher-worker-tag`,`The settings.contextEnricher.workerTag field`)),e.triggers===void 0)throw Error(`--triggers is required (or pass --body with this field set).`);if(e.variables===void 0)throw Error(`--variables is required (or pass --body with this field set).`);if(e[`zaraz-version`]===void 0)throw Error(`--zaraz-version is required (or pass --body with this field set).`);if(e.tools===void 0)throw Error(`--tools is required (or pass --body with this field set).`);let p=u({analytics:{defaultPurpose:d(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{buttonTextTranslations:{accept_all:l(e[`consent-button-text-translations-accept-all`],`consent-button-text-translations-accept-all`),confirm_my_choices:l(e[`consent-button-text-translations-confirm-my-choices`],`consent-button-text-translations-confirm-my-choices`),reject_all:l(e[`consent-button-text-translations-reject-all`],`consent-button-text-translations-reject-all`)},companyEmail:d(e[`consent-company-email`],`consent-company-email`,`text`),companyName:d(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:d(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:d(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),consentModalIntroHTMLWithTranslations:l(e[`consent-consent-modal-intro-htmlwith-translations`],`consent-consent-modal-intro-htmlwith-translations`),cookieName:d(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:d(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:d(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],purposes:l(e[`consent-purposes`],`consent-purposes`),purposesWithTranslations:l(e[`consent-purposes-with-translations`],`consent-purposes-with-translations`),tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:d(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:d(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:d(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:d(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:d(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:d(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:d(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:d(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:d(e[`settings-track-path`],`settings-track-path`,`text`)},triggers:l(e.triggers,`triggers`,!0),variables:l(e.variables,`variables`,!0),zarazVersion:e[`zaraz-version`],tools:l(e.tools,`tools`,!0)},[[`consent`,`buttonTextTranslations`,`accept_all`],[`consent`,`buttonTextTranslations`,`confirm_my_choices`],[`consent`,`buttonTextTranslations`,`reject_all`],[`consent`,`consentModalIntroHTMLWithTranslations`],[`consent`,`purposes`],[`consent`,`purposesWithTranslations`],[`triggers`],[`variables`],[`tools`]]),m=await o(`Updating`,async()=>t.send(g,{body:p,zone_id:s}));i(m,{successLabel:`Updated`})})},y={command:`config`,describe:`Full Zaraz configuration including tools, triggers, and variables for the zone`,builder:e=>e.command(h).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/default`};function x(e){return e.usage(`$0 zaraz default get
6
+ Updates Zaraz configuration for a zone.`).option(`analytics-default-purpose`,{type:`string`,description:`Consent purpose assigned to Monitoring.`}).option(`analytics-enabled`,{type:`boolean`,description:`Whether Advanced Monitoring reports are enabled.`}).option(`analytics-session-exp-time`,{type:`number`,description:`Session expiration time (seconds).`}).option(`consent-button-text-translations-accept-all`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-button-text-translations-confirm-my-choices`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-button-text-translations-reject-all`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-company-email`,{type:`string`,description:`The consent.companyEmail field`}).option(`consent-company-name`,{type:`string`,description:`The consent.companyName field`}).option(`consent-company-street-address`,{type:`string`,description:`The consent.companyStreetAddress field`}).option(`consent-consent-modal-intro-html`,{type:`string`,description:`The consent.consentModalIntroHTML field`}).option(`consent-consent-modal-intro-htmlwith-translations`,{type:`string`,description:`Object where keys are language codes. Provide as a JSON object or @path/to/file.json.`}).option(`consent-cookie-name`,{type:`string`,description:`The consent.cookieName field`}).option(`consent-custom-css`,{type:`string`,description:`The consent.customCSS field`}).option(`consent-custom-intro-disclaimer-dismissed`,{type:`boolean`,description:`The consent.customIntroDisclaimerDismissed field`}).option(`consent-default-language`,{type:`string`,description:`The consent.defaultLanguage field`}).option(`consent-enabled`,{type:`boolean`,description:`The consent.enabled field`}).option(`consent-hide-modal`,{type:`boolean`,description:`The consent.hideModal field`}).option(`consent-purposes`,{type:`string`,description:`Object where keys are purpose alpha-numeric IDs. Provide as a JSON object or @path/to/file.json.`}).option(`consent-purposes-with-translations`,{type:`string`,description:`Object where keys are purpose alpha-numeric IDs. Provide as a JSON object or @path/to/file.json.`}).option(`consent-tcf-compliant`,{type:`boolean`,description:`The consent.tcfCompliant field`}).option(`data-layer`,{type:`boolean`,description:`Data layer compatibility mode enabled.`}).option(`debug-key`,{type:`string`,description:`The key for Zaraz debug mode.`}).option(`history-change`,{type:`boolean`,description:`Single Page Application support enabled.`}).option(`settings-auto-inject-script`,{type:`boolean`,description:`Automatic injection of Zaraz scripts enabled.`}).option(`settings-context-enricher-escaped-worker-name`,{type:`string`,description:`The settings.contextEnricher.escapedWorkerName field`}).option(`settings-context-enricher-worker-tag`,{type:`string`,description:`The settings.contextEnricher.workerTag field`}).option(`settings-cookie-domain`,{type:`string`,description:`The domain Zaraz will use for writing and reading its cookies.`}).option(`settings-ecommerce`,{type:`boolean`,description:`Ecommerce API enabled.`}).option(`settings-events-api-path`,{type:`string`,description:`Custom endpoint for server-side track events.`}).option(`settings-hide-external-referer`,{type:`boolean`,description:`Hiding external referrer URL enabled.`}).option(`settings-hide-ipaddress`,{type:`boolean`,description:`Trimming IP address enabled.`}).option(`settings-hide-query-params`,{type:`boolean`,description:`Removing URL query params enabled.`}).option(`settings-hide-user-agent`,{type:`boolean`,description:`Removing sensitive data from User Agent string enabled.`}).option(`settings-init-path`,{type:`string`,description:`Custom endpoint for Zaraz init script.`}).option(`settings-inject-iframes`,{type:`boolean`,description:`Injection of Zaraz scripts into iframes enabled.`}).option(`settings-mc-root-path`,{type:`string`,description:`Custom path for Managed Components server functionalities.`}).option(`settings-script-path`,{type:`string`,description:`Custom endpoint for Zaraz main script.`}).option(`settings-track-path`,{type:`string`,description:`Custom endpoint for Zaraz tracking requests.`}).option(`triggers`,{type:`string`,description:`Triggers set up under Zaraz configuration, where key is the trigger alpha-numeric ID and value is the trigger configuration. Provide as a JSON object or @path/to/file.json.`}).option(`variables`,{type:`string`,description:`Variables set up under Zaraz configuration, where key is the variable alpha-numeric ID and value is the variable configuration. Values of variables of type secret are not included. Provide as a JSON object or @path/to/file.json.`}).option(`zaraz-version`,{type:`number`,description:`Zaraz internal version of the config.`}).option(`tools`,{type:`string`,description:`Tools set up under Zaraz configuration, where key is the alpha-numeric tool ID and value is the tool configuration object. Provide as a JSON object 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)`}).check(e=>{let t=[`consent-button-text-translations-accept-all`,`consent-button-text-translations-confirm-my-choices`,`consent-button-text-translations-reject-all`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`consent-button-text-translations-accept-all`,`consent-button-text-translations-confirm-my-choices`,`consent-button-text-translations-reject-all`].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 --consent-button-text-translations-* flag is set`)}return!0}).check(e=>{let t=[`consent-button-text-translations-accept-all`,`consent-button-text-translations-confirm-my-choices`,`consent-button-text-translations-reject-all`,`consent-company-email`,`consent-company-name`,`consent-company-street-address`,`consent-consent-modal-intro-html`,`consent-consent-modal-intro-htmlwith-translations`,`consent-cookie-name`,`consent-custom-css`,`consent-custom-intro-disclaimer-dismissed`,`consent-default-language`,`consent-enabled`,`consent-hide-modal`,`consent-purposes`,`consent-purposes-with-translations`,`consent-tcf-compliant`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`consent-enabled`].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 --consent-* flag is set`)}return!0}).check(e=>{let t=[`settings-context-enricher-escaped-worker-name`,`settings-context-enricher-worker-tag`].some(t=>e[t]!==void 0);if(!e.body&&t){let t=[`settings-context-enricher-escaped-worker-name`,`settings-context-enricher-worker-tag`].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 --settings-context-enricher-* flag is set`)}return!0})}const v={command:`update`,describe:`Update Zaraz configuration`,builder:_,handler:async e=>s({command:`zaraz config update`,classification:{safeFlags:[`analytics-enabled`,`consent-custom-intro-disclaimer-dismissed`,`consent-enabled`,`consent-hide-modal`,`consent-tcf-compliant`,`data-layer`,`history-change`,`settings-auto-inject-script`,`settings-ecommerce`,`settings-hide-external-referer`,`settings-hide-ipaddress`,`settings-hide-query-params`,`settings-hide-user-agent`,`settings-inject-iframes`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({analytics:{defaultPurpose:d(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{buttonTextTranslations:{accept_all:l(e[`consent-button-text-translations-accept-all`],`consent-button-text-translations-accept-all`),confirm_my_choices:l(e[`consent-button-text-translations-confirm-my-choices`],`consent-button-text-translations-confirm-my-choices`),reject_all:l(e[`consent-button-text-translations-reject-all`],`consent-button-text-translations-reject-all`)},companyEmail:d(e[`consent-company-email`],`consent-company-email`,`text`),companyName:d(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:d(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:d(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),consentModalIntroHTMLWithTranslations:l(e[`consent-consent-modal-intro-htmlwith-translations`],`consent-consent-modal-intro-htmlwith-translations`),cookieName:d(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:d(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:d(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],purposes:l(e[`consent-purposes`],`consent-purposes`),purposesWithTranslations:l(e[`consent-purposes-with-translations`],`consent-purposes-with-translations`),tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:d(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:d(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:d(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:d(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:d(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:d(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:d(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:d(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:d(e[`settings-track-path`],`settings-track-path`,`text`)},triggers:l(e.triggers,`triggers`,!0),variables:l(e.variables,`variables`,!0),zarazVersion:e[`zaraz-version`],tools:l(e.tools,`tools`)},[[`consent`,`buttonTextTranslations`,`accept_all`],[`consent`,`buttonTextTranslations`,`confirm_my_choices`],[`consent`,`buttonTextTranslations`,`reject_all`],[`consent`,`consentModalIntroHTMLWithTranslations`],[`consent`,`purposes`],[`consent`,`purposesWithTranslations`],[`triggers`],[`variables`],[`tools`]]):c(e.body,[{path:[`triggers`],flag:`triggers`},{path:[`variables`],flag:`variables`}])});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=s,e.body){let n=c(e.body,[{path:[`triggers`],flag:`triggers`},{path:[`variables`],flag:`variables`}]),r=await o(`Updating`,async()=>t.send(g,{body:n,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e[`data-layer`]===void 0)throw Error(`--data-layer is required (or pass --body with this field set).`);if(e[`debug-key`]===void 0&&(e[`debug-key`]=await f(`debug-key`,`The key for Zaraz debug mode.`)),e[`settings-auto-inject-script`]===void 0)throw Error(`--settings-auto-inject-script is required (or pass --body with this field set).`);if(e.triggers===void 0)throw Error(`--triggers is required (or pass --body with this field set).`);if(e.variables===void 0)throw Error(`--variables is required (or pass --body with this field set).`);if(e[`zaraz-version`]===void 0)throw Error(`--zaraz-version is required (or pass --body with this field set).`);let p=u({analytics:{defaultPurpose:d(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{buttonTextTranslations:{accept_all:l(e[`consent-button-text-translations-accept-all`],`consent-button-text-translations-accept-all`),confirm_my_choices:l(e[`consent-button-text-translations-confirm-my-choices`],`consent-button-text-translations-confirm-my-choices`),reject_all:l(e[`consent-button-text-translations-reject-all`],`consent-button-text-translations-reject-all`)},companyEmail:d(e[`consent-company-email`],`consent-company-email`,`text`),companyName:d(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:d(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:d(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),consentModalIntroHTMLWithTranslations:l(e[`consent-consent-modal-intro-htmlwith-translations`],`consent-consent-modal-intro-htmlwith-translations`),cookieName:d(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:d(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:d(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],purposes:l(e[`consent-purposes`],`consent-purposes`),purposesWithTranslations:l(e[`consent-purposes-with-translations`],`consent-purposes-with-translations`),tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:d(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:d(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:d(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:d(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:d(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:d(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:d(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:d(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:d(e[`settings-track-path`],`settings-track-path`,`text`)},triggers:l(e.triggers,`triggers`,!0),variables:l(e.variables,`variables`,!0),zarazVersion:e[`zaraz-version`],tools:l(e.tools,`tools`)},[[`consent`,`buttonTextTranslations`,`accept_all`],[`consent`,`buttonTextTranslations`,`confirm_my_choices`],[`consent`,`buttonTextTranslations`,`reject_all`],[`consent`,`consentModalIntroHTMLWithTranslations`],[`consent`,`purposes`],[`consent`,`purposesWithTranslations`],[`triggers`],[`variables`],[`tools`]]),m=await o(`Updating`,async()=>t.send(g,{body:p,zone_id:s}));i(m,{successLabel:`Updated`})})},y={command:`config`,describe:`Full Zaraz configuration including tools, triggers, and variables for the zone`,builder:e=>e.command(h).command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/default`};function x(e){return e.usage(`$0 zaraz default get
7
7
 
8
8
  Gets default Zaraz configuration for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const S={command:`get`,describe:`Get default Zaraz configuration`,builder:x,handler:async e=>s({command:`zaraz default get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz default get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/default`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(b,{zone_id:s}));i(c,{successLabel:`Loaded`})})},C={command:`default`,describe:`Default Zaraz configuration template used as a starting point for new zones`,builder:e=>e.command(S).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var w={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/export`};function T(e){return e.usage(`$0 zaraz export get
9
9