@trigger.dev/core 0.0.0-prerelease-20241128131418 → 0.0.0-prerelease-20241202120601

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.
@@ -51,27 +51,22 @@ export declare const TaskResource: z.ZodObject<{
51
51
  cron: z.ZodString;
52
52
  timezone: z.ZodString;
53
53
  }, "strip", z.ZodTypeAny, {
54
- cron: string;
55
54
  timezone: string;
56
- }, {
57
55
  cron: string;
56
+ }, {
58
57
  timezone: string;
58
+ cron: string;
59
59
  }>>;
60
60
  maxDuration: z.ZodOptional<z.ZodNumber>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  id: string;
63
63
  filePath: string;
64
64
  exportName: string;
65
- maxDuration?: number | undefined;
66
65
  queue?: {
67
66
  name?: string | undefined;
68
67
  concurrencyLimit?: number | undefined;
69
68
  } | undefined;
70
- machine?: {
71
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
72
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
73
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
74
- } | undefined;
69
+ maxDuration?: number | undefined;
75
70
  retry?: {
76
71
  maxAttempts?: number | undefined;
77
72
  factor?: number | undefined;
@@ -80,25 +75,25 @@ export declare const TaskResource: z.ZodObject<{
80
75
  randomize?: boolean | undefined;
81
76
  } | undefined;
82
77
  description?: string | undefined;
83
- triggerSource?: string | undefined;
84
78
  schedule?: {
85
- cron: string;
86
79
  timezone: string;
80
+ cron: string;
87
81
  } | undefined;
82
+ machine?: {
83
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
84
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
85
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
86
+ } | undefined;
87
+ triggerSource?: string | undefined;
88
88
  }, {
89
89
  id: string;
90
90
  filePath: string;
91
91
  exportName: string;
92
- maxDuration?: number | undefined;
93
92
  queue?: {
94
93
  name?: string | undefined;
95
94
  concurrencyLimit?: number | undefined;
96
95
  } | undefined;
97
- machine?: {
98
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
99
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
100
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
101
- } | undefined;
96
+ maxDuration?: number | undefined;
102
97
  retry?: {
103
98
  maxAttempts?: number | undefined;
104
99
  factor?: number | undefined;
@@ -107,11 +102,16 @@ export declare const TaskResource: z.ZodObject<{
107
102
  randomize?: boolean | undefined;
108
103
  } | undefined;
109
104
  description?: string | undefined;
110
- triggerSource?: string | undefined;
111
105
  schedule?: {
112
- cron: string;
113
106
  timezone: string;
107
+ cron: string;
108
+ } | undefined;
109
+ machine?: {
110
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
111
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
112
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
114
113
  } | undefined;
114
+ triggerSource?: string | undefined;
115
115
  }>;
116
116
  export type TaskResource = z.infer<typeof TaskResource>;
117
117
  export declare const BackgroundWorkerSourceFileMetadata: z.ZodObject<{
@@ -187,27 +187,22 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
187
187
  cron: z.ZodString;
188
188
  timezone: z.ZodString;
189
189
  }, "strip", z.ZodTypeAny, {
190
- cron: string;
191
190
  timezone: string;
192
- }, {
193
191
  cron: string;
192
+ }, {
194
193
  timezone: string;
194
+ cron: string;
195
195
  }>>;
196
196
  maxDuration: z.ZodOptional<z.ZodNumber>;
197
197
  }, "strip", z.ZodTypeAny, {
198
198
  id: string;
199
199
  filePath: string;
200
200
  exportName: string;
201
- maxDuration?: number | undefined;
202
201
  queue?: {
203
202
  name?: string | undefined;
204
203
  concurrencyLimit?: number | undefined;
205
204
  } | undefined;
206
- machine?: {
207
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
208
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
209
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
210
- } | undefined;
205
+ maxDuration?: number | undefined;
211
206
  retry?: {
212
207
  maxAttempts?: number | undefined;
213
208
  factor?: number | undefined;
@@ -216,25 +211,25 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
216
211
  randomize?: boolean | undefined;
217
212
  } | undefined;
218
213
  description?: string | undefined;
219
- triggerSource?: string | undefined;
220
214
  schedule?: {
221
- cron: string;
222
215
  timezone: string;
216
+ cron: string;
223
217
  } | undefined;
218
+ machine?: {
219
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
220
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
221
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
222
+ } | undefined;
223
+ triggerSource?: string | undefined;
224
224
  }, {
225
225
  id: string;
226
226
  filePath: string;
227
227
  exportName: string;
228
- maxDuration?: number | undefined;
229
228
  queue?: {
230
229
  name?: string | undefined;
231
230
  concurrencyLimit?: number | undefined;
232
231
  } | undefined;
233
- machine?: {
234
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
235
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
236
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
237
- } | undefined;
232
+ maxDuration?: number | undefined;
238
233
  retry?: {
239
234
  maxAttempts?: number | undefined;
240
235
  factor?: number | undefined;
@@ -243,11 +238,16 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
243
238
  randomize?: boolean | undefined;
244
239
  } | undefined;
245
240
  description?: string | undefined;
246
- triggerSource?: string | undefined;
247
241
  schedule?: {
248
- cron: string;
249
242
  timezone: string;
243
+ cron: string;
244
+ } | undefined;
245
+ machine?: {
246
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
247
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
248
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
250
249
  } | undefined;
250
+ triggerSource?: string | undefined;
251
251
  }>, "many">;
252
252
  sourceFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
253
  filePath: z.ZodString;
@@ -266,22 +266,15 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
266
266
  taskIds: string[];
267
267
  }>, "many">>;
268
268
  }, "strip", z.ZodTypeAny, {
269
- packageVersion: string;
270
- contentHash: string;
271
269
  tasks: {
272
270
  id: string;
273
271
  filePath: string;
274
272
  exportName: string;
275
- maxDuration?: number | undefined;
276
273
  queue?: {
277
274
  name?: string | undefined;
278
275
  concurrencyLimit?: number | undefined;
279
276
  } | undefined;
280
- machine?: {
281
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
282
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
283
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
284
- } | undefined;
277
+ maxDuration?: number | undefined;
285
278
  retry?: {
286
279
  maxAttempts?: number | undefined;
287
280
  factor?: number | undefined;
@@ -290,12 +283,19 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
290
283
  randomize?: boolean | undefined;
291
284
  } | undefined;
292
285
  description?: string | undefined;
293
- triggerSource?: string | undefined;
294
286
  schedule?: {
295
- cron: string;
296
287
  timezone: string;
288
+ cron: string;
297
289
  } | undefined;
290
+ machine?: {
291
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
292
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
293
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
294
+ } | undefined;
295
+ triggerSource?: string | undefined;
298
296
  }[];
297
+ contentHash: string;
298
+ packageVersion: string;
299
299
  cliPackageVersion?: string | undefined;
300
300
  sourceFiles?: {
301
301
  filePath: string;
@@ -304,22 +304,15 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
304
304
  taskIds: string[];
305
305
  }[] | undefined;
306
306
  }, {
307
- packageVersion: string;
308
- contentHash: string;
309
307
  tasks: {
310
308
  id: string;
311
309
  filePath: string;
312
310
  exportName: string;
313
- maxDuration?: number | undefined;
314
311
  queue?: {
315
312
  name?: string | undefined;
316
313
  concurrencyLimit?: number | undefined;
317
314
  } | undefined;
318
- machine?: {
319
- cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
320
- memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
321
- preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
322
- } | undefined;
315
+ maxDuration?: number | undefined;
323
316
  retry?: {
324
317
  maxAttempts?: number | undefined;
325
318
  factor?: number | undefined;
@@ -328,12 +321,19 @@ export declare const BackgroundWorkerMetadata: z.ZodObject<{
328
321
  randomize?: boolean | undefined;
329
322
  } | undefined;
330
323
  description?: string | undefined;
331
- triggerSource?: string | undefined;
332
324
  schedule?: {
333
- cron: string;
334
325
  timezone: string;
326
+ cron: string;
327
+ } | undefined;
328
+ machine?: {
329
+ cpu?: 2 | 1 | 4 | 0.25 | 0.5 | undefined;
330
+ memory?: 2 | 1 | 4 | 0.25 | 0.5 | 8 | undefined;
331
+ preset?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
335
332
  } | undefined;
333
+ triggerSource?: string | undefined;
336
334
  }[];
335
+ contentHash: string;
336
+ packageVersion: string;
337
337
  cliPackageVersion?: string | undefined;
338
338
  sourceFiles?: {
339
339
  filePath: string;