@trigger.dev/core 0.0.0-prerelease-20250430143421 → 0.0.0-prerelease-20250503193704

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 (115) hide show
  1. package/dist/commonjs/utils.d.ts +6 -0
  2. package/dist/commonjs/utils.js +14 -0
  3. package/dist/commonjs/utils.js.map +1 -1
  4. package/dist/commonjs/v3/apiClient/index.d.ts +43 -43
  5. package/dist/commonjs/v3/apiClientManager/index.d.ts +1 -1
  6. package/dist/commonjs/v3/lifecycle-hooks-api.d.ts +1 -1
  7. package/dist/commonjs/v3/lifecycleHooks/index.d.ts +7 -1
  8. package/dist/commonjs/v3/lifecycleHooks/index.js +18 -0
  9. package/dist/commonjs/v3/lifecycleHooks/index.js.map +1 -1
  10. package/dist/commonjs/v3/lifecycleHooks/manager.d.ts +18 -3
  11. package/dist/commonjs/v3/lifecycleHooks/manager.js +49 -2
  12. package/dist/commonjs/v3/lifecycleHooks/manager.js.map +1 -1
  13. package/dist/commonjs/v3/lifecycleHooks/types.d.ts +26 -10
  14. package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +17 -17
  15. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
  16. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js +11 -5
  17. package/dist/commonjs/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
  18. package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +164 -164
  19. package/dist/commonjs/v3/runEngineWorker/supervisor/session.d.ts +3 -3
  20. package/dist/commonjs/v3/runEngineWorker/supervisor/session.js +2 -4
  21. package/dist/commonjs/v3/runEngineWorker/supervisor/session.js.map +1 -1
  22. package/dist/commonjs/v3/runEngineWorker/workload/http.d.ts +12 -12
  23. package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +142 -142
  24. package/dist/commonjs/v3/schemas/api.d.ts +214 -214
  25. package/dist/commonjs/v3/schemas/build.d.ts +164 -164
  26. package/dist/commonjs/v3/schemas/checkpoints.d.ts +18 -18
  27. package/dist/commonjs/v3/schemas/common.d.ts +171 -171
  28. package/dist/commonjs/v3/schemas/fetch.d.ts +10 -10
  29. package/dist/commonjs/v3/schemas/messages.d.ts +3046 -3036
  30. package/dist/commonjs/v3/schemas/messages.js +6 -0
  31. package/dist/commonjs/v3/schemas/messages.js.map +1 -1
  32. package/dist/commonjs/v3/schemas/resources.d.ts +34 -34
  33. package/dist/commonjs/v3/schemas/runEngine.d.ts +68 -68
  34. package/dist/commonjs/v3/schemas/schemas.d.ts +128 -128
  35. package/dist/commonjs/v3/schemas/style.d.ts +2 -2
  36. package/dist/commonjs/v3/schemas/webhooks.d.ts +166 -166
  37. package/dist/commonjs/v3/streams/asyncIterableStream.d.ts +2 -1
  38. package/dist/commonjs/v3/streams/asyncIterableStream.js +4 -0
  39. package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
  40. package/dist/commonjs/v3/timeout/api.d.ts +1 -1
  41. package/dist/commonjs/v3/timeout/api.js +4 -4
  42. package/dist/commonjs/v3/timeout/api.js.map +1 -1
  43. package/dist/commonjs/v3/timeout/types.d.ts +1 -1
  44. package/dist/commonjs/v3/timeout/usageTimeoutManager.d.ts +2 -1
  45. package/dist/commonjs/v3/timeout/usageTimeoutManager.js +10 -3
  46. package/dist/commonjs/v3/timeout/usageTimeoutManager.js.map +1 -1
  47. package/dist/commonjs/v3/tryCatch.d.ts +3 -4
  48. package/dist/commonjs/v3/types/tasks.d.ts +17 -9
  49. package/dist/commonjs/v3/types/tasks.js.map +1 -1
  50. package/dist/commonjs/v3/usage/devUsageManager.js +3 -1
  51. package/dist/commonjs/v3/usage/devUsageManager.js.map +1 -1
  52. package/dist/commonjs/v3/usage-api.d.ts +1 -0
  53. package/dist/commonjs/v3/workers/taskExecutor.d.ts +1 -1
  54. package/dist/commonjs/v3/workers/taskExecutor.js +76 -16
  55. package/dist/commonjs/v3/workers/taskExecutor.js.map +1 -1
  56. package/dist/commonjs/v3/zodMessageHandler.d.ts +1 -1
  57. package/dist/commonjs/version.js +1 -1
  58. package/dist/esm/utils.d.ts +6 -0
  59. package/dist/esm/utils.js +13 -0
  60. package/dist/esm/utils.js.map +1 -1
  61. package/dist/esm/v3/apiClient/index.d.ts +43 -43
  62. package/dist/esm/v3/apiClientManager/index.d.ts +1 -1
  63. package/dist/esm/v3/lifecycle-hooks-api.d.ts +1 -1
  64. package/dist/esm/v3/lifecycleHooks/index.d.ts +7 -1
  65. package/dist/esm/v3/lifecycleHooks/index.js +18 -0
  66. package/dist/esm/v3/lifecycleHooks/index.js.map +1 -1
  67. package/dist/esm/v3/lifecycleHooks/manager.d.ts +18 -3
  68. package/dist/esm/v3/lifecycleHooks/manager.js +49 -2
  69. package/dist/esm/v3/lifecycleHooks/manager.js.map +1 -1
  70. package/dist/esm/v3/lifecycleHooks/types.d.ts +26 -10
  71. package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +17 -17
  72. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.d.ts +4 -2
  73. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js +11 -5
  74. package/dist/esm/v3/runEngineWorker/supervisor/queueConsumer.js.map +1 -1
  75. package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +164 -164
  76. package/dist/esm/v3/runEngineWorker/supervisor/session.d.ts +3 -3
  77. package/dist/esm/v3/runEngineWorker/supervisor/session.js +2 -4
  78. package/dist/esm/v3/runEngineWorker/supervisor/session.js.map +1 -1
  79. package/dist/esm/v3/runEngineWorker/workload/http.d.ts +12 -12
  80. package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +142 -142
  81. package/dist/esm/v3/schemas/api.d.ts +214 -214
  82. package/dist/esm/v3/schemas/build.d.ts +164 -164
  83. package/dist/esm/v3/schemas/checkpoints.d.ts +18 -18
  84. package/dist/esm/v3/schemas/common.d.ts +171 -171
  85. package/dist/esm/v3/schemas/fetch.d.ts +10 -10
  86. package/dist/esm/v3/schemas/messages.d.ts +3046 -3036
  87. package/dist/esm/v3/schemas/messages.js +6 -0
  88. package/dist/esm/v3/schemas/messages.js.map +1 -1
  89. package/dist/esm/v3/schemas/resources.d.ts +34 -34
  90. package/dist/esm/v3/schemas/runEngine.d.ts +68 -68
  91. package/dist/esm/v3/schemas/schemas.d.ts +128 -128
  92. package/dist/esm/v3/schemas/style.d.ts +2 -2
  93. package/dist/esm/v3/schemas/webhooks.d.ts +166 -166
  94. package/dist/esm/v3/streams/asyncIterableStream.d.ts +2 -1
  95. package/dist/esm/v3/streams/asyncIterableStream.js +3 -0
  96. package/dist/esm/v3/streams/asyncIterableStream.js.map +1 -1
  97. package/dist/esm/v3/timeout/api.d.ts +1 -1
  98. package/dist/esm/v3/timeout/api.js +4 -4
  99. package/dist/esm/v3/timeout/api.js.map +1 -1
  100. package/dist/esm/v3/timeout/types.d.ts +1 -1
  101. package/dist/esm/v3/timeout/usageTimeoutManager.d.ts +2 -1
  102. package/dist/esm/v3/timeout/usageTimeoutManager.js +10 -3
  103. package/dist/esm/v3/timeout/usageTimeoutManager.js.map +1 -1
  104. package/dist/esm/v3/tryCatch.d.ts +3 -4
  105. package/dist/esm/v3/types/tasks.d.ts +17 -9
  106. package/dist/esm/v3/types/tasks.js.map +1 -1
  107. package/dist/esm/v3/usage/devUsageManager.js +3 -1
  108. package/dist/esm/v3/usage/devUsageManager.js.map +1 -1
  109. package/dist/esm/v3/usage-api.d.ts +1 -0
  110. package/dist/esm/v3/workers/taskExecutor.d.ts +1 -1
  111. package/dist/esm/v3/workers/taskExecutor.js +77 -17
  112. package/dist/esm/v3/workers/taskExecutor.js.map +1 -1
  113. package/dist/esm/v3/zodMessageHandler.d.ts +1 -1
  114. package/dist/esm/version.js +1 -1
  115. package/package.json +1 -1
@@ -457,9 +457,9 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
457
457
  })[] | undefined;
458
458
  }>>;
459
459
  }, "strip", z.ZodTypeAny, {
460
+ ok: true;
460
461
  id: string;
461
462
  outputType: string;
462
- ok: true;
463
463
  metadata?: {
464
464
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
465
465
  operations?: ({
@@ -532,15 +532,15 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
532
532
  key: string;
533
533
  })[] | undefined;
534
534
  } | undefined;
535
- output?: string | undefined;
536
535
  usage?: {
537
536
  durationMs: number;
538
537
  } | undefined;
539
538
  taskIdentifier?: string | undefined;
539
+ output?: string | undefined;
540
540
  }, {
541
+ ok: true;
541
542
  id: string;
542
543
  outputType: string;
543
- ok: true;
544
544
  metadata?: {
545
545
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
546
546
  operations?: ({
@@ -613,11 +613,11 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
613
613
  key: string;
614
614
  })[] | undefined;
615
615
  } | undefined;
616
- output?: string | undefined;
617
616
  usage?: {
618
617
  durationMs: number;
619
618
  } | undefined;
620
619
  taskIdentifier?: string | undefined;
620
+ output?: string | undefined;
621
621
  }>, z.ZodObject<{
622
622
  ok: z.ZodLiteral<false>;
623
623
  id: z.ZodString;
@@ -627,14 +627,14 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
627
627
  message: z.ZodString;
628
628
  stackTrace: z.ZodString;
629
629
  }, "strip", z.ZodTypeAny, {
630
- name: string;
631
630
  message: string;
632
631
  type: "BUILT_IN_ERROR";
632
+ name: string;
633
633
  stackTrace: string;
634
634
  }, {
635
- name: string;
636
635
  message: string;
637
636
  type: "BUILT_IN_ERROR";
637
+ name: string;
638
638
  stackTrace: string;
639
639
  }>, z.ZodObject<{
640
640
  type: z.ZodLiteral<"CUSTOM_ERROR">;
@@ -1039,16 +1039,10 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1039
1039
  })[] | undefined;
1040
1040
  }>>;
1041
1041
  }, "strip", z.ZodTypeAny, {
1042
- id: string;
1043
1042
  error: {
1044
- 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" | "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";
1045
- type: "INTERNAL_ERROR";
1046
- message?: string | undefined;
1047
- stackTrace?: string | undefined;
1048
- } | {
1049
- name: string;
1050
1043
  message: string;
1051
1044
  type: "BUILT_IN_ERROR";
1045
+ name: string;
1052
1046
  stackTrace: string;
1053
1047
  } | {
1054
1048
  type: "CUSTOM_ERROR";
@@ -1056,8 +1050,14 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1056
1050
  } | {
1057
1051
  type: "STRING_ERROR";
1058
1052
  raw: string;
1053
+ } | {
1054
+ 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" | "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";
1055
+ type: "INTERNAL_ERROR";
1056
+ message?: string | undefined;
1057
+ stackTrace?: string | undefined;
1059
1058
  };
1060
1059
  ok: false;
1060
+ id: string;
1061
1061
  metadata?: {
1062
1062
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1063
1063
  operations?: ({
@@ -1135,22 +1135,16 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1135
1135
  delay: number;
1136
1136
  error?: unknown;
1137
1137
  } | undefined;
1138
+ skippedRetrying?: boolean | undefined;
1138
1139
  usage?: {
1139
1140
  durationMs: number;
1140
1141
  } | undefined;
1141
1142
  taskIdentifier?: string | undefined;
1142
- skippedRetrying?: boolean | undefined;
1143
1143
  }, {
1144
- id: string;
1145
1144
  error: {
1146
- 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" | "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";
1147
- type: "INTERNAL_ERROR";
1148
- message?: string | undefined;
1149
- stackTrace?: string | undefined;
1150
- } | {
1151
- name: string;
1152
1145
  message: string;
1153
1146
  type: "BUILT_IN_ERROR";
1147
+ name: string;
1154
1148
  stackTrace: string;
1155
1149
  } | {
1156
1150
  type: "CUSTOM_ERROR";
@@ -1158,8 +1152,14 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1158
1152
  } | {
1159
1153
  type: "STRING_ERROR";
1160
1154
  raw: string;
1155
+ } | {
1156
+ 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" | "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";
1157
+ type: "INTERNAL_ERROR";
1158
+ message?: string | undefined;
1159
+ stackTrace?: string | undefined;
1161
1160
  };
1162
1161
  ok: false;
1162
+ id: string;
1163
1163
  metadata?: {
1164
1164
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1165
1165
  operations?: ({
@@ -1237,17 +1237,33 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1237
1237
  delay: number;
1238
1238
  error?: unknown;
1239
1239
  } | undefined;
1240
+ skippedRetrying?: boolean | undefined;
1240
1241
  usage?: {
1241
1242
  durationMs: number;
1242
1243
  } | undefined;
1243
1244
  taskIdentifier?: string | undefined;
1244
- skippedRetrying?: boolean | undefined;
1245
1245
  }>]>;
1246
1246
  }, "strip", z.ZodTypeAny, {
1247
1247
  completion: {
1248
+ error: {
1249
+ message: string;
1250
+ type: "BUILT_IN_ERROR";
1251
+ name: string;
1252
+ stackTrace: string;
1253
+ } | {
1254
+ type: "CUSTOM_ERROR";
1255
+ raw: string;
1256
+ } | {
1257
+ type: "STRING_ERROR";
1258
+ raw: string;
1259
+ } | {
1260
+ 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" | "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";
1261
+ type: "INTERNAL_ERROR";
1262
+ message?: string | undefined;
1263
+ stackTrace?: string | undefined;
1264
+ };
1265
+ ok: false;
1248
1266
  id: string;
1249
- outputType: string;
1250
- ok: true;
1251
1267
  metadata?: {
1252
1268
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1253
1269
  operations?: ({
@@ -1320,31 +1336,20 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1320
1336
  key: string;
1321
1337
  })[] | undefined;
1322
1338
  } | undefined;
1323
- output?: string | undefined;
1339
+ retry?: {
1340
+ timestamp: number;
1341
+ delay: number;
1342
+ error?: unknown;
1343
+ } | undefined;
1344
+ skippedRetrying?: boolean | undefined;
1324
1345
  usage?: {
1325
1346
  durationMs: number;
1326
1347
  } | undefined;
1327
1348
  taskIdentifier?: string | undefined;
1328
1349
  } | {
1350
+ ok: true;
1329
1351
  id: string;
1330
- error: {
1331
- 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" | "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";
1332
- type: "INTERNAL_ERROR";
1333
- message?: string | undefined;
1334
- stackTrace?: string | undefined;
1335
- } | {
1336
- name: string;
1337
- message: string;
1338
- type: "BUILT_IN_ERROR";
1339
- stackTrace: string;
1340
- } | {
1341
- type: "CUSTOM_ERROR";
1342
- raw: string;
1343
- } | {
1344
- type: "STRING_ERROR";
1345
- raw: string;
1346
- };
1347
- ok: false;
1352
+ outputType: string;
1348
1353
  metadata?: {
1349
1354
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1350
1355
  operations?: ({
@@ -1417,22 +1422,33 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1417
1422
  key: string;
1418
1423
  })[] | undefined;
1419
1424
  } | undefined;
1420
- retry?: {
1421
- timestamp: number;
1422
- delay: number;
1423
- error?: unknown;
1424
- } | undefined;
1425
1425
  usage?: {
1426
1426
  durationMs: number;
1427
1427
  } | undefined;
1428
1428
  taskIdentifier?: string | undefined;
1429
- skippedRetrying?: boolean | undefined;
1429
+ output?: string | undefined;
1430
1430
  };
1431
1431
  }, {
1432
1432
  completion: {
1433
+ error: {
1434
+ message: string;
1435
+ type: "BUILT_IN_ERROR";
1436
+ name: string;
1437
+ stackTrace: string;
1438
+ } | {
1439
+ type: "CUSTOM_ERROR";
1440
+ raw: string;
1441
+ } | {
1442
+ type: "STRING_ERROR";
1443
+ raw: string;
1444
+ } | {
1445
+ 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" | "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";
1446
+ type: "INTERNAL_ERROR";
1447
+ message?: string | undefined;
1448
+ stackTrace?: string | undefined;
1449
+ };
1450
+ ok: false;
1433
1451
  id: string;
1434
- outputType: string;
1435
- ok: true;
1436
1452
  metadata?: {
1437
1453
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1438
1454
  operations?: ({
@@ -1505,31 +1521,20 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1505
1521
  key: string;
1506
1522
  })[] | undefined;
1507
1523
  } | undefined;
1508
- output?: string | undefined;
1524
+ retry?: {
1525
+ timestamp: number;
1526
+ delay: number;
1527
+ error?: unknown;
1528
+ } | undefined;
1529
+ skippedRetrying?: boolean | undefined;
1509
1530
  usage?: {
1510
1531
  durationMs: number;
1511
1532
  } | undefined;
1512
1533
  taskIdentifier?: string | undefined;
1513
1534
  } | {
1535
+ ok: true;
1514
1536
  id: string;
1515
- error: {
1516
- 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" | "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";
1517
- type: "INTERNAL_ERROR";
1518
- message?: string | undefined;
1519
- stackTrace?: string | undefined;
1520
- } | {
1521
- name: string;
1522
- message: string;
1523
- type: "BUILT_IN_ERROR";
1524
- stackTrace: string;
1525
- } | {
1526
- type: "CUSTOM_ERROR";
1527
- raw: string;
1528
- } | {
1529
- type: "STRING_ERROR";
1530
- raw: string;
1531
- };
1532
- ok: false;
1537
+ outputType: string;
1533
1538
  metadata?: {
1534
1539
  metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1535
1540
  operations?: ({
@@ -1602,16 +1607,11 @@ export declare const WorkloadRunAttemptCompleteRequestBody: z.ZodObject<{
1602
1607
  key: string;
1603
1608
  })[] | undefined;
1604
1609
  } | undefined;
1605
- retry?: {
1606
- timestamp: number;
1607
- delay: number;
1608
- error?: unknown;
1609
- } | undefined;
1610
1610
  usage?: {
1611
1611
  durationMs: number;
1612
1612
  } | undefined;
1613
1613
  taskIdentifier?: string | undefined;
1614
- skippedRetrying?: boolean | undefined;
1614
+ output?: string | undefined;
1615
1615
  };
1616
1616
  }>;
1617
1617
  export type WorkloadRunAttemptCompleteRequestBody = z.infer<typeof WorkloadRunAttemptCompleteRequestBody>;
@@ -1841,37 +1841,37 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
1841
1841
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
1842
1842
  priority: z.ZodOptional<z.ZodNumber>;
1843
1843
  }, "strip", z.ZodTypeAny, {
1844
- id: string;
1845
- startedAt: Date;
1846
1844
  payload: string;
1845
+ id: string;
1847
1846
  payloadType: string;
1848
1847
  tags: string[];
1849
1848
  isTest: boolean;
1850
1849
  createdAt: Date;
1850
+ startedAt: Date;
1851
1851
  durationMs: number;
1852
1852
  costInCents: number;
1853
1853
  baseCostInCents: number;
1854
+ context?: any;
1855
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1854
1856
  idempotencyKey?: string | undefined;
1855
1857
  maxAttempts?: number | undefined;
1856
1858
  version?: string | undefined;
1857
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1858
1859
  maxDuration?: number | undefined;
1859
- context?: any;
1860
1860
  priority?: number | undefined;
1861
1861
  }, {
1862
- id: string;
1863
1862
  payload: string;
1863
+ id: string;
1864
1864
  payloadType: string;
1865
1865
  tags: string[];
1866
1866
  createdAt: Date;
1867
- startedAt?: Date | undefined;
1867
+ context?: any;
1868
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1868
1869
  isTest?: boolean | undefined;
1870
+ startedAt?: Date | undefined;
1869
1871
  idempotencyKey?: string | undefined;
1870
1872
  maxAttempts?: number | undefined;
1871
1873
  version?: string | undefined;
1872
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1873
1874
  maxDuration?: number | undefined;
1874
- context?: any;
1875
1875
  durationMs?: number | undefined;
1876
1876
  costInCents?: number | undefined;
1877
1877
  baseCostInCents?: number | undefined;
@@ -1948,14 +1948,14 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
1948
1948
  memory: z.ZodNumber;
1949
1949
  centsPerMs: z.ZodNumber;
1950
1950
  }, "strip", z.ZodTypeAny, {
1951
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1952
1951
  cpu: number;
1953
1952
  memory: number;
1953
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1954
1954
  centsPerMs: number;
1955
1955
  }, {
1956
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1957
1956
  cpu: number;
1958
1957
  memory: number;
1958
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1959
1959
  centsPerMs: number;
1960
1960
  }>;
1961
1961
  }, "strip", z.ZodTypeAny, {
@@ -1973,22 +1973,22 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
1973
1973
  backgroundWorkerTaskId: string;
1974
1974
  };
1975
1975
  run: {
1976
- id: string;
1977
- startedAt: Date;
1978
1976
  payload: string;
1977
+ id: string;
1979
1978
  payloadType: string;
1980
1979
  tags: string[];
1981
1980
  isTest: boolean;
1982
1981
  createdAt: Date;
1982
+ startedAt: Date;
1983
1983
  durationMs: number;
1984
1984
  costInCents: number;
1985
1985
  baseCostInCents: number;
1986
+ context?: any;
1987
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1986
1988
  idempotencyKey?: string | undefined;
1987
1989
  maxAttempts?: number | undefined;
1988
1990
  version?: string | undefined;
1989
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
1990
1991
  maxDuration?: number | undefined;
1991
- context?: any;
1992
1992
  priority?: number | undefined;
1993
1993
  } & {
1994
1994
  traceContext?: Record<string, unknown> | undefined;
@@ -2014,9 +2014,9 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2014
2014
  ref: string;
2015
2015
  };
2016
2016
  machine: {
2017
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2018
2017
  cpu: number;
2019
2018
  memory: number;
2019
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2020
2020
  centsPerMs: number;
2021
2021
  };
2022
2022
  batch?: {
@@ -2037,19 +2037,19 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2037
2037
  backgroundWorkerTaskId: string;
2038
2038
  };
2039
2039
  run: {
2040
- id: string;
2041
2040
  payload: string;
2041
+ id: string;
2042
2042
  payloadType: string;
2043
2043
  tags: string[];
2044
2044
  createdAt: Date;
2045
- startedAt?: Date | undefined;
2045
+ context?: any;
2046
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2046
2047
  isTest?: boolean | undefined;
2048
+ startedAt?: Date | undefined;
2047
2049
  idempotencyKey?: string | undefined;
2048
2050
  maxAttempts?: number | undefined;
2049
2051
  version?: string | undefined;
2050
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2051
2052
  maxDuration?: number | undefined;
2052
- context?: any;
2053
2053
  durationMs?: number | undefined;
2054
2054
  costInCents?: number | undefined;
2055
2055
  baseCostInCents?: number | undefined;
@@ -2078,9 +2078,9 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2078
2078
  ref: string;
2079
2079
  };
2080
2080
  machine: {
2081
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2082
2081
  cpu: number;
2083
2082
  memory: number;
2083
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2084
2084
  centsPerMs: number;
2085
2085
  };
2086
2086
  batch?: {
@@ -2103,22 +2103,22 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2103
2103
  backgroundWorkerTaskId: string;
2104
2104
  };
2105
2105
  run: {
2106
- id: string;
2107
- startedAt: Date;
2108
2106
  payload: string;
2107
+ id: string;
2109
2108
  payloadType: string;
2110
2109
  tags: string[];
2111
2110
  isTest: boolean;
2112
2111
  createdAt: Date;
2112
+ startedAt: Date;
2113
2113
  durationMs: number;
2114
2114
  costInCents: number;
2115
2115
  baseCostInCents: number;
2116
+ context?: any;
2117
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2116
2118
  idempotencyKey?: string | undefined;
2117
2119
  maxAttempts?: number | undefined;
2118
2120
  version?: string | undefined;
2119
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2120
2121
  maxDuration?: number | undefined;
2121
- context?: any;
2122
2122
  priority?: number | undefined;
2123
2123
  } & {
2124
2124
  traceContext?: Record<string, unknown> | undefined;
@@ -2144,9 +2144,9 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2144
2144
  ref: string;
2145
2145
  };
2146
2146
  machine: {
2147
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2148
2147
  cpu: number;
2149
2148
  memory: number;
2149
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2150
2150
  centsPerMs: number;
2151
2151
  };
2152
2152
  batch?: {
@@ -2169,19 +2169,19 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2169
2169
  backgroundWorkerTaskId: string;
2170
2170
  };
2171
2171
  run: {
2172
- id: string;
2173
2172
  payload: string;
2173
+ id: string;
2174
2174
  payloadType: string;
2175
2175
  tags: string[];
2176
2176
  createdAt: Date;
2177
- startedAt?: Date | undefined;
2177
+ context?: any;
2178
+ metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2178
2179
  isTest?: boolean | undefined;
2180
+ startedAt?: Date | undefined;
2179
2181
  idempotencyKey?: string | undefined;
2180
2182
  maxAttempts?: number | undefined;
2181
2183
  version?: string | undefined;
2182
- metadata?: Record<string, import("../../../index.js").DeserializedJson> | undefined;
2183
2184
  maxDuration?: number | undefined;
2184
- context?: any;
2185
2185
  durationMs?: number | undefined;
2186
2186
  costInCents?: number | undefined;
2187
2187
  baseCostInCents?: number | undefined;
@@ -2210,9 +2210,9 @@ export declare const WorkloadRunAttemptStartResponseBody: z.ZodIntersection<z.Zo
2210
2210
  ref: string;
2211
2211
  };
2212
2212
  machine: {
2213
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2214
2213
  cpu: number;
2215
2214
  memory: number;
2215
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2216
2216
  centsPerMs: number;
2217
2217
  };
2218
2218
  batch?: {
@@ -2347,10 +2347,12 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2347
2347
  }, "strip", z.ZodTypeAny, {
2348
2348
  type: import("../../index.js").WaitpointType;
2349
2349
  id: string;
2350
- friendlyId: string;
2351
2350
  completedAt: Date;
2351
+ friendlyId: string;
2352
2352
  outputIsError: boolean;
2353
2353
  idempotencyKey?: string | undefined;
2354
+ output?: string | undefined;
2355
+ outputType?: string | undefined;
2354
2356
  index?: number | undefined;
2355
2357
  completedByTaskRun?: {
2356
2358
  id: string;
@@ -2365,15 +2367,15 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2365
2367
  id: string;
2366
2368
  friendlyId: string;
2367
2369
  } | undefined;
2368
- output?: string | undefined;
2369
- outputType?: string | undefined;
2370
2370
  }, {
2371
2371
  type: import("../../index.js").WaitpointType;
2372
2372
  id: string;
2373
- friendlyId: string;
2374
2373
  completedAt: Date;
2374
+ friendlyId: string;
2375
2375
  outputIsError: boolean;
2376
2376
  idempotencyKey?: string | undefined;
2377
+ output?: string | undefined;
2378
+ outputType?: string | undefined;
2377
2379
  index?: number | undefined;
2378
2380
  completedByTaskRun?: {
2379
2381
  id: string;
@@ -2388,8 +2390,6 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2388
2390
  id: string;
2389
2391
  friendlyId: string;
2390
2392
  } | undefined;
2391
- output?: string | undefined;
2392
- outputType?: string | undefined;
2393
2393
  }>, "many">;
2394
2394
  }, "strip", z.ZodTypeAny, {
2395
2395
  version: "1";
@@ -2408,10 +2408,12 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2408
2408
  completedWaitpoints: {
2409
2409
  type: import("../../index.js").WaitpointType;
2410
2410
  id: string;
2411
- friendlyId: string;
2412
2411
  completedAt: Date;
2412
+ friendlyId: string;
2413
2413
  outputIsError: boolean;
2414
2414
  idempotencyKey?: string | undefined;
2415
+ output?: string | undefined;
2416
+ outputType?: string | undefined;
2415
2417
  index?: number | undefined;
2416
2418
  completedByTaskRun?: {
2417
2419
  id: string;
@@ -2426,8 +2428,6 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2426
2428
  id: string;
2427
2429
  friendlyId: string;
2428
2430
  } | undefined;
2429
- output?: string | undefined;
2430
- outputType?: string | undefined;
2431
2431
  }[];
2432
2432
  batch?: {
2433
2433
  id: string;
@@ -2458,10 +2458,12 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2458
2458
  completedWaitpoints: {
2459
2459
  type: import("../../index.js").WaitpointType;
2460
2460
  id: string;
2461
- friendlyId: string;
2462
2461
  completedAt: Date;
2462
+ friendlyId: string;
2463
2463
  outputIsError: boolean;
2464
2464
  idempotencyKey?: string | undefined;
2465
+ output?: string | undefined;
2466
+ outputType?: string | undefined;
2465
2467
  index?: number | undefined;
2466
2468
  completedByTaskRun?: {
2467
2469
  id: string;
@@ -2476,8 +2478,6 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2476
2478
  id: string;
2477
2479
  friendlyId: string;
2478
2480
  } | undefined;
2479
- output?: string | undefined;
2480
- outputType?: string | undefined;
2481
2481
  }[];
2482
2482
  batch?: {
2483
2483
  id: string;
@@ -2510,10 +2510,12 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2510
2510
  completedWaitpoints: {
2511
2511
  type: import("../../index.js").WaitpointType;
2512
2512
  id: string;
2513
- friendlyId: string;
2514
2513
  completedAt: Date;
2514
+ friendlyId: string;
2515
2515
  outputIsError: boolean;
2516
2516
  idempotencyKey?: string | undefined;
2517
+ output?: string | undefined;
2518
+ outputType?: string | undefined;
2517
2519
  index?: number | undefined;
2518
2520
  completedByTaskRun?: {
2519
2521
  id: string;
@@ -2528,8 +2530,6 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2528
2530
  id: string;
2529
2531
  friendlyId: string;
2530
2532
  } | undefined;
2531
- output?: string | undefined;
2532
- outputType?: string | undefined;
2533
2533
  }[];
2534
2534
  batch?: {
2535
2535
  id: string;
@@ -2562,10 +2562,12 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2562
2562
  completedWaitpoints: {
2563
2563
  type: import("../../index.js").WaitpointType;
2564
2564
  id: string;
2565
- friendlyId: string;
2566
2565
  completedAt: Date;
2566
+ friendlyId: string;
2567
2567
  outputIsError: boolean;
2568
2568
  idempotencyKey?: string | undefined;
2569
+ output?: string | undefined;
2570
+ outputType?: string | undefined;
2569
2571
  index?: number | undefined;
2570
2572
  completedByTaskRun?: {
2571
2573
  id: string;
@@ -2580,8 +2582,6 @@ export declare const WorkloadRunLatestSnapshotResponseBody: z.ZodObject<{
2580
2582
  id: string;
2581
2583
  friendlyId: string;
2582
2584
  } | undefined;
2583
- output?: string | undefined;
2584
- outputType?: string | undefined;
2585
2585
  }[];
2586
2586
  batch?: {
2587
2587
  id: string;
@@ -2703,10 +2703,12 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2703
2703
  }, "strip", z.ZodTypeAny, {
2704
2704
  type: import("../../index.js").WaitpointType;
2705
2705
  id: string;
2706
- friendlyId: string;
2707
2706
  completedAt: Date;
2707
+ friendlyId: string;
2708
2708
  outputIsError: boolean;
2709
2709
  idempotencyKey?: string | undefined;
2710
+ output?: string | undefined;
2711
+ outputType?: string | undefined;
2710
2712
  index?: number | undefined;
2711
2713
  completedByTaskRun?: {
2712
2714
  id: string;
@@ -2721,15 +2723,15 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2721
2723
  id: string;
2722
2724
  friendlyId: string;
2723
2725
  } | undefined;
2724
- output?: string | undefined;
2725
- outputType?: string | undefined;
2726
2726
  }, {
2727
2727
  type: import("../../index.js").WaitpointType;
2728
2728
  id: string;
2729
- friendlyId: string;
2730
2729
  completedAt: Date;
2730
+ friendlyId: string;
2731
2731
  outputIsError: boolean;
2732
2732
  idempotencyKey?: string | undefined;
2733
+ output?: string | undefined;
2734
+ outputType?: string | undefined;
2733
2735
  index?: number | undefined;
2734
2736
  completedByTaskRun?: {
2735
2737
  id: string;
@@ -2744,8 +2746,6 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2744
2746
  id: string;
2745
2747
  friendlyId: string;
2746
2748
  } | undefined;
2747
- output?: string | undefined;
2748
- outputType?: string | undefined;
2749
2749
  }>, "many">;
2750
2750
  backgroundWorker: z.ZodObject<{
2751
2751
  id: z.ZodString;
@@ -2780,14 +2780,14 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2780
2780
  memory: z.ZodNumber;
2781
2781
  centsPerMs: z.ZodNumber;
2782
2782
  }, "strip", z.ZodTypeAny, {
2783
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2784
2783
  cpu: number;
2785
2784
  memory: number;
2785
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2786
2786
  centsPerMs: number;
2787
2787
  }, {
2788
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2789
2788
  cpu: number;
2790
2789
  memory: number;
2790
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2791
2791
  centsPerMs: number;
2792
2792
  }>;
2793
2793
  attemptNumber: z.ZodNumber;
@@ -2798,9 +2798,9 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2798
2798
  isTest: boolean;
2799
2799
  traceContext: Record<string, unknown>;
2800
2800
  machine: {
2801
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2802
2801
  cpu: number;
2803
2802
  memory: number;
2803
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2804
2804
  centsPerMs: number;
2805
2805
  };
2806
2806
  friendlyId: string;
@@ -2811,9 +2811,9 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2811
2811
  isTest: boolean;
2812
2812
  traceContext: Record<string, unknown>;
2813
2813
  machine: {
2814
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2815
2814
  cpu: number;
2816
2815
  memory: number;
2816
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2817
2817
  centsPerMs: number;
2818
2818
  };
2819
2819
  friendlyId: string;
@@ -2851,9 +2851,9 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2851
2851
  isTest: boolean;
2852
2852
  traceContext: Record<string, unknown>;
2853
2853
  machine: {
2854
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2855
2854
  cpu: number;
2856
2855
  memory: number;
2856
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2857
2857
  centsPerMs: number;
2858
2858
  };
2859
2859
  friendlyId: string;
@@ -2879,10 +2879,12 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2879
2879
  completedWaitpoints: {
2880
2880
  type: import("../../index.js").WaitpointType;
2881
2881
  id: string;
2882
- friendlyId: string;
2883
2882
  completedAt: Date;
2883
+ friendlyId: string;
2884
2884
  outputIsError: boolean;
2885
2885
  idempotencyKey?: string | undefined;
2886
+ output?: string | undefined;
2887
+ outputType?: string | undefined;
2886
2888
  index?: number | undefined;
2887
2889
  completedByTaskRun?: {
2888
2890
  id: string;
@@ -2897,8 +2899,6 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2897
2899
  id: string;
2898
2900
  friendlyId: string;
2899
2901
  } | undefined;
2900
- output?: string | undefined;
2901
- outputType?: string | undefined;
2902
2902
  }[];
2903
2903
  dequeuedAt: Date;
2904
2904
  backgroundWorker: {
@@ -2925,9 +2925,9 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2925
2925
  isTest: boolean;
2926
2926
  traceContext: Record<string, unknown>;
2927
2927
  machine: {
2928
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2929
2928
  cpu: number;
2930
2929
  memory: number;
2930
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
2931
2931
  centsPerMs: number;
2932
2932
  };
2933
2933
  friendlyId: string;
@@ -2953,10 +2953,12 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2953
2953
  completedWaitpoints: {
2954
2954
  type: import("../../index.js").WaitpointType;
2955
2955
  id: string;
2956
- friendlyId: string;
2957
2956
  completedAt: Date;
2957
+ friendlyId: string;
2958
2958
  outputIsError: boolean;
2959
2959
  idempotencyKey?: string | undefined;
2960
+ output?: string | undefined;
2961
+ outputType?: string | undefined;
2960
2962
  index?: number | undefined;
2961
2963
  completedByTaskRun?: {
2962
2964
  id: string;
@@ -2971,8 +2973,6 @@ export declare const WorkloadDequeueFromVersionResponseBody: z.ZodArray<z.ZodObj
2971
2973
  id: string;
2972
2974
  friendlyId: string;
2973
2975
  } | undefined;
2974
- output?: string | undefined;
2975
- outputType?: string | undefined;
2976
2976
  }[];
2977
2977
  dequeuedAt: Date;
2978
2978
  backgroundWorker: {