@@ -6,6 +6,7 @@ import { TaskRunError } from "@trigger.dev/core/v3/schemas";
66export const RawRunEventV1 = z . object ( {
77 environment_id : z . string ( ) ,
88 run_id : z . string ( ) ,
9+ friendly_id : z . string ( ) ,
910 attempt : z . number ( ) . int ( ) . default ( 1 ) ,
1011 engine : z . enum ( [ "V1" , "V2" ] ) ,
1112 status : z . enum ( [
@@ -29,19 +30,19 @@ export const RawRunEventV1 = z.object({
2930 queue : z . string ( ) ,
3031 schedule_id : z . string ( ) . optional ( ) ,
3132 batch_id : z . string ( ) . optional ( ) ,
32- event_time : z . coerce . number ( ) . int ( ) ,
33- created_at : z . coerce . number ( ) . int ( ) ,
34- updated_at : z . coerce . number ( ) . int ( ) ,
35- completed_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
36- started_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
37- executed_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
38- finished_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
39- delay_until : z . coerce . number ( ) . int ( ) . optional ( ) ,
40- queued_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
41- expired_at : z . coerce . number ( ) . int ( ) . optional ( ) ,
42- duration_ms : z . coerce . number ( ) . int ( ) . optional ( ) ,
43- usage_duration_ms : z . coerce . number ( ) . int ( ) . optional ( ) ,
44- cost_in_cents : z . coerce . number ( ) . int ( ) . optional ( ) ,
33+ event_time : z . number ( ) . int ( ) ,
34+ created_at : z . number ( ) . int ( ) ,
35+ updated_at : z . number ( ) . int ( ) ,
36+ completed_at : z . number ( ) . int ( ) . optional ( ) ,
37+ started_at : z . number ( ) . int ( ) . optional ( ) ,
38+ executed_at : z . number ( ) . int ( ) . optional ( ) ,
39+ finished_at : z . number ( ) . int ( ) . optional ( ) ,
40+ delay_until : z . number ( ) . int ( ) . optional ( ) ,
41+ queued_at : z . number ( ) . int ( ) . optional ( ) ,
42+ expired_at : z . number ( ) . int ( ) . optional ( ) ,
43+ duration_ms : z . number ( ) . int ( ) . optional ( ) ,
44+ usage_duration_ms : z . number ( ) . int ( ) . optional ( ) ,
45+ cost_in_cents : z . number ( ) . int ( ) . optional ( ) ,
4546 payload : z . unknown ( ) . optional ( ) ,
4647 output : z . unknown ( ) . optional ( ) ,
4748 error : TaskRunError . optional ( ) ,
@@ -50,6 +51,14 @@ export const RawRunEventV1 = z.object({
5051 sdk_version : z . string ( ) . optional ( ) ,
5152 cli_version : z . string ( ) . optional ( ) ,
5253 machine_preset : z . string ( ) . optional ( ) ,
54+ root_run_id : z . string ( ) . optional ( ) ,
55+ parent_run_id : z . string ( ) . optional ( ) ,
56+ depth : z . number ( ) . int ( ) . default ( 0 ) ,
57+ span_id : z . string ( ) . optional ( ) ,
58+ trace_id : z . string ( ) . optional ( ) ,
59+ idempotency_key : z . string ( ) . optional ( ) ,
60+ expiration_ttl : z . string ( ) . optional ( ) ,
61+ is_test : z . boolean ( ) . default ( false ) ,
5362} ) ;
5463
5564export type RawRunEventV1 = z . infer < typeof RawRunEventV1 > ;
0 commit comments