@trigger.dev/core 3.0.2 → 3.0.3

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.
@@ -9208,6 +9208,7 @@ export declare const CoordinatorToPlatformMessages: {
9208
9208
  };
9209
9209
  };
9210
9210
  export declare const PlatformToCoordinatorMessages: {
9211
+ /** @deprecated use RESUME_AFTER_DEPENDENCY_WITH_ACK instead */
9211
9212
  RESUME_AFTER_DEPENDENCY: {
9212
9213
  message: z.ZodObject<{
9213
9214
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
@@ -9858,6 +9859,697 @@ export declare const PlatformToCoordinatorMessages: {
9858
9859
  version?: "v1" | undefined;
9859
9860
  }>;
9860
9861
  };
9862
+ RESUME_AFTER_DEPENDENCY_WITH_ACK: {
9863
+ message: z.ZodObject<{
9864
+ version: z.ZodDefault<z.ZodLiteral<"v1">>;
9865
+ runId: z.ZodString;
9866
+ attemptId: z.ZodString;
9867
+ attemptFriendlyId: z.ZodString;
9868
+ completions: z.ZodArray<z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
9869
+ ok: z.ZodLiteral<true>;
9870
+ id: z.ZodString;
9871
+ output: z.ZodOptional<z.ZodString>;
9872
+ outputType: z.ZodString;
9873
+ usage: z.ZodOptional<z.ZodObject<{
9874
+ durationMs: z.ZodNumber;
9875
+ }, "strip", z.ZodTypeAny, {
9876
+ durationMs: number;
9877
+ }, {
9878
+ durationMs: number;
9879
+ }>>;
9880
+ }, "strip", z.ZodTypeAny, {
9881
+ id: string;
9882
+ ok: true;
9883
+ outputType: string;
9884
+ output?: string | undefined;
9885
+ usage?: {
9886
+ durationMs: number;
9887
+ } | undefined;
9888
+ }, {
9889
+ id: string;
9890
+ ok: true;
9891
+ outputType: string;
9892
+ output?: string | undefined;
9893
+ usage?: {
9894
+ durationMs: number;
9895
+ } | undefined;
9896
+ }>, z.ZodObject<{
9897
+ ok: z.ZodLiteral<false>;
9898
+ id: z.ZodString;
9899
+ error: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9900
+ type: z.ZodLiteral<"BUILT_IN_ERROR">;
9901
+ name: z.ZodString;
9902
+ message: z.ZodString;
9903
+ stackTrace: z.ZodString;
9904
+ }, "strip", z.ZodTypeAny, {
9905
+ message: string;
9906
+ type: "BUILT_IN_ERROR";
9907
+ name: string;
9908
+ stackTrace: string;
9909
+ }, {
9910
+ message: string;
9911
+ type: "BUILT_IN_ERROR";
9912
+ name: string;
9913
+ stackTrace: string;
9914
+ }>, z.ZodObject<{
9915
+ type: z.ZodLiteral<"CUSTOM_ERROR">;
9916
+ raw: z.ZodString;
9917
+ }, "strip", z.ZodTypeAny, {
9918
+ type: "CUSTOM_ERROR";
9919
+ raw: string;
9920
+ }, {
9921
+ type: "CUSTOM_ERROR";
9922
+ raw: string;
9923
+ }>, z.ZodObject<{
9924
+ type: z.ZodLiteral<"STRING_ERROR">;
9925
+ raw: z.ZodString;
9926
+ }, "strip", z.ZodTypeAny, {
9927
+ type: "STRING_ERROR";
9928
+ raw: string;
9929
+ }, {
9930
+ type: "STRING_ERROR";
9931
+ raw: string;
9932
+ }>, z.ZodObject<{
9933
+ type: z.ZodLiteral<"INTERNAL_ERROR">;
9934
+ code: z.ZodEnum<["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_RUN_CANCELLED", "TASK_OUTPUT_ERROR", "HANDLE_ERROR_ERROR", "GRACEFUL_EXIT_TIMEOUT", "TASK_RUN_HEARTBEAT_TIMEOUT", "TASK_RUN_CRASHED"]>;
9935
+ message: z.ZodOptional<z.ZodString>;
9936
+ stackTrace: z.ZodOptional<z.ZodString>;
9937
+ }, "strip", z.ZodTypeAny, {
9938
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
9939
+ type: "INTERNAL_ERROR";
9940
+ message?: string | undefined;
9941
+ stackTrace?: string | undefined;
9942
+ }, {
9943
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
9944
+ type: "INTERNAL_ERROR";
9945
+ message?: string | undefined;
9946
+ stackTrace?: string | undefined;
9947
+ }>]>;
9948
+ retry: z.ZodOptional<z.ZodObject<{
9949
+ timestamp: z.ZodNumber;
9950
+ delay: z.ZodNumber;
9951
+ error: z.ZodOptional<z.ZodUnknown>;
9952
+ }, "strip", z.ZodTypeAny, {
9953
+ timestamp: number;
9954
+ delay: number;
9955
+ error?: unknown;
9956
+ }, {
9957
+ timestamp: number;
9958
+ delay: number;
9959
+ error?: unknown;
9960
+ }>>;
9961
+ skippedRetrying: z.ZodOptional<z.ZodBoolean>;
9962
+ usage: z.ZodOptional<z.ZodObject<{
9963
+ durationMs: z.ZodNumber;
9964
+ }, "strip", z.ZodTypeAny, {
9965
+ durationMs: number;
9966
+ }, {
9967
+ durationMs: number;
9968
+ }>>;
9969
+ }, "strip", z.ZodTypeAny, {
9970
+ error: {
9971
+ message: string;
9972
+ type: "BUILT_IN_ERROR";
9973
+ name: string;
9974
+ stackTrace: string;
9975
+ } | {
9976
+ type: "CUSTOM_ERROR";
9977
+ raw: string;
9978
+ } | {
9979
+ type: "STRING_ERROR";
9980
+ raw: string;
9981
+ } | {
9982
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
9983
+ type: "INTERNAL_ERROR";
9984
+ message?: string | undefined;
9985
+ stackTrace?: string | undefined;
9986
+ };
9987
+ id: string;
9988
+ ok: false;
9989
+ retry?: {
9990
+ timestamp: number;
9991
+ delay: number;
9992
+ error?: unknown;
9993
+ } | undefined;
9994
+ skippedRetrying?: boolean | undefined;
9995
+ usage?: {
9996
+ durationMs: number;
9997
+ } | undefined;
9998
+ }, {
9999
+ error: {
10000
+ message: string;
10001
+ type: "BUILT_IN_ERROR";
10002
+ name: string;
10003
+ stackTrace: string;
10004
+ } | {
10005
+ type: "CUSTOM_ERROR";
10006
+ raw: string;
10007
+ } | {
10008
+ type: "STRING_ERROR";
10009
+ raw: string;
10010
+ } | {
10011
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
10012
+ type: "INTERNAL_ERROR";
10013
+ message?: string | undefined;
10014
+ stackTrace?: string | undefined;
10015
+ };
10016
+ id: string;
10017
+ ok: false;
10018
+ retry?: {
10019
+ timestamp: number;
10020
+ delay: number;
10021
+ error?: unknown;
10022
+ } | undefined;
10023
+ skippedRetrying?: boolean | undefined;
10024
+ usage?: {
10025
+ durationMs: number;
10026
+ } | undefined;
10027
+ }>]>, "many">;
10028
+ executions: z.ZodArray<z.ZodObject<{
10029
+ task: z.ZodObject<{
10030
+ id: z.ZodString;
10031
+ filePath: z.ZodString;
10032
+ exportName: z.ZodString;
10033
+ }, "strip", z.ZodTypeAny, {
10034
+ id: string;
10035
+ filePath: string;
10036
+ exportName: string;
10037
+ }, {
10038
+ id: string;
10039
+ filePath: string;
10040
+ exportName: string;
10041
+ }>;
10042
+ attempt: z.ZodObject<{
10043
+ id: z.ZodString;
10044
+ number: z.ZodNumber;
10045
+ startedAt: z.ZodDate;
10046
+ backgroundWorkerId: z.ZodString;
10047
+ backgroundWorkerTaskId: z.ZodString;
10048
+ status: z.ZodString;
10049
+ }, "strip", z.ZodTypeAny, {
10050
+ number: number;
10051
+ status: string;
10052
+ id: string;
10053
+ startedAt: Date;
10054
+ backgroundWorkerId: string;
10055
+ backgroundWorkerTaskId: string;
10056
+ }, {
10057
+ number: number;
10058
+ status: string;
10059
+ id: string;
10060
+ startedAt: Date;
10061
+ backgroundWorkerId: string;
10062
+ backgroundWorkerTaskId: string;
10063
+ }>;
10064
+ run: z.ZodObject<{
10065
+ id: z.ZodString;
10066
+ payload: z.ZodString;
10067
+ payloadType: z.ZodString;
10068
+ context: z.ZodAny;
10069
+ tags: z.ZodArray<z.ZodString, "many">;
10070
+ isTest: z.ZodDefault<z.ZodBoolean>;
10071
+ createdAt: z.ZodDate;
10072
+ startedAt: z.ZodDefault<z.ZodDate>;
10073
+ idempotencyKey: z.ZodOptional<z.ZodString>;
10074
+ maxAttempts: z.ZodOptional<z.ZodNumber>;
10075
+ durationMs: z.ZodDefault<z.ZodNumber>;
10076
+ costInCents: z.ZodDefault<z.ZodNumber>;
10077
+ baseCostInCents: z.ZodDefault<z.ZodNumber>;
10078
+ version: z.ZodOptional<z.ZodString>;
10079
+ }, "strip", z.ZodTypeAny, {
10080
+ payload: string;
10081
+ id: string;
10082
+ startedAt: Date;
10083
+ payloadType: string;
10084
+ isTest: boolean;
10085
+ createdAt: Date;
10086
+ tags: string[];
10087
+ durationMs: number;
10088
+ costInCents: number;
10089
+ baseCostInCents: number;
10090
+ context?: any;
10091
+ idempotencyKey?: string | undefined;
10092
+ maxAttempts?: number | undefined;
10093
+ version?: string | undefined;
10094
+ }, {
10095
+ payload: string;
10096
+ id: string;
10097
+ payloadType: string;
10098
+ createdAt: Date;
10099
+ tags: string[];
10100
+ context?: any;
10101
+ isTest?: boolean | undefined;
10102
+ startedAt?: Date | undefined;
10103
+ idempotencyKey?: string | undefined;
10104
+ maxAttempts?: number | undefined;
10105
+ durationMs?: number | undefined;
10106
+ costInCents?: number | undefined;
10107
+ baseCostInCents?: number | undefined;
10108
+ version?: string | undefined;
10109
+ }>;
10110
+ queue: z.ZodObject<{
10111
+ id: z.ZodString;
10112
+ name: z.ZodString;
10113
+ }, "strip", z.ZodTypeAny, {
10114
+ name: string;
10115
+ id: string;
10116
+ }, {
10117
+ name: string;
10118
+ id: string;
10119
+ }>;
10120
+ environment: z.ZodObject<{
10121
+ id: z.ZodString;
10122
+ slug: z.ZodString;
10123
+ type: z.ZodEnum<["PRODUCTION", "STAGING", "DEVELOPMENT", "PREVIEW"]>;
10124
+ }, "strip", z.ZodTypeAny, {
10125
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10126
+ id: string;
10127
+ slug: string;
10128
+ }, {
10129
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10130
+ id: string;
10131
+ slug: string;
10132
+ }>;
10133
+ organization: z.ZodObject<{
10134
+ id: z.ZodString;
10135
+ slug: z.ZodString;
10136
+ name: z.ZodString;
10137
+ }, "strip", z.ZodTypeAny, {
10138
+ name: string;
10139
+ id: string;
10140
+ slug: string;
10141
+ }, {
10142
+ name: string;
10143
+ id: string;
10144
+ slug: string;
10145
+ }>;
10146
+ project: z.ZodObject<{
10147
+ id: z.ZodString;
10148
+ ref: z.ZodString;
10149
+ slug: z.ZodString;
10150
+ name: z.ZodString;
10151
+ }, "strip", z.ZodTypeAny, {
10152
+ name: string;
10153
+ id: string;
10154
+ slug: string;
10155
+ ref: string;
10156
+ }, {
10157
+ name: string;
10158
+ id: string;
10159
+ slug: string;
10160
+ ref: string;
10161
+ }>;
10162
+ batch: z.ZodOptional<z.ZodObject<{
10163
+ id: z.ZodString;
10164
+ }, "strip", z.ZodTypeAny, {
10165
+ id: string;
10166
+ }, {
10167
+ id: string;
10168
+ }>>;
10169
+ machine: z.ZodOptional<z.ZodObject<{
10170
+ name: z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>;
10171
+ cpu: z.ZodNumber;
10172
+ memory: z.ZodNumber;
10173
+ centsPerMs: z.ZodNumber;
10174
+ }, "strip", z.ZodTypeAny, {
10175
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10176
+ cpu: number;
10177
+ memory: number;
10178
+ centsPerMs: number;
10179
+ }, {
10180
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10181
+ cpu: number;
10182
+ memory: number;
10183
+ centsPerMs: number;
10184
+ }>>;
10185
+ }, "strip", z.ZodTypeAny, {
10186
+ run: {
10187
+ payload: string;
10188
+ id: string;
10189
+ startedAt: Date;
10190
+ payloadType: string;
10191
+ isTest: boolean;
10192
+ createdAt: Date;
10193
+ tags: string[];
10194
+ durationMs: number;
10195
+ costInCents: number;
10196
+ baseCostInCents: number;
10197
+ context?: any;
10198
+ idempotencyKey?: string | undefined;
10199
+ maxAttempts?: number | undefined;
10200
+ version?: string | undefined;
10201
+ };
10202
+ environment: {
10203
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10204
+ id: string;
10205
+ slug: string;
10206
+ };
10207
+ organization: {
10208
+ name: string;
10209
+ id: string;
10210
+ slug: string;
10211
+ };
10212
+ project: {
10213
+ name: string;
10214
+ id: string;
10215
+ slug: string;
10216
+ ref: string;
10217
+ };
10218
+ task: {
10219
+ id: string;
10220
+ filePath: string;
10221
+ exportName: string;
10222
+ };
10223
+ attempt: {
10224
+ number: number;
10225
+ status: string;
10226
+ id: string;
10227
+ startedAt: Date;
10228
+ backgroundWorkerId: string;
10229
+ backgroundWorkerTaskId: string;
10230
+ };
10231
+ queue: {
10232
+ name: string;
10233
+ id: string;
10234
+ };
10235
+ batch?: {
10236
+ id: string;
10237
+ } | undefined;
10238
+ machine?: {
10239
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10240
+ cpu: number;
10241
+ memory: number;
10242
+ centsPerMs: number;
10243
+ } | undefined;
10244
+ }, {
10245
+ run: {
10246
+ payload: string;
10247
+ id: string;
10248
+ payloadType: string;
10249
+ createdAt: Date;
10250
+ tags: string[];
10251
+ context?: any;
10252
+ isTest?: boolean | undefined;
10253
+ startedAt?: Date | undefined;
10254
+ idempotencyKey?: string | undefined;
10255
+ maxAttempts?: number | undefined;
10256
+ durationMs?: number | undefined;
10257
+ costInCents?: number | undefined;
10258
+ baseCostInCents?: number | undefined;
10259
+ version?: string | undefined;
10260
+ };
10261
+ environment: {
10262
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10263
+ id: string;
10264
+ slug: string;
10265
+ };
10266
+ organization: {
10267
+ name: string;
10268
+ id: string;
10269
+ slug: string;
10270
+ };
10271
+ project: {
10272
+ name: string;
10273
+ id: string;
10274
+ slug: string;
10275
+ ref: string;
10276
+ };
10277
+ task: {
10278
+ id: string;
10279
+ filePath: string;
10280
+ exportName: string;
10281
+ };
10282
+ attempt: {
10283
+ number: number;
10284
+ status: string;
10285
+ id: string;
10286
+ startedAt: Date;
10287
+ backgroundWorkerId: string;
10288
+ backgroundWorkerTaskId: string;
10289
+ };
10290
+ queue: {
10291
+ name: string;
10292
+ id: string;
10293
+ };
10294
+ batch?: {
10295
+ id: string;
10296
+ } | undefined;
10297
+ machine?: {
10298
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10299
+ cpu: number;
10300
+ memory: number;
10301
+ centsPerMs: number;
10302
+ } | undefined;
10303
+ }>, "many">;
10304
+ }, "strip", z.ZodTypeAny, {
10305
+ version: "v1";
10306
+ runId: string;
10307
+ attemptFriendlyId: string;
10308
+ attemptId: string;
10309
+ completions: ({
10310
+ error: {
10311
+ message: string;
10312
+ type: "BUILT_IN_ERROR";
10313
+ name: string;
10314
+ stackTrace: string;
10315
+ } | {
10316
+ type: "CUSTOM_ERROR";
10317
+ raw: string;
10318
+ } | {
10319
+ type: "STRING_ERROR";
10320
+ raw: string;
10321
+ } | {
10322
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
10323
+ type: "INTERNAL_ERROR";
10324
+ message?: string | undefined;
10325
+ stackTrace?: string | undefined;
10326
+ };
10327
+ id: string;
10328
+ ok: false;
10329
+ retry?: {
10330
+ timestamp: number;
10331
+ delay: number;
10332
+ error?: unknown;
10333
+ } | undefined;
10334
+ skippedRetrying?: boolean | undefined;
10335
+ usage?: {
10336
+ durationMs: number;
10337
+ } | undefined;
10338
+ } | {
10339
+ id: string;
10340
+ ok: true;
10341
+ outputType: string;
10342
+ output?: string | undefined;
10343
+ usage?: {
10344
+ durationMs: number;
10345
+ } | undefined;
10346
+ })[];
10347
+ executions: {
10348
+ run: {
10349
+ payload: string;
10350
+ id: string;
10351
+ startedAt: Date;
10352
+ payloadType: string;
10353
+ isTest: boolean;
10354
+ createdAt: Date;
10355
+ tags: string[];
10356
+ durationMs: number;
10357
+ costInCents: number;
10358
+ baseCostInCents: number;
10359
+ context?: any;
10360
+ idempotencyKey?: string | undefined;
10361
+ maxAttempts?: number | undefined;
10362
+ version?: string | undefined;
10363
+ };
10364
+ environment: {
10365
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10366
+ id: string;
10367
+ slug: string;
10368
+ };
10369
+ organization: {
10370
+ name: string;
10371
+ id: string;
10372
+ slug: string;
10373
+ };
10374
+ project: {
10375
+ name: string;
10376
+ id: string;
10377
+ slug: string;
10378
+ ref: string;
10379
+ };
10380
+ task: {
10381
+ id: string;
10382
+ filePath: string;
10383
+ exportName: string;
10384
+ };
10385
+ attempt: {
10386
+ number: number;
10387
+ status: string;
10388
+ id: string;
10389
+ startedAt: Date;
10390
+ backgroundWorkerId: string;
10391
+ backgroundWorkerTaskId: string;
10392
+ };
10393
+ queue: {
10394
+ name: string;
10395
+ id: string;
10396
+ };
10397
+ batch?: {
10398
+ id: string;
10399
+ } | undefined;
10400
+ machine?: {
10401
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10402
+ cpu: number;
10403
+ memory: number;
10404
+ centsPerMs: number;
10405
+ } | undefined;
10406
+ }[];
10407
+ }, {
10408
+ runId: string;
10409
+ attemptFriendlyId: string;
10410
+ attemptId: string;
10411
+ completions: ({
10412
+ error: {
10413
+ message: string;
10414
+ type: "BUILT_IN_ERROR";
10415
+ name: string;
10416
+ stackTrace: string;
10417
+ } | {
10418
+ type: "CUSTOM_ERROR";
10419
+ raw: string;
10420
+ } | {
10421
+ type: "STRING_ERROR";
10422
+ raw: string;
10423
+ } | {
10424
+ 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_RUN_CANCELLED" | "TASK_OUTPUT_ERROR" | "HANDLE_ERROR_ERROR" | "GRACEFUL_EXIT_TIMEOUT" | "TASK_RUN_CRASHED" | "TASK_RUN_HEARTBEAT_TIMEOUT";
10425
+ type: "INTERNAL_ERROR";
10426
+ message?: string | undefined;
10427
+ stackTrace?: string | undefined;
10428
+ };
10429
+ id: string;
10430
+ ok: false;
10431
+ retry?: {
10432
+ timestamp: number;
10433
+ delay: number;
10434
+ error?: unknown;
10435
+ } | undefined;
10436
+ skippedRetrying?: boolean | undefined;
10437
+ usage?: {
10438
+ durationMs: number;
10439
+ } | undefined;
10440
+ } | {
10441
+ id: string;
10442
+ ok: true;
10443
+ outputType: string;
10444
+ output?: string | undefined;
10445
+ usage?: {
10446
+ durationMs: number;
10447
+ } | undefined;
10448
+ })[];
10449
+ executions: {
10450
+ run: {
10451
+ payload: string;
10452
+ id: string;
10453
+ payloadType: string;
10454
+ createdAt: Date;
10455
+ tags: string[];
10456
+ context?: any;
10457
+ isTest?: boolean | undefined;
10458
+ startedAt?: Date | undefined;
10459
+ idempotencyKey?: string | undefined;
10460
+ maxAttempts?: number | undefined;
10461
+ durationMs?: number | undefined;
10462
+ costInCents?: number | undefined;
10463
+ baseCostInCents?: number | undefined;
10464
+ version?: string | undefined;
10465
+ };
10466
+ environment: {
10467
+ type: "PRODUCTION" | "STAGING" | "DEVELOPMENT" | "PREVIEW";
10468
+ id: string;
10469
+ slug: string;
10470
+ };
10471
+ organization: {
10472
+ name: string;
10473
+ id: string;
10474
+ slug: string;
10475
+ };
10476
+ project: {
10477
+ name: string;
10478
+ id: string;
10479
+ slug: string;
10480
+ ref: string;
10481
+ };
10482
+ task: {
10483
+ id: string;
10484
+ filePath: string;
10485
+ exportName: string;
10486
+ };
10487
+ attempt: {
10488
+ number: number;
10489
+ status: string;
10490
+ id: string;
10491
+ startedAt: Date;
10492
+ backgroundWorkerId: string;
10493
+ backgroundWorkerTaskId: string;
10494
+ };
10495
+ queue: {
10496
+ name: string;
10497
+ id: string;
10498
+ };
10499
+ batch?: {
10500
+ id: string;
10501
+ } | undefined;
10502
+ machine?: {
10503
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
10504
+ cpu: number;
10505
+ memory: number;
10506
+ centsPerMs: number;
10507
+ } | undefined;
10508
+ }[];
10509
+ version?: "v1" | undefined;
10510
+ }>;
10511
+ callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
10512
+ success: z.ZodLiteral<false>;
10513
+ error: z.ZodObject<{
10514
+ name: z.ZodString;
10515
+ message: z.ZodString;
10516
+ stack: z.ZodOptional<z.ZodString>;
10517
+ stderr: z.ZodOptional<z.ZodString>;
10518
+ }, "strip", z.ZodTypeAny, {
10519
+ message: string;
10520
+ name: string;
10521
+ stack?: string | undefined;
10522
+ stderr?: string | undefined;
10523
+ }, {
10524
+ message: string;
10525
+ name: string;
10526
+ stack?: string | undefined;
10527
+ stderr?: string | undefined;
10528
+ }>;
10529
+ }, "strip", z.ZodTypeAny, {
10530
+ error: {
10531
+ message: string;
10532
+ name: string;
10533
+ stack?: string | undefined;
10534
+ stderr?: string | undefined;
10535
+ };
10536
+ success: false;
10537
+ }, {
10538
+ error: {
10539
+ message: string;
10540
+ name: string;
10541
+ stack?: string | undefined;
10542
+ stderr?: string | undefined;
10543
+ };
10544
+ success: false;
10545
+ }>, z.ZodObject<{
10546
+ success: z.ZodLiteral<true>;
10547
+ }, "strip", z.ZodTypeAny, {
10548
+ success: true;
10549
+ }, {
10550
+ success: true;
10551
+ }>]>;
10552
+ };
9861
10553
  RESUME_AFTER_DURATION: {
9862
10554
  message: z.ZodObject<{
9863
10555
  version: z.ZodDefault<z.ZodLiteral<"v1">>;
@@ -15432,6 +16124,7 @@ export declare const ProdWorkerSocketData: z.ZodObject<{
15432
16124
  podName: z.ZodString;
15433
16125
  deploymentId: z.ZodString;
15434
16126
  deploymentVersion: z.ZodString;
16127
+ requiresCheckpointResumeWithMessage: z.ZodOptional<z.ZodString>;
15435
16128
  }, "strip", z.ZodTypeAny, {
15436
16129
  contentHash: string;
15437
16130
  runId: string;
@@ -15442,6 +16135,7 @@ export declare const ProdWorkerSocketData: z.ZodObject<{
15442
16135
  deploymentVersion: string;
15443
16136
  attemptFriendlyId?: string | undefined;
15444
16137
  attemptNumber?: string | undefined;
16138
+ requiresCheckpointResumeWithMessage?: string | undefined;
15445
16139
  }, {
15446
16140
  contentHash: string;
15447
16141
  runId: string;
@@ -15452,6 +16146,7 @@ export declare const ProdWorkerSocketData: z.ZodObject<{
15452
16146
  deploymentVersion: string;
15453
16147
  attemptFriendlyId?: string | undefined;
15454
16148
  attemptNumber?: string | undefined;
16149
+ requiresCheckpointResumeWithMessage?: string | undefined;
15455
16150
  }>;
15456
16151
  export declare const CoordinatorSocketData: z.ZodObject<{
15457
16152
  supportsDynamicConfig: z.ZodOptional<z.ZodString>;