@distilled.cloud/cloudflare 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (458) hide show
  1. package/lib/services/abuse-reports.d.ts.map +1 -1
  2. package/lib/services/abuse-reports.js +26 -26
  3. package/lib/services/abuse-reports.js.map +1 -1
  4. package/lib/services/accounts.d.ts.map +1 -1
  5. package/lib/services/accounts.js +114 -123
  6. package/lib/services/accounts.js.map +1 -1
  7. package/lib/services/acm.d.ts.map +1 -1
  8. package/lib/services/acm.js +23 -23
  9. package/lib/services/acm.js.map +1 -1
  10. package/lib/services/addressing.d.ts.map +1 -1
  11. package/lib/services/addressing.js +132 -132
  12. package/lib/services/addressing.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts.map +1 -1
  14. package/lib/services/ai-gateway.js +213 -207
  15. package/lib/services/ai-gateway.js.map +1 -1
  16. package/lib/services/ai-security.d.ts.map +1 -1
  17. package/lib/services/ai-security.js +13 -13
  18. package/lib/services/ai-security.js.map +1 -1
  19. package/lib/services/ai.d.ts.map +1 -1
  20. package/lib/services/ai.js +62 -62
  21. package/lib/services/ai.js.map +1 -1
  22. package/lib/services/aisearch.d.ts.map +1 -1
  23. package/lib/services/aisearch.js +187 -193
  24. package/lib/services/aisearch.js.map +1 -1
  25. package/lib/services/alerting.d.ts.map +1 -1
  26. package/lib/services/alerting.js +78 -78
  27. package/lib/services/alerting.js.map +1 -1
  28. package/lib/services/api-gateway.d.ts.map +1 -1
  29. package/lib/services/api-gateway.js +168 -177
  30. package/lib/services/api-gateway.js.map +1 -1
  31. package/lib/services/argo.js +12 -12
  32. package/lib/services/argo.js.map +1 -1
  33. package/lib/services/audit-logs.d.ts.map +1 -1
  34. package/lib/services/audit-logs.js +9 -9
  35. package/lib/services/audit-logs.js.map +1 -1
  36. package/lib/services/billing.d.ts.map +1 -1
  37. package/lib/services/billing.js +11 -11
  38. package/lib/services/billing.js.map +1 -1
  39. package/lib/services/bot-management.d.ts.map +1 -1
  40. package/lib/services/bot-management.js +18 -30
  41. package/lib/services/bot-management.js.map +1 -1
  42. package/lib/services/botnet-feed.d.ts.map +1 -1
  43. package/lib/services/botnet-feed.js +12 -12
  44. package/lib/services/botnet-feed.js.map +1 -1
  45. package/lib/services/brand-protection.d.ts.map +1 -1
  46. package/lib/services/brand-protection.js +59 -59
  47. package/lib/services/brand-protection.js.map +1 -1
  48. package/lib/services/browser-rendering.d.ts.map +1 -1
  49. package/lib/services/browser-rendering.js +103 -103
  50. package/lib/services/browser-rendering.js.map +1 -1
  51. package/lib/services/cache.d.ts.map +1 -1
  52. package/lib/services/cache.js +72 -72
  53. package/lib/services/cache.js.map +1 -1
  54. package/lib/services/calls.d.ts.map +1 -1
  55. package/lib/services/calls.js +31 -31
  56. package/lib/services/calls.js.map +1 -1
  57. package/lib/services/certificate-authorities.js +6 -6
  58. package/lib/services/certificate-authorities.js.map +1 -1
  59. package/lib/services/client-certificates.js +18 -18
  60. package/lib/services/client-certificates.js.map +1 -1
  61. package/lib/services/cloud-connector.d.ts.map +1 -1
  62. package/lib/services/cloud-connector.js +8 -8
  63. package/lib/services/cloud-connector.js.map +1 -1
  64. package/lib/services/cloudforce-one.d.ts.map +1 -1
  65. package/lib/services/cloudforce-one.js +178 -178
  66. package/lib/services/cloudforce-one.js.map +1 -1
  67. package/lib/services/connectivity.js +25 -25
  68. package/lib/services/connectivity.js.map +1 -1
  69. package/lib/services/containers.js +49 -49
  70. package/lib/services/containers.js.map +1 -1
  71. package/lib/services/content-scanning.d.ts.map +1 -1
  72. package/lib/services/content-scanning.js +29 -29
  73. package/lib/services/content-scanning.js.map +1 -1
  74. package/lib/services/csam-scanner.d.ts.map +1 -1
  75. package/lib/services/csam-scanner.js +8 -8
  76. package/lib/services/csam-scanner.js.map +1 -1
  77. package/lib/services/custom-certificates.d.ts.map +1 -1
  78. package/lib/services/custom-certificates.js +24 -24
  79. package/lib/services/custom-certificates.js.map +1 -1
  80. package/lib/services/custom-csrs.d.ts.map +1 -1
  81. package/lib/services/custom-csrs.js +22 -22
  82. package/lib/services/custom-csrs.js.map +1 -1
  83. package/lib/services/custom-hostnames.d.ts.map +1 -1
  84. package/lib/services/custom-hostnames.js +40 -40
  85. package/lib/services/custom-hostnames.js.map +1 -1
  86. package/lib/services/custom-nameservers.js +11 -11
  87. package/lib/services/custom-nameservers.js.map +1 -1
  88. package/lib/services/custom-pages.d.ts.map +1 -1
  89. package/lib/services/custom-pages.js +43 -43
  90. package/lib/services/custom-pages.js.map +1 -1
  91. package/lib/services/d1.d.ts +4 -4
  92. package/lib/services/d1.d.ts.map +1 -1
  93. package/lib/services/d1.js +69 -51
  94. package/lib/services/d1.js.map +1 -1
  95. package/lib/services/dcv-delegation.js +3 -3
  96. package/lib/services/dcv-delegation.js.map +1 -1
  97. package/lib/services/ddos-protection.js +126 -126
  98. package/lib/services/ddos-protection.js.map +1 -1
  99. package/lib/services/diagnostics.js +27 -27
  100. package/lib/services/diagnostics.js.map +1 -1
  101. package/lib/services/dls.d.ts.map +1 -1
  102. package/lib/services/dls.js +26 -26
  103. package/lib/services/dls.js.map +1 -1
  104. package/lib/services/dns-firewall.d.ts.map +1 -1
  105. package/lib/services/dns-firewall.js +34 -34
  106. package/lib/services/dns-firewall.js.map +1 -1
  107. package/lib/services/dns.d.ts.map +1 -1
  108. package/lib/services/dns.js +268 -268
  109. package/lib/services/dns.js.map +1 -1
  110. package/lib/services/durable-objects.d.ts.map +1 -1
  111. package/lib/services/durable-objects.js +11 -11
  112. package/lib/services/durable-objects.js.map +1 -1
  113. package/lib/services/email-auth.d.ts.map +1 -1
  114. package/lib/services/email-auth.js +13 -13
  115. package/lib/services/email-auth.js.map +1 -1
  116. package/lib/services/email-routing.d.ts.map +1 -1
  117. package/lib/services/email-routing.js +70 -70
  118. package/lib/services/email-routing.js.map +1 -1
  119. package/lib/services/email-security.d.ts.map +1 -1
  120. package/lib/services/email-security.js +195 -195
  121. package/lib/services/email-security.js.map +1 -1
  122. package/lib/services/email-sending.d.ts.map +1 -1
  123. package/lib/services/email-sending.js +28 -28
  124. package/lib/services/email-sending.js.map +1 -1
  125. package/lib/services/filters.d.ts.map +1 -1
  126. package/lib/services/filters.js +25 -25
  127. package/lib/services/filters.js.map +1 -1
  128. package/lib/services/firewall.d.ts.map +1 -1
  129. package/lib/services/firewall.js +149 -149
  130. package/lib/services/firewall.js.map +1 -1
  131. package/lib/services/flagship.d.ts.map +1 -1
  132. package/lib/services/flagship.js +52 -52
  133. package/lib/services/flagship.js.map +1 -1
  134. package/lib/services/fraud.js +8 -8
  135. package/lib/services/fraud.js.map +1 -1
  136. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  137. package/lib/services/google-tag-gateway.js +7 -7
  138. package/lib/services/google-tag-gateway.js.map +1 -1
  139. package/lib/services/healthchecks.d.ts.map +1 -1
  140. package/lib/services/healthchecks.js +31 -31
  141. package/lib/services/healthchecks.js.map +1 -1
  142. package/lib/services/hostnames.d.ts.map +1 -1
  143. package/lib/services/hostnames.js +10 -10
  144. package/lib/services/hostnames.js.map +1 -1
  145. package/lib/services/hyperdrive.d.ts.map +1 -1
  146. package/lib/services/hyperdrive.js +32 -32
  147. package/lib/services/hyperdrive.js.map +1 -1
  148. package/lib/services/iam.d.ts.map +1 -1
  149. package/lib/services/iam.js +113 -113
  150. package/lib/services/iam.js.map +1 -1
  151. package/lib/services/images.d.ts.map +1 -1
  152. package/lib/services/images.js +59 -59
  153. package/lib/services/images.js.map +1 -1
  154. package/lib/services/intel.d.ts.map +1 -1
  155. package/lib/services/intel.js +102 -102
  156. package/lib/services/intel.js.map +1 -1
  157. package/lib/services/ips.js +5 -5
  158. package/lib/services/ips.js.map +1 -1
  159. package/lib/services/keyless-certificates.js +17 -17
  160. package/lib/services/keyless-certificates.js.map +1 -1
  161. package/lib/services/kv.d.ts.map +1 -1
  162. package/lib/services/kv.js +54 -54
  163. package/lib/services/kv.js.map +1 -1
  164. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  165. package/lib/services/leaked-credential-checks.js +22 -22
  166. package/lib/services/leaked-credential-checks.js.map +1 -1
  167. package/lib/services/load-balancers.d.ts.map +1 -1
  168. package/lib/services/load-balancers.js +139 -157
  169. package/lib/services/load-balancers.js.map +1 -1
  170. package/lib/services/logpush.d.ts.map +1 -1
  171. package/lib/services/logpush.js +69 -69
  172. package/lib/services/logpush.js.map +1 -1
  173. package/lib/services/logs.d.ts.map +1 -1
  174. package/lib/services/logs.js +58 -58
  175. package/lib/services/logs.js.map +1 -1
  176. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  177. package/lib/services/magic-cloud-networking.js +138 -168
  178. package/lib/services/magic-cloud-networking.js.map +1 -1
  179. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  180. package/lib/services/magic-network-monitoring.js +47 -65
  181. package/lib/services/magic-network-monitoring.js.map +1 -1
  182. package/lib/services/magic-transit.d.ts.map +1 -1
  183. package/lib/services/magic-transit.js +340 -364
  184. package/lib/services/magic-transit.js.map +1 -1
  185. package/lib/services/managed-transforms.js +11 -11
  186. package/lib/services/managed-transforms.js.map +1 -1
  187. package/lib/services/memberships.d.ts.map +1 -1
  188. package/lib/services/memberships.js +25 -25
  189. package/lib/services/memberships.js.map +1 -1
  190. package/lib/services/moq.d.ts.map +1 -1
  191. package/lib/services/moq.js +23 -23
  192. package/lib/services/moq.js.map +1 -1
  193. package/lib/services/mtls-certificates.d.ts.map +1 -1
  194. package/lib/services/mtls-certificates.js +17 -17
  195. package/lib/services/mtls-certificates.js.map +1 -1
  196. package/lib/services/network-interconnects.d.ts.map +1 -1
  197. package/lib/services/network-interconnects.js +56 -56
  198. package/lib/services/network-interconnects.js.map +1 -1
  199. package/lib/services/organizations.d.ts.map +1 -1
  200. package/lib/services/organizations.js +42 -42
  201. package/lib/services/organizations.js.map +1 -1
  202. package/lib/services/origin-ca-certificates.js +14 -14
  203. package/lib/services/origin-ca-certificates.js.map +1 -1
  204. package/lib/services/origin-post-quantum-encryption.js +6 -6
  205. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  206. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  207. package/lib/services/origin-tls-client-auth.js +52 -52
  208. package/lib/services/origin-tls-client-auth.js.map +1 -1
  209. package/lib/services/origin-tls-compliance-modes.js +12 -12
  210. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  211. package/lib/services/page-rules.d.ts.map +1 -1
  212. package/lib/services/page-rules.js +62 -62
  213. package/lib/services/page-rules.js.map +1 -1
  214. package/lib/services/page-shield.d.ts.map +1 -1
  215. package/lib/services/page-shield.js +45 -48
  216. package/lib/services/page-shield.js.map +1 -1
  217. package/lib/services/pages.d.ts.map +1 -1
  218. package/lib/services/pages.js +78 -78
  219. package/lib/services/pages.js.map +1 -1
  220. package/lib/services/pipelines.d.ts.map +1 -1
  221. package/lib/services/pipelines.js +102 -102
  222. package/lib/services/pipelines.js.map +1 -1
  223. package/lib/services/queues.d.ts.map +1 -1
  224. package/lib/services/queues.js +100 -103
  225. package/lib/services/queues.js.map +1 -1
  226. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  227. package/lib/services/r2-data-catalog.js +42 -42
  228. package/lib/services/r2-data-catalog.js.map +1 -1
  229. package/lib/services/r2.d.ts.map +1 -1
  230. package/lib/services/r2.js +190 -190
  231. package/lib/services/r2.js.map +1 -1
  232. package/lib/services/radar.d.ts.map +1 -1
  233. package/lib/services/radar.js +991 -1009
  234. package/lib/services/radar.js.map +1 -1
  235. package/lib/services/rate-limits.d.ts.map +1 -1
  236. package/lib/services/rate-limits.js +24 -24
  237. package/lib/services/rate-limits.js.map +1 -1
  238. package/lib/services/realtime-kit.d.ts.map +1 -1
  239. package/lib/services/realtime-kit.js +276 -276
  240. package/lib/services/realtime-kit.js.map +1 -1
  241. package/lib/services/registrar.d.ts.map +1 -1
  242. package/lib/services/registrar.js +28 -28
  243. package/lib/services/registrar.js.map +1 -1
  244. package/lib/services/request-tracers.d.ts.map +1 -1
  245. package/lib/services/request-tracers.js +7 -7
  246. package/lib/services/request-tracers.js.map +1 -1
  247. package/lib/services/resource-sharing.d.ts.map +1 -1
  248. package/lib/services/resource-sharing.js +49 -49
  249. package/lib/services/resource-sharing.js.map +1 -1
  250. package/lib/services/resource-tagging.d.ts.map +1 -1
  251. package/lib/services/resource-tagging.js +56 -56
  252. package/lib/services/resource-tagging.js.map +1 -1
  253. package/lib/services/rules.d.ts.map +1 -1
  254. package/lib/services/rules.js +50 -50
  255. package/lib/services/rules.js.map +1 -1
  256. package/lib/services/rulesets.d.ts +2 -2
  257. package/lib/services/rulesets.d.ts.map +1 -1
  258. package/lib/services/rulesets.js +226 -190
  259. package/lib/services/rulesets.js.map +1 -1
  260. package/lib/services/rum.d.ts.map +1 -1
  261. package/lib/services/rum.js +35 -35
  262. package/lib/services/rum.js.map +1 -1
  263. package/lib/services/schema-validation.d.ts.map +1 -1
  264. package/lib/services/schema-validation.js +43 -46
  265. package/lib/services/schema-validation.js.map +1 -1
  266. package/lib/services/secrets-store.d.ts.map +1 -1
  267. package/lib/services/secrets-store.js +41 -41
  268. package/lib/services/secrets-store.js.map +1 -1
  269. package/lib/services/security-center.d.ts.map +1 -1
  270. package/lib/services/security-center.js +54 -57
  271. package/lib/services/security-center.js.map +1 -1
  272. package/lib/services/security-txt.d.ts.map +1 -1
  273. package/lib/services/security-txt.js +12 -12
  274. package/lib/services/security-txt.js.map +1 -1
  275. package/lib/services/snippets.d.ts.map +1 -1
  276. package/lib/services/snippets.js +31 -31
  277. package/lib/services/snippets.js.map +1 -1
  278. package/lib/services/spectrum.d.ts.map +1 -1
  279. package/lib/services/spectrum.js +35 -35
  280. package/lib/services/spectrum.js.map +1 -1
  281. package/lib/services/speed.d.ts.map +1 -1
  282. package/lib/services/speed.js +41 -41
  283. package/lib/services/speed.js.map +1 -1
  284. package/lib/services/ssl.d.ts.map +1 -1
  285. package/lib/services/ssl.js +48 -48
  286. package/lib/services/ssl.js.map +1 -1
  287. package/lib/services/stream.d.ts.map +1 -1
  288. package/lib/services/stream.js +147 -147
  289. package/lib/services/stream.js.map +1 -1
  290. package/lib/services/tenant-custom-nameservers.js +11 -11
  291. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  292. package/lib/services/tenants.d.ts.map +1 -1
  293. package/lib/services/tenants.js +28 -28
  294. package/lib/services/tenants.js.map +1 -1
  295. package/lib/services/token-validation.d.ts.map +1 -1
  296. package/lib/services/token-validation.js +56 -56
  297. package/lib/services/token-validation.js.map +1 -1
  298. package/lib/services/turnstile.d.ts.map +1 -1
  299. package/lib/services/turnstile.js +27 -54
  300. package/lib/services/turnstile.js.map +1 -1
  301. package/lib/services/url-normalization.js +9 -9
  302. package/lib/services/url-normalization.js.map +1 -1
  303. package/lib/services/url-scanner.d.ts.map +1 -1
  304. package/lib/services/url-scanner.js +120 -120
  305. package/lib/services/url-scanner.js.map +1 -1
  306. package/lib/services/user.d.ts.map +1 -1
  307. package/lib/services/user.js +95 -95
  308. package/lib/services/user.js.map +1 -1
  309. package/lib/services/vectorize.d.ts +10 -10
  310. package/lib/services/vectorize.d.ts.map +1 -1
  311. package/lib/services/vectorize.js +59 -57
  312. package/lib/services/vectorize.js.map +1 -1
  313. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  314. package/lib/services/vulnerability-scanner.js +95 -95
  315. package/lib/services/vulnerability-scanner.js.map +1 -1
  316. package/lib/services/waiting-rooms.d.ts.map +1 -1
  317. package/lib/services/waiting-rooms.js +81 -81
  318. package/lib/services/waiting-rooms.js.map +1 -1
  319. package/lib/services/web3.d.ts.map +1 -1
  320. package/lib/services/web3.js +39 -39
  321. package/lib/services/web3.js.map +1 -1
  322. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  323. package/lib/services/workers-for-platforms.js +139 -139
  324. package/lib/services/workers-for-platforms.js.map +1 -1
  325. package/lib/services/workers.d.ts.map +1 -1
  326. package/lib/services/workers.js +420 -420
  327. package/lib/services/workers.js.map +1 -1
  328. package/lib/services/workflows.d.ts.map +1 -1
  329. package/lib/services/workflows.js +88 -88
  330. package/lib/services/workflows.js.map +1 -1
  331. package/lib/services/zaraz.d.ts.map +1 -1
  332. package/lib/services/zaraz.js +36 -39
  333. package/lib/services/zaraz.js.map +1 -1
  334. package/lib/services/zero-trust.d.ts.map +1 -1
  335. package/lib/services/zero-trust.js +1765 -1771
  336. package/lib/services/zero-trust.js.map +1 -1
  337. package/lib/services/zones.d.ts.map +1 -1
  338. package/lib/services/zones.js +168 -168
  339. package/lib/services/zones.js.map +1 -1
  340. package/package.json +3 -2
  341. package/src/services/abuse-reports.ts +35 -36
  342. package/src/services/accounts.ts +714 -760
  343. package/src/services/acm.ts +115 -125
  344. package/src/services/addressing.ts +484 -512
  345. package/src/services/ai-gateway.ts +653 -672
  346. package/src/services/ai-security.ts +47 -53
  347. package/src/services/ai.ts +172 -185
  348. package/src/services/aisearch.ts +1814 -1861
  349. package/src/services/alerting.ts +710 -742
  350. package/src/services/api-gateway.ts +481 -508
  351. package/src/services/argo.ts +12 -12
  352. package/src/services/audit-logs.ts +45 -49
  353. package/src/services/billing.ts +121 -136
  354. package/src/services/bot-management.ts +122 -136
  355. package/src/services/botnet-feed.ts +68 -74
  356. package/src/services/brand-protection.ts +275 -294
  357. package/src/services/browser-rendering.ts +758 -769
  358. package/src/services/cache.ts +148 -158
  359. package/src/services/calls.ts +110 -120
  360. package/src/services/certificate-authorities.ts +6 -6
  361. package/src/services/client-certificates.ts +18 -18
  362. package/src/services/cloud-connector.ts +11 -12
  363. package/src/services/cloudforce-one.ts +589 -617
  364. package/src/services/connectivity.ts +25 -25
  365. package/src/services/containers.ts +49 -49
  366. package/src/services/content-scanning.ts +80 -89
  367. package/src/services/csam-scanner.ts +16 -17
  368. package/src/services/custom-certificates.ts +36 -38
  369. package/src/services/custom-csrs.ts +103 -105
  370. package/src/services/custom-hostnames.ts +44 -45
  371. package/src/services/custom-nameservers.ts +11 -11
  372. package/src/services/custom-pages.ts +173 -184
  373. package/src/services/d1.ts +335 -325
  374. package/src/services/dcv-delegation.ts +3 -3
  375. package/src/services/ddos-protection.ts +126 -126
  376. package/src/services/diagnostics.ts +27 -27
  377. package/src/services/dls.ts +82 -86
  378. package/src/services/dns-firewall.ts +65 -69
  379. package/src/services/dns.ts +1080 -1107
  380. package/src/services/durable-objects.ts +36 -38
  381. package/src/services/email-auth.ts +47 -52
  382. package/src/services/email-routing.ts +264 -288
  383. package/src/services/email-security.ts +205 -208
  384. package/src/services/email-sending.ts +94 -99
  385. package/src/services/filters.ts +97 -111
  386. package/src/services/firewall.ts +698 -753
  387. package/src/services/flagship.ts +321 -336
  388. package/src/services/fraud.ts +8 -8
  389. package/src/services/google-tag-gateway.ts +17 -19
  390. package/src/services/healthchecks.ts +269 -286
  391. package/src/services/hostnames.ts +94 -99
  392. package/src/services/hyperdrive.ts +310 -324
  393. package/src/services/iam.ts +205 -212
  394. package/src/services/images.ts +138 -150
  395. package/src/services/intel.ts +248 -261
  396. package/src/services/ips.ts +5 -5
  397. package/src/services/keyless-certificates.ts +17 -17
  398. package/src/services/kv.ts +106 -110
  399. package/src/services/leaked-credential-checks.ts +49 -53
  400. package/src/services/load-balancers.ts +1119 -1212
  401. package/src/services/logpush.ts +298 -313
  402. package/src/services/logs.ts +74 -77
  403. package/src/services/magic-cloud-networking.ts +1219 -1311
  404. package/src/services/magic-network-monitoring.ts +647 -685
  405. package/src/services/magic-transit.ts +1988 -2119
  406. package/src/services/managed-transforms.ts +11 -11
  407. package/src/services/memberships.ts +101 -105
  408. package/src/services/moq.ts +100 -110
  409. package/src/services/mtls-certificates.ts +30 -32
  410. package/src/services/network-interconnects.ts +137 -145
  411. package/src/services/organizations.ts +189 -192
  412. package/src/services/origin-ca-certificates.ts +14 -14
  413. package/src/services/origin-post-quantum-encryption.ts +6 -6
  414. package/src/services/origin-tls-client-auth.ts +219 -236
  415. package/src/services/origin-tls-compliance-modes.ts +12 -12
  416. package/src/services/page-rules.ts +365 -373
  417. package/src/services/page-shield.ts +489 -528
  418. package/src/services/pages.ts +309 -319
  419. package/src/services/pipelines.ts +534 -573
  420. package/src/services/queues.ts +598 -635
  421. package/src/services/r2-data-catalog.ts +59 -60
  422. package/src/services/r2.ts +654 -689
  423. package/src/services/radar.ts +3395 -3487
  424. package/src/services/rate-limits.ts +81 -93
  425. package/src/services/realtime-kit.ts +386 -399
  426. package/src/services/registrar.ts +90 -96
  427. package/src/services/request-tracers.ts +41 -43
  428. package/src/services/resource-sharing.ts +293 -305
  429. package/src/services/resource-tagging.ts +354 -366
  430. package/src/services/rules.ts +272 -292
  431. package/src/services/rulesets.ts +1214 -1116
  432. package/src/services/rum.ts +252 -273
  433. package/src/services/schema-validation.ts +284 -305
  434. package/src/services/secrets-store.ts +130 -138
  435. package/src/services/security-center.ts +64 -69
  436. package/src/services/security-txt.ts +48 -50
  437. package/src/services/snippets.ts +132 -142
  438. package/src/services/spectrum.ts +75 -80
  439. package/src/services/speed.ts +385 -397
  440. package/src/services/ssl.ts +64 -65
  441. package/src/services/stream.ts +658 -718
  442. package/src/services/tenant-custom-nameservers.ts +11 -11
  443. package/src/services/tenants.ts +86 -93
  444. package/src/services/token-validation.ts +145 -151
  445. package/src/services/turnstile.ts +344 -381
  446. package/src/services/url-normalization.ts +9 -9
  447. package/src/services/url-scanner.ts +393 -399
  448. package/src/services/user.ts +479 -503
  449. package/src/services/vectorize.ts +215 -230
  450. package/src/services/vulnerability-scanner.ts +145 -148
  451. package/src/services/waiting-rooms.ts +759 -825
  452. package/src/services/web3.ts +186 -197
  453. package/src/services/workers-for-platforms.ts +408 -432
  454. package/src/services/workers.ts +1175 -1239
  455. package/src/services/workflows.ts +585 -616
  456. package/src/services/zaraz.ts +168 -192
  457. package/src/services/zero-trust.ts +2965 -3074
  458. package/src/services/zones.ts +753 -785
@@ -88,7 +88,7 @@ interface Error2 {
88
88
  message: string;
89
89
  name: string;
90
90
  }
91
- const Error2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
91
+ const Error2 = /*@__PURE__*/ Schema.suspend(() =>
92
92
  Schema.Struct({
93
93
  message: Schema.String,
94
94
  name: Schema.String,
@@ -99,7 +99,7 @@ interface Rollback {
99
99
  error: { message: string; name: string } | null;
100
100
  outcome: "complete" | "failed" | (string & {});
101
101
  }
102
- const Rollback = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
102
+ const Rollback = /*@__PURE__*/ Schema.suspend(() =>
103
103
  Schema.Struct({
104
104
  error: Schema.Union([Error2, Schema.Null]),
105
105
  outcome: Schema.Union([
@@ -115,7 +115,7 @@ interface Attempt {
115
115
  start: string;
116
116
  success: boolean | null;
117
117
  }
118
- const Attempt = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
118
+ const Attempt = /*@__PURE__*/ Schema.suspend(() =>
119
119
  Schema.Struct({
120
120
  end: Schema.Union([Schema.String, Schema.Null]),
121
121
  error: Schema.Union([Error2, Schema.Null]),
@@ -130,7 +130,7 @@ interface Retries {
130
130
  limit: number;
131
131
  backoff?: "constant" | "linear" | "exponential" | (string & {}) | null;
132
132
  }
133
- const Retries = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
133
+ const Retries = /*@__PURE__*/ Schema.suspend(() =>
134
134
  Schema.Struct({
135
135
  delay: Schema.Union([Schema.String, Schema.Number]),
136
136
  limit: Schema.Number,
@@ -157,7 +157,7 @@ interface Config {
157
157
  /** When set to 'output', step output is redacted from log and step output responses. */
158
158
  sensitive?: "output" | null;
159
159
  }
160
- const Config = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
160
+ const Config = /*@__PURE__*/ Schema.suspend(() =>
161
161
  Schema.Struct({
162
162
  retries: Retries,
163
163
  timeout: Schema.Unknown,
@@ -190,7 +190,7 @@ interface GetInstanceResponseStep {
190
190
  success: boolean | null;
191
191
  type: "step" | "rollback" | (string & {});
192
192
  }
193
- const GetInstanceResponseStep = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
193
+ const GetInstanceResponseStep = /*@__PURE__*/ Schema.suspend(() =>
194
194
  Schema.Struct({
195
195
  attempts: Schema.Array(Attempt),
196
196
  config: Config,
@@ -211,22 +211,21 @@ interface GetInstanceResponseStep1 {
211
211
  start: string;
212
212
  type: "sleep";
213
213
  }
214
- const GetInstanceResponseStep1 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
215
- () =>
216
- Schema.Struct({
217
- end: Schema.String,
218
- error: Schema.Union([Error2, Schema.Null]),
219
- finished: Schema.Boolean,
220
- name: Schema.String,
221
- start: Schema.String,
222
- type: Schema.Literal("sleep"),
223
- }),
214
+ const GetInstanceResponseStep1 = /*@__PURE__*/ Schema.suspend(() =>
215
+ Schema.Struct({
216
+ end: Schema.String,
217
+ error: Schema.Union([Error2, Schema.Null]),
218
+ finished: Schema.Boolean,
219
+ name: Schema.String,
220
+ start: Schema.String,
221
+ type: Schema.Literal("sleep"),
222
+ }),
224
223
  ) as unknown as Schema.Codec<GetInstanceResponseStep1>;
225
224
 
226
225
  interface Trigger {
227
226
  source: string;
228
227
  }
229
- const Trigger = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
228
+ const Trigger = /*@__PURE__*/ Schema.suspend(() =>
230
229
  Schema.Struct({
231
230
  source: Schema.String,
232
231
  }),
@@ -236,12 +235,11 @@ interface GetInstanceResponseStep2 {
236
235
  trigger: { source: string };
237
236
  type: "termination";
238
237
  }
239
- const GetInstanceResponseStep2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
240
- () =>
241
- Schema.Struct({
242
- trigger: Trigger,
243
- type: Schema.Literal("termination"),
244
- }),
238
+ const GetInstanceResponseStep2 = /*@__PURE__*/ Schema.suspend(() =>
239
+ Schema.Struct({
240
+ trigger: Trigger,
241
+ type: Schema.Literal("termination"),
242
+ }),
245
243
  ) as unknown as Schema.Codec<GetInstanceResponseStep2>;
246
244
 
247
245
  interface GetInstanceResponseStep3 {
@@ -253,23 +251,22 @@ interface GetInstanceResponseStep3 {
253
251
  type: "waitForEvent";
254
252
  output?: string | null;
255
253
  }
256
- const GetInstanceResponseStep3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
257
- () =>
258
- Schema.Struct({
259
- end: Schema.String,
260
- error: Schema.Union([Error2, Schema.Null]),
261
- finished: Schema.Boolean,
262
- name: Schema.String,
263
- start: Schema.String,
264
- type: Schema.Literal("waitForEvent"),
265
- output: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
266
- }),
254
+ const GetInstanceResponseStep3 = /*@__PURE__*/ Schema.suspend(() =>
255
+ Schema.Struct({
256
+ end: Schema.String,
257
+ error: Schema.Union([Error2, Schema.Null]),
258
+ finished: Schema.Boolean,
259
+ name: Schema.String,
260
+ start: Schema.String,
261
+ type: Schema.Literal("waitForEvent"),
262
+ output: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
263
+ }),
267
264
  ) as unknown as Schema.Codec<GetInstanceResponseStep3>;
268
265
 
269
266
  interface Trigger2 {
270
267
  source: "unknown" | "api" | "binding" | "event" | "cron" | (string & {});
271
268
  }
272
- const Trigger2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
269
+ const Trigger2 = /*@__PURE__*/ Schema.suspend(() =>
273
270
  Schema.Struct({
274
271
  source: Schema.Union([
275
272
  Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
@@ -282,7 +279,7 @@ interface Schedule {
282
279
  cron: string;
283
280
  scheduledTime: number;
284
281
  }
285
- const Schedule = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
282
+ const Schedule = /*@__PURE__*/ Schema.suspend(() =>
286
283
  Schema.Struct({
287
284
  cron: Schema.String,
288
285
  scheduledTime: Schema.Number,
@@ -317,52 +314,51 @@ interface ListInstancesResponseResult {
317
314
  | (string & {})
318
315
  | null;
319
316
  }
320
- const ListInstancesResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
321
- () =>
322
- Schema.Struct({
323
- id: Schema.String,
324
- createdOn: Schema.String,
325
- endedOn: Schema.Union([Schema.String, Schema.Null]),
326
- modifiedOn: Schema.String,
327
- startedOn: Schema.Union([Schema.String, Schema.Null]),
328
- status: Schema.Union([
329
- Schema.Literals([
330
- "queued",
331
- "running",
332
- "paused",
333
- "errored",
334
- "terminated",
335
- "complete",
336
- "waitingForPause",
337
- "waiting",
338
- "rollingBack",
339
- ]),
340
- Schema.String,
317
+ const ListInstancesResponseResult = /*@__PURE__*/ Schema.suspend(() =>
318
+ Schema.Struct({
319
+ id: Schema.String,
320
+ createdOn: Schema.String,
321
+ endedOn: Schema.Union([Schema.String, Schema.Null]),
322
+ modifiedOn: Schema.String,
323
+ startedOn: Schema.Union([Schema.String, Schema.Null]),
324
+ status: Schema.Union([
325
+ Schema.Literals([
326
+ "queued",
327
+ "running",
328
+ "paused",
329
+ "errored",
330
+ "terminated",
331
+ "complete",
332
+ "waitingForPause",
333
+ "waiting",
334
+ "rollingBack",
341
335
  ]),
342
- versionId: Schema.String,
343
- workflowId: Schema.String,
344
- triggerSource: Schema.optional(
336
+ Schema.String,
337
+ ]),
338
+ versionId: Schema.String,
339
+ workflowId: Schema.String,
340
+ triggerSource: Schema.optional(
341
+ Schema.Union([
345
342
  Schema.Union([
346
- Schema.Union([
347
- Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
348
- Schema.String,
349
- ]),
350
- Schema.Null,
343
+ Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
344
+ Schema.String,
351
345
  ]),
352
- ),
353
- }).pipe(
354
- Schema.encodeKeys({
355
- id: "id",
356
- createdOn: "created_on",
357
- endedOn: "ended_on",
358
- modifiedOn: "modified_on",
359
- startedOn: "started_on",
360
- status: "status",
361
- versionId: "version_id",
362
- workflowId: "workflow_id",
363
- triggerSource: "trigger_source",
364
- }),
346
+ Schema.Null,
347
+ ]),
365
348
  ),
349
+ }).pipe(
350
+ Schema.encodeKeys({
351
+ id: "id",
352
+ createdOn: "created_on",
353
+ endedOn: "ended_on",
354
+ modifiedOn: "modified_on",
355
+ startedOn: "started_on",
356
+ status: "status",
357
+ versionId: "version_id",
358
+ workflowId: "workflow_id",
359
+ triggerSource: "trigger_source",
360
+ }),
361
+ ),
366
362
  ) as unknown as Schema.Codec<ListInstancesResponseResult>;
367
363
 
368
364
  interface ListInstancesResponseResultInfo {
@@ -372,7 +368,7 @@ interface ListInstancesResponseResultInfo {
372
368
  totalCount?: number | null;
373
369
  }
374
370
  const ListInstancesResponseResultInfo =
375
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
371
+ /*@__PURE__*/ Schema.suspend(() =>
376
372
  Schema.Struct({
377
373
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
378
374
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -394,7 +390,7 @@ interface InstanceRetention {
394
390
  /** Specifies the duration in milliseconds or as a string like '5 minutes'. */
395
391
  successRetention?: number | string | null;
396
392
  }
397
- const InstanceRetention = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
393
+ const InstanceRetention = /*@__PURE__*/ Schema.suspend(() =>
398
394
  Schema.Struct({
399
395
  errorRetention: Schema.optional(
400
396
  Schema.Union([Schema.Union([Schema.Number, Schema.String]), Schema.Null]),
@@ -418,7 +414,7 @@ interface Body {
418
414
  } | null;
419
415
  params?: unknown | null;
420
416
  }
421
- const Body = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
417
+ const Body = /*@__PURE__*/ Schema.suspend(() =>
422
418
  Schema.Struct({
423
419
  instanceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
424
420
  instanceRetention: Schema.optional(
@@ -458,44 +454,43 @@ interface BulkInstanceResponseResult {
458
454
  | (string & {})
459
455
  | null;
460
456
  }
461
- const BulkInstanceResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
462
- () =>
463
- Schema.Struct({
464
- id: Schema.String,
465
- status: Schema.Union([
466
- Schema.Literals([
467
- "queued",
468
- "running",
469
- "paused",
470
- "errored",
471
- "terminated",
472
- "complete",
473
- "waitingForPause",
474
- "waiting",
475
- "rollingBack",
476
- ]),
477
- Schema.String,
457
+ const BulkInstanceResponseResult = /*@__PURE__*/ Schema.suspend(() =>
458
+ Schema.Struct({
459
+ id: Schema.String,
460
+ status: Schema.Union([
461
+ Schema.Literals([
462
+ "queued",
463
+ "running",
464
+ "paused",
465
+ "errored",
466
+ "terminated",
467
+ "complete",
468
+ "waitingForPause",
469
+ "waiting",
470
+ "rollingBack",
478
471
  ]),
479
- versionId: Schema.String,
480
- workflowId: Schema.String,
481
- triggerSource: Schema.optional(
472
+ Schema.String,
473
+ ]),
474
+ versionId: Schema.String,
475
+ workflowId: Schema.String,
476
+ triggerSource: Schema.optional(
477
+ Schema.Union([
482
478
  Schema.Union([
483
- Schema.Union([
484
- Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
485
- Schema.String,
486
- ]),
487
- Schema.Null,
479
+ Schema.Literals(["unknown", "api", "binding", "event", "cron"]),
480
+ Schema.String,
488
481
  ]),
489
- ),
490
- }).pipe(
491
- Schema.encodeKeys({
492
- id: "id",
493
- status: "status",
494
- versionId: "version_id",
495
- workflowId: "workflow_id",
496
- triggerSource: "trigger_source",
497
- }),
482
+ Schema.Null,
483
+ ]),
498
484
  ),
485
+ }).pipe(
486
+ Schema.encodeKeys({
487
+ id: "id",
488
+ status: "status",
489
+ versionId: "version_id",
490
+ workflowId: "workflow_id",
491
+ triggerSource: "trigger_source",
492
+ }),
493
+ ),
499
494
  ) as unknown as Schema.Codec<BulkInstanceResponseResult>;
500
495
 
501
496
  interface From {
@@ -503,7 +498,7 @@ interface From {
503
498
  count?: number | null;
504
499
  type?: "do" | "sleep" | "waitForEvent" | (string & {}) | null;
505
500
  }
506
- const From = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
501
+ const From = /*@__PURE__*/ Schema.suspend(() =>
507
502
  Schema.Struct({
508
503
  name: Schema.String,
509
504
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -522,7 +517,7 @@ const From = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
522
517
  interface Limits {
523
518
  steps?: number | null;
524
519
  }
525
- const Limits = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
520
+ const Limits = /*@__PURE__*/ Schema.suspend(() =>
526
521
  Schema.Struct({
527
522
  steps: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
528
523
  }),
@@ -539,32 +534,31 @@ interface ListVersionsResponseResult {
539
534
  workflowId: string;
540
535
  limits?: { steps?: number | null } | null;
541
536
  }
542
- const ListVersionsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
543
- () =>
544
- Schema.Struct({
545
- id: Schema.String,
546
- className: Schema.String,
547
- createdOn: Schema.String,
548
- hasDag: Schema.Boolean,
549
- language: Schema.Union([
550
- Schema.Literals(["javascript", "python"]),
551
- Schema.String,
552
- ]),
553
- modifiedOn: Schema.String,
554
- workflowId: Schema.String,
555
- limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
556
- }).pipe(
557
- Schema.encodeKeys({
558
- id: "id",
559
- className: "class_name",
560
- createdOn: "created_on",
561
- hasDag: "has_dag",
562
- language: "language",
563
- modifiedOn: "modified_on",
564
- workflowId: "workflow_id",
565
- limits: "limits",
566
- }),
567
- ),
537
+ const ListVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
538
+ Schema.Struct({
539
+ id: Schema.String,
540
+ className: Schema.String,
541
+ createdOn: Schema.String,
542
+ hasDag: Schema.Boolean,
543
+ language: Schema.Union([
544
+ Schema.Literals(["javascript", "python"]),
545
+ Schema.String,
546
+ ]),
547
+ modifiedOn: Schema.String,
548
+ workflowId: Schema.String,
549
+ limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
550
+ }).pipe(
551
+ Schema.encodeKeys({
552
+ id: "id",
553
+ className: "class_name",
554
+ createdOn: "created_on",
555
+ hasDag: "has_dag",
556
+ language: "language",
557
+ modifiedOn: "modified_on",
558
+ workflowId: "workflow_id",
559
+ limits: "limits",
560
+ }),
561
+ ),
568
562
  ) as unknown as Schema.Codec<ListVersionsResponseResult>;
569
563
 
570
564
  interface GraphVersionResponseGraphWorkflowNode {
@@ -576,7 +570,7 @@ interface GraphVersionResponseGraphWorkflowNode {
576
570
  starts?: number | null;
577
571
  }
578
572
  const GraphVersionResponseGraphWorkflowNode =
579
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
573
+ /*@__PURE__*/ Schema.suspend(() =>
580
574
  Schema.Struct({
581
575
  duration: Schema.Union([Schema.Number, Schema.String]),
582
576
  name: Schema.String,
@@ -593,7 +587,7 @@ interface Retries2 {
593
587
  delay: number | string;
594
588
  limit: number;
595
589
  }
596
- const Retries2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
590
+ const Retries2 = /*@__PURE__*/ Schema.suspend(() =>
597
591
  Schema.Struct({
598
592
  backoff: Schema.Union([
599
593
  Schema.Literals(["constant", "linear", "exponential"]),
@@ -614,7 +608,7 @@ interface Config2 {
614
608
  /** Duration as milliseconds (number) or human-readable string. */
615
609
  timeout: number | string;
616
610
  }
617
- const Config2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
611
+ const Config2 = /*@__PURE__*/ Schema.suspend(() =>
618
612
  Schema.Struct({
619
613
  retries: Retries2,
620
614
  timeout: Schema.Union([Schema.Number, Schema.String]),
@@ -639,7 +633,7 @@ interface GraphVersionResponseGraphWorkflowNode1 {
639
633
  starts?: number | null;
640
634
  }
641
635
  const GraphVersionResponseGraphWorkflowNode1 =
642
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
636
+ /*@__PURE__*/ Schema.suspend(() =>
643
637
  Schema.Struct({
644
638
  config: Config2,
645
639
  name: Schema.String,
@@ -655,7 +649,7 @@ interface Options {
655
649
  /** Duration as milliseconds (number) or human-readable string. */
656
650
  timeout: number | string;
657
651
  }
658
- const Options = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
652
+ const Options = /*@__PURE__*/ Schema.suspend(() =>
659
653
  Schema.Struct({
660
654
  eventType: Schema.String,
661
655
  timeout: Schema.Union([Schema.Number, Schema.String]),
@@ -665,7 +659,7 @@ const Options = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
665
659
  interface Type {
666
660
  type: "unknown";
667
661
  }
668
- const Type = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
662
+ const Type = /*@__PURE__*/ Schema.suspend(() =>
669
663
  Schema.Struct({
670
664
  type: Schema.Literal("unknown"),
671
665
  }),
@@ -677,7 +671,7 @@ interface GraphVersionResponseGraphWorkflowNode2Payload1 {
677
671
  type: "object";
678
672
  }
679
673
  const GraphVersionResponseGraphWorkflowNode2Payload1 =
680
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
674
+ /*@__PURE__*/ Schema.suspend(() =>
681
675
  Schema.Struct({
682
676
  fields: Schema.Record(Schema.String, Schema.Unknown),
683
677
  type: Schema.Literal("object"),
@@ -698,7 +692,7 @@ interface GraphVersionResponseGraphWorkflowNode2 {
698
692
  starts?: number | null;
699
693
  }
700
694
  const GraphVersionResponseGraphWorkflowNode2 =
701
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
695
+ /*@__PURE__*/ Schema.suspend(() =>
702
696
  Schema.Struct({
703
697
  name: Schema.String,
704
698
  options: Schema.Union([Options, Schema.Null]),
@@ -722,7 +716,7 @@ interface GraphVersionResponseGraphWorkflowNode3 {
722
716
  starts?: number | null;
723
717
  }
724
718
  const GraphVersionResponseGraphWorkflowNode3 =
725
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
719
+ /*@__PURE__*/ Schema.suspend(() =>
726
720
  Schema.Struct({
727
721
  name: Schema.String,
728
722
  timestamp: Schema.String,
@@ -738,7 +732,7 @@ interface GraphVersionResponseGraphWorkflowNode4 {
738
732
  type: "loop";
739
733
  }
740
734
  const GraphVersionResponseGraphWorkflowNode4 =
741
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
735
+ /*@__PURE__*/ Schema.suspend(() =>
742
736
  Schema.Struct({
743
737
  nodes: Schema.Array(Schema.Unknown),
744
738
  type: Schema.Literal("loop"),
@@ -753,7 +747,7 @@ interface GraphVersionResponseGraphWorkflowNode5 {
753
747
  type: "parallel";
754
748
  }
755
749
  const GraphVersionResponseGraphWorkflowNode5 =
756
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
750
+ /*@__PURE__*/ Schema.suspend(() =>
757
751
  Schema.Struct({
758
752
  kind: Schema.Union([
759
753
  Schema.Literals(["all", "any", "all_settled", "race"]),
@@ -769,7 +763,7 @@ interface CatchBlock {
769
763
  nodes: unknown[];
770
764
  type: "block";
771
765
  }
772
- const CatchBlock = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
766
+ const CatchBlock = /*@__PURE__*/ Schema.suspend(() =>
773
767
  Schema.Struct({
774
768
  nodes: Schema.Array(Schema.Unknown),
775
769
  type: Schema.Literal("block"),
@@ -783,7 +777,7 @@ interface GraphVersionResponseGraphWorkflowNode6 {
783
777
  type: "try";
784
778
  }
785
779
  const GraphVersionResponseGraphWorkflowNode6 =
786
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
780
+ /*@__PURE__*/ Schema.suspend(() =>
787
781
  Schema.Struct({
788
782
  catchBlock: Schema.Union([CatchBlock, Schema.Null]),
789
783
  finallyBlock: Schema.Union([CatchBlock, Schema.Null]),
@@ -804,7 +798,7 @@ interface Branch {
804
798
  /** Child nodes (recursive). */
805
799
  nodes: unknown[];
806
800
  }
807
- const Branch = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
801
+ const Branch = /*@__PURE__*/ Schema.suspend(() =>
808
802
  Schema.Struct({
809
803
  condition: Schema.Union([Schema.String, Schema.Null]),
810
804
  nodes: Schema.Array(Schema.Unknown),
@@ -816,7 +810,7 @@ interface GraphVersionResponseGraphWorkflowNode8 {
816
810
  type: "if";
817
811
  }
818
812
  const GraphVersionResponseGraphWorkflowNode8 =
819
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
813
+ /*@__PURE__*/ Schema.suspend(() =>
820
814
  Schema.Struct({
821
815
  branches: Schema.Array(Branch),
822
816
  type: Schema.Literal("if"),
@@ -829,7 +823,7 @@ interface GraphVersionResponseGraphWorkflowNode9 {
829
823
  type: "switch";
830
824
  }
831
825
  const GraphVersionResponseGraphWorkflowNode9 =
832
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
826
+ /*@__PURE__*/ Schema.suspend(() =>
833
827
  Schema.Struct({
834
828
  branches: Schema.Array(Branch),
835
829
  discriminant: Schema.String,
@@ -850,7 +844,7 @@ interface GraphVersionResponseGraphWorkflowNode10 {
850
844
  | null;
851
845
  }
852
846
  const GraphVersionResponseGraphWorkflowNode10 =
853
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
847
+ /*@__PURE__*/ Schema.suspend(() =>
854
848
  Schema.Struct({
855
849
  className: Schema.String,
856
850
  functions: Schema.Record(Schema.String, Schema.Unknown),
@@ -880,7 +874,7 @@ interface GraphVersionResponseGraphWorkflowNode11 {
880
874
  starts?: number | null;
881
875
  }
882
876
  const GraphVersionResponseGraphWorkflowNode11 =
883
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
877
+ /*@__PURE__*/ Schema.suspend(() =>
884
878
  Schema.Struct({
885
879
  name: Schema.String,
886
880
  type: Schema.Literal("function_call"),
@@ -896,7 +890,7 @@ interface GraphVersionResponseGraphWorkflowNode12 {
896
890
  type: "function_def";
897
891
  }
898
892
  const GraphVersionResponseGraphWorkflowNode12 =
899
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
893
+ /*@__PURE__*/ Schema.suspend(() =>
900
894
  Schema.Struct({
901
895
  name: Schema.String,
902
896
  nodes: Schema.Array(Schema.Unknown),
@@ -910,7 +904,7 @@ interface GraphVersionResponseGraphWorkflowNode13 {
910
904
  type: "break";
911
905
  }
912
906
  const GraphVersionResponseGraphWorkflowNode13 =
913
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
907
+ /*@__PURE__*/ Schema.suspend(() =>
914
908
  Schema.Struct({
915
909
  kind: Schema.Union([Schema.Literals(["break", "return"]), Schema.String]),
916
910
  type: Schema.Literal("break"),
@@ -1005,7 +999,7 @@ interface Workflow {
1005
999
  | { fields: Record<string, unknown>; type: "object" }
1006
1000
  | null;
1007
1001
  }
1008
- const Workflow = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1002
+ const Workflow = /*@__PURE__*/ Schema.suspend(() =>
1009
1003
  Schema.Struct({
1010
1004
  className: Schema.String,
1011
1005
  functions: Schema.Record(Schema.String, Schema.Unknown),
@@ -1137,7 +1131,7 @@ interface Graph {
1137
1131
  | null;
1138
1132
  };
1139
1133
  }
1140
- const Graph = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1134
+ const Graph = /*@__PURE__*/ Schema.suspend(() =>
1141
1135
  Schema.Struct({
1142
1136
  version: Schema.Number,
1143
1137
  workflow: Workflow,
@@ -1155,7 +1149,7 @@ interface Instances {
1155
1149
  waiting?: number | null;
1156
1150
  waitingForPause?: number | null;
1157
1151
  }
1158
- const Instances = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1152
+ const Instances = /*@__PURE__*/ Schema.suspend(() =>
1159
1153
  Schema.Struct({
1160
1154
  complete: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1161
1155
  errored: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -1175,7 +1169,7 @@ interface Schedule2 {
1175
1169
  cron: string;
1176
1170
  nextInstance: string;
1177
1171
  }
1178
- const Schedule2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1172
+ const Schedule2 = /*@__PURE__*/ Schema.suspend(() =>
1179
1173
  Schema.Struct({
1180
1174
  cron: Schema.String,
1181
1175
  nextInstance: Schema.String,
@@ -1203,39 +1197,38 @@ interface ListWorkflowsResponseResult {
1203
1197
  triggeredOn: string | null;
1204
1198
  schedules?: { cron: string; nextInstance: string }[] | null;
1205
1199
  }
1206
- const ListWorkflowsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1207
- () =>
1208
- Schema.Struct({
1209
- id: Schema.String,
1210
- className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1211
- createdOn: Schema.String,
1212
- instances: Schema.optional(Schema.Union([Instances, Schema.Null])),
1213
- modifiedOn: Schema.String,
1214
- name: Schema.String,
1215
- scriptName: Schema.String,
1216
- triggeredOn: Schema.Union([Schema.String, Schema.Null]),
1217
- schedules: Schema.optional(
1218
- Schema.Union([Schema.Array(Schedule2), Schema.Null]),
1219
- ),
1220
- }).pipe(
1221
- Schema.encodeKeys({
1222
- id: "id",
1223
- className: "class_name",
1224
- createdOn: "created_on",
1225
- instances: "instances",
1226
- modifiedOn: "modified_on",
1227
- name: "name",
1228
- scriptName: "script_name",
1229
- triggeredOn: "triggered_on",
1230
- schedules: "schedules",
1231
- }),
1200
+ const ListWorkflowsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
1201
+ Schema.Struct({
1202
+ id: Schema.String,
1203
+ className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1204
+ createdOn: Schema.String,
1205
+ instances: Schema.optional(Schema.Union([Instances, Schema.Null])),
1206
+ modifiedOn: Schema.String,
1207
+ name: Schema.String,
1208
+ scriptName: Schema.String,
1209
+ triggeredOn: Schema.Union([Schema.String, Schema.Null]),
1210
+ schedules: Schema.optional(
1211
+ Schema.Union([Schema.Array(Schedule2), Schema.Null]),
1232
1212
  ),
1213
+ }).pipe(
1214
+ Schema.encodeKeys({
1215
+ id: "id",
1216
+ className: "class_name",
1217
+ createdOn: "created_on",
1218
+ instances: "instances",
1219
+ modifiedOn: "modified_on",
1220
+ name: "name",
1221
+ scriptName: "script_name",
1222
+ triggeredOn: "triggered_on",
1223
+ schedules: "schedules",
1224
+ }),
1225
+ ),
1233
1226
  ) as unknown as Schema.Codec<ListWorkflowsResponseResult>;
1234
1227
 
1235
1228
  interface Schedule3 {
1236
1229
  cron: string;
1237
1230
  }
1238
- const Schedule3 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1231
+ const Schedule3 = /*@__PURE__*/ Schema.suspend(() =>
1239
1232
  Schema.Struct({
1240
1233
  cron: Schema.String,
1241
1234
  }),
@@ -1256,22 +1249,21 @@ export interface GetInstanceRequest {
1256
1249
  simple?: boolean;
1257
1250
  }
1258
1251
 
1259
- export const GetInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1260
- () =>
1261
- Schema.Struct({
1262
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1263
- instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
1264
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1265
- order: Schema.optional(
1266
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1267
- ).pipe(T.HttpQuery("order")),
1268
- simple: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("simple")),
1269
- }).pipe(
1270
- T.Http({
1271
- method: "GET",
1272
- path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}",
1273
- }),
1274
- ),
1252
+ export const GetInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
1253
+ Schema.Struct({
1254
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1255
+ instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
1256
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1257
+ order: Schema.optional(
1258
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1259
+ ).pipe(T.HttpQuery("order")),
1260
+ simple: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("simple")),
1261
+ }).pipe(
1262
+ T.Http({
1263
+ method: "GET",
1264
+ path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}",
1265
+ }),
1266
+ ),
1275
1267
  ) as unknown as Schema.Codec<GetInstanceRequest>;
1276
1268
 
1277
1269
  export interface GetInstanceResponse {
@@ -1353,63 +1345,62 @@ export interface GetInstanceResponse {
1353
1345
  schedule?: { cron: string; scheduledTime: number } | null;
1354
1346
  }
1355
1347
 
1356
- export const GetInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1357
- () =>
1358
- Schema.Struct({
1359
- end: Schema.Union([Schema.String, Schema.Null]),
1360
- error: Schema.Union([Error2, Schema.Null]),
1361
- output: Schema.Union([Schema.String, Schema.Number, Schema.Null]),
1362
- params: Schema.Unknown,
1363
- queued: Schema.String,
1364
- rollback: Schema.Union([Rollback, Schema.Null]),
1365
- start: Schema.Union([Schema.String, Schema.Null]),
1366
- status: Schema.Union([
1367
- Schema.Literals([
1368
- "queued",
1369
- "running",
1370
- "paused",
1371
- "errored",
1372
- "terminated",
1373
- "complete",
1374
- "waitingForPause",
1375
- "waiting",
1376
- "rollingBack",
1377
- ]),
1378
- Schema.String,
1348
+ export const GetInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
1349
+ Schema.Struct({
1350
+ end: Schema.Union([Schema.String, Schema.Null]),
1351
+ error: Schema.Union([Error2, Schema.Null]),
1352
+ output: Schema.Union([Schema.String, Schema.Number, Schema.Null]),
1353
+ params: Schema.Unknown,
1354
+ queued: Schema.String,
1355
+ rollback: Schema.Union([Rollback, Schema.Null]),
1356
+ start: Schema.Union([Schema.String, Schema.Null]),
1357
+ status: Schema.Union([
1358
+ Schema.Literals([
1359
+ "queued",
1360
+ "running",
1361
+ "paused",
1362
+ "errored",
1363
+ "terminated",
1364
+ "complete",
1365
+ "waitingForPause",
1366
+ "waiting",
1367
+ "rollingBack",
1379
1368
  ]),
1380
- stepCount: Schema.Number,
1381
- steps: Schema.Array(
1382
- Schema.Union([
1383
- GetInstanceResponseStep,
1384
- GetInstanceResponseStep1,
1385
- GetInstanceResponseStep3,
1386
- GetInstanceResponseStep2,
1387
- ]),
1388
- ),
1389
- success: Schema.Union([Schema.Boolean, Schema.Null]),
1390
- trigger: Trigger2,
1391
- versionId: Schema.String,
1392
- schedule: Schema.optional(Schema.Union([Schedule, Schema.Null])),
1393
- })
1394
- .pipe(
1395
- Schema.encodeKeys({
1396
- end: "end",
1397
- error: "error",
1398
- output: "output",
1399
- params: "params",
1400
- queued: "queued",
1401
- rollback: "rollback",
1402
- start: "start",
1403
- status: "status",
1404
- stepCount: "step_count",
1405
- steps: "steps",
1406
- success: "success",
1407
- trigger: "trigger",
1408
- versionId: "versionId",
1409
- schedule: "schedule",
1410
- }),
1411
- )
1412
- .pipe(T.ResponsePath("result")),
1369
+ Schema.String,
1370
+ ]),
1371
+ stepCount: Schema.Number,
1372
+ steps: Schema.Array(
1373
+ Schema.Union([
1374
+ GetInstanceResponseStep,
1375
+ GetInstanceResponseStep1,
1376
+ GetInstanceResponseStep3,
1377
+ GetInstanceResponseStep2,
1378
+ ]),
1379
+ ),
1380
+ success: Schema.Union([Schema.Boolean, Schema.Null]),
1381
+ trigger: Trigger2,
1382
+ versionId: Schema.String,
1383
+ schedule: Schema.optional(Schema.Union([Schedule, Schema.Null])),
1384
+ })
1385
+ .pipe(
1386
+ Schema.encodeKeys({
1387
+ end: "end",
1388
+ error: "error",
1389
+ output: "output",
1390
+ params: "params",
1391
+ queued: "queued",
1392
+ rollback: "rollback",
1393
+ start: "start",
1394
+ status: "status",
1395
+ stepCount: "step_count",
1396
+ steps: "steps",
1397
+ success: "success",
1398
+ trigger: "trigger",
1399
+ versionId: "versionId",
1400
+ schedule: "schedule",
1401
+ }),
1402
+ )
1403
+ .pipe(T.ResponsePath("result")),
1413
1404
  ) as unknown as Schema.Codec<GetInstanceResponse>;
1414
1405
 
1415
1406
  export type GetInstanceError =
@@ -1423,7 +1414,7 @@ export const getInstance: API.OperationMethod<
1423
1414
  GetInstanceResponse,
1424
1415
  GetInstanceError,
1425
1416
  Credentials | HttpClient.HttpClient
1426
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1417
+ > = /*@__PURE__*/ API.make(() => ({
1427
1418
  input: GetInstanceRequest,
1428
1419
  output: GetInstanceResponse,
1429
1420
  errors: [WorkflowNotFound, InvalidRoute, InstanceNotFound],
@@ -1457,41 +1448,40 @@ export interface ListInstancesRequest {
1457
1448
  | (string & {});
1458
1449
  }
1459
1450
 
1460
- export const ListInstancesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1461
- () =>
1462
- Schema.Struct({
1463
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1464
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1465
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1466
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
1467
- cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
1468
- dateEnd: Schema.optional(Schema.String).pipe(T.HttpQuery("date_end")),
1469
- dateStart: Schema.optional(Schema.String).pipe(T.HttpQuery("date_start")),
1470
- direction: Schema.optional(
1471
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1472
- ).pipe(T.HttpQuery("direction")),
1473
- status: Schema.optional(
1474
- Schema.Union([
1475
- Schema.Literals([
1476
- "queued",
1477
- "running",
1478
- "paused",
1479
- "errored",
1480
- "terminated",
1481
- "complete",
1482
- "waitingForPause",
1483
- "waiting",
1484
- "rollingBack",
1485
- ]),
1486
- Schema.String,
1451
+ export const ListInstancesRequest = /*@__PURE__*/ Schema.suspend(() =>
1452
+ Schema.Struct({
1453
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1454
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1455
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1456
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
1457
+ cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
1458
+ dateEnd: Schema.optional(Schema.String).pipe(T.HttpQuery("date_end")),
1459
+ dateStart: Schema.optional(Schema.String).pipe(T.HttpQuery("date_start")),
1460
+ direction: Schema.optional(
1461
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
1462
+ ).pipe(T.HttpQuery("direction")),
1463
+ status: Schema.optional(
1464
+ Schema.Union([
1465
+ Schema.Literals([
1466
+ "queued",
1467
+ "running",
1468
+ "paused",
1469
+ "errored",
1470
+ "terminated",
1471
+ "complete",
1472
+ "waitingForPause",
1473
+ "waiting",
1474
+ "rollingBack",
1487
1475
  ]),
1488
- ).pipe(T.HttpQuery("status")),
1489
- }).pipe(
1490
- T.Http({
1491
- method: "GET",
1492
- path: "/accounts/{account_id}/workflows/{workflowName}/instances",
1493
- }),
1494
- ),
1476
+ Schema.String,
1477
+ ]),
1478
+ ).pipe(T.HttpQuery("status")),
1479
+ }).pipe(
1480
+ T.Http({
1481
+ method: "GET",
1482
+ path: "/accounts/{account_id}/workflows/{workflowName}/instances",
1483
+ }),
1484
+ ),
1495
1485
  ) as unknown as Schema.Codec<ListInstancesRequest>;
1496
1486
 
1497
1487
  export interface ListInstancesResponse {
@@ -1531,14 +1521,13 @@ export interface ListInstancesResponse {
1531
1521
  } | null;
1532
1522
  }
1533
1523
 
1534
- export const ListInstancesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1535
- () =>
1536
- Schema.Struct({
1537
- result: Schema.Array(ListInstancesResponseResult),
1538
- resultInfo: Schema.optional(
1539
- Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
1540
- ),
1541
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1524
+ export const ListInstancesResponse = /*@__PURE__*/ Schema.suspend(() =>
1525
+ Schema.Struct({
1526
+ result: Schema.Array(ListInstancesResponseResult),
1527
+ resultInfo: Schema.optional(
1528
+ Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
1529
+ ),
1530
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
1542
1531
  ) as unknown as Schema.Codec<ListInstancesResponse>;
1543
1532
 
1544
1533
  export type ListInstancesError =
@@ -1553,7 +1542,7 @@ export const listInstances: API.PaginatedOperationMethod<
1553
1542
  ListInstancesResponse,
1554
1543
  ListInstancesError,
1555
1544
  Credentials | HttpClient.HttpClient
1556
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1545
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1557
1546
  input: ListInstancesRequest,
1558
1547
  output: ListInstancesResponse,
1559
1548
  errors: [WorkflowNotFound, WorkflowInternalError, InvalidRoute, InvalidBody],
@@ -1581,25 +1570,24 @@ export interface CreateInstanceRequest {
1581
1570
  params?: unknown;
1582
1571
  }
1583
1572
 
1584
- export const CreateInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1585
- () =>
1586
- Schema.Struct({
1587
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1588
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1589
- instanceId: Schema.optional(Schema.String),
1590
- instanceRetention: Schema.optional(InstanceRetention),
1591
- params: Schema.optional(Schema.Unknown),
1592
- }).pipe(
1593
- Schema.encodeKeys({
1594
- instanceId: "instance_id",
1595
- instanceRetention: "instance_retention",
1596
- params: "params",
1597
- }),
1598
- T.Http({
1599
- method: "POST",
1600
- path: "/accounts/{account_id}/workflows/{workflowName}/instances",
1601
- }),
1602
- ),
1573
+ export const CreateInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
1574
+ Schema.Struct({
1575
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1576
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1577
+ instanceId: Schema.optional(Schema.String),
1578
+ instanceRetention: Schema.optional(InstanceRetention),
1579
+ params: Schema.optional(Schema.Unknown),
1580
+ }).pipe(
1581
+ Schema.encodeKeys({
1582
+ instanceId: "instance_id",
1583
+ instanceRetention: "instance_retention",
1584
+ params: "params",
1585
+ }),
1586
+ T.Http({
1587
+ method: "POST",
1588
+ path: "/accounts/{account_id}/workflows/{workflowName}/instances",
1589
+ }),
1590
+ ),
1603
1591
  ) as unknown as Schema.Codec<CreateInstanceRequest>;
1604
1592
 
1605
1593
  export interface CreateInstanceResponse {
@@ -1628,7 +1616,7 @@ export interface CreateInstanceResponse {
1628
1616
  }
1629
1617
 
1630
1618
  export const CreateInstanceResponse =
1631
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1619
+ /*@__PURE__*/ Schema.suspend(() =>
1632
1620
  Schema.Struct({
1633
1621
  id: Schema.String,
1634
1622
  status: Schema.Union([
@@ -1681,7 +1669,7 @@ export const createInstance: API.OperationMethod<
1681
1669
  CreateInstanceResponse,
1682
1670
  CreateInstanceError,
1683
1671
  Credentials | HttpClient.HttpClient
1684
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1672
+ > = /*@__PURE__*/ API.make(() => ({
1685
1673
  input: CreateInstanceRequest,
1686
1674
  output: CreateInstanceResponse,
1687
1675
  errors: [WorkflowNotFound, InstanceAlreadyExists, InvalidRoute, InvalidBody],
@@ -1702,18 +1690,17 @@ export interface BulkInstanceRequest {
1702
1690
  }[];
1703
1691
  }
1704
1692
 
1705
- export const BulkInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1706
- () =>
1707
- Schema.Struct({
1708
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1709
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1710
- body: Schema.optional(Schema.Array(Body)).pipe(T.HttpBody()),
1711
- }).pipe(
1712
- T.Http({
1713
- method: "POST",
1714
- path: "/accounts/{account_id}/workflows/{workflowName}/instances/batch",
1715
- }),
1716
- ),
1693
+ export const BulkInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
1694
+ Schema.Struct({
1695
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1696
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1697
+ body: Schema.optional(Schema.Array(Body)).pipe(T.HttpBody()),
1698
+ }).pipe(
1699
+ T.Http({
1700
+ method: "POST",
1701
+ path: "/accounts/{account_id}/workflows/{workflowName}/instances/batch",
1702
+ }),
1703
+ ),
1717
1704
  ) as unknown as Schema.Codec<BulkInstanceRequest>;
1718
1705
 
1719
1706
  export interface BulkInstanceResponse {
@@ -1743,11 +1730,10 @@ export interface BulkInstanceResponse {
1743
1730
  }[];
1744
1731
  }
1745
1732
 
1746
- export const BulkInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1747
- () =>
1748
- Schema.Struct({
1749
- result: Schema.Array(BulkInstanceResponseResult),
1750
- }),
1733
+ export const BulkInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
1734
+ Schema.Struct({
1735
+ result: Schema.Array(BulkInstanceResponseResult),
1736
+ }),
1751
1737
  ) as unknown as Schema.Codec<BulkInstanceResponse>;
1752
1738
 
1753
1739
  export type BulkInstanceError =
@@ -1762,7 +1748,7 @@ export const bulkInstance: API.PaginatedOperationMethod<
1762
1748
  BulkInstanceResponse,
1763
1749
  BulkInstanceError,
1764
1750
  Credentials | HttpClient.HttpClient
1765
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1751
+ > = /*@__PURE__*/ API.makePaginated(() => ({
1766
1752
  input: BulkInstanceRequest,
1767
1753
  output: BulkInstanceResponse,
1768
1754
  errors: [WorkflowNotFound, InstanceAlreadyExists, InvalidRoute, InvalidBody],
@@ -1785,24 +1771,23 @@ export interface StepInstanceRequest {
1785
1771
  attempt?: number;
1786
1772
  }
1787
1773
 
1788
- export const StepInstanceRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1789
- () =>
1790
- Schema.Struct({
1791
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1792
- instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
1793
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
1794
- name: Schema.String.pipe(T.HttpQuery("name")),
1795
- type: Schema.Union([
1796
- Schema.Literals(["step", "waitForEvent"]),
1797
- Schema.String,
1798
- ]).pipe(T.HttpQuery("type")),
1799
- attempt: Schema.optional(Schema.Number).pipe(T.HttpQuery("attempt")),
1800
- }).pipe(
1801
- T.Http({
1802
- method: "GET",
1803
- path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}/step",
1804
- }),
1805
- ),
1774
+ export const StepInstanceRequest = /*@__PURE__*/ Schema.suspend(() =>
1775
+ Schema.Struct({
1776
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1777
+ instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
1778
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1779
+ name: Schema.String.pipe(T.HttpQuery("name")),
1780
+ type: Schema.Union([
1781
+ Schema.Literals(["step", "waitForEvent"]),
1782
+ Schema.String,
1783
+ ]).pipe(T.HttpQuery("type")),
1784
+ attempt: Schema.optional(Schema.Number).pipe(T.HttpQuery("attempt")),
1785
+ }).pipe(
1786
+ T.Http({
1787
+ method: "GET",
1788
+ path: "/accounts/{account_id}/workflows/{workflowName}/instances/{instanceId}/step",
1789
+ }),
1790
+ ),
1806
1791
  ) as unknown as Schema.Codec<StepInstanceRequest>;
1807
1792
 
1808
1793
  export interface StepInstanceResponse {
@@ -1823,26 +1808,25 @@ export interface StepInstanceResponse {
1823
1808
  output?: unknown | null;
1824
1809
  }
1825
1810
 
1826
- export const StepInstanceResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
1827
- () =>
1828
- Schema.Struct({
1829
- error: Schema.Union([Error2, Schema.Null]),
1830
- status: Schema.Union([
1831
- Schema.Literals([
1832
- "queued",
1833
- "running",
1834
- "paused",
1835
- "errored",
1836
- "terminated",
1837
- "complete",
1838
- "waitingForPause",
1839
- "waiting",
1840
- "rollingBack",
1841
- ]),
1842
- Schema.String,
1811
+ export const StepInstanceResponse = /*@__PURE__*/ Schema.suspend(() =>
1812
+ Schema.Struct({
1813
+ error: Schema.Union([Error2, Schema.Null]),
1814
+ status: Schema.Union([
1815
+ Schema.Literals([
1816
+ "queued",
1817
+ "running",
1818
+ "paused",
1819
+ "errored",
1820
+ "terminated",
1821
+ "complete",
1822
+ "waitingForPause",
1823
+ "waiting",
1824
+ "rollingBack",
1843
1825
  ]),
1844
- output: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1845
- }).pipe(T.ResponsePath("result")),
1826
+ Schema.String,
1827
+ ]),
1828
+ output: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1829
+ }).pipe(T.ResponsePath("result")),
1846
1830
  ) as unknown as Schema.Codec<StepInstanceResponse>;
1847
1831
 
1848
1832
  export type StepInstanceError = DefaultErrors;
@@ -1852,7 +1836,7 @@ export const stepInstance: API.OperationMethod<
1852
1836
  StepInstanceResponse,
1853
1837
  StepInstanceError,
1854
1838
  Credentials | HttpClient.HttpClient
1855
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1839
+ > = /*@__PURE__*/ API.make(() => ({
1856
1840
  input: StepInstanceRequest,
1857
1841
  output: StepInstanceResponse,
1858
1842
  errors: [],
@@ -1873,7 +1857,7 @@ export interface CreateInstanceEventRequest {
1873
1857
  }
1874
1858
 
1875
1859
  export const CreateInstanceEventRequest =
1876
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1860
+ /*@__PURE__*/ Schema.suspend(() =>
1877
1861
  Schema.Struct({
1878
1862
  workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1879
1863
  instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
@@ -1891,7 +1875,7 @@ export const CreateInstanceEventRequest =
1891
1875
  export type CreateInstanceEventResponse = unknown;
1892
1876
 
1893
1877
  export const CreateInstanceEventResponse =
1894
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1878
+ /*@__PURE__*/ Schema.suspend(() =>
1895
1879
  Schema.Unknown.pipe(T.ResponsePath("result")),
1896
1880
  ) as unknown as Schema.Codec<CreateInstanceEventResponse>;
1897
1881
 
@@ -1907,7 +1891,7 @@ export const createInstanceEvent: API.OperationMethod<
1907
1891
  CreateInstanceEventResponse,
1908
1892
  CreateInstanceEventError,
1909
1893
  Credentials | HttpClient.HttpClient
1910
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1894
+ > = /*@__PURE__*/ API.make(() => ({
1911
1895
  input: CreateInstanceEventRequest,
1912
1896
  output: CreateInstanceEventResponse,
1913
1897
  errors: [WorkflowNotFound, InvalidRoute, InstanceNotFound, InvalidBody],
@@ -1935,7 +1919,7 @@ export interface PatchInstanceStatusRequest {
1935
1919
  }
1936
1920
 
1937
1921
  export const PatchInstanceStatusRequest =
1938
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1922
+ /*@__PURE__*/ Schema.suspend(() =>
1939
1923
  Schema.Struct({
1940
1924
  workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
1941
1925
  instanceId: Schema.String.pipe(T.HttpPath("instanceId")),
@@ -1971,7 +1955,7 @@ export interface PatchInstanceStatusResponse {
1971
1955
  }
1972
1956
 
1973
1957
  export const PatchInstanceStatusResponse =
1974
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1958
+ /*@__PURE__*/ Schema.suspend(() =>
1975
1959
  Schema.Struct({
1976
1960
  status: Schema.Union([
1977
1961
  Schema.Literals([
@@ -2003,7 +1987,7 @@ export const patchInstanceStatus: API.OperationMethod<
2003
1987
  PatchInstanceStatusResponse,
2004
1988
  PatchInstanceStatusError,
2005
1989
  Credentials | HttpClient.HttpClient
2006
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1990
+ > = /*@__PURE__*/ API.make(() => ({
2007
1991
  input: PatchInstanceStatusRequest,
2008
1992
  output: PatchInstanceStatusResponse,
2009
1993
  errors: [
@@ -2024,18 +2008,17 @@ export interface GetVersionRequest {
2024
2008
  accountId: string;
2025
2009
  }
2026
2010
 
2027
- export const GetVersionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2028
- () =>
2029
- Schema.Struct({
2030
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2031
- versionId: Schema.String.pipe(T.HttpPath("versionId")),
2032
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2033
- }).pipe(
2034
- T.Http({
2035
- method: "GET",
2036
- path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}",
2037
- }),
2038
- ),
2011
+ export const GetVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
2012
+ Schema.Struct({
2013
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2014
+ versionId: Schema.String.pipe(T.HttpPath("versionId")),
2015
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2016
+ }).pipe(
2017
+ T.Http({
2018
+ method: "GET",
2019
+ path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}",
2020
+ }),
2021
+ ),
2039
2022
  ) as unknown as Schema.Codec<GetVersionRequest>;
2040
2023
 
2041
2024
  export interface GetVersionResponse {
@@ -2050,34 +2033,33 @@ export interface GetVersionResponse {
2050
2033
  limits?: { steps?: number | null } | null;
2051
2034
  }
2052
2035
 
2053
- export const GetVersionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2054
- () =>
2055
- Schema.Struct({
2056
- id: Schema.String,
2057
- className: Schema.String,
2058
- createdOn: Schema.String,
2059
- hasDag: Schema.Boolean,
2060
- language: Schema.Union([
2061
- Schema.Literals(["javascript", "python"]),
2062
- Schema.String,
2063
- ]),
2064
- modifiedOn: Schema.String,
2065
- workflowId: Schema.String,
2066
- limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
2067
- })
2068
- .pipe(
2069
- Schema.encodeKeys({
2070
- id: "id",
2071
- className: "class_name",
2072
- createdOn: "created_on",
2073
- hasDag: "has_dag",
2074
- language: "language",
2075
- modifiedOn: "modified_on",
2076
- workflowId: "workflow_id",
2077
- limits: "limits",
2078
- }),
2079
- )
2080
- .pipe(T.ResponsePath("result")),
2036
+ export const GetVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
2037
+ Schema.Struct({
2038
+ id: Schema.String,
2039
+ className: Schema.String,
2040
+ createdOn: Schema.String,
2041
+ hasDag: Schema.Boolean,
2042
+ language: Schema.Union([
2043
+ Schema.Literals(["javascript", "python"]),
2044
+ Schema.String,
2045
+ ]),
2046
+ modifiedOn: Schema.String,
2047
+ workflowId: Schema.String,
2048
+ limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
2049
+ })
2050
+ .pipe(
2051
+ Schema.encodeKeys({
2052
+ id: "id",
2053
+ className: "class_name",
2054
+ createdOn: "created_on",
2055
+ hasDag: "has_dag",
2056
+ language: "language",
2057
+ modifiedOn: "modified_on",
2058
+ workflowId: "workflow_id",
2059
+ limits: "limits",
2060
+ }),
2061
+ )
2062
+ .pipe(T.ResponsePath("result")),
2081
2063
  ) as unknown as Schema.Codec<GetVersionResponse>;
2082
2064
 
2083
2065
  export type GetVersionError =
@@ -2091,7 +2073,7 @@ export const getVersion: API.OperationMethod<
2091
2073
  GetVersionResponse,
2092
2074
  GetVersionError,
2093
2075
  Credentials | HttpClient.HttpClient
2094
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2076
+ > = /*@__PURE__*/ API.make(() => ({
2095
2077
  input: GetVersionRequest,
2096
2078
  output: GetVersionResponse,
2097
2079
  errors: [WorkflowNotFound, InvalidRoute, VersionNotFound],
@@ -2105,19 +2087,18 @@ export interface ListVersionsRequest {
2105
2087
  perPage?: number;
2106
2088
  }
2107
2089
 
2108
- export const ListVersionsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2109
- () =>
2110
- Schema.Struct({
2111
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2112
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2113
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2114
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2115
- }).pipe(
2116
- T.Http({
2117
- method: "GET",
2118
- path: "/accounts/{account_id}/workflows/{workflowName}/versions",
2119
- }),
2120
- ),
2090
+ export const ListVersionsRequest = /*@__PURE__*/ Schema.suspend(() =>
2091
+ Schema.Struct({
2092
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2093
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2094
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2095
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2096
+ }).pipe(
2097
+ T.Http({
2098
+ method: "GET",
2099
+ path: "/accounts/{account_id}/workflows/{workflowName}/versions",
2100
+ }),
2101
+ ),
2121
2102
  ) as unknown as Schema.Codec<ListVersionsRequest>;
2122
2103
 
2123
2104
  export interface ListVersionsResponse {
@@ -2139,14 +2120,13 @@ export interface ListVersionsResponse {
2139
2120
  } | null;
2140
2121
  }
2141
2122
 
2142
- export const ListVersionsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2143
- () =>
2144
- Schema.Struct({
2145
- result: Schema.Array(ListVersionsResponseResult),
2146
- resultInfo: Schema.optional(
2147
- Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
2148
- ),
2149
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2123
+ export const ListVersionsResponse = /*@__PURE__*/ Schema.suspend(() =>
2124
+ Schema.Struct({
2125
+ result: Schema.Array(ListVersionsResponseResult),
2126
+ resultInfo: Schema.optional(
2127
+ Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
2128
+ ),
2129
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2150
2130
  ) as unknown as Schema.Codec<ListVersionsResponse>;
2151
2131
 
2152
2132
  export type ListVersionsError = DefaultErrors | WorkflowNotFound | InvalidRoute;
@@ -2156,7 +2136,7 @@ export const listVersions: API.PaginatedOperationMethod<
2156
2136
  ListVersionsResponse,
2157
2137
  ListVersionsError,
2158
2138
  Credentials | HttpClient.HttpClient
2159
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2139
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2160
2140
  input: ListVersionsRequest,
2161
2141
  output: ListVersionsResponse,
2162
2142
  errors: [WorkflowNotFound, InvalidRoute],
@@ -2175,18 +2155,17 @@ export interface GraphVersionRequest {
2175
2155
  accountId: string;
2176
2156
  }
2177
2157
 
2178
- export const GraphVersionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2179
- () =>
2180
- Schema.Struct({
2181
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2182
- versionId: Schema.String.pipe(T.HttpPath("versionId")),
2183
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2184
- }).pipe(
2185
- T.Http({
2186
- method: "GET",
2187
- path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}/graph",
2188
- }),
2189
- ),
2158
+ export const GraphVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
2159
+ Schema.Struct({
2160
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2161
+ versionId: Schema.String.pipe(T.HttpPath("versionId")),
2162
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2163
+ }).pipe(
2164
+ T.Http({
2165
+ method: "GET",
2166
+ path: "/accounts/{account_id}/workflows/{workflowName}/versions/{versionId}/graph",
2167
+ }),
2168
+ ),
2190
2169
  ) as unknown as Schema.Codec<GraphVersionRequest>;
2191
2170
 
2192
2171
  export interface GraphVersionResponse {
@@ -2291,27 +2270,26 @@ export interface GraphVersionResponse {
2291
2270
  workflowId: string;
2292
2271
  }
2293
2272
 
2294
- export const GraphVersionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2295
- () =>
2296
- Schema.Struct({
2297
- id: Schema.String,
2298
- className: Schema.String,
2299
- createdOn: Schema.String,
2300
- graph: Schema.Union([Graph, Schema.Null]),
2301
- modifiedOn: Schema.String,
2302
- workflowId: Schema.String,
2303
- })
2304
- .pipe(
2305
- Schema.encodeKeys({
2306
- id: "id",
2307
- className: "class_name",
2308
- createdOn: "created_on",
2309
- graph: "graph",
2310
- modifiedOn: "modified_on",
2311
- workflowId: "workflow_id",
2312
- }),
2313
- )
2314
- .pipe(T.ResponsePath("result")),
2273
+ export const GraphVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
2274
+ Schema.Struct({
2275
+ id: Schema.String,
2276
+ className: Schema.String,
2277
+ createdOn: Schema.String,
2278
+ graph: Schema.Union([Graph, Schema.Null]),
2279
+ modifiedOn: Schema.String,
2280
+ workflowId: Schema.String,
2281
+ })
2282
+ .pipe(
2283
+ Schema.encodeKeys({
2284
+ id: "id",
2285
+ className: "class_name",
2286
+ createdOn: "created_on",
2287
+ graph: "graph",
2288
+ modifiedOn: "modified_on",
2289
+ workflowId: "workflow_id",
2290
+ }),
2291
+ )
2292
+ .pipe(T.ResponsePath("result")),
2315
2293
  ) as unknown as Schema.Codec<GraphVersionResponse>;
2316
2294
 
2317
2295
  export type GraphVersionError = DefaultErrors;
@@ -2321,7 +2299,7 @@ export const graphVersion: API.OperationMethod<
2321
2299
  GraphVersionResponse,
2322
2300
  GraphVersionError,
2323
2301
  Credentials | HttpClient.HttpClient
2324
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2302
+ > = /*@__PURE__*/ API.make(() => ({
2325
2303
  input: GraphVersionRequest,
2326
2304
  output: GraphVersionResponse,
2327
2305
  errors: [],
@@ -2336,17 +2314,16 @@ export interface GetWorkflowRequest {
2336
2314
  accountId: string;
2337
2315
  }
2338
2316
 
2339
- export const GetWorkflowRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2340
- () =>
2341
- Schema.Struct({
2342
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2343
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2344
- }).pipe(
2345
- T.Http({
2346
- method: "GET",
2347
- path: "/accounts/{account_id}/workflows/{workflowName}",
2348
- }),
2349
- ),
2317
+ export const GetWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
2318
+ Schema.Struct({
2319
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2320
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2321
+ }).pipe(
2322
+ T.Http({
2323
+ method: "GET",
2324
+ path: "/accounts/{account_id}/workflows/{workflowName}",
2325
+ }),
2326
+ ),
2350
2327
  ) as unknown as Schema.Codec<GetWorkflowRequest>;
2351
2328
 
2352
2329
  export interface GetWorkflowResponse {
@@ -2371,35 +2348,34 @@ export interface GetWorkflowResponse {
2371
2348
  schedules?: { cron: string; nextInstance: string }[] | null;
2372
2349
  }
2373
2350
 
2374
- export const GetWorkflowResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2375
- () =>
2376
- Schema.Struct({
2377
- id: Schema.String,
2378
- className: Schema.String,
2379
- createdOn: Schema.String,
2380
- instances: Instances,
2381
- modifiedOn: Schema.String,
2382
- name: Schema.String,
2383
- scriptName: Schema.String,
2384
- triggeredOn: Schema.Union([Schema.String, Schema.Null]),
2385
- schedules: Schema.optional(
2386
- Schema.Union([Schema.Array(Schedule2), Schema.Null]),
2387
- ),
2388
- })
2389
- .pipe(
2390
- Schema.encodeKeys({
2391
- id: "id",
2392
- className: "class_name",
2393
- createdOn: "created_on",
2394
- instances: "instances",
2395
- modifiedOn: "modified_on",
2396
- name: "name",
2397
- scriptName: "script_name",
2398
- triggeredOn: "triggered_on",
2399
- schedules: "schedules",
2400
- }),
2401
- )
2402
- .pipe(T.ResponsePath("result")),
2351
+ export const GetWorkflowResponse = /*@__PURE__*/ Schema.suspend(() =>
2352
+ Schema.Struct({
2353
+ id: Schema.String,
2354
+ className: Schema.String,
2355
+ createdOn: Schema.String,
2356
+ instances: Instances,
2357
+ modifiedOn: Schema.String,
2358
+ name: Schema.String,
2359
+ scriptName: Schema.String,
2360
+ triggeredOn: Schema.Union([Schema.String, Schema.Null]),
2361
+ schedules: Schema.optional(
2362
+ Schema.Union([Schema.Array(Schedule2), Schema.Null]),
2363
+ ),
2364
+ })
2365
+ .pipe(
2366
+ Schema.encodeKeys({
2367
+ id: "id",
2368
+ className: "class_name",
2369
+ createdOn: "created_on",
2370
+ instances: "instances",
2371
+ modifiedOn: "modified_on",
2372
+ name: "name",
2373
+ scriptName: "script_name",
2374
+ triggeredOn: "triggered_on",
2375
+ schedules: "schedules",
2376
+ }),
2377
+ )
2378
+ .pipe(T.ResponsePath("result")),
2403
2379
  ) as unknown as Schema.Codec<GetWorkflowResponse>;
2404
2380
 
2405
2381
  export type GetWorkflowError = DefaultErrors | WorkflowNotFound | InvalidRoute;
@@ -2409,7 +2385,7 @@ export const getWorkflow: API.OperationMethod<
2409
2385
  GetWorkflowResponse,
2410
2386
  GetWorkflowError,
2411
2387
  Credentials | HttpClient.HttpClient
2412
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2388
+ > = /*@__PURE__*/ API.make(() => ({
2413
2389
  input: GetWorkflowRequest,
2414
2390
  output: GetWorkflowResponse,
2415
2391
  errors: [WorkflowNotFound, InvalidRoute],
@@ -2424,16 +2400,13 @@ export interface ListWorkflowsRequest {
2424
2400
  search?: string;
2425
2401
  }
2426
2402
 
2427
- export const ListWorkflowsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2428
- () =>
2429
- Schema.Struct({
2430
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2431
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2432
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2433
- search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
2434
- }).pipe(
2435
- T.Http({ method: "GET", path: "/accounts/{account_id}/workflows" }),
2436
- ),
2403
+ export const ListWorkflowsRequest = /*@__PURE__*/ Schema.suspend(() =>
2404
+ Schema.Struct({
2405
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2406
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2407
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
2408
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
2409
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workflows" })),
2437
2410
  ) as unknown as Schema.Codec<ListWorkflowsRequest>;
2438
2411
 
2439
2412
  export interface ListWorkflowsResponse {
@@ -2466,14 +2439,13 @@ export interface ListWorkflowsResponse {
2466
2439
  } | null;
2467
2440
  }
2468
2441
 
2469
- export const ListWorkflowsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2470
- () =>
2471
- Schema.Struct({
2472
- result: Schema.Array(ListWorkflowsResponseResult),
2473
- resultInfo: Schema.optional(
2474
- Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
2475
- ),
2476
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2442
+ export const ListWorkflowsResponse = /*@__PURE__*/ Schema.suspend(() =>
2443
+ Schema.Struct({
2444
+ result: Schema.Array(ListWorkflowsResponseResult),
2445
+ resultInfo: Schema.optional(
2446
+ Schema.Union([ListInstancesResponseResultInfo, Schema.Null]),
2447
+ ),
2448
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
2477
2449
  ) as unknown as Schema.Codec<ListWorkflowsResponse>;
2478
2450
 
2479
2451
  export type ListWorkflowsError = DefaultErrors;
@@ -2483,7 +2455,7 @@ export const listWorkflows: API.PaginatedOperationMethod<
2483
2455
  ListWorkflowsResponse,
2484
2456
  ListWorkflowsError,
2485
2457
  Credentials | HttpClient.HttpClient
2486
- > = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2458
+ > = /*@__PURE__*/ API.makePaginated(() => ({
2487
2459
  input: ListWorkflowsRequest,
2488
2460
  output: ListWorkflowsResponse,
2489
2461
  errors: [],
@@ -2510,27 +2482,26 @@ export interface PutWorkflowRequest {
2510
2482
  schedules?: { cron: string }[];
2511
2483
  }
2512
2484
 
2513
- export const PutWorkflowRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2514
- () =>
2515
- Schema.Struct({
2516
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2517
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2518
- className: Schema.String,
2519
- scriptName: Schema.String,
2520
- limits: Schema.optional(Limits),
2521
- schedules: Schema.optional(Schema.Array(Schedule3)),
2522
- }).pipe(
2523
- Schema.encodeKeys({
2524
- className: "class_name",
2525
- scriptName: "script_name",
2526
- limits: "limits",
2527
- schedules: "schedules",
2528
- }),
2529
- T.Http({
2530
- method: "PUT",
2531
- path: "/accounts/{account_id}/workflows/{workflowName}",
2532
- }),
2533
- ),
2485
+ export const PutWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
2486
+ Schema.Struct({
2487
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2488
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2489
+ className: Schema.String,
2490
+ scriptName: Schema.String,
2491
+ limits: Schema.optional(Limits),
2492
+ schedules: Schema.optional(Schema.Array(Schedule3)),
2493
+ }).pipe(
2494
+ Schema.encodeKeys({
2495
+ className: "class_name",
2496
+ scriptName: "script_name",
2497
+ limits: "limits",
2498
+ schedules: "schedules",
2499
+ }),
2500
+ T.Http({
2501
+ method: "PUT",
2502
+ path: "/accounts/{account_id}/workflows/{workflowName}",
2503
+ }),
2504
+ ),
2534
2505
  ) as unknown as Schema.Codec<PutWorkflowRequest>;
2535
2506
 
2536
2507
  export interface PutWorkflowResponse {
@@ -2546,37 +2517,36 @@ export interface PutWorkflowResponse {
2546
2517
  versionId: string;
2547
2518
  }
2548
2519
 
2549
- export const PutWorkflowResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2550
- () =>
2551
- Schema.Struct({
2552
- id: Schema.String,
2553
- className: Schema.String,
2554
- createdOn: Schema.String,
2555
- isDeleted: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2556
- modifiedOn: Schema.String,
2557
- name: Schema.String,
2558
- scriptName: Schema.String,
2559
- terminatorRunning: Schema.optional(
2560
- Schema.Union([Schema.Number, Schema.Null]),
2561
- ),
2562
- triggeredOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2563
- versionId: Schema.String,
2564
- })
2565
- .pipe(
2566
- Schema.encodeKeys({
2567
- id: "id",
2568
- className: "class_name",
2569
- createdOn: "created_on",
2570
- isDeleted: "is_deleted",
2571
- modifiedOn: "modified_on",
2572
- name: "name",
2573
- scriptName: "script_name",
2574
- terminatorRunning: "terminator_running",
2575
- triggeredOn: "triggered_on",
2576
- versionId: "version_id",
2577
- }),
2578
- )
2579
- .pipe(T.ResponsePath("result")),
2520
+ export const PutWorkflowResponse = /*@__PURE__*/ Schema.suspend(() =>
2521
+ Schema.Struct({
2522
+ id: Schema.String,
2523
+ className: Schema.String,
2524
+ createdOn: Schema.String,
2525
+ isDeleted: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2526
+ modifiedOn: Schema.String,
2527
+ name: Schema.String,
2528
+ scriptName: Schema.String,
2529
+ terminatorRunning: Schema.optional(
2530
+ Schema.Union([Schema.Number, Schema.Null]),
2531
+ ),
2532
+ triggeredOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2533
+ versionId: Schema.String,
2534
+ })
2535
+ .pipe(
2536
+ Schema.encodeKeys({
2537
+ id: "id",
2538
+ className: "class_name",
2539
+ createdOn: "created_on",
2540
+ isDeleted: "is_deleted",
2541
+ modifiedOn: "modified_on",
2542
+ name: "name",
2543
+ scriptName: "script_name",
2544
+ terminatorRunning: "terminator_running",
2545
+ triggeredOn: "triggered_on",
2546
+ versionId: "version_id",
2547
+ }),
2548
+ )
2549
+ .pipe(T.ResponsePath("result")),
2580
2550
  ) as unknown as Schema.Codec<PutWorkflowResponse>;
2581
2551
 
2582
2552
  export type PutWorkflowError =
@@ -2589,7 +2559,7 @@ export const putWorkflow: API.OperationMethod<
2589
2559
  PutWorkflowResponse,
2590
2560
  PutWorkflowError,
2591
2561
  Credentials | HttpClient.HttpClient
2592
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2562
+ > = /*@__PURE__*/ API.make(() => ({
2593
2563
  input: PutWorkflowRequest,
2594
2564
  output: PutWorkflowResponse,
2595
2565
  errors: [WorkflowInternalError, InvalidRoute],
@@ -2600,17 +2570,16 @@ export interface DeleteWorkflowRequest {
2600
2570
  accountId: string;
2601
2571
  }
2602
2572
 
2603
- export const DeleteWorkflowRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
2604
- () =>
2605
- Schema.Struct({
2606
- workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2607
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
2608
- }).pipe(
2609
- T.Http({
2610
- method: "DELETE",
2611
- path: "/accounts/{account_id}/workflows/{workflowName}",
2612
- }),
2613
- ),
2573
+ export const DeleteWorkflowRequest = /*@__PURE__*/ Schema.suspend(() =>
2574
+ Schema.Struct({
2575
+ workflowName: Schema.String.pipe(T.HttpPath("workflowName")),
2576
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
2577
+ }).pipe(
2578
+ T.Http({
2579
+ method: "DELETE",
2580
+ path: "/accounts/{account_id}/workflows/{workflowName}",
2581
+ }),
2582
+ ),
2614
2583
  ) as unknown as Schema.Codec<DeleteWorkflowRequest>;
2615
2584
 
2616
2585
  export interface DeleteWorkflowResponse {
@@ -2619,7 +2588,7 @@ export interface DeleteWorkflowResponse {
2619
2588
  }
2620
2589
 
2621
2590
  export const DeleteWorkflowResponse =
2622
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
2591
+ /*@__PURE__*/ Schema.suspend(() =>
2623
2592
  Schema.Struct({
2624
2593
  status: Schema.Literal("ok"),
2625
2594
  success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -2636,7 +2605,7 @@ export const deleteWorkflow: API.OperationMethod<
2636
2605
  DeleteWorkflowResponse,
2637
2606
  DeleteWorkflowError,
2638
2607
  Credentials | HttpClient.HttpClient
2639
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2608
+ > = /*@__PURE__*/ API.make(() => ({
2640
2609
  input: DeleteWorkflowRequest,
2641
2610
  output: DeleteWorkflowResponse,
2642
2611
  errors: [WorkflowNotFound, InvalidRoute],