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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/README.md +1 -1
  2. package/dist/_meta/commands.json +911 -751
  3. package/dist/_meta/schemas.json +401 -382
  4. package/dist/{abuse-reports-mKv00yPh.mjs → abuse-reports-CbUAnJxd.mjs} +1 -1
  5. package/dist/{access-CyRjTbhh.mjs → access-C-78DlxL.mjs} +1 -1
  6. package/dist/{accounts-BmF_YKvG.mjs → accounts-DEqQPxCz.mjs} +8 -15
  7. package/dist/{acm-BcIFiAb8.mjs → acm-jmhCq3Yh.mjs} +2 -3
  8. package/dist/{addressing-D6xVD7MM.mjs → addressing-BeYFpQvC.mjs} +12 -23
  9. package/dist/{agent-memory-Blldunhv.mjs → agent-memory-Chlovb7j.mjs} +5 -9
  10. package/dist/{ai-CU8tdTfC.mjs → ai-BndH3HYN.mjs} +2 -3
  11. package/dist/{ai-audit-Id3hq5pV.mjs → ai-audit-BUJ-70O_.mjs} +1 -1
  12. package/dist/{ai-gateway-BKeZ28CQ.mjs → ai-gateway-CCk7VKhL.mjs} +9 -15
  13. package/dist/{ai-search-DOiZEmn7.mjs → ai-search-BexET_wp.mjs} +6 -11
  14. package/dist/{ai-security-CioADDZi.mjs → ai-security-D4MxRlxX.mjs} +3 -5
  15. package/dist/{alerting-BzN1N3Se.mjs → alerting-rw8Oi3x7.mjs} +5 -9
  16. package/dist/{analytics-engine-CugCQfDe.mjs → analytics-engine-Bk7dQLcm.mjs} +1 -1
  17. package/dist/{analytics-Cte-DrzH.mjs → analytics-q-guNEOK.mjs} +1 -1
  18. package/dist/{api-security-CCs0g510.mjs → api-security-BDc6gkf1.mjs} +9 -17
  19. package/dist/{argo-BHBFZnmO.mjs → argo-CnLIqm0i.mjs} +1 -1
  20. package/dist/args-BAOHroBC.mjs +2 -0
  21. package/dist/{artifacts-BzAwvrCD.mjs → artifacts-Cil33dzV.mjs} +4 -7
  22. package/dist/{audit-logs-jWivEKCy.mjs → audit-logs--E2Eclb7.mjs} +1 -1
  23. package/dist/auth-B0lEsD_1.mjs +2 -0
  24. package/dist/{auth-BUQscD5b.mjs → auth-BcNLQji1.mjs} +1 -1
  25. package/dist/auth-BtZmY6sE.mjs +2 -0
  26. package/dist/{auth-token-T0aqYgl9.mjs → auth-token-aF5AVLlH.mjs} +1 -1
  27. package/dist/{autoconfig-CBdcYYf4.mjs → autoconfig-Dbp6J25P.mjs} +88 -88
  28. package/dist/{basin-catalog-_8w_4599.mjs → basin-catalog-dnVyzopm.mjs} +3 -5
  29. package/dist/{billing-Ce0WN0yw.mjs → billing-Fqp3jB2V.mjs} +2 -3
  30. package/dist/{blocks-CFAm0Ma3.mjs → blocks-BOQH-Won.mjs} +1 -1
  31. package/dist/{bot-management-DskcSr4B.mjs → bot-management-SEDgo1Xg.mjs} +1 -1
  32. package/dist/{botnet-feed-CmBm13-D.mjs → botnet-feed-DPqR4M0Y.mjs} +2 -3
  33. package/dist/{brand-protection-DTuFrsN0.mjs → brand-protection-B8vwKfM9.mjs} +2 -3
  34. package/dist/{browser-run-CXdzSOHa.mjs → browser-run-BybYDq3I.mjs} +3 -5
  35. package/dist/build-BqGmiORA.mjs +2 -0
  36. package/dist/build-CWlpWVBf.mjs +2 -0
  37. package/dist/{builds-_1u5Nx6f.mjs → builds-CvtOG-Gk.mjs} +8 -15
  38. package/dist/cache-Bme_d2Wx.mjs +36 -0
  39. package/dist/cf-fIBhEAxU.mjs +18 -0
  40. package/dist/chunk-DSGVRFIS-DHC6NOIj.mjs +2 -0
  41. package/dist/{chunk-2K52M2W5-iYNzknM1.mjs → chunk-XVBBSNW2-DfMyGS-l.mjs} +8 -8
  42. package/dist/{cli-DyhOdzMo.mjs → cli-CIKDqm-u.mjs} +3 -3
  43. package/dist/{client-side-security-DnnYaRsd.mjs → client-side-security-ZQeRoo1t.mjs} +2 -3
  44. package/dist/{cloud-connector-Ct6b6pz8.mjs → cloud-connector-BeunZlNV.mjs} +1 -1
  45. package/dist/{cloudflared-CHLpWU35.mjs → cloudflared-DbzoIouQ.mjs} +1 -1
  46. package/dist/{cloudforce-one-Rl6nCCm0.mjs → cloudforce-one-D20t9ojD.mjs} +26 -51
  47. package/dist/{command-BwgvUpNx.mjs → command-B3uWlw57.mjs} +1 -1
  48. package/dist/{command-DuLxEkGq.mjs → command-BGRucANI.mjs} +1 -1
  49. package/dist/{command-BONLLcyz.mjs → command-C6kE7BU0.mjs} +1 -1
  50. package/dist/{command-DOpykk8X.mjs → command-C9CNvZi_.mjs} +1 -1
  51. package/dist/{command-BRpBIju7.mjs → command-CQ5qHE7n.mjs} +1 -1
  52. package/dist/{command-CHGc-KZ7.mjs → command-CkZkTjIj.mjs} +1 -1
  53. package/dist/{command-BRXOUAGD.mjs → command-CqKRlHGv.mjs} +1 -1
  54. package/dist/{command-BwlIi3Bv.mjs → command-CtlD6MEi.mjs} +1 -1
  55. package/dist/{command-CXzje7qc.mjs → command-CzWWQv8j.mjs} +1 -1
  56. package/dist/{command-BMYi_gS-.mjs → command-DWWuXQV8.mjs} +1 -1
  57. package/dist/{command-CPDQPdss.mjs → command-DkwmylF2.mjs} +1 -1
  58. package/dist/{command-CMa807gY.mjs → command-MxFFWqMg.mjs} +1 -1
  59. package/dist/{command-BVO9UOuU.mjs → command-orlUsdgf.mjs} +1 -1
  60. package/dist/{command-CVoDyQnL.mjs → command-prWMAJbg.mjs} +1 -1
  61. package/dist/{command-0WS5I_JW.mjs → command-rUCxlpQI.mjs} +1 -1
  62. package/dist/command-resolution-DAQ4PWUt.mjs +2 -0
  63. package/dist/{completions-DMwrvK_S.mjs → completions-2Otv0HMd.mjs} +1 -1
  64. package/dist/{connector-interrupts-DyWilINb.mjs → connector-interrupts-Dfhxupmg.mjs} +1 -1
  65. package/dist/{connector-telemetry-events-BUW9qTOs.mjs → connector-telemetry-events-CLVpDTIa.mjs} +1 -1
  66. package/dist/{connector-telemetry-snapshots-Djs5QssR.mjs → connector-telemetry-snapshots-E_1tmNmQ.mjs} +1 -1
  67. package/dist/{connectors-e_cpzDEm.mjs → connectors-ChJpQFSl.mjs} +2 -3
  68. package/dist/{containers-CEH15JUu.mjs → containers-Cj5-9nUg.mjs} +6 -9
  69. package/dist/containers-CzAZfmnj.mjs +380 -0
  70. package/dist/{content-scan-B6Ahw9JA.mjs → content-scan-CIA_9PV8.mjs} +3 -5
  71. package/dist/{context-Sgba0fZP.mjs → context-DVh8Wyfs.mjs} +2 -2
  72. package/dist/{cps-uDD0SSJ-.mjs → cps-hJkqdsHx.mjs} +1 -1
  73. package/dist/{csam-scanner-BSUl7jGn.mjs → csam-scanner-cCVO3lNF.mjs} +1 -1
  74. package/dist/{custom-csrs-BDcXggph.mjs → custom-csrs-BrTWUZ0c.mjs} +2 -3
  75. package/dist/{custom-hostnames-UmIlwkwt.mjs → custom-hostnames-C4ft77oC.mjs} +4 -7
  76. package/dist/{custom-nameservers-D7kU6d--.mjs → custom-nameservers-BWfrZhD1.mjs} +2 -3
  77. package/dist/{custom-pages-CkhIQCfM.mjs → custom-pages-DqTMKtRc.mjs} +2 -3
  78. package/dist/{d1-myRLEAGs.mjs → d1-B58AA9PA.mjs} +3 -6
  79. package/dist/delegate-D7yYckA4.mjs +2 -0
  80. package/dist/delegate.mjs +1 -1
  81. package/dist/{deploy-BJqCpycz.mjs → deploy-CEROLAdh.mjs} +1 -1
  82. package/dist/deploy-context-Do89WayB.mjs +56 -0
  83. package/dist/{deploy-input-v2DryyLP.mjs → deploy-input-DyMuMsi5.mjs} +1 -1
  84. package/dist/{dev-S1PJi83q.mjs → dev-BaFS7kOM.mjs} +2 -2
  85. package/dist/{diagnostics-q65rcNIk.mjs → diagnostics-4gfYj7Pf.mjs} +2 -3
  86. package/dist/dialog-D5lus4M4.mjs +2 -0
  87. package/dist/discover-6kAmVMPp.mjs +2 -0
  88. package/dist/discover-C06Syc2B.mjs +2 -0
  89. package/dist/dist-BtzWfAjU.mjs +453 -0
  90. package/dist/dls-ClWVxTBg.mjs +16 -0
  91. package/dist/{dns-DhARjFQs.mjs → dns-CML-wxIt.mjs} +68 -68
  92. package/dist/{dns-firewall-BP6r9QG6.mjs → dns-firewall-CL0b3dJ1.mjs} +2 -3
  93. package/dist/{docs-CReGWDrw.mjs → docs-BeYBHwUN.mjs} +1 -1
  94. package/dist/{dotenv-Ck-6V1hm.mjs → dotenv-CmPRiXmU.mjs} +1 -1
  95. package/dist/{dry-run-BBjUQUhR.mjs → dry-run-gy0Hl9xo.mjs} +1 -1
  96. package/dist/{durable-objects-tOJy-5te.mjs → durable-objects-uZECeq_f.mjs} +1 -1
  97. package/dist/{email-auth-Bq9sq_2j.mjs → email-auth-CCNW798I.mjs} +1 -1
  98. package/dist/email-domains-1rD1d84O.mjs +12 -0
  99. package/dist/{email-routing-CYo4dp50.mjs → email-routing-CYv-LrbV.mjs} +4 -7
  100. package/dist/{email-security-CNtWET2d.mjs → email-security-CWEUYPYo.mjs} +16 -31
  101. package/dist/{email-sending-BvagNLRr.mjs → email-sending-DHSzCfJx.mjs} +3 -5
  102. package/dist/{errors-DpbAQQv8.mjs → errors-ol9sMqSe.mjs} +8 -8
  103. package/dist/{field-extractors-C9R3Qivh.mjs → field-extractors-CuBM_uO4.mjs} +2 -3
  104. package/dist/{firewall-DsgUY-Qv.mjs → firewall-SMIUSypF.mjs} +4 -7
  105. package/dist/flagship-D3v6iDdw.mjs +24 -0
  106. package/dist/{fraud-24l8dKyk.mjs → fraud-B2f7O15X.mjs} +1 -1
  107. package/dist/{google-tag-gateway-CAkudP5W.mjs → google-tag-gateway-BwOc62Gy.mjs} +1 -1
  108. package/dist/{gt-D6YemCLh.mjs → gt-BQkaDQDq.mjs} +1 -1
  109. package/dist/{healthchecks-CEGMe3lO.mjs → healthchecks-BQXHnihB.mjs} +3 -5
  110. package/dist/{hyperdrive-DLDaOU2O.mjs → hyperdrive-Bd6Yfje3.mjs} +2 -3
  111. package/dist/{iam-ChldOMSL.mjs → iam-qJPI1_aZ.mjs} +5 -9
  112. package/dist/{images-Ba9tS5wT.mjs → images-goHZJOxy.mjs} +6 -11
  113. package/dist/index.mjs +1 -1
  114. package/dist/init-CVx0Ya1E.mjs +43 -0
  115. package/dist/{intel-DbLRah4Y.mjs → intel-CwiqwJI9.mjs} +18 -21
  116. package/dist/interactive-CHcvofEp.mjs +2 -0
  117. package/dist/{interactive-d_lFnSev.mjs → interactive-D4E8PdaW.mjs} +31 -31
  118. package/dist/interactive-wQM7Blhm.mjs +2 -0
  119. package/dist/internal-5cnlw9mH.mjs +4 -0
  120. package/dist/{ips-BGyzyQLL.mjs → ips-KBxmXhvO.mjs} +1 -1
  121. package/dist/{k2-BVQ3MqEl.mjs → k2-KhIP5NFT.mjs} +2 -3
  122. package/dist/kv-CCem2sEY.mjs +12 -0
  123. package/dist/{lazy-command-D0I6itZs.mjs → lazy-command-BMhD5ffF.mjs} +1 -1
  124. package/dist/{leaked-credential-checks-Dga83Qy3.mjs → leaked-credential-checks-BkPZiwE2.mjs} +3 -5
  125. package/dist/live-BhHzxFna.mjs +4 -0
  126. package/dist/{load-balancers-D9cB6of8.mjs → load-balancers-17GBXdju.mjs} +5 -9
  127. package/dist/local-CAs8RWYW.mjs +2 -0
  128. package/dist/{local-B7ZJ78al.mjs → local-CSH3UMpD.mjs} +1 -1
  129. package/dist/{local-runtime-DB545Gqq.mjs → local-runtime-KOFLRZeZ.mjs} +1 -1
  130. package/dist/log-BWdaOGOW.mjs +66 -0
  131. package/dist/log-DZfik9Jk.mjs +2 -0
  132. package/dist/login-BTiflOun.mjs +2 -0
  133. package/dist/login-Buhvx6Fi.mjs +5 -0
  134. package/dist/{logpush-Ccmr0Y_I.mjs → logpush-BCCUxa4J.mjs} +3 -5
  135. package/dist/{logs-CZBMuuBC.mjs → logs-4CwupKRG.mjs} +2 -3
  136. package/dist/{magic-cloud-networking-BwOxZVql.mjs → magic-cloud-networking-Xy6SC-V-.mjs} +4 -7
  137. package/dist/{magic-network-monitoring-Cx5kKdbk.mjs → magic-network-monitoring-B8pRZp2g.mjs} +3 -5
  138. package/dist/{magic-transit-BJwg3sVK.mjs → magic-transit-CwfO3OOX.mjs} +36 -67
  139. package/dist/managed-defense-CtFLuvuB.mjs +18 -0
  140. package/dist/{managed-transforms-C-HMtesC.mjs → managed-transforms-Hto8OCBS.mjs} +2 -3
  141. package/dist/{mcp-bGKgzz6F.mjs → mcp-SQ0MAVUJ.mjs} +3 -5
  142. package/dist/{mesh-DeQIll19.mjs → mesh-C8A6tVqA.mjs} +3 -5
  143. package/dist/{migrate-B6HsPeFh.mjs → migrate-Dufxsb_F.mjs} +1 -1
  144. package/dist/{monetization-B-TIrpA5.mjs → monetization-CYVaCAe9.mjs} +3 -5
  145. package/dist/{network-BrjykU-I.mjs → network-CJBTdEM3.mjs} +5 -9
  146. package/dist/{network-interconnects-I06kbxIl.mjs → network-interconnects-CKlNFj3i.mjs} +3 -5
  147. package/dist/{o11y-Ba0Fa98_.mjs → o11y-5x2Q8CWm.mjs} +8 -15
  148. package/dist/{oauth-BH-uQd3C.mjs → oauth-BN6_FpYp.mjs} +1 -1
  149. package/dist/oauth-D_A8AcIS.mjs +4 -0
  150. package/dist/{oauth-clients-Dd5gvDqf.mjs → oauth-clients-qKXg8ZH3.mjs} +3 -5
  151. package/dist/{oauth-scopes-CXpH3Syj.mjs → oauth-scopes-Ct1jDyC5.mjs} +1 -1
  152. package/dist/{organization-DKPqwe3j.mjs → organization-lBQSeqS1.mjs} +3 -5
  153. package/dist/{organizations-Cq4iy-Yr.mjs → organizations-DEX8Er3g.mjs} +1 -1
  154. package/dist/{origin-post-quantum-encryption-DSB1sbYV.mjs → origin-post-quantum-encryption-DUsxVGCs.mjs} +1 -1
  155. package/dist/output-BJEgbI0G.mjs +2 -0
  156. package/dist/package-BqSbnt6u.mjs +2 -0
  157. package/dist/{page-rules-CDWTYaf7.mjs → page-rules-BMt6nt03.mjs} +2 -3
  158. package/dist/{pages-Dgtm51Uj.mjs → pages-Jxa92ECz.mjs} +7 -13
  159. package/dist/{pay-per-crawl-CHenxdhv.mjs → pay-per-crawl-Cv0044CZ.mjs} +3 -5
  160. package/dist/{pay-per-use-Bd5l0hBi.mjs → pay-per-use-DGEeG-dC.mjs} +2 -3
  161. package/dist/{pipelines-GsyD6nUM.mjs → pipelines-CEC78A3w.mjs} +5 -9
  162. package/dist/{precursor-mO-Zua09.mjs → precursor-Ba0Ejhzt.mjs} +1 -1
  163. package/dist/previews-DnZbUTym.mjs +6 -0
  164. package/dist/progress-CtGsPOpV.mjs +2 -0
  165. package/dist/prompt-YrI7ltMa.mjs +4 -0
  166. package/dist/{queues-D8cAr2lB.mjs → queues-Chq997uj.mjs} +6 -11
  167. package/dist/{r2-CJiJbG6b.mjs → r2-BFgZDs-F.mjs} +17 -33
  168. package/dist/{radar-PUZ_PCZ8.mjs → radar-DJdDzLJw.mjs} +1 -1
  169. package/dist/{raw-fetch-DSdFjojI.mjs → raw-fetch-BE3QgdTE.mjs} +1 -1
  170. package/dist/ready-Cok0aqke.mjs +4 -0
  171. package/dist/{realtime-X6uQsldp.mjs → realtime-BHWWCiKp.mjs} +10 -19
  172. package/dist/{registrar-BqZdUTss.mjs → registrar-9Y-1IQ0n.mjs} +1 -1
  173. package/dist/{registrar-sandbox-CmM3e1QN.mjs → registrar-sandbox-DTS1kRnb.mjs} +1 -1
  174. package/dist/{registry-D0tMkLv6.mjs → registry-Bm-GgDC3.mjs} +1 -1
  175. package/dist/{reporting-DFVz98Xg.mjs → reporting-D5RbKQJf.mjs} +1 -1
  176. package/dist/request-headers-KhW_hy36.mjs +2 -0
  177. package/dist/{request-tracers-BC1u2WDU.mjs → request-tracers-wxWCjmHo.mjs} +1 -1
  178. package/dist/{resource-sharing-CdEn5Iex.mjs → resource-sharing-BGoaVvJa.mjs} +5 -9
  179. package/dist/rolldown-runtime-BNtqjh-B.mjs +2 -0
  180. package/dist/{rules-B663VetJ.mjs → rules-Cd3EjhdF.mjs} +3 -5
  181. package/dist/{rulesets-p4EijVr6.mjs → rulesets-Bnz3rSBT.mjs} +4 -7
  182. package/dist/{rum-CHHXe4KK.mjs → rum-CK9HEe3O.mjs} +3 -5
  183. package/dist/run-Be6Js7D6.mjs +2 -0
  184. package/dist/run-DnZGQbq_.mjs +2 -0
  185. package/dist/sanitization-DkVWMHkc.mjs +2 -0
  186. package/dist/{schema-B38ojvsS.mjs → schema-DuLIZRhA.mjs} +1 -1
  187. package/dist/{schema-flags-z7yn0JZ_.mjs → schema-flags-BrDlFwLv.mjs} +1 -1
  188. package/dist/{scim-BMnUa4Oz.mjs → scim-UdqaWnOu.mjs} +3 -5
  189. package/dist/{secrets-store-EYrhEzVG.mjs → secrets-store-Bf5v96LC.mjs} +3 -5
  190. package/dist/{security-insights-C-AwDwXb.mjs → security-insights-BAGySlGu.mjs} +1 -1
  191. package/dist/{security-txt-CQMe8TD3.mjs → security-txt-D0fMmjHs.mjs} +2 -3
  192. package/dist/session-6xqrJWXy.mjs +2 -0
  193. package/dist/shared-DYRRG9A-.mjs +2 -0
  194. package/dist/signed-url-Ce0muRem.mjs +4 -0
  195. package/dist/{smart-shield-CHSuitaH.mjs → smart-shield-CCy7_M3j.mjs} +3 -5
  196. package/dist/{snippets-DGSBz4lg.mjs → snippets-Bc8m3HSV.mjs} +3 -5
  197. package/dist/spawn-BAEdy9kS.mjs +5 -0
  198. package/dist/{spectrum-59LhYG1t.mjs → spectrum-DtNX8WBX.mjs} +2 -3
  199. package/dist/{speed-CMCfoG3s.mjs → speed-TbkeWV_x.mjs} +3 -5
  200. package/dist/{sql-MxWaTDdj.mjs → sql-DI319y25.mjs} +1 -1
  201. package/dist/src-COwxoocl.mjs +2 -0
  202. package/dist/{src-J3Yss3VM.mjs → src-Dc6ojwUW.mjs} +5 -5
  203. package/dist/{ssl-DTTFZR9x.mjs → ssl-D0MIzFl2.mjs} +9 -17
  204. package/dist/startup-profile-CZYtQziF.mjs +2 -0
  205. package/dist/{startup-profile-bp348qmf.mjs → startup-profile-DlWrt4Fm.mjs} +5 -5
  206. package/dist/state-B3Uy1jPX.mjs +2 -0
  207. package/dist/{state-CqAtTENS.mjs → state-DazGSbRx.mjs} +1 -1
  208. package/dist/{stream-gVG_7si-.mjs → stream-4Mrb8HEo.mjs} +14 -27
  209. package/dist/tags-BP25qydR.mjs +22 -0
  210. package/dist/telemetry-CvZean4s.mjs +2 -0
  211. package/dist/telemetry-DKSJSLtq.mjs +2 -0
  212. package/dist/{tenant-custom-nameservers-DBmmUcxn.mjs → tenant-custom-nameservers-BzVP85Tq.mjs} +2 -3
  213. package/dist/{tenant-Qv_PC8gW.mjs → tenant-jmfZqEZ4.mjs} +1 -1
  214. package/dist/{tools-B1ajcUAF.mjs → tools-C-vmgYSv.mjs} +1 -1
  215. package/dist/{tunnels-CHNKPYRV.mjs → tunnels-BNswR1Dj.mjs} +4 -6
  216. package/dist/{turnstile-C60RxPo2.mjs → turnstile-BgsTP2fz.mjs} +2 -3
  217. package/dist/ui-Bo6DCvbS.mjs +2 -0
  218. package/dist/{update-check-BHarE3V9.mjs → update-check-BOF1hn_I.mjs} +1 -1
  219. package/dist/update-check-C7mfEeQ7.mjs +2 -0
  220. package/dist/update-check-worker.mjs +1 -1
  221. package/dist/{url-normalization-3t6Xpafi.mjs → url-normalization-Bqrs4-2F.mjs} +2 -3
  222. package/dist/{url-scanner-DNG__DiK.mjs → url-scanner-Dm4Fps5T.mjs} +1 -1
  223. package/dist/{user-B4i7OIFK.mjs → user-u_LxzLM4.mjs} +8 -15
  224. package/dist/{vectorize-y3PCQDDf.mjs → vectorize-DLGiOyd4.mjs} +3 -5
  225. package/dist/version-DmTuWNZ5.mjs +2 -0
  226. package/dist/{waiting-rooms-xkZLvPkT.mjs → waiting-rooms-DmgJgJXb.mjs} +4 -7
  227. package/dist/{web-assets-BlqHZywy.mjs → web-assets-rNhZWP-6.mjs} +7 -13
  228. package/dist/{web3-DGAJMcLv.mjs → web3-BVBdFt8E.mjs} +3 -5
  229. package/dist/{workers-cCNBx0Bc.mjs → workers-CjUKJvH8.mjs} +18 -22
  230. package/dist/{workers-builds-COKp3NfU.mjs → workers-builds-D3Q97l7X.mjs} +1 -1
  231. package/dist/{workers-for-platforms-CAtiWI_G.mjs → workers-for-platforms-C_fcw30y.mjs} +5 -9
  232. package/dist/{workers-vpc-ChBfXwPy.mjs → workers-vpc-CnRO3Stc.mjs} +2 -3
  233. package/dist/{workflows-BYhgJvyR.mjs → workflows-cpHFe5v6.mjs} +5 -9
  234. package/dist/{wrangler-migration-B12OR2bu.mjs → wrangler-migration-DQehjmoh.mjs} +74 -74
  235. package/dist/{zaraz-BW0kvRCK.mjs → zaraz-BRj0J7vK.mjs} +1 -1
  236. package/dist/{zero-trust-DSeWXkNV.mjs → zero-trust-CVZKDLCB.mjs} +75 -149
  237. package/dist/{zone-B-YJG2UA.mjs → zone-N6ccK70C.mjs} +1 -1
  238. package/dist/{zones-B8pqPHu8.mjs → zones-C4S_kpGz.mjs} +49 -52
  239. package/package.json +12 -12
  240. package/dist/auth-CdEGiJ5Y.mjs +0 -2
  241. package/dist/auth-DF_ml7rE.mjs +0 -2
  242. package/dist/build-BJHRK6qE.mjs +0 -2
  243. package/dist/build-D7s3a8zW.mjs +0 -2
  244. package/dist/cache-CDPUUv_O.mjs +0 -45
  245. package/dist/cf-3vj8dGYz.mjs +0 -18
  246. package/dist/chunk-DSGVRFIS-RUG6Dtqz.mjs +0 -2
  247. package/dist/containers-CcZHRM9g.mjs +0 -376
  248. package/dist/delegate-Tgfxa-MZ.mjs +0 -2
  249. package/dist/deploy-context-DIAl408H.mjs +0 -56
  250. package/dist/dialog-BnIgdgWi.mjs +0 -2
  251. package/dist/discover-DEjUARkU.mjs +0 -2
  252. package/dist/discover-P20XeGBF.mjs +0 -2
  253. package/dist/dist-CX6dDtzj.mjs +0 -449
  254. package/dist/dist-DAeCUX-u.mjs +0 -60
  255. package/dist/dls-CMTrCDjZ.mjs +0 -17
  256. package/dist/flagship-geGDHp9H.mjs +0 -28
  257. package/dist/init-C08hBFYn.mjs +0 -43
  258. package/dist/interactive-pjVqirHx.mjs +0 -2
  259. package/dist/kv-Cd8vbPWK.mjs +0 -15
  260. package/dist/local-CFZtOOxg.mjs +0 -2
  261. package/dist/log-CRbgNbDp.mjs +0 -3
  262. package/dist/login-C3Bahro9.mjs +0 -5
  263. package/dist/login-DvsRxI3E.mjs +0 -2
  264. package/dist/logo-matches-jeNkUxAq.mjs +0 -6
  265. package/dist/logos-pxN5aumY.mjs +0 -7
  266. package/dist/managed-defense-C_KLy4oB.mjs +0 -18
  267. package/dist/matches-DnjBnG-Y.mjs +0 -6
  268. package/dist/oauth-Cf3-g-kk.mjs +0 -4
  269. package/dist/output-CpiIVa7Q.mjs +0 -2
  270. package/dist/previews-oHUiD54J.mjs +0 -7
  271. package/dist/progress-B1dpmxCT.mjs +0 -2
  272. package/dist/prompt-Y5OBwDVE.mjs +0 -4
  273. package/dist/queries-CS0sYfte.mjs +0 -9
  274. package/dist/request-headers-Bg8_Idw3.mjs +0 -2
  275. package/dist/run-0EozpORq.mjs +0 -2
  276. package/dist/run-DKg70Sqf.mjs +0 -2
  277. package/dist/session-3DgztoAI.mjs +0 -2
  278. package/dist/shared-o8saqcSK.mjs +0 -2
  279. package/dist/source-AlTrHNem.mjs +0 -6
  280. package/dist/spawn-BZd__5sj.mjs +0 -10
  281. package/dist/startup-profile-DJsOtbVN.mjs +0 -2
  282. package/dist/state-Dvzl3aSj.mjs +0 -2
  283. package/dist/submit-wJYcQB8d.mjs +0 -4
  284. package/dist/tags-BwFKjaOr.mjs +0 -23
  285. package/dist/telemetry-BczXOpQn.mjs +0 -2
  286. package/dist/telemetry-CE15pfOU.mjs +0 -2
  287. package/dist/ui-CBhKUPys.mjs +0 -2
  288. package/dist/update-check-C3RhhXja.mjs +0 -2
  289. package/dist/url-info-By6VD20A.mjs +0 -4
  290. package/dist/version-izjB0Yrl.mjs +0 -2
@@ -1,19 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-B7ZJ78al.mjs";import{n}from"./auth-BUQscD5b.mjs";import{a as r,i,t as a}from"./context-Sgba0fZP.mjs";import{t as o}from"./output-CpiIVa7Q.mjs";import{t as s}from"./dry-run-BBjUQUhR.mjs";import{t as c}from"./progress-B1dpmxCT.mjs";import{t as l}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as u,n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-Y5OBwDVE.mjs";var _={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/waiting_rooms`,query:[`page`,`per_page`]};function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-CSH3UMpD.mjs";import{n}from"./auth-BcNLQji1.mjs";import{a as r,i,t as a}from"./context-DVh8Wyfs.mjs";import{t as o}from"./output-BJEgbI0G.mjs";import{t as s}from"./dry-run-gy0Hl9xo.mjs";import{t as c}from"./progress-CtGsPOpV.mjs";import{t as l}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as u,n as d,t as f}from"./body-parser-ChnyBsfm.mjs";import{n as p}from"./input-validation-D7z60HJH.mjs";import{a as m,i as h,n as g}from"./prompt-YrI7ltMa.mjs";var _={method:`GET`,path:t=>e`/${t.account_or_zone}/${t.account_or_zone_id}/waiting_rooms`,query:[`page`,`per_page`]};function ee(e){return e.usage(`$0 waiting-rooms account-waiting-rooms list
3
3
 
4
4
  Lists waiting rooms for account or zone.`).option(`page`,{type:`number`,description:`Page number of paginated results.`}).option(`per-page`,{type:`number`,description:`Maximum number of results per page. Must be a multiple of 5.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const v={command:`list`,describe:`List waiting rooms for account or zone`,builder:ee,handler:async e=>l({command:`waiting-rooms account-waiting-rooms list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let l={page:e.page,per_page:e[`per-page`]};if(e.dryRun){let t=e.zone===void 0?await r():void 0,n=e.zone===void 0?`accounts`:`zones`,i=e.zone??t??`<account-id>`;s({command:`cf waiting-rooms account-waiting-rooms list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/${n}/${i}/waiting_rooms`,pathParams:{"account-or-zone":String(n),"account-or-zone-id":String(i)},query:l,bodyKind:`none`});return}let u=await n(e),d=e.zone===void 0?`accounts`:`zones`,f=d===`zones`?await i({zone:e.zone},u,{quiet:e.quiet}):e.local?t:await a();d===`zones`?e.zoneId=f:e.accountId=f;let p=await c(`Loading`,async()=>u.send(_,{account_or_zone:d,account_or_zone_id:f,...l}));o(p,{successLabel:`Loaded`})})},y={command:`account-waiting-rooms`,describe:`Account-scoped waiting room listing`,builder:e=>e.command(v).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var b={method:`POST`,path:t=>e`/zones/${t.zone_id}/waiting_rooms`,body:`json`};function te(e){return e.usage(`$0 waiting-rooms create
5
5
 
6
6
  Creates a new waiting room.`).option(`additional-routes`,{type:`string`,description:`Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. Provide as a JSON array of objects or @path/to/file.json.`}).option(`cookie-attributes-samesite`,{type:`string`,description:"Configures the SameSite attribute on the waiting room cookie. Value `auto` will be translated to `lax` or `none` depending if **Always Use HTTPS** is enabled. Note that when using value `none`, the secure attribute cannot be set to `never`.",choices:[`auto`,`lax`,`none`,`strict`]}).coerce(`cookie-attributes-samesite`,e=>p(e,`cookie-attributes-samesite`,`text`)).option(`cookie-attributes-secure`,{type:`string`,description:"Configures the Secure attribute on the waiting room cookie. Value `always` indicates that the Secure attribute will be set in the Set-Cookie header, `never` indicates that the Secure attribute will not be set, and `auto` will set the Secure attribute depending if **Always Use HTTPS** is enabled.",choices:[`auto`,`always`,`never`]}).coerce(`cookie-attributes-secure`,e=>p(e,`cookie-attributes-secure`,`text`)).option(`cookie-suffix`,{type:`string`,description:"Appends a '_' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(__cf_waitingroom). If `cookie_suffix` is \"abcd\", the cookie name will be `__cf_waitingroom_abcd`. This field is required if using `additional_routes`.",default:``}).option(`custom-page-html`,{type:`string`,description:"Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custom_page_html is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:\n1. {{`waitTimeKnown`}} Acts like a boolean value that indicates the behavior to take when wait time is not available, for instance when queue_all is **true**.\n2. {{`waitTimeFormatted`}} Estimated wait time for the user. For example, five minutes. Alternatively, you can use:\n3. {{`waitTime`}} Number of minutes of estimated wait for a user.\n4. {{`waitTimeHours`}} Number of hours of estimated wait for a user (`Math.floor(waitTime/60)`).\n5. {{`waitTimeHourMinutes`}} Number of minutes above the `waitTimeHours` value (`waitTime%60`).\n6. {{`queueIsFull`}} Changes to **true** when no more people can be added to the queue.\n\nTo view the full list of variables, look at the `cfWaitingRoom` object described under the `json_response_enabled` property in other Waiting Room API calls.",default:``}).option(`default-template-language`,{type:`string`,description:"The language of the default page template. If no default_template_language is provided, then `en-US` (English) will be used.",choices:/* @__PURE__ */ `en-US.es-ES.de-DE.fr-FR.it-IT.ja-JP.ko-KR.pt-BR.zh-CN.zh-TW.nl-NL.pl-PL.id-ID.tr-TR.ar-EG.ru-RU.fa-IR.bg-BG.hr-HR.cs-CZ.da-DK.fi-FI.lt-LT.lv-LV.ms-MY.nb-NO.ro-RO.el-GR.he-IL.hi-IN.hu-HU.sr-BA.sk-SK.sl-SI.sv-SE.tl-PH.th-TH.uk-UA.vi-VN`.split(`.`),default:`en-US`}).coerce(`default-template-language`,e=>p(e,`default-template-language`,`text`)).option(`description`,{type:`string`,description:`A note that you can use to add more details about the waiting room.`,default:``}).option(`disable-session-renewal`,{type:`boolean`,description:"Only available for the Waiting Room Advanced subscription. Disables automatic renewal of session cookies. If `true`, an accepted user will have session_duration minutes to browse the site. After that, they will have to go through the waiting room again. If `false`, a user's session cookie will be automatically renewed on every request.",default:!1}).option(`enabled-origin-commands`,{type:`string`,array:!0,description:`A list of enabled origin commands.`}).option(`host`,{type:`string`,description:`The host name to which the waiting room will be applied (no wildcards). Please do not include the scheme (http:// or https://). The host and path combination must be unique.`}).option(`json-response-enabled`,{type:`boolean`,description:'Only available for the Waiting Room Advanced subscription. If `true`, requests to the waiting room with the header `Accept: application/json` will receive a JSON response object with information on the user\'s status in the waiting room as opposed to the configured static HTML page. This JSON response object has one property `cfWaitingRoom` which is an object containing the following fields:\n1. `inWaitingRoom`: Boolean indicating if the user is in the waiting room (always **true**).\n2. `waitTimeKnown`: Boolean indicating if the current estimated wait times are accurate. If **false**, they are not available.\n3. `waitTime`: Valid only when `waitTimeKnown` is **true**. Integer indicating the current estimated time in minutes the user will wait in the waiting room. When `queueingMethod` is **random**, this is set to `waitTime50Percentile`.\n4. `waitTime25Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 25% of users that gain entry the fastest (25th percentile).\n5. `waitTime50Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 50% of users that gain entry the fastest (50th percentile). In other words, half of the queued users are expected to let into the origin website before `waitTime50Percentile` and half are expected to be let in after it.\n6. `waitTime75Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 75% of users that gain entry the fastest (75th percentile).\n7. `waitTimeFormatted`: String displaying the `waitTime` formatted in English for users. If `waitTimeKnown` is **false**, `waitTimeFormatted` will display **unavailable**.\n8. `queueIsFull`: Boolean indicating if the waiting room\'s queue is currently full and not accepting new users at the moment.\n9. `queueAll`: Boolean indicating if all users will be queued in the waiting room and no one will be let into the origin website.\n10. `lastUpdated`: String displaying the timestamp as an ISO 8601 string of the user\'s last attempt to leave the waiting room and be let into the origin website. The user is able to make another attempt after `refreshIntervalSeconds` past this time. If the user makes a request too soon, it will be ignored and `lastUpdated` will not change.\n11. `refreshIntervalSeconds`: Integer indicating the number of seconds after `lastUpdated` until the user is able to make another attempt to leave the waiting room and be let into the origin website. When the `queueingMethod` is `reject`, there is no specified refresh time —\\_it will always be **zero**.\n12. `queueingMethod`: The queueing method currently used by the waiting room. It is either **fifo**, **random**, **passthrough**, or **reject**.\n13. `isFIFOQueue`: Boolean indicating if the waiting room uses a FIFO (First-In-First-Out) queue.\n14. `isRandomQueue`: Boolean indicating if the waiting room uses a Random queue where users gain access randomly.\n15. `isPassthroughQueue`: Boolean indicating if the waiting room uses a passthrough queue. Keep in mind that when passthrough is enabled, this JSON response will only exist when `queueAll` is **true** or `isEventPrequeueing` is **true** because in all other cases requests will go directly to the origin.\n16. `isRejectQueue`: Boolean indicating if the waiting room uses a reject queue.\n17. `isEventActive`: Boolean indicating if an event is currently occurring. Events are able to change a waiting room\'s behavior during a specified period of time. For additional information, look at the event properties `prequeue_start_time`, `event_start_time`, and `event_end_time` in the documentation for creating waiting room events. Events are considered active between these start and end times, as well as during the prequeueing period if it exists.\n18. `isEventPrequeueing`: Valid only when `isEventActive` is **true**. Boolean indicating if an event is currently prequeueing users before it starts.\n19. `timeUntilEventStart`: Valid only when `isEventPrequeueing` is **true**. Integer indicating the number of minutes until the event starts.\n20. `timeUntilEventStartFormatted`: String displaying the `timeUntilEventStart` formatted in English for users. If `isEventPrequeueing` is **false**, `timeUntilEventStartFormatted` will display **unavailable**.\n21. `timeUntilEventEnd`: Valid only when `isEventActive` is **true**. Integer indicating the number of minutes until the event ends.\n22. `timeUntilEventEndFormatted`: String displaying the `timeUntilEventEnd` formatted in English for users. If `isEventActive` is **false**, `timeUntilEventEndFormatted` will display **unavailable**.\n23. `shuffleAtEventStart`: Valid only when `isEventActive` is **true**. Boolean indicating if the users in the prequeue are shuffled randomly when the event starts.\n24. `turnstile`: Empty when turnstile isn\'t enabled. String displaying an html tag to display the Turnstile widget. Please add the `{{{turnstile}}}` tag to the `custom_html` template to ensure the Turnstile widget appears.\n25. `infiniteQueue`: Boolean indicating whether the response is for a user in the infinite queue.\n\nAn example cURL to a waiting room could be:\n\n curl -X GET "https://example.com/waitingroom" \\\n -H "Accept: application/json"\n\nIf `json_response_enabled` is **true** and the request hits the waiting room, an example JSON response when `queueingMethod` is **fifo** and no event is active could be:\n\n {\n "cfWaitingRoom": {\n "inWaitingRoom": true,\n "waitTimeKnown": true,\n "waitTime": 10,\n "waitTime25Percentile": 0,\n "waitTime50Percentile": 0,\n "waitTime75Percentile": 0,\n "waitTimeFormatted": "10 minutes",\n "queueIsFull": false,\n "queueAll": false,\n "lastUpdated": "2020-08-03T23:46:00.000Z",\n "refreshIntervalSeconds": 20,\n "queueingMethod": "fifo",\n "isFIFOQueue": true,\n "isRandomQueue": false,\n "isPassthroughQueue": false,\n "isRejectQueue": false,\n "isEventActive": false,\n "isEventPrequeueing": false,\n "timeUntilEventStart": 0,\n "timeUntilEventStartFormatted": "unavailable",\n "timeUntilEventEnd": 0,\n "timeUntilEventEndFormatted": "unavailable",\n "shuffleAtEventStart": false\n }\n }\n\nIf `json_response_enabled` is **true** and the request hits the waiting room, an example JSON response when `queueingMethod` is **random** and an event is active could be:\n\n {\n "cfWaitingRoom": {\n "inWaitingRoom": true,\n "waitTimeKnown": true,\n "waitTime": 10,\n "waitTime25Percentile": 5,\n "waitTime50Percentile": 10,\n "waitTime75Percentile": 15,\n "waitTimeFormatted": "5 minutes to 15 minutes",\n "queueIsFull": false,\n "queueAll": false,\n "lastUpdated": "2020-08-03T23:46:00.000Z",\n "refreshIntervalSeconds": 20,\n "queueingMethod": "random",\n "isFIFOQueue": false,\n "isRandomQueue": true,\n "isPassthroughQueue": false,\n "isRejectQueue": false,\n "isEventActive": true,\n "isEventPrequeueing": false,\n "timeUntilEventStart": 0,\n "timeUntilEventStartFormatted": "unavailable",\n "timeUntilEventEnd": 15,\n "timeUntilEventEndFormatted": "15 minutes",\n "shuffleAtEventStart": true\n }\n }',default:!1}).option(`name`,{type:`string`,description:`A unique name to identify the waiting room. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`new-users-per-minute`,{type:`number`,description:`Sets the number of new users that will be let into the route every minute. This value is used as baseline for the number of users that are let in per minute. So it is possible that there is a little more or little less traffic coming to the route based on the traffic patterns at that time around the world.`}).option(`path`,{type:`string`,description:`Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.`,default:`/`}).option(`queue-all`,{type:`boolean`,description:"If queue_all is `true`, all the traffic that is coming to a route will be sent to the waiting room. No new traffic can get to the route once this field is set and estimated time will become unavailable.",default:!1}).option(`queueing-method`,{type:`string`,description:"Sets the queueing method used by the waiting room. Changing this parameter from the **default** queueing method is only available for the Waiting Room Advanced subscription. Regardless of the queueing method, if `queue_all` is enabled or an event is prequeueing, users in the waiting room will not be accepted to the origin. These users will always see a waiting room page that refreshes automatically. The valid queueing methods are:\n1. `fifo` **(default)**: First-In-First-Out queue where customers gain access in the order they arrived.\n2. `random`: Random queue where customers gain access randomly, regardless of arrival time.\n3. `passthrough`: Users will pass directly through the waiting room and into the origin website. As a result, any configured limits will not be respected while this is enabled. This method can be used as an alternative to disabling a waiting room (with `suspended`) so that analytics are still reported. This can be used if you wish to allow all traffic normally, but want to restrict traffic during a waiting room event, or vice versa.\n4. `reject`: Users will be immediately rejected from the waiting room. As a result, no users will reach the origin website while this is enabled. This can be used if you wish to reject all traffic while performing maintenance, block traffic during a specified period of time (an event), or block traffic while events are not occurring. Consider a waiting room used for vaccine distribution that only allows traffic during sign-up events, and otherwise blocks all traffic. For this case, the waiting room uses `reject`, and its events override this with `fifo`, `random`, or `passthrough`. When this queueing method is enabled and neither `queueAll` is enabled nor an event is prequeueing, the waiting room page **will not refresh automatically**.",choices:[`fifo`,`random`,`passthrough`,`reject`],default:`fifo`}).coerce(`queueing-method`,e=>p(e,`queueing-method`,`text`)).option(`queueing-status-code`,{type:`number`,description:`HTTP status code returned to a user while in the queue.`,default:200}).option(`session-duration`,{type:`number`,description:`Lifetime of a cookie (in minutes) set by Cloudflare for users who get access to the route. If a user is not seen by Cloudflare again in that time period, they will be treated as a new user that visits the route.`,default:5}).option(`suspended`,{type:`boolean`,description:"Suspends or allows traffic going to the waiting room. If set to `true`, the traffic will not go to the waiting room.",default:!1}).option(`total-active-users`,{type:`number`,description:`Sets the total number of active user sessions on the route at a point in time. A route is a combination of host and path on which a waiting room is available. This value is used as a baseline for the total number of active user sessions on the route. It is possible to have a situation where there are more or less active users sessions on the route based on the traffic patterns at that time around the world.`}).option(`turnstile-action`,{type:`string`,description:"Which action to take when a bot is detected using Turnstile. `log` will\nhave no impact on queueing behavior, simply keeping track of how many\nbots are detected in Waiting Room Analytics. `infinite_queue` will send\nbots to a false queueing state, where they will never reach your\norigin. `infinite_queue` requires Advanced Waiting Room.\n",choices:[`log`,`infinite_queue`],default:`log`}).coerce(`turnstile-action`,e=>p(e,`turnstile-action`,`text`)).option(`turnstile-mode`,{type:`string`,description:"Which Turnstile widget type to use for detecting bot traffic. See\n[the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)\nfor the definitions of these widget types. Set to `off` to disable the\nTurnstile integration entirely. Setting this to anything other than\n`off` or `invisible` requires Advanced Waiting Room.\n",choices:[`off`,`invisible`,`visible_non_interactive`,`visible_managed`],default:`invisible`}).coerce(`turnstile-mode`,e=>p(e,`turnstile-mode`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const ne={command:`create`,describe:`Create waiting room`,builder:te,handler:async e=>l({command:`waiting-rooms create`,classification:{safeFlags:[`cookie-attributes-samesite`,`cookie-attributes-secure`,`default-template-language`,`disable-session-renewal`,`json-response-enabled`,`queue-all`,`queueing-method`,`suspended`,`turnstile-action`,`turnstile-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({additional_routes:u(e[`additional-routes`],`additional-routes`),cookie_attributes:{samesite:e[`cookie-attributes-samesite`],secure:e[`cookie-attributes-secure`]},cookie_suffix:p(e[`cookie-suffix`],`cookie-suffix`,`text`),custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),default_template_language:e[`default-template-language`],description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],enabled_origin_commands:e[`enabled-origin-commands`],host:p(e.host,`host`,`text`),json_response_enabled:e[`json-response-enabled`],name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],path:p(e.path,`path`,`text`),queue_all:e[`queue-all`],queueing_method:e[`queueing-method`],queueing_status_code:e[`queueing-status-code`],session_duration:e[`session-duration`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(b,{body:n,zone_id:r}));o(i,{successLabel:`Created`});return}if(e.host===void 0&&(e.host=await m(`host`,`The host name to which the waiting room will be applied (no wildcards). Please do not include the scheme (http:// or https://). The host and path combination must be unique.`)),e.name===void 0&&(e.name=await m(`name`,`A unique name to identify the waiting room. Only alphanumeric characters, hyphens and underscores are allowed.`)),e[`new-users-per-minute`]===void 0)throw Error(`--new-users-per-minute is required (or pass --body with this field set).`);if(e[`total-active-users`]===void 0)throw Error(`--total-active-users is required (or pass --body with this field set).`);let a=f({additional_routes:u(e[`additional-routes`],`additional-routes`),cookie_attributes:{samesite:e[`cookie-attributes-samesite`],secure:e[`cookie-attributes-secure`]},cookie_suffix:p(e[`cookie-suffix`],`cookie-suffix`,`text`),custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),default_template_language:e[`default-template-language`],description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],enabled_origin_commands:e[`enabled-origin-commands`],host:p(e.host,`host`,`text`),json_response_enabled:e[`json-response-enabled`],name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],path:p(e.path,`path`,`text`),queue_all:e[`queue-all`],queueing_method:e[`queueing-method`],queueing_status_code:e[`queueing-status-code`],session_duration:e[`session-duration`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}),l=await c(`Creating`,async()=>t.send(b,{body:a,zone_id:r}));o(l,{successLabel:`Created`})})};var re={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}`};function ie(e){return e.usage(`$0 waiting-rooms delete <waiting-room-id>
7
7
 
8
- Deletes a waiting room.`).positional(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ae={command:`delete <waiting-room-id>`,describe:`Delete waiting room`,builder:ie,handler:async e=>l({command:`waiting-rooms delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the waiting room from the zone.`})){process.stderr.write(`Aborted.
9
- `);return}let a=await c(`Deleting`,async()=>t.send(re,{zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(a,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}`,body:`json`};function oe(e){return e.usage(`$0 waiting-rooms edit <waiting-room-id>
8
+ Deletes a waiting room.`).positional(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ae={command:`delete <waiting-room-id>`,describe:`Delete waiting room`,builder:ie,handler:async e=>l({command:`waiting-rooms delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the waiting room from the zone.`}))return;let a=await c(`Deleting`,async()=>t.send(re,{zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(a,{successLabel:`Deleted`})})};var x={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}`,body:`json`};function oe(e){return e.usage(`$0 waiting-rooms edit <waiting-room-id>
10
9
 
11
10
  Patches a configured waiting room.`).positional(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`additional-routes`,{type:`string`,description:`Only available for the Waiting Room Advanced subscription. Additional hostname and path combinations to which this waiting room will be applied. There is an implied wildcard at the end of the path. The hostname and path combination must be unique to this and all other waiting rooms. Provide as a JSON array of objects or @path/to/file.json.`}).option(`cookie-attributes-samesite`,{type:`string`,description:"Configures the SameSite attribute on the waiting room cookie. Value `auto` will be translated to `lax` or `none` depending if **Always Use HTTPS** is enabled. Note that when using value `none`, the secure attribute cannot be set to `never`.",choices:[`auto`,`lax`,`none`,`strict`]}).coerce(`cookie-attributes-samesite`,e=>p(e,`cookie-attributes-samesite`,`text`)).option(`cookie-attributes-secure`,{type:`string`,description:"Configures the Secure attribute on the waiting room cookie. Value `always` indicates that the Secure attribute will be set in the Set-Cookie header, `never` indicates that the Secure attribute will not be set, and `auto` will set the Secure attribute depending if **Always Use HTTPS** is enabled.",choices:[`auto`,`always`,`never`]}).coerce(`cookie-attributes-secure`,e=>p(e,`cookie-attributes-secure`,`text`)).option(`cookie-suffix`,{type:`string`,description:"Appends a '_' + a custom suffix to the end of Cloudflare Waiting Room's cookie name(__cf_waitingroom). If `cookie_suffix` is \"abcd\", the cookie name will be `__cf_waitingroom_abcd`. This field is required if using `additional_routes`."}).option(`custom-page-html`,{type:`string`,description:"Only available for the Waiting Room Advanced subscription. This is a template html file that will be rendered at the edge. If no custom_page_html is provided, the default waiting room will be used. The template is based on mustache ( https://mustache.github.io/ ). There are several variables that are evaluated by the Cloudflare edge:\n1. {{`waitTimeKnown`}} Acts like a boolean value that indicates the behavior to take when wait time is not available, for instance when queue_all is **true**.\n2. {{`waitTimeFormatted`}} Estimated wait time for the user. For example, five minutes. Alternatively, you can use:\n3. {{`waitTime`}} Number of minutes of estimated wait for a user.\n4. {{`waitTimeHours`}} Number of hours of estimated wait for a user (`Math.floor(waitTime/60)`).\n5. {{`waitTimeHourMinutes`}} Number of minutes above the `waitTimeHours` value (`waitTime%60`).\n6. {{`queueIsFull`}} Changes to **true** when no more people can be added to the queue.\n\nTo view the full list of variables, look at the `cfWaitingRoom` object described under the `json_response_enabled` property in other Waiting Room API calls."}).option(`default-template-language`,{type:`string`,description:"The language of the default page template. If no default_template_language is provided, then `en-US` (English) will be used.",choices:/* @__PURE__ */ `en-US.es-ES.de-DE.fr-FR.it-IT.ja-JP.ko-KR.pt-BR.zh-CN.zh-TW.nl-NL.pl-PL.id-ID.tr-TR.ar-EG.ru-RU.fa-IR.bg-BG.hr-HR.cs-CZ.da-DK.fi-FI.lt-LT.lv-LV.ms-MY.nb-NO.ro-RO.el-GR.he-IL.hi-IN.hu-HU.sr-BA.sk-SK.sl-SI.sv-SE.tl-PH.th-TH.uk-UA.vi-VN`.split(`.`)}).coerce(`default-template-language`,e=>p(e,`default-template-language`,`text`)).option(`description`,{type:`string`,description:`A note that you can use to add more details about the waiting room.`}).option(`disable-session-renewal`,{type:`boolean`,description:"Only available for the Waiting Room Advanced subscription. Disables automatic renewal of session cookies. If `true`, an accepted user will have session_duration minutes to browse the site. After that, they will have to go through the waiting room again. If `false`, a user's session cookie will be automatically renewed on every request."}).option(`enabled-origin-commands`,{type:`string`,array:!0,description:`A list of enabled origin commands.`}).option(`host`,{type:`string`,description:`The host name to which the waiting room will be applied (no wildcards). Please do not include the scheme (http:// or https://). The host and path combination must be unique.`}).option(`json-response-enabled`,{type:`boolean`,description:'Only available for the Waiting Room Advanced subscription. If `true`, requests to the waiting room with the header `Accept: application/json` will receive a JSON response object with information on the user\'s status in the waiting room as opposed to the configured static HTML page. This JSON response object has one property `cfWaitingRoom` which is an object containing the following fields:\n1. `inWaitingRoom`: Boolean indicating if the user is in the waiting room (always **true**).\n2. `waitTimeKnown`: Boolean indicating if the current estimated wait times are accurate. If **false**, they are not available.\n3. `waitTime`: Valid only when `waitTimeKnown` is **true**. Integer indicating the current estimated time in minutes the user will wait in the waiting room. When `queueingMethod` is **random**, this is set to `waitTime50Percentile`.\n4. `waitTime25Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 25% of users that gain entry the fastest (25th percentile).\n5. `waitTime50Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 50% of users that gain entry the fastest (50th percentile). In other words, half of the queued users are expected to let into the origin website before `waitTime50Percentile` and half are expected to be let in after it.\n6. `waitTime75Percentile`: Valid only when `queueingMethod` is **random** and `waitTimeKnown` is **true**. Integer indicating the current estimated maximum wait time for the 75% of users that gain entry the fastest (75th percentile).\n7. `waitTimeFormatted`: String displaying the `waitTime` formatted in English for users. If `waitTimeKnown` is **false**, `waitTimeFormatted` will display **unavailable**.\n8. `queueIsFull`: Boolean indicating if the waiting room\'s queue is currently full and not accepting new users at the moment.\n9. `queueAll`: Boolean indicating if all users will be queued in the waiting room and no one will be let into the origin website.\n10. `lastUpdated`: String displaying the timestamp as an ISO 8601 string of the user\'s last attempt to leave the waiting room and be let into the origin website. The user is able to make another attempt after `refreshIntervalSeconds` past this time. If the user makes a request too soon, it will be ignored and `lastUpdated` will not change.\n11. `refreshIntervalSeconds`: Integer indicating the number of seconds after `lastUpdated` until the user is able to make another attempt to leave the waiting room and be let into the origin website. When the `queueingMethod` is `reject`, there is no specified refresh time —\\_it will always be **zero**.\n12. `queueingMethod`: The queueing method currently used by the waiting room. It is either **fifo**, **random**, **passthrough**, or **reject**.\n13. `isFIFOQueue`: Boolean indicating if the waiting room uses a FIFO (First-In-First-Out) queue.\n14. `isRandomQueue`: Boolean indicating if the waiting room uses a Random queue where users gain access randomly.\n15. `isPassthroughQueue`: Boolean indicating if the waiting room uses a passthrough queue. Keep in mind that when passthrough is enabled, this JSON response will only exist when `queueAll` is **true** or `isEventPrequeueing` is **true** because in all other cases requests will go directly to the origin.\n16. `isRejectQueue`: Boolean indicating if the waiting room uses a reject queue.\n17. `isEventActive`: Boolean indicating if an event is currently occurring. Events are able to change a waiting room\'s behavior during a specified period of time. For additional information, look at the event properties `prequeue_start_time`, `event_start_time`, and `event_end_time` in the documentation for creating waiting room events. Events are considered active between these start and end times, as well as during the prequeueing period if it exists.\n18. `isEventPrequeueing`: Valid only when `isEventActive` is **true**. Boolean indicating if an event is currently prequeueing users before it starts.\n19. `timeUntilEventStart`: Valid only when `isEventPrequeueing` is **true**. Integer indicating the number of minutes until the event starts.\n20. `timeUntilEventStartFormatted`: String displaying the `timeUntilEventStart` formatted in English for users. If `isEventPrequeueing` is **false**, `timeUntilEventStartFormatted` will display **unavailable**.\n21. `timeUntilEventEnd`: Valid only when `isEventActive` is **true**. Integer indicating the number of minutes until the event ends.\n22. `timeUntilEventEndFormatted`: String displaying the `timeUntilEventEnd` formatted in English for users. If `isEventActive` is **false**, `timeUntilEventEndFormatted` will display **unavailable**.\n23. `shuffleAtEventStart`: Valid only when `isEventActive` is **true**. Boolean indicating if the users in the prequeue are shuffled randomly when the event starts.\n24. `turnstile`: Empty when turnstile isn\'t enabled. String displaying an html tag to display the Turnstile widget. Please add the `{{{turnstile}}}` tag to the `custom_html` template to ensure the Turnstile widget appears.\n25. `infiniteQueue`: Boolean indicating whether the response is for a user in the infinite queue.\n\nAn example cURL to a waiting room could be:\n\n curl -X GET "https://example.com/waitingroom" \\\n -H "Accept: application/json"\n\nIf `json_response_enabled` is **true** and the request hits the waiting room, an example JSON response when `queueingMethod` is **fifo** and no event is active could be:\n\n {\n "cfWaitingRoom": {\n "inWaitingRoom": true,\n "waitTimeKnown": true,\n "waitTime": 10,\n "waitTime25Percentile": 0,\n "waitTime50Percentile": 0,\n "waitTime75Percentile": 0,\n "waitTimeFormatted": "10 minutes",\n "queueIsFull": false,\n "queueAll": false,\n "lastUpdated": "2020-08-03T23:46:00.000Z",\n "refreshIntervalSeconds": 20,\n "queueingMethod": "fifo",\n "isFIFOQueue": true,\n "isRandomQueue": false,\n "isPassthroughQueue": false,\n "isRejectQueue": false,\n "isEventActive": false,\n "isEventPrequeueing": false,\n "timeUntilEventStart": 0,\n "timeUntilEventStartFormatted": "unavailable",\n "timeUntilEventEnd": 0,\n "timeUntilEventEndFormatted": "unavailable",\n "shuffleAtEventStart": false\n }\n }\n\nIf `json_response_enabled` is **true** and the request hits the waiting room, an example JSON response when `queueingMethod` is **random** and an event is active could be:\n\n {\n "cfWaitingRoom": {\n "inWaitingRoom": true,\n "waitTimeKnown": true,\n "waitTime": 10,\n "waitTime25Percentile": 5,\n "waitTime50Percentile": 10,\n "waitTime75Percentile": 15,\n "waitTimeFormatted": "5 minutes to 15 minutes",\n "queueIsFull": false,\n "queueAll": false,\n "lastUpdated": "2020-08-03T23:46:00.000Z",\n "refreshIntervalSeconds": 20,\n "queueingMethod": "random",\n "isFIFOQueue": false,\n "isRandomQueue": true,\n "isPassthroughQueue": false,\n "isRejectQueue": false,\n "isEventActive": true,\n "isEventPrequeueing": false,\n "timeUntilEventStart": 0,\n "timeUntilEventStartFormatted": "unavailable",\n "timeUntilEventEnd": 15,\n "timeUntilEventEndFormatted": "15 minutes",\n "shuffleAtEventStart": true\n }\n }'}).option(`name`,{type:`string`,description:`A unique name to identify the waiting room. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`new-users-per-minute`,{type:`number`,description:`Sets the number of new users that will be let into the route every minute. This value is used as baseline for the number of users that are let in per minute. So it is possible that there is a little more or little less traffic coming to the route based on the traffic patterns at that time around the world.`}).option(`path`,{type:`string`,description:`Sets the path within the host to enable the waiting room on. The waiting room will be enabled for all subpaths as well. If there are two waiting rooms on the same subpath, the waiting room for the most specific path will be chosen. Wildcards and query parameters are not supported.`}).option(`queue-all`,{type:`boolean`,description:"If queue_all is `true`, all the traffic that is coming to a route will be sent to the waiting room. No new traffic can get to the route once this field is set and estimated time will become unavailable."}).option(`queueing-method`,{type:`string`,description:"Sets the queueing method used by the waiting room. Changing this parameter from the **default** queueing method is only available for the Waiting Room Advanced subscription. Regardless of the queueing method, if `queue_all` is enabled or an event is prequeueing, users in the waiting room will not be accepted to the origin. These users will always see a waiting room page that refreshes automatically. The valid queueing methods are:\n1. `fifo` **(default)**: First-In-First-Out queue where customers gain access in the order they arrived.\n2. `random`: Random queue where customers gain access randomly, regardless of arrival time.\n3. `passthrough`: Users will pass directly through the waiting room and into the origin website. As a result, any configured limits will not be respected while this is enabled. This method can be used as an alternative to disabling a waiting room (with `suspended`) so that analytics are still reported. This can be used if you wish to allow all traffic normally, but want to restrict traffic during a waiting room event, or vice versa.\n4. `reject`: Users will be immediately rejected from the waiting room. As a result, no users will reach the origin website while this is enabled. This can be used if you wish to reject all traffic while performing maintenance, block traffic during a specified period of time (an event), or block traffic while events are not occurring. Consider a waiting room used for vaccine distribution that only allows traffic during sign-up events, and otherwise blocks all traffic. For this case, the waiting room uses `reject`, and its events override this with `fifo`, `random`, or `passthrough`. When this queueing method is enabled and neither `queueAll` is enabled nor an event is prequeueing, the waiting room page **will not refresh automatically**.",choices:[`fifo`,`random`,`passthrough`,`reject`]}).coerce(`queueing-method`,e=>p(e,`queueing-method`,`text`)).option(`queueing-status-code`,{type:`number`,description:`HTTP status code returned to a user while in the queue.`}).option(`session-duration`,{type:`number`,description:`Lifetime of a cookie (in minutes) set by Cloudflare for users who get access to the route. If a user is not seen by Cloudflare again in that time period, they will be treated as a new user that visits the route.`}).option(`suspended`,{type:`boolean`,description:"Suspends or allows traffic going to the waiting room. If set to `true`, the traffic will not go to the waiting room."}).option(`total-active-users`,{type:`number`,description:`Sets the total number of active user sessions on the route at a point in time. A route is a combination of host and path on which a waiting room is available. This value is used as a baseline for the total number of active user sessions on the route. It is possible to have a situation where there are more or less active users sessions on the route based on the traffic patterns at that time around the world.`}).option(`turnstile-action`,{type:`string`,description:"Which action to take when a bot is detected using Turnstile. `log` will\nhave no impact on queueing behavior, simply keeping track of how many\nbots are detected in Waiting Room Analytics. `infinite_queue` will send\nbots to a false queueing state, where they will never reach your\norigin. `infinite_queue` requires Advanced Waiting Room.\n",choices:[`log`,`infinite_queue`]}).coerce(`turnstile-action`,e=>p(e,`turnstile-action`,`text`)).option(`turnstile-mode`,{type:`string`,description:"Which Turnstile widget type to use for detecting bot traffic. See\n[the Turnstile documentation](https://developers.cloudflare.com/turnstile/concepts/widget/#widget-types)\nfor the definitions of these widget types. Set to `off` to disable the\nTurnstile integration entirely. Setting this to anything other than\n`off` or `invisible` requires Advanced Waiting Room.\n",choices:[`off`,`invisible`,`visible_non_interactive`,`visible_managed`]}).coerce(`turnstile-mode`,e=>p(e,`turnstile-mode`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const se={command:`edit <waiting-room-id>`,describe:`Patch waiting room`,builder:oe,handler:async e=>l({command:`waiting-rooms edit`,classification:{safeFlags:[`cookie-attributes-samesite`,`cookie-attributes-secure`,`default-template-language`,`disable-session-renewal`,`json-response-enabled`,`queue-all`,`queueing-method`,`suspended`,`turnstile-action`,`turnstile-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({additional_routes:u(e[`additional-routes`],`additional-routes`),cookie_attributes:{samesite:e[`cookie-attributes-samesite`],secure:e[`cookie-attributes-secure`]},cookie_suffix:p(e[`cookie-suffix`],`cookie-suffix`,`text`),custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),default_template_language:e[`default-template-language`],description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],enabled_origin_commands:e[`enabled-origin-commands`],host:p(e.host,`host`,`text`),json_response_enabled:e[`json-response-enabled`],name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],path:p(e.path,`path`,`text`),queue_all:e[`queue-all`],queueing_method:e[`queueing-method`],queueing_status_code:e[`queueing-status-code`],session_duration:e[`session-duration`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(x,{body:n,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(i,{successLabel:`Updated`});return}if(e.host===void 0&&(e.host=await m(`host`,`The host name to which the waiting room will be applied (no wildcards). Please do not include the scheme (http:// or https://). The host and path combination must be unique.`)),e.name===void 0&&(e.name=await m(`name`,`A unique name to identify the waiting room. Only alphanumeric characters, hyphens and underscores are allowed.`)),e[`new-users-per-minute`]===void 0)throw Error(`--new-users-per-minute is required (or pass --body with this field set).`);if(e[`total-active-users`]===void 0)throw Error(`--total-active-users is required (or pass --body with this field set).`);let a=f({additional_routes:u(e[`additional-routes`],`additional-routes`),cookie_attributes:{samesite:e[`cookie-attributes-samesite`],secure:e[`cookie-attributes-secure`]},cookie_suffix:p(e[`cookie-suffix`],`cookie-suffix`,`text`),custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),default_template_language:e[`default-template-language`],description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],enabled_origin_commands:e[`enabled-origin-commands`],host:p(e.host,`host`,`text`),json_response_enabled:e[`json-response-enabled`],name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],path:p(e.path,`path`,`text`),queue_all:e[`queue-all`],queueing_method:e[`queueing-method`],queueing_status_code:e[`queueing-status-code`],session_duration:e[`session-duration`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}),l=await c(`Updating`,async()=>t.send(x,{body:a,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(l,{successLabel:`Updated`})})};var S={method:`POST`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/events`,body:`json`};function C(e){return e.usage(`$0 waiting-rooms events create <waiting-room-id>
12
11
 
13
12
  Only available for the Waiting Room Advanced subscription. Creates an event for a waiting room. An event takes place during a specified period of time, temporarily changing the behavior of a waiting room. While the event is active, some of the properties in the event's configuration may either override or inherit from the waiting room's configuration. Note that events cannot overlap with each other, so only one event can be active at a time.`).positional(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`custom-page-html`,{type:`string`,description:"If set, the event will override the waiting room's `custom_page_html` property while it is active. If null, the event will inherit it."}).option(`description`,{type:`string`,description:`A note that you can use to add more details about the event.`,default:``}).option(`disable-session-renewal`,{type:`boolean`,description:"If set, the event will override the waiting room's `disable_session_renewal` property while it is active. If null, the event will inherit it."}).option(`event-end-time`,{type:`string`,description:`An ISO 8601 timestamp that marks the end of the event.`}).option(`event-start-time`,{type:`string`,description:"An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event's configuration. The start time must be at least one minute before `event_end_time`."}).option(`name`,{type:`string`,description:`A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.`}).option(`new-users-per-minute`,{type:`number`,description:"If set, the event will override the waiting room's `new_users_per_minute` property while it is active. If null, the event will inherit it. This can only be set if the event's `total_active_users` property is also set."}).option(`prequeue-start-time`,{type:`string`,description:"An ISO 8601 timestamp that marks when to begin queueing all users before the event starts. The prequeue must start at least five minutes before `event_start_time`."}).option(`queueing-method`,{type:`string`,description:"If set, the event will override the waiting room's `queueing_method` property while it is active. If null, the event will inherit it."}).option(`session-duration`,{type:`number`,description:"If set, the event will override the waiting room's `session_duration` property while it is active. If null, the event will inherit it."}).option(`shuffle-at-event-start`,{type:`boolean`,description:"If enabled, users in the prequeue will be shuffled randomly at the `event_start_time`. Requires that `prequeue_start_time` is not null. This is useful for situations when many users will join the event prequeue at the same time and you want to shuffle them to ensure fairness. Naturally, it makes the most sense to enable this feature when the `queueing_method` during the event respects ordering such as **fifo**, or else the shuffling may be unnecessary.",default:!1}).option(`suspended`,{type:`boolean`,description:"Suspends or allows an event. If set to `true`, the event is ignored and traffic will be handled based on the waiting room configuration.",default:!1}).option(`total-active-users`,{type:`number`,description:"If set, the event will override the waiting room's `total_active_users` property while it is active. If null, the event will inherit it. This can only be set if the event's `new_users_per_minute` property is also set."}).option(`turnstile-action`,{type:`string`,description:"If set, the event will override the waiting room's `turnstile_action` property while it is active. If null, the event will inherit it.",choices:[`log`,`infinite_queue`]}).coerce(`turnstile-action`,e=>p(e,`turnstile-action`,`text`)).option(`turnstile-mode`,{type:`string`,description:"If set, the event will override the waiting room's `turnstile_mode` property while it is active. If null, the event will inherit it.",choices:[`off`,`invisible`,`visible_non_interactive`,`visible_managed`]}).coerce(`turnstile-mode`,e=>p(e,`turnstile-mode`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const w={command:`create <waiting-room-id>`,describe:`Create event`,builder:C,handler:async e=>l({command:`waiting-rooms events create`,classification:{safeFlags:[`disable-session-renewal`,`shuffle-at-event-start`,`suspended`,`turnstile-action`,`turnstile-mode`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms events create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/events`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],event_end_time:p(e[`event-end-time`],`event-end-time`,`text`),event_start_time:p(e[`event-start-time`],`event-start-time`,`text`),name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],prequeue_start_time:p(e[`prequeue-start-time`],`prequeue-start-time`,`text`),queueing_method:p(e[`queueing-method`],`queueing-method`,`text`),session_duration:e[`session-duration`],shuffle_at_event_start:e[`shuffle-at-event-start`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(S,{body:n,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(i,{successLabel:`Created`});return}e[`event-end-time`]===void 0&&(e[`event-end-time`]=await m(`event-end-time`,`An ISO 8601 timestamp that marks the end of the event.`)),e[`event-start-time`]===void 0&&(e[`event-start-time`]=await m(`event-start-time`,"An ISO 8601 timestamp that marks the start of the event. At this time, queued users will be processed with the event's configuration. The start time must be at least one minute before `event_end_time`.")),e.name===void 0&&(e.name=await m(`name`,`A unique name to identify the event. Only alphanumeric characters, hyphens and underscores are allowed.`));let a=f({custom_page_html:p(e[`custom-page-html`],`custom-page-html`,`text`),description:p(e.description,`description`,`text`),disable_session_renewal:e[`disable-session-renewal`],event_end_time:p(e[`event-end-time`],`event-end-time`,`text`),event_start_time:p(e[`event-start-time`],`event-start-time`,`text`),name:p(e.name,`name`,`text`),new_users_per_minute:e[`new-users-per-minute`],prequeue_start_time:p(e[`prequeue-start-time`],`prequeue-start-time`,`text`),queueing_method:p(e[`queueing-method`],`queueing-method`,`text`),session_duration:e[`session-duration`],shuffle_at_event_start:e[`shuffle-at-event-start`],suspended:e.suspended,total_active_users:e[`total-active-users`],turnstile_action:e[`turnstile-action`],turnstile_mode:e[`turnstile-mode`]}),l=await c(`Creating`,async()=>t.send(S,{body:a,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(l,{successLabel:`Created`})})};var T={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/events/${t.event_id}`};function E(e){return e.usage(`$0 waiting-rooms events delete <event-id>
14
13
 
15
- Deletes an event for a waiting room.`).positional(`event-id`,{type:`string`,description:`Event ID`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const D={command:`delete <event-id>`,describe:`Delete event`,builder:E,handler:async e=>l({command:`waiting-rooms events delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms events delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"event-id":String(e[`event-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the event from the waiting room.`})){process.stderr.write(`Aborted.
16
- `);return}let a=await c(`Deleting`,async()=>t.send(T,{zone_id:r,waiting_room_id:e[`waiting-room-id`],event_id:e[`event-id`]}));o(a,{successLabel:`Deleted`})})};var O={method:`GET`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/events/${t.event_id}/details`};function k(e){return e.usage(`$0 waiting-rooms events details get <event-id>
14
+ Deletes an event for a waiting room.`).positional(`event-id`,{type:`string`,description:`Event ID`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const D={command:`delete <event-id>`,describe:`Delete event`,builder:E,handler:async e=>l({command:`waiting-rooms events delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms events delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"event-id":String(e[`event-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the event from the waiting room.`}))return;let a=await c(`Deleting`,async()=>t.send(T,{zone_id:r,waiting_room_id:e[`waiting-room-id`],event_id:e[`event-id`]}));o(a,{successLabel:`Deleted`})})};var O={method:`GET`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/events/${t.event_id}/details`};function k(e){return e.usage(`$0 waiting-rooms events details get <event-id>
17
15
 
18
16
  Previews an event's configuration as if it was active. Inherited fields from the waiting room will be displayed with their current values.`).positional(`event-id`,{type:`string`,description:`Event ID`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const A={command:`get <event-id>`,describe:`Preview active event details`,builder:k,handler:async e=>l({command:`waiting-rooms events details get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms events details get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/events/${e[`event-id`]==null?`<event-id>`:encodeURIComponent(String(e[`event-id`]))}/details`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"event-id":String(e[`event-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});e.zoneId=r;let a=await c(`Loading`,async()=>t.send(O,{zone_id:r,waiting_room_id:e[`waiting-room-id`],event_id:e[`event-id`]}));o(a,{successLabel:`Loaded`})})},j={command:`details`,describe:`Operations for events.details`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var M={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/events/${t.event_id}`,body:`json`};function N(e){return e.usage(`$0 waiting-rooms events edit <event-id>
19
17
 
@@ -29,8 +27,7 @@ Fetches a single configured waiting room.`).positional(`waiting-room-id`,{type:`
29
27
 
30
28
  Only available for the Waiting Room Advanced subscription. Creates a rule for a waiting room.`).positional(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`action`,{type:`string`,description:`The action to take when the expression matches.`,choices:[`bypass_waiting_room`]}).coerce(`action`,e=>p(e,`action`,`text`)).option(`description`,{type:`string`,description:`The description of the rule.`,default:``}).option(`enabled`,{type:`boolean`,description:`When set to true, the rule is enabled.`,default:!0}).option(`expression`,{type:`string`,description:`Criteria defining when there is a match for the current rule.`}).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 pe={command:`create <waiting-room-id>`,describe:`Create Waiting Room Rule`,builder:fe,handler:async e=>l({command:`waiting-rooms rules create`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms rules create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/rules`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:e.action,description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`)}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Creating`,async()=>t.send(J,{body:n,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(i,{successLabel:`Created`});return}e.action===void 0&&(e.action=await h(`action`,`The action to take when the expression matches.`,[`bypass_waiting_room`])),e.expression===void 0&&(e.expression=await m(`expression`,`Criteria defining when there is a match for the current rule.`));let a=f({action:e.action,description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`)}),l=await c(`Creating`,async()=>t.send(J,{body:a,zone_id:r,waiting_room_id:e[`waiting-room-id`]}));o(l,{successLabel:`Created`})})};var me={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/rules/${t.rule_id}`};function he(e){return e.usage(`$0 waiting-rooms rules delete <rule-id>
31
29
 
32
- Deletes a rule for a waiting room.`).positional(`rule-id`,{type:`string`,description:`The ID of the rule.`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ge={command:`delete <rule-id>`,describe:`Delete Waiting Room Rule`,builder:he,handler:async e=>l({command:`waiting-rooms rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the rule from the waiting room.`})){process.stderr.write(`Aborted.
33
- `);return}let a=await c(`Deleting`,async()=>t.send(me,{zone_id:r,waiting_room_id:e[`waiting-room-id`],rule_id:e[`rule-id`]}));o(a,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/rules/${t.rule_id}`,body:`json`,constants:{action:`bypass_waiting_room`}};function _e(e){return e.usage(`$0 waiting-rooms rules edit <rule-id>
30
+ Deletes a rule for a waiting room.`).positional(`rule-id`,{type:`string`,description:`The ID of the rule.`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const ge={command:`delete <rule-id>`,describe:`Delete Waiting Room Rule`,builder:he,handler:async e=>l({command:`waiting-rooms rules delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms rules delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`none`});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,!await g({force:!!e.force,message:`This operation deletes the rule from the waiting room.`}))return;let a=await c(`Deleting`,async()=>t.send(me,{zone_id:r,waiting_room_id:e[`waiting-room-id`],rule_id:e[`rule-id`]}));o(a,{successLabel:`Deleted`})})};var Y={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/rules/${t.rule_id}`,body:`json`,constants:{action:`bypass_waiting_room`}};function _e(e){return e.usage(`$0 waiting-rooms rules edit <rule-id>
34
31
 
35
32
  Patches a rule for a waiting room.`).positional(`rule-id`,{type:`string`,description:`The ID of the rule.`,demandOption:!0}).option(`waiting-room-id`,{type:`string`,description:`Waiting room ID`,demandOption:!0}).option(`action`,{type:`string`,description:`The action to take when the expression matches.`,choices:[`bypass_waiting_room`]}).coerce(`action`,e=>p(e,`action`,`text`)).option(`description`,{type:`string`,description:`The description of the rule.`}).option(`enabled`,{type:`boolean`,description:`When set to true, the rule is enabled.`}).option(`expression`,{type:`string`,description:`Criteria defining when there is a match for the current rule.`}).option(`position-index`,{type:`number`,description:`Places the rule in the exact position specified by the integer number <POSITION_NUMBER>. Position numbers start with 1. Existing rules in the ruleset from the specified position number onward are shifted one position (no rule is overwritten).`}).option(`position-before`,{type:`string`,description:`Places the rule before rule <RULE_ID>. Use this argument with an empty rule ID value ("") to set the rule as the first rule in the ruleset.`}).option(`position-after`,{type:`string`,description:`Places the rule after rule <RULE_ID>. Use this argument with an empty rule ID value ("") to set the rule as the last rule in the ruleset.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`position-index`,[`position-before`,`position-after`]).conflicts(`position-before`,[`position-index`,`position-after`]).conflicts(`position-after`,[`position-index`,`position-before`])}const ve={command:`edit <rule-id>`,describe:`Patch Waiting Room Rule`,builder:_e,handler:async e=>l({command:`waiting-rooms rules edit`,classification:{safeFlags:[`action`,`enabled`,`dry-run`]}},e,async()=>{if(e.dryRun){s({command:`cf waiting-rooms rules edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/waiting_rooms/${e[`waiting-room-id`]==null?`<waiting-room-id>`:encodeURIComponent(String(e[`waiting-room-id`]))}/rules/${e[`rule-id`]==null?`<rule-id>`:encodeURIComponent(String(e[`rule-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"waiting-room-id":String(e[`waiting-room-id`]??``),"rule-id":String(e[`rule-id`]??``)},bodyKind:`json`,body:e.body===void 0?f({action:e.action,description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}}):d(e.body)});return}let t=await n(e),r=await i({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=r,e.body){let n=d(e.body),i=await c(`Updating`,async()=>t.send(Y,{body:n,zone_id:r,waiting_room_id:e[`waiting-room-id`],rule_id:e[`rule-id`]}));o(i,{successLabel:`Updated`});return}e.action===void 0&&(e.action=await h(`action`,`The action to take when the expression matches.`,[`bypass_waiting_room`])),e.expression===void 0&&(e.expression=await m(`expression`,`Criteria defining when there is a match for the current rule.`));let a=f({action:e.action,description:p(e.description,`description`,`text`),enabled:e.enabled,expression:p(e.expression,`expression`,`text`),position:{index:e[`position-index`],before:p(e[`position-before`],`position-before`,`text`),after:p(e[`position-after`],`position-after`,`text`)}}),l=await c(`Updating`,async()=>t.send(Y,{body:a,zone_id:r,waiting_room_id:e[`waiting-room-id`],rule_id:e[`rule-id`]}));o(l,{successLabel:`Updated`})})};var ye={method:`GET`,path:t=>e`/zones/${t.zone_id}/waiting_rooms/${t.waiting_room_id}/rules`};function be(e){return e.usage(`$0 waiting-rooms rules get <waiting-room-id>
36
33
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BUQscD5b.mjs";import{i as n}from"./context-Sgba0fZP.mjs";import{t as r}from"./output-CpiIVa7Q.mjs";import{t as i}from"./dry-run-BBjUQUhR.mjs";import{t as a}from"./progress-B1dpmxCT.mjs";import{t as o}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{n as s,r as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-Y5OBwDVE.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery`};function ee(e){return e.usage(`$0 web-assets discovery get
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{n as s,r as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-YrI7ltMa.mjs";var m={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery`};function ee(e){return e.usage(`$0 web-assets discovery get
3
3
 
4
4
  Returns the latest API operations discovered from zone traffic, rendered as OpenAPI schemas.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const h={command:`get`,describe:`Export discovered API operations as OpenAPI schemas`,builder:ee,handler:async e=>o({command:`web-assets discovery get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets discovery get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/discovery`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(m,{zone_id:s}));r(c,{successLabel:`Loaded`})})};var te={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/api_gateway/discovery/operations`,body:`json`};function ne(e){return e.usage(`$0 web-assets discovery operations bulk-edit
5
5
 
@@ -19,11 +19,9 @@ Replaces the complete set of web and API operations attached to the managed labe
19
19
 
20
20
  Creates one or more user-defined labels for classifying web and API operations.`).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:`bulk-create`,describe:`Create user-defined operation labels`,builder:N,handler:async e=>o({command:`web-assets labels user bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(M,{body:t,zone_id:c}));r(n,{successLabel:`Created`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var F={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user`,body:`json`};function I(e){return e.usage(`$0 web-assets labels user bulk-delete
21
21
 
22
- Deletes one or more user-defined labels and removes their associations with web and API operations.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`bulk-delete`,describe:`Delete user-defined operation labels`,builder:I,handler:async e=>o({command:`web-assets labels user bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation deletes the selected user-defined labels and removes them from associated web and API operations.`}))process.stderr.write(`Aborted.
23
- `);else if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(F,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var R={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user/${t.name}`};function z(e){return e.usage(`$0 web-assets labels user delete <name>
22
+ Deletes one or more user-defined labels and removes their associations with web and API operations.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const L={command:`bulk-delete`,describe:`Delete user-defined operation labels`,builder:I,handler:async e=>o({command:`web-assets labels user bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,await p({force:!!e.force,message:`This operation deletes the selected user-defined labels and removes them from associated web and API operations.`})){if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(F,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)}})};var R={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user/${t.name}`};function z(e){return e.usage(`$0 web-assets labels user delete <name>
24
23
 
25
- Deletes a user-defined label and removes its associations with web and API operations.`).positional(`name`,{type:`string`,description:`The label name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const B={command:`delete <name>`,describe:`Delete a user-defined operation label`,builder:z,handler:async e=>o({command:`web-assets labels user delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user/${e.name==null?`<name>`:encodeURIComponent(String(e.name))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),name:String(e.name??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force,message:`This operation deletes the user-defined label and removes it from associated web and API operations.`})){process.stderr.write(`Aborted.
26
- `);return}let c=await a(`Deleting`,async()=>o.send(R,{zone_id:s,name:e.name}));r(c,{successLabel:`Deleted`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user/${t.name}`,body:`json`};function H(e){return e.usage(`$0 web-assets labels user edit <name>
24
+ Deletes a user-defined label and removes its associations with web and API operations.`).positional(`name`,{type:`string`,description:`The label name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const B={command:`delete <name>`,describe:`Delete a user-defined operation label`,builder:z,handler:async e=>o({command:`web-assets labels user delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user/${e.name==null?`<name>`:encodeURIComponent(String(e.name))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),name:String(e.name??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force,message:`This operation deletes the user-defined label and removes it from associated web and API operations.`}))return;let c=await a(`Deleting`,async()=>o.send(R,{zone_id:s,name:e.name}));r(c,{successLabel:`Deleted`})})};var V={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user/${t.name}`,body:`json`};function H(e){return e.usage(`$0 web-assets labels user edit <name>
27
25
 
28
26
  Updates only the supplied fields on a user-defined label.`).positional(`name`,{type:`string`,description:`The label name`,demandOption:!0}).option(`description`,{type:`string`,description:`The description of the label`}).option(`metadata`,{type:`string`,description:`Metadata for the label. 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)`})}const U={command:`edit <name>`,describe:`Edit a user-defined operation label`,builder:H,handler:async e=>o({command:`web-assets labels user edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets labels user edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/labels/user/${e.name==null?`<name>`:encodeURIComponent(String(e.name))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),name:String(e.name??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),metadata:c(e.metadata,`metadata`)},[[`metadata`]]):s(e.body)});return}let o=await t(e),d=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=d,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(V,{body:t,zone_id:d,name:e.name}));r(n,{successLabel:`Updated`});return}let f=l({description:u(e.description,`description`,`text`),metadata:c(e.metadata,`metadata`)},[[`metadata`]]),p=await a(`Updating`,async()=>o.send(V,{body:f,zone_id:d,name:e.name}));r(p,{successLabel:`Updated`})})};var W={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/labels/user/${t.name}`,query:[`with_mapped_resource_counts`]};function ue(e){return e.usage(`$0 web-assets labels user get <name>
29
27
 
@@ -35,27 +33,23 @@ Replaces all editable fields on a user-defined label.`).positional(`name`,{type:
35
33
 
36
34
  Creates one or more web or API operations. Hosts, methods, and paths are normalized; an existing matching operation is returned instead of duplicated.`).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 Se={command:`bulk-create`,describe:`Create web or API operations`,builder:xe,handler:async e=>o({command:`web-assets operations bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(be,{body:t,zone_id:c}));r(n,{successLabel:`Created`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var Ce={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations`,body:`json`};function we(e){return e.usage(`$0 web-assets operations bulk-delete
37
35
 
38
- Deletes multiple web or API operations from endpoint management in one request.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Te={command:`bulk-delete`,describe:`Delete web or API operations`,builder:we,handler:async e=>o({command:`web-assets operations bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation deletes the selected web or API operations.`}))process.stderr.write(`Aborted.
39
- `);else if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(Ce,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var K={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/item`,body:`json`};function Ee(e){return e.usage(`$0 web-assets operations create
36
+ Deletes multiple web or API operations from endpoint management in one request.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Te={command:`bulk-delete`,describe:`Delete web or API operations`,builder:we,handler:async e=>o({command:`web-assets operations bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,await p({force:!!e.force,message:`This operation deletes the selected web or API operations.`})){if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(Ce,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`})}else if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)}})};var K={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/item`,body:`json`};function Ee(e){return e.usage(`$0 web-assets operations create
40
37
 
41
38
  Creates one web or API operation. The host, method, and path are normalized; an existing matching operation is returned instead of duplicated.`).option(`endpoint`,{type:`string`,description:`The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/.`}).option(`host`,{type:`string`,description:`RFC3986-compliant host.`}).option(`method`,{type:`string`,description:`The HTTP method used to access the endpoint.`,choices:[`GET`,`POST`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`CONNECT`,`PATCH`,`TRACE`]}).coerce(`method`,e=>u(e,`method`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const De={command:`create`,describe:`Create a web or API operation`,builder:Ee,handler:async e=>o({command:`web-assets operations create`,classification:{safeFlags:[`method`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/item`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({endpoint:u(e.endpoint,`endpoint`,`text`),host:u(e.host,`host`,`text`),method:e.method}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(K,{body:t,zone_id:c}));r(n,{successLabel:`Created`});return}e.endpoint===void 0&&(e.endpoint=await d(`endpoint`,`The endpoint which can contain path parameter templates in curly braces, each will be replaced from left to right with {varN}, starting with {var1}, during insertion. This will further be Cloudflare-normalized upon insertion. See: https://developers.cloudflare.com/rules/normalization/how-it-works/.`)),e.host===void 0&&(e.host=await d(`host`,`RFC3986-compliant host.`)),e.method===void 0&&(e.method=await f(`method`,`The HTTP method used to access the endpoint.`,[`GET`,`POST`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`CONNECT`,`PATCH`,`TRACE`]));let p=l({endpoint:u(e.endpoint,`endpoint`,`text`),host:u(e.host,`host`,`text`),method:e.method}),m=await a(`Creating`,async()=>o.send(K,{body:p,zone_id:c}));r(m,{successLabel:`Created`})})};var Oe={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}`};function ke(e){return e.usage(`$0 web-assets operations delete <operation-id>
42
39
 
43
- Deletes a web or API operation from endpoint management so its feature configuration is no longer tracked.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ae={command:`delete <operation-id>`,describe:`Delete a web or API operation`,builder:ke,handler:async e=>o({command:`web-assets operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force,message:`This operation deletes the web or API operation.`})){process.stderr.write(`Aborted.
44
- `);return}let c=await a(`Deleting`,async()=>o.send(Oe,{zone_id:s,operation_id:e[`operation-id`]}));r(c,{successLabel:`Deleted`})})};var je={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}`,query:[`feature`,`with_schemas`]};function Me(e){return e.usage(`$0 web-assets operations get <operation-id>
40
+ Deletes a web or API operation from endpoint management so its feature configuration is no longer tracked.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const Ae={command:`delete <operation-id>`,describe:`Delete a web or API operation`,builder:ke,handler:async e=>o({command:`web-assets operations delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force,message:`This operation deletes the web or API operation.`}))return;let c=await a(`Deleting`,async()=>o.send(Oe,{zone_id:s,operation_id:e[`operation-id`]}));r(c,{successLabel:`Deleted`})})};var je={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}`,query:[`feature`,`with_schemas`]};function Me(e){return e.usage(`$0 web-assets operations get <operation-id>
45
41
 
46
42
  Returns a web or API operation, including its schema validation settings and requested feature data.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`feature`,{type:`string`,description:`Add feature(s) to the results. The feature name that is given here corresponds to the resulting feature object. Have a look at the top-level object description for more details on the specific meaning.`}).option(`with-schemas`,{type:`boolean`,description:`When true, includes OpenAPI schemas (both uploaded and learned) for the operation in the response. Due to the conversion overhead, this parameter is only supported on single-operation retrieval.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ne={command:`get <operation-id>`,describe:`Get a web or API operation`,builder:Me,handler:async e=>o({command:`web-assets operations get`,classification:{safeFlags:[`with-schemas`,`dry-run`]}},e,async()=>{let o={feature:e.feature,with_schemas:e[`with-schemas`]};if(e.dryRun){i({command:`cf web-assets operations get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},query:o,bodyKind:`none`});return}let s=await t(e),c=await n({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await a(`Loading`,async()=>s.send(je,{zone_id:c,operation_id:e[`operation-id`],...o}));r(l,{successLabel:`Loaded`})})};var q={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Pe(e){return e.usage(`$0 web-assets operations labels bulk-create
47
43
 
48
44
  Attaches labels to multiple web or API operations in one request.`).option(`managed-labels`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user-labels`,{type:`string`,array:!0,description:`List of user label names.`}).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 Fe={command:`bulk-create`,describe:`Attach labels to web or API operations`,builder:Pe,handler:async e=>o({command:`web-assets operations labels bulk-create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels bulk-create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(q,{body:t,zone_id:c}));r(n,{successLabel:`Created`});return}let u=l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}),d=await a(`Creating`,async()=>o.send(q,{body:u,zone_id:c}));r(d,{successLabel:`Created`})})};var J={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Ie(e){return e.usage(`$0 web-assets operations labels bulk-delete
49
45
 
50
- Removes labels from multiple web or API operations in one request.`).option(`managed-labels`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user-labels`,{type:`string`,array:!0,description:`List of user label names.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Le={command:`bulk-delete`,describe:`Remove labels from web or API operations`,builder:Ie,handler:async e=>o({command:`web-assets operations labels bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation removes the selected labels from the selected web and API operations.`})){process.stderr.write(`Aborted.
51
- `);return}if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(J,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`});return}let u=l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}),d=await a(`Deleting`,async()=>o.send(J,{body:u,zone_id:c}));r(d,{successLabel:`Deleted`})})};var Y={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Re(e){return e.usage(`$0 web-assets operations labels bulk-update
46
+ Removes labels from multiple web or API operations in one request.`).option(`managed-labels`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user-labels`,{type:`string`,array:!0,description:`List of user label names.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Le={command:`bulk-delete`,describe:`Remove labels from web or API operations`,builder:Ie,handler:async e=>o({command:`web-assets operations labels bulk-delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels bulk-delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation removes the selected labels from the selected web and API operations.`}))return;if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(J,{body:t,zone_id:c}));r(n,{successLabel:`Deleted`});return}let u=l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}),d=await a(`Deleting`,async()=>o.send(J,{body:u,zone_id:c}));r(d,{successLabel:`Deleted`})})};var Y={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/labels`,body:`json`};function Re(e){return e.usage(`$0 web-assets operations labels bulk-update
52
47
 
53
48
  Replaces the complete label sets on multiple web or API operations in one request.`).option(`managed-labels`,{type:`string`,array:!0,description:`List of managed label names. Providing an empty array will result in all managed labels being removed from all affected operations`}).option(`user-labels`,{type:`string`,array:!0,description:`List of user label names. Providing an empty array will result in all user labels being removed from all affected operations`}).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 ze={command:`bulk-update`,describe:`Replace labels on web or API operations`,builder:Re,handler:async e=>o({command:`web-assets operations labels bulk-update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels bulk-update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send(Y,{body:t,zone_id:c}));r(n,{successLabel:`Updated`});return}if(e[`managed-labels`]===void 0)throw Error(`--managed-labels is required (or pass --body with this field set).`);if(e[`user-labels`]===void 0)throw Error(`--user-labels is required (or pass --body with this field set).`);let u=l({managed:{labels:e[`managed-labels`]},user:{labels:e[`user-labels`]}}),d=await a(`Updating`,async()=>o.send(Y,{body:u,zone_id:c}));r(d,{successLabel:`Updated`})})};var X={method:`POST`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}/labels`,body:`json`};function Be(e){return e.usage(`$0 web-assets operations labels create <operation-id>
54
49
 
55
50
  Attaches one or more labels to a web or API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`managed`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user`,{type:`string`,array:!0,description:`List of user label names.`}).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 Ve={command:`create <operation-id>`,describe:`Attach labels to a web or API operation`,builder:Be,handler:async e=>o({command:`web-assets operations labels create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:e.managed,user:e.user}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Creating`,async()=>o.send(X,{body:t,zone_id:c,operation_id:e[`operation-id`]}));r(n,{successLabel:`Created`});return}let u=l({managed:e.managed,user:e.user}),d=await a(`Creating`,async()=>o.send(X,{body:u,zone_id:c,operation_id:e[`operation-id`]}));r(d,{successLabel:`Created`})})};var Z={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}/labels`,body:`json`};function He(e){return e.usage(`$0 web-assets operations labels delete <operation-id>
56
51
 
57
- Removes one or more labels from a web or API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`managed`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user`,{type:`string`,array:!0,description:`List of user label names.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`delete <operation-id>`,describe:`Remove labels from a web or API operation`,builder:He,handler:async e=>o({command:`web-assets operations labels delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:e.managed,user:e.user}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation removes the selected labels from the web or API operation.`})){process.stderr.write(`Aborted.
58
- `);return}if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(Z,{body:t,zone_id:c,operation_id:e[`operation-id`]}));r(n,{successLabel:`Deleted`});return}let u=l({managed:e.managed,user:e.user}),d=await a(`Deleting`,async()=>o.send(Z,{body:u,zone_id:c,operation_id:e[`operation-id`]}));r(d,{successLabel:`Deleted`})})};var $={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}/labels`,body:`json`};function Ue(e){return e.usage(`$0 web-assets operations labels update <operation-id>
52
+ Removes one or more labels from a web or API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`managed`,{type:`string`,array:!0,description:`List of managed label names.`}).option(`user`,{type:`string`,array:!0,description:`List of user label names.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const Q={command:`delete <operation-id>`,describe:`Remove labels from a web or API operation`,builder:He,handler:async e=>o({command:`web-assets operations labels delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:e.managed,user:e.user}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,!await p({force:!!e.force,message:`This operation removes the selected labels from the web or API operation.`}))return;if(e.body){let t=s(e.body),n=await a(`Deleting`,async()=>o.send(Z,{body:t,zone_id:c,operation_id:e[`operation-id`]}));r(n,{successLabel:`Deleted`});return}let u=l({managed:e.managed,user:e.user}),d=await a(`Deleting`,async()=>o.send(Z,{body:u,zone_id:c,operation_id:e[`operation-id`]}));r(d,{successLabel:`Deleted`})})};var $={method:`PUT`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations/${t.operation_id}/labels`,body:`json`};function Ue(e){return e.usage(`$0 web-assets operations labels update <operation-id>
59
53
 
60
54
  Replaces the complete label set on a web or API operation.`).positional(`operation-id`,{type:`string`,description:`Identifier for the operation`,demandOption:!0}).option(`managed`,{type:`string`,array:!0,description:`List of managed label names. Omitting this property or passing an empty array will result in all managed labels being removed from the operation`}).option(`user`,{type:`string`,array:!0,description:`List of user label names. Omitting this property or passing an empty array will result in all user labels being removed from the operation`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const We={command:`update <operation-id>`,describe:`Replace labels on a web or API operation`,builder:Ue,handler:async e=>o({command:`web-assets operations labels update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web-assets operations labels update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/api_gateway/operations/${e[`operation-id`]==null?`<operation-id>`:encodeURIComponent(String(e[`operation-id`]))}/labels`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),"operation-id":String(e[`operation-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({managed:e.managed,user:e.user}):s(e.body)});return}let o=await t(e),c=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=c,e.body){let t=s(e.body),n=await a(`Updating`,async()=>o.send($,{body:t,zone_id:c,operation_id:e[`operation-id`]}));r(n,{successLabel:`Updated`});return}let u=l({managed:e.managed,user:e.user}),d=await a(`Updating`,async()=>o.send($,{body:u,zone_id:c,operation_id:e[`operation-id`]}));r(d,{successLabel:`Updated`})})},Ge={command:`labels`,describe:`Operations for operations.labels`,builder:e=>e.command(Fe).command(Le).command(ze).command(Ve).command(Q).command(We).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Ke={method:`GET`,path:t=>e`/zones/${t.zone_id}/api_gateway/operations`,query:[`page`,`per_page`,`order`,`direction`,`host`,`method`,`endpoint`,`feature`]};function qe(e){return e.usage(`$0 web-assets operations list
61
55
 
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BUQscD5b.mjs";import{i as n}from"./context-Sgba0fZP.mjs";import{t as r}from"./output-CpiIVa7Q.mjs";import{t as i}from"./dry-run-BBjUQUhR.mjs";import{t as a}from"./progress-B1dpmxCT.mjs";import{t as o}from"./run-0EozpORq.mjs";import"./telemetry-BczXOpQn.mjs";import{a as s,n as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-Y5OBwDVE.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{n as t}from"./auth-BcNLQji1.mjs";import{i as n}from"./context-DVh8Wyfs.mjs";import{t as r}from"./output-BJEgbI0G.mjs";import{t as i}from"./dry-run-gy0Hl9xo.mjs";import{t as a}from"./progress-CtGsPOpV.mjs";import{t as o}from"./run-DnZGQbq_.mjs";import"./telemetry-CvZean4s.mjs";import{a as s,n as c,t as l}from"./body-parser-ChnyBsfm.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d,i as f,n as p}from"./prompt-YrI7ltMa.mjs";var m={method:`POST`,path:t=>e`/zones/${t.zone_id}/web3/hostnames`,body:`json`};function h(e){return e.usage(`$0 web3 hostnames create
3
3
 
4
4
  Create Web3 Hostname`).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`name`,{type:`string`,description:`Specify the hostname that points to the target gateway via CNAME.`}).option(`target`,{type:`string`,description:`Specify the target gateway of the hostname.`,choices:[`ethereum`,`ipfs`,`ipfs_universal_path`]}).coerce(`target`,e=>u(e,`target`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const g={command:`create`,describe:`Create Web3 Hostname`,builder:h,handler:async e=>o({command:`web3 hostnames create`,classification:{safeFlags:[`target`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}):c(e.body)});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),n=await a(`Creating`,async()=>o.send(m,{body:t,zone_id:s}));r(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await d(`name`,`Specify the hostname that points to the target gateway via CNAME.`)),e.target===void 0&&(e.target=await f(`target`,`Specify the target gateway of the hostname.`,[`ethereum`,`ipfs`,`ipfs_universal_path`]));let p=l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`),name:u(e.name,`name`,`text`),target:e.target}),h=await a(`Creating`,async()=>o.send(m,{body:p,zone_id:s}));r(h,{successLabel:`Created`})})};var _={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`};function v(e){return e.usage(`$0 web3 hostnames delete <identifier>
5
5
 
6
- Delete Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,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 y={command:`delete <identifier>`,describe:`Delete Web3 Hostname`,builder:v,handler:async e=>o({command:`web3 hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force})){process.stderr.write(`Aborted.
7
- `);return}let c=await a(`Deleting`,async()=>o.send(_,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`,body:`json`};function x(e){return e.usage(`$0 web3 hostnames edit <identifier>
6
+ Delete Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,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 y={command:`delete <identifier>`,describe:`Delete Web3 Hostname`,builder:v,handler:async e=>o({command:`web3 hostnames delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force}))return;let c=await a(`Deleting`,async()=>o.send(_,{zone_id:s,identifier:e.identifier}));r(c,{successLabel:`Deleted`})})};var b={method:`PATCH`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`,body:`json`};function x(e){return e.usage(`$0 web3 hostnames edit <identifier>
8
7
 
9
8
  Edit Web3 Hostname`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`description`,{type:`string`,description:`Specify an optional description of the hostname.`}).option(`dnslink`,{type:`string`,description:`Specify the DNSLink value used if the target is ipfs.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const S={command:`edit <identifier>`,describe:`Edit Web3 Hostname`,builder:x,handler:async e=>o({command:`web3 hostnames edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`)}):c(e.body)});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),n=await a(`Updating`,async()=>o.send(b,{body:t,zone_id:s,identifier:e.identifier}));r(n,{successLabel:`Updated`});return}let d=l({description:u(e.description,`description`,`text`),dnslink:u(e.dnslink,`dnslink`,`text`)}),f=await a(`Updating`,async()=>o.send(b,{body:d,zone_id:s,identifier:e.identifier}));r(f,{successLabel:`Updated`})})};var C={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}`};function w(e){return e.usage(`$0 web3 hostnames get <identifier>
10
9
 
@@ -12,8 +11,7 @@ Web3 Hostname Details`).positional(`identifier`,{type:`string`,description:`Spec
12
11
 
13
12
  Create IPFS Universal Path Gateway Content List Entry`).positional(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`content`,{type:`string`,description:`Specify the CID or content path of content to block.`}).option(`description`,{type:`string`,description:`Specify an optional description of the content list entry.`}).option(`type`,{type:`string`,description:`Specify the type of content list entry to block.`,choices:[`cid`,`content_path`]}).coerce(`type`,e=>u(e,`type`,`text`)).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const O={command:`create <identifier>`,describe:`Create IPFS Universal Path Gateway Content List Entry`,builder:D,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries create`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``)},bodyKind:`json`,body:e.body===void 0?l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}):c(e.body)});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,e.body){let t=c(e.body),n=await a(`Creating`,async()=>o.send(E,{body:t,zone_id:s,identifier:e.identifier}));r(n,{successLabel:`Created`});return}e.content===void 0&&(e.content=await d(`content`,`Specify the CID or content path of content to block.`)),e.type===void 0&&(e.type=await f(`type`,`Specify the type of content list entry to block.`,[`cid`,`content_path`]));let p=l({content:u(e.content,`content`,`text`),description:u(e.description,`description`,`text`),type:e.type}),m=await a(`Creating`,async()=>o.send(E,{body:p,zone_id:s,identifier:e.identifier}));r(m,{successLabel:`Created`})})};var k={method:`DELETE`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`};function A(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries delete <content-list-entry-identifier>
14
13
 
15
- Delete IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <content-list-entry-identifier>`,describe:`Delete IPFS Universal Path Gateway Content List Entry`,builder:A,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force})){process.stderr.write(`Aborted.
16
- `);return}let c=await a(`Deleting`,async()=>o.send(k,{zone_id:s,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(c,{successLabel:`Deleted`})})};var M={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`};function N(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries get <content-list-entry-identifier>
14
+ Delete IPFS Universal Path Gateway Content List Entry`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`force`,{type:`boolean`,alias:`f`,description:`Skip confirmation (useful in scripts and CI)`,default:!1})}const j={command:`delete <content-list-entry-identifier>`,describe:`Delete IPFS Universal Path Gateway Content List Entry`,builder:A,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});if(e.zoneId=s,!await p({force:!!e.force}))return;let c=await a(`Deleting`,async()=>o.send(k,{zone_id:s,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(c,{successLabel:`Deleted`})})};var M={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries/${t.content_list_entry_identifier}`};function N(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries get <content-list-entry-identifier>
17
15
 
18
16
  IPFS Universal Path Gateway Content List Entry Details`).positional(`content-list-entry-identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`identifier`,{type:`string`,description:`Specify the identifier of the hostname.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const P={command:`get <content-list-entry-identifier>`,describe:`IPFS Universal Path Gateway Content List Entry Details`,builder:N,handler:async e=>o({command:`web3 hostnames ipfs-universal-paths content-lists entries get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){i({command:`cf web3 hostnames ipfs-universal-paths content-lists entries get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/web3/hostnames/${e.identifier==null?`<identifier>`:encodeURIComponent(String(e.identifier))}/ipfs_universal_path/content_list/entries/${e[`content-list-entry-identifier`]==null?`<content-list-entry-identifier>`:encodeURIComponent(String(e[`content-list-entry-identifier`]))}`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``),identifier:String(e.identifier??``),"content-list-entry-identifier":String(e[`content-list-entry-identifier`]??``)},bodyKind:`none`});return}let o=await t(e),s=await n({zone:e.zone},o,{quiet:e.quiet});e.zoneId=s;let c=await a(`Loading`,async()=>o.send(M,{zone_id:s,identifier:e.identifier,content_list_entry_identifier:e[`content-list-entry-identifier`]}));r(c,{successLabel:`Loaded`})})};var F={method:`GET`,path:t=>e`/zones/${t.zone_id}/web3/hostnames/${t.identifier}/ipfs_universal_path/content_list/entries`};function I(e){return e.usage(`$0 web3 hostnames ipfs-universal-paths content-lists entries list
19
17