@trigger.dev/core 3.0.5 → 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.
@@ -55,6 +55,8 @@ export declare class ApiClient {
55
55
  durationMs: number;
56
56
  costInCents: number;
57
57
  baseCostInCents: number;
58
+ depth: number;
59
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
58
60
  taskIdentifier: string;
59
61
  isQueued: boolean;
60
62
  isExecuting: boolean;
@@ -62,6 +64,92 @@ export declare class ApiClient {
62
64
  isSuccess: boolean;
63
65
  isFailed: boolean;
64
66
  isCancelled: boolean;
67
+ relatedRuns: {
68
+ root?: {
69
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
70
+ id: string;
71
+ updatedAt: Date;
72
+ isTest: boolean;
73
+ createdAt: Date;
74
+ tags: string[];
75
+ durationMs: number;
76
+ costInCents: number;
77
+ baseCostInCents: number;
78
+ depth: number;
79
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
80
+ taskIdentifier: string;
81
+ isQueued: boolean;
82
+ isExecuting: boolean;
83
+ isCompleted: boolean;
84
+ isSuccess: boolean;
85
+ isFailed: boolean;
86
+ isCancelled: boolean;
87
+ batchId?: string | undefined;
88
+ idempotencyKey?: string | undefined;
89
+ version?: string | undefined;
90
+ startedAt?: Date | undefined;
91
+ finishedAt?: Date | undefined;
92
+ delayedUntil?: Date | undefined;
93
+ ttl?: string | undefined;
94
+ expiredAt?: Date | undefined;
95
+ } | undefined;
96
+ parent?: {
97
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
98
+ id: string;
99
+ updatedAt: Date;
100
+ isTest: boolean;
101
+ createdAt: Date;
102
+ tags: string[];
103
+ durationMs: number;
104
+ costInCents: number;
105
+ baseCostInCents: number;
106
+ depth: number;
107
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
108
+ taskIdentifier: string;
109
+ isQueued: boolean;
110
+ isExecuting: boolean;
111
+ isCompleted: boolean;
112
+ isSuccess: boolean;
113
+ isFailed: boolean;
114
+ isCancelled: boolean;
115
+ batchId?: string | undefined;
116
+ idempotencyKey?: string | undefined;
117
+ version?: string | undefined;
118
+ startedAt?: Date | undefined;
119
+ finishedAt?: Date | undefined;
120
+ delayedUntil?: Date | undefined;
121
+ ttl?: string | undefined;
122
+ expiredAt?: Date | undefined;
123
+ } | undefined;
124
+ children?: {
125
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
126
+ id: string;
127
+ updatedAt: Date;
128
+ isTest: boolean;
129
+ createdAt: Date;
130
+ tags: string[];
131
+ durationMs: number;
132
+ costInCents: number;
133
+ baseCostInCents: number;
134
+ depth: number;
135
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
136
+ taskIdentifier: string;
137
+ isQueued: boolean;
138
+ isExecuting: boolean;
139
+ isCompleted: boolean;
140
+ isSuccess: boolean;
141
+ isFailed: boolean;
142
+ isCancelled: boolean;
143
+ batchId?: string | undefined;
144
+ idempotencyKey?: string | undefined;
145
+ version?: string | undefined;
146
+ startedAt?: Date | undefined;
147
+ finishedAt?: Date | undefined;
148
+ delayedUntil?: Date | undefined;
149
+ ttl?: string | undefined;
150
+ expiredAt?: Date | undefined;
151
+ }[] | undefined;
152
+ };
65
153
  payload?: any;
66
154
  payloadPresignedUrl?: string | undefined;
67
155
  output?: any;
@@ -76,6 +164,7 @@ export declare class ApiClient {
76
164
  externalId?: string | undefined;
77
165
  deduplicationKey?: string | undefined;
78
166
  } | undefined;
167
+ batchId?: string | undefined;
79
168
  idempotencyKey?: string | undefined;
80
169
  version?: string | undefined;
81
170
  startedAt?: Date | undefined;
@@ -115,6 +204,8 @@ export declare class ApiClient {
115
204
  durationMs: number;
116
205
  costInCents: number;
117
206
  baseCostInCents: number;
207
+ depth: number;
208
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
118
209
  taskIdentifier: string;
119
210
  isQueued: boolean;
120
211
  isExecuting: boolean;
@@ -122,6 +213,92 @@ export declare class ApiClient {
122
213
  isSuccess: boolean;
123
214
  isFailed: boolean;
124
215
  isCancelled: boolean;
216
+ relatedRuns: {
217
+ root?: {
218
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
219
+ id: string;
220
+ updatedAt: Date;
221
+ isTest: boolean;
222
+ createdAt: Date;
223
+ tags: string[];
224
+ durationMs: number;
225
+ costInCents: number;
226
+ baseCostInCents: number;
227
+ depth: number;
228
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
229
+ taskIdentifier: string;
230
+ isQueued: boolean;
231
+ isExecuting: boolean;
232
+ isCompleted: boolean;
233
+ isSuccess: boolean;
234
+ isFailed: boolean;
235
+ isCancelled: boolean;
236
+ batchId?: string | undefined;
237
+ idempotencyKey?: string | undefined;
238
+ version?: string | undefined;
239
+ startedAt?: Date | undefined;
240
+ finishedAt?: Date | undefined;
241
+ delayedUntil?: Date | undefined;
242
+ ttl?: string | undefined;
243
+ expiredAt?: Date | undefined;
244
+ } | undefined;
245
+ parent?: {
246
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
247
+ id: string;
248
+ updatedAt: Date;
249
+ isTest: boolean;
250
+ createdAt: Date;
251
+ tags: string[];
252
+ durationMs: number;
253
+ costInCents: number;
254
+ baseCostInCents: number;
255
+ depth: number;
256
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
257
+ taskIdentifier: string;
258
+ isQueued: boolean;
259
+ isExecuting: boolean;
260
+ isCompleted: boolean;
261
+ isSuccess: boolean;
262
+ isFailed: boolean;
263
+ isCancelled: boolean;
264
+ batchId?: string | undefined;
265
+ idempotencyKey?: string | undefined;
266
+ version?: string | undefined;
267
+ startedAt?: Date | undefined;
268
+ finishedAt?: Date | undefined;
269
+ delayedUntil?: Date | undefined;
270
+ ttl?: string | undefined;
271
+ expiredAt?: Date | undefined;
272
+ } | undefined;
273
+ children?: {
274
+ status: "COMPLETED" | "CANCELED" | "QUEUED" | "EXECUTING" | "FAILED" | "WAITING_FOR_DEPLOY" | "REATTEMPTING" | "FROZEN" | "CRASHED" | "INTERRUPTED" | "SYSTEM_FAILURE" | "DELAYED" | "EXPIRED";
275
+ id: string;
276
+ updatedAt: Date;
277
+ isTest: boolean;
278
+ createdAt: Date;
279
+ tags: string[];
280
+ durationMs: number;
281
+ costInCents: number;
282
+ baseCostInCents: number;
283
+ depth: number;
284
+ triggerFunction: "trigger" | "triggerAndWait" | "batchTriggerAndWait" | "batchTrigger";
285
+ taskIdentifier: string;
286
+ isQueued: boolean;
287
+ isExecuting: boolean;
288
+ isCompleted: boolean;
289
+ isSuccess: boolean;
290
+ isFailed: boolean;
291
+ isCancelled: boolean;
292
+ batchId?: string | undefined;
293
+ idempotencyKey?: string | undefined;
294
+ version?: string | undefined;
295
+ startedAt?: Date | undefined;
296
+ finishedAt?: Date | undefined;
297
+ delayedUntil?: Date | undefined;
298
+ ttl?: string | undefined;
299
+ expiredAt?: Date | undefined;
300
+ }[] | undefined;
301
+ };
125
302
  payload?: any;
126
303
  payloadPresignedUrl?: string | undefined;
127
304
  output?: any;
@@ -136,6 +313,7 @@ export declare class ApiClient {
136
313
  externalId?: string | undefined;
137
314
  deduplicationKey?: string | undefined;
138
315
  } | undefined;
316
+ batchId?: string | undefined;
139
317
  idempotencyKey?: string | undefined;
140
318
  version?: string | undefined;
141
319
  startedAt?: Date | undefined;