@trigger.dev/core 3.0.4 → 3.0.6

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.
@@ -806,7 +806,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
806
806
  context: z.ZodAny;
807
807
  options: z.ZodOptional<z.ZodObject<{
808
808
  dependentAttempt: z.ZodOptional<z.ZodString>;
809
+ parentAttempt: z.ZodOptional<z.ZodString>;
809
810
  dependentBatch: z.ZodOptional<z.ZodString>;
811
+ parentBatch: z.ZodOptional<z.ZodString>;
810
812
  lockToVersion: z.ZodOptional<z.ZodString>;
811
813
  queue: z.ZodOptional<z.ZodObject<{
812
814
  name: z.ZodOptional<z.ZodString>;
@@ -1003,7 +1005,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1003
1005
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1004
1006
  }, "strip", z.ZodTypeAny, {
1005
1007
  dependentAttempt?: string | undefined;
1008
+ parentAttempt?: string | undefined;
1006
1009
  dependentBatch?: string | undefined;
1010
+ parentBatch?: string | undefined;
1007
1011
  lockToVersion?: string | undefined;
1008
1012
  queue?: {
1009
1013
  name?: string | undefined;
@@ -1052,7 +1056,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1052
1056
  maxAttempts?: number | undefined;
1053
1057
  }, {
1054
1058
  dependentAttempt?: string | undefined;
1059
+ parentAttempt?: string | undefined;
1055
1060
  dependentBatch?: string | undefined;
1061
+ parentBatch?: string | undefined;
1056
1062
  lockToVersion?: string | undefined;
1057
1063
  queue?: {
1058
1064
  name?: string | undefined;
@@ -1105,7 +1111,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1105
1111
  context?: any;
1106
1112
  options?: {
1107
1113
  dependentAttempt?: string | undefined;
1114
+ parentAttempt?: string | undefined;
1108
1115
  dependentBatch?: string | undefined;
1116
+ parentBatch?: string | undefined;
1109
1117
  lockToVersion?: string | undefined;
1110
1118
  queue?: {
1111
1119
  name?: string | undefined;
@@ -1158,7 +1166,9 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
1158
1166
  context?: any;
1159
1167
  options?: {
1160
1168
  dependentAttempt?: string | undefined;
1169
+ parentAttempt?: string | undefined;
1161
1170
  dependentBatch?: string | undefined;
1171
+ parentBatch?: string | undefined;
1162
1172
  lockToVersion?: string | undefined;
1163
1173
  queue?: {
1164
1174
  name?: string | undefined;
@@ -1222,7 +1232,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1222
1232
  context: z.ZodAny;
1223
1233
  options: z.ZodOptional<z.ZodObject<{
1224
1234
  dependentAttempt: z.ZodOptional<z.ZodString>;
1235
+ parentAttempt: z.ZodOptional<z.ZodString>;
1225
1236
  dependentBatch: z.ZodOptional<z.ZodString>;
1237
+ parentBatch: z.ZodOptional<z.ZodString>;
1226
1238
  lockToVersion: z.ZodOptional<z.ZodString>;
1227
1239
  queue: z.ZodOptional<z.ZodObject<{
1228
1240
  name: z.ZodOptional<z.ZodString>;
@@ -1419,7 +1431,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1419
1431
  maxAttempts: z.ZodOptional<z.ZodNumber>;
1420
1432
  }, "strip", z.ZodTypeAny, {
1421
1433
  dependentAttempt?: string | undefined;
1434
+ parentAttempt?: string | undefined;
1422
1435
  dependentBatch?: string | undefined;
1436
+ parentBatch?: string | undefined;
1423
1437
  lockToVersion?: string | undefined;
1424
1438
  queue?: {
1425
1439
  name?: string | undefined;
@@ -1468,7 +1482,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1468
1482
  maxAttempts?: number | undefined;
1469
1483
  }, {
1470
1484
  dependentAttempt?: string | undefined;
1485
+ parentAttempt?: string | undefined;
1471
1486
  dependentBatch?: string | undefined;
1487
+ parentBatch?: string | undefined;
1472
1488
  lockToVersion?: string | undefined;
1473
1489
  queue?: {
1474
1490
  name?: string | undefined;
@@ -1521,7 +1537,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1521
1537
  context?: any;
1522
1538
  options?: {
1523
1539
  dependentAttempt?: string | undefined;
1540
+ parentAttempt?: string | undefined;
1524
1541
  dependentBatch?: string | undefined;
1542
+ parentBatch?: string | undefined;
1525
1543
  lockToVersion?: string | undefined;
1526
1544
  queue?: {
1527
1545
  name?: string | undefined;
@@ -1574,7 +1592,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1574
1592
  context?: any;
1575
1593
  options?: {
1576
1594
  dependentAttempt?: string | undefined;
1595
+ parentAttempt?: string | undefined;
1577
1596
  dependentBatch?: string | undefined;
1597
+ parentBatch?: string | undefined;
1578
1598
  lockToVersion?: string | undefined;
1579
1599
  queue?: {
1580
1600
  name?: string | undefined;
@@ -1630,7 +1650,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1630
1650
  context?: any;
1631
1651
  options?: {
1632
1652
  dependentAttempt?: string | undefined;
1653
+ parentAttempt?: string | undefined;
1633
1654
  dependentBatch?: string | undefined;
1655
+ parentBatch?: string | undefined;
1634
1656
  lockToVersion?: string | undefined;
1635
1657
  queue?: {
1636
1658
  name?: string | undefined;
@@ -1686,7 +1708,9 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
1686
1708
  context?: any;
1687
1709
  options?: {
1688
1710
  dependentAttempt?: string | undefined;
1711
+ parentAttempt?: string | undefined;
1689
1712
  dependentBatch?: string | undefined;
1713
+ parentBatch?: string | undefined;
1690
1714
  lockToVersion?: string | undefined;
1691
1715
  queue?: {
1692
1716
  name?: string | undefined;
@@ -2580,6 +2604,90 @@ export declare const RunScheduleDetails: z.ZodObject<{
2580
2604
  deduplicationKey?: string | undefined;
2581
2605
  }>;
2582
2606
  export type RunScheduleDetails = z.infer<typeof RunScheduleDetails>;
2607
+ export declare const TriggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2608
+ export type TriggerFunction = z.infer<typeof TriggerFunction>;
2609
+ export declare const RelatedRunDetails: z.ZodObject<{
2610
+ depth: z.ZodNumber;
2611
+ triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2612
+ batchId: z.ZodOptional<z.ZodString>;
2613
+ id: z.ZodString;
2614
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2615
+ taskIdentifier: z.ZodString;
2616
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2617
+ version: z.ZodOptional<z.ZodString>;
2618
+ isQueued: z.ZodBoolean;
2619
+ isExecuting: z.ZodBoolean;
2620
+ isCompleted: z.ZodBoolean;
2621
+ isSuccess: z.ZodBoolean;
2622
+ isFailed: z.ZodBoolean;
2623
+ isCancelled: z.ZodBoolean;
2624
+ isTest: z.ZodBoolean;
2625
+ createdAt: z.ZodDate;
2626
+ updatedAt: z.ZodDate;
2627
+ startedAt: z.ZodOptional<z.ZodDate>;
2628
+ finishedAt: z.ZodOptional<z.ZodDate>;
2629
+ delayedUntil: z.ZodOptional<z.ZodDate>;
2630
+ ttl: z.ZodOptional<z.ZodString>;
2631
+ expiredAt: z.ZodOptional<z.ZodDate>;
2632
+ tags: z.ZodArray<z.ZodString, "many">;
2633
+ costInCents: z.ZodNumber;
2634
+ baseCostInCents: z.ZodNumber;
2635
+ durationMs: z.ZodNumber;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2638
+ id: string;
2639
+ updatedAt: Date;
2640
+ isTest: boolean;
2641
+ createdAt: Date;
2642
+ tags: string[];
2643
+ durationMs: number;
2644
+ costInCents: number;
2645
+ baseCostInCents: number;
2646
+ depth: number;
2647
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2648
+ taskIdentifier: string;
2649
+ isQueued: boolean;
2650
+ isExecuting: boolean;
2651
+ isCompleted: boolean;
2652
+ isSuccess: boolean;
2653
+ isFailed: boolean;
2654
+ isCancelled: boolean;
2655
+ batchId?: string | undefined;
2656
+ idempotencyKey?: string | undefined;
2657
+ version?: string | undefined;
2658
+ startedAt?: Date | undefined;
2659
+ finishedAt?: Date | undefined;
2660
+ delayedUntil?: Date | undefined;
2661
+ ttl?: string | undefined;
2662
+ expiredAt?: Date | undefined;
2663
+ }, {
2664
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2665
+ id: string;
2666
+ updatedAt: Date;
2667
+ isTest: boolean;
2668
+ createdAt: Date;
2669
+ tags: string[];
2670
+ durationMs: number;
2671
+ costInCents: number;
2672
+ baseCostInCents: number;
2673
+ depth: number;
2674
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2675
+ taskIdentifier: string;
2676
+ isQueued: boolean;
2677
+ isExecuting: boolean;
2678
+ isCompleted: boolean;
2679
+ isSuccess: boolean;
2680
+ isFailed: boolean;
2681
+ isCancelled: boolean;
2682
+ batchId?: string | undefined;
2683
+ idempotencyKey?: string | undefined;
2684
+ version?: string | undefined;
2685
+ startedAt?: Date | undefined;
2686
+ finishedAt?: Date | undefined;
2687
+ delayedUntil?: Date | undefined;
2688
+ ttl?: string | undefined;
2689
+ expiredAt?: Date | undefined;
2690
+ }>;
2583
2691
  export declare const RetrieveRunResponse: z.ZodObject<{
2584
2692
  payload: z.ZodOptional<z.ZodAny>;
2585
2693
  payloadPresignedUrl: z.ZodOptional<z.ZodString>;
@@ -2621,6 +2729,424 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2621
2729
  externalId?: string | undefined;
2622
2730
  deduplicationKey?: string | undefined;
2623
2731
  }>>;
2732
+ relatedRuns: z.ZodObject<{
2733
+ root: z.ZodOptional<z.ZodObject<{
2734
+ depth: z.ZodNumber;
2735
+ triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2736
+ batchId: z.ZodOptional<z.ZodString>;
2737
+ id: z.ZodString;
2738
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2739
+ taskIdentifier: z.ZodString;
2740
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2741
+ version: z.ZodOptional<z.ZodString>;
2742
+ isQueued: z.ZodBoolean;
2743
+ isExecuting: z.ZodBoolean;
2744
+ isCompleted: z.ZodBoolean;
2745
+ isSuccess: z.ZodBoolean;
2746
+ isFailed: z.ZodBoolean;
2747
+ isCancelled: z.ZodBoolean;
2748
+ isTest: z.ZodBoolean;
2749
+ createdAt: z.ZodDate;
2750
+ updatedAt: z.ZodDate;
2751
+ startedAt: z.ZodOptional<z.ZodDate>;
2752
+ finishedAt: z.ZodOptional<z.ZodDate>;
2753
+ delayedUntil: z.ZodOptional<z.ZodDate>;
2754
+ ttl: z.ZodOptional<z.ZodString>;
2755
+ expiredAt: z.ZodOptional<z.ZodDate>;
2756
+ tags: z.ZodArray<z.ZodString, "many">;
2757
+ costInCents: z.ZodNumber;
2758
+ baseCostInCents: z.ZodNumber;
2759
+ durationMs: z.ZodNumber;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2762
+ id: string;
2763
+ updatedAt: Date;
2764
+ isTest: boolean;
2765
+ createdAt: Date;
2766
+ tags: string[];
2767
+ durationMs: number;
2768
+ costInCents: number;
2769
+ baseCostInCents: number;
2770
+ depth: number;
2771
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2772
+ taskIdentifier: string;
2773
+ isQueued: boolean;
2774
+ isExecuting: boolean;
2775
+ isCompleted: boolean;
2776
+ isSuccess: boolean;
2777
+ isFailed: boolean;
2778
+ isCancelled: boolean;
2779
+ batchId?: string | undefined;
2780
+ idempotencyKey?: string | undefined;
2781
+ version?: string | undefined;
2782
+ startedAt?: Date | undefined;
2783
+ finishedAt?: Date | undefined;
2784
+ delayedUntil?: Date | undefined;
2785
+ ttl?: string | undefined;
2786
+ expiredAt?: Date | undefined;
2787
+ }, {
2788
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2789
+ id: string;
2790
+ updatedAt: Date;
2791
+ isTest: boolean;
2792
+ createdAt: Date;
2793
+ tags: string[];
2794
+ durationMs: number;
2795
+ costInCents: number;
2796
+ baseCostInCents: number;
2797
+ depth: number;
2798
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2799
+ taskIdentifier: string;
2800
+ isQueued: boolean;
2801
+ isExecuting: boolean;
2802
+ isCompleted: boolean;
2803
+ isSuccess: boolean;
2804
+ isFailed: boolean;
2805
+ isCancelled: boolean;
2806
+ batchId?: string | undefined;
2807
+ idempotencyKey?: string | undefined;
2808
+ version?: string | undefined;
2809
+ startedAt?: Date | undefined;
2810
+ finishedAt?: Date | undefined;
2811
+ delayedUntil?: Date | undefined;
2812
+ ttl?: string | undefined;
2813
+ expiredAt?: Date | undefined;
2814
+ }>>;
2815
+ parent: z.ZodOptional<z.ZodObject<{
2816
+ depth: z.ZodNumber;
2817
+ triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2818
+ batchId: z.ZodOptional<z.ZodString>;
2819
+ id: z.ZodString;
2820
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2821
+ taskIdentifier: z.ZodString;
2822
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2823
+ version: z.ZodOptional<z.ZodString>;
2824
+ isQueued: z.ZodBoolean;
2825
+ isExecuting: z.ZodBoolean;
2826
+ isCompleted: z.ZodBoolean;
2827
+ isSuccess: z.ZodBoolean;
2828
+ isFailed: z.ZodBoolean;
2829
+ isCancelled: z.ZodBoolean;
2830
+ isTest: z.ZodBoolean;
2831
+ createdAt: z.ZodDate;
2832
+ updatedAt: z.ZodDate;
2833
+ startedAt: z.ZodOptional<z.ZodDate>;
2834
+ finishedAt: z.ZodOptional<z.ZodDate>;
2835
+ delayedUntil: z.ZodOptional<z.ZodDate>;
2836
+ ttl: z.ZodOptional<z.ZodString>;
2837
+ expiredAt: z.ZodOptional<z.ZodDate>;
2838
+ tags: z.ZodArray<z.ZodString, "many">;
2839
+ costInCents: z.ZodNumber;
2840
+ baseCostInCents: z.ZodNumber;
2841
+ durationMs: z.ZodNumber;
2842
+ }, "strip", z.ZodTypeAny, {
2843
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2844
+ id: string;
2845
+ updatedAt: Date;
2846
+ isTest: boolean;
2847
+ createdAt: Date;
2848
+ tags: string[];
2849
+ durationMs: number;
2850
+ costInCents: number;
2851
+ baseCostInCents: number;
2852
+ depth: number;
2853
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2854
+ taskIdentifier: string;
2855
+ isQueued: boolean;
2856
+ isExecuting: boolean;
2857
+ isCompleted: boolean;
2858
+ isSuccess: boolean;
2859
+ isFailed: boolean;
2860
+ isCancelled: boolean;
2861
+ batchId?: string | undefined;
2862
+ idempotencyKey?: string | undefined;
2863
+ version?: string | undefined;
2864
+ startedAt?: Date | undefined;
2865
+ finishedAt?: Date | undefined;
2866
+ delayedUntil?: Date | undefined;
2867
+ ttl?: string | undefined;
2868
+ expiredAt?: Date | undefined;
2869
+ }, {
2870
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2871
+ id: string;
2872
+ updatedAt: Date;
2873
+ isTest: boolean;
2874
+ createdAt: Date;
2875
+ tags: string[];
2876
+ durationMs: number;
2877
+ costInCents: number;
2878
+ baseCostInCents: number;
2879
+ depth: number;
2880
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2881
+ taskIdentifier: string;
2882
+ isQueued: boolean;
2883
+ isExecuting: boolean;
2884
+ isCompleted: boolean;
2885
+ isSuccess: boolean;
2886
+ isFailed: boolean;
2887
+ isCancelled: boolean;
2888
+ batchId?: string | undefined;
2889
+ idempotencyKey?: string | undefined;
2890
+ version?: string | undefined;
2891
+ startedAt?: Date | undefined;
2892
+ finishedAt?: Date | undefined;
2893
+ delayedUntil?: Date | undefined;
2894
+ ttl?: string | undefined;
2895
+ expiredAt?: Date | undefined;
2896
+ }>>;
2897
+ children: z.ZodOptional<z.ZodArray<z.ZodObject<{
2898
+ depth: z.ZodNumber;
2899
+ triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
2900
+ batchId: z.ZodOptional<z.ZodString>;
2901
+ id: z.ZodString;
2902
+ status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2903
+ taskIdentifier: z.ZodString;
2904
+ idempotencyKey: z.ZodOptional<z.ZodString>;
2905
+ version: z.ZodOptional<z.ZodString>;
2906
+ isQueued: z.ZodBoolean;
2907
+ isExecuting: z.ZodBoolean;
2908
+ isCompleted: z.ZodBoolean;
2909
+ isSuccess: z.ZodBoolean;
2910
+ isFailed: z.ZodBoolean;
2911
+ isCancelled: z.ZodBoolean;
2912
+ isTest: z.ZodBoolean;
2913
+ createdAt: z.ZodDate;
2914
+ updatedAt: z.ZodDate;
2915
+ startedAt: z.ZodOptional<z.ZodDate>;
2916
+ finishedAt: z.ZodOptional<z.ZodDate>;
2917
+ delayedUntil: z.ZodOptional<z.ZodDate>;
2918
+ ttl: z.ZodOptional<z.ZodString>;
2919
+ expiredAt: z.ZodOptional<z.ZodDate>;
2920
+ tags: z.ZodArray<z.ZodString, "many">;
2921
+ costInCents: z.ZodNumber;
2922
+ baseCostInCents: z.ZodNumber;
2923
+ durationMs: z.ZodNumber;
2924
+ }, "strip", z.ZodTypeAny, {
2925
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2926
+ id: string;
2927
+ updatedAt: Date;
2928
+ isTest: boolean;
2929
+ createdAt: Date;
2930
+ tags: string[];
2931
+ durationMs: number;
2932
+ costInCents: number;
2933
+ baseCostInCents: number;
2934
+ depth: number;
2935
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2936
+ taskIdentifier: string;
2937
+ isQueued: boolean;
2938
+ isExecuting: boolean;
2939
+ isCompleted: boolean;
2940
+ isSuccess: boolean;
2941
+ isFailed: boolean;
2942
+ isCancelled: boolean;
2943
+ batchId?: string | undefined;
2944
+ idempotencyKey?: string | undefined;
2945
+ version?: string | undefined;
2946
+ startedAt?: Date | undefined;
2947
+ finishedAt?: Date | undefined;
2948
+ delayedUntil?: Date | undefined;
2949
+ ttl?: string | undefined;
2950
+ expiredAt?: Date | undefined;
2951
+ }, {
2952
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2953
+ id: string;
2954
+ updatedAt: Date;
2955
+ isTest: boolean;
2956
+ createdAt: Date;
2957
+ tags: string[];
2958
+ durationMs: number;
2959
+ costInCents: number;
2960
+ baseCostInCents: number;
2961
+ depth: number;
2962
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2963
+ taskIdentifier: string;
2964
+ isQueued: boolean;
2965
+ isExecuting: boolean;
2966
+ isCompleted: boolean;
2967
+ isSuccess: boolean;
2968
+ isFailed: boolean;
2969
+ isCancelled: boolean;
2970
+ batchId?: string | undefined;
2971
+ idempotencyKey?: string | undefined;
2972
+ version?: string | undefined;
2973
+ startedAt?: Date | undefined;
2974
+ finishedAt?: Date | undefined;
2975
+ delayedUntil?: Date | undefined;
2976
+ ttl?: string | undefined;
2977
+ expiredAt?: Date | undefined;
2978
+ }>, "many">>;
2979
+ }, "strip", z.ZodTypeAny, {
2980
+ root?: {
2981
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
2982
+ id: string;
2983
+ updatedAt: Date;
2984
+ isTest: boolean;
2985
+ createdAt: Date;
2986
+ tags: string[];
2987
+ durationMs: number;
2988
+ costInCents: number;
2989
+ baseCostInCents: number;
2990
+ depth: number;
2991
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2992
+ taskIdentifier: string;
2993
+ isQueued: boolean;
2994
+ isExecuting: boolean;
2995
+ isCompleted: boolean;
2996
+ isSuccess: boolean;
2997
+ isFailed: boolean;
2998
+ isCancelled: boolean;
2999
+ batchId?: string | undefined;
3000
+ idempotencyKey?: string | undefined;
3001
+ version?: string | undefined;
3002
+ startedAt?: Date | undefined;
3003
+ finishedAt?: Date | undefined;
3004
+ delayedUntil?: Date | undefined;
3005
+ ttl?: string | undefined;
3006
+ expiredAt?: Date | undefined;
3007
+ } | undefined;
3008
+ parent?: {
3009
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3010
+ id: string;
3011
+ updatedAt: Date;
3012
+ isTest: boolean;
3013
+ createdAt: Date;
3014
+ tags: string[];
3015
+ durationMs: number;
3016
+ costInCents: number;
3017
+ baseCostInCents: number;
3018
+ depth: number;
3019
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3020
+ taskIdentifier: string;
3021
+ isQueued: boolean;
3022
+ isExecuting: boolean;
3023
+ isCompleted: boolean;
3024
+ isSuccess: boolean;
3025
+ isFailed: boolean;
3026
+ isCancelled: boolean;
3027
+ batchId?: string | undefined;
3028
+ idempotencyKey?: string | undefined;
3029
+ version?: string | undefined;
3030
+ startedAt?: Date | undefined;
3031
+ finishedAt?: Date | undefined;
3032
+ delayedUntil?: Date | undefined;
3033
+ ttl?: string | undefined;
3034
+ expiredAt?: Date | undefined;
3035
+ } | undefined;
3036
+ children?: {
3037
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3038
+ id: string;
3039
+ updatedAt: Date;
3040
+ isTest: boolean;
3041
+ createdAt: Date;
3042
+ tags: string[];
3043
+ durationMs: number;
3044
+ costInCents: number;
3045
+ baseCostInCents: number;
3046
+ depth: number;
3047
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3048
+ taskIdentifier: string;
3049
+ isQueued: boolean;
3050
+ isExecuting: boolean;
3051
+ isCompleted: boolean;
3052
+ isSuccess: boolean;
3053
+ isFailed: boolean;
3054
+ isCancelled: boolean;
3055
+ batchId?: string | undefined;
3056
+ idempotencyKey?: string | undefined;
3057
+ version?: string | undefined;
3058
+ startedAt?: Date | undefined;
3059
+ finishedAt?: Date | undefined;
3060
+ delayedUntil?: Date | undefined;
3061
+ ttl?: string | undefined;
3062
+ expiredAt?: Date | undefined;
3063
+ }[] | undefined;
3064
+ }, {
3065
+ root?: {
3066
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3067
+ id: string;
3068
+ updatedAt: Date;
3069
+ isTest: boolean;
3070
+ createdAt: Date;
3071
+ tags: string[];
3072
+ durationMs: number;
3073
+ costInCents: number;
3074
+ baseCostInCents: number;
3075
+ depth: number;
3076
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3077
+ taskIdentifier: string;
3078
+ isQueued: boolean;
3079
+ isExecuting: boolean;
3080
+ isCompleted: boolean;
3081
+ isSuccess: boolean;
3082
+ isFailed: boolean;
3083
+ isCancelled: boolean;
3084
+ batchId?: string | undefined;
3085
+ idempotencyKey?: string | undefined;
3086
+ version?: string | undefined;
3087
+ startedAt?: Date | undefined;
3088
+ finishedAt?: Date | undefined;
3089
+ delayedUntil?: Date | undefined;
3090
+ ttl?: string | undefined;
3091
+ expiredAt?: Date | undefined;
3092
+ } | undefined;
3093
+ parent?: {
3094
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3095
+ id: string;
3096
+ updatedAt: Date;
3097
+ isTest: boolean;
3098
+ createdAt: Date;
3099
+ tags: string[];
3100
+ durationMs: number;
3101
+ costInCents: number;
3102
+ baseCostInCents: number;
3103
+ depth: number;
3104
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3105
+ taskIdentifier: string;
3106
+ isQueued: boolean;
3107
+ isExecuting: boolean;
3108
+ isCompleted: boolean;
3109
+ isSuccess: boolean;
3110
+ isFailed: boolean;
3111
+ isCancelled: boolean;
3112
+ batchId?: string | undefined;
3113
+ idempotencyKey?: string | undefined;
3114
+ version?: string | undefined;
3115
+ startedAt?: Date | undefined;
3116
+ finishedAt?: Date | undefined;
3117
+ delayedUntil?: Date | undefined;
3118
+ ttl?: string | undefined;
3119
+ expiredAt?: Date | undefined;
3120
+ } | undefined;
3121
+ children?: {
3122
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3123
+ id: string;
3124
+ updatedAt: Date;
3125
+ isTest: boolean;
3126
+ createdAt: Date;
3127
+ tags: string[];
3128
+ durationMs: number;
3129
+ costInCents: number;
3130
+ baseCostInCents: number;
3131
+ depth: number;
3132
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3133
+ taskIdentifier: string;
3134
+ isQueued: boolean;
3135
+ isExecuting: boolean;
3136
+ isCompleted: boolean;
3137
+ isSuccess: boolean;
3138
+ isFailed: boolean;
3139
+ isCancelled: boolean;
3140
+ batchId?: string | undefined;
3141
+ idempotencyKey?: string | undefined;
3142
+ version?: string | undefined;
3143
+ startedAt?: Date | undefined;
3144
+ finishedAt?: Date | undefined;
3145
+ delayedUntil?: Date | undefined;
3146
+ ttl?: string | undefined;
3147
+ expiredAt?: Date | undefined;
3148
+ }[] | undefined;
3149
+ }>;
2624
3150
  attempts: z.ZodArray<z.ZodOptional<z.ZodObject<{
2625
3151
  id: z.ZodString;
2626
3152
  status: z.ZodEnum<["PENDING", "EXECUTING", "PAUSED", "COMPLETED", "FAILED", "CANCELED"]>;
@@ -2666,6 +3192,9 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2666
3192
  stackTrace?: string | undefined;
2667
3193
  } | undefined;
2668
3194
  }>>, "many">;
3195
+ depth: z.ZodNumber;
3196
+ triggerFunction: z.ZodEnum<["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]>;
3197
+ batchId: z.ZodOptional<z.ZodString>;
2669
3198
  id: z.ZodString;
2670
3199
  status: z.ZodEnum<["WAITING_FOR_DEPLOY", "QUEUED", "EXECUTING", "REATTEMPTING", "FROZEN", "COMPLETED", "CANCELED", "FAILED", "CRASHED", "INTERRUPTED", "SYSTEM_FAILURE", "DELAYED", "EXPIRED"]>;
2671
3200
  taskIdentifier: z.ZodString;
@@ -2712,6 +3241,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2712
3241
  durationMs: number;
2713
3242
  costInCents: number;
2714
3243
  baseCostInCents: number;
3244
+ depth: number;
3245
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2715
3246
  taskIdentifier: string;
2716
3247
  isQueued: boolean;
2717
3248
  isExecuting: boolean;
@@ -2719,6 +3250,92 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2719
3250
  isSuccess: boolean;
2720
3251
  isFailed: boolean;
2721
3252
  isCancelled: boolean;
3253
+ relatedRuns: {
3254
+ root?: {
3255
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3256
+ id: string;
3257
+ updatedAt: Date;
3258
+ isTest: boolean;
3259
+ createdAt: Date;
3260
+ tags: string[];
3261
+ durationMs: number;
3262
+ costInCents: number;
3263
+ baseCostInCents: number;
3264
+ depth: number;
3265
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3266
+ taskIdentifier: string;
3267
+ isQueued: boolean;
3268
+ isExecuting: boolean;
3269
+ isCompleted: boolean;
3270
+ isSuccess: boolean;
3271
+ isFailed: boolean;
3272
+ isCancelled: boolean;
3273
+ batchId?: string | undefined;
3274
+ idempotencyKey?: string | undefined;
3275
+ version?: string | undefined;
3276
+ startedAt?: Date | undefined;
3277
+ finishedAt?: Date | undefined;
3278
+ delayedUntil?: Date | undefined;
3279
+ ttl?: string | undefined;
3280
+ expiredAt?: Date | undefined;
3281
+ } | undefined;
3282
+ parent?: {
3283
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3284
+ id: string;
3285
+ updatedAt: Date;
3286
+ isTest: boolean;
3287
+ createdAt: Date;
3288
+ tags: string[];
3289
+ durationMs: number;
3290
+ costInCents: number;
3291
+ baseCostInCents: number;
3292
+ depth: number;
3293
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3294
+ taskIdentifier: string;
3295
+ isQueued: boolean;
3296
+ isExecuting: boolean;
3297
+ isCompleted: boolean;
3298
+ isSuccess: boolean;
3299
+ isFailed: boolean;
3300
+ isCancelled: boolean;
3301
+ batchId?: string | undefined;
3302
+ idempotencyKey?: string | undefined;
3303
+ version?: string | undefined;
3304
+ startedAt?: Date | undefined;
3305
+ finishedAt?: Date | undefined;
3306
+ delayedUntil?: Date | undefined;
3307
+ ttl?: string | undefined;
3308
+ expiredAt?: Date | undefined;
3309
+ } | undefined;
3310
+ children?: {
3311
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3312
+ id: string;
3313
+ updatedAt: Date;
3314
+ isTest: boolean;
3315
+ createdAt: Date;
3316
+ tags: string[];
3317
+ durationMs: number;
3318
+ costInCents: number;
3319
+ baseCostInCents: number;
3320
+ depth: number;
3321
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3322
+ taskIdentifier: string;
3323
+ isQueued: boolean;
3324
+ isExecuting: boolean;
3325
+ isCompleted: boolean;
3326
+ isSuccess: boolean;
3327
+ isFailed: boolean;
3328
+ isCancelled: boolean;
3329
+ batchId?: string | undefined;
3330
+ idempotencyKey?: string | undefined;
3331
+ version?: string | undefined;
3332
+ startedAt?: Date | undefined;
3333
+ finishedAt?: Date | undefined;
3334
+ delayedUntil?: Date | undefined;
3335
+ ttl?: string | undefined;
3336
+ expiredAt?: Date | undefined;
3337
+ }[] | undefined;
3338
+ };
2722
3339
  payload?: any;
2723
3340
  payloadPresignedUrl?: string | undefined;
2724
3341
  output?: any;
@@ -2733,6 +3350,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2733
3350
  externalId?: string | undefined;
2734
3351
  deduplicationKey?: string | undefined;
2735
3352
  } | undefined;
3353
+ batchId?: string | undefined;
2736
3354
  idempotencyKey?: string | undefined;
2737
3355
  version?: string | undefined;
2738
3356
  startedAt?: Date | undefined;
@@ -2763,6 +3381,8 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2763
3381
  durationMs: number;
2764
3382
  costInCents: number;
2765
3383
  baseCostInCents: number;
3384
+ depth: number;
3385
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
2766
3386
  taskIdentifier: string;
2767
3387
  isQueued: boolean;
2768
3388
  isExecuting: boolean;
@@ -2770,6 +3390,92 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2770
3390
  isSuccess: boolean;
2771
3391
  isFailed: boolean;
2772
3392
  isCancelled: boolean;
3393
+ relatedRuns: {
3394
+ root?: {
3395
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3396
+ id: string;
3397
+ updatedAt: Date;
3398
+ isTest: boolean;
3399
+ createdAt: Date;
3400
+ tags: string[];
3401
+ durationMs: number;
3402
+ costInCents: number;
3403
+ baseCostInCents: number;
3404
+ depth: number;
3405
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3406
+ taskIdentifier: string;
3407
+ isQueued: boolean;
3408
+ isExecuting: boolean;
3409
+ isCompleted: boolean;
3410
+ isSuccess: boolean;
3411
+ isFailed: boolean;
3412
+ isCancelled: boolean;
3413
+ batchId?: string | undefined;
3414
+ idempotencyKey?: string | undefined;
3415
+ version?: string | undefined;
3416
+ startedAt?: Date | undefined;
3417
+ finishedAt?: Date | undefined;
3418
+ delayedUntil?: Date | undefined;
3419
+ ttl?: string | undefined;
3420
+ expiredAt?: Date | undefined;
3421
+ } | undefined;
3422
+ parent?: {
3423
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3424
+ id: string;
3425
+ updatedAt: Date;
3426
+ isTest: boolean;
3427
+ createdAt: Date;
3428
+ tags: string[];
3429
+ durationMs: number;
3430
+ costInCents: number;
3431
+ baseCostInCents: number;
3432
+ depth: number;
3433
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3434
+ taskIdentifier: string;
3435
+ isQueued: boolean;
3436
+ isExecuting: boolean;
3437
+ isCompleted: boolean;
3438
+ isSuccess: boolean;
3439
+ isFailed: boolean;
3440
+ isCancelled: boolean;
3441
+ batchId?: string | undefined;
3442
+ idempotencyKey?: string | undefined;
3443
+ version?: string | undefined;
3444
+ startedAt?: Date | undefined;
3445
+ finishedAt?: Date | undefined;
3446
+ delayedUntil?: Date | undefined;
3447
+ ttl?: string | undefined;
3448
+ expiredAt?: Date | undefined;
3449
+ } | undefined;
3450
+ children?: {
3451
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
3452
+ id: string;
3453
+ updatedAt: Date;
3454
+ isTest: boolean;
3455
+ createdAt: Date;
3456
+ tags: string[];
3457
+ durationMs: number;
3458
+ costInCents: number;
3459
+ baseCostInCents: number;
3460
+ depth: number;
3461
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
3462
+ taskIdentifier: string;
3463
+ isQueued: boolean;
3464
+ isExecuting: boolean;
3465
+ isCompleted: boolean;
3466
+ isSuccess: boolean;
3467
+ isFailed: boolean;
3468
+ isCancelled: boolean;
3469
+ batchId?: string | undefined;
3470
+ idempotencyKey?: string | undefined;
3471
+ version?: string | undefined;
3472
+ startedAt?: Date | undefined;
3473
+ finishedAt?: Date | undefined;
3474
+ delayedUntil?: Date | undefined;
3475
+ ttl?: string | undefined;
3476
+ expiredAt?: Date | undefined;
3477
+ }[] | undefined;
3478
+ };
2773
3479
  payload?: any;
2774
3480
  payloadPresignedUrl?: string | undefined;
2775
3481
  output?: any;
@@ -2784,6 +3490,7 @@ export declare const RetrieveRunResponse: z.ZodObject<{
2784
3490
  externalId?: string | undefined;
2785
3491
  deduplicationKey?: string | undefined;
2786
3492
  } | undefined;
3493
+ batchId?: string | undefined;
2787
3494
  idempotencyKey?: string | undefined;
2788
3495
  version?: string | undefined;
2789
3496
  startedAt?: Date | undefined;