@trigger.dev/core 4.5.9 → 4.5.10

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 (328) hide show
  1. package/dist/commonjs/debounce.js.map +1 -1
  2. package/dist/commonjs/eventFilterMatches.js.map +1 -1
  3. package/dist/commonjs/logger.js.map +1 -1
  4. package/dist/commonjs/package.json +6 -1
  5. package/dist/commonjs/retry.js.map +1 -1
  6. package/dist/commonjs/schemas/eventFilter.js.map +1 -1
  7. package/dist/commonjs/schemas/json.js.map +1 -1
  8. package/dist/commonjs/utils.js.map +1 -1
  9. package/dist/commonjs/v3/apiClient/core.js.map +1 -1
  10. package/dist/commonjs/v3/apiClient/errors.js.map +1 -1
  11. package/dist/commonjs/v3/apiClient/getBranch.js.map +1 -1
  12. package/dist/commonjs/v3/apiClient/index.d.ts +422 -422
  13. package/dist/commonjs/v3/apiClient/index.js.map +1 -1
  14. package/dist/commonjs/v3/apiClient/pagination.js.map +1 -1
  15. package/dist/commonjs/v3/apiClient/runStream.d.ts +8 -0
  16. package/dist/commonjs/v3/apiClient/runStream.js +64 -17
  17. package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
  18. package/dist/commonjs/v3/apiClient/runStream.test.js +34 -0
  19. package/dist/commonjs/v3/apiClient/runStream.test.js.map +1 -1
  20. package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
  21. package/dist/commonjs/v3/apiClientManager/index.js.map +1 -1
  22. package/dist/commonjs/v3/apiKeys.js.map +1 -1
  23. package/dist/commonjs/v3/apps/backoff.js.map +1 -1
  24. package/dist/commonjs/v3/apps/exec.js.map +1 -1
  25. package/dist/commonjs/v3/apps/http.js.map +1 -1
  26. package/dist/commonjs/v3/build/extensions.js.map +1 -1
  27. package/dist/commonjs/v3/build/flags.js.map +1 -1
  28. package/dist/commonjs/v3/build/runtime.js.map +1 -1
  29. package/dist/commonjs/v3/clock/clock.js.map +1 -1
  30. package/dist/commonjs/v3/clock/index.js.map +1 -1
  31. package/dist/commonjs/v3/clock/preciseWallClock.js.map +1 -1
  32. package/dist/commonjs/v3/clock/simpleClock.js.map +1 -1
  33. package/dist/commonjs/v3/consoleInterceptor.js.map +1 -1
  34. package/dist/commonjs/v3/errors.d.ts +4 -4
  35. package/dist/commonjs/v3/errors.js.map +1 -1
  36. package/dist/commonjs/v3/heartbeats/api.js.map +1 -1
  37. package/dist/commonjs/v3/heartbeats/manager.js.map +1 -1
  38. package/dist/commonjs/v3/icons.d.ts +1 -1
  39. package/dist/commonjs/v3/icons.js.map +1 -1
  40. package/dist/commonjs/v3/idempotency-key-catalog/inMemoryIdempotencyKeyCatalog.js.map +1 -1
  41. package/dist/commonjs/v3/idempotency-key-catalog/index.js.map +1 -1
  42. package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
  43. package/dist/commonjs/v3/index.js.map +1 -1
  44. package/dist/commonjs/v3/inputStreams/index.js.map +1 -1
  45. package/dist/commonjs/v3/inputStreams/manager.js.map +1 -1
  46. package/dist/commonjs/v3/inputStreams/noopManager.js.map +1 -1
  47. package/dist/commonjs/v3/inputStreams/types.js.map +1 -1
  48. package/dist/commonjs/v3/isomorphic/dates.js.map +1 -1
  49. package/dist/commonjs/v3/isomorphic/duration.js.map +1 -1
  50. package/dist/commonjs/v3/isomorphic/friendlyId.js.map +1 -1
  51. package/dist/commonjs/v3/isomorphic/maxDuration.js.map +1 -1
  52. package/dist/commonjs/v3/isomorphic/queueName.js.map +1 -1
  53. package/dist/commonjs/v3/isomorphic/runOpsResidency.js.map +1 -1
  54. package/dist/commonjs/v3/isomorphic/traceContext.js.map +1 -1
  55. package/dist/commonjs/v3/jwt.js.map +1 -1
  56. package/dist/commonjs/v3/lifecycleHooks/index.js.map +1 -1
  57. package/dist/commonjs/v3/lifecycleHooks/manager.js.map +1 -1
  58. package/dist/commonjs/v3/limits.js.map +1 -1
  59. package/dist/commonjs/v3/locals/index.js.map +1 -1
  60. package/dist/commonjs/v3/locals/manager.js.map +1 -1
  61. package/dist/commonjs/v3/locals-api.js.map +1 -1
  62. package/dist/commonjs/v3/logger/index.js.map +1 -1
  63. package/dist/commonjs/v3/logger/taskLogger.js.map +1 -1
  64. package/dist/commonjs/v3/machines/index.js.map +1 -1
  65. package/dist/commonjs/v3/otel/diskIoMetrics.js.map +1 -1
  66. package/dist/commonjs/v3/otel/filesystemMetrics.js.map +1 -1
  67. package/dist/commonjs/v3/otel/nodejsRuntimeMetrics.js.map +1 -1
  68. package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
  69. package/dist/commonjs/v3/otel/utils.js.map +1 -1
  70. package/dist/commonjs/v3/realtimeStreams/index.js.map +1 -1
  71. package/dist/commonjs/v3/realtimeStreams/manager.js.map +1 -1
  72. package/dist/commonjs/v3/realtimeStreams/noopManager.js.map +1 -1
  73. package/dist/commonjs/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  74. package/dist/commonjs/v3/realtimeStreams/sessionStreamOneshot.js.map +1 -1
  75. package/dist/commonjs/v3/realtimeStreams/streamInstance.js.map +1 -1
  76. package/dist/commonjs/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  77. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js +10 -2
  78. package/dist/commonjs/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  79. package/dist/commonjs/v3/resource-catalog/index.js.map +1 -1
  80. package/dist/commonjs/v3/resource-catalog/noopResourceCatalog.js.map +1 -1
  81. package/dist/commonjs/v3/resource-catalog/standardResourceCatalog.js.map +1 -1
  82. package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPool.js.map +1 -1
  83. package/dist/commonjs/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -1
  84. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +211 -211
  85. package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
  86. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
  87. package/dist/commonjs/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -1
  88. package/dist/commonjs/v3/runEngineWorker/supervisor/scalingStrategies.js.map +1 -1
  89. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +1126 -1126
  90. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
  91. package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
  92. package/dist/commonjs/v3/runEngineWorker/supervisor/util.js.map +1 -1
  93. package/dist/commonjs/v3/runEngineWorker/util.js.map +1 -1
  94. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +162 -162
  95. package/dist/commonjs/v3/runEngineWorker/workload/http.js +8 -0
  96. package/dist/commonjs/v3/runEngineWorker/workload/http.js.map +1 -1
  97. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +974 -974
  98. package/dist/commonjs/v3/runEngineWorker/workload/util.js.map +1 -1
  99. package/dist/commonjs/v3/runMetadata/index.js.map +1 -1
  100. package/dist/commonjs/v3/runMetadata/manager.js.map +1 -1
  101. package/dist/commonjs/v3/runMetadata/noopManager.js.map +1 -1
  102. package/dist/commonjs/v3/runMetadata/operations.js.map +1 -1
  103. package/dist/commonjs/v3/runTimelineMetrics/index.js.map +1 -1
  104. package/dist/commonjs/v3/runTimelineMetrics/runTimelineMetricsManager.js.map +1 -1
  105. package/dist/commonjs/v3/runtime/index.js.map +1 -1
  106. package/dist/commonjs/v3/runtime/noopRuntimeManager.js.map +1 -1
  107. package/dist/commonjs/v3/runtime/preventMultipleWaits.js.map +1 -1
  108. package/dist/commonjs/v3/runtime/sharedRuntimeManager.js.map +1 -1
  109. package/dist/commonjs/v3/schemas/api.d.ts +2930 -2926
  110. package/dist/commonjs/v3/schemas/api.js +2 -0
  111. package/dist/commonjs/v3/schemas/api.js.map +1 -1
  112. package/dist/commonjs/v3/schemas/build.d.ts +614 -614
  113. package/dist/commonjs/v3/schemas/build.js.map +1 -1
  114. package/dist/commonjs/v3/schemas/checkpoints.d.ts +237 -237
  115. package/dist/commonjs/v3/schemas/common.d.ts +1409 -1409
  116. package/dist/commonjs/v3/schemas/common.js.map +1 -1
  117. package/dist/commonjs/v3/schemas/errors.d.ts +38 -38
  118. package/dist/commonjs/v3/schemas/errors.js.map +1 -1
  119. package/dist/commonjs/v3/schemas/eventFilter.js.map +1 -1
  120. package/dist/commonjs/v3/schemas/fetch.d.ts +70 -70
  121. package/dist/commonjs/v3/schemas/fetch.js.map +1 -1
  122. package/dist/commonjs/v3/schemas/idempotencyKey.test.js +14 -0
  123. package/dist/commonjs/v3/schemas/idempotencyKey.test.js.map +1 -1
  124. package/dist/commonjs/v3/schemas/messages.d.ts +994 -994
  125. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  126. package/dist/commonjs/v3/schemas/openTelemetry.d.ts +90 -90
  127. package/dist/commonjs/v3/schemas/openTelemetry.js.map +1 -1
  128. package/dist/commonjs/v3/schemas/query.d.ts +41 -41
  129. package/dist/commonjs/v3/schemas/query.js.map +1 -1
  130. package/dist/commonjs/v3/schemas/queues.d.ts +10 -10
  131. package/dist/commonjs/v3/schemas/queues.js.map +1 -1
  132. package/dist/commonjs/v3/schemas/resources.d.ts +128 -128
  133. package/dist/commonjs/v3/schemas/resources.js.map +1 -1
  134. package/dist/commonjs/v3/schemas/runEngine.d.ts +490 -490
  135. package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
  136. package/dist/commonjs/v3/schemas/schemas.d.ts +644 -644
  137. package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
  138. package/dist/commonjs/v3/schemas/style.d.ts +2 -2
  139. package/dist/commonjs/v3/schemas/style.js.map +1 -1
  140. package/dist/commonjs/v3/schemas/webhooks.d.ts +814 -814
  141. package/dist/commonjs/v3/schemas/webhooks.js.map +1 -1
  142. package/dist/commonjs/v3/sdkScope/index.js.map +1 -1
  143. package/dist/commonjs/v3/serverOnly/checkpointClient.d.ts +16 -0
  144. package/dist/commonjs/v3/serverOnly/checkpointClient.js +33 -0
  145. package/dist/commonjs/v3/serverOnly/checkpointClient.js.map +1 -1
  146. package/dist/commonjs/v3/serverOnly/httpServer.js.map +1 -1
  147. package/dist/commonjs/v3/serverOnly/idempotencyKeys.js.map +1 -1
  148. package/dist/commonjs/v3/serverOnly/jumpHash.js.map +1 -1
  149. package/dist/commonjs/v3/serverOnly/k8s.js.map +1 -1
  150. package/dist/commonjs/v3/serverOnly/placementTags.js.map +1 -1
  151. package/dist/commonjs/v3/serverOnly/shutdownManager.js.map +1 -1
  152. package/dist/commonjs/v3/serverOnly/singleton.js.map +1 -1
  153. package/dist/commonjs/v3/sessionStreams/chatSnapshot.js.map +1 -1
  154. package/dist/commonjs/v3/sessionStreams/index.js.map +1 -1
  155. package/dist/commonjs/v3/sessionStreams/manager.js.map +1 -1
  156. package/dist/commonjs/v3/sessionStreams/noopManager.js.map +1 -1
  157. package/dist/commonjs/v3/sessionStreams/types.js.map +1 -1
  158. package/dist/commonjs/v3/sessionStreams/wireProtocol.js.map +1 -1
  159. package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
  160. package/dist/commonjs/v3/taskContext/index.js.map +1 -1
  161. package/dist/commonjs/v3/taskContext/otelProcessors.js.map +1 -1
  162. package/dist/commonjs/v3/telnetLogServer.js.map +1 -1
  163. package/dist/commonjs/v3/test/index.d.ts +3 -0
  164. package/dist/commonjs/v3/test/index.js +7 -1
  165. package/dist/commonjs/v3/test/index.js.map +1 -1
  166. package/dist/commonjs/v3/test/mock-task-context.d.ts +16 -1
  167. package/dist/commonjs/v3/test/mock-task-context.js +13 -5
  168. package/dist/commonjs/v3/test/mock-task-context.js.map +1 -1
  169. package/dist/commonjs/v3/test/session-waitpoint-backend.d.ts +68 -0
  170. package/dist/commonjs/v3/test/session-waitpoint-backend.js +228 -0
  171. package/dist/commonjs/v3/test/session-waitpoint-backend.js.map +1 -0
  172. package/dist/commonjs/v3/test/test-input-stream-manager.js.map +1 -1
  173. package/dist/commonjs/v3/test/test-realtime-streams-manager.js.map +1 -1
  174. package/dist/commonjs/v3/test/test-run-metadata-manager.js.map +1 -1
  175. package/dist/commonjs/v3/test/test-session-stream-manager.js.map +1 -1
  176. package/dist/commonjs/v3/timeout/api.js.map +1 -1
  177. package/dist/commonjs/v3/timeout/types.js.map +1 -1
  178. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -1
  179. package/dist/commonjs/v3/traceContext/api.js.map +1 -1
  180. package/dist/commonjs/v3/traceContext/manager.js.map +1 -1
  181. package/dist/commonjs/v3/tracer.js.map +1 -1
  182. package/dist/commonjs/v3/tryCatch.js.map +1 -1
  183. package/dist/commonjs/v3/types/schemas.js.map +1 -1
  184. package/dist/commonjs/v3/types/tasks.d.ts +21 -7
  185. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  186. package/dist/commonjs/v3/types/tools.js.map +1 -1
  187. package/dist/commonjs/v3/usage/api.js.map +1 -1
  188. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  189. package/dist/commonjs/v3/usage/noopUsageManager.js.map +1 -1
  190. package/dist/commonjs/v3/usage/prodUsageManager.js.map +1 -1
  191. package/dist/commonjs/v3/usage/usageClient.js.map +1 -1
  192. package/dist/commonjs/v3/utils/crypto.js.map +1 -1
  193. package/dist/commonjs/v3/utils/durations.js.map +1 -1
  194. package/dist/commonjs/v3/utils/flattenAttributes.js.map +1 -1
  195. package/dist/commonjs/v3/utils/getEnv.js.map +1 -1
  196. package/dist/commonjs/v3/utils/gitBranch.js.map +1 -1
  197. package/dist/commonjs/v3/utils/globals.js.map +1 -1
  198. package/dist/commonjs/v3/utils/imageRef.js.map +1 -1
  199. package/dist/commonjs/v3/utils/interval.js.map +1 -1
  200. package/dist/commonjs/v3/utils/ioSerialization.js.map +1 -1
  201. package/dist/commonjs/v3/utils/omit.js.map +1 -1
  202. package/dist/commonjs/v3/utils/reconnectBackoff.js.map +1 -1
  203. package/dist/commonjs/v3/utils/retries.js.map +1 -1
  204. package/dist/commonjs/v3/utils/safeAsyncLocalStorage.js.map +1 -1
  205. package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
  206. package/dist/commonjs/v3/utils/styleAttributes.js.map +1 -1
  207. package/dist/commonjs/v3/utils/timers.js.map +1 -1
  208. package/dist/commonjs/v3/waitUntil/index.js.map +1 -1
  209. package/dist/commonjs/v3/waitUntil/manager.js.map +1 -1
  210. package/dist/commonjs/v3/waitpoints/index.js.map +1 -1
  211. package/dist/commonjs/v3/workers/populateEnv.js.map +1 -1
  212. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  213. package/dist/commonjs/v3/workers/warmStartClient.js.map +1 -1
  214. package/dist/commonjs/v3/workloadDeploymentToken.d.ts +2 -2
  215. package/dist/commonjs/v3/workloadDeploymentToken.js.map +1 -1
  216. package/dist/commonjs/v3/zodIpc.js.map +1 -1
  217. package/dist/commonjs/v3/zodMessageHandler.d.ts +2 -2
  218. package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
  219. package/dist/commonjs/v3/zodSocket.js.map +1 -1
  220. package/dist/commonjs/version.js +1 -1
  221. package/dist/esm/logger.js.map +1 -1
  222. package/dist/esm/package.json +6 -1
  223. package/dist/esm/retry.js.map +1 -1
  224. package/dist/esm/v3/apiClient/core.js.map +1 -1
  225. package/dist/esm/v3/apiClient/index.d.ts +422 -422
  226. package/dist/esm/v3/apiClient/index.js.map +1 -1
  227. package/dist/esm/v3/apiClient/pagination.js.map +1 -1
  228. package/dist/esm/v3/apiClient/runStream.d.ts +8 -0
  229. package/dist/esm/v3/apiClient/runStream.js +64 -17
  230. package/dist/esm/v3/apiClient/runStream.js.map +1 -1
  231. package/dist/esm/v3/apiClient/runStream.test.js +34 -0
  232. package/dist/esm/v3/apiClient/runStream.test.js.map +1 -1
  233. package/dist/esm/v3/apiClient/stream.js.map +1 -1
  234. package/dist/esm/v3/apiClientManager/index.js.map +1 -1
  235. package/dist/esm/v3/apps/backoff.js.map +1 -1
  236. package/dist/esm/v3/apps/exec.js.map +1 -1
  237. package/dist/esm/v3/apps/http.js.map +1 -1
  238. package/dist/esm/v3/build/extensions.js.map +1 -1
  239. package/dist/esm/v3/build/runtime.js.map +1 -1
  240. package/dist/esm/v3/clock/preciseWallClock.js.map +1 -1
  241. package/dist/esm/v3/consoleInterceptor.js.map +1 -1
  242. package/dist/esm/v3/errors.d.ts +4 -4
  243. package/dist/esm/v3/errors.js.map +1 -1
  244. package/dist/esm/v3/heartbeats/manager.js.map +1 -1
  245. package/dist/esm/v3/icons.d.ts +1 -1
  246. package/dist/esm/v3/idempotencyKeys.js.map +1 -1
  247. package/dist/esm/v3/inputStreams/manager.js.map +1 -1
  248. package/dist/esm/v3/inputStreams/types.js.map +1 -1
  249. package/dist/esm/v3/isomorphic/friendlyId.js.map +1 -1
  250. package/dist/esm/v3/logger/taskLogger.js.map +1 -1
  251. package/dist/esm/v3/machines/index.js.map +1 -1
  252. package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
  253. package/dist/esm/v3/realtimeStreams/manager.js.map +1 -1
  254. package/dist/esm/v3/realtimeStreams/sessionStreamInstance.js.map +1 -1
  255. package/dist/esm/v3/realtimeStreams/streamInstance.js.map +1 -1
  256. package/dist/esm/v3/realtimeStreams/streamsWriterV1.js.map +1 -1
  257. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js +10 -2
  258. package/dist/esm/v3/realtimeStreams/streamsWriterV2.js.map +1 -1
  259. package/dist/esm/v3/runEngineWorker/supervisor/consumerPoolMetrics.js.map +1 -1
  260. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +211 -211
  261. package/dist/esm/v3/runEngineWorker/supervisor/queueMetricsProcessor.js.map +1 -1
  262. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +1126 -1126
  263. package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
  264. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +162 -162
  265. package/dist/esm/v3/runEngineWorker/workload/http.js +8 -0
  266. package/dist/esm/v3/runEngineWorker/workload/http.js.map +1 -1
  267. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +968 -968
  268. package/dist/esm/v3/runMetadata/manager.js.map +1 -1
  269. package/dist/esm/v3/runMetadata/operations.js.map +1 -1
  270. package/dist/esm/v3/runtime/sharedRuntimeManager.js.map +1 -1
  271. package/dist/esm/v3/schemas/api.d.ts +2930 -2926
  272. package/dist/esm/v3/schemas/api.js +2 -0
  273. package/dist/esm/v3/schemas/api.js.map +1 -1
  274. package/dist/esm/v3/schemas/build.d.ts +614 -614
  275. package/dist/esm/v3/schemas/checkpoints.d.ts +237 -237
  276. package/dist/esm/v3/schemas/common.d.ts +1409 -1409
  277. package/dist/esm/v3/schemas/errors.d.ts +38 -38
  278. package/dist/esm/v3/schemas/fetch.d.ts +70 -70
  279. package/dist/esm/v3/schemas/idempotencyKey.test.js +14 -0
  280. package/dist/esm/v3/schemas/idempotencyKey.test.js.map +1 -1
  281. package/dist/esm/v3/schemas/messages.d.ts +994 -994
  282. package/dist/esm/v3/schemas/openTelemetry.d.ts +90 -90
  283. package/dist/esm/v3/schemas/query.d.ts +41 -41
  284. package/dist/esm/v3/schemas/queues.d.ts +10 -10
  285. package/dist/esm/v3/schemas/resources.d.ts +128 -128
  286. package/dist/esm/v3/schemas/runEngine.d.ts +490 -490
  287. package/dist/esm/v3/schemas/schemas.d.ts +644 -644
  288. package/dist/esm/v3/schemas/style.d.ts +2 -2
  289. package/dist/esm/v3/schemas/webhooks.d.ts +814 -814
  290. package/dist/esm/v3/serverOnly/checkpointClient.d.ts +16 -0
  291. package/dist/esm/v3/serverOnly/checkpointClient.js +33 -0
  292. package/dist/esm/v3/serverOnly/checkpointClient.js.map +1 -1
  293. package/dist/esm/v3/serverOnly/placementTags.js.map +1 -1
  294. package/dist/esm/v3/serverOnly/shutdownManager.js.map +1 -1
  295. package/dist/esm/v3/sessionStreams/manager.js.map +1 -1
  296. package/dist/esm/v3/taskContext/otelProcessors.js.map +1 -1
  297. package/dist/esm/v3/test/index.d.ts +3 -0
  298. package/dist/esm/v3/test/index.js +2 -0
  299. package/dist/esm/v3/test/index.js.map +1 -1
  300. package/dist/esm/v3/test/mock-task-context.d.ts +16 -1
  301. package/dist/esm/v3/test/mock-task-context.js +13 -5
  302. package/dist/esm/v3/test/mock-task-context.js.map +1 -1
  303. package/dist/esm/v3/test/session-waitpoint-backend.d.ts +68 -0
  304. package/dist/esm/v3/test/session-waitpoint-backend.js +222 -0
  305. package/dist/esm/v3/test/session-waitpoint-backend.js.map +1 -0
  306. package/dist/esm/v3/timeout/types.js.map +1 -1
  307. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -1
  308. package/dist/esm/v3/tracer.js.map +1 -1
  309. package/dist/esm/v3/types/tasks.d.ts +21 -7
  310. package/dist/esm/v3/types/tasks.js.map +1 -1
  311. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  312. package/dist/esm/v3/usage/prodUsageManager.js.map +1 -1
  313. package/dist/esm/v3/usage/usageClient.js.map +1 -1
  314. package/dist/esm/v3/utils/flattenAttributes.js.map +1 -1
  315. package/dist/esm/v3/utils/ioSerialization.js.map +1 -1
  316. package/dist/esm/v3/utils/retries.js.map +1 -1
  317. package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
  318. package/dist/esm/v3/utils/timers.js.map +1 -1
  319. package/dist/esm/v3/waitUntil/manager.js.map +1 -1
  320. package/dist/esm/v3/workers/populateEnv.js.map +1 -1
  321. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  322. package/dist/esm/v3/workers/warmStartClient.js.map +1 -1
  323. package/dist/esm/v3/workloadDeploymentToken.d.ts +2 -2
  324. package/dist/esm/v3/zodIpc.js.map +1 -1
  325. package/dist/esm/v3/zodMessageHandler.d.ts +2 -2
  326. package/dist/esm/v3/zodMessageHandler.js.map +1 -1
  327. package/dist/esm/version.js +1 -1
  328. package/package.json +18 -3
@@ -89,11 +89,11 @@ export declare const WorkerApiSuspendRunRequestBody: z.ZodDiscriminatedUnion<"su
89
89
  success: z.ZodLiteral<false>;
90
90
  error: z.ZodString;
91
91
  }, "strip", z.ZodTypeAny, {
92
- error: string;
93
92
  success: false;
94
- }, {
95
93
  error: string;
94
+ }, {
96
95
  success: false;
96
+ error: string;
97
97
  }>]>;
98
98
  export type WorkerApiSuspendRunRequestBody = z.infer<typeof WorkerApiSuspendRunRequestBody>;
99
99
  export declare const WorkerApiSuspendRunResponseBody: z.ZodObject<{
@@ -113,16 +113,16 @@ export declare const WorkerApiContinueRunExecutionRequestBody: z.ZodObject<{
113
113
  createdAt: z.ZodDate;
114
114
  }, "strip", z.ZodTypeAny, {
115
115
  id: string;
116
- createdAt: Date;
117
- description: string;
118
116
  friendlyId: string;
119
117
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
118
+ description: string;
119
+ createdAt: Date;
120
120
  }, {
121
121
  id: string;
122
- createdAt: Date;
123
- description: string;
124
122
  friendlyId: string;
125
123
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
124
+ description: string;
125
+ createdAt: Date;
126
126
  }>;
127
127
  run: z.ZodObject<{
128
128
  id: z.ZodString;
@@ -131,48 +131,48 @@ export declare const WorkerApiContinueRunExecutionRequestBody: z.ZodObject<{
131
131
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
132
132
  taskEventStore: z.ZodOptional<z.ZodString>;
133
133
  }, "strip", z.ZodTypeAny, {
134
- status: import("../../schemas/runEngine.js").TaskRunStatus;
135
134
  id: string;
136
135
  friendlyId: string;
136
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
137
137
  attemptNumber?: number | null | undefined;
138
138
  taskEventStore?: string | undefined;
139
139
  }, {
140
- status: import("../../schemas/runEngine.js").TaskRunStatus;
141
140
  id: string;
142
141
  friendlyId: string;
142
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
143
143
  attemptNumber?: number | null | undefined;
144
144
  taskEventStore?: string | undefined;
145
145
  }>;
146
146
  }, "strip", z.ZodTypeAny, {
147
+ snapshot: {
148
+ id: string;
149
+ friendlyId: string;
150
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
151
+ description: string;
152
+ createdAt: Date;
153
+ };
147
154
  run: {
148
- status: import("../../schemas/runEngine.js").TaskRunStatus;
149
155
  id: string;
150
156
  friendlyId: string;
157
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
151
158
  attemptNumber?: number | null | undefined;
152
159
  taskEventStore?: string | undefined;
153
160
  };
161
+ }, {
154
162
  snapshot: {
155
163
  id: string;
156
- createdAt: Date;
157
- description: string;
158
164
  friendlyId: string;
159
165
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
166
+ description: string;
167
+ createdAt: Date;
160
168
  };
161
- }, {
162
169
  run: {
163
- status: import("../../schemas/runEngine.js").TaskRunStatus;
164
170
  id: string;
165
171
  friendlyId: string;
172
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
166
173
  attemptNumber?: number | null | undefined;
167
174
  taskEventStore?: string | undefined;
168
175
  };
169
- snapshot: {
170
- id: string;
171
- createdAt: Date;
172
- description: string;
173
- friendlyId: string;
174
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
175
- };
176
176
  }>;
177
177
  export type WorkerApiContinueRunExecutionRequestBody = z.infer<typeof WorkerApiContinueRunExecutionRequestBody>;
178
178
  export declare const WorkerApiConnectRequestBody: z.ZodObject<{
@@ -257,16 +257,16 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
257
257
  createdAt: z.ZodDate;
258
258
  }, "strip", z.ZodTypeAny, {
259
259
  id: string;
260
- createdAt: Date;
261
- description: string;
262
260
  friendlyId: string;
263
261
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
262
+ description: string;
263
+ createdAt: Date;
264
264
  }, {
265
265
  id: string;
266
- createdAt: Date;
267
- description: string;
268
266
  friendlyId: string;
269
267
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
268
+ description: string;
269
+ createdAt: Date;
270
270
  }>;
271
271
  dequeuedAt: z.ZodDate;
272
272
  workerQueueLength: z.ZodOptional<z.ZodNumber>;
@@ -278,14 +278,14 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
278
278
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
279
279
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
280
  }, "strip", z.ZodTypeAny, {
281
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
282
281
  id: string;
282
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
283
283
  location: string;
284
284
  imageRef?: string | null | undefined;
285
285
  reason?: string | null | undefined;
286
286
  }, {
287
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
288
287
  id: string;
288
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
289
289
  location: string;
290
290
  imageRef?: string | null | undefined;
291
291
  reason?: string | null | undefined;
@@ -340,15 +340,12 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
340
340
  outputType: z.ZodOptional<z.ZodString>;
341
341
  outputIsError: z.ZodBoolean;
342
342
  }, "strip", z.ZodTypeAny, {
343
- type: import("../../schemas/runEngine.js").WaitpointType;
344
343
  id: string;
344
+ index?: number | undefined;
345
345
  friendlyId: string;
346
+ type: import("../../schemas/runEngine.js").WaitpointType;
346
347
  completedAt: Date;
347
- outputIsError: boolean;
348
- output?: string | undefined;
349
348
  idempotencyKey?: string | undefined;
350
- outputType?: string | undefined;
351
- index?: number | undefined;
352
349
  completedByTaskRun?: {
353
350
  id: string;
354
351
  friendlyId: string;
@@ -362,16 +359,16 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
362
359
  id: string;
363
360
  friendlyId: string;
364
361
  } | undefined;
362
+ output?: string | undefined;
363
+ outputType?: string | undefined;
364
+ outputIsError: boolean;
365
365
  }, {
366
- type: import("../../schemas/runEngine.js").WaitpointType;
367
366
  id: string;
367
+ index?: number | undefined;
368
368
  friendlyId: string;
369
+ type: import("../../schemas/runEngine.js").WaitpointType;
369
370
  completedAt: Date;
370
- outputIsError: boolean;
371
- output?: string | undefined;
372
371
  idempotencyKey?: string | undefined;
373
- outputType?: string | undefined;
374
- index?: number | undefined;
375
372
  completedByTaskRun?: {
376
373
  id: string;
377
374
  friendlyId: string;
@@ -385,6 +382,9 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
385
382
  id: string;
386
383
  friendlyId: string;
387
384
  } | undefined;
385
+ output?: string | undefined;
386
+ outputType?: string | undefined;
387
+ outputIsError: boolean;
388
388
  }>, "many">;
389
389
  backgroundWorker: z.ZodObject<{
390
390
  id: z.ZodString;
@@ -393,13 +393,13 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
393
393
  runtime: z.ZodOptional<z.ZodString>;
394
394
  }, "strip", z.ZodTypeAny, {
395
395
  id: string;
396
- version: string;
397
396
  friendlyId: string;
397
+ version: string;
398
398
  runtime?: string | undefined;
399
399
  }, {
400
400
  id: string;
401
- version: string;
402
401
  friendlyId: string;
402
+ version: string;
403
403
  runtime?: string | undefined;
404
404
  }>;
405
405
  deployment: z.ZodObject<{
@@ -426,14 +426,14 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
426
426
  memory: z.ZodNumber;
427
427
  centsPerMs: z.ZodNumber;
428
428
  }, "strip", z.ZodTypeAny, {
429
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
429
430
  cpu: number;
430
431
  memory: number;
431
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
432
432
  centsPerMs: number;
433
433
  }, {
434
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
434
435
  cpu: number;
435
436
  memory: number;
436
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
437
437
  centsPerMs: number;
438
438
  }>;
439
439
  attemptNumber: z.ZodNumber;
@@ -446,70 +446,70 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
446
446
  rootScheduleId: z.ZodOptional<z.ZodString>;
447
447
  taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
448
448
  }, "strip", z.ZodTypeAny, {
449
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
450
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
451
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
452
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
449
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
450
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
451
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
453
452
  rootScheduleId?: string | undefined;
453
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
454
454
  }, {
455
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
456
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
457
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
458
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
455
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
456
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
457
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
459
458
  rootScheduleId?: string | undefined;
459
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
460
460
  }>>;
461
461
  }, "strip", z.ZodTypeAny, {
462
462
  id: string;
463
+ friendlyId: string;
463
464
  isTest: boolean;
464
465
  isReplay: boolean;
465
466
  machine: {
467
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
466
468
  cpu: number;
467
469
  memory: number;
468
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
469
470
  centsPerMs: number;
470
471
  };
471
- traceContext: Record<string, unknown>;
472
- friendlyId: string;
473
472
  attemptNumber: number;
474
473
  masterQueue: string;
474
+ traceContext: Record<string, unknown>;
475
475
  annotations?: {
476
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
477
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
478
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
479
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
476
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
477
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
478
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
480
479
  rootScheduleId?: string | undefined;
480
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
481
481
  } | undefined;
482
482
  }, {
483
483
  id: string;
484
+ friendlyId: string;
484
485
  isTest: boolean;
486
+ isReplay?: boolean | undefined;
485
487
  machine: {
488
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
486
489
  cpu: number;
487
490
  memory: number;
488
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
489
491
  centsPerMs: number;
490
492
  };
491
- traceContext: Record<string, unknown>;
492
- friendlyId: string;
493
493
  attemptNumber: number;
494
494
  masterQueue: string;
495
- isReplay?: boolean | undefined;
495
+ traceContext: Record<string, unknown>;
496
496
  annotations?: {
497
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
498
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
499
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
500
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
497
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
498
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
499
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
501
500
  rootScheduleId?: string | undefined;
501
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
502
502
  } | undefined;
503
503
  }>;
504
504
  environment: z.ZodObject<{
505
505
  id: z.ZodString;
506
506
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
507
507
  }, "strip", z.ZodTypeAny, {
508
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
509
508
  id: string;
509
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
510
510
  }, {
511
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
512
511
  id: string;
512
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
513
513
  }>;
514
514
  organization: z.ZodObject<{
515
515
  id: z.ZodString;
@@ -539,62 +539,31 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
539
539
  values?: string[] | undefined;
540
540
  }>, "many">>;
541
541
  }, "strip", z.ZodTypeAny, {
542
- run: {
543
- id: string;
544
- isTest: boolean;
545
- isReplay: boolean;
546
- machine: {
547
- cpu: number;
548
- memory: number;
549
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
550
- centsPerMs: number;
551
- };
552
- traceContext: Record<string, unknown>;
553
- friendlyId: string;
554
- attemptNumber: number;
555
- masterQueue: string;
556
- annotations?: {
557
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
558
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
559
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
560
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
561
- rootScheduleId?: string | undefined;
562
- } | undefined;
563
- };
564
542
  version: "1";
565
- environment: {
566
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
567
- id: string;
568
- };
569
- organization: {
570
- id: string;
571
- hasPrivateLink?: boolean | undefined;
572
- };
573
- project: {
574
- id: string;
575
- };
576
- deployment: {
577
- id?: string | undefined;
578
- friendlyId?: string | undefined;
579
- imagePlatform?: string | undefined;
580
- };
581
543
  snapshot: {
582
544
  id: string;
583
- createdAt: Date;
584
- description: string;
585
545
  friendlyId: string;
586
546
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
547
+ description: string;
548
+ createdAt: Date;
587
549
  };
550
+ dequeuedAt: Date;
551
+ workerQueueLength?: number | undefined;
552
+ image?: string | undefined;
553
+ checkpoint?: {
554
+ id: string;
555
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
556
+ location: string;
557
+ imageRef?: string | null | undefined;
558
+ reason?: string | null | undefined;
559
+ } | undefined;
588
560
  completedWaitpoints: {
589
- type: import("../../schemas/runEngine.js").WaitpointType;
590
561
  id: string;
562
+ index?: number | undefined;
591
563
  friendlyId: string;
564
+ type: import("../../schemas/runEngine.js").WaitpointType;
592
565
  completedAt: Date;
593
- outputIsError: boolean;
594
- output?: string | undefined;
595
566
  idempotencyKey?: string | undefined;
596
- outputType?: string | undefined;
597
- index?: number | undefined;
598
567
  completedByTaskRun?: {
599
568
  id: string;
600
569
  friendlyId: string;
@@ -608,54 +577,46 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
608
577
  id: string;
609
578
  friendlyId: string;
610
579
  } | undefined;
580
+ output?: string | undefined;
581
+ outputType?: string | undefined;
582
+ outputIsError: boolean;
611
583
  }[];
612
- dequeuedAt: Date;
613
584
  backgroundWorker: {
614
585
  id: string;
615
- version: string;
616
586
  friendlyId: string;
587
+ version: string;
617
588
  runtime?: string | undefined;
618
589
  };
619
- checkpoint?: {
620
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
621
- id: string;
622
- location: string;
623
- imageRef?: string | null | undefined;
624
- reason?: string | null | undefined;
625
- } | undefined;
626
- workerQueueLength?: number | undefined;
627
- image?: string | undefined;
628
- placementTags?: {
629
- key: string;
630
- values?: string[] | undefined;
631
- }[] | undefined;
632
- }, {
590
+ deployment: {
591
+ id?: string | undefined;
592
+ friendlyId?: string | undefined;
593
+ imagePlatform?: string | undefined;
594
+ };
633
595
  run: {
634
596
  id: string;
597
+ friendlyId: string;
635
598
  isTest: boolean;
599
+ isReplay: boolean;
636
600
  machine: {
601
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
637
602
  cpu: number;
638
603
  memory: number;
639
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
640
604
  centsPerMs: number;
641
605
  };
642
- traceContext: Record<string, unknown>;
643
- friendlyId: string;
644
606
  attemptNumber: number;
645
607
  masterQueue: string;
646
- isReplay?: boolean | undefined;
608
+ traceContext: Record<string, unknown>;
647
609
  annotations?: {
648
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
649
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
650
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
651
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
610
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
611
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
612
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
652
613
  rootScheduleId?: string | undefined;
614
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
653
615
  } | undefined;
654
616
  };
655
- version: "1";
656
617
  environment: {
657
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
658
618
  id: string;
619
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
659
620
  };
660
621
  organization: {
661
622
  id: string;
@@ -664,28 +625,36 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
664
625
  project: {
665
626
  id: string;
666
627
  };
667
- deployment: {
668
- id?: string | undefined;
669
- friendlyId?: string | undefined;
670
- imagePlatform?: string | undefined;
671
- };
628
+ placementTags?: {
629
+ key: string;
630
+ values?: string[] | undefined;
631
+ }[] | undefined;
632
+ }, {
633
+ version: "1";
672
634
  snapshot: {
673
635
  id: string;
674
- createdAt: Date;
675
- description: string;
676
636
  friendlyId: string;
677
637
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
638
+ description: string;
639
+ createdAt: Date;
678
640
  };
641
+ dequeuedAt: Date;
642
+ workerQueueLength?: number | undefined;
643
+ image?: string | undefined;
644
+ checkpoint?: {
645
+ id: string;
646
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
647
+ location: string;
648
+ imageRef?: string | null | undefined;
649
+ reason?: string | null | undefined;
650
+ } | undefined;
679
651
  completedWaitpoints: {
680
- type: import("../../schemas/runEngine.js").WaitpointType;
681
652
  id: string;
653
+ index?: number | undefined;
682
654
  friendlyId: string;
655
+ type: import("../../schemas/runEngine.js").WaitpointType;
683
656
  completedAt: Date;
684
- outputIsError: boolean;
685
- output?: string | undefined;
686
657
  idempotencyKey?: string | undefined;
687
- outputType?: string | undefined;
688
- index?: number | undefined;
689
658
  completedByTaskRun?: {
690
659
  id: string;
691
660
  friendlyId: string;
@@ -699,23 +668,54 @@ export declare const WorkerApiDequeueResponseBody: z.ZodArray<z.ZodObject<{
699
668
  id: string;
700
669
  friendlyId: string;
701
670
  } | undefined;
671
+ output?: string | undefined;
672
+ outputType?: string | undefined;
673
+ outputIsError: boolean;
702
674
  }[];
703
- dequeuedAt: Date;
704
675
  backgroundWorker: {
705
676
  id: string;
706
- version: string;
707
677
  friendlyId: string;
678
+ version: string;
708
679
  runtime?: string | undefined;
709
680
  };
710
- checkpoint?: {
711
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
681
+ deployment: {
682
+ id?: string | undefined;
683
+ friendlyId?: string | undefined;
684
+ imagePlatform?: string | undefined;
685
+ };
686
+ run: {
712
687
  id: string;
713
- location: string;
714
- imageRef?: string | null | undefined;
715
- reason?: string | null | undefined;
716
- } | undefined;
717
- workerQueueLength?: number | undefined;
718
- image?: string | undefined;
688
+ friendlyId: string;
689
+ isTest: boolean;
690
+ isReplay?: boolean | undefined;
691
+ machine: {
692
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
693
+ cpu: number;
694
+ memory: number;
695
+ centsPerMs: number;
696
+ };
697
+ attemptNumber: number;
698
+ masterQueue: string;
699
+ traceContext: Record<string, unknown>;
700
+ annotations?: {
701
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
702
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
703
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
704
+ rootScheduleId?: string | undefined;
705
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
706
+ } | undefined;
707
+ };
708
+ environment: {
709
+ id: string;
710
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
711
+ };
712
+ organization: {
713
+ id: string;
714
+ hasPrivateLink?: boolean | undefined;
715
+ };
716
+ project: {
717
+ id: string;
718
+ };
719
719
  placementTags?: {
720
720
  key: string;
721
721
  values?: string[] | undefined;
@@ -758,16 +758,16 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
758
758
  createdAt: z.ZodDate;
759
759
  }, "strip", z.ZodTypeAny, {
760
760
  id: string;
761
- createdAt: Date;
762
- description: string;
763
761
  friendlyId: string;
764
762
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
763
+ description: string;
764
+ createdAt: Date;
765
765
  }, {
766
766
  id: string;
767
- createdAt: Date;
768
- description: string;
769
767
  friendlyId: string;
770
768
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
769
+ description: string;
770
+ createdAt: Date;
771
771
  }>;
772
772
  run: z.ZodObject<{
773
773
  id: z.ZodString;
@@ -776,48 +776,48 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
776
776
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
777
777
  taskEventStore: z.ZodOptional<z.ZodString>;
778
778
  }, "strip", z.ZodTypeAny, {
779
- status: import("../../schemas/runEngine.js").TaskRunStatus;
780
779
  id: string;
781
780
  friendlyId: string;
781
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
782
782
  attemptNumber?: number | null | undefined;
783
783
  taskEventStore?: string | undefined;
784
784
  }, {
785
- status: import("../../schemas/runEngine.js").TaskRunStatus;
786
785
  id: string;
787
786
  friendlyId: string;
787
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
788
788
  attemptNumber?: number | null | undefined;
789
789
  taskEventStore?: string | undefined;
790
790
  }>;
791
791
  }, "strip", z.ZodTypeAny, {
792
+ snapshot: {
793
+ id: string;
794
+ friendlyId: string;
795
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
796
+ description: string;
797
+ createdAt: Date;
798
+ };
792
799
  run: {
793
- status: import("../../schemas/runEngine.js").TaskRunStatus;
794
800
  id: string;
795
801
  friendlyId: string;
802
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
796
803
  attemptNumber?: number | null | undefined;
797
804
  taskEventStore?: string | undefined;
798
805
  };
806
+ }, {
799
807
  snapshot: {
800
808
  id: string;
801
- createdAt: Date;
802
- description: string;
803
809
  friendlyId: string;
804
810
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
811
+ description: string;
812
+ createdAt: Date;
805
813
  };
806
- }, {
807
814
  run: {
808
- status: import("../../schemas/runEngine.js").TaskRunStatus;
809
815
  id: string;
810
816
  friendlyId: string;
817
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
811
818
  attemptNumber?: number | null | undefined;
812
819
  taskEventStore?: string | undefined;
813
820
  };
814
- snapshot: {
815
- id: string;
816
- createdAt: Date;
817
- description: string;
818
- friendlyId: string;
819
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
820
- };
821
821
  }>, z.ZodObject<{
822
822
  execution: z.ZodObject<{
823
823
  task: z.ZodObject<{
@@ -834,11 +834,11 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
834
834
  id: z.ZodString;
835
835
  name: z.ZodString;
836
836
  }, "strip", z.ZodTypeAny, {
837
- name: string;
838
837
  id: string;
839
- }, {
840
838
  name: string;
839
+ }, {
841
840
  id: string;
841
+ name: string;
842
842
  }>;
843
843
  environment: z.ZodObject<{
844
844
  id: z.ZodString;
@@ -860,73 +860,73 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
860
860
  pullRequestTitle: z.ZodOptional<z.ZodString>;
861
861
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
862
862
  }, "strip", z.ZodTypeAny, {
863
- dirty?: boolean | undefined;
864
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
865
863
  provider?: string | undefined;
864
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
866
865
  ghUsername?: string | undefined;
867
866
  ghUserAvatarUrl?: string | undefined;
868
867
  commitAuthorName?: string | undefined;
869
868
  commitMessage?: string | undefined;
870
869
  commitRef?: string | undefined;
871
870
  commitSha?: string | undefined;
871
+ dirty?: boolean | undefined;
872
872
  remoteUrl?: string | undefined;
873
873
  pullRequestNumber?: number | undefined;
874
874
  pullRequestTitle?: string | undefined;
875
- pullRequestState?: "open" | "closed" | "merged" | undefined;
875
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
876
876
  }, {
877
- dirty?: boolean | undefined;
878
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
879
877
  provider?: string | undefined;
878
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
880
879
  ghUsername?: string | undefined;
881
880
  ghUserAvatarUrl?: string | undefined;
882
881
  commitAuthorName?: string | undefined;
883
882
  commitMessage?: string | undefined;
884
883
  commitRef?: string | undefined;
885
884
  commitSha?: string | undefined;
885
+ dirty?: boolean | undefined;
886
886
  remoteUrl?: string | undefined;
887
887
  pullRequestNumber?: number | undefined;
888
888
  pullRequestTitle?: string | undefined;
889
- pullRequestState?: "open" | "closed" | "merged" | undefined;
889
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
890
890
  }>>;
891
891
  }, "strip", z.ZodTypeAny, {
892
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
893
892
  id: string;
894
893
  slug: string;
894
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
895
895
  branchName?: string | undefined;
896
896
  git?: {
897
- dirty?: boolean | undefined;
898
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
899
897
  provider?: string | undefined;
898
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
900
899
  ghUsername?: string | undefined;
901
900
  ghUserAvatarUrl?: string | undefined;
902
901
  commitAuthorName?: string | undefined;
903
902
  commitMessage?: string | undefined;
904
903
  commitRef?: string | undefined;
905
904
  commitSha?: string | undefined;
905
+ dirty?: boolean | undefined;
906
906
  remoteUrl?: string | undefined;
907
907
  pullRequestNumber?: number | undefined;
908
908
  pullRequestTitle?: string | undefined;
909
- pullRequestState?: "open" | "closed" | "merged" | undefined;
909
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
910
910
  } | undefined;
911
911
  }, {
912
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
913
912
  id: string;
914
913
  slug: string;
914
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
915
915
  branchName?: string | undefined;
916
916
  git?: {
917
- dirty?: boolean | undefined;
918
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
919
917
  provider?: string | undefined;
918
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
920
919
  ghUsername?: string | undefined;
921
920
  ghUserAvatarUrl?: string | undefined;
922
921
  commitAuthorName?: string | undefined;
923
922
  commitMessage?: string | undefined;
924
923
  commitRef?: string | undefined;
925
924
  commitSha?: string | undefined;
925
+ dirty?: boolean | undefined;
926
926
  remoteUrl?: string | undefined;
927
927
  pullRequestNumber?: number | undefined;
928
928
  pullRequestTitle?: string | undefined;
929
- pullRequestState?: "open" | "closed" | "merged" | undefined;
929
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
930
930
  } | undefined;
931
931
  }>;
932
932
  organization: z.ZodObject<{
@@ -934,13 +934,13 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
934
934
  slug: z.ZodString;
935
935
  name: z.ZodString;
936
936
  }, "strip", z.ZodTypeAny, {
937
- name: string;
938
937
  id: string;
939
938
  slug: string;
940
- }, {
941
939
  name: string;
940
+ }, {
942
941
  id: string;
943
942
  slug: string;
943
+ name: string;
944
944
  }>;
945
945
  project: z.ZodObject<{
946
946
  id: z.ZodString;
@@ -948,15 +948,15 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
948
948
  slug: z.ZodString;
949
949
  name: z.ZodString;
950
950
  }, "strip", z.ZodTypeAny, {
951
- name: string;
952
951
  id: string;
953
- slug: string;
954
952
  ref: string;
955
- }, {
953
+ slug: string;
956
954
  name: string;
955
+ }, {
957
956
  id: string;
958
- slug: string;
959
957
  ref: string;
958
+ slug: string;
959
+ name: string;
960
960
  }>;
961
961
  machine: z.ZodObject<{
962
962
  name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
@@ -964,14 +964,14 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
964
964
  memory: z.ZodNumber;
965
965
  centsPerMs: z.ZodNumber;
966
966
  }, "strip", z.ZodTypeAny, {
967
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
967
968
  cpu: number;
968
969
  memory: number;
969
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
970
970
  centsPerMs: number;
971
971
  }, {
972
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
972
973
  cpu: number;
973
974
  memory: number;
974
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
975
975
  centsPerMs: number;
976
976
  }>;
977
977
  batch: z.ZodOptional<z.ZodObject<{
@@ -1002,75 +1002,75 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1002
1002
  pullRequestTitle: z.ZodOptional<z.ZodString>;
1003
1003
  pullRequestState: z.ZodOptional<z.ZodEnum<["open", "closed", "merged"]>>;
1004
1004
  }, "strip", z.ZodTypeAny, {
1005
- dirty?: boolean | undefined;
1006
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1007
1005
  provider?: string | undefined;
1006
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1008
1007
  ghUsername?: string | undefined;
1009
1008
  ghUserAvatarUrl?: string | undefined;
1010
1009
  commitAuthorName?: string | undefined;
1011
1010
  commitMessage?: string | undefined;
1012
1011
  commitRef?: string | undefined;
1013
1012
  commitSha?: string | undefined;
1013
+ dirty?: boolean | undefined;
1014
1014
  remoteUrl?: string | undefined;
1015
1015
  pullRequestNumber?: number | undefined;
1016
1016
  pullRequestTitle?: string | undefined;
1017
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1017
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1018
1018
  }, {
1019
- dirty?: boolean | undefined;
1020
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1021
1019
  provider?: string | undefined;
1020
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1022
1021
  ghUsername?: string | undefined;
1023
1022
  ghUserAvatarUrl?: string | undefined;
1024
1023
  commitAuthorName?: string | undefined;
1025
1024
  commitMessage?: string | undefined;
1026
1025
  commitRef?: string | undefined;
1027
1026
  commitSha?: string | undefined;
1027
+ dirty?: boolean | undefined;
1028
1028
  remoteUrl?: string | undefined;
1029
1029
  pullRequestNumber?: number | undefined;
1030
1030
  pullRequestTitle?: string | undefined;
1031
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1031
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1032
1032
  }>>;
1033
1033
  }, "strip", z.ZodTypeAny, {
1034
1034
  id: string;
1035
- version: string;
1036
1035
  shortCode: string;
1036
+ version: string;
1037
1037
  runtime: string;
1038
1038
  runtimeVersion: string;
1039
1039
  git?: {
1040
- dirty?: boolean | undefined;
1041
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1042
1040
  provider?: string | undefined;
1041
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1043
1042
  ghUsername?: string | undefined;
1044
1043
  ghUserAvatarUrl?: string | undefined;
1045
1044
  commitAuthorName?: string | undefined;
1046
1045
  commitMessage?: string | undefined;
1047
1046
  commitRef?: string | undefined;
1048
1047
  commitSha?: string | undefined;
1048
+ dirty?: boolean | undefined;
1049
1049
  remoteUrl?: string | undefined;
1050
1050
  pullRequestNumber?: number | undefined;
1051
1051
  pullRequestTitle?: string | undefined;
1052
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1052
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1053
1053
  } | undefined;
1054
1054
  }, {
1055
1055
  id: string;
1056
- version: string;
1057
1056
  shortCode: string;
1057
+ version: string;
1058
1058
  runtime: string;
1059
1059
  runtimeVersion: string;
1060
1060
  git?: {
1061
- dirty?: boolean | undefined;
1062
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1063
1061
  provider?: string | undefined;
1062
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1064
1063
  ghUsername?: string | undefined;
1065
1064
  ghUserAvatarUrl?: string | undefined;
1066
1065
  commitAuthorName?: string | undefined;
1067
1066
  commitMessage?: string | undefined;
1068
1067
  commitRef?: string | undefined;
1069
1068
  commitSha?: string | undefined;
1069
+ dirty?: boolean | undefined;
1070
1070
  remoteUrl?: string | undefined;
1071
1071
  pullRequestNumber?: number | undefined;
1072
1072
  pullRequestTitle?: string | undefined;
1073
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1073
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1074
1074
  } | undefined;
1075
1075
  }>>;
1076
1076
  attempt: z.ZodObject<{
@@ -1106,19 +1106,19 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1106
1106
  costInCents: z.ZodOptional<z.ZodNumber>;
1107
1107
  region: z.ZodOptional<z.ZodString>;
1108
1108
  }, "strip", z.ZodTypeAny, {
1109
- payload: string;
1110
1109
  id: string;
1110
+ payload: string;
1111
1111
  payloadType: string;
1112
1112
  tags: string[];
1113
1113
  isTest: boolean;
1114
1114
  isReplay: boolean;
1115
1115
  createdAt: Date;
1116
1116
  startedAt: Date;
1117
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1118
1117
  idempotencyKey?: string | undefined;
1119
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1118
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1120
1119
  maxAttempts?: number | undefined;
1121
1120
  version?: string | undefined;
1121
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1122
1122
  maxDuration?: number | undefined;
1123
1123
  priority?: number | undefined;
1124
1124
  baseCostInCents?: number | undefined;
@@ -1128,19 +1128,19 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1128
1128
  costInCents?: number | undefined;
1129
1129
  region?: string | undefined;
1130
1130
  }, {
1131
- payload: string;
1132
1131
  id: string;
1132
+ payload: string;
1133
1133
  payloadType: string;
1134
1134
  tags: string[];
1135
- createdAt: Date;
1136
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1137
1135
  isTest?: boolean | undefined;
1138
1136
  isReplay?: boolean | undefined;
1137
+ createdAt: Date;
1139
1138
  startedAt?: Date | undefined;
1140
1139
  idempotencyKey?: string | undefined;
1141
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1140
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1142
1141
  maxAttempts?: number | undefined;
1143
1142
  version?: string | undefined;
1143
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1144
1144
  maxDuration?: number | undefined;
1145
1145
  priority?: number | undefined;
1146
1146
  baseCostInCents?: number | undefined;
@@ -1160,38 +1160,6 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1160
1160
  realtimeStreamsVersion?: string | undefined;
1161
1161
  }>>;
1162
1162
  }, "strip", z.ZodTypeAny, {
1163
- run: {
1164
- payload: string;
1165
- id: string;
1166
- payloadType: string;
1167
- tags: string[];
1168
- isTest: boolean;
1169
- isReplay: boolean;
1170
- createdAt: Date;
1171
- startedAt: Date;
1172
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1173
- idempotencyKey?: string | undefined;
1174
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1175
- maxAttempts?: number | undefined;
1176
- version?: string | undefined;
1177
- maxDuration?: number | undefined;
1178
- priority?: number | undefined;
1179
- baseCostInCents?: number | undefined;
1180
- parentTaskRunId?: string | undefined;
1181
- rootTaskRunId?: string | undefined;
1182
- durationMs?: number | undefined;
1183
- costInCents?: number | undefined;
1184
- region?: string | undefined;
1185
- } & {
1186
- traceContext?: Record<string, unknown> | undefined;
1187
- realtimeStreamsVersion?: string | undefined;
1188
- };
1189
- attempt: {
1190
- number: number;
1191
- startedAt: Date;
1192
- } & {
1193
- [k: string]: unknown;
1194
- };
1195
1163
  task: {
1196
1164
  id: string;
1197
1165
  filePath: string;
@@ -1199,45 +1167,45 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1199
1167
  [k: string]: unknown;
1200
1168
  };
1201
1169
  queue: {
1202
- name: string;
1203
1170
  id: string;
1171
+ name: string;
1204
1172
  };
1205
1173
  environment: {
1206
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1207
1174
  id: string;
1208
1175
  slug: string;
1176
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1209
1177
  branchName?: string | undefined;
1210
1178
  git?: {
1211
- dirty?: boolean | undefined;
1212
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1213
1179
  provider?: string | undefined;
1180
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1214
1181
  ghUsername?: string | undefined;
1215
1182
  ghUserAvatarUrl?: string | undefined;
1216
1183
  commitAuthorName?: string | undefined;
1217
1184
  commitMessage?: string | undefined;
1218
1185
  commitRef?: string | undefined;
1219
1186
  commitSha?: string | undefined;
1187
+ dirty?: boolean | undefined;
1220
1188
  remoteUrl?: string | undefined;
1221
1189
  pullRequestNumber?: number | undefined;
1222
1190
  pullRequestTitle?: string | undefined;
1223
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1191
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1224
1192
  } | undefined;
1225
1193
  };
1226
1194
  organization: {
1227
- name: string;
1228
1195
  id: string;
1229
1196
  slug: string;
1197
+ name: string;
1230
1198
  };
1231
1199
  project: {
1232
- name: string;
1233
1200
  id: string;
1234
- slug: string;
1235
1201
  ref: string;
1202
+ slug: string;
1203
+ name: string;
1236
1204
  };
1237
1205
  machine: {
1206
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1238
1207
  cpu: number;
1239
1208
  memory: number;
1240
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1241
1209
  centsPerMs: number;
1242
1210
  };
1243
1211
  batch?: {
@@ -1245,41 +1213,46 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1245
1213
  } | undefined;
1246
1214
  deployment?: {
1247
1215
  id: string;
1248
- version: string;
1249
1216
  shortCode: string;
1217
+ version: string;
1250
1218
  runtime: string;
1251
1219
  runtimeVersion: string;
1252
1220
  git?: {
1253
- dirty?: boolean | undefined;
1254
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1255
1221
  provider?: string | undefined;
1222
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1256
1223
  ghUsername?: string | undefined;
1257
1224
  ghUserAvatarUrl?: string | undefined;
1258
1225
  commitAuthorName?: string | undefined;
1259
1226
  commitMessage?: string | undefined;
1260
1227
  commitRef?: string | undefined;
1261
1228
  commitSha?: string | undefined;
1229
+ dirty?: boolean | undefined;
1262
1230
  remoteUrl?: string | undefined;
1263
1231
  pullRequestNumber?: number | undefined;
1264
1232
  pullRequestTitle?: string | undefined;
1265
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1233
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1266
1234
  } | undefined;
1267
1235
  } | undefined;
1268
- }, {
1236
+ attempt: {
1237
+ number: number;
1238
+ startedAt: Date;
1239
+ } & {
1240
+ [k: string]: unknown;
1241
+ };
1269
1242
  run: {
1270
- payload: string;
1271
1243
  id: string;
1244
+ payload: string;
1272
1245
  payloadType: string;
1273
1246
  tags: string[];
1247
+ isTest: boolean;
1248
+ isReplay: boolean;
1274
1249
  createdAt: Date;
1275
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1276
- isTest?: boolean | undefined;
1277
- isReplay?: boolean | undefined;
1278
- startedAt?: Date | undefined;
1250
+ startedAt: Date;
1279
1251
  idempotencyKey?: string | undefined;
1280
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1252
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1281
1253
  maxAttempts?: number | undefined;
1282
1254
  version?: string | undefined;
1255
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1283
1256
  maxDuration?: number | undefined;
1284
1257
  priority?: number | undefined;
1285
1258
  baseCostInCents?: number | undefined;
@@ -1292,12 +1265,7 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1292
1265
  traceContext?: Record<string, unknown> | undefined;
1293
1266
  realtimeStreamsVersion?: string | undefined;
1294
1267
  };
1295
- attempt: {
1296
- number: number;
1297
- startedAt: Date;
1298
- } & {
1299
- [k: string]: unknown;
1300
- };
1268
+ }, {
1301
1269
  task: {
1302
1270
  id: string;
1303
1271
  filePath: string;
@@ -1305,45 +1273,45 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1305
1273
  [k: string]: unknown;
1306
1274
  };
1307
1275
  queue: {
1308
- name: string;
1309
1276
  id: string;
1277
+ name: string;
1310
1278
  };
1311
1279
  environment: {
1312
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1313
1280
  id: string;
1314
1281
  slug: string;
1282
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1315
1283
  branchName?: string | undefined;
1316
1284
  git?: {
1317
- dirty?: boolean | undefined;
1318
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1319
1285
  provider?: string | undefined;
1286
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1320
1287
  ghUsername?: string | undefined;
1321
1288
  ghUserAvatarUrl?: string | undefined;
1322
1289
  commitAuthorName?: string | undefined;
1323
1290
  commitMessage?: string | undefined;
1324
1291
  commitRef?: string | undefined;
1325
1292
  commitSha?: string | undefined;
1293
+ dirty?: boolean | undefined;
1326
1294
  remoteUrl?: string | undefined;
1327
1295
  pullRequestNumber?: number | undefined;
1328
1296
  pullRequestTitle?: string | undefined;
1329
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1297
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1330
1298
  } | undefined;
1331
1299
  };
1332
1300
  organization: {
1333
- name: string;
1334
1301
  id: string;
1335
1302
  slug: string;
1303
+ name: string;
1336
1304
  };
1337
1305
  project: {
1338
- name: string;
1339
1306
  id: string;
1340
- slug: string;
1341
1307
  ref: string;
1308
+ slug: string;
1309
+ name: string;
1342
1310
  };
1343
1311
  machine: {
1312
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1344
1313
  cpu: number;
1345
1314
  memory: number;
1346
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1347
1315
  centsPerMs: number;
1348
1316
  };
1349
1317
  batch?: {
@@ -1351,43 +1319,46 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1351
1319
  } | undefined;
1352
1320
  deployment?: {
1353
1321
  id: string;
1354
- version: string;
1355
1322
  shortCode: string;
1323
+ version: string;
1356
1324
  runtime: string;
1357
1325
  runtimeVersion: string;
1358
1326
  git?: {
1359
- dirty?: boolean | undefined;
1360
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1361
1327
  provider?: string | undefined;
1328
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1362
1329
  ghUsername?: string | undefined;
1363
1330
  ghUserAvatarUrl?: string | undefined;
1364
1331
  commitAuthorName?: string | undefined;
1365
1332
  commitMessage?: string | undefined;
1366
1333
  commitRef?: string | undefined;
1367
1334
  commitSha?: string | undefined;
1335
+ dirty?: boolean | undefined;
1368
1336
  remoteUrl?: string | undefined;
1369
1337
  pullRequestNumber?: number | undefined;
1370
1338
  pullRequestTitle?: string | undefined;
1371
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1339
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1372
1340
  } | undefined;
1373
1341
  } | undefined;
1374
- }>;
1375
- }, "strip", z.ZodTypeAny, {
1376
- execution: {
1342
+ attempt: {
1343
+ number: number;
1344
+ startedAt: Date;
1345
+ } & {
1346
+ [k: string]: unknown;
1347
+ };
1377
1348
  run: {
1378
- payload: string;
1379
1349
  id: string;
1350
+ payload: string;
1380
1351
  payloadType: string;
1381
1352
  tags: string[];
1382
- isTest: boolean;
1383
- isReplay: boolean;
1353
+ isTest?: boolean | undefined;
1354
+ isReplay?: boolean | undefined;
1384
1355
  createdAt: Date;
1385
- startedAt: Date;
1386
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1356
+ startedAt?: Date | undefined;
1387
1357
  idempotencyKey?: string | undefined;
1388
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1358
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1389
1359
  maxAttempts?: number | undefined;
1390
1360
  version?: string | undefined;
1361
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1391
1362
  maxDuration?: number | undefined;
1392
1363
  priority?: number | undefined;
1393
1364
  baseCostInCents?: number | undefined;
@@ -1400,12 +1371,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1400
1371
  traceContext?: Record<string, unknown> | undefined;
1401
1372
  realtimeStreamsVersion?: string | undefined;
1402
1373
  };
1403
- attempt: {
1404
- number: number;
1405
- startedAt: Date;
1406
- } & {
1407
- [k: string]: unknown;
1408
- };
1374
+ }>;
1375
+ }, "strip", z.ZodTypeAny, {
1376
+ execution: {
1409
1377
  task: {
1410
1378
  id: string;
1411
1379
  filePath: string;
@@ -1413,45 +1381,45 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1413
1381
  [k: string]: unknown;
1414
1382
  };
1415
1383
  queue: {
1416
- name: string;
1417
1384
  id: string;
1385
+ name: string;
1418
1386
  };
1419
1387
  environment: {
1420
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1421
1388
  id: string;
1422
1389
  slug: string;
1390
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1423
1391
  branchName?: string | undefined;
1424
1392
  git?: {
1425
- dirty?: boolean | undefined;
1426
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1427
1393
  provider?: string | undefined;
1394
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1428
1395
  ghUsername?: string | undefined;
1429
1396
  ghUserAvatarUrl?: string | undefined;
1430
1397
  commitAuthorName?: string | undefined;
1431
1398
  commitMessage?: string | undefined;
1432
1399
  commitRef?: string | undefined;
1433
1400
  commitSha?: string | undefined;
1401
+ dirty?: boolean | undefined;
1434
1402
  remoteUrl?: string | undefined;
1435
1403
  pullRequestNumber?: number | undefined;
1436
1404
  pullRequestTitle?: string | undefined;
1437
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1405
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1438
1406
  } | undefined;
1439
1407
  };
1440
1408
  organization: {
1441
- name: string;
1442
1409
  id: string;
1443
1410
  slug: string;
1411
+ name: string;
1444
1412
  };
1445
1413
  project: {
1446
- name: string;
1447
1414
  id: string;
1448
- slug: string;
1449
1415
  ref: string;
1416
+ slug: string;
1417
+ name: string;
1450
1418
  };
1451
1419
  machine: {
1420
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1452
1421
  cpu: number;
1453
1422
  memory: number;
1454
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1455
1423
  centsPerMs: number;
1456
1424
  };
1457
1425
  batch?: {
@@ -1459,43 +1427,46 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1459
1427
  } | undefined;
1460
1428
  deployment?: {
1461
1429
  id: string;
1462
- version: string;
1463
1430
  shortCode: string;
1431
+ version: string;
1464
1432
  runtime: string;
1465
1433
  runtimeVersion: string;
1466
1434
  git?: {
1467
- dirty?: boolean | undefined;
1468
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1469
1435
  provider?: string | undefined;
1436
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1470
1437
  ghUsername?: string | undefined;
1471
1438
  ghUserAvatarUrl?: string | undefined;
1472
1439
  commitAuthorName?: string | undefined;
1473
1440
  commitMessage?: string | undefined;
1474
1441
  commitRef?: string | undefined;
1475
1442
  commitSha?: string | undefined;
1443
+ dirty?: boolean | undefined;
1476
1444
  remoteUrl?: string | undefined;
1477
1445
  pullRequestNumber?: number | undefined;
1478
1446
  pullRequestTitle?: string | undefined;
1479
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1447
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1480
1448
  } | undefined;
1481
1449
  } | undefined;
1482
- };
1483
- }, {
1484
- execution: {
1450
+ attempt: {
1451
+ number: number;
1452
+ startedAt: Date;
1453
+ } & {
1454
+ [k: string]: unknown;
1455
+ };
1485
1456
  run: {
1486
- payload: string;
1487
1457
  id: string;
1458
+ payload: string;
1488
1459
  payloadType: string;
1489
1460
  tags: string[];
1461
+ isTest: boolean;
1462
+ isReplay: boolean;
1490
1463
  createdAt: Date;
1491
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1492
- isTest?: boolean | undefined;
1493
- isReplay?: boolean | undefined;
1494
- startedAt?: Date | undefined;
1464
+ startedAt: Date;
1495
1465
  idempotencyKey?: string | undefined;
1496
- idempotencyKeyScope?: "run" | "attempt" | "global" | undefined;
1466
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1497
1467
  maxAttempts?: number | undefined;
1498
1468
  version?: string | undefined;
1469
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1499
1470
  maxDuration?: number | undefined;
1500
1471
  priority?: number | undefined;
1501
1472
  baseCostInCents?: number | undefined;
@@ -1508,12 +1479,9 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1508
1479
  traceContext?: Record<string, unknown> | undefined;
1509
1480
  realtimeStreamsVersion?: string | undefined;
1510
1481
  };
1511
- attempt: {
1512
- number: number;
1513
- startedAt: Date;
1514
- } & {
1515
- [k: string]: unknown;
1516
- };
1482
+ };
1483
+ }, {
1484
+ execution: {
1517
1485
  task: {
1518
1486
  id: string;
1519
1487
  filePath: string;
@@ -1521,45 +1489,45 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1521
1489
  [k: string]: unknown;
1522
1490
  };
1523
1491
  queue: {
1524
- name: string;
1525
1492
  id: string;
1493
+ name: string;
1526
1494
  };
1527
1495
  environment: {
1528
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
1529
1496
  id: string;
1530
1497
  slug: string;
1498
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
1531
1499
  branchName?: string | undefined;
1532
1500
  git?: {
1533
- dirty?: boolean | undefined;
1534
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1535
1501
  provider?: string | undefined;
1502
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1536
1503
  ghUsername?: string | undefined;
1537
1504
  ghUserAvatarUrl?: string | undefined;
1538
1505
  commitAuthorName?: string | undefined;
1539
1506
  commitMessage?: string | undefined;
1540
1507
  commitRef?: string | undefined;
1541
1508
  commitSha?: string | undefined;
1509
+ dirty?: boolean | undefined;
1542
1510
  remoteUrl?: string | undefined;
1543
1511
  pullRequestNumber?: number | undefined;
1544
1512
  pullRequestTitle?: string | undefined;
1545
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1513
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1546
1514
  } | undefined;
1547
1515
  };
1548
1516
  organization: {
1549
- name: string;
1550
1517
  id: string;
1551
1518
  slug: string;
1519
+ name: string;
1552
1520
  };
1553
1521
  project: {
1554
- name: string;
1555
1522
  id: string;
1556
- slug: string;
1557
1523
  ref: string;
1524
+ slug: string;
1525
+ name: string;
1558
1526
  };
1559
1527
  machine: {
1528
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
1560
1529
  cpu: number;
1561
1530
  memory: number;
1562
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1563
1531
  centsPerMs: number;
1564
1532
  };
1565
1533
  batch?: {
@@ -1567,41 +1535,73 @@ export declare const WorkerApiRunAttemptStartResponseBody: z.ZodIntersection<z.Z
1567
1535
  } | undefined;
1568
1536
  deployment?: {
1569
1537
  id: string;
1570
- version: string;
1571
1538
  shortCode: string;
1539
+ version: string;
1572
1540
  runtime: string;
1573
1541
  runtimeVersion: string;
1574
1542
  git?: {
1575
- dirty?: boolean | undefined;
1576
- source?: "trigger_github_app" | "github_actions" | "local" | undefined;
1577
1543
  provider?: string | undefined;
1544
+ source?: "github_actions" | "local" | "trigger_github_app" | undefined;
1578
1545
  ghUsername?: string | undefined;
1579
1546
  ghUserAvatarUrl?: string | undefined;
1580
1547
  commitAuthorName?: string | undefined;
1581
1548
  commitMessage?: string | undefined;
1582
1549
  commitRef?: string | undefined;
1583
1550
  commitSha?: string | undefined;
1551
+ dirty?: boolean | undefined;
1584
1552
  remoteUrl?: string | undefined;
1585
1553
  pullRequestNumber?: number | undefined;
1586
1554
  pullRequestTitle?: string | undefined;
1587
- pullRequestState?: "open" | "closed" | "merged" | undefined;
1555
+ pullRequestState?: "closed" | "merged" | "open" | undefined;
1588
1556
  } | undefined;
1589
1557
  } | undefined;
1590
- };
1591
- }>>, z.ZodObject<{
1592
- envVars: z.ZodRecord<z.ZodString, z.ZodString>;
1593
- }, "strip", z.ZodTypeAny, {
1594
- envVars: Record<string, string>;
1595
- }, {
1596
- envVars: Record<string, string>;
1597
- }>>;
1598
- export type WorkerApiRunAttemptStartResponseBody = z.infer<typeof WorkerApiRunAttemptStartResponseBody>;
1599
- export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1600
- completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1601
- ok: z.ZodLiteral<true>;
1602
- id: z.ZodString;
1603
- output: z.ZodOptional<z.ZodString>;
1604
- outputType: z.ZodString;
1558
+ attempt: {
1559
+ number: number;
1560
+ startedAt: Date;
1561
+ } & {
1562
+ [k: string]: unknown;
1563
+ };
1564
+ run: {
1565
+ id: string;
1566
+ payload: string;
1567
+ payloadType: string;
1568
+ tags: string[];
1569
+ isTest?: boolean | undefined;
1570
+ isReplay?: boolean | undefined;
1571
+ createdAt: Date;
1572
+ startedAt?: Date | undefined;
1573
+ idempotencyKey?: string | undefined;
1574
+ idempotencyKeyScope?: "attempt" | "global" | "run" | undefined;
1575
+ maxAttempts?: number | undefined;
1576
+ version?: string | undefined;
1577
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1578
+ maxDuration?: number | undefined;
1579
+ priority?: number | undefined;
1580
+ baseCostInCents?: number | undefined;
1581
+ parentTaskRunId?: string | undefined;
1582
+ rootTaskRunId?: string | undefined;
1583
+ durationMs?: number | undefined;
1584
+ costInCents?: number | undefined;
1585
+ region?: string | undefined;
1586
+ } & {
1587
+ traceContext?: Record<string, unknown> | undefined;
1588
+ realtimeStreamsVersion?: string | undefined;
1589
+ };
1590
+ };
1591
+ }>>, z.ZodObject<{
1592
+ envVars: z.ZodRecord<z.ZodString, z.ZodString>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ envVars: Record<string, string>;
1595
+ }, {
1596
+ envVars: Record<string, string>;
1597
+ }>>;
1598
+ export type WorkerApiRunAttemptStartResponseBody = z.infer<typeof WorkerApiRunAttemptStartResponseBody>;
1599
+ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1600
+ completion: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1601
+ ok: z.ZodLiteral<true>;
1602
+ id: z.ZodString;
1603
+ output: z.ZodOptional<z.ZodString>;
1604
+ outputType: z.ZodString;
1605
1605
  usage: z.ZodOptional<z.ZodObject<{
1606
1606
  durationMs: z.ZodNumber;
1607
1607
  }, "strip", z.ZodTypeAny, {
@@ -1616,23 +1616,23 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1616
1616
  type: z.ZodLiteral<"update">;
1617
1617
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1618
1618
  }, "strip", z.ZodTypeAny, {
1619
- value: Record<string, unknown>;
1620
1619
  type: "update";
1621
- }, {
1622
1620
  value: Record<string, unknown>;
1621
+ }, {
1623
1622
  type: "update";
1623
+ value: Record<string, unknown>;
1624
1624
  }>, z.ZodObject<{
1625
1625
  type: z.ZodLiteral<"set">;
1626
1626
  key: z.ZodEffects<z.ZodString, string, string>;
1627
1627
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1628
1628
  }, "strip", z.ZodTypeAny, {
1629
- value: import("../../../index.js").DeserializedJson;
1630
1629
  type: "set";
1631
1630
  key: string;
1632
- }, {
1633
1631
  value: import("../../../index.js").DeserializedJson;
1632
+ }, {
1634
1633
  type: "set";
1635
1634
  key: string;
1635
+ value: import("../../../index.js").DeserializedJson;
1636
1636
  }>, z.ZodObject<{
1637
1637
  type: z.ZodLiteral<"delete">;
1638
1638
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -1647,59 +1647,59 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1647
1647
  key: z.ZodEffects<z.ZodString, string, string>;
1648
1648
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1649
1649
  }, "strip", z.ZodTypeAny, {
1650
- value: import("../../../index.js").DeserializedJson;
1651
1650
  type: "append";
1652
1651
  key: string;
1653
- }, {
1654
1652
  value: import("../../../index.js").DeserializedJson;
1653
+ }, {
1655
1654
  type: "append";
1656
1655
  key: string;
1656
+ value: import("../../../index.js").DeserializedJson;
1657
1657
  }>, z.ZodObject<{
1658
1658
  type: z.ZodLiteral<"remove">;
1659
1659
  key: z.ZodEffects<z.ZodString, string, string>;
1660
1660
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1661
1661
  }, "strip", z.ZodTypeAny, {
1662
- value: import("../../../index.js").DeserializedJson;
1663
1662
  type: "remove";
1664
1663
  key: string;
1665
- }, {
1666
1664
  value: import("../../../index.js").DeserializedJson;
1665
+ }, {
1667
1666
  type: "remove";
1668
1667
  key: string;
1668
+ value: import("../../../index.js").DeserializedJson;
1669
1669
  }>, z.ZodObject<{
1670
1670
  type: z.ZodLiteral<"increment">;
1671
1671
  key: z.ZodEffects<z.ZodString, string, string>;
1672
1672
  value: z.ZodNumber;
1673
1673
  }, "strip", z.ZodTypeAny, {
1674
- value: number;
1675
1674
  type: "increment";
1676
1675
  key: string;
1677
- }, {
1678
1676
  value: number;
1677
+ }, {
1679
1678
  type: "increment";
1680
1679
  key: string;
1680
+ value: number;
1681
1681
  }>]>, "many">>;
1682
1682
  parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1683
1683
  type: z.ZodLiteral<"update">;
1684
1684
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1685
1685
  }, "strip", z.ZodTypeAny, {
1686
- value: Record<string, unknown>;
1687
1686
  type: "update";
1688
- }, {
1689
1687
  value: Record<string, unknown>;
1688
+ }, {
1690
1689
  type: "update";
1690
+ value: Record<string, unknown>;
1691
1691
  }>, z.ZodObject<{
1692
1692
  type: z.ZodLiteral<"set">;
1693
1693
  key: z.ZodEffects<z.ZodString, string, string>;
1694
1694
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1695
1695
  }, "strip", z.ZodTypeAny, {
1696
- value: import("../../../index.js").DeserializedJson;
1697
1696
  type: "set";
1698
1697
  key: string;
1699
- }, {
1700
1698
  value: import("../../../index.js").DeserializedJson;
1699
+ }, {
1701
1700
  type: "set";
1702
1701
  key: string;
1702
+ value: import("../../../index.js").DeserializedJson;
1703
1703
  }>, z.ZodObject<{
1704
1704
  type: z.ZodLiteral<"delete">;
1705
1705
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -1714,59 +1714,59 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1714
1714
  key: z.ZodEffects<z.ZodString, string, string>;
1715
1715
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1716
1716
  }, "strip", z.ZodTypeAny, {
1717
- value: import("../../../index.js").DeserializedJson;
1718
1717
  type: "append";
1719
1718
  key: string;
1720
- }, {
1721
1719
  value: import("../../../index.js").DeserializedJson;
1720
+ }, {
1722
1721
  type: "append";
1723
1722
  key: string;
1723
+ value: import("../../../index.js").DeserializedJson;
1724
1724
  }>, z.ZodObject<{
1725
1725
  type: z.ZodLiteral<"remove">;
1726
1726
  key: z.ZodEffects<z.ZodString, string, string>;
1727
1727
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1728
1728
  }, "strip", z.ZodTypeAny, {
1729
- value: import("../../../index.js").DeserializedJson;
1730
1729
  type: "remove";
1731
1730
  key: string;
1732
- }, {
1733
1731
  value: import("../../../index.js").DeserializedJson;
1732
+ }, {
1734
1733
  type: "remove";
1735
1734
  key: string;
1735
+ value: import("../../../index.js").DeserializedJson;
1736
1736
  }>, z.ZodObject<{
1737
1737
  type: z.ZodLiteral<"increment">;
1738
1738
  key: z.ZodEffects<z.ZodString, string, string>;
1739
1739
  value: z.ZodNumber;
1740
1740
  }, "strip", z.ZodTypeAny, {
1741
- value: number;
1742
1741
  type: "increment";
1743
1742
  key: string;
1744
- }, {
1745
1743
  value: number;
1744
+ }, {
1746
1745
  type: "increment";
1747
1746
  key: string;
1747
+ value: number;
1748
1748
  }>]>, "many">>;
1749
1749
  rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1750
1750
  type: z.ZodLiteral<"update">;
1751
1751
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1752
1752
  }, "strip", z.ZodTypeAny, {
1753
- value: Record<string, unknown>;
1754
1753
  type: "update";
1755
- }, {
1756
1754
  value: Record<string, unknown>;
1755
+ }, {
1757
1756
  type: "update";
1757
+ value: Record<string, unknown>;
1758
1758
  }>, z.ZodObject<{
1759
1759
  type: z.ZodLiteral<"set">;
1760
1760
  key: z.ZodEffects<z.ZodString, string, string>;
1761
1761
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1762
1762
  }, "strip", z.ZodTypeAny, {
1763
- value: import("../../../index.js").DeserializedJson;
1764
1763
  type: "set";
1765
1764
  key: string;
1766
- }, {
1767
1765
  value: import("../../../index.js").DeserializedJson;
1766
+ }, {
1768
1767
  type: "set";
1769
1768
  key: string;
1769
+ value: import("../../../index.js").DeserializedJson;
1770
1770
  }>, z.ZodObject<{
1771
1771
  type: z.ZodLiteral<"delete">;
1772
1772
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -1781,360 +1781,360 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
1781
1781
  key: z.ZodEffects<z.ZodString, string, string>;
1782
1782
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1783
1783
  }, "strip", z.ZodTypeAny, {
1784
- value: import("../../../index.js").DeserializedJson;
1785
1784
  type: "append";
1786
1785
  key: string;
1787
- }, {
1788
1786
  value: import("../../../index.js").DeserializedJson;
1787
+ }, {
1789
1788
  type: "append";
1790
1789
  key: string;
1790
+ value: import("../../../index.js").DeserializedJson;
1791
1791
  }>, z.ZodObject<{
1792
1792
  type: z.ZodLiteral<"remove">;
1793
1793
  key: z.ZodEffects<z.ZodString, string, string>;
1794
1794
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
1795
1795
  }, "strip", z.ZodTypeAny, {
1796
- value: import("../../../index.js").DeserializedJson;
1797
1796
  type: "remove";
1798
1797
  key: string;
1799
- }, {
1800
1798
  value: import("../../../index.js").DeserializedJson;
1799
+ }, {
1801
1800
  type: "remove";
1802
1801
  key: string;
1802
+ value: import("../../../index.js").DeserializedJson;
1803
1803
  }>, z.ZodObject<{
1804
1804
  type: z.ZodLiteral<"increment">;
1805
1805
  key: z.ZodEffects<z.ZodString, string, string>;
1806
1806
  value: z.ZodNumber;
1807
1807
  }, "strip", z.ZodTypeAny, {
1808
- value: number;
1809
1808
  type: "increment";
1810
1809
  key: string;
1811
- }, {
1812
1810
  value: number;
1811
+ }, {
1813
1812
  type: "increment";
1814
1813
  key: string;
1814
+ value: number;
1815
1815
  }>]>, "many">>;
1816
1816
  }, "strip", z.ZodTypeAny, {
1817
1817
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1818
1818
  operations?: ({
1819
- value: Record<string, unknown>;
1820
1819
  type: "update";
1820
+ value: Record<string, unknown>;
1821
1821
  } | {
1822
- value: import("../../../index.js").DeserializedJson;
1823
1822
  type: "set";
1824
1823
  key: string;
1824
+ value: import("../../../index.js").DeserializedJson;
1825
1825
  } | {
1826
1826
  type: "delete";
1827
1827
  key: string;
1828
1828
  } | {
1829
- value: import("../../../index.js").DeserializedJson;
1830
1829
  type: "append";
1831
1830
  key: string;
1832
- } | {
1833
1831
  value: import("../../../index.js").DeserializedJson;
1832
+ } | {
1834
1833
  type: "remove";
1835
1834
  key: string;
1835
+ value: import("../../../index.js").DeserializedJson;
1836
1836
  } | {
1837
- value: number;
1838
1837
  type: "increment";
1839
1838
  key: string;
1839
+ value: number;
1840
1840
  })[] | undefined;
1841
1841
  parentOperations?: ({
1842
- value: Record<string, unknown>;
1843
1842
  type: "update";
1843
+ value: Record<string, unknown>;
1844
1844
  } | {
1845
- value: import("../../../index.js").DeserializedJson;
1846
1845
  type: "set";
1847
1846
  key: string;
1847
+ value: import("../../../index.js").DeserializedJson;
1848
1848
  } | {
1849
1849
  type: "delete";
1850
1850
  key: string;
1851
1851
  } | {
1852
- value: import("../../../index.js").DeserializedJson;
1853
1852
  type: "append";
1854
1853
  key: string;
1855
- } | {
1856
1854
  value: import("../../../index.js").DeserializedJson;
1855
+ } | {
1857
1856
  type: "remove";
1858
1857
  key: string;
1858
+ value: import("../../../index.js").DeserializedJson;
1859
1859
  } | {
1860
- value: number;
1861
1860
  type: "increment";
1862
1861
  key: string;
1862
+ value: number;
1863
1863
  })[] | undefined;
1864
1864
  rootOperations?: ({
1865
- value: Record<string, unknown>;
1866
1865
  type: "update";
1866
+ value: Record<string, unknown>;
1867
1867
  } | {
1868
- value: import("../../../index.js").DeserializedJson;
1869
1868
  type: "set";
1870
1869
  key: string;
1870
+ value: import("../../../index.js").DeserializedJson;
1871
1871
  } | {
1872
1872
  type: "delete";
1873
1873
  key: string;
1874
1874
  } | {
1875
- value: import("../../../index.js").DeserializedJson;
1876
1875
  type: "append";
1877
1876
  key: string;
1878
- } | {
1879
1877
  value: import("../../../index.js").DeserializedJson;
1878
+ } | {
1880
1879
  type: "remove";
1881
1880
  key: string;
1881
+ value: import("../../../index.js").DeserializedJson;
1882
1882
  } | {
1883
- value: number;
1884
1883
  type: "increment";
1885
1884
  key: string;
1885
+ value: number;
1886
1886
  })[] | undefined;
1887
1887
  }, {
1888
1888
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1889
1889
  operations?: ({
1890
- value: Record<string, unknown>;
1891
1890
  type: "update";
1891
+ value: Record<string, unknown>;
1892
1892
  } | {
1893
- value: import("../../../index.js").DeserializedJson;
1894
1893
  type: "set";
1895
1894
  key: string;
1895
+ value: import("../../../index.js").DeserializedJson;
1896
1896
  } | {
1897
1897
  type: "delete";
1898
1898
  key: string;
1899
1899
  } | {
1900
- value: import("../../../index.js").DeserializedJson;
1901
1900
  type: "append";
1902
1901
  key: string;
1903
- } | {
1904
1902
  value: import("../../../index.js").DeserializedJson;
1903
+ } | {
1905
1904
  type: "remove";
1906
1905
  key: string;
1906
+ value: import("../../../index.js").DeserializedJson;
1907
1907
  } | {
1908
- value: number;
1909
1908
  type: "increment";
1910
1909
  key: string;
1910
+ value: number;
1911
1911
  })[] | undefined;
1912
1912
  parentOperations?: ({
1913
- value: Record<string, unknown>;
1914
1913
  type: "update";
1914
+ value: Record<string, unknown>;
1915
1915
  } | {
1916
- value: import("../../../index.js").DeserializedJson;
1917
1916
  type: "set";
1918
1917
  key: string;
1918
+ value: import("../../../index.js").DeserializedJson;
1919
1919
  } | {
1920
1920
  type: "delete";
1921
1921
  key: string;
1922
1922
  } | {
1923
- value: import("../../../index.js").DeserializedJson;
1924
1923
  type: "append";
1925
1924
  key: string;
1926
- } | {
1927
1925
  value: import("../../../index.js").DeserializedJson;
1926
+ } | {
1928
1927
  type: "remove";
1929
1928
  key: string;
1929
+ value: import("../../../index.js").DeserializedJson;
1930
1930
  } | {
1931
- value: number;
1932
1931
  type: "increment";
1933
1932
  key: string;
1933
+ value: number;
1934
1934
  })[] | undefined;
1935
1935
  rootOperations?: ({
1936
- value: Record<string, unknown>;
1937
1936
  type: "update";
1937
+ value: Record<string, unknown>;
1938
1938
  } | {
1939
- value: import("../../../index.js").DeserializedJson;
1940
1939
  type: "set";
1941
1940
  key: string;
1941
+ value: import("../../../index.js").DeserializedJson;
1942
1942
  } | {
1943
1943
  type: "delete";
1944
1944
  key: string;
1945
1945
  } | {
1946
- value: import("../../../index.js").DeserializedJson;
1947
1946
  type: "append";
1948
1947
  key: string;
1949
- } | {
1950
1948
  value: import("../../../index.js").DeserializedJson;
1949
+ } | {
1951
1950
  type: "remove";
1952
1951
  key: string;
1952
+ value: import("../../../index.js").DeserializedJson;
1953
1953
  } | {
1954
- value: number;
1955
1954
  type: "increment";
1956
1955
  key: string;
1956
+ value: number;
1957
1957
  })[] | undefined;
1958
1958
  }>>;
1959
1959
  flushedMetadata: z.ZodOptional<z.ZodObject<{
1960
1960
  data: z.ZodOptional<z.ZodString>;
1961
1961
  dataType: z.ZodString;
1962
1962
  }, "strip", z.ZodTypeAny, {
1963
- dataType: string;
1964
1963
  data?: string | undefined;
1965
- }, {
1966
1964
  dataType: string;
1965
+ }, {
1967
1966
  data?: string | undefined;
1967
+ dataType: string;
1968
1968
  }>>;
1969
1969
  }, "strip", z.ZodTypeAny, {
1970
1970
  ok: true;
1971
1971
  id: string;
1972
- outputType: string;
1973
1972
  output?: string | undefined;
1973
+ outputType: string;
1974
+ usage?: {
1975
+ durationMs: number;
1976
+ } | undefined;
1977
+ taskIdentifier?: string | undefined;
1974
1978
  metadata?: {
1975
1979
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1976
1980
  operations?: ({
1977
- value: Record<string, unknown>;
1978
1981
  type: "update";
1982
+ value: Record<string, unknown>;
1979
1983
  } | {
1980
- value: import("../../../index.js").DeserializedJson;
1981
1984
  type: "set";
1982
1985
  key: string;
1986
+ value: import("../../../index.js").DeserializedJson;
1983
1987
  } | {
1984
1988
  type: "delete";
1985
1989
  key: string;
1986
1990
  } | {
1987
- value: import("../../../index.js").DeserializedJson;
1988
1991
  type: "append";
1989
1992
  key: string;
1990
- } | {
1991
1993
  value: import("../../../index.js").DeserializedJson;
1994
+ } | {
1992
1995
  type: "remove";
1993
1996
  key: string;
1997
+ value: import("../../../index.js").DeserializedJson;
1994
1998
  } | {
1995
- value: number;
1996
1999
  type: "increment";
1997
2000
  key: string;
2001
+ value: number;
1998
2002
  })[] | undefined;
1999
2003
  parentOperations?: ({
2000
- value: Record<string, unknown>;
2001
2004
  type: "update";
2005
+ value: Record<string, unknown>;
2002
2006
  } | {
2003
- value: import("../../../index.js").DeserializedJson;
2004
2007
  type: "set";
2005
2008
  key: string;
2009
+ value: import("../../../index.js").DeserializedJson;
2006
2010
  } | {
2007
2011
  type: "delete";
2008
2012
  key: string;
2009
2013
  } | {
2010
- value: import("../../../index.js").DeserializedJson;
2011
2014
  type: "append";
2012
2015
  key: string;
2013
- } | {
2014
2016
  value: import("../../../index.js").DeserializedJson;
2017
+ } | {
2015
2018
  type: "remove";
2016
2019
  key: string;
2020
+ value: import("../../../index.js").DeserializedJson;
2017
2021
  } | {
2018
- value: number;
2019
2022
  type: "increment";
2020
2023
  key: string;
2024
+ value: number;
2021
2025
  })[] | undefined;
2022
2026
  rootOperations?: ({
2023
- value: Record<string, unknown>;
2024
2027
  type: "update";
2028
+ value: Record<string, unknown>;
2025
2029
  } | {
2026
- value: import("../../../index.js").DeserializedJson;
2027
2030
  type: "set";
2028
2031
  key: string;
2032
+ value: import("../../../index.js").DeserializedJson;
2029
2033
  } | {
2030
2034
  type: "delete";
2031
2035
  key: string;
2032
2036
  } | {
2033
- value: import("../../../index.js").DeserializedJson;
2034
2037
  type: "append";
2035
2038
  key: string;
2036
- } | {
2037
2039
  value: import("../../../index.js").DeserializedJson;
2040
+ } | {
2038
2041
  type: "remove";
2039
2042
  key: string;
2043
+ value: import("../../../index.js").DeserializedJson;
2040
2044
  } | {
2041
- value: number;
2042
2045
  type: "increment";
2043
2046
  key: string;
2047
+ value: number;
2044
2048
  })[] | undefined;
2045
2049
  } | undefined;
2046
- usage?: {
2047
- durationMs: number;
2048
- } | undefined;
2049
- taskIdentifier?: string | undefined;
2050
2050
  flushedMetadata?: {
2051
- dataType: string;
2052
2051
  data?: string | undefined;
2052
+ dataType: string;
2053
2053
  } | undefined;
2054
2054
  }, {
2055
2055
  ok: true;
2056
2056
  id: string;
2057
- outputType: string;
2058
2057
  output?: string | undefined;
2058
+ outputType: string;
2059
+ usage?: {
2060
+ durationMs: number;
2061
+ } | undefined;
2062
+ taskIdentifier?: string | undefined;
2059
2063
  metadata?: {
2060
2064
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2061
2065
  operations?: ({
2062
- value: Record<string, unknown>;
2063
2066
  type: "update";
2067
+ value: Record<string, unknown>;
2064
2068
  } | {
2065
- value: import("../../../index.js").DeserializedJson;
2066
2069
  type: "set";
2067
2070
  key: string;
2071
+ value: import("../../../index.js").DeserializedJson;
2068
2072
  } | {
2069
2073
  type: "delete";
2070
2074
  key: string;
2071
2075
  } | {
2072
- value: import("../../../index.js").DeserializedJson;
2073
2076
  type: "append";
2074
2077
  key: string;
2075
- } | {
2076
2078
  value: import("../../../index.js").DeserializedJson;
2079
+ } | {
2077
2080
  type: "remove";
2078
2081
  key: string;
2082
+ value: import("../../../index.js").DeserializedJson;
2079
2083
  } | {
2080
- value: number;
2081
2084
  type: "increment";
2082
2085
  key: string;
2086
+ value: number;
2083
2087
  })[] | undefined;
2084
2088
  parentOperations?: ({
2085
- value: Record<string, unknown>;
2086
2089
  type: "update";
2090
+ value: Record<string, unknown>;
2087
2091
  } | {
2088
- value: import("../../../index.js").DeserializedJson;
2089
2092
  type: "set";
2090
2093
  key: string;
2094
+ value: import("../../../index.js").DeserializedJson;
2091
2095
  } | {
2092
2096
  type: "delete";
2093
2097
  key: string;
2094
2098
  } | {
2095
- value: import("../../../index.js").DeserializedJson;
2096
2099
  type: "append";
2097
2100
  key: string;
2098
- } | {
2099
2101
  value: import("../../../index.js").DeserializedJson;
2102
+ } | {
2100
2103
  type: "remove";
2101
2104
  key: string;
2105
+ value: import("../../../index.js").DeserializedJson;
2102
2106
  } | {
2103
- value: number;
2104
2107
  type: "increment";
2105
2108
  key: string;
2109
+ value: number;
2106
2110
  })[] | undefined;
2107
2111
  rootOperations?: ({
2108
- value: Record<string, unknown>;
2109
2112
  type: "update";
2113
+ value: Record<string, unknown>;
2110
2114
  } | {
2111
- value: import("../../../index.js").DeserializedJson;
2112
2115
  type: "set";
2113
2116
  key: string;
2117
+ value: import("../../../index.js").DeserializedJson;
2114
2118
  } | {
2115
2119
  type: "delete";
2116
2120
  key: string;
2117
2121
  } | {
2118
- value: import("../../../index.js").DeserializedJson;
2119
2122
  type: "append";
2120
2123
  key: string;
2121
- } | {
2122
2124
  value: import("../../../index.js").DeserializedJson;
2125
+ } | {
2123
2126
  type: "remove";
2124
2127
  key: string;
2128
+ value: import("../../../index.js").DeserializedJson;
2125
2129
  } | {
2126
- value: number;
2127
2130
  type: "increment";
2128
2131
  key: string;
2132
+ value: number;
2129
2133
  })[] | undefined;
2130
2134
  } | undefined;
2131
- usage?: {
2132
- durationMs: number;
2133
- } | undefined;
2134
- taskIdentifier?: string | undefined;
2135
2135
  flushedMetadata?: {
2136
- dataType: string;
2137
2136
  data?: string | undefined;
2137
+ dataType: string;
2138
2138
  } | undefined;
2139
2139
  }>, z.ZodObject<{
2140
2140
  ok: z.ZodLiteral<false>;
@@ -2145,14 +2145,14 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2145
2145
  message: z.ZodString;
2146
2146
  stackTrace: z.ZodString;
2147
2147
  }, "strip", z.ZodTypeAny, {
2148
- message: string;
2149
2148
  type: "BUILT_IN_ERROR";
2150
2149
  name: string;
2150
+ message: string;
2151
2151
  stackTrace: string;
2152
2152
  }, {
2153
- message: string;
2154
2153
  type: "BUILT_IN_ERROR";
2155
2154
  name: string;
2155
+ message: string;
2156
2156
  stackTrace: string;
2157
2157
  }>, z.ZodObject<{
2158
2158
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -2178,13 +2178,13 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2178
2178
  message: z.ZodOptional<z.ZodString>;
2179
2179
  stackTrace: z.ZodOptional<z.ZodString>;
2180
2180
  }, "strip", z.ZodTypeAny, {
2181
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2182
2181
  type: "INTERNAL_ERROR";
2182
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
2183
2183
  message?: string | undefined;
2184
2184
  stackTrace?: string | undefined;
2185
2185
  }, {
2186
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2187
2186
  type: "INTERNAL_ERROR";
2187
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
2188
2188
  message?: string | undefined;
2189
2189
  stackTrace?: string | undefined;
2190
2190
  }>]>;
@@ -2216,23 +2216,23 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2216
2216
  type: z.ZodLiteral<"update">;
2217
2217
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2218
2218
  }, "strip", z.ZodTypeAny, {
2219
- value: Record<string, unknown>;
2220
2219
  type: "update";
2221
- }, {
2222
2220
  value: Record<string, unknown>;
2221
+ }, {
2223
2222
  type: "update";
2223
+ value: Record<string, unknown>;
2224
2224
  }>, z.ZodObject<{
2225
2225
  type: z.ZodLiteral<"set">;
2226
2226
  key: z.ZodEffects<z.ZodString, string, string>;
2227
2227
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2228
2228
  }, "strip", z.ZodTypeAny, {
2229
- value: import("../../../index.js").DeserializedJson;
2230
2229
  type: "set";
2231
2230
  key: string;
2232
- }, {
2233
2231
  value: import("../../../index.js").DeserializedJson;
2232
+ }, {
2234
2233
  type: "set";
2235
2234
  key: string;
2235
+ value: import("../../../index.js").DeserializedJson;
2236
2236
  }>, z.ZodObject<{
2237
2237
  type: z.ZodLiteral<"delete">;
2238
2238
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -2247,59 +2247,59 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2247
2247
  key: z.ZodEffects<z.ZodString, string, string>;
2248
2248
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2249
2249
  }, "strip", z.ZodTypeAny, {
2250
- value: import("../../../index.js").DeserializedJson;
2251
2250
  type: "append";
2252
2251
  key: string;
2253
- }, {
2254
2252
  value: import("../../../index.js").DeserializedJson;
2253
+ }, {
2255
2254
  type: "append";
2256
2255
  key: string;
2256
+ value: import("../../../index.js").DeserializedJson;
2257
2257
  }>, z.ZodObject<{
2258
2258
  type: z.ZodLiteral<"remove">;
2259
2259
  key: z.ZodEffects<z.ZodString, string, string>;
2260
2260
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2261
2261
  }, "strip", z.ZodTypeAny, {
2262
- value: import("../../../index.js").DeserializedJson;
2263
2262
  type: "remove";
2264
2263
  key: string;
2265
- }, {
2266
2264
  value: import("../../../index.js").DeserializedJson;
2265
+ }, {
2267
2266
  type: "remove";
2268
2267
  key: string;
2268
+ value: import("../../../index.js").DeserializedJson;
2269
2269
  }>, z.ZodObject<{
2270
2270
  type: z.ZodLiteral<"increment">;
2271
2271
  key: z.ZodEffects<z.ZodString, string, string>;
2272
2272
  value: z.ZodNumber;
2273
2273
  }, "strip", z.ZodTypeAny, {
2274
- value: number;
2275
2274
  type: "increment";
2276
2275
  key: string;
2277
- }, {
2278
2276
  value: number;
2277
+ }, {
2279
2278
  type: "increment";
2280
2279
  key: string;
2280
+ value: number;
2281
2281
  }>]>, "many">>;
2282
2282
  parentOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2283
2283
  type: z.ZodLiteral<"update">;
2284
2284
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2285
2285
  }, "strip", z.ZodTypeAny, {
2286
- value: Record<string, unknown>;
2287
2286
  type: "update";
2288
- }, {
2289
2287
  value: Record<string, unknown>;
2288
+ }, {
2290
2289
  type: "update";
2290
+ value: Record<string, unknown>;
2291
2291
  }>, z.ZodObject<{
2292
2292
  type: z.ZodLiteral<"set">;
2293
2293
  key: z.ZodEffects<z.ZodString, string, string>;
2294
2294
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2295
2295
  }, "strip", z.ZodTypeAny, {
2296
- value: import("../../../index.js").DeserializedJson;
2297
2296
  type: "set";
2298
2297
  key: string;
2299
- }, {
2300
2298
  value: import("../../../index.js").DeserializedJson;
2299
+ }, {
2301
2300
  type: "set";
2302
2301
  key: string;
2302
+ value: import("../../../index.js").DeserializedJson;
2303
2303
  }>, z.ZodObject<{
2304
2304
  type: z.ZodLiteral<"delete">;
2305
2305
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -2314,59 +2314,59 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2314
2314
  key: z.ZodEffects<z.ZodString, string, string>;
2315
2315
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2316
2316
  }, "strip", z.ZodTypeAny, {
2317
- value: import("../../../index.js").DeserializedJson;
2318
2317
  type: "append";
2319
2318
  key: string;
2320
- }, {
2321
2319
  value: import("../../../index.js").DeserializedJson;
2320
+ }, {
2322
2321
  type: "append";
2323
2322
  key: string;
2323
+ value: import("../../../index.js").DeserializedJson;
2324
2324
  }>, z.ZodObject<{
2325
2325
  type: z.ZodLiteral<"remove">;
2326
2326
  key: z.ZodEffects<z.ZodString, string, string>;
2327
2327
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2328
2328
  }, "strip", z.ZodTypeAny, {
2329
- value: import("../../../index.js").DeserializedJson;
2330
2329
  type: "remove";
2331
2330
  key: string;
2332
- }, {
2333
2331
  value: import("../../../index.js").DeserializedJson;
2332
+ }, {
2334
2333
  type: "remove";
2335
2334
  key: string;
2335
+ value: import("../../../index.js").DeserializedJson;
2336
2336
  }>, z.ZodObject<{
2337
2337
  type: z.ZodLiteral<"increment">;
2338
2338
  key: z.ZodEffects<z.ZodString, string, string>;
2339
2339
  value: z.ZodNumber;
2340
2340
  }, "strip", z.ZodTypeAny, {
2341
- value: number;
2342
2341
  type: "increment";
2343
2342
  key: string;
2344
- }, {
2345
2343
  value: number;
2344
+ }, {
2346
2345
  type: "increment";
2347
2346
  key: string;
2347
+ value: number;
2348
2348
  }>]>, "many">>;
2349
2349
  rootOperations: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2350
2350
  type: z.ZodLiteral<"update">;
2351
2351
  value: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2352
2352
  }, "strip", z.ZodTypeAny, {
2353
- value: Record<string, unknown>;
2354
2353
  type: "update";
2355
- }, {
2356
2354
  value: Record<string, unknown>;
2355
+ }, {
2357
2356
  type: "update";
2357
+ value: Record<string, unknown>;
2358
2358
  }>, z.ZodObject<{
2359
2359
  type: z.ZodLiteral<"set">;
2360
2360
  key: z.ZodEffects<z.ZodString, string, string>;
2361
2361
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2362
2362
  }, "strip", z.ZodTypeAny, {
2363
- value: import("../../../index.js").DeserializedJson;
2364
2363
  type: "set";
2365
2364
  key: string;
2366
- }, {
2367
2365
  value: import("../../../index.js").DeserializedJson;
2366
+ }, {
2368
2367
  type: "set";
2369
2368
  key: string;
2369
+ value: import("../../../index.js").DeserializedJson;
2370
2370
  }>, z.ZodObject<{
2371
2371
  type: z.ZodLiteral<"delete">;
2372
2372
  key: z.ZodEffects<z.ZodString, string, string>;
@@ -2381,196 +2381,198 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2381
2381
  key: z.ZodEffects<z.ZodString, string, string>;
2382
2382
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2383
2383
  }, "strip", z.ZodTypeAny, {
2384
- value: import("../../../index.js").DeserializedJson;
2385
2384
  type: "append";
2386
2385
  key: string;
2387
- }, {
2388
2386
  value: import("../../../index.js").DeserializedJson;
2387
+ }, {
2389
2388
  type: "append";
2390
2389
  key: string;
2390
+ value: import("../../../index.js").DeserializedJson;
2391
2391
  }>, z.ZodObject<{
2392
2392
  type: z.ZodLiteral<"remove">;
2393
2393
  key: z.ZodEffects<z.ZodString, string, string>;
2394
2394
  value: z.ZodType<import("../../../index.js").DeserializedJson, z.ZodTypeDef, import("../../../index.js").DeserializedJson>;
2395
2395
  }, "strip", z.ZodTypeAny, {
2396
- value: import("../../../index.js").DeserializedJson;
2397
2396
  type: "remove";
2398
2397
  key: string;
2399
- }, {
2400
2398
  value: import("../../../index.js").DeserializedJson;
2399
+ }, {
2401
2400
  type: "remove";
2402
2401
  key: string;
2402
+ value: import("../../../index.js").DeserializedJson;
2403
2403
  }>, z.ZodObject<{
2404
2404
  type: z.ZodLiteral<"increment">;
2405
2405
  key: z.ZodEffects<z.ZodString, string, string>;
2406
2406
  value: z.ZodNumber;
2407
2407
  }, "strip", z.ZodTypeAny, {
2408
- value: number;
2409
2408
  type: "increment";
2410
2409
  key: string;
2411
- }, {
2412
2410
  value: number;
2411
+ }, {
2413
2412
  type: "increment";
2414
2413
  key: string;
2414
+ value: number;
2415
2415
  }>]>, "many">>;
2416
2416
  }, "strip", z.ZodTypeAny, {
2417
2417
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2418
2418
  operations?: ({
2419
- value: Record<string, unknown>;
2420
2419
  type: "update";
2420
+ value: Record<string, unknown>;
2421
2421
  } | {
2422
- value: import("../../../index.js").DeserializedJson;
2423
2422
  type: "set";
2424
2423
  key: string;
2424
+ value: import("../../../index.js").DeserializedJson;
2425
2425
  } | {
2426
2426
  type: "delete";
2427
2427
  key: string;
2428
2428
  } | {
2429
- value: import("../../../index.js").DeserializedJson;
2430
2429
  type: "append";
2431
2430
  key: string;
2432
- } | {
2433
2431
  value: import("../../../index.js").DeserializedJson;
2432
+ } | {
2434
2433
  type: "remove";
2435
2434
  key: string;
2435
+ value: import("../../../index.js").DeserializedJson;
2436
2436
  } | {
2437
- value: number;
2438
2437
  type: "increment";
2439
2438
  key: string;
2439
+ value: number;
2440
2440
  })[] | undefined;
2441
2441
  parentOperations?: ({
2442
- value: Record<string, unknown>;
2443
2442
  type: "update";
2443
+ value: Record<string, unknown>;
2444
2444
  } | {
2445
- value: import("../../../index.js").DeserializedJson;
2446
2445
  type: "set";
2447
2446
  key: string;
2447
+ value: import("../../../index.js").DeserializedJson;
2448
2448
  } | {
2449
2449
  type: "delete";
2450
2450
  key: string;
2451
2451
  } | {
2452
- value: import("../../../index.js").DeserializedJson;
2453
2452
  type: "append";
2454
2453
  key: string;
2455
- } | {
2456
2454
  value: import("../../../index.js").DeserializedJson;
2455
+ } | {
2457
2456
  type: "remove";
2458
2457
  key: string;
2458
+ value: import("../../../index.js").DeserializedJson;
2459
2459
  } | {
2460
- value: number;
2461
2460
  type: "increment";
2462
2461
  key: string;
2462
+ value: number;
2463
2463
  })[] | undefined;
2464
2464
  rootOperations?: ({
2465
- value: Record<string, unknown>;
2466
2465
  type: "update";
2466
+ value: Record<string, unknown>;
2467
2467
  } | {
2468
- value: import("../../../index.js").DeserializedJson;
2469
2468
  type: "set";
2470
2469
  key: string;
2470
+ value: import("../../../index.js").DeserializedJson;
2471
2471
  } | {
2472
2472
  type: "delete";
2473
2473
  key: string;
2474
2474
  } | {
2475
- value: import("../../../index.js").DeserializedJson;
2476
2475
  type: "append";
2477
2476
  key: string;
2478
- } | {
2479
2477
  value: import("../../../index.js").DeserializedJson;
2478
+ } | {
2480
2479
  type: "remove";
2481
2480
  key: string;
2481
+ value: import("../../../index.js").DeserializedJson;
2482
2482
  } | {
2483
- value: number;
2484
2483
  type: "increment";
2485
2484
  key: string;
2485
+ value: number;
2486
2486
  })[] | undefined;
2487
2487
  }, {
2488
2488
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2489
2489
  operations?: ({
2490
- value: Record<string, unknown>;
2491
2490
  type: "update";
2491
+ value: Record<string, unknown>;
2492
2492
  } | {
2493
- value: import("../../../index.js").DeserializedJson;
2494
2493
  type: "set";
2495
2494
  key: string;
2495
+ value: import("../../../index.js").DeserializedJson;
2496
2496
  } | {
2497
2497
  type: "delete";
2498
2498
  key: string;
2499
2499
  } | {
2500
- value: import("../../../index.js").DeserializedJson;
2501
2500
  type: "append";
2502
2501
  key: string;
2503
- } | {
2504
2502
  value: import("../../../index.js").DeserializedJson;
2503
+ } | {
2505
2504
  type: "remove";
2506
2505
  key: string;
2506
+ value: import("../../../index.js").DeserializedJson;
2507
2507
  } | {
2508
- value: number;
2509
2508
  type: "increment";
2510
2509
  key: string;
2510
+ value: number;
2511
2511
  })[] | undefined;
2512
2512
  parentOperations?: ({
2513
- value: Record<string, unknown>;
2514
2513
  type: "update";
2514
+ value: Record<string, unknown>;
2515
2515
  } | {
2516
- value: import("../../../index.js").DeserializedJson;
2517
2516
  type: "set";
2518
2517
  key: string;
2518
+ value: import("../../../index.js").DeserializedJson;
2519
2519
  } | {
2520
2520
  type: "delete";
2521
2521
  key: string;
2522
2522
  } | {
2523
- value: import("../../../index.js").DeserializedJson;
2524
2523
  type: "append";
2525
2524
  key: string;
2526
- } | {
2527
2525
  value: import("../../../index.js").DeserializedJson;
2526
+ } | {
2528
2527
  type: "remove";
2529
2528
  key: string;
2529
+ value: import("../../../index.js").DeserializedJson;
2530
2530
  } | {
2531
- value: number;
2532
2531
  type: "increment";
2533
2532
  key: string;
2533
+ value: number;
2534
2534
  })[] | undefined;
2535
2535
  rootOperations?: ({
2536
- value: Record<string, unknown>;
2537
2536
  type: "update";
2537
+ value: Record<string, unknown>;
2538
2538
  } | {
2539
- value: import("../../../index.js").DeserializedJson;
2540
2539
  type: "set";
2541
2540
  key: string;
2541
+ value: import("../../../index.js").DeserializedJson;
2542
2542
  } | {
2543
2543
  type: "delete";
2544
2544
  key: string;
2545
2545
  } | {
2546
- value: import("../../../index.js").DeserializedJson;
2547
2546
  type: "append";
2548
2547
  key: string;
2549
- } | {
2550
2548
  value: import("../../../index.js").DeserializedJson;
2549
+ } | {
2551
2550
  type: "remove";
2552
2551
  key: string;
2552
+ value: import("../../../index.js").DeserializedJson;
2553
2553
  } | {
2554
- value: number;
2555
2554
  type: "increment";
2556
2555
  key: string;
2556
+ value: number;
2557
2557
  })[] | undefined;
2558
2558
  }>>;
2559
2559
  flushedMetadata: z.ZodOptional<z.ZodObject<{
2560
2560
  data: z.ZodOptional<z.ZodString>;
2561
2561
  dataType: z.ZodString;
2562
2562
  }, "strip", z.ZodTypeAny, {
2563
- dataType: string;
2564
2563
  data?: string | undefined;
2565
- }, {
2566
2564
  dataType: string;
2565
+ }, {
2567
2566
  data?: string | undefined;
2567
+ dataType: string;
2568
2568
  }>>;
2569
2569
  }, "strip", z.ZodTypeAny, {
2570
+ ok: false;
2571
+ id: string;
2570
2572
  error: {
2571
- message: string;
2572
2573
  type: "BUILT_IN_ERROR";
2573
2574
  name: string;
2575
+ message: string;
2574
2576
  stackTrace: string;
2575
2577
  } | {
2576
2578
  type: "CUSTOM_ERROR";
@@ -2579,104 +2581,104 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2579
2581
  type: "STRING_ERROR";
2580
2582
  raw: string;
2581
2583
  } | {
2582
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2583
2584
  type: "INTERNAL_ERROR";
2585
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
2584
2586
  message?: string | undefined;
2585
2587
  stackTrace?: string | undefined;
2586
2588
  };
2587
- ok: false;
2588
- id: string;
2589
+ retry?: {
2590
+ timestamp: number;
2591
+ delay: number;
2592
+ error?: unknown;
2593
+ } | undefined;
2594
+ skippedRetrying?: boolean | undefined;
2595
+ usage?: {
2596
+ durationMs: number;
2597
+ } | undefined;
2598
+ taskIdentifier?: string | undefined;
2589
2599
  metadata?: {
2590
2600
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2591
2601
  operations?: ({
2592
- value: Record<string, unknown>;
2593
2602
  type: "update";
2603
+ value: Record<string, unknown>;
2594
2604
  } | {
2595
- value: import("../../../index.js").DeserializedJson;
2596
2605
  type: "set";
2597
2606
  key: string;
2607
+ value: import("../../../index.js").DeserializedJson;
2598
2608
  } | {
2599
2609
  type: "delete";
2600
2610
  key: string;
2601
2611
  } | {
2602
- value: import("../../../index.js").DeserializedJson;
2603
2612
  type: "append";
2604
2613
  key: string;
2605
- } | {
2606
2614
  value: import("../../../index.js").DeserializedJson;
2615
+ } | {
2607
2616
  type: "remove";
2608
2617
  key: string;
2618
+ value: import("../../../index.js").DeserializedJson;
2609
2619
  } | {
2610
- value: number;
2611
2620
  type: "increment";
2612
2621
  key: string;
2622
+ value: number;
2613
2623
  })[] | undefined;
2614
2624
  parentOperations?: ({
2615
- value: Record<string, unknown>;
2616
2625
  type: "update";
2626
+ value: Record<string, unknown>;
2617
2627
  } | {
2618
- value: import("../../../index.js").DeserializedJson;
2619
2628
  type: "set";
2620
2629
  key: string;
2630
+ value: import("../../../index.js").DeserializedJson;
2621
2631
  } | {
2622
2632
  type: "delete";
2623
2633
  key: string;
2624
2634
  } | {
2625
- value: import("../../../index.js").DeserializedJson;
2626
2635
  type: "append";
2627
2636
  key: string;
2628
- } | {
2629
2637
  value: import("../../../index.js").DeserializedJson;
2638
+ } | {
2630
2639
  type: "remove";
2631
2640
  key: string;
2641
+ value: import("../../../index.js").DeserializedJson;
2632
2642
  } | {
2633
- value: number;
2634
2643
  type: "increment";
2635
2644
  key: string;
2645
+ value: number;
2636
2646
  })[] | undefined;
2637
2647
  rootOperations?: ({
2638
- value: Record<string, unknown>;
2639
2648
  type: "update";
2649
+ value: Record<string, unknown>;
2640
2650
  } | {
2641
- value: import("../../../index.js").DeserializedJson;
2642
2651
  type: "set";
2643
2652
  key: string;
2653
+ value: import("../../../index.js").DeserializedJson;
2644
2654
  } | {
2645
2655
  type: "delete";
2646
2656
  key: string;
2647
2657
  } | {
2648
- value: import("../../../index.js").DeserializedJson;
2649
2658
  type: "append";
2650
2659
  key: string;
2651
- } | {
2652
2660
  value: import("../../../index.js").DeserializedJson;
2661
+ } | {
2653
2662
  type: "remove";
2654
2663
  key: string;
2664
+ value: import("../../../index.js").DeserializedJson;
2655
2665
  } | {
2656
- value: number;
2657
2666
  type: "increment";
2658
2667
  key: string;
2668
+ value: number;
2659
2669
  })[] | undefined;
2660
2670
  } | undefined;
2661
- retry?: {
2662
- timestamp: number;
2663
- delay: number;
2664
- error?: unknown;
2665
- } | undefined;
2666
- skippedRetrying?: boolean | undefined;
2667
- usage?: {
2668
- durationMs: number;
2669
- } | undefined;
2670
- taskIdentifier?: string | undefined;
2671
2671
  flushedMetadata?: {
2672
- dataType: string;
2673
2672
  data?: string | undefined;
2673
+ dataType: string;
2674
2674
  } | undefined;
2675
2675
  }, {
2676
+ ok: false;
2677
+ id: string;
2676
2678
  error: {
2677
- message: string;
2678
2679
  type: "BUILT_IN_ERROR";
2679
2680
  name: string;
2681
+ message: string;
2680
2682
  stackTrace: string;
2681
2683
  } | {
2682
2684
  type: "CUSTOM_ERROR";
@@ -2685,193 +2687,204 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2685
2687
  type: "STRING_ERROR";
2686
2688
  raw: string;
2687
2689
  } | {
2688
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2689
2690
  type: "INTERNAL_ERROR";
2691
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
2690
2692
  message?: string | undefined;
2691
2693
  stackTrace?: string | undefined;
2692
2694
  };
2693
- ok: false;
2694
- id: string;
2695
+ retry?: {
2696
+ timestamp: number;
2697
+ delay: number;
2698
+ error?: unknown;
2699
+ } | undefined;
2700
+ skippedRetrying?: boolean | undefined;
2701
+ usage?: {
2702
+ durationMs: number;
2703
+ } | undefined;
2704
+ taskIdentifier?: string | undefined;
2695
2705
  metadata?: {
2696
2706
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2697
2707
  operations?: ({
2698
- value: Record<string, unknown>;
2699
2708
  type: "update";
2709
+ value: Record<string, unknown>;
2700
2710
  } | {
2701
- value: import("../../../index.js").DeserializedJson;
2702
2711
  type: "set";
2703
2712
  key: string;
2713
+ value: import("../../../index.js").DeserializedJson;
2704
2714
  } | {
2705
2715
  type: "delete";
2706
2716
  key: string;
2707
2717
  } | {
2708
- value: import("../../../index.js").DeserializedJson;
2709
2718
  type: "append";
2710
2719
  key: string;
2711
- } | {
2712
2720
  value: import("../../../index.js").DeserializedJson;
2721
+ } | {
2713
2722
  type: "remove";
2714
2723
  key: string;
2724
+ value: import("../../../index.js").DeserializedJson;
2715
2725
  } | {
2716
- value: number;
2717
2726
  type: "increment";
2718
2727
  key: string;
2728
+ value: number;
2719
2729
  })[] | undefined;
2720
2730
  parentOperations?: ({
2721
- value: Record<string, unknown>;
2722
2731
  type: "update";
2732
+ value: Record<string, unknown>;
2723
2733
  } | {
2724
- value: import("../../../index.js").DeserializedJson;
2725
2734
  type: "set";
2726
2735
  key: string;
2736
+ value: import("../../../index.js").DeserializedJson;
2727
2737
  } | {
2728
2738
  type: "delete";
2729
2739
  key: string;
2730
2740
  } | {
2731
- value: import("../../../index.js").DeserializedJson;
2732
2741
  type: "append";
2733
2742
  key: string;
2734
- } | {
2735
2743
  value: import("../../../index.js").DeserializedJson;
2744
+ } | {
2736
2745
  type: "remove";
2737
2746
  key: string;
2747
+ value: import("../../../index.js").DeserializedJson;
2738
2748
  } | {
2739
- value: number;
2740
2749
  type: "increment";
2741
2750
  key: string;
2751
+ value: number;
2742
2752
  })[] | undefined;
2743
2753
  rootOperations?: ({
2744
- value: Record<string, unknown>;
2745
2754
  type: "update";
2755
+ value: Record<string, unknown>;
2746
2756
  } | {
2747
- value: import("../../../index.js").DeserializedJson;
2748
2757
  type: "set";
2749
2758
  key: string;
2759
+ value: import("../../../index.js").DeserializedJson;
2750
2760
  } | {
2751
2761
  type: "delete";
2752
2762
  key: string;
2753
2763
  } | {
2754
- value: import("../../../index.js").DeserializedJson;
2755
2764
  type: "append";
2756
2765
  key: string;
2757
- } | {
2758
2766
  value: import("../../../index.js").DeserializedJson;
2767
+ } | {
2759
2768
  type: "remove";
2760
2769
  key: string;
2770
+ value: import("../../../index.js").DeserializedJson;
2761
2771
  } | {
2762
- value: number;
2763
2772
  type: "increment";
2764
2773
  key: string;
2774
+ value: number;
2765
2775
  })[] | undefined;
2766
2776
  } | undefined;
2767
- retry?: {
2768
- timestamp: number;
2769
- delay: number;
2770
- error?: unknown;
2771
- } | undefined;
2772
- skippedRetrying?: boolean | undefined;
2773
- usage?: {
2774
- durationMs: number;
2775
- } | undefined;
2776
- taskIdentifier?: string | undefined;
2777
2777
  flushedMetadata?: {
2778
- dataType: string;
2779
2778
  data?: string | undefined;
2779
+ dataType: string;
2780
2780
  } | undefined;
2781
2781
  }>]>;
2782
2782
  }, "strip", z.ZodTypeAny, {
2783
2783
  completion: {
2784
- error: {
2785
- message: string;
2786
- type: "BUILT_IN_ERROR";
2787
- name: string;
2788
- stackTrace: string;
2789
- } | {
2790
- type: "CUSTOM_ERROR";
2791
- raw: string;
2792
- } | {
2793
- type: "STRING_ERROR";
2794
- raw: string;
2795
- } | {
2796
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2797
- type: "INTERNAL_ERROR";
2798
- message?: string | undefined;
2799
- stackTrace?: string | undefined;
2800
- };
2801
- ok: false;
2784
+ ok: true;
2802
2785
  id: string;
2786
+ output?: string | undefined;
2787
+ outputType: string;
2788
+ usage?: {
2789
+ durationMs: number;
2790
+ } | undefined;
2791
+ taskIdentifier?: string | undefined;
2803
2792
  metadata?: {
2804
2793
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2805
2794
  operations?: ({
2806
- value: Record<string, unknown>;
2807
2795
  type: "update";
2796
+ value: Record<string, unknown>;
2808
2797
  } | {
2809
- value: import("../../../index.js").DeserializedJson;
2810
2798
  type: "set";
2811
2799
  key: string;
2800
+ value: import("../../../index.js").DeserializedJson;
2812
2801
  } | {
2813
2802
  type: "delete";
2814
2803
  key: string;
2815
2804
  } | {
2816
- value: import("../../../index.js").DeserializedJson;
2817
2805
  type: "append";
2818
2806
  key: string;
2819
- } | {
2820
2807
  value: import("../../../index.js").DeserializedJson;
2808
+ } | {
2821
2809
  type: "remove";
2822
2810
  key: string;
2811
+ value: import("../../../index.js").DeserializedJson;
2823
2812
  } | {
2824
- value: number;
2825
2813
  type: "increment";
2826
2814
  key: string;
2815
+ value: number;
2827
2816
  })[] | undefined;
2828
2817
  parentOperations?: ({
2829
- value: Record<string, unknown>;
2830
2818
  type: "update";
2819
+ value: Record<string, unknown>;
2831
2820
  } | {
2832
- value: import("../../../index.js").DeserializedJson;
2833
2821
  type: "set";
2834
2822
  key: string;
2823
+ value: import("../../../index.js").DeserializedJson;
2835
2824
  } | {
2836
2825
  type: "delete";
2837
2826
  key: string;
2838
2827
  } | {
2839
- value: import("../../../index.js").DeserializedJson;
2840
2828
  type: "append";
2841
2829
  key: string;
2842
- } | {
2843
2830
  value: import("../../../index.js").DeserializedJson;
2831
+ } | {
2844
2832
  type: "remove";
2845
2833
  key: string;
2834
+ value: import("../../../index.js").DeserializedJson;
2846
2835
  } | {
2847
- value: number;
2848
2836
  type: "increment";
2849
2837
  key: string;
2838
+ value: number;
2850
2839
  })[] | undefined;
2851
2840
  rootOperations?: ({
2852
- value: Record<string, unknown>;
2853
2841
  type: "update";
2842
+ value: Record<string, unknown>;
2854
2843
  } | {
2855
- value: import("../../../index.js").DeserializedJson;
2856
2844
  type: "set";
2857
2845
  key: string;
2846
+ value: import("../../../index.js").DeserializedJson;
2858
2847
  } | {
2859
2848
  type: "delete";
2860
2849
  key: string;
2861
2850
  } | {
2862
- value: import("../../../index.js").DeserializedJson;
2863
2851
  type: "append";
2864
2852
  key: string;
2865
- } | {
2866
2853
  value: import("../../../index.js").DeserializedJson;
2854
+ } | {
2867
2855
  type: "remove";
2868
2856
  key: string;
2857
+ value: import("../../../index.js").DeserializedJson;
2869
2858
  } | {
2870
- value: number;
2871
2859
  type: "increment";
2872
2860
  key: string;
2861
+ value: number;
2873
2862
  })[] | undefined;
2874
2863
  } | undefined;
2864
+ flushedMetadata?: {
2865
+ data?: string | undefined;
2866
+ dataType: string;
2867
+ } | undefined;
2868
+ } | {
2869
+ ok: false;
2870
+ id: string;
2871
+ error: {
2872
+ type: "BUILT_IN_ERROR";
2873
+ name: string;
2874
+ message: string;
2875
+ stackTrace: string;
2876
+ } | {
2877
+ type: "CUSTOM_ERROR";
2878
+ raw: string;
2879
+ } | {
2880
+ type: "STRING_ERROR";
2881
+ raw: string;
2882
+ } | {
2883
+ type: "INTERNAL_ERROR";
2884
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
2885
+ message?: string | undefined;
2886
+ stackTrace?: string | undefined;
2887
+ };
2875
2888
  retry?: {
2876
2889
  timestamp: number;
2877
2890
  delay: number;
@@ -2882,189 +2895,189 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
2882
2895
  durationMs: number;
2883
2896
  } | undefined;
2884
2897
  taskIdentifier?: string | undefined;
2885
- flushedMetadata?: {
2886
- dataType: string;
2887
- data?: string | undefined;
2888
- } | undefined;
2889
- } | {
2890
- ok: true;
2891
- id: string;
2892
- outputType: string;
2893
- output?: string | undefined;
2894
2898
  metadata?: {
2895
2899
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2896
2900
  operations?: ({
2897
- value: Record<string, unknown>;
2898
2901
  type: "update";
2902
+ value: Record<string, unknown>;
2899
2903
  } | {
2900
- value: import("../../../index.js").DeserializedJson;
2901
2904
  type: "set";
2902
2905
  key: string;
2906
+ value: import("../../../index.js").DeserializedJson;
2903
2907
  } | {
2904
2908
  type: "delete";
2905
2909
  key: string;
2906
2910
  } | {
2907
- value: import("../../../index.js").DeserializedJson;
2908
2911
  type: "append";
2909
2912
  key: string;
2910
- } | {
2911
2913
  value: import("../../../index.js").DeserializedJson;
2914
+ } | {
2912
2915
  type: "remove";
2913
2916
  key: string;
2917
+ value: import("../../../index.js").DeserializedJson;
2914
2918
  } | {
2915
- value: number;
2916
2919
  type: "increment";
2917
2920
  key: string;
2921
+ value: number;
2918
2922
  })[] | undefined;
2919
2923
  parentOperations?: ({
2920
- value: Record<string, unknown>;
2921
2924
  type: "update";
2925
+ value: Record<string, unknown>;
2922
2926
  } | {
2923
- value: import("../../../index.js").DeserializedJson;
2924
2927
  type: "set";
2925
2928
  key: string;
2929
+ value: import("../../../index.js").DeserializedJson;
2926
2930
  } | {
2927
2931
  type: "delete";
2928
2932
  key: string;
2929
2933
  } | {
2930
- value: import("../../../index.js").DeserializedJson;
2931
2934
  type: "append";
2932
2935
  key: string;
2933
- } | {
2934
2936
  value: import("../../../index.js").DeserializedJson;
2937
+ } | {
2935
2938
  type: "remove";
2936
2939
  key: string;
2940
+ value: import("../../../index.js").DeserializedJson;
2937
2941
  } | {
2938
- value: number;
2939
2942
  type: "increment";
2940
2943
  key: string;
2944
+ value: number;
2941
2945
  })[] | undefined;
2942
2946
  rootOperations?: ({
2943
- value: Record<string, unknown>;
2944
2947
  type: "update";
2948
+ value: Record<string, unknown>;
2945
2949
  } | {
2946
- value: import("../../../index.js").DeserializedJson;
2947
2950
  type: "set";
2948
2951
  key: string;
2952
+ value: import("../../../index.js").DeserializedJson;
2949
2953
  } | {
2950
2954
  type: "delete";
2951
2955
  key: string;
2952
2956
  } | {
2953
- value: import("../../../index.js").DeserializedJson;
2954
2957
  type: "append";
2955
2958
  key: string;
2956
- } | {
2957
2959
  value: import("../../../index.js").DeserializedJson;
2960
+ } | {
2958
2961
  type: "remove";
2959
2962
  key: string;
2963
+ value: import("../../../index.js").DeserializedJson;
2960
2964
  } | {
2961
- value: number;
2962
2965
  type: "increment";
2963
2966
  key: string;
2967
+ value: number;
2964
2968
  })[] | undefined;
2965
2969
  } | undefined;
2966
- usage?: {
2967
- durationMs: number;
2968
- } | undefined;
2969
- taskIdentifier?: string | undefined;
2970
2970
  flushedMetadata?: {
2971
- dataType: string;
2972
2971
  data?: string | undefined;
2972
+ dataType: string;
2973
2973
  } | undefined;
2974
2974
  };
2975
2975
  }, {
2976
2976
  completion: {
2977
- error: {
2978
- message: string;
2979
- type: "BUILT_IN_ERROR";
2980
- name: string;
2981
- stackTrace: string;
2982
- } | {
2983
- type: "CUSTOM_ERROR";
2984
- raw: string;
2985
- } | {
2986
- type: "STRING_ERROR";
2987
- raw: string;
2988
- } | {
2989
- code: "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "CONFIGURED_INCORRECTLY" | "TASK_ALREADY_RUNNING" | "TASK_EXECUTION_FAILED" | "TASK_EXECUTION_ABORTED" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_RUN_CANCELLED" | "TASK_INPUT_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "MAX_DURATION_EXCEEDED" | "DISK_SPACE_EXCEEDED" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "OUTDATED_SDK_VERSION" | "TASK_DID_CONCURRENT_WAIT" | "RECURSIVE_WAIT_DEADLOCK" | "BATCH_ITEM_COULD_NOT_TRIGGER" | "PAYLOAD_TOO_LARGE" | "UNSPECIFIED_ERROR";
2990
- type: "INTERNAL_ERROR";
2991
- message?: string | undefined;
2992
- stackTrace?: string | undefined;
2993
- };
2994
- ok: false;
2977
+ ok: true;
2995
2978
  id: string;
2979
+ output?: string | undefined;
2980
+ outputType: string;
2981
+ usage?: {
2982
+ durationMs: number;
2983
+ } | undefined;
2984
+ taskIdentifier?: string | undefined;
2996
2985
  metadata?: {
2997
2986
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2998
2987
  operations?: ({
2999
- value: Record<string, unknown>;
3000
2988
  type: "update";
2989
+ value: Record<string, unknown>;
3001
2990
  } | {
3002
- value: import("../../../index.js").DeserializedJson;
3003
2991
  type: "set";
3004
2992
  key: string;
2993
+ value: import("../../../index.js").DeserializedJson;
3005
2994
  } | {
3006
2995
  type: "delete";
3007
2996
  key: string;
3008
2997
  } | {
3009
- value: import("../../../index.js").DeserializedJson;
3010
2998
  type: "append";
3011
2999
  key: string;
3012
- } | {
3013
3000
  value: import("../../../index.js").DeserializedJson;
3001
+ } | {
3014
3002
  type: "remove";
3015
3003
  key: string;
3004
+ value: import("../../../index.js").DeserializedJson;
3016
3005
  } | {
3017
- value: number;
3018
3006
  type: "increment";
3019
3007
  key: string;
3008
+ value: number;
3020
3009
  })[] | undefined;
3021
3010
  parentOperations?: ({
3022
- value: Record<string, unknown>;
3023
3011
  type: "update";
3012
+ value: Record<string, unknown>;
3024
3013
  } | {
3025
- value: import("../../../index.js").DeserializedJson;
3026
3014
  type: "set";
3027
3015
  key: string;
3016
+ value: import("../../../index.js").DeserializedJson;
3028
3017
  } | {
3029
3018
  type: "delete";
3030
3019
  key: string;
3031
3020
  } | {
3032
- value: import("../../../index.js").DeserializedJson;
3033
3021
  type: "append";
3034
3022
  key: string;
3035
- } | {
3036
3023
  value: import("../../../index.js").DeserializedJson;
3024
+ } | {
3037
3025
  type: "remove";
3038
3026
  key: string;
3027
+ value: import("../../../index.js").DeserializedJson;
3039
3028
  } | {
3040
- value: number;
3041
3029
  type: "increment";
3042
3030
  key: string;
3031
+ value: number;
3043
3032
  })[] | undefined;
3044
3033
  rootOperations?: ({
3045
- value: Record<string, unknown>;
3046
3034
  type: "update";
3035
+ value: Record<string, unknown>;
3047
3036
  } | {
3048
- value: import("../../../index.js").DeserializedJson;
3049
3037
  type: "set";
3050
3038
  key: string;
3039
+ value: import("../../../index.js").DeserializedJson;
3051
3040
  } | {
3052
3041
  type: "delete";
3053
3042
  key: string;
3054
3043
  } | {
3055
- value: import("../../../index.js").DeserializedJson;
3056
3044
  type: "append";
3057
3045
  key: string;
3058
- } | {
3059
3046
  value: import("../../../index.js").DeserializedJson;
3047
+ } | {
3060
3048
  type: "remove";
3061
3049
  key: string;
3050
+ value: import("../../../index.js").DeserializedJson;
3062
3051
  } | {
3063
- value: number;
3064
3052
  type: "increment";
3065
3053
  key: string;
3054
+ value: number;
3066
3055
  })[] | undefined;
3067
3056
  } | undefined;
3057
+ flushedMetadata?: {
3058
+ data?: string | undefined;
3059
+ dataType: string;
3060
+ } | undefined;
3061
+ } | {
3062
+ ok: false;
3063
+ id: string;
3064
+ error: {
3065
+ type: "BUILT_IN_ERROR";
3066
+ name: string;
3067
+ message: string;
3068
+ stackTrace: string;
3069
+ } | {
3070
+ type: "CUSTOM_ERROR";
3071
+ raw: string;
3072
+ } | {
3073
+ type: "STRING_ERROR";
3074
+ raw: string;
3075
+ } | {
3076
+ type: "INTERNAL_ERROR";
3077
+ code: "BATCH_ITEM_COULD_NOT_TRIGGER" | "CONFIGURED_INCORRECTLY" | "COULD_NOT_FIND_EXECUTOR" | "COULD_NOT_FIND_TASK" | "COULD_NOT_IMPORT_TASK" | "DISK_SPACE_EXCEEDED" | "GRACEFUL_EXIT_TIMEOUT" | "HANDLE_ERROR_ERROR" | "MAX_DURATION_EXCEEDED" | "OUTDATED_SDK_VERSION" | "PAYLOAD_TOO_LARGE" | "POD_EVICTED" | "POD_UNKNOWN_ERROR" | "RECURSIVE_WAIT_DEADLOCK" | "TASK_ALREADY_RUNNING" | "TASK_DEQUEUED_INVALID_STATE" | "TASK_DEQUEUED_QUEUE_NOT_FOUND" | "TASK_DID_CONCURRENT_WAIT" | "TASK_EXECUTION_ABORTED" | "TASK_EXECUTION_FAILED" | "TASK_HAS_N0_EXECUTION_SNAPSHOT" | "TASK_INPUT_ERROR" | "TASK_MIDDLEWARE_ERROR" | "TASK_OUTPUT_ERROR" | "TASK_PROCESS_EXITED_WITH_NON_ZERO_CODE" | "TASK_PROCESS_MAYBE_OOM_KILLED" | "TASK_PROCESS_OOM_KILLED" | "TASK_PROCESS_SIGKILL_TIMEOUT" | "TASK_PROCESS_SIGSEGV" | "TASK_PROCESS_SIGTERM" | "TASK_RUN_CANCELLED" | "TASK_RUN_CRASHED" | "TASK_RUN_DEQUEUED_MAX_RETRIES" | "TASK_RUN_HEARTBEAT_TIMEOUT" | "TASK_RUN_STALLED_EXECUTING" | "TASK_RUN_STALLED_EXECUTING_WITH_WAITPOINTS" | "TASK_RUN_UNCAUGHT_EXCEPTION" | "UNSPECIFIED_ERROR";
3078
+ message?: string | undefined;
3079
+ stackTrace?: string | undefined;
3080
+ };
3068
3081
  retry?: {
3069
3082
  timestamp: number;
3070
3083
  delay: number;
@@ -3075,94 +3088,81 @@ export declare const WorkerApiRunAttemptCompleteRequestBody: z.ZodObject<{
3075
3088
  durationMs: number;
3076
3089
  } | undefined;
3077
3090
  taskIdentifier?: string | undefined;
3078
- flushedMetadata?: {
3079
- dataType: string;
3080
- data?: string | undefined;
3081
- } | undefined;
3082
- } | {
3083
- ok: true;
3084
- id: string;
3085
- outputType: string;
3086
- output?: string | undefined;
3087
3091
  metadata?: {
3088
3092
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
3089
3093
  operations?: ({
3090
- value: Record<string, unknown>;
3091
3094
  type: "update";
3095
+ value: Record<string, unknown>;
3092
3096
  } | {
3093
- value: import("../../../index.js").DeserializedJson;
3094
3097
  type: "set";
3095
3098
  key: string;
3099
+ value: import("../../../index.js").DeserializedJson;
3096
3100
  } | {
3097
3101
  type: "delete";
3098
3102
  key: string;
3099
3103
  } | {
3100
- value: import("../../../index.js").DeserializedJson;
3101
3104
  type: "append";
3102
3105
  key: string;
3103
- } | {
3104
3106
  value: import("../../../index.js").DeserializedJson;
3107
+ } | {
3105
3108
  type: "remove";
3106
3109
  key: string;
3110
+ value: import("../../../index.js").DeserializedJson;
3107
3111
  } | {
3108
- value: number;
3109
3112
  type: "increment";
3110
3113
  key: string;
3114
+ value: number;
3111
3115
  })[] | undefined;
3112
3116
  parentOperations?: ({
3113
- value: Record<string, unknown>;
3114
3117
  type: "update";
3118
+ value: Record<string, unknown>;
3115
3119
  } | {
3116
- value: import("../../../index.js").DeserializedJson;
3117
3120
  type: "set";
3118
3121
  key: string;
3122
+ value: import("../../../index.js").DeserializedJson;
3119
3123
  } | {
3120
3124
  type: "delete";
3121
3125
  key: string;
3122
3126
  } | {
3123
- value: import("../../../index.js").DeserializedJson;
3124
3127
  type: "append";
3125
3128
  key: string;
3126
- } | {
3127
3129
  value: import("../../../index.js").DeserializedJson;
3130
+ } | {
3128
3131
  type: "remove";
3129
3132
  key: string;
3133
+ value: import("../../../index.js").DeserializedJson;
3130
3134
  } | {
3131
- value: number;
3132
3135
  type: "increment";
3133
3136
  key: string;
3137
+ value: number;
3134
3138
  })[] | undefined;
3135
3139
  rootOperations?: ({
3136
- value: Record<string, unknown>;
3137
3140
  type: "update";
3141
+ value: Record<string, unknown>;
3138
3142
  } | {
3139
- value: import("../../../index.js").DeserializedJson;
3140
3143
  type: "set";
3141
3144
  key: string;
3145
+ value: import("../../../index.js").DeserializedJson;
3142
3146
  } | {
3143
3147
  type: "delete";
3144
3148
  key: string;
3145
3149
  } | {
3146
- value: import("../../../index.js").DeserializedJson;
3147
3150
  type: "append";
3148
3151
  key: string;
3149
- } | {
3150
3152
  value: import("../../../index.js").DeserializedJson;
3153
+ } | {
3151
3154
  type: "remove";
3152
3155
  key: string;
3156
+ value: import("../../../index.js").DeserializedJson;
3153
3157
  } | {
3154
- value: number;
3155
3158
  type: "increment";
3156
3159
  key: string;
3160
+ value: number;
3157
3161
  })[] | undefined;
3158
3162
  } | undefined;
3159
- usage?: {
3160
- durationMs: number;
3161
- } | undefined;
3162
- taskIdentifier?: string | undefined;
3163
3163
  flushedMetadata?: {
3164
- dataType: string;
3165
3164
  data?: string | undefined;
3165
+ dataType: string;
3166
3166
  } | undefined;
3167
3167
  };
3168
3168
  }>;
@@ -3171,9 +3171,9 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
3171
3171
  result: z.ZodIntersection<z.ZodObject<{
3172
3172
  attemptStatus: z.ZodEnum<["RUN_FINISHED", "RUN_PENDING_CANCEL", "RETRY_QUEUED", "RETRY_IMMEDIATELY"]>;
3173
3173
  }, "strip", z.ZodTypeAny, {
3174
- attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
3174
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
3175
3175
  }, {
3176
- attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
3176
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
3177
3177
  }>, z.ZodObject<{
3178
3178
  snapshot: z.ZodObject<{
3179
3179
  id: z.ZodString;
@@ -3183,16 +3183,16 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
3183
3183
  createdAt: z.ZodDate;
3184
3184
  }, "strip", z.ZodTypeAny, {
3185
3185
  id: string;
3186
- createdAt: Date;
3187
- description: string;
3188
3186
  friendlyId: string;
3189
3187
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3188
+ description: string;
3189
+ createdAt: Date;
3190
3190
  }, {
3191
3191
  id: string;
3192
- createdAt: Date;
3193
- description: string;
3194
3192
  friendlyId: string;
3195
3193
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3194
+ description: string;
3195
+ createdAt: Date;
3196
3196
  }>;
3197
3197
  run: z.ZodObject<{
3198
3198
  id: z.ZodString;
@@ -3201,86 +3201,86 @@ export declare const WorkerApiRunAttemptCompleteResponseBody: z.ZodObject<{
3201
3201
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3202
3202
  taskEventStore: z.ZodOptional<z.ZodString>;
3203
3203
  }, "strip", z.ZodTypeAny, {
3204
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3205
3204
  id: string;
3206
3205
  friendlyId: string;
3206
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3207
3207
  attemptNumber?: number | null | undefined;
3208
3208
  taskEventStore?: string | undefined;
3209
3209
  }, {
3210
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3211
3210
  id: string;
3212
3211
  friendlyId: string;
3212
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3213
3213
  attemptNumber?: number | null | undefined;
3214
3214
  taskEventStore?: string | undefined;
3215
3215
  }>;
3216
3216
  }, "strip", z.ZodTypeAny, {
3217
+ snapshot: {
3218
+ id: string;
3219
+ friendlyId: string;
3220
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3221
+ description: string;
3222
+ createdAt: Date;
3223
+ };
3217
3224
  run: {
3218
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3219
3225
  id: string;
3220
3226
  friendlyId: string;
3227
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3221
3228
  attemptNumber?: number | null | undefined;
3222
3229
  taskEventStore?: string | undefined;
3223
3230
  };
3231
+ }, {
3224
3232
  snapshot: {
3225
3233
  id: string;
3226
- createdAt: Date;
3227
- description: string;
3228
3234
  friendlyId: string;
3229
3235
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3236
+ description: string;
3237
+ createdAt: Date;
3230
3238
  };
3231
- }, {
3232
3239
  run: {
3233
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3234
3240
  id: string;
3235
3241
  friendlyId: string;
3242
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3236
3243
  attemptNumber?: number | null | undefined;
3237
3244
  taskEventStore?: string | undefined;
3238
3245
  };
3246
+ }>>;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ result: {
3249
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
3250
+ } & {
3239
3251
  snapshot: {
3240
3252
  id: string;
3241
- createdAt: Date;
3242
- description: string;
3243
3253
  friendlyId: string;
3244
3254
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3255
+ description: string;
3256
+ createdAt: Date;
3245
3257
  };
3246
- }>>;
3247
- }, "strip", z.ZodTypeAny, {
3248
- result: {
3249
- attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
3250
- } & {
3251
3258
  run: {
3252
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3253
3259
  id: string;
3254
3260
  friendlyId: string;
3261
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3255
3262
  attemptNumber?: number | null | undefined;
3256
3263
  taskEventStore?: string | undefined;
3257
3264
  };
3265
+ };
3266
+ }, {
3267
+ result: {
3268
+ attemptStatus: "RETRY_IMMEDIATELY" | "RETRY_QUEUED" | "RUN_FINISHED" | "RUN_PENDING_CANCEL";
3269
+ } & {
3258
3270
  snapshot: {
3259
3271
  id: string;
3260
- createdAt: Date;
3261
- description: string;
3262
3272
  friendlyId: string;
3263
3273
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3274
+ description: string;
3275
+ createdAt: Date;
3264
3276
  };
3265
- };
3266
- }, {
3267
- result: {
3268
- attemptStatus: "RUN_FINISHED" | "RUN_PENDING_CANCEL" | "RETRY_QUEUED" | "RETRY_IMMEDIATELY";
3269
- } & {
3270
3277
  run: {
3271
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3272
3278
  id: string;
3273
3279
  friendlyId: string;
3280
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3274
3281
  attemptNumber?: number | null | undefined;
3275
3282
  taskEventStore?: string | undefined;
3276
3283
  };
3277
- snapshot: {
3278
- id: string;
3279
- createdAt: Date;
3280
- description: string;
3281
- friendlyId: string;
3282
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3283
- };
3284
3284
  };
3285
3285
  }>;
3286
3286
  export type WorkerApiRunAttemptCompleteResponseBody = z.infer<typeof WorkerApiRunAttemptCompleteResponseBody>;
@@ -3295,16 +3295,16 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3295
3295
  createdAt: z.ZodDate;
3296
3296
  }, "strip", z.ZodTypeAny, {
3297
3297
  id: string;
3298
- createdAt: Date;
3299
- description: string;
3300
3298
  friendlyId: string;
3301
3299
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3300
+ description: string;
3301
+ createdAt: Date;
3302
3302
  }, {
3303
3303
  id: string;
3304
- createdAt: Date;
3305
- description: string;
3306
3304
  friendlyId: string;
3307
3305
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3306
+ description: string;
3307
+ createdAt: Date;
3308
3308
  }>;
3309
3309
  run: z.ZodObject<{
3310
3310
  id: z.ZodString;
@@ -3313,15 +3313,15 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3313
3313
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3314
3314
  taskEventStore: z.ZodOptional<z.ZodString>;
3315
3315
  }, "strip", z.ZodTypeAny, {
3316
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3317
3316
  id: string;
3318
3317
  friendlyId: string;
3318
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3319
3319
  attemptNumber?: number | null | undefined;
3320
3320
  taskEventStore?: string | undefined;
3321
3321
  }, {
3322
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3323
3322
  id: string;
3324
3323
  friendlyId: string;
3324
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3325
3325
  attemptNumber?: number | null | undefined;
3326
3326
  taskEventStore?: string | undefined;
3327
3327
  }>;
@@ -3345,18 +3345,18 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3345
3345
  friendlyId: z.ZodString;
3346
3346
  }, "strip", z.ZodTypeAny, {
3347
3347
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3348
- id: string;
3349
- friendlyId: string;
3350
3348
  location: string;
3351
3349
  imageRef?: string | null | undefined;
3352
3350
  reason?: string | null | undefined;
3353
- }, {
3354
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3355
3351
  id: string;
3356
3352
  friendlyId: string;
3353
+ }, {
3354
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3357
3355
  location: string;
3358
3356
  imageRef?: string | null | undefined;
3359
3357
  reason?: string | null | undefined;
3358
+ id: string;
3359
+ friendlyId: string;
3360
3360
  }>>;
3361
3361
  completedWaitpoints: z.ZodArray<z.ZodObject<{
3362
3362
  id: z.ZodString;
@@ -3408,15 +3408,12 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3408
3408
  outputType: z.ZodOptional<z.ZodString>;
3409
3409
  outputIsError: z.ZodBoolean;
3410
3410
  }, "strip", z.ZodTypeAny, {
3411
- type: import("../../schemas/runEngine.js").WaitpointType;
3412
3411
  id: string;
3412
+ index?: number | undefined;
3413
3413
  friendlyId: string;
3414
+ type: import("../../schemas/runEngine.js").WaitpointType;
3414
3415
  completedAt: Date;
3415
- outputIsError: boolean;
3416
- output?: string | undefined;
3417
3416
  idempotencyKey?: string | undefined;
3418
- outputType?: string | undefined;
3419
- index?: number | undefined;
3420
3417
  completedByTaskRun?: {
3421
3418
  id: string;
3422
3419
  friendlyId: string;
@@ -3430,16 +3427,16 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3430
3427
  id: string;
3431
3428
  friendlyId: string;
3432
3429
  } | undefined;
3430
+ output?: string | undefined;
3431
+ outputType?: string | undefined;
3432
+ outputIsError: boolean;
3433
3433
  }, {
3434
- type: import("../../schemas/runEngine.js").WaitpointType;
3435
3434
  id: string;
3435
+ index?: number | undefined;
3436
3436
  friendlyId: string;
3437
+ type: import("../../schemas/runEngine.js").WaitpointType;
3437
3438
  completedAt: Date;
3438
- outputIsError: boolean;
3439
- output?: string | undefined;
3440
3439
  idempotencyKey?: string | undefined;
3441
- outputType?: string | undefined;
3442
- index?: number | undefined;
3443
3440
  completedByTaskRun?: {
3444
3441
  id: string;
3445
3442
  friendlyId: string;
@@ -3453,33 +3450,45 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3453
3450
  id: string;
3454
3451
  friendlyId: string;
3455
3452
  } | undefined;
3453
+ output?: string | undefined;
3454
+ outputType?: string | undefined;
3455
+ outputIsError: boolean;
3456
3456
  }>, "many">;
3457
3457
  }, "strip", z.ZodTypeAny, {
3458
+ version: "1";
3459
+ snapshot: {
3460
+ id: string;
3461
+ friendlyId: string;
3462
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3463
+ description: string;
3464
+ createdAt: Date;
3465
+ };
3458
3466
  run: {
3459
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3460
3467
  id: string;
3461
3468
  friendlyId: string;
3469
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3462
3470
  attemptNumber?: number | null | undefined;
3463
3471
  taskEventStore?: string | undefined;
3464
3472
  };
3465
- version: "1";
3466
- snapshot: {
3473
+ batch?: {
3467
3474
  id: string;
3468
- createdAt: Date;
3469
- description: string;
3470
3475
  friendlyId: string;
3471
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3472
- };
3476
+ } | undefined;
3477
+ checkpoint?: {
3478
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3479
+ location: string;
3480
+ imageRef?: string | null | undefined;
3481
+ reason?: string | null | undefined;
3482
+ id: string;
3483
+ friendlyId: string;
3484
+ } | undefined;
3473
3485
  completedWaitpoints: {
3474
- type: import("../../schemas/runEngine.js").WaitpointType;
3475
3486
  id: string;
3487
+ index?: number | undefined;
3476
3488
  friendlyId: string;
3489
+ type: import("../../schemas/runEngine.js").WaitpointType;
3477
3490
  completedAt: Date;
3478
- outputIsError: boolean;
3479
- output?: string | undefined;
3480
3491
  idempotencyKey?: string | undefined;
3481
- outputType?: string | undefined;
3482
- index?: number | undefined;
3483
3492
  completedByTaskRun?: {
3484
3493
  id: string;
3485
3494
  friendlyId: string;
@@ -3493,45 +3502,45 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3493
3502
  id: string;
3494
3503
  friendlyId: string;
3495
3504
  } | undefined;
3505
+ output?: string | undefined;
3506
+ outputType?: string | undefined;
3507
+ outputIsError: boolean;
3496
3508
  }[];
3509
+ }, {
3510
+ version: "1";
3511
+ snapshot: {
3512
+ id: string;
3513
+ friendlyId: string;
3514
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3515
+ description: string;
3516
+ createdAt: Date;
3517
+ };
3518
+ run: {
3519
+ id: string;
3520
+ friendlyId: string;
3521
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3522
+ attemptNumber?: number | null | undefined;
3523
+ taskEventStore?: string | undefined;
3524
+ };
3497
3525
  batch?: {
3498
3526
  id: string;
3499
3527
  friendlyId: string;
3500
3528
  } | undefined;
3501
3529
  checkpoint?: {
3502
3530
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3503
- id: string;
3504
- friendlyId: string;
3505
3531
  location: string;
3506
3532
  imageRef?: string | null | undefined;
3507
3533
  reason?: string | null | undefined;
3508
- } | undefined;
3509
- }, {
3510
- run: {
3511
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3512
- id: string;
3513
- friendlyId: string;
3514
- attemptNumber?: number | null | undefined;
3515
- taskEventStore?: string | undefined;
3516
- };
3517
- version: "1";
3518
- snapshot: {
3519
3534
  id: string;
3520
- createdAt: Date;
3521
- description: string;
3522
3535
  friendlyId: string;
3523
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3524
- };
3536
+ } | undefined;
3525
3537
  completedWaitpoints: {
3526
- type: import("../../schemas/runEngine.js").WaitpointType;
3527
3538
  id: string;
3539
+ index?: number | undefined;
3528
3540
  friendlyId: string;
3541
+ type: import("../../schemas/runEngine.js").WaitpointType;
3529
3542
  completedAt: Date;
3530
- outputIsError: boolean;
3531
- output?: string | undefined;
3532
3543
  idempotencyKey?: string | undefined;
3533
- outputType?: string | undefined;
3534
- index?: number | undefined;
3535
3544
  completedByTaskRun?: {
3536
3545
  id: string;
3537
3546
  friendlyId: string;
@@ -3545,47 +3554,47 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3545
3554
  id: string;
3546
3555
  friendlyId: string;
3547
3556
  } | undefined;
3557
+ output?: string | undefined;
3558
+ outputType?: string | undefined;
3559
+ outputIsError: boolean;
3548
3560
  }[];
3549
- batch?: {
3550
- id: string;
3551
- friendlyId: string;
3552
- } | undefined;
3553
- checkpoint?: {
3554
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3555
- id: string;
3556
- friendlyId: string;
3557
- location: string;
3558
- imageRef?: string | null | undefined;
3559
- reason?: string | null | undefined;
3560
- } | undefined;
3561
3561
  }>;
3562
3562
  }, "strip", z.ZodTypeAny, {
3563
3563
  execution: {
3564
+ version: "1";
3565
+ snapshot: {
3566
+ id: string;
3567
+ friendlyId: string;
3568
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3569
+ description: string;
3570
+ createdAt: Date;
3571
+ };
3564
3572
  run: {
3565
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3566
3573
  id: string;
3567
3574
  friendlyId: string;
3575
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3568
3576
  attemptNumber?: number | null | undefined;
3569
3577
  taskEventStore?: string | undefined;
3570
3578
  };
3571
- version: "1";
3572
- snapshot: {
3579
+ batch?: {
3573
3580
  id: string;
3574
- createdAt: Date;
3575
- description: string;
3576
3581
  friendlyId: string;
3577
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3578
- };
3582
+ } | undefined;
3583
+ checkpoint?: {
3584
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3585
+ location: string;
3586
+ imageRef?: string | null | undefined;
3587
+ reason?: string | null | undefined;
3588
+ id: string;
3589
+ friendlyId: string;
3590
+ } | undefined;
3579
3591
  completedWaitpoints: {
3580
- type: import("../../schemas/runEngine.js").WaitpointType;
3581
3592
  id: string;
3593
+ index?: number | undefined;
3582
3594
  friendlyId: string;
3595
+ type: import("../../schemas/runEngine.js").WaitpointType;
3583
3596
  completedAt: Date;
3584
- outputIsError: boolean;
3585
- output?: string | undefined;
3586
- idempotencyKey?: string | undefined;
3587
- outputType?: string | undefined;
3588
- index?: number | undefined;
3597
+ idempotencyKey?: string | undefined;
3589
3598
  completedByTaskRun?: {
3590
3599
  id: string;
3591
3600
  friendlyId: string;
@@ -3599,47 +3608,47 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3599
3608
  id: string;
3600
3609
  friendlyId: string;
3601
3610
  } | undefined;
3611
+ output?: string | undefined;
3612
+ outputType?: string | undefined;
3613
+ outputIsError: boolean;
3602
3614
  }[];
3603
- batch?: {
3604
- id: string;
3605
- friendlyId: string;
3606
- } | undefined;
3607
- checkpoint?: {
3608
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3609
- id: string;
3610
- friendlyId: string;
3611
- location: string;
3612
- imageRef?: string | null | undefined;
3613
- reason?: string | null | undefined;
3614
- } | undefined;
3615
3615
  };
3616
3616
  }, {
3617
3617
  execution: {
3618
+ version: "1";
3619
+ snapshot: {
3620
+ id: string;
3621
+ friendlyId: string;
3622
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3623
+ description: string;
3624
+ createdAt: Date;
3625
+ };
3618
3626
  run: {
3619
- status: import("../../schemas/runEngine.js").TaskRunStatus;
3620
3627
  id: string;
3621
3628
  friendlyId: string;
3629
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
3622
3630
  attemptNumber?: number | null | undefined;
3623
3631
  taskEventStore?: string | undefined;
3624
3632
  };
3625
- version: "1";
3626
- snapshot: {
3633
+ batch?: {
3627
3634
  id: string;
3628
- createdAt: Date;
3629
- description: string;
3630
3635
  friendlyId: string;
3631
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3632
- };
3636
+ } | undefined;
3637
+ checkpoint?: {
3638
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3639
+ location: string;
3640
+ imageRef?: string | null | undefined;
3641
+ reason?: string | null | undefined;
3642
+ id: string;
3643
+ friendlyId: string;
3644
+ } | undefined;
3633
3645
  completedWaitpoints: {
3634
- type: import("../../schemas/runEngine.js").WaitpointType;
3635
3646
  id: string;
3647
+ index?: number | undefined;
3636
3648
  friendlyId: string;
3649
+ type: import("../../schemas/runEngine.js").WaitpointType;
3637
3650
  completedAt: Date;
3638
- outputIsError: boolean;
3639
- output?: string | undefined;
3640
3651
  idempotencyKey?: string | undefined;
3641
- outputType?: string | undefined;
3642
- index?: number | undefined;
3643
3652
  completedByTaskRun?: {
3644
3653
  id: string;
3645
3654
  friendlyId: string;
@@ -3653,19 +3662,10 @@ export declare const WorkerApiRunLatestSnapshotResponseBody: z.ZodObject<{
3653
3662
  id: string;
3654
3663
  friendlyId: string;
3655
3664
  } | undefined;
3665
+ output?: string | undefined;
3666
+ outputType?: string | undefined;
3667
+ outputIsError: boolean;
3656
3668
  }[];
3657
- batch?: {
3658
- id: string;
3659
- friendlyId: string;
3660
- } | undefined;
3661
- checkpoint?: {
3662
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3663
- id: string;
3664
- friendlyId: string;
3665
- location: string;
3666
- imageRef?: string | null | undefined;
3667
- reason?: string | null | undefined;
3668
- } | undefined;
3669
3669
  };
3670
3670
  }>;
3671
3671
  export type WorkerApiRunLatestSnapshotResponseBody = z.infer<typeof WorkerApiRunLatestSnapshotResponseBody>;
@@ -3679,16 +3679,16 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3679
3679
  createdAt: z.ZodDate;
3680
3680
  }, "strip", z.ZodTypeAny, {
3681
3681
  id: string;
3682
- createdAt: Date;
3683
- description: string;
3684
3682
  friendlyId: string;
3685
3683
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3684
+ description: string;
3685
+ createdAt: Date;
3686
3686
  }, {
3687
3687
  id: string;
3688
- createdAt: Date;
3689
- description: string;
3690
3688
  friendlyId: string;
3691
3689
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3690
+ description: string;
3691
+ createdAt: Date;
3692
3692
  }>;
3693
3693
  dequeuedAt: z.ZodDate;
3694
3694
  workerQueueLength: z.ZodOptional<z.ZodNumber>;
@@ -3700,14 +3700,14 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3700
3700
  imageRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3701
3701
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3702
3702
  }, "strip", z.ZodTypeAny, {
3703
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3704
3703
  id: string;
3704
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3705
3705
  location: string;
3706
3706
  imageRef?: string | null | undefined;
3707
3707
  reason?: string | null | undefined;
3708
3708
  }, {
3709
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3710
3709
  id: string;
3710
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3711
3711
  location: string;
3712
3712
  imageRef?: string | null | undefined;
3713
3713
  reason?: string | null | undefined;
@@ -3762,15 +3762,12 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3762
3762
  outputType: z.ZodOptional<z.ZodString>;
3763
3763
  outputIsError: z.ZodBoolean;
3764
3764
  }, "strip", z.ZodTypeAny, {
3765
- type: import("../../schemas/runEngine.js").WaitpointType;
3766
3765
  id: string;
3766
+ index?: number | undefined;
3767
3767
  friendlyId: string;
3768
+ type: import("../../schemas/runEngine.js").WaitpointType;
3768
3769
  completedAt: Date;
3769
- outputIsError: boolean;
3770
- output?: string | undefined;
3771
3770
  idempotencyKey?: string | undefined;
3772
- outputType?: string | undefined;
3773
- index?: number | undefined;
3774
3771
  completedByTaskRun?: {
3775
3772
  id: string;
3776
3773
  friendlyId: string;
@@ -3784,16 +3781,16 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3784
3781
  id: string;
3785
3782
  friendlyId: string;
3786
3783
  } | undefined;
3784
+ output?: string | undefined;
3785
+ outputType?: string | undefined;
3786
+ outputIsError: boolean;
3787
3787
  }, {
3788
- type: import("../../schemas/runEngine.js").WaitpointType;
3789
3788
  id: string;
3789
+ index?: number | undefined;
3790
3790
  friendlyId: string;
3791
+ type: import("../../schemas/runEngine.js").WaitpointType;
3791
3792
  completedAt: Date;
3792
- outputIsError: boolean;
3793
- output?: string | undefined;
3794
3793
  idempotencyKey?: string | undefined;
3795
- outputType?: string | undefined;
3796
- index?: number | undefined;
3797
3794
  completedByTaskRun?: {
3798
3795
  id: string;
3799
3796
  friendlyId: string;
@@ -3807,6 +3804,9 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3807
3804
  id: string;
3808
3805
  friendlyId: string;
3809
3806
  } | undefined;
3807
+ output?: string | undefined;
3808
+ outputType?: string | undefined;
3809
+ outputIsError: boolean;
3810
3810
  }>, "many">;
3811
3811
  backgroundWorker: z.ZodObject<{
3812
3812
  id: z.ZodString;
@@ -3815,13 +3815,13 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3815
3815
  runtime: z.ZodOptional<z.ZodString>;
3816
3816
  }, "strip", z.ZodTypeAny, {
3817
3817
  id: string;
3818
- version: string;
3819
3818
  friendlyId: string;
3819
+ version: string;
3820
3820
  runtime?: string | undefined;
3821
3821
  }, {
3822
3822
  id: string;
3823
- version: string;
3824
3823
  friendlyId: string;
3824
+ version: string;
3825
3825
  runtime?: string | undefined;
3826
3826
  }>;
3827
3827
  deployment: z.ZodObject<{
@@ -3848,14 +3848,14 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3848
3848
  memory: z.ZodNumber;
3849
3849
  centsPerMs: z.ZodNumber;
3850
3850
  }, "strip", z.ZodTypeAny, {
3851
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3851
3852
  cpu: number;
3852
3853
  memory: number;
3853
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3854
3854
  centsPerMs: number;
3855
3855
  }, {
3856
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3856
3857
  cpu: number;
3857
3858
  memory: number;
3858
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3859
3859
  centsPerMs: number;
3860
3860
  }>;
3861
3861
  attemptNumber: z.ZodNumber;
@@ -3868,70 +3868,70 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3868
3868
  rootScheduleId: z.ZodOptional<z.ZodString>;
3869
3869
  taskKind: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["STANDARD", "SCHEDULED", "AGENT"]>, z.ZodType<string & {}, z.ZodTypeDef, string & {}>]>>;
3870
3870
  }, "strip", z.ZodTypeAny, {
3871
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3872
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
3873
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3874
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
3871
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3872
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3873
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3875
3874
  rootScheduleId?: string | undefined;
3875
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3876
3876
  }, {
3877
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3878
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
3879
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3880
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
3877
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3878
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3879
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3881
3880
  rootScheduleId?: string | undefined;
3881
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3882
3882
  }>>;
3883
3883
  }, "strip", z.ZodTypeAny, {
3884
3884
  id: string;
3885
+ friendlyId: string;
3885
3886
  isTest: boolean;
3886
3887
  isReplay: boolean;
3887
3888
  machine: {
3889
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3888
3890
  cpu: number;
3889
3891
  memory: number;
3890
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3891
3892
  centsPerMs: number;
3892
3893
  };
3893
- traceContext: Record<string, unknown>;
3894
- friendlyId: string;
3895
3894
  attemptNumber: number;
3896
3895
  masterQueue: string;
3896
+ traceContext: Record<string, unknown>;
3897
3897
  annotations?: {
3898
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3899
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
3900
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3901
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
3898
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3899
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3900
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3902
3901
  rootScheduleId?: string | undefined;
3902
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3903
3903
  } | undefined;
3904
3904
  }, {
3905
3905
  id: string;
3906
+ friendlyId: string;
3906
3907
  isTest: boolean;
3908
+ isReplay?: boolean | undefined;
3907
3909
  machine: {
3910
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
3908
3911
  cpu: number;
3909
3912
  memory: number;
3910
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3911
3913
  centsPerMs: number;
3912
3914
  };
3913
- traceContext: Record<string, unknown>;
3914
- friendlyId: string;
3915
3915
  attemptNumber: number;
3916
3916
  masterQueue: string;
3917
- isReplay?: boolean | undefined;
3917
+ traceContext: Record<string, unknown>;
3918
3918
  annotations?: {
3919
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3920
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
3921
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3922
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
3919
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3920
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
3921
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
3923
3922
  rootScheduleId?: string | undefined;
3923
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
3924
3924
  } | undefined;
3925
3925
  }>;
3926
3926
  environment: z.ZodObject<{
3927
3927
  id: z.ZodString;
3928
3928
  type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
3929
3929
  }, "strip", z.ZodTypeAny, {
3930
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3931
3930
  id: string;
3931
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3932
3932
  }, {
3933
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3934
3933
  id: string;
3934
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
3935
3935
  }>;
3936
3936
  organization: z.ZodObject<{
3937
3937
  id: z.ZodString;
@@ -3961,62 +3961,31 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
3961
3961
  values?: string[] | undefined;
3962
3962
  }>, "many">>;
3963
3963
  }, "strip", z.ZodTypeAny, {
3964
- run: {
3965
- id: string;
3966
- isTest: boolean;
3967
- isReplay: boolean;
3968
- machine: {
3969
- cpu: number;
3970
- memory: number;
3971
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
3972
- centsPerMs: number;
3973
- };
3974
- traceContext: Record<string, unknown>;
3975
- friendlyId: string;
3976
- attemptNumber: number;
3977
- masterQueue: string;
3978
- annotations?: {
3979
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3980
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
3981
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
3982
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
3983
- rootScheduleId?: string | undefined;
3984
- } | undefined;
3985
- };
3986
3964
  version: "1";
3987
- environment: {
3988
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
3989
- id: string;
3990
- };
3991
- organization: {
3992
- id: string;
3993
- hasPrivateLink?: boolean | undefined;
3994
- };
3995
- project: {
3996
- id: string;
3997
- };
3998
- deployment: {
3999
- id?: string | undefined;
4000
- friendlyId?: string | undefined;
4001
- imagePlatform?: string | undefined;
4002
- };
4003
3965
  snapshot: {
4004
3966
  id: string;
4005
- createdAt: Date;
4006
- description: string;
4007
3967
  friendlyId: string;
4008
3968
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
3969
+ description: string;
3970
+ createdAt: Date;
4009
3971
  };
3972
+ dequeuedAt: Date;
3973
+ workerQueueLength?: number | undefined;
3974
+ image?: string | undefined;
3975
+ checkpoint?: {
3976
+ id: string;
3977
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
3978
+ location: string;
3979
+ imageRef?: string | null | undefined;
3980
+ reason?: string | null | undefined;
3981
+ } | undefined;
4010
3982
  completedWaitpoints: {
4011
- type: import("../../schemas/runEngine.js").WaitpointType;
4012
3983
  id: string;
3984
+ index?: number | undefined;
4013
3985
  friendlyId: string;
3986
+ type: import("../../schemas/runEngine.js").WaitpointType;
4014
3987
  completedAt: Date;
4015
- outputIsError: boolean;
4016
- output?: string | undefined;
4017
3988
  idempotencyKey?: string | undefined;
4018
- outputType?: string | undefined;
4019
- index?: number | undefined;
4020
3989
  completedByTaskRun?: {
4021
3990
  id: string;
4022
3991
  friendlyId: string;
@@ -4030,54 +3999,46 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
4030
3999
  id: string;
4031
4000
  friendlyId: string;
4032
4001
  } | undefined;
4002
+ output?: string | undefined;
4003
+ outputType?: string | undefined;
4004
+ outputIsError: boolean;
4033
4005
  }[];
4034
- dequeuedAt: Date;
4035
4006
  backgroundWorker: {
4036
4007
  id: string;
4037
- version: string;
4038
4008
  friendlyId: string;
4009
+ version: string;
4039
4010
  runtime?: string | undefined;
4040
4011
  };
4041
- checkpoint?: {
4042
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4043
- id: string;
4044
- location: string;
4045
- imageRef?: string | null | undefined;
4046
- reason?: string | null | undefined;
4047
- } | undefined;
4048
- workerQueueLength?: number | undefined;
4049
- image?: string | undefined;
4050
- placementTags?: {
4051
- key: string;
4052
- values?: string[] | undefined;
4053
- }[] | undefined;
4054
- }, {
4012
+ deployment: {
4013
+ id?: string | undefined;
4014
+ friendlyId?: string | undefined;
4015
+ imagePlatform?: string | undefined;
4016
+ };
4055
4017
  run: {
4056
4018
  id: string;
4019
+ friendlyId: string;
4057
4020
  isTest: boolean;
4021
+ isReplay: boolean;
4058
4022
  machine: {
4023
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
4059
4024
  cpu: number;
4060
4025
  memory: number;
4061
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
4062
4026
  centsPerMs: number;
4063
4027
  };
4064
- traceContext: Record<string, unknown>;
4065
- friendlyId: string;
4066
4028
  attemptNumber: number;
4067
4029
  masterQueue: string;
4068
- isReplay?: boolean | undefined;
4030
+ traceContext: Record<string, unknown>;
4069
4031
  annotations?: {
4070
- triggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
4071
- triggerAction: "trigger" | (string & {}) | "replay" | "test";
4072
- rootTriggerSource: "schedule" | (string & {}) | "sdk" | "api" | "dashboard" | "cli" | "mcp";
4073
- taskKind?: (string & {}) | "STANDARD" | "SCHEDULED" | "AGENT" | undefined;
4032
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4033
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
4034
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4074
4035
  rootScheduleId?: string | undefined;
4036
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
4075
4037
  } | undefined;
4076
4038
  };
4077
- version: "1";
4078
4039
  environment: {
4079
- type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
4080
4040
  id: string;
4041
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
4081
4042
  };
4082
4043
  organization: {
4083
4044
  id: string;
@@ -4086,28 +4047,36 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
4086
4047
  project: {
4087
4048
  id: string;
4088
4049
  };
4089
- deployment: {
4090
- id?: string | undefined;
4091
- friendlyId?: string | undefined;
4092
- imagePlatform?: string | undefined;
4093
- };
4050
+ placementTags?: {
4051
+ key: string;
4052
+ values?: string[] | undefined;
4053
+ }[] | undefined;
4054
+ }, {
4055
+ version: "1";
4094
4056
  snapshot: {
4095
4057
  id: string;
4096
- createdAt: Date;
4097
- description: string;
4098
4058
  friendlyId: string;
4099
4059
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4060
+ description: string;
4061
+ createdAt: Date;
4100
4062
  };
4063
+ dequeuedAt: Date;
4064
+ workerQueueLength?: number | undefined;
4065
+ image?: string | undefined;
4066
+ checkpoint?: {
4067
+ id: string;
4068
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4069
+ location: string;
4070
+ imageRef?: string | null | undefined;
4071
+ reason?: string | null | undefined;
4072
+ } | undefined;
4101
4073
  completedWaitpoints: {
4102
- type: import("../../schemas/runEngine.js").WaitpointType;
4103
4074
  id: string;
4075
+ index?: number | undefined;
4104
4076
  friendlyId: string;
4077
+ type: import("../../schemas/runEngine.js").WaitpointType;
4105
4078
  completedAt: Date;
4106
- outputIsError: boolean;
4107
- output?: string | undefined;
4108
4079
  idempotencyKey?: string | undefined;
4109
- outputType?: string | undefined;
4110
- index?: number | undefined;
4111
4080
  completedByTaskRun?: {
4112
4081
  id: string;
4113
4082
  friendlyId: string;
@@ -4121,23 +4090,54 @@ export declare const WorkerApiDequeueFromVersionResponseBody: z.ZodArray<z.ZodOb
4121
4090
  id: string;
4122
4091
  friendlyId: string;
4123
4092
  } | undefined;
4093
+ output?: string | undefined;
4094
+ outputType?: string | undefined;
4095
+ outputIsError: boolean;
4124
4096
  }[];
4125
- dequeuedAt: Date;
4126
4097
  backgroundWorker: {
4127
4098
  id: string;
4128
- version: string;
4129
- friendlyId: string;
4130
- runtime?: string | undefined;
4099
+ friendlyId: string;
4100
+ version: string;
4101
+ runtime?: string | undefined;
4102
+ };
4103
+ deployment: {
4104
+ id?: string | undefined;
4105
+ friendlyId?: string | undefined;
4106
+ imagePlatform?: string | undefined;
4107
+ };
4108
+ run: {
4109
+ id: string;
4110
+ friendlyId: string;
4111
+ isTest: boolean;
4112
+ isReplay?: boolean | undefined;
4113
+ machine: {
4114
+ name: "large-1x" | "large-2x" | "medium-1x" | "medium-2x" | "micro" | "small-1x" | "small-2x";
4115
+ cpu: number;
4116
+ memory: number;
4117
+ centsPerMs: number;
4118
+ };
4119
+ attemptNumber: number;
4120
+ masterQueue: string;
4121
+ traceContext: Record<string, unknown>;
4122
+ annotations?: {
4123
+ triggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4124
+ triggerAction: "replay" | "test" | "trigger" | (string & {});
4125
+ rootTriggerSource: "api" | "cli" | "dashboard" | "mcp" | "schedule" | "sdk" | (string & {});
4126
+ rootScheduleId?: string | undefined;
4127
+ taskKind?: "AGENT" | "SCHEDULED" | "STANDARD" | (string & {}) | undefined;
4128
+ } | undefined;
4129
+ };
4130
+ environment: {
4131
+ id: string;
4132
+ type: "DEVELOPMENT" | "PREVIEW" | "PRODUCTION" | "STAGING";
4131
4133
  };
4132
- checkpoint?: {
4133
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4134
+ organization: {
4134
4135
  id: string;
4135
- location: string;
4136
- imageRef?: string | null | undefined;
4137
- reason?: string | null | undefined;
4138
- } | undefined;
4139
- workerQueueLength?: number | undefined;
4140
- image?: string | undefined;
4136
+ hasPrivateLink?: boolean | undefined;
4137
+ };
4138
+ project: {
4139
+ id: string;
4140
+ };
4141
4141
  placementTags?: {
4142
4142
  key: string;
4143
4143
  values?: string[] | undefined;
@@ -4154,12 +4154,12 @@ export declare const WorkerApiDebugLogBodyInput: z.ZodObject<{
4154
4154
  message: z.ZodString;
4155
4155
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4156
4156
  }, "strip", z.ZodTypeAny, {
4157
- message: string;
4158
4157
  time: Date;
4158
+ message: string;
4159
4159
  properties?: Record<string, unknown> | undefined;
4160
4160
  }, {
4161
- message: string;
4162
4161
  time: Date;
4162
+ message: string;
4163
4163
  properties?: Record<string, unknown> | undefined;
4164
4164
  }>;
4165
4165
  export type WorkerApiDebugLogBodyInput = z.infer<typeof WorkerApiDebugLogBodyInput>;
@@ -4168,12 +4168,12 @@ export declare const WorkerApiDebugLogBody: z.ZodObject<{
4168
4168
  message: z.ZodString;
4169
4169
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodString>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, "many">, z.ZodArray<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, "many">]>>>>;
4170
4170
  }, "strip", z.ZodTypeAny, {
4171
- message: string;
4172
4171
  time: Date;
4172
+ message: string;
4173
4173
  properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
4174
4174
  }, {
4175
- message: string;
4176
4175
  time: Date;
4176
+ message: string;
4177
4177
  properties?: Record<string, string | number | boolean | (string | null | undefined)[] | (number | null | undefined)[] | (boolean | null | undefined)[] | undefined> | undefined;
4178
4178
  }>;
4179
4179
  export type WorkerApiDebugLogBody = z.infer<typeof WorkerApiDebugLogBody>;
@@ -4199,16 +4199,16 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4199
4199
  createdAt: z.ZodDate;
4200
4200
  }, "strip", z.ZodTypeAny, {
4201
4201
  id: string;
4202
- createdAt: Date;
4203
- description: string;
4204
4202
  friendlyId: string;
4205
4203
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4204
+ description: string;
4205
+ createdAt: Date;
4206
4206
  }, {
4207
4207
  id: string;
4208
- createdAt: Date;
4209
- description: string;
4210
4208
  friendlyId: string;
4211
4209
  executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4210
+ description: string;
4211
+ createdAt: Date;
4212
4212
  }>;
4213
4213
  run: z.ZodObject<{
4214
4214
  id: z.ZodString;
@@ -4217,15 +4217,15 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4217
4217
  attemptNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4218
4218
  taskEventStore: z.ZodOptional<z.ZodString>;
4219
4219
  }, "strip", z.ZodTypeAny, {
4220
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4221
4220
  id: string;
4222
4221
  friendlyId: string;
4222
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4223
4223
  attemptNumber?: number | null | undefined;
4224
4224
  taskEventStore?: string | undefined;
4225
4225
  }, {
4226
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4227
4226
  id: string;
4228
4227
  friendlyId: string;
4228
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4229
4229
  attemptNumber?: number | null | undefined;
4230
4230
  taskEventStore?: string | undefined;
4231
4231
  }>;
@@ -4249,18 +4249,18 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4249
4249
  friendlyId: z.ZodString;
4250
4250
  }, "strip", z.ZodTypeAny, {
4251
4251
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4252
- id: string;
4253
- friendlyId: string;
4254
4252
  location: string;
4255
4253
  imageRef?: string | null | undefined;
4256
4254
  reason?: string | null | undefined;
4257
- }, {
4258
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4259
4255
  id: string;
4260
4256
  friendlyId: string;
4257
+ }, {
4258
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4261
4259
  location: string;
4262
4260
  imageRef?: string | null | undefined;
4263
4261
  reason?: string | null | undefined;
4262
+ id: string;
4263
+ friendlyId: string;
4264
4264
  }>>;
4265
4265
  completedWaitpoints: z.ZodArray<z.ZodObject<{
4266
4266
  id: z.ZodString;
@@ -4312,15 +4312,12 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4312
4312
  outputType: z.ZodOptional<z.ZodString>;
4313
4313
  outputIsError: z.ZodBoolean;
4314
4314
  }, "strip", z.ZodTypeAny, {
4315
- type: import("../../schemas/runEngine.js").WaitpointType;
4316
4315
  id: string;
4316
+ index?: number | undefined;
4317
4317
  friendlyId: string;
4318
+ type: import("../../schemas/runEngine.js").WaitpointType;
4318
4319
  completedAt: Date;
4319
- outputIsError: boolean;
4320
- output?: string | undefined;
4321
4320
  idempotencyKey?: string | undefined;
4322
- outputType?: string | undefined;
4323
- index?: number | undefined;
4324
4321
  completedByTaskRun?: {
4325
4322
  id: string;
4326
4323
  friendlyId: string;
@@ -4334,16 +4331,16 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4334
4331
  id: string;
4335
4332
  friendlyId: string;
4336
4333
  } | undefined;
4334
+ output?: string | undefined;
4335
+ outputType?: string | undefined;
4336
+ outputIsError: boolean;
4337
4337
  }, {
4338
- type: import("../../schemas/runEngine.js").WaitpointType;
4339
4338
  id: string;
4339
+ index?: number | undefined;
4340
4340
  friendlyId: string;
4341
+ type: import("../../schemas/runEngine.js").WaitpointType;
4341
4342
  completedAt: Date;
4342
- outputIsError: boolean;
4343
- output?: string | undefined;
4344
4343
  idempotencyKey?: string | undefined;
4345
- outputType?: string | undefined;
4346
- index?: number | undefined;
4347
4344
  completedByTaskRun?: {
4348
4345
  id: string;
4349
4346
  friendlyId: string;
@@ -4357,33 +4354,45 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4357
4354
  id: string;
4358
4355
  friendlyId: string;
4359
4356
  } | undefined;
4357
+ output?: string | undefined;
4358
+ outputType?: string | undefined;
4359
+ outputIsError: boolean;
4360
4360
  }>, "many">;
4361
4361
  }, "strip", z.ZodTypeAny, {
4362
+ version: "1";
4363
+ snapshot: {
4364
+ id: string;
4365
+ friendlyId: string;
4366
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4367
+ description: string;
4368
+ createdAt: Date;
4369
+ };
4362
4370
  run: {
4363
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4364
4371
  id: string;
4365
4372
  friendlyId: string;
4373
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4366
4374
  attemptNumber?: number | null | undefined;
4367
4375
  taskEventStore?: string | undefined;
4368
4376
  };
4369
- version: "1";
4370
- snapshot: {
4377
+ batch?: {
4371
4378
  id: string;
4372
- createdAt: Date;
4373
- description: string;
4374
4379
  friendlyId: string;
4375
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4376
- };
4380
+ } | undefined;
4381
+ checkpoint?: {
4382
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4383
+ location: string;
4384
+ imageRef?: string | null | undefined;
4385
+ reason?: string | null | undefined;
4386
+ id: string;
4387
+ friendlyId: string;
4388
+ } | undefined;
4377
4389
  completedWaitpoints: {
4378
- type: import("../../schemas/runEngine.js").WaitpointType;
4379
4390
  id: string;
4391
+ index?: number | undefined;
4380
4392
  friendlyId: string;
4393
+ type: import("../../schemas/runEngine.js").WaitpointType;
4381
4394
  completedAt: Date;
4382
- outputIsError: boolean;
4383
- output?: string | undefined;
4384
4395
  idempotencyKey?: string | undefined;
4385
- outputType?: string | undefined;
4386
- index?: number | undefined;
4387
4396
  completedByTaskRun?: {
4388
4397
  id: string;
4389
4398
  friendlyId: string;
@@ -4397,45 +4406,45 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4397
4406
  id: string;
4398
4407
  friendlyId: string;
4399
4408
  } | undefined;
4409
+ output?: string | undefined;
4410
+ outputType?: string | undefined;
4411
+ outputIsError: boolean;
4400
4412
  }[];
4413
+ }, {
4414
+ version: "1";
4415
+ snapshot: {
4416
+ id: string;
4417
+ friendlyId: string;
4418
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4419
+ description: string;
4420
+ createdAt: Date;
4421
+ };
4422
+ run: {
4423
+ id: string;
4424
+ friendlyId: string;
4425
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4426
+ attemptNumber?: number | null | undefined;
4427
+ taskEventStore?: string | undefined;
4428
+ };
4401
4429
  batch?: {
4402
4430
  id: string;
4403
4431
  friendlyId: string;
4404
4432
  } | undefined;
4405
4433
  checkpoint?: {
4406
4434
  type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4407
- id: string;
4408
- friendlyId: string;
4409
4435
  location: string;
4410
4436
  imageRef?: string | null | undefined;
4411
4437
  reason?: string | null | undefined;
4412
- } | undefined;
4413
- }, {
4414
- run: {
4415
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4416
- id: string;
4417
- friendlyId: string;
4418
- attemptNumber?: number | null | undefined;
4419
- taskEventStore?: string | undefined;
4420
- };
4421
- version: "1";
4422
- snapshot: {
4423
4438
  id: string;
4424
- createdAt: Date;
4425
- description: string;
4426
4439
  friendlyId: string;
4427
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4428
- };
4440
+ } | undefined;
4429
4441
  completedWaitpoints: {
4430
- type: import("../../schemas/runEngine.js").WaitpointType;
4431
4442
  id: string;
4443
+ index?: number | undefined;
4432
4444
  friendlyId: string;
4445
+ type: import("../../schemas/runEngine.js").WaitpointType;
4433
4446
  completedAt: Date;
4434
- outputIsError: boolean;
4435
- output?: string | undefined;
4436
4447
  idempotencyKey?: string | undefined;
4437
- outputType?: string | undefined;
4438
- index?: number | undefined;
4439
4448
  completedByTaskRun?: {
4440
4449
  id: string;
4441
4450
  friendlyId: string;
@@ -4449,47 +4458,47 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4449
4458
  id: string;
4450
4459
  friendlyId: string;
4451
4460
  } | undefined;
4461
+ output?: string | undefined;
4462
+ outputType?: string | undefined;
4463
+ outputIsError: boolean;
4452
4464
  }[];
4453
- batch?: {
4454
- id: string;
4455
- friendlyId: string;
4456
- } | undefined;
4457
- checkpoint?: {
4458
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4459
- id: string;
4460
- friendlyId: string;
4461
- location: string;
4462
- imageRef?: string | null | undefined;
4463
- reason?: string | null | undefined;
4464
- } | undefined;
4465
4465
  }>, "many">;
4466
4466
  }, "strip", z.ZodTypeAny, {
4467
4467
  snapshots: {
4468
+ version: "1";
4469
+ snapshot: {
4470
+ id: string;
4471
+ friendlyId: string;
4472
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4473
+ description: string;
4474
+ createdAt: Date;
4475
+ };
4468
4476
  run: {
4469
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4470
4477
  id: string;
4471
4478
  friendlyId: string;
4479
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4472
4480
  attemptNumber?: number | null | undefined;
4473
4481
  taskEventStore?: string | undefined;
4474
4482
  };
4475
- version: "1";
4476
- snapshot: {
4483
+ batch?: {
4477
4484
  id: string;
4478
- createdAt: Date;
4479
- description: string;
4480
4485
  friendlyId: string;
4481
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4482
- };
4486
+ } | undefined;
4487
+ checkpoint?: {
4488
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4489
+ location: string;
4490
+ imageRef?: string | null | undefined;
4491
+ reason?: string | null | undefined;
4492
+ id: string;
4493
+ friendlyId: string;
4494
+ } | undefined;
4483
4495
  completedWaitpoints: {
4484
- type: import("../../schemas/runEngine.js").WaitpointType;
4485
4496
  id: string;
4497
+ index?: number | undefined;
4486
4498
  friendlyId: string;
4499
+ type: import("../../schemas/runEngine.js").WaitpointType;
4487
4500
  completedAt: Date;
4488
- outputIsError: boolean;
4489
- output?: string | undefined;
4490
4501
  idempotencyKey?: string | undefined;
4491
- outputType?: string | undefined;
4492
- index?: number | undefined;
4493
4502
  completedByTaskRun?: {
4494
4503
  id: string;
4495
4504
  friendlyId: string;
@@ -4503,47 +4512,47 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4503
4512
  id: string;
4504
4513
  friendlyId: string;
4505
4514
  } | undefined;
4515
+ output?: string | undefined;
4516
+ outputType?: string | undefined;
4517
+ outputIsError: boolean;
4506
4518
  }[];
4507
- batch?: {
4508
- id: string;
4509
- friendlyId: string;
4510
- } | undefined;
4511
- checkpoint?: {
4512
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4513
- id: string;
4514
- friendlyId: string;
4515
- location: string;
4516
- imageRef?: string | null | undefined;
4517
- reason?: string | null | undefined;
4518
- } | undefined;
4519
4519
  }[];
4520
4520
  }, {
4521
4521
  snapshots: {
4522
+ version: "1";
4523
+ snapshot: {
4524
+ id: string;
4525
+ friendlyId: string;
4526
+ executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4527
+ description: string;
4528
+ createdAt: Date;
4529
+ };
4522
4530
  run: {
4523
- status: import("../../schemas/runEngine.js").TaskRunStatus;
4524
4531
  id: string;
4525
4532
  friendlyId: string;
4533
+ status: import("../../schemas/runEngine.js").TaskRunStatus;
4526
4534
  attemptNumber?: number | null | undefined;
4527
4535
  taskEventStore?: string | undefined;
4528
4536
  };
4529
- version: "1";
4530
- snapshot: {
4537
+ batch?: {
4531
4538
  id: string;
4532
- createdAt: Date;
4533
- description: string;
4534
4539
  friendlyId: string;
4535
- executionStatus: import("../../schemas/runEngine.js").TaskRunExecutionStatus;
4536
- };
4540
+ } | undefined;
4541
+ checkpoint?: {
4542
+ type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4543
+ location: string;
4544
+ imageRef?: string | null | undefined;
4545
+ reason?: string | null | undefined;
4546
+ id: string;
4547
+ friendlyId: string;
4548
+ } | undefined;
4537
4549
  completedWaitpoints: {
4538
- type: import("../../schemas/runEngine.js").WaitpointType;
4539
4550
  id: string;
4551
+ index?: number | undefined;
4540
4552
  friendlyId: string;
4553
+ type: import("../../schemas/runEngine.js").WaitpointType;
4541
4554
  completedAt: Date;
4542
- outputIsError: boolean;
4543
- output?: string | undefined;
4544
4555
  idempotencyKey?: string | undefined;
4545
- outputType?: string | undefined;
4546
- index?: number | undefined;
4547
4556
  completedByTaskRun?: {
4548
4557
  id: string;
4549
4558
  friendlyId: string;
@@ -4557,19 +4566,10 @@ export declare const WorkerApiRunSnapshotsSinceResponseBody: z.ZodObject<{
4557
4566
  id: string;
4558
4567
  friendlyId: string;
4559
4568
  } | undefined;
4569
+ output?: string | undefined;
4570
+ outputType?: string | undefined;
4571
+ outputIsError: boolean;
4560
4572
  }[];
4561
- batch?: {
4562
- id: string;
4563
- friendlyId: string;
4564
- } | undefined;
4565
- checkpoint?: {
4566
- type: import("../../schemas/runEngine.js").CheckpointTypeEnum;
4567
- id: string;
4568
- friendlyId: string;
4569
- location: string;
4570
- imageRef?: string | null | undefined;
4571
- reason?: string | null | undefined;
4572
- } | undefined;
4573
4573
  }[];
4574
4574
  }>;
4575
4575
  export type WorkerApiRunSnapshotsSinceResponseBody = z.infer<typeof WorkerApiRunSnapshotsSinceResponseBody>;