@@ -63,7 +63,6 @@ import type {
6363 TaskOutputHandle ,
6464 TaskPayload ,
6565 TaskRunResult ,
66- TaskRunResultFromTask ,
6766 TaskSchema ,
6867 TaskWithSchema ,
6968 TaskWithSchemaOptions ,
@@ -75,6 +74,7 @@ import type {
7574 TriggerOptions ,
7675 AnyTaskRunResult ,
7776 BatchTriggerAndWaitOptions ,
77+ BatchTriggerTaskV2RequestBody ,
7878} from "@trigger.dev/core/v3" ;
7979
8080export type {
@@ -613,9 +613,9 @@ export async function batchTriggerById<TTask extends AnyTask>(
613613 parentAttempt : taskContext . ctx ?. attempt . id ,
614614 metadata : item . options ?. metadata ,
615615 maxDuration : item . options ?. maxDuration ,
616- machinePreset : item . options ?. machinePreset ,
616+ machine : item . options ?. machine ,
617617 } ,
618- } ;
618+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
619619 } )
620620 ) ,
621621 } ,
@@ -787,9 +787,9 @@ export async function batchTriggerByIdAndWait<TTask extends AnyTask>(
787787 maxAttempts : item . options ?. maxAttempts ,
788788 metadata : item . options ?. metadata ,
789789 maxDuration : item . options ?. maxDuration ,
790- machinePreset : item . options ?. machinePreset ,
790+ machine : item . options ?. machine ,
791791 } ,
792- } ;
792+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
793793 } )
794794 ) ,
795795 dependentAttempt : ctx . attempt . id ,
@@ -949,9 +949,9 @@ export async function batchTriggerTasks<TTasks extends readonly AnyTask[]>(
949949 parentAttempt : taskContext . ctx ?. attempt . id ,
950950 metadata : item . options ?. metadata ,
951951 maxDuration : item . options ?. maxDuration ,
952- machinePreset : item . options ?. machinePreset ,
952+ machine : item . options ?. machine ,
953953 } ,
954- } ;
954+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
955955 } )
956956 ) ,
957957 } ,
@@ -1125,9 +1125,9 @@ export async function batchTriggerAndWaitTasks<TTasks extends readonly AnyTask[]
11251125 maxAttempts : item . options ?. maxAttempts ,
11261126 metadata : item . options ?. metadata ,
11271127 maxDuration : item . options ?. maxDuration ,
1128- machinePreset : item . options ?. machinePreset ,
1128+ machine : item . options ?. machine ,
11291129 } ,
1130- } ;
1130+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
11311131 } )
11321132 ) ,
11331133 dependentAttempt : ctx . attempt . id ,
@@ -1204,7 +1204,7 @@ async function trigger_internal<TRunTypes extends AnyRunTypes>(
12041204 parentAttempt : taskContext . ctx ?. attempt . id ,
12051205 metadata : options ?. metadata ,
12061206 maxDuration : options ?. maxDuration ,
1207- machinePreset : options ?. machinePreset ,
1207+ machine : options ?. machine ,
12081208 } ,
12091209 } ,
12101210 {
@@ -1264,9 +1264,9 @@ async function batchTrigger_internal<TRunTypes extends AnyRunTypes>(
12641264 parentAttempt : taskContext . ctx ?. attempt . id ,
12651265 metadata : item . options ?. metadata ,
12661266 maxDuration : item . options ?. maxDuration ,
1267- machinePreset : item . options ?. machinePreset ,
1267+ machine : item . options ?. machine ,
12681268 } ,
1269- } ;
1269+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
12701270 } )
12711271 ) ,
12721272 } ,
@@ -1358,7 +1358,7 @@ async function triggerAndWait_internal<TIdentifier extends string, TPayload, TOu
13581358 maxAttempts : options ?. maxAttempts ,
13591359 metadata : options ?. metadata ,
13601360 maxDuration : options ?. maxDuration ,
1361- machinePreset : options ?. machinePreset ,
1361+ machine : options ?. machine ,
13621362 } ,
13631363 } ,
13641364 { } ,
@@ -1435,9 +1435,9 @@ async function batchTriggerAndWait_internal<TIdentifier extends string, TPayload
14351435 maxAttempts : item . options ?. maxAttempts ,
14361436 metadata : item . options ?. metadata ,
14371437 maxDuration : item . options ?. maxDuration ,
1438- machinePreset : item . options ?. machinePreset ,
1438+ machine : item . options ?. machine ,
14391439 } ,
1440- } ;
1440+ } satisfies BatchTriggerTaskV2RequestBody [ "items" ] [ 0 ] ;
14411441 } )
14421442 ) ,
14431443 dependentAttempt : ctx . attempt . id ,
0 commit comments