@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
@@ -106,10 +106,12 @@ export declare const CompletedWaitpoint: z.ZodObject<{
106
106
  }, "strip", z.ZodTypeAny, {
107
107
  type: WaitpointType;
108
108
  id: string;
109
- friendlyId: string;
110
109
  completedAt: Date;
110
+ friendlyId: string;
111
111
  outputIsError: boolean;
112
112
  idempotencyKey?: string | undefined;
113
+ output?: string | undefined;
114
+ outputType?: string | undefined;
113
115
  index?: number | undefined;
114
116
  completedByTaskRun?: {
115
117
  id: string;
@@ -124,15 +126,15 @@ export declare const CompletedWaitpoint: z.ZodObject<{
124
126
  id: string;
125
127
  friendlyId: string;
126
128
  } | undefined;
127
- output?: string | undefined;
128
- outputType?: string | undefined;
129
129
  }, {
130
130
  type: WaitpointType;
131
131
  id: string;
132
- friendlyId: string;
133
132
  completedAt: Date;
133
+ friendlyId: string;
134
134
  outputIsError: boolean;
135
135
  idempotencyKey?: string | undefined;
136
+ output?: string | undefined;
137
+ outputType?: string | undefined;
136
138
  index?: number | undefined;
137
139
  completedByTaskRun?: {
138
140
  id: string;
@@ -147,8 +149,6 @@ export declare const CompletedWaitpoint: z.ZodObject<{
147
149
  id: string;
148
150
  friendlyId: string;
149
151
  } | undefined;
150
- output?: string | undefined;
151
- outputType?: string | undefined;
152
152
  }>;
153
153
  export type CompletedWaitpoint = z.infer<typeof CompletedWaitpoint>;
154
154
  export declare const ExecutionResult: z.ZodObject<{
@@ -328,37 +328,37 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
328
328
  baseCostInCents: z.ZodDefault<z.ZodNumber>;
329
329
  priority: z.ZodOptional<z.ZodNumber>;
330
330
  }, "strip", z.ZodTypeAny, {
331
- id: string;
332
- startedAt: Date;
333
331
  payload: string;
332
+ id: string;
334
333
  payloadType: string;
335
334
  tags: string[];
336
335
  isTest: boolean;
337
336
  createdAt: Date;
337
+ startedAt: Date;
338
338
  durationMs: number;
339
339
  costInCents: number;
340
340
  baseCostInCents: number;
341
+ context?: any;
342
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
341
343
  idempotencyKey?: string | undefined;
342
344
  maxAttempts?: number | undefined;
343
345
  version?: string | undefined;
344
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
345
346
  maxDuration?: number | undefined;
346
- context?: any;
347
347
  priority?: number | undefined;
348
348
  }, {
349
- id: string;
350
349
  payload: string;
350
+ id: string;
351
351
  payloadType: string;
352
352
  tags: string[];
353
353
  createdAt: Date;
354
- startedAt?: Date | undefined;
354
+ context?: any;
355
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
355
356
  isTest?: boolean | undefined;
357
+ startedAt?: Date | undefined;
356
358
  idempotencyKey?: string | undefined;
357
359
  maxAttempts?: number | undefined;
358
360
  version?: string | undefined;
359
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
360
361
  maxDuration?: number | undefined;
361
- context?: any;
362
362
  durationMs?: number | undefined;
363
363
  costInCents?: number | undefined;
364
364
  baseCostInCents?: number | undefined;
@@ -435,14 +435,14 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
435
435
  memory: z.ZodNumber;
436
436
  centsPerMs: z.ZodNumber;
437
437
  }, "strip", z.ZodTypeAny, {
438
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
439
438
  cpu: number;
440
439
  memory: number;
440
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
441
441
  centsPerMs: number;
442
442
  }, {
443
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
444
443
  cpu: number;
445
444
  memory: number;
445
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
446
446
  centsPerMs: number;
447
447
  }>;
448
448
  }, "strip", z.ZodTypeAny, {
@@ -460,22 +460,22 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
460
460
  backgroundWorkerTaskId: string;
461
461
  };
462
462
  run: {
463
- id: string;
464
- startedAt: Date;
465
463
  payload: string;
464
+ id: string;
466
465
  payloadType: string;
467
466
  tags: string[];
468
467
  isTest: boolean;
469
468
  createdAt: Date;
469
+ startedAt: Date;
470
470
  durationMs: number;
471
471
  costInCents: number;
472
472
  baseCostInCents: number;
473
+ context?: any;
474
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
473
475
  idempotencyKey?: string | undefined;
474
476
  maxAttempts?: number | undefined;
475
477
  version?: string | undefined;
476
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
477
478
  maxDuration?: number | undefined;
478
- context?: any;
479
479
  priority?: number | undefined;
480
480
  } & {
481
481
  traceContext?: Record<string, unknown> | undefined;
@@ -501,9 +501,9 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
501
501
  ref: string;
502
502
  };
503
503
  machine: {
504
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
505
504
  cpu: number;
506
505
  memory: number;
506
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
507
507
  centsPerMs: number;
508
508
  };
509
509
  batch?: {
@@ -524,19 +524,19 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
524
524
  backgroundWorkerTaskId: string;
525
525
  };
526
526
  run: {
527
- id: string;
528
527
  payload: string;
528
+ id: string;
529
529
  payloadType: string;
530
530
  tags: string[];
531
531
  createdAt: Date;
532
- startedAt?: Date | undefined;
532
+ context?: any;
533
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
533
534
  isTest?: boolean | undefined;
535
+ startedAt?: Date | undefined;
534
536
  idempotencyKey?: string | undefined;
535
537
  maxAttempts?: number | undefined;
536
538
  version?: string | undefined;
537
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
538
539
  maxDuration?: number | undefined;
539
- context?: any;
540
540
  durationMs?: number | undefined;
541
541
  costInCents?: number | undefined;
542
542
  baseCostInCents?: number | undefined;
@@ -565,9 +565,9 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
565
565
  ref: string;
566
566
  };
567
567
  machine: {
568
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
569
568
  cpu: number;
570
569
  memory: number;
570
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
571
571
  centsPerMs: number;
572
572
  };
573
573
  batch?: {
@@ -590,22 +590,22 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
590
590
  backgroundWorkerTaskId: string;
591
591
  };
592
592
  run: {
593
- id: string;
594
- startedAt: Date;
595
593
  payload: string;
594
+ id: string;
596
595
  payloadType: string;
597
596
  tags: string[];
598
597
  isTest: boolean;
599
598
  createdAt: Date;
599
+ startedAt: Date;
600
600
  durationMs: number;
601
601
  costInCents: number;
602
602
  baseCostInCents: number;
603
+ context?: any;
604
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
603
605
  idempotencyKey?: string | undefined;
604
606
  maxAttempts?: number | undefined;
605
607
  version?: string | undefined;
606
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
607
608
  maxDuration?: number | undefined;
608
- context?: any;
609
609
  priority?: number | undefined;
610
610
  } & {
611
611
  traceContext?: Record<string, unknown> | undefined;
@@ -631,9 +631,9 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
631
631
  ref: string;
632
632
  };
633
633
  machine: {
634
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
635
634
  cpu: number;
636
635
  memory: number;
636
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
637
637
  centsPerMs: number;
638
638
  };
639
639
  batch?: {
@@ -656,19 +656,19 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
656
656
  backgroundWorkerTaskId: string;
657
657
  };
658
658
  run: {
659
- id: string;
660
659
  payload: string;
660
+ id: string;
661
661
  payloadType: string;
662
662
  tags: string[];
663
663
  createdAt: Date;
664
- startedAt?: Date | undefined;
664
+ context?: any;
665
+ metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
665
666
  isTest?: boolean | undefined;
667
+ startedAt?: Date | undefined;
666
668
  idempotencyKey?: string | undefined;
667
669
  maxAttempts?: number | undefined;
668
670
  version?: string | undefined;
669
- metadata?: Record<string, import("../../index.js").DeserializedJson> | undefined;
670
671
  maxDuration?: number | undefined;
671
- context?: any;
672
672
  durationMs?: number | undefined;
673
673
  costInCents?: number | undefined;
674
674
  baseCostInCents?: number | undefined;
@@ -697,9 +697,9 @@ export declare const StartRunAttemptResult: z.ZodIntersection<z.ZodObject<{
697
697
  ref: string;
698
698
  };
699
699
  machine: {
700
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
701
700
  cpu: number;
702
701
  memory: number;
702
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
703
703
  centsPerMs: number;
704
704
  };
705
705
  batch?: {
@@ -950,10 +950,12 @@ export declare const RunExecutionData: z.ZodObject<{
950
950
  }, "strip", z.ZodTypeAny, {
951
951
  type: WaitpointType;
952
952
  id: string;
953
- friendlyId: string;
954
953
  completedAt: Date;
954
+ friendlyId: string;
955
955
  outputIsError: boolean;
956
956
  idempotencyKey?: string | undefined;
957
+ output?: string | undefined;
958
+ outputType?: string | undefined;
957
959
  index?: number | undefined;
958
960
  completedByTaskRun?: {
959
961
  id: string;
@@ -968,15 +970,15 @@ export declare const RunExecutionData: z.ZodObject<{
968
970
  id: string;
969
971
  friendlyId: string;
970
972
  } | undefined;
971
- output?: string | undefined;
972
- outputType?: string | undefined;
973
973
  }, {
974
974
  type: WaitpointType;
975
975
  id: string;
976
- friendlyId: string;
977
976
  completedAt: Date;
977
+ friendlyId: string;
978
978
  outputIsError: boolean;
979
979
  idempotencyKey?: string | undefined;
980
+ output?: string | undefined;
981
+ outputType?: string | undefined;
980
982
  index?: number | undefined;
981
983
  completedByTaskRun?: {
982
984
  id: string;
@@ -991,8 +993,6 @@ export declare const RunExecutionData: z.ZodObject<{
991
993
  id: string;
992
994
  friendlyId: string;
993
995
  } | undefined;
994
- output?: string | undefined;
995
- outputType?: string | undefined;
996
996
  }>, "many">;
997
997
  }, "strip", z.ZodTypeAny, {
998
998
  version: "1";
@@ -1011,10 +1011,12 @@ export declare const RunExecutionData: z.ZodObject<{
1011
1011
  completedWaitpoints: {
1012
1012
  type: WaitpointType;
1013
1013
  id: string;
1014
- friendlyId: string;
1015
1014
  completedAt: Date;
1015
+ friendlyId: string;
1016
1016
  outputIsError: boolean;
1017
1017
  idempotencyKey?: string | undefined;
1018
+ output?: string | undefined;
1019
+ outputType?: string | undefined;
1018
1020
  index?: number | undefined;
1019
1021
  completedByTaskRun?: {
1020
1022
  id: string;
@@ -1029,8 +1031,6 @@ export declare const RunExecutionData: z.ZodObject<{
1029
1031
  id: string;
1030
1032
  friendlyId: string;
1031
1033
  } | undefined;
1032
- output?: string | undefined;
1033
- outputType?: string | undefined;
1034
1034
  }[];
1035
1035
  batch?: {
1036
1036
  id: string;
@@ -1061,10 +1061,12 @@ export declare const RunExecutionData: z.ZodObject<{
1061
1061
  completedWaitpoints: {
1062
1062
  type: WaitpointType;
1063
1063
  id: string;
1064
- friendlyId: string;
1065
1064
  completedAt: Date;
1065
+ friendlyId: string;
1066
1066
  outputIsError: boolean;
1067
1067
  idempotencyKey?: string | undefined;
1068
+ output?: string | undefined;
1069
+ outputType?: string | undefined;
1068
1070
  index?: number | undefined;
1069
1071
  completedByTaskRun?: {
1070
1072
  id: string;
@@ -1079,8 +1081,6 @@ export declare const RunExecutionData: z.ZodObject<{
1079
1081
  id: string;
1080
1082
  friendlyId: string;
1081
1083
  } | undefined;
1082
- output?: string | undefined;
1083
- outputType?: string | undefined;
1084
1084
  }[];
1085
1085
  batch?: {
1086
1086
  id: string;
@@ -1155,13 +1155,13 @@ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1155
1155
  attemptNumber?: number | null | undefined;
1156
1156
  }>;
1157
1157
  }>, "strip", z.ZodTypeAny, {
1158
+ ok: true;
1158
1159
  run: {
1159
1160
  status: TaskRunStatus;
1160
1161
  id: string;
1161
1162
  friendlyId: string;
1162
1163
  attemptNumber?: number | null | undefined;
1163
1164
  };
1164
- ok: true;
1165
1165
  snapshot: {
1166
1166
  id: string;
1167
1167
  description: string;
@@ -1177,13 +1177,13 @@ export declare const CreateCheckpointResult: z.ZodDiscriminatedUnion<"ok", [z.Zo
1177
1177
  reason?: string | null | undefined;
1178
1178
  };
1179
1179
  }, {
1180
+ ok: true;
1180
1181
  run: {
1181
1182
  status: TaskRunStatus;
1182
1183
  id: string;
1183
1184
  friendlyId: string;
1184
1185
  attemptNumber?: number | null | undefined;
1185
1186
  };
1186
- ok: true;
1187
1187
  snapshot: {
1188
1188
  id: string;
1189
1189
  description: string;
@@ -1336,10 +1336,12 @@ export declare const DequeuedMessage: z.ZodObject<{
1336
1336
  }, "strip", z.ZodTypeAny, {
1337
1337
  type: WaitpointType;
1338
1338
  id: string;
1339
- friendlyId: string;
1340
1339
  completedAt: Date;
1340
+ friendlyId: string;
1341
1341
  outputIsError: boolean;
1342
1342
  idempotencyKey?: string | undefined;
1343
+ output?: string | undefined;
1344
+ outputType?: string | undefined;
1343
1345
  index?: number | undefined;
1344
1346
  completedByTaskRun?: {
1345
1347
  id: string;
@@ -1354,15 +1356,15 @@ export declare const DequeuedMessage: z.ZodObject<{
1354
1356
  id: string;
1355
1357
  friendlyId: string;
1356
1358
  } | undefined;
1357
- output?: string | undefined;
1358
- outputType?: string | undefined;
1359
1359
  }, {
1360
1360
  type: WaitpointType;
1361
1361
  id: string;
1362
- friendlyId: string;
1363
1362
  completedAt: Date;
1363
+ friendlyId: string;
1364
1364
  outputIsError: boolean;
1365
1365
  idempotencyKey?: string | undefined;
1366
+ output?: string | undefined;
1367
+ outputType?: string | undefined;
1366
1368
  index?: number | undefined;
1367
1369
  completedByTaskRun?: {
1368
1370
  id: string;
@@ -1377,8 +1379,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1377
1379
  id: string;
1378
1380
  friendlyId: string;
1379
1381
  } | undefined;
1380
- output?: string | undefined;
1381
- outputType?: string | undefined;
1382
1382
  }>, "many">;
1383
1383
  backgroundWorker: z.ZodObject<{
1384
1384
  id: z.ZodString;
@@ -1413,14 +1413,14 @@ export declare const DequeuedMessage: z.ZodObject<{
1413
1413
  memory: z.ZodNumber;
1414
1414
  centsPerMs: z.ZodNumber;
1415
1415
  }, "strip", z.ZodTypeAny, {
1416
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1417
1416
  cpu: number;
1418
1417
  memory: number;
1418
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1419
1419
  centsPerMs: number;
1420
1420
  }, {
1421
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1422
1421
  cpu: number;
1423
1422
  memory: number;
1423
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1424
1424
  centsPerMs: number;
1425
1425
  }>;
1426
1426
  attemptNumber: z.ZodNumber;
@@ -1431,9 +1431,9 @@ export declare const DequeuedMessage: z.ZodObject<{
1431
1431
  isTest: boolean;
1432
1432
  traceContext: Record<string, unknown>;
1433
1433
  machine: {
1434
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1435
1434
  cpu: number;
1436
1435
  memory: number;
1436
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1437
1437
  centsPerMs: number;
1438
1438
  };
1439
1439
  friendlyId: string;
@@ -1444,9 +1444,9 @@ export declare const DequeuedMessage: z.ZodObject<{
1444
1444
  isTest: boolean;
1445
1445
  traceContext: Record<string, unknown>;
1446
1446
  machine: {
1447
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1448
1447
  cpu: number;
1449
1448
  memory: number;
1449
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1450
1450
  centsPerMs: number;
1451
1451
  };
1452
1452
  friendlyId: string;
@@ -1484,9 +1484,9 @@ export declare const DequeuedMessage: z.ZodObject<{
1484
1484
  isTest: boolean;
1485
1485
  traceContext: Record<string, unknown>;
1486
1486
  machine: {
1487
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1488
1487
  cpu: number;
1489
1488
  memory: number;
1489
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1490
1490
  centsPerMs: number;
1491
1491
  };
1492
1492
  friendlyId: string;
@@ -1512,10 +1512,12 @@ export declare const DequeuedMessage: z.ZodObject<{
1512
1512
  completedWaitpoints: {
1513
1513
  type: WaitpointType;
1514
1514
  id: string;
1515
- friendlyId: string;
1516
1515
  completedAt: Date;
1516
+ friendlyId: string;
1517
1517
  outputIsError: boolean;
1518
1518
  idempotencyKey?: string | undefined;
1519
+ output?: string | undefined;
1520
+ outputType?: string | undefined;
1519
1521
  index?: number | undefined;
1520
1522
  completedByTaskRun?: {
1521
1523
  id: string;
@@ -1530,8 +1532,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1530
1532
  id: string;
1531
1533
  friendlyId: string;
1532
1534
  } | undefined;
1533
- output?: string | undefined;
1534
- outputType?: string | undefined;
1535
1535
  }[];
1536
1536
  dequeuedAt: Date;
1537
1537
  backgroundWorker: {
@@ -1558,9 +1558,9 @@ export declare const DequeuedMessage: z.ZodObject<{
1558
1558
  isTest: boolean;
1559
1559
  traceContext: Record<string, unknown>;
1560
1560
  machine: {
1561
- name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1562
1561
  cpu: number;
1563
1562
  memory: number;
1563
+ name: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x";
1564
1564
  centsPerMs: number;
1565
1565
  };
1566
1566
  friendlyId: string;
@@ -1586,10 +1586,12 @@ export declare const DequeuedMessage: z.ZodObject<{
1586
1586
  completedWaitpoints: {
1587
1587
  type: WaitpointType;
1588
1588
  id: string;
1589
- friendlyId: string;
1590
1589
  completedAt: Date;
1590
+ friendlyId: string;
1591
1591
  outputIsError: boolean;
1592
1592
  idempotencyKey?: string | undefined;
1593
+ output?: string | undefined;
1594
+ outputType?: string | undefined;
1593
1595
  index?: number | undefined;
1594
1596
  completedByTaskRun?: {
1595
1597
  id: string;
@@ -1604,8 +1606,6 @@ export declare const DequeuedMessage: z.ZodObject<{
1604
1606
  id: string;
1605
1607
  friendlyId: string;
1606
1608
  } | undefined;
1607
- output?: string | undefined;
1608
- outputType?: string | undefined;
1609
1609
  }[];
1610
1610
  dequeuedAt: Date;
1611
1611
  backgroundWorker: {