@trigger.dev/sdk 0.0.0-prerelease-20240905123715 → 0.0.0-prerelease-20240911144933

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.
@@ -42,14 +42,10 @@ export declare class ApiClient {
42
42
  }): Promise<VersionedResponseBody<{
43
43
  "2023-09-29": z.ZodObject<{
44
44
  task: z.ZodObject<{
45
- id: z.ZodString;
46
- name: z.ZodString;
47
- params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
48
45
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
49
46
  error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
50
- delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
51
- icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
52
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
47
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
48
+ id: z.ZodString;
53
49
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
54
50
  label: z.ZodString;
55
51
  text: z.ZodString;
@@ -66,6 +62,15 @@ export declare class ApiClient {
66
62
  url?: string | undefined;
67
63
  imageUrl?: string[] | undefined;
68
64
  }>, "many">>>;
65
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
66
+ name: z.ZodString;
67
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
69
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
70
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
71
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
72
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
73
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
69
74
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
70
75
  style: z.ZodEnum<["normal", "minimal"]>;
71
76
  variant: z.ZodOptional<z.ZodString>;
@@ -78,8 +83,6 @@ export declare class ApiClient {
78
83
  }>>>;
79
84
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
80
85
  noop: z.ZodBoolean;
81
- startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
82
- completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
83
86
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
84
87
  label: z.ZodString;
85
88
  text: z.ZodString;
@@ -96,86 +99,83 @@ export declare class ApiClient {
96
99
  url?: string | undefined;
97
100
  imageUrl?: string[] | undefined;
98
101
  }>, "many">>>;
99
- output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
100
- context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
101
102
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
102
- callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
103
103
  childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
104
104
  idempotencyKey: z.ZodString;
105
105
  attempts: z.ZodNumber;
106
106
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
108
109
  id: string;
109
110
  name: string;
110
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
111
- noop: boolean;
112
111
  idempotencyKey: string;
112
+ noop: boolean;
113
113
  attempts: number;
114
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
115
114
  error?: string | null | undefined;
116
- delayUntil?: Date | null | undefined;
117
- icon?: string | null | undefined;
118
- description?: string | null | undefined;
115
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
119
116
  properties?: {
120
117
  label: string;
121
118
  text: string;
122
119
  url?: string | undefined;
123
120
  imageUrl?: string[] | undefined;
124
121
  }[] | null | undefined;
122
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
123
+ icon?: string | null | undefined;
124
+ callbackUrl?: string | null | undefined;
125
+ startedAt?: Date | null | undefined;
126
+ completedAt?: Date | null | undefined;
127
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
128
+ description?: string | null | undefined;
129
+ delayUntil?: Date | null | undefined;
125
130
  style?: {
126
131
  style: "normal" | "minimal";
127
132
  variant?: string | undefined;
128
133
  } | null | undefined;
129
134
  operation?: string | null | undefined;
130
- startedAt?: Date | null | undefined;
131
- completedAt?: Date | null | undefined;
132
135
  outputProperties?: {
133
136
  label: string;
134
137
  text: string;
135
138
  url?: string | undefined;
136
139
  imageUrl?: string[] | undefined;
137
140
  }[] | null | undefined;
138
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
139
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
140
141
  parentId?: string | null | undefined;
141
- callbackUrl?: string | null | undefined;
142
142
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
143
143
  forceYield?: boolean | null | undefined;
144
144
  }, {
145
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
145
146
  id: string;
146
147
  name: string;
147
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
148
- noop: boolean;
149
148
  idempotencyKey: string;
149
+ noop: boolean;
150
150
  attempts: number;
151
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
152
151
  error?: string | null | undefined;
153
- delayUntil?: Date | null | undefined;
154
- icon?: string | null | undefined;
155
- description?: string | null | undefined;
152
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
156
153
  properties?: {
157
154
  label: string;
158
155
  text: string;
159
156
  url?: string | undefined;
160
157
  imageUrl?: string[] | undefined;
161
158
  }[] | null | undefined;
159
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
160
+ icon?: string | null | undefined;
161
+ callbackUrl?: string | null | undefined;
162
+ startedAt?: Date | null | undefined;
163
+ completedAt?: Date | null | undefined;
164
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
165
+ description?: string | null | undefined;
166
+ delayUntil?: Date | null | undefined;
162
167
  style?: {
163
168
  style: "normal" | "minimal";
164
169
  variant?: string | undefined;
165
170
  } | null | undefined;
166
171
  operation?: string | null | undefined;
167
- startedAt?: Date | null | undefined;
168
- completedAt?: Date | null | undefined;
169
172
  outputProperties?: {
170
173
  label: string;
171
174
  text: string;
172
175
  url?: string | undefined;
173
176
  imageUrl?: string[] | undefined;
174
177
  }[] | null | undefined;
175
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
176
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
177
178
  parentId?: string | null | undefined;
178
- callbackUrl?: string | null | undefined;
179
179
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
180
180
  forceYield?: boolean | null | undefined;
181
181
  }>;
@@ -188,15 +188,15 @@ export declare class ApiClient {
188
188
  output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
189
189
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
190
190
  }, "strip", z.ZodTypeAny, {
191
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
191
192
  id: string;
192
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
193
- noop: boolean;
194
193
  idempotencyKey: string;
194
+ noop: boolean;
195
195
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
196
196
  parentId?: string | null | undefined;
197
197
  }, {
198
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
198
199
  id: string;
199
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
200
200
  idempotencyKey: string;
201
201
  noop?: boolean | undefined;
202
202
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -205,18 +205,18 @@ export declare class ApiClient {
205
205
  cursor: z.ZodOptional<z.ZodString>;
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  tasks: {
208
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
208
209
  id: string;
209
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
210
- noop: boolean;
211
210
  idempotencyKey: string;
211
+ noop: boolean;
212
212
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
213
213
  parentId?: string | null | undefined;
214
214
  }[];
215
215
  cursor?: string | undefined;
216
216
  }, {
217
217
  tasks: {
218
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
218
219
  id: string;
219
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
220
220
  idempotencyKey: string;
221
221
  noop?: boolean | undefined;
222
222
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -226,49 +226,49 @@ export declare class ApiClient {
226
226
  }>>;
227
227
  }, "strip", z.ZodTypeAny, {
228
228
  task: {
229
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
229
230
  id: string;
230
231
  name: string;
231
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
232
- noop: boolean;
233
232
  idempotencyKey: string;
233
+ noop: boolean;
234
234
  attempts: number;
235
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
236
235
  error?: string | null | undefined;
237
- delayUntil?: Date | null | undefined;
238
- icon?: string | null | undefined;
239
- description?: string | null | undefined;
236
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
240
237
  properties?: {
241
238
  label: string;
242
239
  text: string;
243
240
  url?: string | undefined;
244
241
  imageUrl?: string[] | undefined;
245
242
  }[] | null | undefined;
243
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
244
+ icon?: string | null | undefined;
245
+ callbackUrl?: string | null | undefined;
246
+ startedAt?: Date | null | undefined;
247
+ completedAt?: Date | null | undefined;
248
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
249
+ description?: string | null | undefined;
250
+ delayUntil?: Date | null | undefined;
246
251
  style?: {
247
252
  style: "normal" | "minimal";
248
253
  variant?: string | undefined;
249
254
  } | null | undefined;
250
255
  operation?: string | null | undefined;
251
- startedAt?: Date | null | undefined;
252
- completedAt?: Date | null | undefined;
253
256
  outputProperties?: {
254
257
  label: string;
255
258
  text: string;
256
259
  url?: string | undefined;
257
260
  imageUrl?: string[] | undefined;
258
261
  }[] | null | undefined;
259
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
260
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
261
262
  parentId?: string | null | undefined;
262
- callbackUrl?: string | null | undefined;
263
263
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
264
264
  forceYield?: boolean | null | undefined;
265
265
  };
266
266
  cachedTasks?: {
267
267
  tasks: {
268
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
268
269
  id: string;
269
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
270
- noop: boolean;
271
270
  idempotencyKey: string;
271
+ noop: boolean;
272
272
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
273
273
  parentId?: string | null | undefined;
274
274
  }[];
@@ -276,47 +276,47 @@ export declare class ApiClient {
276
276
  } | undefined;
277
277
  }, {
278
278
  task: {
279
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
279
280
  id: string;
280
281
  name: string;
281
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
282
- noop: boolean;
283
282
  idempotencyKey: string;
283
+ noop: boolean;
284
284
  attempts: number;
285
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
286
285
  error?: string | null | undefined;
287
- delayUntil?: Date | null | undefined;
288
- icon?: string | null | undefined;
289
- description?: string | null | undefined;
286
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
290
287
  properties?: {
291
288
  label: string;
292
289
  text: string;
293
290
  url?: string | undefined;
294
291
  imageUrl?: string[] | undefined;
295
292
  }[] | null | undefined;
293
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
294
+ icon?: string | null | undefined;
295
+ callbackUrl?: string | null | undefined;
296
+ startedAt?: Date | null | undefined;
297
+ completedAt?: Date | null | undefined;
298
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
299
+ description?: string | null | undefined;
300
+ delayUntil?: Date | null | undefined;
296
301
  style?: {
297
302
  style: "normal" | "minimal";
298
303
  variant?: string | undefined;
299
304
  } | null | undefined;
300
305
  operation?: string | null | undefined;
301
- startedAt?: Date | null | undefined;
302
- completedAt?: Date | null | undefined;
303
306
  outputProperties?: {
304
307
  label: string;
305
308
  text: string;
306
309
  url?: string | undefined;
307
310
  imageUrl?: string[] | undefined;
308
311
  }[] | null | undefined;
309
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
310
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
311
312
  parentId?: string | null | undefined;
312
- callbackUrl?: string | null | undefined;
313
313
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
314
314
  forceYield?: boolean | null | undefined;
315
315
  };
316
316
  cachedTasks?: {
317
317
  tasks: {
318
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
318
319
  id: string;
319
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
320
320
  idempotencyKey: string;
321
321
  noop?: boolean | undefined;
322
322
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
@@ -326,14 +326,10 @@ export declare class ApiClient {
326
326
  } | undefined;
327
327
  }>;
328
328
  }, z.ZodObject<{
329
- id: z.ZodString;
330
- name: z.ZodString;
331
- params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
332
329
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
333
330
  error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
334
- delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
335
- icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
336
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
331
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
332
+ id: z.ZodString;
337
333
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
338
334
  label: z.ZodString;
339
335
  text: z.ZodString;
@@ -350,6 +346,15 @@ export declare class ApiClient {
350
346
  url?: string | undefined;
351
347
  imageUrl?: string[] | undefined;
352
348
  }>, "many">>>;
349
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
350
+ name: z.ZodString;
351
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
352
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
353
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
354
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
355
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
356
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
357
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
353
358
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
354
359
  style: z.ZodEnum<["normal", "minimal"]>;
355
360
  variant: z.ZodOptional<z.ZodString>;
@@ -362,8 +367,6 @@ export declare class ApiClient {
362
367
  }>>>;
363
368
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
369
  noop: z.ZodBoolean;
365
- startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
366
- completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
367
370
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
368
371
  label: z.ZodString;
369
372
  text: z.ZodString;
@@ -380,173 +383,170 @@ export declare class ApiClient {
380
383
  url?: string | undefined;
381
384
  imageUrl?: string[] | undefined;
382
385
  }>, "many">>>;
383
- output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
384
- context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
385
386
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
386
- callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
387
387
  childExecutionMode: z.ZodNullable<z.ZodOptional<z.ZodEnum<["SEQUENTIAL", "PARALLEL"]>>>;
388
388
  idempotencyKey: z.ZodString;
389
389
  attempts: z.ZodNumber;
390
390
  forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
391
391
  }, "strip", z.ZodTypeAny, {
392
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
392
393
  id: string;
393
394
  name: string;
394
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
395
- noop: boolean;
396
395
  idempotencyKey: string;
396
+ noop: boolean;
397
397
  attempts: number;
398
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
399
398
  error?: string | null | undefined;
400
- delayUntil?: Date | null | undefined;
401
- icon?: string | null | undefined;
402
- description?: string | null | undefined;
399
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
403
400
  properties?: {
404
401
  label: string;
405
402
  text: string;
406
403
  url?: string | undefined;
407
404
  imageUrl?: string[] | undefined;
408
405
  }[] | null | undefined;
406
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
407
+ icon?: string | null | undefined;
408
+ callbackUrl?: string | null | undefined;
409
+ startedAt?: Date | null | undefined;
410
+ completedAt?: Date | null | undefined;
411
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
412
+ description?: string | null | undefined;
413
+ delayUntil?: Date | null | undefined;
409
414
  style?: {
410
415
  style: "normal" | "minimal";
411
416
  variant?: string | undefined;
412
417
  } | null | undefined;
413
418
  operation?: string | null | undefined;
414
- startedAt?: Date | null | undefined;
415
- completedAt?: Date | null | undefined;
416
419
  outputProperties?: {
417
420
  label: string;
418
421
  text: string;
419
422
  url?: string | undefined;
420
423
  imageUrl?: string[] | undefined;
421
424
  }[] | null | undefined;
422
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
423
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
424
425
  parentId?: string | null | undefined;
425
- callbackUrl?: string | null | undefined;
426
426
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
427
427
  forceYield?: boolean | null | undefined;
428
428
  }, {
429
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
429
430
  id: string;
430
431
  name: string;
431
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
432
- noop: boolean;
433
432
  idempotencyKey: string;
433
+ noop: boolean;
434
434
  attempts: number;
435
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
436
435
  error?: string | null | undefined;
437
- delayUntil?: Date | null | undefined;
438
- icon?: string | null | undefined;
439
- description?: string | null | undefined;
436
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
440
437
  properties?: {
441
438
  label: string;
442
439
  text: string;
443
440
  url?: string | undefined;
444
441
  imageUrl?: string[] | undefined;
445
442
  }[] | null | undefined;
443
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
444
+ icon?: string | null | undefined;
445
+ callbackUrl?: string | null | undefined;
446
+ startedAt?: Date | null | undefined;
447
+ completedAt?: Date | null | undefined;
448
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
449
+ description?: string | null | undefined;
450
+ delayUntil?: Date | null | undefined;
446
451
  style?: {
447
452
  style: "normal" | "minimal";
448
453
  variant?: string | undefined;
449
454
  } | null | undefined;
450
455
  operation?: string | null | undefined;
451
- startedAt?: Date | null | undefined;
452
- completedAt?: Date | null | undefined;
453
456
  outputProperties?: {
454
457
  label: string;
455
458
  text: string;
456
459
  url?: string | undefined;
457
460
  imageUrl?: string[] | undefined;
458
461
  }[] | null | undefined;
459
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
460
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
461
462
  parentId?: string | null | undefined;
462
- callbackUrl?: string | null | undefined;
463
463
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
464
464
  forceYield?: boolean | null | undefined;
465
465
  }>>>;
466
466
  completeTask(runId: string, id: string, task: CompleteTaskBodyV2Input): Promise<{
467
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
467
468
  id: string;
468
469
  name: string;
469
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
470
- noop: boolean;
471
470
  idempotencyKey: string;
471
+ noop: boolean;
472
472
  attempts: number;
473
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
474
473
  error?: string | null | undefined;
475
- delayUntil?: Date | null | undefined;
476
- icon?: string | null | undefined;
477
- description?: string | null | undefined;
474
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
478
475
  properties?: {
479
476
  label: string;
480
477
  text: string;
481
478
  url?: string | undefined;
482
479
  imageUrl?: string[] | undefined;
483
480
  }[] | null | undefined;
481
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
482
+ icon?: string | null | undefined;
483
+ callbackUrl?: string | null | undefined;
484
+ startedAt?: Date | null | undefined;
485
+ completedAt?: Date | null | undefined;
486
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
487
+ description?: string | null | undefined;
488
+ delayUntil?: Date | null | undefined;
484
489
  style?: {
485
490
  style: "normal" | "minimal";
486
491
  variant?: string | undefined;
487
492
  } | null | undefined;
488
493
  operation?: string | null | undefined;
489
- startedAt?: Date | null | undefined;
490
- completedAt?: Date | null | undefined;
491
494
  outputProperties?: {
492
495
  label: string;
493
496
  text: string;
494
497
  url?: string | undefined;
495
498
  imageUrl?: string[] | undefined;
496
499
  }[] | null | undefined;
497
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
498
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
499
500
  parentId?: string | null | undefined;
500
- callbackUrl?: string | null | undefined;
501
501
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
502
502
  forceYield?: boolean | null | undefined;
503
503
  }>;
504
504
  failTask(runId: string, id: string, body: FailTaskBodyInput): Promise<{
505
+ status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
505
506
  id: string;
506
507
  name: string;
507
- status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
508
- noop: boolean;
509
508
  idempotencyKey: string;
509
+ noop: boolean;
510
510
  attempts: number;
511
- params?: import("@trigger.dev/core").DeserializedJson | undefined;
512
511
  error?: string | null | undefined;
513
- delayUntil?: Date | null | undefined;
514
- icon?: string | null | undefined;
515
- description?: string | null | undefined;
512
+ params?: import("@trigger.dev/core").DeserializedJson | undefined;
516
513
  properties?: {
517
514
  label: string;
518
515
  text: string;
519
516
  url?: string | undefined;
520
517
  imageUrl?: string[] | undefined;
521
518
  }[] | null | undefined;
519
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
520
+ icon?: string | null | undefined;
521
+ callbackUrl?: string | null | undefined;
522
+ startedAt?: Date | null | undefined;
523
+ completedAt?: Date | null | undefined;
524
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
525
+ description?: string | null | undefined;
526
+ delayUntil?: Date | null | undefined;
522
527
  style?: {
523
528
  style: "normal" | "minimal";
524
529
  variant?: string | undefined;
525
530
  } | null | undefined;
526
531
  operation?: string | null | undefined;
527
- startedAt?: Date | null | undefined;
528
- completedAt?: Date | null | undefined;
529
532
  outputProperties?: {
530
533
  label: string;
531
534
  text: string;
532
535
  url?: string | undefined;
533
536
  imageUrl?: string[] | undefined;
534
537
  }[] | null | undefined;
535
- output?: import("@trigger.dev/core").DeserializedJson | undefined;
536
- context?: import("@trigger.dev/core").DeserializedJson | undefined;
537
538
  parentId?: string | null | undefined;
538
- callbackUrl?: string | null | undefined;
539
539
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
540
540
  forceYield?: boolean | null | undefined;
541
541
  }>;
542
542
  sendEvent(event: SendEvent, options?: SendEventOptions): Promise<{
543
543
  id: string;
544
- name: string;
545
544
  payload: ((string | number | boolean | {
546
545
  [key: string]: import("@trigger.dev/core").DeserializedJson;
547
546
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
548
547
  [key: string]: import("@trigger.dev/core").DeserializedJson;
549
548
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
549
+ name: string;
550
550
  timestamp: Date;
551
551
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
552
552
  deliverAt?: Date | null | undefined;
@@ -555,12 +555,12 @@ export declare class ApiClient {
555
555
  }>;
556
556
  sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
557
557
  id: string;
558
- name: string;
559
558
  payload: ((string | number | boolean | {
560
559
  [key: string]: import("@trigger.dev/core").DeserializedJson;
561
560
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
562
561
  [key: string]: import("@trigger.dev/core").DeserializedJson;
563
562
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
563
+ name: string;
564
564
  timestamp: Date;
565
565
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
566
566
  deliverAt?: Date | null | undefined;
@@ -569,12 +569,12 @@ export declare class ApiClient {
569
569
  }[]>;
570
570
  cancelEvent(eventId: string): Promise<{
571
571
  id: string;
572
- name: string;
573
572
  payload: ((string | number | boolean | {
574
573
  [key: string]: import("@trigger.dev/core").DeserializedJson;
575
574
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
576
575
  [key: string]: import("@trigger.dev/core").DeserializedJson;
577
576
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
577
+ name: string;
578
578
  timestamp: Date;
579
579
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
580
580
  deliverAt?: Date | null | undefined;
@@ -602,17 +602,17 @@ export declare class ApiClient {
602
602
  registerSchedule(client: string, id: string, key: string, payload: ScheduleMetadata): Promise<{
603
603
  id: string;
604
604
  schedule: {
605
+ type: "interval";
605
606
  options: {
606
607
  seconds: number;
607
608
  };
608
- type: "interval";
609
609
  accountId?: string | undefined;
610
610
  metadata?: any;
611
611
  } | {
612
+ type: "cron";
612
613
  options: {
613
614
  cron: string;
614
615
  };
615
- type: "cron";
616
616
  accountId?: string | undefined;
617
617
  metadata?: any;
618
618
  };
@@ -631,20 +631,22 @@ export declare class ApiClient {
631
631
  getEvent(eventId: string): Promise<{
632
632
  id: string;
633
633
  name: string;
634
- updatedAt: Date;
635
634
  createdAt: Date;
635
+ updatedAt: Date;
636
636
  runs: {
637
+ status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
637
638
  id: string;
638
- status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
639
639
  startedAt?: Date | null | undefined;
640
640
  completedAt?: Date | null | undefined;
641
641
  }[];
642
642
  }>;
643
643
  getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{
644
+ status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
644
645
  id: string;
645
- status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
646
+ updatedAt: Date | null;
646
647
  startedAt: Date | null;
647
648
  completedAt: Date | null;
649
+ tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
648
650
  statuses: {
649
651
  label: string;
650
652
  key: string;
@@ -656,16 +658,16 @@ export declare class ApiClient {
656
658
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
657
659
  state?: "loading" | "success" | "failure" | undefined;
658
660
  }[];
659
- updatedAt: Date | null;
660
- tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
661
661
  output?: any;
662
662
  nextCursor?: string | undefined;
663
663
  }>;
664
664
  cancelRun(runId: string): Promise<{
665
+ status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
665
666
  id: string;
666
- status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
667
+ updatedAt: Date | null;
667
668
  startedAt: Date | null;
668
669
  completedAt: Date | null;
670
+ tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
669
671
  statuses: {
670
672
  label: string;
671
673
  key: string;
@@ -677,8 +679,6 @@ export declare class ApiClient {
677
679
  data?: Record<string, import("@trigger.dev/core").SerializableJson> | undefined;
678
680
  state?: "loading" | "success" | "failure" | undefined;
679
681
  }[];
680
- updatedAt: Date | null;
681
- tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
682
682
  output?: any;
683
683
  nextCursor?: string | undefined;
684
684
  }>;
@@ -695,18 +695,18 @@ export declare class ApiClient {
695
695
  state?: "loading" | "success" | "failure" | undefined;
696
696
  }[];
697
697
  run: {
698
+ status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
698
699
  id: string;
699
- status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
700
700
  output?: any;
701
701
  };
702
702
  }>;
703
703
  getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{
704
704
  runs: {
705
+ status: "SUCCESS" | "PENDING" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
705
706
  id: string;
706
- status: "PENDING" | "CANCELED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
707
+ updatedAt: Date | null;
707
708
  startedAt: Date | null;
708
709
  completedAt: Date | null;
709
- updatedAt: Date | null;
710
710
  }[];
711
711
  nextCursor?: string | undefined;
712
712
  }>;