@trigger.dev/sdk 0.0.0-prerelease-20240916154807 → 0.0.0-prerelease-20240917093030

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,10 +42,28 @@ export declare class ApiClient {
42
42
  }): Promise<VersionedResponseBody<{
43
43
  "2023-09-29": z.ZodObject<{
44
44
  task: z.ZodObject<{
45
+ name: z.ZodString;
46
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
45
47
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
46
48
  error: 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>>>;
49
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
48
50
  id: z.ZodString;
51
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
52
+ style: z.ZodEnum<["normal", "minimal"]>;
53
+ variant: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ style: "normal" | "minimal";
56
+ variant?: string | undefined;
57
+ }, {
58
+ style: "normal" | "minimal";
59
+ variant?: string | undefined;
60
+ }>>>;
61
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
+ noop: z.ZodBoolean;
63
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
64
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
65
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
66
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
49
67
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
50
68
  label: z.ZodString;
51
69
  text: z.ZodString;
@@ -62,27 +80,6 @@ export declare class ApiClient {
62
80
  url?: string | undefined;
63
81
  imageUrl?: string[] | undefined;
64
82
  }>, "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>>;
74
- style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
75
- style: z.ZodEnum<["normal", "minimal"]>;
76
- variant: z.ZodOptional<z.ZodString>;
77
- }, "strip", z.ZodTypeAny, {
78
- style: "normal" | "minimal";
79
- variant?: string | undefined;
80
- }, {
81
- style: "normal" | "minimal";
82
- variant?: string | undefined;
83
- }>>>;
84
- operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
- noop: z.ZodBoolean;
86
83
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
87
84
  label: z.ZodString;
88
85
  text: z.ZodString;
@@ -99,83 +96,86 @@ export declare class ApiClient {
99
96
  url?: string | undefined;
100
97
  imageUrl?: string[] | undefined;
101
98
  }>, "many">>>;
99
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
102
100
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
101
+ operation: 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";
109
- id: string;
110
108
  name: string;
111
- idempotencyKey: string;
109
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
110
+ id: string;
112
111
  noop: boolean;
112
+ idempotencyKey: string;
113
113
  attempts: number;
114
- error?: string | null | undefined;
115
114
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
115
+ error?: string | null | undefined;
116
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
117
+ style?: {
118
+ style: "normal" | "minimal";
119
+ variant?: string | undefined;
120
+ } | null | undefined;
121
+ icon?: string | null | undefined;
122
+ startedAt?: Date | null | undefined;
123
+ completedAt?: Date | null | undefined;
124
+ delayUntil?: Date | null | undefined;
125
+ description?: string | null | undefined;
116
126
  properties?: {
117
127
  label: string;
118
128
  text: string;
119
129
  url?: string | undefined;
120
130
  imageUrl?: string[] | undefined;
121
131
  }[] | 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;
130
- style?: {
131
- style: "normal" | "minimal";
132
- variant?: string | undefined;
133
- } | null | undefined;
134
- operation?: string | null | undefined;
135
132
  outputProperties?: {
136
133
  label: string;
137
134
  text: string;
138
135
  url?: string | undefined;
139
136
  imageUrl?: string[] | undefined;
140
137
  }[] | null | undefined;
138
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
141
139
  parentId?: string | null | undefined;
140
+ operation?: 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";
146
- id: string;
147
145
  name: string;
148
- idempotencyKey: string;
146
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
147
+ id: string;
149
148
  noop: boolean;
149
+ idempotencyKey: string;
150
150
  attempts: number;
151
- error?: string | null | undefined;
152
151
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
152
+ error?: string | null | undefined;
153
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
154
+ style?: {
155
+ style: "normal" | "minimal";
156
+ variant?: string | undefined;
157
+ } | null | undefined;
158
+ icon?: string | null | undefined;
159
+ startedAt?: Date | null | undefined;
160
+ completedAt?: Date | null | undefined;
161
+ delayUntil?: Date | null | undefined;
162
+ description?: string | null | undefined;
153
163
  properties?: {
154
164
  label: string;
155
165
  text: string;
156
166
  url?: string | undefined;
157
167
  imageUrl?: string[] | undefined;
158
168
  }[] | 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;
167
- style?: {
168
- style: "normal" | "minimal";
169
- variant?: string | undefined;
170
- } | null | undefined;
171
- operation?: string | null | undefined;
172
169
  outputProperties?: {
173
170
  label: string;
174
171
  text: string;
175
172
  url?: string | undefined;
176
173
  imageUrl?: string[] | undefined;
177
174
  }[] | null | undefined;
175
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
178
176
  parentId?: string | null | undefined;
177
+ operation?: string | null | undefined;
178
+ callbackUrl?: string | null | undefined;
179
179
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
180
180
  forceYield?: boolean | null | undefined;
181
181
  }>;
@@ -188,14 +188,14 @@ 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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
192
192
  id: string;
193
- idempotencyKey: string;
194
193
  noop: boolean;
194
+ idempotencyKey: string;
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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
199
199
  id: string;
200
200
  idempotencyKey: string;
201
201
  noop?: boolean | undefined;
@@ -205,17 +205,17 @@ 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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
209
209
  id: string;
210
- idempotencyKey: string;
211
210
  noop: boolean;
211
+ idempotencyKey: string;
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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
219
219
  id: string;
220
220
  idempotencyKey: string;
221
221
  noop?: boolean | 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";
230
- id: string;
231
229
  name: string;
232
- idempotencyKey: string;
230
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
231
+ id: string;
233
232
  noop: boolean;
233
+ idempotencyKey: string;
234
234
  attempts: number;
235
- error?: string | null | undefined;
236
235
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
236
+ error?: string | null | undefined;
237
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
238
+ style?: {
239
+ style: "normal" | "minimal";
240
+ variant?: string | undefined;
241
+ } | null | undefined;
242
+ icon?: string | null | undefined;
243
+ startedAt?: Date | null | undefined;
244
+ completedAt?: Date | null | undefined;
245
+ delayUntil?: Date | null | undefined;
246
+ description?: string | null | undefined;
237
247
  properties?: {
238
248
  label: string;
239
249
  text: string;
240
250
  url?: string | undefined;
241
251
  imageUrl?: string[] | undefined;
242
252
  }[] | 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;
251
- style?: {
252
- style: "normal" | "minimal";
253
- variant?: string | undefined;
254
- } | null | undefined;
255
- operation?: string | null | undefined;
256
253
  outputProperties?: {
257
254
  label: string;
258
255
  text: string;
259
256
  url?: string | undefined;
260
257
  imageUrl?: string[] | undefined;
261
258
  }[] | null | undefined;
259
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
262
260
  parentId?: string | null | undefined;
261
+ operation?: 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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
269
269
  id: string;
270
- idempotencyKey: string;
271
270
  noop: boolean;
271
+ idempotencyKey: string;
272
272
  output?: import("@trigger.dev/core").DeserializedJson | undefined;
273
273
  parentId?: string | null | undefined;
274
274
  }[];
@@ -276,46 +276,46 @@ export declare class ApiClient {
276
276
  } | undefined;
277
277
  }, {
278
278
  task: {
279
- status: "PENDING" | "CANCELED" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED";
280
- id: string;
281
279
  name: string;
282
- idempotencyKey: string;
280
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
281
+ id: string;
283
282
  noop: boolean;
283
+ idempotencyKey: string;
284
284
  attempts: number;
285
- error?: string | null | undefined;
286
285
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
286
+ error?: string | null | undefined;
287
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
288
+ style?: {
289
+ style: "normal" | "minimal";
290
+ variant?: string | undefined;
291
+ } | null | undefined;
292
+ icon?: string | null | undefined;
293
+ startedAt?: Date | null | undefined;
294
+ completedAt?: Date | null | undefined;
295
+ delayUntil?: Date | null | undefined;
296
+ description?: string | null | undefined;
287
297
  properties?: {
288
298
  label: string;
289
299
  text: string;
290
300
  url?: string | undefined;
291
301
  imageUrl?: string[] | undefined;
292
302
  }[] | 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;
301
- style?: {
302
- style: "normal" | "minimal";
303
- variant?: string | undefined;
304
- } | null | undefined;
305
- operation?: string | null | undefined;
306
303
  outputProperties?: {
307
304
  label: string;
308
305
  text: string;
309
306
  url?: string | undefined;
310
307
  imageUrl?: string[] | undefined;
311
308
  }[] | null | undefined;
309
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
312
310
  parentId?: string | null | undefined;
311
+ operation?: 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
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
319
319
  id: string;
320
320
  idempotencyKey: string;
321
321
  noop?: boolean | undefined;
@@ -326,10 +326,28 @@ export declare class ApiClient {
326
326
  } | undefined;
327
327
  }>;
328
328
  }, z.ZodObject<{
329
+ name: z.ZodString;
330
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
329
331
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
330
332
  error: 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>>>;
333
+ context: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
332
334
  id: z.ZodString;
335
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
336
+ style: z.ZodEnum<["normal", "minimal"]>;
337
+ variant: z.ZodOptional<z.ZodString>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ style: "normal" | "minimal";
340
+ variant?: string | undefined;
341
+ }, {
342
+ style: "normal" | "minimal";
343
+ variant?: string | undefined;
344
+ }>>>;
345
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
346
+ noop: z.ZodBoolean;
347
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
348
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
349
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
350
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
333
351
  properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
334
352
  label: z.ZodString;
335
353
  text: z.ZodString;
@@ -346,27 +364,6 @@ export declare class ApiClient {
346
364
  url?: string | undefined;
347
365
  imageUrl?: string[] | undefined;
348
366
  }>, "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>>;
358
- style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
359
- style: z.ZodEnum<["normal", "minimal"]>;
360
- variant: z.ZodOptional<z.ZodString>;
361
- }, "strip", z.ZodTypeAny, {
362
- style: "normal" | "minimal";
363
- variant?: string | undefined;
364
- }, {
365
- style: "normal" | "minimal";
366
- variant?: string | undefined;
367
- }>>>;
368
- operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
369
- noop: z.ZodBoolean;
370
367
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
371
368
  label: z.ZodString;
372
369
  text: z.ZodString;
@@ -383,170 +380,173 @@ export declare class ApiClient {
383
380
  url?: string | undefined;
384
381
  imageUrl?: string[] | undefined;
385
382
  }>, "many">>>;
383
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<import("@trigger.dev/core").DeserializedJson, z.ZodTypeDef, import("@trigger.dev/core").DeserializedJson>>>;
386
384
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
385
+ operation: 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";
393
- id: string;
394
392
  name: string;
395
- idempotencyKey: string;
393
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
394
+ id: string;
396
395
  noop: boolean;
396
+ idempotencyKey: string;
397
397
  attempts: number;
398
- error?: string | null | undefined;
399
398
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
399
+ error?: string | null | undefined;
400
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
401
+ style?: {
402
+ style: "normal" | "minimal";
403
+ variant?: string | undefined;
404
+ } | null | undefined;
405
+ icon?: string | null | undefined;
406
+ startedAt?: Date | null | undefined;
407
+ completedAt?: Date | null | undefined;
408
+ delayUntil?: Date | null | undefined;
409
+ description?: string | null | undefined;
400
410
  properties?: {
401
411
  label: string;
402
412
  text: string;
403
413
  url?: string | undefined;
404
414
  imageUrl?: string[] | undefined;
405
415
  }[] | 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;
414
- style?: {
415
- style: "normal" | "minimal";
416
- variant?: string | undefined;
417
- } | null | undefined;
418
- operation?: string | null | undefined;
419
416
  outputProperties?: {
420
417
  label: string;
421
418
  text: string;
422
419
  url?: string | undefined;
423
420
  imageUrl?: string[] | undefined;
424
421
  }[] | null | undefined;
422
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
425
423
  parentId?: string | null | undefined;
424
+ operation?: 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";
430
- id: string;
431
429
  name: string;
432
- idempotencyKey: string;
430
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
431
+ id: string;
433
432
  noop: boolean;
433
+ idempotencyKey: string;
434
434
  attempts: number;
435
- error?: string | null | undefined;
436
435
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
436
+ error?: string | null | undefined;
437
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
438
+ style?: {
439
+ style: "normal" | "minimal";
440
+ variant?: string | undefined;
441
+ } | null | undefined;
442
+ icon?: string | null | undefined;
443
+ startedAt?: Date | null | undefined;
444
+ completedAt?: Date | null | undefined;
445
+ delayUntil?: Date | null | undefined;
446
+ description?: string | null | undefined;
437
447
  properties?: {
438
448
  label: string;
439
449
  text: string;
440
450
  url?: string | undefined;
441
451
  imageUrl?: string[] | undefined;
442
452
  }[] | 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;
451
- style?: {
452
- style: "normal" | "minimal";
453
- variant?: string | undefined;
454
- } | null | undefined;
455
- operation?: string | null | undefined;
456
453
  outputProperties?: {
457
454
  label: string;
458
455
  text: string;
459
456
  url?: string | undefined;
460
457
  imageUrl?: string[] | undefined;
461
458
  }[] | null | undefined;
459
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
462
460
  parentId?: string | null | undefined;
461
+ operation?: 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";
468
- id: string;
469
467
  name: string;
470
- idempotencyKey: string;
468
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
469
+ id: string;
471
470
  noop: boolean;
471
+ idempotencyKey: string;
472
472
  attempts: number;
473
- error?: string | null | undefined;
474
473
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
474
+ error?: string | null | undefined;
475
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
476
+ style?: {
477
+ style: "normal" | "minimal";
478
+ variant?: string | undefined;
479
+ } | null | undefined;
480
+ icon?: string | null | undefined;
481
+ startedAt?: Date | null | undefined;
482
+ completedAt?: Date | null | undefined;
483
+ delayUntil?: Date | null | undefined;
484
+ description?: string | null | undefined;
475
485
  properties?: {
476
486
  label: string;
477
487
  text: string;
478
488
  url?: string | undefined;
479
489
  imageUrl?: string[] | undefined;
480
490
  }[] | 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;
489
- style?: {
490
- style: "normal" | "minimal";
491
- variant?: string | undefined;
492
- } | null | undefined;
493
- operation?: string | null | undefined;
494
491
  outputProperties?: {
495
492
  label: string;
496
493
  text: string;
497
494
  url?: string | undefined;
498
495
  imageUrl?: string[] | undefined;
499
496
  }[] | null | undefined;
497
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
500
498
  parentId?: string | null | undefined;
499
+ operation?: 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";
506
- id: string;
507
505
  name: string;
508
- idempotencyKey: string;
506
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
507
+ id: string;
509
508
  noop: boolean;
509
+ idempotencyKey: string;
510
510
  attempts: number;
511
- error?: string | null | undefined;
512
511
  params?: import("@trigger.dev/core").DeserializedJson | undefined;
512
+ error?: string | null | undefined;
513
+ context?: import("@trigger.dev/core").DeserializedJson | undefined;
514
+ style?: {
515
+ style: "normal" | "minimal";
516
+ variant?: string | undefined;
517
+ } | null | undefined;
518
+ icon?: string | null | undefined;
519
+ startedAt?: Date | null | undefined;
520
+ completedAt?: Date | null | undefined;
521
+ delayUntil?: Date | null | undefined;
522
+ description?: string | null | undefined;
513
523
  properties?: {
514
524
  label: string;
515
525
  text: string;
516
526
  url?: string | undefined;
517
527
  imageUrl?: string[] | undefined;
518
528
  }[] | 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;
527
- style?: {
528
- style: "normal" | "minimal";
529
- variant?: string | undefined;
530
- } | null | undefined;
531
- operation?: string | null | undefined;
532
529
  outputProperties?: {
533
530
  label: string;
534
531
  text: string;
535
532
  url?: string | undefined;
536
533
  imageUrl?: string[] | undefined;
537
534
  }[] | null | undefined;
535
+ output?: import("@trigger.dev/core").DeserializedJson | undefined;
538
536
  parentId?: string | null | undefined;
537
+ operation?: 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
- id: string;
543
+ name: string;
544
544
  payload: ((string | number | boolean | {
545
545
  [key: string]: import("@trigger.dev/core").DeserializedJson;
546
546
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
547
547
  [key: string]: import("@trigger.dev/core").DeserializedJson;
548
548
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
549
- name: string;
549
+ id: string;
550
550
  timestamp: Date;
551
551
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
552
552
  deliverAt?: Date | null | undefined;
@@ -554,13 +554,13 @@ export declare class ApiClient {
554
554
  cancelledAt?: Date | null | undefined;
555
555
  }>;
556
556
  sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{
557
- id: string;
557
+ name: string;
558
558
  payload: ((string | number | boolean | {
559
559
  [key: string]: import("@trigger.dev/core").DeserializedJson;
560
560
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
561
561
  [key: string]: import("@trigger.dev/core").DeserializedJson;
562
562
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
563
- name: string;
563
+ id: string;
564
564
  timestamp: Date;
565
565
  context?: import("@trigger.dev/core").DeserializedJson | undefined;
566
566
  deliverAt?: Date | null | undefined;
@@ -568,13 +568,13 @@ export declare class ApiClient {
568
568
  cancelledAt?: Date | null | undefined;
569
569
  }[]>;
570
570
  cancelEvent(eventId: string): Promise<{
571
- id: string;
571
+ name: string;
572
572
  payload: ((string | number | boolean | {
573
573
  [key: string]: import("@trigger.dev/core").DeserializedJson;
574
574
  } | import("@trigger.dev/core").DeserializedJson[]) & (string | number | boolean | {
575
575
  [key: string]: import("@trigger.dev/core").DeserializedJson;
576
576
  } | import("@trigger.dev/core").DeserializedJson[] | undefined)) | null;
577
- name: string;
577
+ id: 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";
606
605
  options: {
607
- seconds: number;
606
+ cron: string;
608
607
  };
608
+ type: "cron";
609
609
  accountId?: string | undefined;
610
610
  metadata?: any;
611
611
  } | {
612
- type: "cron";
613
612
  options: {
614
- cron: string;
613
+ seconds: number;
615
614
  };
615
+ type: "interval";
616
616
  accountId?: string | undefined;
617
617
  metadata?: any;
618
618
  };
@@ -629,23 +629,23 @@ export declare class ApiClient {
629
629
  additionalFields?: Record<string, string> | undefined;
630
630
  } | undefined>;
631
631
  getEvent(eventId: string): Promise<{
632
- id: string;
633
632
  name: string;
634
- createdAt: Date;
633
+ id: string;
635
634
  updatedAt: Date;
636
635
  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";
636
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
638
637
  id: string;
639
638
  startedAt?: Date | null | undefined;
640
639
  completedAt?: Date | null | undefined;
641
640
  }[];
641
+ createdAt: Date;
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
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
645
645
  id: string;
646
- updatedAt: Date | null;
647
646
  startedAt: Date | null;
648
647
  completedAt: Date | null;
648
+ updatedAt: Date | null;
649
649
  tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
650
650
  statuses: {
651
651
  label: string;
@@ -662,11 +662,11 @@ export declare class ApiClient {
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
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
666
666
  id: string;
667
- updatedAt: Date | null;
668
667
  startedAt: Date | null;
669
668
  completedAt: Date | null;
669
+ updatedAt: Date | null;
670
670
  tasks: import("@trigger.dev/core").RunTaskWithSubtasks[];
671
671
  statuses: {
672
672
  label: string;
@@ -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
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
699
699
  id: string;
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
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE";
706
706
  id: string;
707
- updatedAt: Date | null;
708
707
  startedAt: Date | null;
709
708
  completedAt: Date | null;
709
+ updatedAt: Date | null;
710
710
  }[];
711
711
  nextCursor?: string | undefined;
712
712
  }>;