cf 1.0.0-beta.14 → 1.0.0-beta.16

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 (458) hide show
  1. package/README.md +10 -0
  2. package/dist/_meta/commands.json +6545 -3180
  3. package/dist/_meta/hand-written-commands.json +35 -2
  4. package/dist/_meta/schemas.json +7031 -4599
  5. package/dist/abuse-reports-17K-TRhO.mjs +24 -0
  6. package/dist/{access-k1QjF5rE.mjs → access-BwB7sg1D.mjs} +1 -1
  7. package/dist/account-tags-povXTDAu.mjs +15 -0
  8. package/dist/accounts-BnIGu_ac.mjs +132 -0
  9. package/dist/acm-CQRcu_zw.mjs +15 -0
  10. package/dist/addressing-Qcm9jd3C.mjs +105 -0
  11. package/dist/agent-memory-B3xN9I6-.mjs +34 -0
  12. package/dist/ai-BRKOCckA.mjs +31 -0
  13. package/dist/ai-audit-Cd9Rc2Fc.mjs +6 -0
  14. package/dist/ai-gateway-BWU5064V.mjs +80 -0
  15. package/dist/ai-search-CJ3b8eot.mjs +79 -0
  16. package/dist/ai-security-Dn0Ee6QS.mjs +10 -0
  17. package/dist/alerting-BXTiMfXo.mjs +56 -0
  18. package/dist/analytics-Jyd04TRW.mjs +17 -0
  19. package/dist/analytics-engine-CzrNfUeh.mjs +4 -0
  20. package/dist/api-eMuS5GI1.mjs +3 -0
  21. package/dist/api-security-DRBHZaf_.mjs +154 -0
  22. package/dist/argo-DiQt0pSb.mjs +14 -0
  23. package/dist/artifacts-eBZ4YN53.mjs +43 -0
  24. package/dist/audit-logs-Bb4HTZay.mjs +4 -0
  25. package/dist/auth-C6My1gI6.mjs +2 -0
  26. package/dist/auth-OFqV2M4q.mjs +2 -0
  27. package/dist/auth-eVI_UEt8.mjs +2 -0
  28. package/dist/{auth-token-Dop0wLCw.mjs → auth-token-Cfj2yehs.mjs} +1 -1
  29. package/dist/{autoconfig-RQ3HS4m1.mjs → autoconfig-B0ESZ8DJ.mjs} +2 -2
  30. package/dist/basin-catalog-Cwk1RSMX.mjs +46 -0
  31. package/dist/billing-CfV8oi6A.mjs +23 -0
  32. package/dist/blocks-Bat9A8V_.mjs +5 -0
  33. package/dist/bot-management-CH4_Kewx.mjs +9 -0
  34. package/dist/botnet-feed-Cg_Wp8ei.mjs +11 -0
  35. package/dist/brand-protection-Cp2ckWou.mjs +27 -0
  36. package/dist/browser-run-CfQ30dB6.mjs +42 -0
  37. package/dist/build-Bm6kGyzo.mjs +2 -0
  38. package/dist/{build-CCe7IrWT.mjs → build-sBpqm9ga.mjs} +1 -1
  39. package/dist/builds-B2RBgVL9.mjs +71 -0
  40. package/dist/cache-yvrYPvRI.mjs +45 -0
  41. package/dist/certificate-authorities-BdMRaOnD.mjs +6 -0
  42. package/dist/cf-Bq4pA4n6.mjs +18 -0
  43. package/dist/{chunk-TAK63GWY-DdMktrgc.mjs → chunk-2HLTAS5V-D7COzUOd.mjs} +2 -2
  44. package/dist/chunk-2K52M2W5-CYxfQXUq.mjs +363 -0
  45. package/dist/{chunk-DSGVRFIS-CPI5cYtB.mjs → chunk-DSGVRFIS-C5SqiTOz.mjs} +1 -1
  46. package/dist/{cli-ht4q6i2y.mjs → cli-CsnoQloF.mjs} +1 -1
  47. package/dist/client-certificates-CuWGvZSr.mjs +13 -0
  48. package/dist/client-side-security-D50iZjd_.mjs +63 -0
  49. package/dist/cloud-connector-wvSGdxWT.mjs +6 -0
  50. package/dist/{cloudflared-D83U8Yn3.mjs → cloudflared-By8BzYXc.mjs} +1 -1
  51. package/dist/cloudforce-one-j6vlmaMB.mjs +405 -0
  52. package/dist/{command-9VAc7b30.mjs → command-74P4_CTx.mjs} +1 -1
  53. package/dist/{command-B_Ixlz8Q.mjs → command-BDpm-U8z.mjs} +1 -1
  54. package/dist/{command-OHov3PEc.mjs → command-BSbhJRmu.mjs} +1 -1
  55. package/dist/{command-DjEJaOwV.mjs → command-BbO3sBQ2.mjs} +1 -1
  56. package/dist/{command-CtVUNm__.mjs → command-Bgb-3yPg.mjs} +1 -1
  57. package/dist/{command-DtgJilOK.mjs → command-C6w1OdoC.mjs} +1 -1
  58. package/dist/{command-CyJQ40fc.mjs → command-CM_f48gs.mjs} +1 -1
  59. package/dist/command-CmUtmu5j.mjs +2 -0
  60. package/dist/{command-Bpzp8Mz2.mjs → command-DCQgsd2U.mjs} +1 -1
  61. package/dist/{command-SmWD-MeI.mjs → command-DFRsim8q.mjs} +1 -1
  62. package/dist/command-DQojhTEQ.mjs +2 -0
  63. package/dist/{command-CUNMrMou.mjs → command-DZfKHiru.mjs} +1 -1
  64. package/dist/{command-BtDY_MKv.mjs → command-DiqRELHF.mjs} +1 -1
  65. package/dist/{command-DXaRn1ls.mjs → command-DppVezAB.mjs} +1 -1
  66. package/dist/{command-Ckb9FufU.mjs → command-Dr4PEvB2.mjs} +1 -1
  67. package/dist/{completions-CuqAO3N_.mjs → completions-oD1EcuHk.mjs} +1 -1
  68. package/dist/config.mjs +0 -0
  69. package/dist/connector-interrupts-DP4rbOe8.mjs +6 -0
  70. package/dist/connector-telemetry-events-BQGBQwzR.mjs +6 -0
  71. package/dist/connector-telemetry-snapshots-DBO0Mdcj.mjs +6 -0
  72. package/dist/connectors-BSVr3Kz1.mjs +15 -0
  73. package/dist/containers-BOpKpipz.mjs +376 -0
  74. package/dist/containers-BTqAeVV2.mjs +78 -0
  75. package/dist/content-scan-B9Keyxe-.mjs +14 -0
  76. package/dist/{context-BBLtgdR1.mjs → context-B-vEsyrK.mjs} +2 -2
  77. package/dist/{cps-C5phNoVU.mjs → cps-VRP794c5.mjs} +3 -3
  78. package/dist/create-OXylMu6m.mjs +2 -0
  79. package/dist/csam-scanner-C1jOgXVu.mjs +10 -0
  80. package/dist/ct-alerting-Y9vfa6Fo.mjs +5 -0
  81. package/dist/custom-certificates-CojTEC0E.mjs +17 -0
  82. package/dist/custom-csrs-DM5X-K6H.mjs +11 -0
  83. package/dist/custom-hostnames-BBjqaiFF.mjs +27 -0
  84. package/dist/custom-nameservers-C0NDMLPJ.mjs +9 -0
  85. package/dist/custom-pages-M4RUxcn6.mjs +21 -0
  86. package/dist/{d1-EQMUlHTJ.mjs → d1-hin5PmxW.mjs} +31 -31
  87. package/dist/dcv-delegation-KOO8syyQ.mjs +4 -0
  88. package/dist/delegate.mjs +0 -0
  89. package/dist/{deploy-B22sEVHd.mjs → deploy-Bo7FtE44.mjs} +1 -1
  90. package/dist/deploy-context-ClvBD87y.mjs +56 -0
  91. package/dist/{deploy-input-BCjcuP6u.mjs → deploy-input-BqJ7GVZ-.mjs} +1 -1
  92. package/dist/{dev-ClhhXuNU.mjs → dev-EtnMYA7K.mjs} +1 -1
  93. package/dist/diagnostics-LZuMrGjK.mjs +15 -0
  94. package/dist/{dist-DmRM6WSZ.mjs → dist-DZRTPMMA.mjs} +4 -4
  95. package/dist/dls-Bq8k3iy-.mjs +17 -0
  96. package/dist/dns-firewall-zavP5Qxj.mjs +71 -0
  97. package/dist/dns-ry5E2Bsa.mjs +144 -0
  98. package/dist/docs-B08YtL0U.mjs +3 -0
  99. package/dist/{dotenv-DpXaxfho.mjs → dotenv-usOKkeW7.mjs} +3 -3
  100. package/dist/{dry-run-DRj2_uV3.mjs → dry-run-C2KjGX10.mjs} +1 -1
  101. package/dist/durable-objects-B9fo41B1.mjs +6 -0
  102. package/dist/email-auth-D9LGjFlh.mjs +6 -0
  103. package/dist/email-routing-6iDnNPhY.mjs +45 -0
  104. package/dist/email-security-ty4ufRnJ.mjs +158 -0
  105. package/dist/email-sending-d7LO_Cz_.mjs +47 -0
  106. package/dist/error-sanitization-CIQOep3I.mjs +2 -0
  107. package/dist/error-sanitization-pOyzm2F1.mjs +2 -0
  108. package/dist/field-extractors-DkgQ7PSw.mjs +9 -0
  109. package/dist/firewall-Q88YyEwD.mjs +36 -0
  110. package/dist/flagship-CzI8zhd6.mjs +28 -0
  111. package/dist/fraud-CvFXTR0w.mjs +22 -0
  112. package/dist/get-By1q8YlI.mjs +2 -0
  113. package/dist/get-CRKvqCu6.mjs +2 -0
  114. package/dist/get-iPUHxD1r.mjs +2 -0
  115. package/dist/google-tag-gateway-Y2zbyey8.mjs +6 -0
  116. package/dist/healthchecks-4Hz-6xYi.mjs +22 -0
  117. package/dist/{hostnames-DvaUSzsj.mjs → hostnames-B3k7fIUL.mjs} +6 -6
  118. package/dist/hyperdrive-BWGYz95H.mjs +37 -0
  119. package/dist/iam-AXco_qmt.mjs +52 -0
  120. package/dist/images-BzYh8y0u.mjs +71 -0
  121. package/dist/index.mjs +1 -1
  122. package/dist/{init-Da8pe296.mjs → init-DlenHBtS.mjs} +2 -2
  123. package/dist/intel-BBi3i_GU.mjs +76 -0
  124. package/dist/ips-CWG2b7AM.mjs +4 -0
  125. package/dist/k2-DXdMe3Cb.mjs +11 -0
  126. package/dist/keyless-certificates-B4ta_OGS.mjs +13 -0
  127. package/dist/keys-B9zvFzrf.mjs +4 -0
  128. package/dist/kv-FUd7UdDu.mjs +15 -0
  129. package/dist/{lazy-command-CDWwCsD2.mjs → lazy-command-BC8rIlHu.mjs} +1 -1
  130. package/dist/leaked-credential-checks-BufVA9vL.mjs +18 -0
  131. package/dist/{load-balancers-Bu9pd2SV.mjs → load-balancers-CWd9mSWM.mjs} +40 -40
  132. package/dist/{local-BcPM4I0s.mjs → local-Dil4fTWX.mjs} +1 -1
  133. package/dist/local-DxWDQDnG.mjs +2 -0
  134. package/dist/{local-runtime-BHKyRlCP.mjs → local-runtime-B7TKFu6E.mjs} +1 -1
  135. package/dist/login-BJr2PBaJ.mjs +5 -0
  136. package/dist/login-DVbXZ_Tv.mjs +2 -0
  137. package/dist/logo-matches-BluaPvMa.mjs +6 -0
  138. package/dist/logos-CXtmYWEJ.mjs +7 -0
  139. package/dist/logpush-DCYgrqz0.mjs +46 -0
  140. package/dist/logs-as60IP29.mjs +36 -0
  141. package/dist/magic-cloud-networking-0RsHugUF.mjs +71 -0
  142. package/dist/magic-network-monitoring-CPqvZdcb.mjs +36 -0
  143. package/dist/magic-transit-ClPyGzOE.mjs +386 -0
  144. package/dist/managed-defense-P4_QWSbK.mjs +18 -0
  145. package/dist/managed-transforms-CUwQXMij.mjs +9 -0
  146. package/dist/matches-BjckDBW1.mjs +6 -0
  147. package/dist/mcp-C2EG2c7L.mjs +32 -0
  148. package/dist/mesh-CpMZA7Xt.mjs +26 -0
  149. package/dist/{migrate-CZNq63Uj.mjs → migrate-6e5mJ79R.mjs} +1 -1
  150. package/dist/monetization-DypuCZmU.mjs +20 -0
  151. package/dist/mtls-certificates-B5AWTU6u.mjs +13 -0
  152. package/dist/network-DQ5Ridgy.mjs +50 -0
  153. package/dist/network-interconnects-ifU4JhGE.mjs +72 -0
  154. package/dist/o11y-CzssfRHt.mjs +93 -0
  155. package/dist/{oauth-n8um6MFk.mjs → oauth-BDdhqasa.mjs} +1 -1
  156. package/dist/oauth-BNTiErBG.mjs +4 -0
  157. package/dist/oauth-clients-gknNcBdV.mjs +16 -0
  158. package/dist/oauth-scopes-BJeSanuF.mjs +4 -0
  159. package/dist/organization-CXAM41sd.mjs +71 -0
  160. package/dist/organizations-kfFFW4uO.mjs +4 -0
  161. package/dist/origin-ca-certificates-DwhYV3m_.mjs +11 -0
  162. package/dist/origin-post-quantum-encryption-DfrnptJ1.mjs +6 -0
  163. package/dist/origin-tls-client-auth-COSxTc2q.mjs +30 -0
  164. package/dist/output-Co4xdFf6.mjs +2 -0
  165. package/dist/page-rules-ByrDMDBZ.mjs +39 -0
  166. package/dist/{pages-Bn0Sg1ay.mjs → pages-DuGcBC6k.mjs} +29 -29
  167. package/dist/path-DRw6Y-nd.mjs +2 -0
  168. package/dist/pay-per-crawl-B3_Gn9Cj.mjs +38 -0
  169. package/dist/pay-per-use-49EXt75f.mjs +33 -0
  170. package/dist/pipelines-Bvgh1BQZ.mjs +44 -0
  171. package/dist/precursor-VobQf--m.mjs +4 -0
  172. package/dist/previews-DkwFHNRx.mjs +7 -0
  173. package/dist/progress-R-1tIuep.mjs +2 -0
  174. package/dist/prompt-dgLm0iFJ.mjs +4 -0
  175. package/dist/queries-EbIadtC5.mjs +9 -0
  176. package/dist/queues-C4GZ-O3f.mjs +57 -0
  177. package/dist/r2-DEuFfWBR.mjs +128 -0
  178. package/dist/{radar-CdvQL4xm.mjs → radar-CDOERVcR.mjs} +150 -150
  179. package/dist/raw-fetch-BapeoreV.mjs +2 -0
  180. package/dist/realtime-D_A9Qgly.mjs +172 -0
  181. package/dist/registrar-X1YLlnmg.mjs +43 -0
  182. package/dist/registrar-sandbox-BF3cYO3n.mjs +56 -0
  183. package/dist/{registry-PI6sO95I.mjs → registry-CRnk93ur.mjs} +1 -1
  184. package/dist/reporting-BWm9jIF8.mjs +14 -0
  185. package/dist/{request-headers-D8L95bEQ.mjs → request-headers-BRxv6NkA.mjs} +1 -1
  186. package/dist/request-tracers-CHWpiejG.mjs +4 -0
  187. package/dist/resolve-BpgXeklt.mjs +2 -0
  188. package/dist/resolve-C3FmNlSO.mjs +2 -0
  189. package/dist/resource-sharing-C186jZv0.mjs +40 -0
  190. package/dist/resource-tagging-BTagOZli.mjs +4 -0
  191. package/dist/rules-DYnGIU_0.mjs +18 -0
  192. package/dist/rulesets-BcNrbVcq.mjs +37 -0
  193. package/dist/rum-BDyRecfp.mjs +30 -0
  194. package/dist/{run-CW2Cgi0S.mjs → run-BvDCuZ8q.mjs} +1 -1
  195. package/dist/run-roYb_Odh.mjs +2 -0
  196. package/dist/{schema-elj12WOx.mjs → schema-S3pUZwpI.mjs} +1 -1
  197. package/dist/{schema-flags-BTItUu1K.mjs → schema-flags-DcKjAxI1.mjs} +1 -1
  198. package/dist/scim-zn-CNCsc.mjs +18 -0
  199. package/dist/secrets-store-CFhyQUV6.mjs +24 -0
  200. package/dist/security-insights-D8XgtCed.mjs +40 -0
  201. package/dist/security-txt-CCM-Vro0.mjs +9 -0
  202. package/dist/session-Cq3YNLoI.mjs +2 -0
  203. package/dist/shared-ouAF7o4S.mjs +2 -0
  204. package/dist/smart-shield-DwW7N92r.mjs +24 -0
  205. package/dist/snippets-B2jBY0m_.mjs +20 -0
  206. package/dist/{spawn-D07wH-MH.mjs → spawn-DQttFH05.mjs} +1 -1
  207. package/dist/{spectrum-B6qkjR_Z.mjs → spectrum-Cf_4cGE8.mjs} +16 -16
  208. package/dist/speed-DoXdyIYK.mjs +24 -0
  209. package/dist/sql-Bze4h80q.mjs +4 -0
  210. package/dist/src-BguQDHjS.mjs +125 -0
  211. package/dist/ssl-u_0gUhPA.mjs +45 -0
  212. package/dist/{startup-profile-CrtCP-6-.mjs → startup-profile-BOaseXnO.mjs} +1 -1
  213. package/dist/startup-profile-BwEZFVGS.mjs +2 -0
  214. package/dist/{state-DIiIGEtR.mjs → state-Boubf1X6.mjs} +1 -1
  215. package/dist/state-CODDG9Nx.mjs +2 -0
  216. package/dist/stream-BcReYIHJ.mjs +102 -0
  217. package/dist/submit-ldFVNfNC.mjs +4 -0
  218. package/dist/{tags-CX23P4jg.mjs → tags-D_Hc_A-r.mjs} +2 -2
  219. package/dist/{telemetry-ZlCi5Xhc.mjs → telemetry-Cojgz4Sv.mjs} +1 -1
  220. package/dist/telemetry-Ct_2AaO4.mjs +2 -0
  221. package/dist/tenant-AZ0EAsmT.mjs +10 -0
  222. package/dist/tenant-custom-nameservers-aozjaasc.mjs +9 -0
  223. package/dist/theme-BGHWSKCw.mjs +6 -0
  224. package/dist/{tools-CSc5DmFi.mjs → tools-BCCRUENY.mjs} +1 -1
  225. package/dist/tunnels-CXez5LPB.mjs +29 -0
  226. package/dist/turnstile-B2NQ8Nsk.mjs +33 -0
  227. package/dist/ui-BtIBQeaG.mjs +2 -0
  228. package/dist/{update-check-HFkPml6x.mjs → update-check-BlyKN8m0.mjs} +1 -1
  229. package/dist/update-check-BnGDxswi.mjs +2 -0
  230. package/dist/update-check-worker.mjs +1 -1
  231. package/dist/url-info-D_UqGiWD.mjs +4 -0
  232. package/dist/url-normalization-CF1YHpIN.mjs +9 -0
  233. package/dist/url-scanner-ChF3GO2U.mjs +16 -0
  234. package/dist/{user-rXca0J9M.mjs → user-BfWRsdJh.mjs} +58 -58
  235. package/dist/values-CLfxkAUJ.mjs +4 -0
  236. package/dist/vectorize-CRYbWKg5.mjs +32 -0
  237. package/dist/version-CVlh2Zaq.mjs +2 -0
  238. package/dist/{waiting-rooms-DrA3-0bw.mjs → waiting-rooms-Crp7MVd9.mjs} +25 -25
  239. package/dist/web-assets-CgyrPnT-.mjs +64 -0
  240. package/dist/web3-Cd0Yd0eQ.mjs +28 -0
  241. package/dist/workers-CTwJpTfJ.mjs +40 -0
  242. package/dist/workers-builds-f2nVw7EZ.mjs +14 -0
  243. package/dist/workers-for-platforms-DjeKp2uy.mjs +40 -0
  244. package/dist/workers-vpc-B_L3TEg2.mjs +13 -0
  245. package/dist/workflows-CBPGf65x.mjs +52 -0
  246. package/dist/{wrangler-migration-C6FKHER1.mjs → wrangler-migration-DxTB5yPT.mjs} +1 -1
  247. package/dist/zaraz-3VDxl0gF.mjs +22 -0
  248. package/dist/zero-trust-B9xY8zcn.mjs +957 -0
  249. package/dist/zone-CmwVqTI2.mjs +4 -0
  250. package/dist/zones-Bf0VVpMf.mjs +124 -0
  251. package/package.json +17 -19
  252. package/dist/Page-BShsqCXr.mjs +0 -2
  253. package/dist/abuse-reports-CVv52Q2w.mjs +0 -24
  254. package/dist/account-tags-RhvWOkOf.mjs +0 -15
  255. package/dist/accounts--3lrEkmu.mjs +0 -125
  256. package/dist/acm-BJxINEcu.mjs +0 -15
  257. package/dist/addressing-BqByG9JW.mjs +0 -105
  258. package/dist/agent-memory-D4dQMGbh.mjs +0 -34
  259. package/dist/ai-CRkQ4pjC.mjs +0 -31
  260. package/dist/ai-audit-fMSn4c5L.mjs +0 -6
  261. package/dist/ai-gateway-CbhvQK4L.mjs +0 -80
  262. package/dist/ai-search-CvVSnOA0.mjs +0 -79
  263. package/dist/ai-security-Z_qpI92I.mjs +0 -10
  264. package/dist/alerting-CpbCB8br.mjs +0 -56
  265. package/dist/alerts-BSON-vFh.mjs +0 -2
  266. package/dist/analytics-DkY9dOP1.mjs +0 -17
  267. package/dist/analytics_engine-DE_jvlx_.mjs +0 -4
  268. package/dist/api-security-BHnOU5MM.mjs +0 -154
  269. package/dist/argo-DhC5L_aN.mjs +0 -14
  270. package/dist/args-CfbYkeXd.mjs +0 -2
  271. package/dist/artifacts-CrIupY7P.mjs +0 -43
  272. package/dist/audit-logs-BjeBxTox.mjs +0 -4
  273. package/dist/auth-BNYfOMl0.mjs +0 -2
  274. package/dist/auth-CAWalgW0.mjs +0 -2
  275. package/dist/auth-DOwC01PW.mjs +0 -2
  276. package/dist/autorag-kNrLiqDX.mjs +0 -2
  277. package/dist/banner-D03JEqRs.mjs +0 -2
  278. package/dist/basin-catalog-DZ7QV-_N.mjs +0 -46
  279. package/dist/billing-BFyte9fL.mjs +0 -23
  280. package/dist/bot-management-DXcbV3am.mjs +0 -9
  281. package/dist/botnet-feed-bGGp_cwX.mjs +0 -11
  282. package/dist/brand-protection-DN36XkxH.mjs +0 -27
  283. package/dist/brands-bBJgbbOH.mjs +0 -2
  284. package/dist/browser-extension-C1_fcw7h.mjs +0 -2
  285. package/dist/browser-run-hHD1RT43.mjs +0 -42
  286. package/dist/build-BhpWYgNm.mjs +0 -2
  287. package/dist/builds-6aO61R9R.mjs +0 -71
  288. package/dist/cache-C5YJpMqi.mjs +0 -45
  289. package/dist/certificate-authorities-CbqDAktQ.mjs +0 -6
  290. package/dist/cf-oRSQKirD.mjs +0 -18
  291. package/dist/chunk-NDZDTP46-Civns3WA.mjs +0 -361
  292. package/dist/clear-BW9vLgI3.mjs +0 -2
  293. package/dist/cli-types-9oYmRTHJ.mjs +0 -2
  294. package/dist/client-certificates-balaN_my.mjs +0 -13
  295. package/dist/client-side-security-3_4Ermmg.mjs +0 -63
  296. package/dist/cloud-connector-avx27sLw.mjs +0 -6
  297. package/dist/cloudforce-one-CXdeqJ9l.mjs +0 -405
  298. package/dist/command-DPX9sJVi.mjs +0 -2
  299. package/dist/command-OWe3v69l.mjs +0 -2
  300. package/dist/connector-interrupts-ftd10Du-.mjs +0 -6
  301. package/dist/connector-telemetry-events-TwDZYdEM.mjs +0 -6
  302. package/dist/connector-telemetry-events-latest-BQdOvbWh.mjs +0 -2
  303. package/dist/connector-telemetry-snapshots-CZxkOuC3.mjs +0 -6
  304. package/dist/connector-telemetry-snapshots-latest-CtdN_dGu.mjs +0 -2
  305. package/dist/connectors-6lVSr-fd.mjs +0 -15
  306. package/dist/containers-Dqs_ZnO2.mjs +0 -78
  307. package/dist/containers-ncw3bd3a.mjs +0 -376
  308. package/dist/content-scan-BWFbqfQ0.mjs +0 -14
  309. package/dist/csamScanner-BwZNZu0A.mjs +0 -10
  310. package/dist/ct-alerting-DPp3qLqO.mjs +0 -5
  311. package/dist/custom-certificates-pfpZcr06.mjs +0 -17
  312. package/dist/custom-csrs-DrvGRAkl.mjs +0 -11
  313. package/dist/custom-hostnames-wGtmFbz1.mjs +0 -27
  314. package/dist/custom-nameservers-HTG6MPKv.mjs +0 -9
  315. package/dist/custom-pages-DqEHBSVt.mjs +0 -21
  316. package/dist/dcv-delegation-D6nj0Z5N.mjs +0 -4
  317. package/dist/deploy-context-DmG9rgPO.mjs +0 -56
  318. package/dist/diagnostics-tqHjq-Pl.mjs +0 -15
  319. package/dist/dls-BEHj4X9T.mjs +0 -17
  320. package/dist/dns-firewall-zwbkutyf.mjs +0 -71
  321. package/dist/dns-n4mfYBZg.mjs +0 -144
  322. package/dist/domain-info-BkcBcyfF.mjs +0 -2
  323. package/dist/durable-objects-CQ2dHhho.mjs +0 -6
  324. package/dist/email-auth-DOi6yOt3.mjs +0 -6
  325. package/dist/email-routing-WcSPt22u.mjs +0 -45
  326. package/dist/email-security-BXu3OGay.mjs +0 -158
  327. package/dist/email-sending-B9zTlIjt.mjs +0 -47
  328. package/dist/error-sanitization-DE_zSrXw.mjs +0 -2
  329. package/dist/error-sanitization-DOCQ9Ykh.mjs +0 -2
  330. package/dist/errors-_sob7Ihu.mjs +0 -3
  331. package/dist/fieldExtractors-B37m2lKW.mjs +0 -9
  332. package/dist/firewall-CRtYO0Ha.mjs +0 -36
  333. package/dist/flagship-DvTFZSay.mjs +0 -28
  334. package/dist/fraud-uSyibsit.mjs +0 -22
  335. package/dist/google-tag-gateway-BFXiiokq.mjs +0 -6
  336. package/dist/health-CTaCeVyC.mjs +0 -2
  337. package/dist/healthchecks-27u7b7Jb.mjs +0 -22
  338. package/dist/hyperdrive-BzJvPdu6.mjs +0 -37
  339. package/dist/iam-Dl3cU9GI.mjs +0 -52
  340. package/dist/images-C2OkI1j7.mjs +0 -71
  341. package/dist/intel-DoB1g_K7.mjs +0 -76
  342. package/dist/internal-BYS7hO8c.mjs +0 -2
  343. package/dist/ips-BRt68epr.mjs +0 -4
  344. package/dist/k2-_eq5ZY2t.mjs +0 -11
  345. package/dist/keyless-certificates-DaO2yqYu.mjs +0 -13
  346. package/dist/keys-7BQ3Zq6Y.mjs +0 -4
  347. package/dist/kv-BTYCXKML.mjs +0 -15
  348. package/dist/leaked-credential-checks-CPHOK_dE.mjs +0 -18
  349. package/dist/live-BJE_YWE1.mjs +0 -2
  350. package/dist/local-BundUuDT.mjs +0 -2
  351. package/dist/login-BBYC_BtH.mjs +0 -2
  352. package/dist/login-D2uoWhWh.mjs +0 -5
  353. package/dist/logo-matches-Bc1DQ4-g.mjs +0 -6
  354. package/dist/logos-X5B8z7Iv.mjs +0 -7
  355. package/dist/logpush-C2ENi1et.mjs +0 -46
  356. package/dist/logs-BKDz7kBW.mjs +0 -36
  357. package/dist/magic-cloud-networking-B60Gld8A.mjs +0 -71
  358. package/dist/magic-network-monitoring-CxXI3Y-H.mjs +0 -36
  359. package/dist/magic-transit-ZCSaCbl8.mjs +0 -386
  360. package/dist/managed-defense-DrxMb7xi.mjs +0 -18
  361. package/dist/managed-transforms-AI7KrRU1.mjs +0 -9
  362. package/dist/matches-rPMLS3Ip.mjs +0 -6
  363. package/dist/mcp-DXUMvEWt.mjs +0 -32
  364. package/dist/mesh-MmBCQ37q.mjs +0 -26
  365. package/dist/monetization-DQE5VtUO.mjs +0 -20
  366. package/dist/mtls-certificates-DwkEb-Hy.mjs +0 -13
  367. package/dist/network-BcfobxQY.mjs +0 -50
  368. package/dist/network-interconnects-BU3tN_Ab.mjs +0 -72
  369. package/dist/o11y-BBv7nedp.mjs +0 -93
  370. package/dist/oauth-BUr8bPwo.mjs +0 -9
  371. package/dist/oauth-clients-qWVImhHE.mjs +0 -16
  372. package/dist/oauth-scopes-CdeIgJIx.mjs +0 -4
  373. package/dist/organization-CJeOVWH7.mjs +0 -71
  374. package/dist/organizations-BpfoqZcG.mjs +0 -4
  375. package/dist/origin-ca-certificates-Bimf07RF.mjs +0 -11
  376. package/dist/origin-post-quantum-encryption-CM-If38w.mjs +0 -6
  377. package/dist/origin-tls-client-auth-BPwYPhc9.mjs +0 -30
  378. package/dist/output-BOe-3AQG.mjs +0 -2
  379. package/dist/page-rules-DOeekMrj.mjs +0 -39
  380. package/dist/pay-per-crawl-qJpseNNx.mjs +0 -38
  381. package/dist/pay-per-use-C1MWKJ4O.mjs +0 -33
  382. package/dist/pipelines-rCwXQw6S.mjs +0 -44
  383. package/dist/precursor-Bk8Pp6jT.mjs +0 -4
  384. package/dist/previews-BEheHO3T.mjs +0 -4
  385. package/dist/progress-CQqDtgmF.mjs +0 -2
  386. package/dist/prompt-C8FyienX.mjs +0 -3
  387. package/dist/queries-DJ8looyq.mjs +0 -9
  388. package/dist/queues-BBH9Q-Tt.mjs +0 -57
  389. package/dist/r2-CdJKpP2w.mjs +0 -128
  390. package/dist/r2-data-catalog-BRo-Rx2I.mjs +0 -2
  391. package/dist/rate-limit-analytics-BiRyU0Xd.mjs +0 -2
  392. package/dist/rate-limits-Cr2zpncO.mjs +0 -2
  393. package/dist/raw-fetch-DbXN3SlE.mjs +0 -2
  394. package/dist/ready-B3pLxnjc.mjs +0 -2
  395. package/dist/realtime-onrXppzh.mjs +0 -172
  396. package/dist/recent-submissions-JLOvuZq-.mjs +0 -2
  397. package/dist/refute-Dp3VodMn.mjs +0 -2
  398. package/dist/registrar-CbEBc5IE.mjs +0 -43
  399. package/dist/registrar-sandbox-BJhn1HFT.mjs +0 -56
  400. package/dist/reporting-bXZY6obP.mjs +0 -14
  401. package/dist/request-tracers-CihskC2A.mjs +0 -4
  402. package/dist/resolve-CaTBV-c6.mjs +0 -2
  403. package/dist/resolve-DCGSzUDQ.mjs +0 -2
  404. package/dist/resource-sharing-DDqcCHVs.mjs +0 -40
  405. package/dist/resource-tagging-D63RpBce.mjs +0 -4
  406. package/dist/rules-CAW0-Wde.mjs +0 -18
  407. package/dist/rulesets-CPir63Qc.mjs +0 -37
  408. package/dist/rum-BfwTcuup.mjs +0 -30
  409. package/dist/run-DEynXvCc.mjs +0 -2
  410. package/dist/scan-logo-3Zr6CDJB.mjs +0 -2
  411. package/dist/scan-page-CxeudOzj.mjs +0 -2
  412. package/dist/scim-CtZ1FeQE.mjs +0 -18
  413. package/dist/search-B_P5ZTQj.mjs +0 -2
  414. package/dist/secrets-store-BIuBYUJT.mjs +0 -24
  415. package/dist/security-insights-DfUus0bs.mjs +0 -40
  416. package/dist/security-txt-CgZOsAIZ.mjs +0 -9
  417. package/dist/session-BcM8Vyyx.mjs +0 -2
  418. package/dist/shared-CpS23WwR.mjs +0 -2
  419. package/dist/signed-url-D5RwvrQq.mjs +0 -2
  420. package/dist/smart-shield-ClgB7r-9.mjs +0 -24
  421. package/dist/snippets-DLO3iFAg.mjs +0 -20
  422. package/dist/speed-DX5X2EIR.mjs +0 -24
  423. package/dist/sql-CF044HDW.mjs +0 -4
  424. package/dist/src-BMATTZU_.mjs +0 -125
  425. package/dist/ssl-CM-rChEC.mjs +0 -45
  426. package/dist/startup-profile-D662WI9s.mjs +0 -2
  427. package/dist/state-D7uNYnoi.mjs +0 -2
  428. package/dist/stream-5EmUOQvy.mjs +0 -102
  429. package/dist/submission-info-_t78q2OE.mjs +0 -2
  430. package/dist/submit-lEAaRSMR.mjs +0 -4
  431. package/dist/telemetry-0Y5hAtCX.mjs +0 -2
  432. package/dist/tenant-DnI7QziH.mjs +0 -10
  433. package/dist/tenant-custom-nameservers-MR0dlcGm.mjs +0 -9
  434. package/dist/theme-CQ_TYifs.mjs +0 -6
  435. package/dist/total-queries-CPrKEciQ.mjs +0 -2
  436. package/dist/tracked-domains-CTRItgFT.mjs +0 -2
  437. package/dist/tunnels-NzYpsfi_.mjs +0 -29
  438. package/dist/turnstile-M7sKCEz3.mjs +0 -33
  439. package/dist/ui-YmjF66Ct.mjs +0 -5
  440. package/dist/update-check-aTutXNRd.mjs +0 -2
  441. package/dist/url-info-Dos9VOXV.mjs +0 -4
  442. package/dist/url-normalization-CZbFOq_v.mjs +0 -9
  443. package/dist/url-scanner-B7quLPGW.mjs +0 -16
  444. package/dist/values-D-rrZrDa.mjs +0 -4
  445. package/dist/vectorize-D2tf_oA8.mjs +0 -32
  446. package/dist/verify-5KcvRk-q.mjs +0 -2
  447. package/dist/version-BGnqDvNR.mjs +0 -2
  448. package/dist/web-assets-DQAfvPT9.mjs +0 -64
  449. package/dist/web3-MI0GQDnu.mjs +0 -28
  450. package/dist/workers-By6Pf8fv.mjs +0 -40
  451. package/dist/workers-builds-6YsWsCmC.mjs +0 -14
  452. package/dist/workers-for-platforms-DL8fC1qR.mjs +0 -40
  453. package/dist/workers-vpc-BYx6sbgd.mjs +0 -13
  454. package/dist/workflows-ByQLnV0E.mjs +0 -52
  455. package/dist/zaraz-CgbpmA85.mjs +0 -22
  456. package/dist/zero-trust-CpjTkkWt.mjs +0 -837
  457. package/dist/zone-DnKIe6po.mjs +0 -4
  458. package/dist/zones--5ZzsDmQ.mjs +0 -124
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{n}from"./auth-eVI_UEt8.mjs";import{a as r,t as i}from"./context-B-vEsyrK.mjs";import{t as a}from"./output-Co4xdFf6.mjs";import{t as o}from"./dry-run-C2KjGX10.mjs";import{t as s}from"./progress-R-1tIuep.mjs";import{t as c}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as l,t as u}from"./body-parser-DkHKPkJ7.mjs";import{n as d}from"./input-validation-D7z60HJH.mjs";import{a as f,i as p,n as m}from"./prompt-dgLm0iFJ.mjs";var h={method:`POST`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,body:`json`};function g(e){return e.usage(`$0 workers-vpc services create
3
+
4
+ Creates a new Workers VPC connectivity service in the account.`).option(`host-ipv4`,{type:`string`,description:`The host.ipv4 field`}).option(`host-network-tunnel-id`,{type:`string`,description:`The host.network.tunnel_id field`}).option(`host-ipv6`,{type:`string`,description:`The host.ipv6 field`}).option(`host-hostname`,{type:`string`,description:`The host.hostname field`}).option(`host-resolver-network-resolver-ips`,{type:`string`,array:!0,description:`The host.resolver_network.resolver_ips field`}).option(`host-resolver-network-tunnel-id`,{type:`string`,description:`The host.resolver_network.tunnel_id field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tls-settings-cert-verification-mode`,{type:`string`,description:'TLS certificate verification mode for the connection to the origin.\n\n- `"verify_full"` — verify certificate chain and hostname (default)\n- `"verify_ca"` — verify certificate chain only, skip hostname check\n- `"disabled"` — do not verify the server certificate at all'}).option(`type`,{type:`string`,description:`The type field`,choices:[`tcp`,`http`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`http-port`,{type:`number`,description:`The http_port field`}).option(`https-port`,{type:`number`,description:`The https_port field`}).option(`app-protocol`,{type:`string`,description:`The app_protocol field`,choices:[`postgresql`,`mysql`]}).coerce(`app-protocol`,e=>d(e,`app-protocol`,`text`)).option(`tcp-port`,{type:`number`,description:`The tcp_port field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`host-ipv4`,[`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-ipv6`,[`host-ipv4`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-hostname`,[`host-ipv4`,`host-ipv6`]).conflicts(`host-resolver-network-resolver-ips`,[`host-ipv4`,`host-ipv6`]).conflicts(`http-port`,[`app-protocol`,`tcp-port`]).conflicts(`https-port`,[`app-protocol`,`tcp-port`]).conflicts(`app-protocol`,[`http-port`,`https-port`]).conflicts(`tcp-port`,[`http-port`,`https-port`]).check(e=>{if([`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`].some(t=>e[t]!==void 0)){let t=[`host-network-tunnel-id`,`host-resolver-network-tunnel-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --host-* flag is set`)}return!0}).check(e=>{if([`tls-settings-cert-verification-mode`].some(t=>e[t]!==void 0)){let t=[`tls-settings-cert-verification-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tls_settings-* flag is set`)}return!0})}const _={command:`create`,describe:`Create Workers VPC connectivity service`,builder:g,handler:async e=>c({command:`workers-vpc services create`,classification:{safeFlags:[`type`,`app-protocol`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services`,pathParams:{},bodyKind:`json`,body:e.body===void 0?u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Creating`,async()=>c.send(h,{body:t,account_id:m}));a(n,{successLabel:`Created`});return}e.name===void 0&&(e.name=await f(`name`,`The name field`)),e.type===void 0&&(e.type=await p(`type`,`The type field`,[`tcp`,`http`]));let g=u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}),_=await s(`Creating`,async()=>c.send(h,{body:g,account_id:m}));a(_,{successLabel:`Created`})})};var v={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`,response:!1};function y(e){return e.usage(`$0 workers-vpc services delete <service-id>
5
+
6
+ Removes a single Workers VPC connectivity service by its ID. Any Worker bindings referencing this service will stop working.`).positional(`service-id`,{type:`string`,description:`Service 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 b={command:`delete <service-id>`,describe:`Delete Workers VPC connectivity service`,builder:y,handler:async e=>c({command:`workers-vpc services delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();if(e.accountId=l,!await m({force:!!e.force,message:`This operation permanently deletes a Workers VPC connectivity service.`})){process.stderr.write(`Aborted.
7
+ `);return}let u=await s(`Deleting`,async()=>c.send(v,{account_id:l,service_id:e[`service-id`]}));a(u,{successLabel:`Deleted`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`};function S(e){return e.usage(`$0 workers-vpc services get <service-id>
8
+
9
+ Fetches a single Workers VPC connectivity service by its ID.`).positional(`service-id`,{type:`string`,description:`Service ID`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <service-id>`,describe:`Get Workers VPC connectivity service`,builder:S,handler:async e=>c({command:`workers-vpc services get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`none`});return}let c=await n(e),l=e.local?t:await i();e.accountId=l;let u=await s(`Loading`,async()=>c.send(x,{account_id:l,service_id:e[`service-id`]}));a(u,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services`,query:[`type`,`page`,`per_page`]};function T(e){return e.usage(`$0 workers-vpc services list
10
+
11
+ Lists the Workers VPC connectivity services in the account.`).option(`type`,{type:`string`,description:`Type`,choices:[`tcp`,`http`]}).option(`page`,{type:`number`,description:`Current page in the response`}).option(`per-page`,{type:`number`,description:`Max amount of entries returned per page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List Workers VPC connectivity services`,builder:T,handler:async e=>c({command:`workers-vpc services list`,classification:{safeFlags:[`type`,`dry-run`]}},e,async()=>{let c={type:e.type,page:e.page,per_page:e[`per-page`]};if(e.dryRun){let e=await r();o({command:`cf workers-vpc services list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/connectivity/directory/services`,pathParams:{},query:c,bodyKind:`none`});return}let l=await n(e),u=e.local?t:await i();e.accountId=u;let d=await s(`Loading`,async()=>l.send(w,{account_id:u,...c}));a(d,{successLabel:`Loaded`})})};var D={method:`PUT`,path:t=>e`/accounts/${t.account_id}/connectivity/directory/services/${t.service_id}`,body:`json`};function O(e){return e.usage(`$0 workers-vpc services update <service-id>
12
+
13
+ Updates an existing Workers VPC connectivity service by its ID.`).positional(`service-id`,{type:`string`,description:`Service ID`,demandOption:!0}).option(`host-ipv4`,{type:`string`,description:`The host.ipv4 field`}).option(`host-network-tunnel-id`,{type:`string`,description:`The host.network.tunnel_id field`}).option(`host-ipv6`,{type:`string`,description:`The host.ipv6 field`}).option(`host-hostname`,{type:`string`,description:`The host.hostname field`}).option(`host-resolver-network-resolver-ips`,{type:`string`,array:!0,description:`The host.resolver_network.resolver_ips field`}).option(`host-resolver-network-tunnel-id`,{type:`string`,description:`The host.resolver_network.tunnel_id field`}).option(`name`,{type:`string`,description:`The name field`}).option(`tls-settings-cert-verification-mode`,{type:`string`,description:'TLS certificate verification mode for the connection to the origin.\n\n- `"verify_full"` — verify certificate chain and hostname (default)\n- `"verify_ca"` — verify certificate chain only, skip hostname check\n- `"disabled"` — do not verify the server certificate at all'}).option(`type`,{type:`string`,description:`The type field`,choices:[`tcp`,`http`]}).coerce(`type`,e=>d(e,`type`,`text`)).option(`http-port`,{type:`number`,description:`The http_port field`}).option(`https-port`,{type:`number`,description:`The https_port field`}).option(`app-protocol`,{type:`string`,description:`The app_protocol field`,choices:[`postgresql`,`mysql`]}).coerce(`app-protocol`,e=>d(e,`app-protocol`,`text`)).option(`tcp-port`,{type:`number`,description:`The tcp_port field`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`}).conflicts(`host-ipv4`,[`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-ipv6`,[`host-ipv4`,`host-hostname`,`host-resolver-network-resolver-ips`]).conflicts(`host-hostname`,[`host-ipv4`,`host-ipv6`]).conflicts(`host-resolver-network-resolver-ips`,[`host-ipv4`,`host-ipv6`]).conflicts(`http-port`,[`app-protocol`,`tcp-port`]).conflicts(`https-port`,[`app-protocol`,`tcp-port`]).conflicts(`app-protocol`,[`http-port`,`https-port`]).conflicts(`tcp-port`,[`http-port`,`https-port`]).check(e=>{if([`host-ipv4`,`host-network-tunnel-id`,`host-ipv6`,`host-hostname`,`host-resolver-network-resolver-ips`,`host-resolver-network-tunnel-id`].some(t=>e[t]!==void 0)){let t=[`host-network-tunnel-id`,`host-resolver-network-tunnel-id`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --host-* flag is set`)}return!0}).check(e=>{if([`tls-settings-cert-verification-mode`].some(t=>e[t]!==void 0)){let t=[`tls-settings-cert-verification-mode`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --tls_settings-* flag is set`)}return!0})}const k={command:`update <service-id>`,describe:`Update Workers VPC connectivity service`,builder:O,handler:async e=>c({command:`workers-vpc services update`,classification:{safeFlags:[`type`,`app-protocol`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await r();o({command:`cf workers-vpc services update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/connectivity/directory/services/${e[`service-id`]==null?`<service-id>`:encodeURIComponent(String(e[`service-id`]))}`,pathParams:{"service-id":String(e[`service-id`]??``)},bodyKind:`json`,body:e.body===void 0?u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}):l(e.body)});return}let c=await n(e),m=e.local?t:await i();if(e.accountId=m,e.body){let t=l(e.body),n=await s(`Updating`,async()=>c.send(D,{body:t,account_id:m,service_id:e[`service-id`]}));a(n,{successLabel:`Updated`});return}e.name===void 0&&(e.name=await f(`name`,`The name field`)),e.type===void 0&&(e.type=await p(`type`,`The type field`,[`tcp`,`http`]));let h=u({host:{ipv4:d(e[`host-ipv4`],`host-ipv4`,`text`),network:{tunnel_id:d(e[`host-network-tunnel-id`],`host-network-tunnel-id`,`text`)},ipv6:d(e[`host-ipv6`],`host-ipv6`,`text`),hostname:d(e[`host-hostname`],`host-hostname`,`text`),resolver_network:{resolver_ips:e[`host-resolver-network-resolver-ips`],tunnel_id:d(e[`host-resolver-network-tunnel-id`],`host-resolver-network-tunnel-id`,`text`)}},name:d(e.name,`name`,`text`),tls_settings:{cert_verification_mode:d(e[`tls-settings-cert-verification-mode`],`tls-settings-cert-verification-mode`,`text`)},type:e.type,http_port:e[`http-port`],https_port:e[`https-port`],app_protocol:e[`app-protocol`],tcp_port:e[`tcp-port`]}),g=await s(`Updating`,async()=>c.send(D,{body:h,account_id:m,service_id:e[`service-id`]}));a(g,{successLabel:`Updated`})})},A={command:`services`,describe:`Operations for services`,builder:e=>e.command(_).command(b).command(C).command(E).command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},j={command:`workers-vpc`,describe:`workers-vpc`,builder:e=>e.command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{j as default};
@@ -0,0 +1,52 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{t}from"./local-Dil4fTWX.mjs";import{i as n,n as r}from"./auth-eVI_UEt8.mjs";import{a as i,t as a}from"./context-B-vEsyrK.mjs";import{t as o}from"./output-Co4xdFf6.mjs";import{t as s}from"./dry-run-C2KjGX10.mjs";import{t as c}from"./progress-R-1tIuep.mjs";import{t as l}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as u,t as d}from"./body-parser-DkHKPkJ7.mjs";import{n as f}from"./input-validation-D7z60HJH.mjs";import{a as p,i as m,n as h}from"./prompt-dgLm0iFJ.mjs";import{n as g,t as ee}from"./raw-fetch-BapeoreV.mjs";var _={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,409:`ConflictError`}};function v(e){return e.usage(`$0 workflows concurrency create
3
+
4
+ Creates an account-scoped concurrency key. Limits count steps still in flight from a previously deleted key of the same name.`).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`name`,{type:`string`,description:`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`}).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 te={command:`create`,describe:`Create a concurrency key`,builder:v,handler:async e=>l({command:`workflows concurrency create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency`,pathParams:{},bodyKind:`json`,body:e.body===void 0?d({limit:e.limit,name:f(e.name,`name`,`text`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(_,{body:t,account_id:l}));o(r,{successLabel:`Created`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);e.name===void 0&&(e.name=await p(`name`,`Unique (per account) name of the concurrency key. Referenced by workflow steps via step config.`));let m=d({limit:e.limit,name:f(e.name,`name`,`text`)}),h=await c(`Creating`,async()=>n.send(_,{body:m,account_id:l}));o(h,{successLabel:`Created`})})};var ne={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`,409:`ConflictError`}};function re(e){return e.usage(`$0 workflows concurrency delete <key-id>
5
+
6
+ Deletes a concurrency key. Fails while any workflow’s latest version references the key. The key disappears immediately, but steps already holding it keep their slots until they finish and still count against a key re-created with the same name.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,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 ie={command:`delete <key-id>`,describe:`Delete a concurrency key`,builder:re,handler:async e=>l({command:`workflows concurrency delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
7
+ `);return}let u=await c(`Deleting`,async()=>n.send(ne,{account_id:l,key_id:e[`key-id`]}));o(u,{successLabel:`Deleted`})})};var y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,body:`json`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function ae(e){return e.usage(`$0 workflows concurrency edit <key-id>
8
+
9
+ Updates the limit of a concurrency key. Applies to instances that start after the change.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,demandOption:!0}).option(`limit`,{type:`number`,description:`Maximum number of steps that may concurrently hold this key.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const b={command:`edit <key-id>`,describe:`Update a concurrency key`,builder:ae,handler:async e=>l({command:`workflows concurrency edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({limit:e.limit}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(y,{body:t,account_id:l,key_id:e[`key-id`]}));o(r,{successLabel:`Updated`});return}if(e.limit===void 0)throw Error(`--limit is required (or pass --body with this field set).`);let f=d({limit:e.limit}),p=await c(`Updating`,async()=>n.send(y,{body:f,account_id:l,key_id:e[`key-id`]}));o(p,{successLabel:`Updated`})})};var x={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency/${t.key_id}`,errors:{400:`BadRequestError`,403:`ForbiddenError`,404:`NotFoundError`}};function S(e){return e.usage(`$0 workflows concurrency get <key-id>
10
+
11
+ Retrieves a concurrency key and the workflows whose latest version references it.`).positional(`key-id`,{type:`string`,description:`Identifier of the concurrency key.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const C={command:`get <key-id>`,describe:`Get concurrency key details`,builder:S,handler:async e=>l({command:`workflows concurrency get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows concurrency get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/concurrency/${e[`key-id`]==null?`<key-id>`:encodeURIComponent(String(e[`key-id`]))}`,pathParams:{"key-id":String(e[`key-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(x,{account_id:l,key_id:e[`key-id`]}));o(u,{successLabel:`Loaded`})})};var w={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/concurrency`,query:[`per_page`,`page`],errors:{400:`BadRequestError`,403:`ForbiddenError`}};function T(e){return e.usage(`$0 workflows concurrency list
12
+
13
+ Lists the account-scoped concurrency keys.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const E={command:`list`,describe:`List concurrency keys`,builder:T,handler:async e=>l({command:`workflows concurrency list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page};if(e.dryRun){let e=await i();s({command:`cf workflows concurrency list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workflows/concurrency`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(w,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})},D={command:`concurrency`,describe:`Operations for concurrency`,builder:e=>e.command(te).command(ie).command(b).command(C).command(E).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var O={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function k(e){return e.usage(`$0 workflows delete <workflow-name>
14
+
15
+ Deletes a Workflow. This only deletes the Workflow and does not delete or modify any Worker associated to this Workflow or bounded to it.`).positional(`workflow-name`,{type:`string`,description:`Workflow 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 A={command:`delete <workflow-name>`,describe:`Deletes a Workflow`,builder:k,handler:async e=>l({command:`workflows delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force,message:`This operation permanently deletes the Workflow.`})){process.stderr.write(`Aborted.
16
+ `);return}let u=await c(`Deleting`,async()=>n.send(O,{account_id:l,workflow_name:e[`workflow-name`]}));o(u,{successLabel:`Deleted`})})};var j={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function M(e){return e.usage(`$0 workflows get <workflow-name>
17
+
18
+ Retrieves configuration and metadata for a specific workflow.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`get <workflow-name>`,describe:`Get Workflow details`,builder:M,handler:async e=>l({command:`workflows get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(j,{account_id:l,workflow_name:e[`workflow-name`]}));o(u,{successLabel:`Loaded`})})};function P(e){return e.usage(`$0 workflows instances batch create <workflow-name>
19
+
20
+ Creates multiple workflow instances in a single batch operation.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Raw JSON request body (bypasses individual flags)`})}const F={command:`create <workflow-name>`,describe:`Batch create new Workflow instances`,builder:P,handler:async e=>l({command:`workflows instances batch create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances batch create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/batch`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let l=await r(e),d=e.local?t:await a();if(e.accountId=d,e.body){let t=u(e.body);if(Array.isArray(t)&&t.length>100){let r=Math.ceil(t.length/100),i=null;for(let a=0;a<t.length;a+=100){let o=t.slice(a,a+100),s=Math.floor(a/100)+1;i=await c(`Creating: batch ${s}/${r}`,async()=>n(l,`POST`,`/accounts/${d}/workflows/${encodeURIComponent(String(e[`workflow-name`]))}/instances/batch`,{body:o}))}o(i,{successLabel:`Created`});return}let r=await c(`Creating`,async()=>n(l,`POST`,`/accounts/${d}/workflows/${encodeURIComponent(String(e[`workflow-name`]))}/instances/batch`,{body:t}));o(r,{successLabel:`Created`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},I={command:`batch`,describe:`Operations for instances.batch`,builder:e=>e.command(F).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var L={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function R(e){return e.usage(`$0 workflows instances create <workflow-name>
21
+
22
+ Creates a new instance of a workflow, starting its execution.`).positional(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`instance-id`,{type:`string`,description:"The system reserves IDs that consist of the `cf_` prefix and exactly 64 lowercase hexadecimal characters."}).option(`location-hint`,{type:`string`,description:`The location_hint field`,choices:[`wnam`,`weur`,`enam`,`eeur`,`apac`,`apac-ne`,`apac-se`,`oc`,`sam`,`afr`,`me`]}).coerce(`location-hint`,e=>f(e,`location-hint`,`text`)).option(`params`,{type:`string`,description:`JSON-encoded event payload passed into the new instance.`}).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 z={command:`create <workflow-name>`,describe:`Create a new workflow instance`,builder:R,handler:async e=>l({command:`workflows instances create`,classification:{safeFlags:[`location-hint`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},bodyKind:`json`,body:e.body===void 0?d({instance_id:f(e[`instance-id`],`instance-id`,`text`),location_hint:e[`location-hint`],params:f(e.params,`params`,`json`)}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Creating`,async()=>n.send(L,{body:t,account_id:l,workflow_name:e[`workflow-name`]}));o(r,{successLabel:`Created`});return}let p=d({instance_id:f(e[`instance-id`],`instance-id`,`text`),location_hint:e[`location-hint`],params:f(e.params,`params`,`json`)}),m=await c(`Creating`,async()=>n.send(L,{body:p,account_id:l,workflow_name:e[`workflow-name`]}));o(m,{successLabel:`Created`})})};var B={method:`DELETE`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}`,errors:{404:`NotFoundError`}};function V(e){return e.usage(`$0 workflows instances delete <instance-id>
23
+
24
+ Deletes a workflow instance and its stored state.`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow 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 H={command:`delete <instance-id>`,describe:`Delete a workflow instance`,builder:V,handler:async e=>l({command:`workflows instances delete`,classification:{safeFlags:[`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances delete`,method:`DELETE`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force})){process.stderr.write(`Aborted.
25
+ `);return}let u=await c(`Deleting`,async()=>n.send(B,{account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(u,{successLabel:`Deleted`})})};var U={method:`POST`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/events/${t.event_type}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function W(e){return e.usage(`$0 workflows instances events send <event-type>
26
+
27
+ Sends an event to a running workflow instance to trigger state transitions.`).positional(`event-type`,{type:`string`,description:`Event type`,demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const G={command:`send <event-type>`,describe:`Send event to instance`,builder:W,handler:async e=>l({command:`workflows instances events send`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances events send`,method:`POST`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/events/${e[`event-type`]==null?`<event-type>`:encodeURIComponent(String(e[`event-type`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``),"event-type":String(e[`event-type`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Creating`,async()=>n.send(U,{account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`],event_type:e[`event-type`]}));o(u,{successLabel:`Created`})})},K={command:`events`,describe:`Operations for instances.events`,builder:e=>e.command(G).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var q={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}`,query:[`simple`,`order`],errors:{400:`BadRequestError`,404:`NotFoundError`}};function J(e){return e.usage(`$0 workflows instances get <instance-id>
28
+
29
+ Retrieves logs and execution status for a specific workflow instance.`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`simple`,{type:`string`,description:`When true, omits step details and returns only metadata with step_count.`,choices:[`true`,`false`]}).option(`order`,{type:`string`,description:`Step ordering: "asc" (default, oldest first) or "desc" (newest first).`,choices:[`asc`,`desc`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const oe={command:`get <instance-id>`,describe:`Get logs and status from instance`,builder:J,handler:async e=>l({command:`workflows instances get`,classification:{safeFlags:[`simple`,`order`,`dry-run`]}},e,async()=>{let n={simple:e.simple,order:e.order};if(e.dryRun){let t=await i();s({command:`cf workflows instances get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(q,{account_id:u,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`],...n}));o(d,{successLabel:`Loaded`})})};var se={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances`,query:[`page`,`per_page`,`cursor`,`direction`,`status`,`date_start`,`date_end`],errors:{400:`BadRequestError`,404:`NotFoundError`}};function ce(e){return e.usage(`$0 workflows instances list
30
+
31
+ Lists all instances of a workflow with their execution status.`).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`page`,{type:`number`,description:"Deprecated: use `cursor` for pagination instead."}).option(`per-page`,{type:`number`,description:`Per page`}).option(`cursor`,{type:`string`,description:"Opaque token for cursor-based pagination. Mutually exclusive with `page`."}).option(`direction`,{type:`string`,description:`Defines the direction for cursor-based pagination.`,choices:[`asc`,`desc`]}).option(`status`,{type:`string`,description:`Status`,choices:[`queued`,`running`,`paused`,`errored`,`terminated`,`complete`,`waitingForPause`,`waiting`,`rollingBack`]}).option(`start`,{type:`string`,description:`Accepts ISO 8601 with no timezone offsets and in UTC.`}).option(`end`,{type:`string`,description:`Accepts ISO 8601 with no timezone offsets and in UTC.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const le={command:`list`,describe:`List of workflow instances`,builder:ce,handler:async e=>l({command:`workflows instances list`,classification:{safeFlags:[`direction`,`status`,`dry-run`]}},e,async()=>{let n={page:e.page,per_page:e[`per-page`],cursor:e.cursor,direction:e.direction,status:e.status,date_start:e.start,date_end:e.end};if(e.dryRun){let t=await i();s({command:`cf workflows instances list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(se,{account_id:u,workflow_name:e[`workflow-name`],...n}));o(d,{successLabel:`Loaded`})})};var Y={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/status`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,409:`ConflictError`}};function ue(e){return e.usage(`$0 workflows instances pause <instance-id>
32
+
33
+ Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>f(e,`from-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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const de={command:`pause <instance-id>`,describe:`Change status of instance`,builder:ue,handler:async e=>l({command:`workflows instances pause`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances pause`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(Y,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await m(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let p=d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),h=await c(`Updating`,async()=>n.send(Y,{body:p,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(h,{successLabel:`Updated`})})};var X={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/status`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,409:`ConflictError`}};function fe(e){return e.usage(`$0 workflows instances restart <instance-id>
34
+
35
+ Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>f(e,`from-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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const pe={command:`restart <instance-id>`,describe:`Change status of instance`,builder:fe,handler:async e=>l({command:`workflows instances restart`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances restart`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(X,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await m(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let p=d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),h=await c(`Updating`,async()=>n.send(X,{body:p,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(h,{successLabel:`Updated`})})};var Z={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/status`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,409:`ConflictError`}};function me(e){return e.usage(`$0 workflows instances resume <instance-id>
36
+
37
+ Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>f(e,`from-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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const he={command:`resume <instance-id>`,describe:`Change status of instance`,builder:me,handler:async e=>l({command:`workflows instances resume`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances resume`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(Z,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Updated`});return}e.status===void 0&&(e.status=await m(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let p=d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),h=await c(`Updating`,async()=>n.send(Z,{body:p,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(h,{successLabel:`Updated`})})};function ge(e){return e.usage("$0 workflows instances step get <instance-id>\n\nRetrieves the full, untruncated output for a specific step on a workflow instance. Returns a flat status-shaped JSON body with step `status` ('running' | 'waiting' | 'complete' | 'errored'), `error` (nullable), and `output` (the step value, or null while running/waiting/errored). When the step returned a ReadableStream from step.do, the response is served as 'application/octet-stream' with the raw bytes as the body instead of JSON. A `status='running'` response with non-null `error` indicates the step is currently retrying after a prior attempt failed.").positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`name`,{type:`string`,description:`Exact step name from the instance logs response, including the generated counter suffix.`,demandOption:!0}).option(`type`,{type:`string`,description:`Step type to disambiguate step.do and waitForEvent entries that share the same name.`,choices:[`step`,`waitForEvent`],demandOption:!0}).option(`attempt`,{type:`number`,description:`Specific attempt number to retrieve output or error for.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`text`,{type:`boolean`,description:`Decode the response body as UTF-8 text instead of writing raw bytes`,default:!1})}const _e={command:`get <instance-id>`,describe:`Get full step output from instance`,builder:ge,handler:async e=>l({command:`workflows instances step get`,classification:{safeFlags:[`type`,`dry-run`,`text`]}},e,async()=>{let n={name:e.name,type:e.type,attempt:e.attempt};if(e.dryRun){let t=await i();s({command:`cf workflows instances step get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/step`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},query:n,bodyKind:`none`});return}await r(e);let o=e.local?t:await a();e.accountId=o;let l=new URLSearchParams(Object.entries(n).filter(([,e])=>e!==void 0).map(([e,t])=>[e,String(t)])).toString(),u=await c(`Loading`,async()=>ee(`/accounts/${o}/workflows/${encodeURIComponent(String(e[`workflow-name`]))}/instances/${encodeURIComponent(String(e[`instance-id`]))}/step${l?`?`+l:``}`,{method:`GET`,local:e.local===!0,persistTo:e.persistTo}));g(e.text===!0?u.toString(`utf-8`):u)})},ve={command:`step`,describe:`Operations for instances.step`,builder:e=>e.command(_e).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Q={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/instances/${t.instance_id}/status`,body:`json`,errors:{400:`BadRequestError`,404:`NotFoundError`,409:`ConflictError`}};function ye(e){return e.usage(`$0 workflows instances terminate <instance-id>
38
+
39
+ Changes the execution status of a workflow instance (e.g., pause, resume, terminate).`).positional(`instance-id`,{type:`string`,description:"Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100 characters); cron-triggered instances can use a longer, system-generated id derived from the cron expression.",demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`status`,{type:`string`,description:`The status field`,choices:[`pause`,`resume`,`terminate`,`restart`]}).coerce(`status`,e=>f(e,`status`,`text`)).option(`rollback`,{type:`boolean`,description:`Run rollback before terminating.`}).option(`from-count`,{type:`number`,description:`The from.count field`}).option(`from-name`,{type:`string`,description:`The from.name field`}).option(`from-type`,{type:`string`,description:`The from.type field`,choices:[`do`,`sleep`,`waitForEvent`]}).coerce(`from-type`,e=>f(e,`from-type`,`text`)).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)`}).conflicts(`rollback`,[`from-count`,`from-name`,`from-type`]).conflicts(`from-count`,[`rollback`]).conflicts(`from-name`,[`rollback`]).conflicts(`from-type`,[`rollback`]).check(e=>{if([`from-count`,`from-name`,`from-type`].some(t=>e[t]!==void 0)){let t={"from-name":[`rollback`]},n=[`from-name`].filter(n=>e[n]===void 0&&!(t[n]??[]).some(t=>e[t]!==void 0));if(n.length>0)throw Error(`${n.map(e=>`--`+e).join(`, `)} ${n.length===1?`is`:`are`} required when any --from-* flag is set`)}return!0})}const be={command:`terminate <instance-id>`,describe:`Change status of instance`,builder:ye,handler:async e=>l({command:`workflows instances terminate`,classification:{safeFlags:[`status`,`rollback`,`from-type`,`dry-run`,`force`],shortFlagAliases:{f:{canonical:`force`,type:`boolean`}}}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows instances terminate`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/instances/${e[`instance-id`]==null?`<instance-id>`:encodeURIComponent(String(e[`instance-id`]))}/status`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"instance-id":String(e[`instance-id`]??``)},bodyKind:`json`,body:e.body===void 0?d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}):u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,!await h({force:!!e.force,message:`This operation terminates the running Workflow instance.`})){process.stderr.write(`Aborted.
40
+ `);return}if(e.body){let t=u(e.body),r=await c(`Deleting`,async()=>n.send(Q,{body:t,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(r,{successLabel:`Deleted`});return}e.status===void 0&&(e.status=await m(`status`,`The status field`,[`pause`,`resume`,`terminate`,`restart`]));let p=d({status:e.status,rollback:e.rollback,from:{count:e[`from-count`],name:f(e[`from-name`],`from-name`,`text`),type:e[`from-type`]}}),g=await c(`Deleting`,async()=>n.send(Q,{body:p,account_id:l,workflow_name:e[`workflow-name`],instance_id:e[`instance-id`]}));o(g,{successLabel:`Deleted`})})},xe={command:`instances`,describe:`Workflow instance operations`,builder:e=>e.command(z).command(H).command(oe).command(le).command(de).command(pe).command(he).command(be).command(I).command(K).command(ve).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Se={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows`,query:[`per_page`,`page`,`search`],errors:{400:`BadRequestError`}};function Ce(e){return e.usage(`$0 workflows list
41
+
42
+ Lists all workflows configured for the account.`).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`search`,{type:`string`,description:"Allows filtering workflows` name."}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const we={command:`list`,describe:`List all Workflows`,builder:Ce,handler:async e=>l({command:`workflows list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page,search:e.search};if(e.dryRun){let e=await i();s({command:`cf workflows list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workflows`,pathParams:{},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(Se,{account_id:u,...n}));o(d,{successLabel:`Loaded`})})};var Te={method:`PATCH`,path:t=>e`/accounts/${t.account_id}/workflows/settings`,body:`json`,errors:{400:`BadRequestError`}};function Ee(e){return e.usage(`$0 workflows settings edit
43
+
44
+ Updates only the account-level Workflows settings fields present in the request body.`).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:`edit`,describe:`Update account settings`,builder:Ee,handler:async e=>l({command:`workflows settings edit`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows settings edit`,method:`PATCH`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/settings`,pathParams:{},bodyKind:`json`,body:e.body===void 0?void 0:u(e.body)});return}let n=await r(e),l=e.local?t:await a();if(e.accountId=l,e.body){let t=u(e.body),r=await c(`Updating`,async()=>n.send(Te,{body:t,account_id:l}));o(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})};var Oe={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/settings`,errors:{400:`BadRequestError`}};function ke(e){return e.usage(`$0 workflows settings get
45
+
46
+ Retrieves account-level Workflows settings, such as the default instance retention.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ae={command:`get`,describe:`Get account settings`,builder:ke,handler:async e=>l({command:`workflows settings get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let e=await i();s({command:`cf workflows settings get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${e??`<account-id>`}/workflows/settings`,pathParams:{},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Oe,{account_id:l}));o(u,{successLabel:`Loaded`})})},je={command:`settings`,describe:`Operations for settings`,builder:e=>e.command(De).command(Ae).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var Me={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/versions/${t.version_id}`,errors:{400:`BadRequestError`,404:`NotFoundError`}};function Ne(e){return e.usage(`$0 workflows versions get <version-id>
47
+
48
+ Retrieves details for a specific deployed workflow version.`).positional(`version-id`,{type:`string`,description:`Version ID`,demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Pe={command:`get <version-id>`,describe:`Get Workflow version details`,builder:Ne,handler:async e=>l({command:`workflows versions get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows versions get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send(Me,{account_id:l,workflow_name:e[`workflow-name`],version_id:e[`version-id`]}));o(u,{successLabel:`Loaded`})})};var $={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/versions/${t.version_id}/graph`,errors:{404:`NotFoundError`}};function Fe(e){return e.usage(`$0 workflows versions graph <version-id>
49
+
50
+ Retrieves the graph visualization of a workflow version.`).positional(`version-id`,{type:`string`,description:`Version ID`,demandOption:!0}).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const Ie={command:`graph <version-id>`,describe:`Get Workflow version graph`,builder:Fe,handler:async e=>l({command:`workflows versions graph`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){let t=await i();s({command:`cf workflows versions graph`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/versions/${e[`version-id`]==null?`<version-id>`:encodeURIComponent(String(e[`version-id`]))}/graph`,pathParams:{"workflow-name":String(e[`workflow-name`]??``),"version-id":String(e[`version-id`]??``)},bodyKind:`none`});return}let n=await r(e),l=e.local?t:await a();e.accountId=l;let u=await c(`Loading`,async()=>n.send($,{account_id:l,workflow_name:e[`workflow-name`],version_id:e[`version-id`]}));o(u,{successLabel:`Loaded`})})};var Le={method:`GET`,path:t=>e`/accounts/${t.account_id}/workflows/${t.workflow_name}/versions`,query:[`per_page`,`page`],errors:{400:`BadRequestError`}};function Re(e){return e.usage(`$0 workflows versions list
51
+
52
+ Lists all deployed versions of a workflow.`).option(`workflow-name`,{type:`string`,description:`Workflow name`,demandOption:!0}).option(`per-page`,{type:`number`,description:`Per page`}).option(`page`,{type:`number`,description:`Page`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const ze={command:`list`,describe:`List deployed Workflow versions`,builder:Re,handler:async e=>l({command:`workflows versions list`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let n={per_page:e[`per-page`],page:e.page};if(e.dryRun){let t=await i();s({command:`cf workflows versions list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/accounts/${t??`<account-id>`}/workflows/${e[`workflow-name`]==null?`<workflow-name>`:encodeURIComponent(String(e[`workflow-name`]))}/versions`,pathParams:{"workflow-name":String(e[`workflow-name`]??``)},query:n,bodyKind:`none`});return}let l=await r(e),u=e.local?t:await a();e.accountId=u;let d=await c(`Loading`,async()=>l.send(Le,{account_id:u,workflow_name:e[`workflow-name`],...n}));o(d,{successLabel:`Loaded`})})},Be={command:`versions`,describe:`Workflow version operations`,builder:e=>e.command(Pe).command(Ie).command(ze).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Ve={command:`workflows`,describe:`Durable, multi-step workflows that run on Workers with automatic retries and state persistence`,builder:e=>e.command(A).command(N).command(we).command(D).command(xe).command(je).command(Be).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Ve as default};
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{r as e}from"./theme-CQ_TYifs.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{a as n,i as r}from"./banner-D03JEqRs.mjs";import"./ui-YmjF66Ct.mjs";import i from"node:path";import{stat as a}from"node:fs/promises";import{migrateWranglerToCf as o}from"@cloudflare/codemods";const s=[`wrangler.json`,`wrangler.jsonc`,`wrangler.toml`];async function c(e){try{return(await a(e)).isFile()}catch(e){if(e instanceof Error&&`code`in e&&e.code===`ENOENT`)return!1;throw e}}async function l(e,{failOnMultiple:t=!0}={}){let n=s.map(t=>i.join(e,t)),r=(await Promise.all(n.map(async e=>({candidate:e,exists:await c(e)})))).filter(({exists:e})=>e).map(({candidate:e})=>e),[a]=r;if(r.length<=1)return a;if(t)throw Error(`Multiple Wrangler configs found in ${e}. Pass the exact path to cf migrate.`)}async function u(e,t=process.cwd()){if(e!==void 0)return i.resolve(t,e);let n=await l(t);if(n!==void 0)return n;throw Error(`No Wrangler config found in ${t}. Pass its path to cf migrate.`)}async function d(e){let{discoverImpls:t}=await import(`./discover-DIDEGKo3.mjs`);return t(i.dirname(e)).some(({impl:e})=>e.pkg===`@cloudflare/vite-plugin`)?`vite`:`wrangler`}function f(e){return e===`silent`?()=>{}:e===`stderr`?console.error:console.log}function p(t,n){if(t.length!==0){n(`\n${e.bold(`Follow-up work:`)}`);for(let[r,i]of t.entries()){let a=r===t.length-1,o=a?`└─`:`├─`,s=i.blocking?e.error(`[required]`):e.info(`[info]`),c=i.sourcePath?`${e.code(i.sourcePath)}: `:``;n(`${e.muted(o)} ${s} ${c}${i.message}`),i.docsUrl&&n(`${e.muted(`${a?` `:`│`} └─`)} ${e.muted(i.docsUrl)}`)}}}function m(t,a,o,s){if(t.changedFiles.length>0){s(e.bold(`${a?`Would update`:`Updated`} ${t.changedFiles.length} file(s):`));for(let[n,r]of t.changedFiles.entries()){let a=n===t.changedFiles.length-1?`└─`:`├─`,c=i.relative(process.cwd(),i.resolve(o,r));s(`${e.muted(a)} ${e.code(c)}`)}}if(p(t.followUps,s),t.status===`needs-intervention`){s(`\n${n(`Migration requires follow-up work.`)}`);return}s(`\n${r(`Migration${a?` preview`:``} complete.`)}`)}async function h(e,n={}){let r=n.dryRun??!1,a=await o(e,{bundler:n.bundler??`vite`,dryRun:r,force:n.force??!1,installDependencies:n.installDependencies??!0});if(m(a,r,i.dirname(e),f(n.output??`stdout`)),a.status===`needs-intervention`)throw new t(1)}async function g(t,n,r=`stdout`,a=!1){let o=await l(t,{failOnMultiple:!1});if(o===void 0)return!1;let s=i.relative(process.cwd(),o)||i.basename(o);return await n(`A Wrangler config was found at ${e.code(s)}. Run cf migrate before continuing?`,{defaultValue:!0,fallbackValue:!1})?(await h(o,{bundler:await d(o),output:r,dryRun:a}),!0):!1}export{h as i,g as n,u as r,d as t};
2
+ import{r as e}from"./theme-BGHWSKCw.mjs";import{t}from"./cli-exit-CstFZ1eJ.mjs";import{o as n,s as r}from"./blocks-Bat9A8V_.mjs";import"./ui-BtIBQeaG.mjs";import i from"node:path";import{stat as a}from"node:fs/promises";import{migrateWranglerToCf as o}from"@cloudflare/codemods";const s=[`wrangler.json`,`wrangler.jsonc`,`wrangler.toml`];async function c(e){try{return(await a(e)).isFile()}catch(e){if(e instanceof Error&&`code`in e&&e.code===`ENOENT`)return!1;throw e}}async function l(e,{failOnMultiple:t=!0}={}){let n=s.map(t=>i.join(e,t)),r=(await Promise.all(n.map(async e=>({candidate:e,exists:await c(e)})))).filter(({exists:e})=>e).map(({candidate:e})=>e),[a]=r;if(r.length<=1)return a;if(t)throw Error(`Multiple Wrangler configs found in ${e}. Pass the exact path to cf migrate.`)}async function u(e,t=process.cwd()){if(e!==void 0)return i.resolve(t,e);let n=await l(t);if(n!==void 0)return n;throw Error(`No Wrangler config found in ${t}. Pass its path to cf migrate.`)}async function d(e){let{discoverImpls:t}=await import(`./discover-DIDEGKo3.mjs`);return t(i.dirname(e)).some(({impl:e})=>e.pkg===`@cloudflare/vite-plugin`)?`vite`:`wrangler`}function f(e){return e===`silent`?()=>{}:e===`stderr`?console.error:console.log}function p(t,n){if(t.length!==0){n(`\n${e.bold(`Follow-up work:`)}`);for(let[r,i]of t.entries()){let a=r===t.length-1,o=a?`└─`:`├─`,s=i.blocking?e.error(`[required]`):e.info(`[info]`),c=i.sourcePath?`${e.code(i.sourcePath)}: `:``;n(`${e.muted(o)} ${s} ${c}${i.message}`),i.docsUrl&&n(`${e.muted(`${a?` `:`│`} └─`)} ${e.muted(i.docsUrl)}`)}}}function m(t,a,o,s){if(t.changedFiles.length>0){s(e.bold(`${a?`Would update`:`Updated`} ${t.changedFiles.length} file(s):`));for(let[n,r]of t.changedFiles.entries()){let a=n===t.changedFiles.length-1?`└─`:`├─`,c=i.relative(process.cwd(),i.resolve(o,r));s(`${e.muted(a)} ${e.code(c)}`)}}if(p(t.followUps,s),t.status===`needs-intervention`){s(`\n${r(`Migration requires follow-up work.`)}`);return}s(`\n${n(`Migration${a?` preview`:``} complete.`)}`)}async function h(e,n={}){let r=n.dryRun??!1,a=await o(e,{bundler:n.bundler??`vite`,dryRun:r,force:n.force??!1,installDependencies:n.installDependencies??!0});if(m(a,r,i.dirname(e),f(n.output??`stdout`)),a.status===`needs-intervention`)throw new t(1)}async function g(t,n,r=`stdout`,a=!1){let o=await l(t,{failOnMultiple:!1});if(o===void 0)return!1;let s=i.relative(process.cwd(),o)||i.basename(o);return await n(`A Wrangler config was found at ${e.code(s)}. Run cf migrate before continuing?`,{defaultValue:!0,fallbackValue:!1})?(await h(o,{bundler:await d(o),output:r,dryRun:a}),!0):!1}export{h as i,g as n,u as r,d as t};
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ import"./api-eMuS5GI1.mjs";import{t as e}from"./path-DRw6Y-nd.mjs";import{i as t,n}from"./auth-eVI_UEt8.mjs";import{i as r}from"./context-B-vEsyrK.mjs";import{t as i}from"./output-Co4xdFf6.mjs";import{t as a}from"./dry-run-C2KjGX10.mjs";import{t as o}from"./progress-R-1tIuep.mjs";import{t as s}from"./run-BvDCuZ8q.mjs";import"./telemetry-Ct_2AaO4.mjs";import{n as c,t as l}from"./body-parser-DkHKPkJ7.mjs";import{n as u}from"./input-validation-D7z60HJH.mjs";import{a as d}from"./prompt-dgLm0iFJ.mjs";var f={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`};function p(e){return e.usage(`$0 zaraz config get
3
+
4
+ Gets latest Zaraz configuration for a zone. It can be preview or published configuration, whichever was the last updated. Secret variables values will not be included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const m={command:`get`,describe:`Get Zaraz configuration`,builder:p,handler:async e=>s({command:`zaraz config get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(f,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var h={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/config`,body:`json`};function g(e){return e.usage(`$0 zaraz config update
5
+
6
+ Updates Zaraz configuration for a zone.`).option(`analytics-default-purpose`,{type:`string`,description:`Consent purpose assigned to Monitoring.`}).option(`analytics-enabled`,{type:`boolean`,description:`Whether Advanced Monitoring reports are enabled.`}).option(`analytics-session-exp-time`,{type:`number`,description:`Session expiration time (seconds).`}).option(`consent-company-email`,{type:`string`,description:`The consent.companyEmail field`}).option(`consent-company-name`,{type:`string`,description:`The consent.companyName field`}).option(`consent-company-street-address`,{type:`string`,description:`The consent.companyStreetAddress field`}).option(`consent-consent-modal-intro-html`,{type:`string`,description:`The consent.consentModalIntroHTML field`}).option(`consent-cookie-name`,{type:`string`,description:`The consent.cookieName field`}).option(`consent-custom-css`,{type:`string`,description:`The consent.customCSS field`}).option(`consent-custom-intro-disclaimer-dismissed`,{type:`boolean`,description:`The consent.customIntroDisclaimerDismissed field`}).option(`consent-default-language`,{type:`string`,description:`The consent.defaultLanguage field`}).option(`consent-enabled`,{type:`boolean`,description:`The consent.enabled field`}).option(`consent-hide-modal`,{type:`boolean`,description:`The consent.hideModal field`}).option(`consent-tcf-compliant`,{type:`boolean`,description:`The consent.tcfCompliant field`}).option(`data-layer`,{type:`boolean`,description:`Data layer compatibility mode enabled.`}).option(`debug-key`,{type:`string`,description:`The key for Zaraz debug mode.`}).option(`history-change`,{type:`boolean`,description:`Single Page Application support enabled.`}).option(`settings-auto-inject-script`,{type:`boolean`,description:`Automatic injection of Zaraz scripts enabled.`}).option(`settings-context-enricher-escaped-worker-name`,{type:`string`,description:`The settings.contextEnricher.escapedWorkerName field`}).option(`settings-context-enricher-worker-tag`,{type:`string`,description:`The settings.contextEnricher.workerTag field`}).option(`settings-cookie-domain`,{type:`string`,description:`The domain Zaraz will use for writing and reading its cookies.`}).option(`settings-ecommerce`,{type:`boolean`,description:`Ecommerce API enabled.`}).option(`settings-events-api-path`,{type:`string`,description:`Custom endpoint for server-side track events.`}).option(`settings-hide-external-referer`,{type:`boolean`,description:`Hiding external referrer URL enabled.`}).option(`settings-hide-ipaddress`,{type:`boolean`,description:`Trimming IP address enabled.`}).option(`settings-hide-query-params`,{type:`boolean`,description:`Removing URL query params enabled.`}).option(`settings-hide-user-agent`,{type:`boolean`,description:`Removing sensitive data from User Agent string enabled.`}).option(`settings-init-path`,{type:`string`,description:`Custom endpoint for Zaraz init script.`}).option(`settings-inject-iframes`,{type:`boolean`,description:`Injection of Zaraz scripts into iframes enabled.`}).option(`settings-mc-root-path`,{type:`string`,description:`Custom path for Managed Components server functionalities.`}).option(`settings-script-path`,{type:`string`,description:`Custom endpoint for Zaraz main script.`}).option(`settings-track-path`,{type:`string`,description:`Custom endpoint for Zaraz tracking requests.`}).option(`zaraz-version`,{type:`number`,description:`Zaraz internal version of the config.`}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zaraz configuration.`}).check(e=>{if([`consent-company-email`,`consent-company-name`,`consent-company-street-address`,`consent-consent-modal-intro-html`,`consent-cookie-name`,`consent-custom-css`,`consent-custom-intro-disclaimer-dismissed`,`consent-default-language`,`consent-enabled`,`consent-hide-modal`,`consent-tcf-compliant`].some(t=>e[t]!==void 0)){let t=[`consent-enabled`].filter(t=>e[t]===void 0);if(t.length>0)throw Error(`${t.map(e=>`--`+e).join(`, `)} ${t.length===1?`is`:`are`} required when any --consent-* flag is set`)}return!0})}const _={command:`update`,describe:`Update Zaraz configuration`,builder:g,handler:async e=>s({command:`zaraz config update`,classification:{safeFlags:[`analytics-enabled`,`consent-custom-intro-disclaimer-dismissed`,`consent-enabled`,`consent-hide-modal`,`consent-tcf-compliant`,`data-layer`,`history-change`,`settings-auto-inject-script`,`settings-ecommerce`,`settings-hide-external-referer`,`settings-hide-ipaddress`,`settings-hide-query-params`,`settings-hide-user-agent`,`settings-inject-iframes`,`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz config update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/config`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?l({analytics:{defaultPurpose:u(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{companyEmail:u(e[`consent-company-email`],`consent-company-email`,`text`),companyName:u(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:u(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:u(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),cookieName:u(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:u(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:u(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:u(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:u(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:u(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:u(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:u(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:u(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:u(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:u(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:u(e[`settings-track-path`],`settings-track-path`,`text`)},zarazVersion:e[`zaraz-version`]}):c(e.body)});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=s,e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(h,{body:n,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e[`data-layer`]===void 0)throw Error(`--data-layer is required (or pass --body with this field set).`);if(e[`debug-key`]===void 0&&(e[`debug-key`]=await d(`debug-key`,`The key for Zaraz debug mode.`)),e[`settings-auto-inject-script`]===void 0)throw Error(`--settings-auto-inject-script is required (or pass --body with this field set).`);if(e[`settings-context-enricher-escaped-worker-name`]===void 0&&(e[`settings-context-enricher-escaped-worker-name`]=await d(`settings-context-enricher-escaped-worker-name`,`The settings.contextEnricher.escapedWorkerName field`)),e[`settings-context-enricher-worker-tag`]===void 0&&(e[`settings-context-enricher-worker-tag`]=await d(`settings-context-enricher-worker-tag`,`The settings.contextEnricher.workerTag field`)),e[`zaraz-version`]===void 0)throw Error(`--zaraz-version is required (or pass --body with this field set).`);let f=l({analytics:{defaultPurpose:u(e[`analytics-default-purpose`],`analytics-default-purpose`,`text`),enabled:e[`analytics-enabled`],sessionExpTime:e[`analytics-session-exp-time`]},consent:{companyEmail:u(e[`consent-company-email`],`consent-company-email`,`text`),companyName:u(e[`consent-company-name`],`consent-company-name`,`text`),companyStreetAddress:u(e[`consent-company-street-address`],`consent-company-street-address`,`text`),consentModalIntroHTML:u(e[`consent-consent-modal-intro-html`],`consent-consent-modal-intro-html`,`text`),cookieName:u(e[`consent-cookie-name`],`consent-cookie-name`,`text`),customCSS:u(e[`consent-custom-css`],`consent-custom-css`,`text`),customIntroDisclaimerDismissed:e[`consent-custom-intro-disclaimer-dismissed`],defaultLanguage:u(e[`consent-default-language`],`consent-default-language`,`text`),enabled:e[`consent-enabled`],hideModal:e[`consent-hide-modal`],tcfCompliant:e[`consent-tcf-compliant`]},dataLayer:e[`data-layer`],debugKey:u(e[`debug-key`],`debug-key`,`text`),historyChange:e[`history-change`],settings:{autoInjectScript:e[`settings-auto-inject-script`],contextEnricher:{escapedWorkerName:u(e[`settings-context-enricher-escaped-worker-name`],`settings-context-enricher-escaped-worker-name`,`text`),workerTag:u(e[`settings-context-enricher-worker-tag`],`settings-context-enricher-worker-tag`,`text`)},cookieDomain:u(e[`settings-cookie-domain`],`settings-cookie-domain`,`text`),ecommerce:e[`settings-ecommerce`],eventsApiPath:u(e[`settings-events-api-path`],`settings-events-api-path`,`text`),hideExternalReferer:e[`settings-hide-external-referer`],hideIPAddress:e[`settings-hide-ipaddress`],hideQueryParams:e[`settings-hide-query-params`],hideUserAgent:e[`settings-hide-user-agent`],initPath:u(e[`settings-init-path`],`settings-init-path`,`text`),injectIframes:e[`settings-inject-iframes`],mcRootPath:u(e[`settings-mc-root-path`],`settings-mc-root-path`,`text`),scriptPath:u(e[`settings-script-path`],`settings-script-path`,`text`),trackPath:u(e[`settings-track-path`],`settings-track-path`,`text`)},zarazVersion:e[`zaraz-version`]}),p=await o(`Updating`,async()=>t.send(h,{body:f,zone_id:s}));i(p,{successLabel:`Updated`})})},v={command:`config`,describe:`Full Zaraz configuration including tools, triggers, and variables for the zone`,builder:e=>e.command(m).command(_).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var y={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/default`};function b(e){return e.usage(`$0 zaraz default get
7
+
8
+ Gets default Zaraz configuration for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const x={command:`get`,describe:`Get default Zaraz configuration`,builder:b,handler:async e=>s({command:`zaraz default get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz default get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/default`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(y,{zone_id:s}));i(c,{successLabel:`Loaded`})})},S={command:`default`,describe:`Default Zaraz configuration template used as a starting point for new zones`,builder:e=>e.command(x).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var C={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/export`};function w(e){return e.usage(`$0 zaraz export get
9
+
10
+ Exports full current published Zaraz configuration for a zone, secret variables included.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const T={command:`get`,describe:`Export Zaraz configuration`,builder:w,handler:async e=>s({command:`zaraz export get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz export get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/export`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(C,{zone_id:s}));i(c,{successLabel:`Loaded`})})},E={command:`export`,describe:`Export the current Zaraz configuration as a portable JSON document`,builder:e=>e.command(T).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var D={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/history/configs`,query:[`ids`],joined:[`ids`]};function O(e){return e.usage(`$0 zaraz history configs get
11
+
12
+ Gets a history of published Zaraz configurations by ID(s) for a zone.`).option(`ids`,{type:`string`,description:`Comma separated list of Zaraz configuration IDs.`,demandOption:!0}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const k={command:`get`,describe:`Get Zaraz historical configurations by ID(s)`,builder:O,handler:async e=>s({command:`zaraz history configs get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{let t={ids:e.ids};if(e.dryRun){a({command:`cf zaraz history configs get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/history/configs`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let s=await n(e),c=await r({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await o(`Loading`,async()=>s.send(D,{zone_id:c,...t}));i(l,{successLabel:`Loaded`})})},A={command:`configs`,describe:`Operations for history.configs`,builder:e=>e.command(k).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var j={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/history`,query:[`offset`,`limit`,`sortField`,`sortOrder`]};function M(e){return e.usage(`$0 zaraz history list
13
+
14
+ Lists a history of published Zaraz configuration records for a zone.`).option(`offset`,{type:`number`,description:`Ordinal number to start listing the results with. Default value is 0.`}).option(`limit`,{type:`number`,description:`Maximum amount of results to list. Default value is 10.`}).option(`sort-field`,{type:`string`,description:`The field to sort by. Default is updated_at.`,choices:[`id`,`user_id`,`description`,`created_at`,`updated_at`]}).option(`sort-order`,{type:`string`,description:`Sorting order. Default is DESC.`,choices:[`DESC`,`ASC`]}).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const N={command:`list`,describe:`List Zaraz historical configuration records`,builder:M,handler:async e=>s({command:`zaraz history list`,classification:{safeFlags:[`sort-field`,`sort-order`,`dry-run`]}},e,async()=>{let t={offset:e.offset,limit:e.limit,sortField:e[`sort-field`],sortOrder:e[`sort-order`]};if(e.dryRun){a({command:`cf zaraz history list`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/history`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},query:t,bodyKind:`none`});return}let s=await n(e),c=await r({zone:e.zone},s,{quiet:e.quiet});e.zoneId=c;let l=await o(`Loading`,async()=>s.send(j,{zone_id:c,...t}));i(l,{successLabel:`Loaded`})})};var P={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/history`,body:`json`};function F(e){return e.usage(`$0 zaraz history update
15
+
16
+ Restores a historical published Zaraz configuration by ID for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`ID of the Zaraz configuration to restore.`})}const I={command:`update`,describe:`Restore Zaraz historical configuration by ID`,builder:F,handler:async e=>s({command:`zaraz history update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz history update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/history`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let s=await n(e),l=await r({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=c(e.body),n=await o(`Updating`,async()=>s.send(P,{body:t,zone_id:l}));i(n,{successLabel:`Updated`});return}let u=await o(`Updating`,async()=>t(s,`PUT`,`/zones/${e.zoneId}/settings/zaraz/history`));i(u,{successLabel:`Updated`})})},L={command:`history`,describe:`Configuration version history — browse and restore previous Zaraz configurations`,builder:e=>e.command(N).command(I).command(A).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var R={method:`POST`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/publish`,body:`json`};function z(e){return e.usage(`$0 zaraz publish create
17
+
18
+ Publish current Zaraz preview configuration for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zaraz configuration description.`})}const B={command:`create`,describe:`Publish Zaraz preview configuration`,builder:z,handler:async e=>s({command:`zaraz publish create`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz publish create`,method:`POST`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/publish`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let s=await n(e),l=await r({zone:e.zone},s,{quiet:e.quiet});if(e.zoneId=l,e.body){let t=c(e.body),n=await o(`Creating`,async()=>s.send(R,{body:t,zone_id:l}));i(n,{successLabel:`Created`});return}let u=await o(`Creating`,async()=>t(s,`POST`,`/zones/${e.zoneId}/settings/zaraz/publish`));i(u,{successLabel:`Created`})})},V={command:`publish`,describe:`Publish pending Zaraz configuration changes to make them live on the zone`,builder:e=>e.command(B).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};var H={method:`GET`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/workflow`};function U(e){return e.usage(`$0 zaraz workflow get
19
+
20
+ Gets Zaraz workflow for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1})}const W={command:`get`,describe:`Get Zaraz workflow`,builder:U,handler:async e=>s({command:`zaraz workflow get`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz workflow get`,method:`GET`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/workflow`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`none`});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});e.zoneId=s;let c=await o(`Loading`,async()=>t.send(H,{zone_id:s}));i(c,{successLabel:`Loaded`})})};var G={method:`PUT`,path:t=>e`/zones/${t.zone_id}/settings/zaraz/workflow`,body:`json`};function K(e){return e.usage(`$0 zaraz workflow update
21
+
22
+ Updates Zaraz workflow for a zone.`).option(`dry-run`,{type:`boolean`,description:`Validate and show what would happen without executing`,default:!1}).option(`body`,{type:`string`,description:`Zaraz workflow.`})}const q={command:`update`,describe:`Update Zaraz workflow`,builder:K,handler:async e=>s({command:`zaraz workflow update`,classification:{safeFlags:[`dry-run`]}},e,async()=>{if(e.dryRun){a({command:`cf zaraz workflow update`,method:`PUT`,url:`https://api.cloudflare.com/client/v4/zones/${e.zone??e.zoneId??`<zone>`}/settings/zaraz/workflow`,pathParams:{"zone-id":String(e.zone??e[`zone-id`]??``)},bodyKind:`json`,body:e.body===void 0?void 0:c(e.body)});return}let t=await n(e),s=await r({zone:e.zone},t,{quiet:e.quiet});if(e.zoneId=s,e.body){let n=c(e.body),r=await o(`Updating`,async()=>t.send(G,{body:n,zone_id:s}));i(r,{successLabel:`Updated`});return}if(e.body===void 0)throw Error(`--body is required for this command. Pass --body '<json>' or --body @path/to/file.json.`)})},J={command:`workflow`,describe:`Workflow state for Zaraz configuration changes (draft vs. published)`,builder:e=>e.command(W).command(q).demandCommand(1,`Please specify a subcommand`),handler:()=>{}},Y={command:`zaraz`,describe:`Server-side tag manager — load third-party tools (analytics, pixels, etc.) from Cloudflare's edge without client-side JS`,builder:e=>e.command(v).command(S).command(E).command(L).command(V).command(J).demandCommand(1,`Please specify a subcommand`),handler:()=>{}};export{Y as default};