@linnlabs/linnkit 0.32.2 → 0.32.3

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.
@@ -101,7 +101,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
101
101
  kind: z.ZodString;
102
102
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
103
103
  }, "strict", z.ZodTypeAny, {
104
- kind: string;
105
104
  schema_version: 2;
106
105
  producer: {
107
106
  model_id: string;
@@ -110,9 +109,9 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
110
109
  capability_id: string;
111
110
  endpoint_model_id: string;
112
111
  };
112
+ kind: string;
113
113
  payload: SerializableJsonValue;
114
114
  }, {
115
- kind: string;
116
115
  schema_version: 2;
117
116
  producer: {
118
117
  model_id: string;
@@ -121,6 +120,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
121
120
  capability_id: string;
122
121
  endpoint_model_id: string;
123
122
  };
123
+ kind: string;
124
124
  payload: SerializableJsonValue;
125
125
  }>, "many">>;
126
126
  assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -150,7 +150,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
150
150
  kind: z.ZodString;
151
151
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
152
152
  }, "strict", z.ZodTypeAny, {
153
- kind: string;
154
153
  schema_version: 2;
155
154
  producer: {
156
155
  model_id: string;
@@ -159,9 +158,9 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
159
158
  capability_id: string;
160
159
  endpoint_model_id: string;
161
160
  };
161
+ kind: string;
162
162
  payload: SerializableJsonValue;
163
163
  }, {
164
- kind: string;
165
164
  schema_version: 2;
166
165
  producer: {
167
166
  model_id: string;
@@ -170,13 +169,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
170
169
  capability_id: string;
171
170
  endpoint_model_id: string;
172
171
  };
172
+ kind: string;
173
173
  payload: SerializableJsonValue;
174
174
  }>, "many">>;
175
175
  }, "strict", z.ZodTypeAny, {
176
176
  type: "text";
177
177
  text: string;
178
178
  provider_continuations?: {
179
- kind: string;
180
179
  schema_version: 2;
181
180
  producer: {
182
181
  model_id: string;
@@ -185,13 +184,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
185
184
  capability_id: string;
186
185
  endpoint_model_id: string;
187
186
  };
187
+ kind: string;
188
188
  payload: SerializableJsonValue;
189
189
  }[] | undefined;
190
190
  }, {
191
191
  type: "text";
192
192
  text: string;
193
193
  provider_continuations?: {
194
- kind: string;
195
194
  schema_version: 2;
196
195
  producer: {
197
196
  model_id: string;
@@ -200,6 +199,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
200
199
  capability_id: string;
201
200
  endpoint_model_id: string;
202
201
  };
202
+ kind: string;
203
203
  payload: SerializableJsonValue;
204
204
  }[] | undefined;
205
205
  }>, z.ZodObject<{
@@ -229,7 +229,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
229
229
  kind: z.ZodString;
230
230
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
231
231
  }, "strict", z.ZodTypeAny, {
232
- kind: string;
233
232
  schema_version: 2;
234
233
  producer: {
235
234
  model_id: string;
@@ -238,9 +237,9 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
238
237
  capability_id: string;
239
238
  endpoint_model_id: string;
240
239
  };
240
+ kind: string;
241
241
  payload: SerializableJsonValue;
242
242
  }, {
243
- kind: string;
244
243
  schema_version: 2;
245
244
  producer: {
246
245
  model_id: string;
@@ -249,13 +248,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
249
248
  capability_id: string;
250
249
  endpoint_model_id: string;
251
250
  };
251
+ kind: string;
252
252
  payload: SerializableJsonValue;
253
253
  }>, "many">>;
254
254
  }, "strict", z.ZodTypeAny, {
255
255
  type: "reasoning";
256
256
  text: string;
257
257
  provider_continuations?: {
258
- kind: string;
259
258
  schema_version: 2;
260
259
  producer: {
261
260
  model_id: string;
@@ -264,13 +263,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
264
263
  capability_id: string;
265
264
  endpoint_model_id: string;
266
265
  };
266
+ kind: string;
267
267
  payload: SerializableJsonValue;
268
268
  }[] | undefined;
269
269
  }, {
270
270
  type: "reasoning";
271
271
  text: string;
272
272
  provider_continuations?: {
273
- kind: string;
274
273
  schema_version: 2;
275
274
  producer: {
276
275
  model_id: string;
@@ -279,6 +278,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
279
278
  capability_id: string;
280
279
  endpoint_model_id: string;
281
280
  };
281
+ kind: string;
282
282
  payload: SerializableJsonValue;
283
283
  }[] | undefined;
284
284
  }>, z.ZodObject<{
@@ -308,7 +308,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
308
308
  kind: z.ZodString;
309
309
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
310
310
  }, "strict", z.ZodTypeAny, {
311
- kind: string;
312
311
  schema_version: 2;
313
312
  producer: {
314
313
  model_id: string;
@@ -317,9 +316,9 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
317
316
  capability_id: string;
318
317
  endpoint_model_id: string;
319
318
  };
319
+ kind: string;
320
320
  payload: SerializableJsonValue;
321
321
  }, {
322
- kind: string;
323
322
  schema_version: 2;
324
323
  producer: {
325
324
  model_id: string;
@@ -328,13 +327,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
328
327
  capability_id: string;
329
328
  endpoint_model_id: string;
330
329
  };
330
+ kind: string;
331
331
  payload: SerializableJsonValue;
332
332
  }>, "many">>;
333
333
  }, "strict", z.ZodTypeAny, {
334
334
  type: "tool_call";
335
335
  tool_call_id: string;
336
336
  provider_continuations?: {
337
- kind: string;
338
337
  schema_version: 2;
339
338
  producer: {
340
339
  model_id: string;
@@ -343,13 +342,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
343
342
  capability_id: string;
344
343
  endpoint_model_id: string;
345
344
  };
345
+ kind: string;
346
346
  payload: SerializableJsonValue;
347
347
  }[] | undefined;
348
348
  }, {
349
349
  type: "tool_call";
350
350
  tool_call_id: string;
351
351
  provider_continuations?: {
352
- kind: string;
353
352
  schema_version: 2;
354
353
  producer: {
355
354
  model_id: string;
@@ -358,13 +357,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
358
357
  capability_id: string;
359
358
  endpoint_model_id: string;
360
359
  };
360
+ kind: string;
361
361
  payload: SerializableJsonValue;
362
362
  }[] | undefined;
363
363
  }>]>, "many">>;
364
364
  }, "strict", z.ZodTypeAny, {
365
365
  tool_calls?: SerializableJsonValue[] | undefined;
366
366
  provider_continuations?: {
367
- kind: string;
368
367
  schema_version: 2;
369
368
  producer: {
370
369
  model_id: string;
@@ -373,13 +372,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
373
372
  capability_id: string;
374
373
  endpoint_model_id: string;
375
374
  };
375
+ kind: string;
376
376
  payload: SerializableJsonValue;
377
377
  }[] | undefined;
378
378
  assistant_replay_parts?: ({
379
379
  type: "text";
380
380
  text: string;
381
381
  provider_continuations?: {
382
- kind: string;
383
382
  schema_version: 2;
384
383
  producer: {
385
384
  model_id: string;
@@ -388,13 +387,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
388
387
  capability_id: string;
389
388
  endpoint_model_id: string;
390
389
  };
390
+ kind: string;
391
391
  payload: SerializableJsonValue;
392
392
  }[] | undefined;
393
393
  } | {
394
394
  type: "reasoning";
395
395
  text: string;
396
396
  provider_continuations?: {
397
- kind: string;
398
397
  schema_version: 2;
399
398
  producer: {
400
399
  model_id: string;
@@ -403,13 +402,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
403
402
  capability_id: string;
404
403
  endpoint_model_id: string;
405
404
  };
405
+ kind: string;
406
406
  payload: SerializableJsonValue;
407
407
  }[] | undefined;
408
408
  } | {
409
409
  type: "tool_call";
410
410
  tool_call_id: string;
411
411
  provider_continuations?: {
412
- kind: string;
413
412
  schema_version: 2;
414
413
  producer: {
415
414
  model_id: string;
@@ -418,6 +417,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
418
417
  capability_id: string;
419
418
  endpoint_model_id: string;
420
419
  };
420
+ kind: string;
421
421
  payload: SerializableJsonValue;
422
422
  }[] | undefined;
423
423
  })[] | undefined;
@@ -425,7 +425,6 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
425
425
  }, {
426
426
  tool_calls?: SerializableJsonValue[] | undefined;
427
427
  provider_continuations?: {
428
- kind: string;
429
428
  schema_version: 2;
430
429
  producer: {
431
430
  model_id: string;
@@ -434,13 +433,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
434
433
  capability_id: string;
435
434
  endpoint_model_id: string;
436
435
  };
436
+ kind: string;
437
437
  payload: SerializableJsonValue;
438
438
  }[] | undefined;
439
439
  assistant_replay_parts?: ({
440
440
  type: "text";
441
441
  text: string;
442
442
  provider_continuations?: {
443
- kind: string;
444
443
  schema_version: 2;
445
444
  producer: {
446
445
  model_id: string;
@@ -449,13 +448,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
449
448
  capability_id: string;
450
449
  endpoint_model_id: string;
451
450
  };
451
+ kind: string;
452
452
  payload: SerializableJsonValue;
453
453
  }[] | undefined;
454
454
  } | {
455
455
  type: "reasoning";
456
456
  text: string;
457
457
  provider_continuations?: {
458
- kind: string;
459
458
  schema_version: 2;
460
459
  producer: {
461
460
  model_id: string;
@@ -464,13 +463,13 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
464
463
  capability_id: string;
465
464
  endpoint_model_id: string;
466
465
  };
466
+ kind: string;
467
467
  payload: SerializableJsonValue;
468
468
  }[] | undefined;
469
469
  } | {
470
470
  type: "tool_call";
471
471
  tool_call_id: string;
472
472
  provider_continuations?: {
473
- kind: string;
474
473
  schema_version: 2;
475
474
  producer: {
476
475
  model_id: string;
@@ -479,6 +478,7 @@ declare const ToolCallDecisionPayload: z.ZodObject<{
479
478
  capability_id: string;
480
479
  endpoint_model_id: string;
481
480
  };
481
+ kind: string;
482
482
  payload: SerializableJsonValue;
483
483
  }[] | undefined;
484
484
  })[] | undefined;
@@ -695,7 +695,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
695
695
  kind: z.ZodString;
696
696
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
697
697
  }, "strict", z.ZodTypeAny, {
698
- kind: string;
699
698
  schema_version: 2;
700
699
  producer: {
701
700
  model_id: string;
@@ -704,9 +703,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
704
703
  capability_id: string;
705
704
  endpoint_model_id: string;
706
705
  };
706
+ kind: string;
707
707
  payload: SerializableJsonValue;
708
708
  }, {
709
- kind: string;
710
709
  schema_version: 2;
711
710
  producer: {
712
711
  model_id: string;
@@ -715,6 +714,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
715
714
  capability_id: string;
716
715
  endpoint_model_id: string;
717
716
  };
717
+ kind: string;
718
718
  payload: SerializableJsonValue;
719
719
  }>, "many">>;
720
720
  assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -744,7 +744,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
744
744
  kind: z.ZodString;
745
745
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
746
746
  }, "strict", z.ZodTypeAny, {
747
- kind: string;
748
747
  schema_version: 2;
749
748
  producer: {
750
749
  model_id: string;
@@ -753,9 +752,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
753
752
  capability_id: string;
754
753
  endpoint_model_id: string;
755
754
  };
755
+ kind: string;
756
756
  payload: SerializableJsonValue;
757
757
  }, {
758
- kind: string;
759
758
  schema_version: 2;
760
759
  producer: {
761
760
  model_id: string;
@@ -764,13 +763,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
764
763
  capability_id: string;
765
764
  endpoint_model_id: string;
766
765
  };
766
+ kind: string;
767
767
  payload: SerializableJsonValue;
768
768
  }>, "many">>;
769
769
  }, "strict", z.ZodTypeAny, {
770
770
  type: "text";
771
771
  text: string;
772
772
  provider_continuations?: {
773
- kind: string;
774
773
  schema_version: 2;
775
774
  producer: {
776
775
  model_id: string;
@@ -779,13 +778,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
779
778
  capability_id: string;
780
779
  endpoint_model_id: string;
781
780
  };
781
+ kind: string;
782
782
  payload: SerializableJsonValue;
783
783
  }[] | undefined;
784
784
  }, {
785
785
  type: "text";
786
786
  text: string;
787
787
  provider_continuations?: {
788
- kind: string;
789
788
  schema_version: 2;
790
789
  producer: {
791
790
  model_id: string;
@@ -794,6 +793,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
794
793
  capability_id: string;
795
794
  endpoint_model_id: string;
796
795
  };
796
+ kind: string;
797
797
  payload: SerializableJsonValue;
798
798
  }[] | undefined;
799
799
  }>, z.ZodObject<{
@@ -823,7 +823,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
823
823
  kind: z.ZodString;
824
824
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
825
825
  }, "strict", z.ZodTypeAny, {
826
- kind: string;
827
826
  schema_version: 2;
828
827
  producer: {
829
828
  model_id: string;
@@ -832,9 +831,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
832
831
  capability_id: string;
833
832
  endpoint_model_id: string;
834
833
  };
834
+ kind: string;
835
835
  payload: SerializableJsonValue;
836
836
  }, {
837
- kind: string;
838
837
  schema_version: 2;
839
838
  producer: {
840
839
  model_id: string;
@@ -843,13 +842,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
843
842
  capability_id: string;
844
843
  endpoint_model_id: string;
845
844
  };
845
+ kind: string;
846
846
  payload: SerializableJsonValue;
847
847
  }>, "many">>;
848
848
  }, "strict", z.ZodTypeAny, {
849
849
  type: "reasoning";
850
850
  text: string;
851
851
  provider_continuations?: {
852
- kind: string;
853
852
  schema_version: 2;
854
853
  producer: {
855
854
  model_id: string;
@@ -858,13 +857,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
858
857
  capability_id: string;
859
858
  endpoint_model_id: string;
860
859
  };
860
+ kind: string;
861
861
  payload: SerializableJsonValue;
862
862
  }[] | undefined;
863
863
  }, {
864
864
  type: "reasoning";
865
865
  text: string;
866
866
  provider_continuations?: {
867
- kind: string;
868
867
  schema_version: 2;
869
868
  producer: {
870
869
  model_id: string;
@@ -873,6 +872,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
873
872
  capability_id: string;
874
873
  endpoint_model_id: string;
875
874
  };
875
+ kind: string;
876
876
  payload: SerializableJsonValue;
877
877
  }[] | undefined;
878
878
  }>, z.ZodObject<{
@@ -902,7 +902,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
902
902
  kind: z.ZodString;
903
903
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
904
904
  }, "strict", z.ZodTypeAny, {
905
- kind: string;
906
905
  schema_version: 2;
907
906
  producer: {
908
907
  model_id: string;
@@ -911,9 +910,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
911
910
  capability_id: string;
912
911
  endpoint_model_id: string;
913
912
  };
913
+ kind: string;
914
914
  payload: SerializableJsonValue;
915
915
  }, {
916
- kind: string;
917
916
  schema_version: 2;
918
917
  producer: {
919
918
  model_id: string;
@@ -922,13 +921,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
922
921
  capability_id: string;
923
922
  endpoint_model_id: string;
924
923
  };
924
+ kind: string;
925
925
  payload: SerializableJsonValue;
926
926
  }>, "many">>;
927
927
  }, "strict", z.ZodTypeAny, {
928
928
  type: "tool_call";
929
929
  tool_call_id: string;
930
930
  provider_continuations?: {
931
- kind: string;
932
931
  schema_version: 2;
933
932
  producer: {
934
933
  model_id: string;
@@ -937,13 +936,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
937
936
  capability_id: string;
938
937
  endpoint_model_id: string;
939
938
  };
939
+ kind: string;
940
940
  payload: SerializableJsonValue;
941
941
  }[] | undefined;
942
942
  }, {
943
943
  type: "tool_call";
944
944
  tool_call_id: string;
945
945
  provider_continuations?: {
946
- kind: string;
947
946
  schema_version: 2;
948
947
  producer: {
949
948
  model_id: string;
@@ -952,13 +951,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
952
951
  capability_id: string;
953
952
  endpoint_model_id: string;
954
953
  };
954
+ kind: string;
955
955
  payload: SerializableJsonValue;
956
956
  }[] | undefined;
957
957
  }>]>, "many">>;
958
958
  }, "strict", z.ZodTypeAny, {
959
959
  tool_calls?: SerializableJsonValue[] | undefined;
960
960
  provider_continuations?: {
961
- kind: string;
962
961
  schema_version: 2;
963
962
  producer: {
964
963
  model_id: string;
@@ -967,13 +966,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
967
966
  capability_id: string;
968
967
  endpoint_model_id: string;
969
968
  };
969
+ kind: string;
970
970
  payload: SerializableJsonValue;
971
971
  }[] | undefined;
972
972
  assistant_replay_parts?: ({
973
973
  type: "text";
974
974
  text: string;
975
975
  provider_continuations?: {
976
- kind: string;
977
976
  schema_version: 2;
978
977
  producer: {
979
978
  model_id: string;
@@ -982,13 +981,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
982
981
  capability_id: string;
983
982
  endpoint_model_id: string;
984
983
  };
984
+ kind: string;
985
985
  payload: SerializableJsonValue;
986
986
  }[] | undefined;
987
987
  } | {
988
988
  type: "reasoning";
989
989
  text: string;
990
990
  provider_continuations?: {
991
- kind: string;
992
991
  schema_version: 2;
993
992
  producer: {
994
993
  model_id: string;
@@ -997,13 +996,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
997
996
  capability_id: string;
998
997
  endpoint_model_id: string;
999
998
  };
999
+ kind: string;
1000
1000
  payload: SerializableJsonValue;
1001
1001
  }[] | undefined;
1002
1002
  } | {
1003
1003
  type: "tool_call";
1004
1004
  tool_call_id: string;
1005
1005
  provider_continuations?: {
1006
- kind: string;
1007
1006
  schema_version: 2;
1008
1007
  producer: {
1009
1008
  model_id: string;
@@ -1012,6 +1011,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1012
1011
  capability_id: string;
1013
1012
  endpoint_model_id: string;
1014
1013
  };
1014
+ kind: string;
1015
1015
  payload: SerializableJsonValue;
1016
1016
  }[] | undefined;
1017
1017
  })[] | undefined;
@@ -1019,7 +1019,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1019
1019
  }, {
1020
1020
  tool_calls?: SerializableJsonValue[] | undefined;
1021
1021
  provider_continuations?: {
1022
- kind: string;
1023
1022
  schema_version: 2;
1024
1023
  producer: {
1025
1024
  model_id: string;
@@ -1028,13 +1027,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1028
1027
  capability_id: string;
1029
1028
  endpoint_model_id: string;
1030
1029
  };
1030
+ kind: string;
1031
1031
  payload: SerializableJsonValue;
1032
1032
  }[] | undefined;
1033
1033
  assistant_replay_parts?: ({
1034
1034
  type: "text";
1035
1035
  text: string;
1036
1036
  provider_continuations?: {
1037
- kind: string;
1038
1037
  schema_version: 2;
1039
1038
  producer: {
1040
1039
  model_id: string;
@@ -1043,13 +1042,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1043
1042
  capability_id: string;
1044
1043
  endpoint_model_id: string;
1045
1044
  };
1045
+ kind: string;
1046
1046
  payload: SerializableJsonValue;
1047
1047
  }[] | undefined;
1048
1048
  } | {
1049
1049
  type: "reasoning";
1050
1050
  text: string;
1051
1051
  provider_continuations?: {
1052
- kind: string;
1053
1052
  schema_version: 2;
1054
1053
  producer: {
1055
1054
  model_id: string;
@@ -1058,13 +1057,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1058
1057
  capability_id: string;
1059
1058
  endpoint_model_id: string;
1060
1059
  };
1060
+ kind: string;
1061
1061
  payload: SerializableJsonValue;
1062
1062
  }[] | undefined;
1063
1063
  } | {
1064
1064
  type: "tool_call";
1065
1065
  tool_call_id: string;
1066
1066
  provider_continuations?: {
1067
- kind: string;
1068
1067
  schema_version: 2;
1069
1068
  producer: {
1070
1069
  model_id: string;
@@ -1073,6 +1072,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1073
1072
  capability_id: string;
1074
1073
  endpoint_model_id: string;
1075
1074
  };
1075
+ kind: string;
1076
1076
  payload: SerializableJsonValue;
1077
1077
  }[] | undefined;
1078
1078
  })[] | undefined;
@@ -1082,8 +1082,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1082
1082
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
1083
1083
  }, "strip", z.ZodTypeAny, {
1084
1084
  id: string;
1085
- status: "error" | "loading" | "success";
1086
1085
  type: "tool_call_decision";
1086
+ status: "error" | "loading" | "success";
1087
1087
  tool_call_id: string & z.BRAND<"ToolCallId">;
1088
1088
  tool_name: string;
1089
1089
  timestamp: number;
@@ -1094,7 +1094,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1094
1094
  payload?: {
1095
1095
  tool_calls?: SerializableJsonValue[] | undefined;
1096
1096
  provider_continuations?: {
1097
- kind: string;
1098
1097
  schema_version: 2;
1099
1098
  producer: {
1100
1099
  model_id: string;
@@ -1103,13 +1102,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1103
1102
  capability_id: string;
1104
1103
  endpoint_model_id: string;
1105
1104
  };
1105
+ kind: string;
1106
1106
  payload: SerializableJsonValue;
1107
1107
  }[] | undefined;
1108
1108
  assistant_replay_parts?: ({
1109
1109
  type: "text";
1110
1110
  text: string;
1111
1111
  provider_continuations?: {
1112
- kind: string;
1113
1112
  schema_version: 2;
1114
1113
  producer: {
1115
1114
  model_id: string;
@@ -1118,13 +1117,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1118
1117
  capability_id: string;
1119
1118
  endpoint_model_id: string;
1120
1119
  };
1120
+ kind: string;
1121
1121
  payload: SerializableJsonValue;
1122
1122
  }[] | undefined;
1123
1123
  } | {
1124
1124
  type: "reasoning";
1125
1125
  text: string;
1126
1126
  provider_continuations?: {
1127
- kind: string;
1128
1127
  schema_version: 2;
1129
1128
  producer: {
1130
1129
  model_id: string;
@@ -1133,13 +1132,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1133
1132
  capability_id: string;
1134
1133
  endpoint_model_id: string;
1135
1134
  };
1135
+ kind: string;
1136
1136
  payload: SerializableJsonValue;
1137
1137
  }[] | undefined;
1138
1138
  } | {
1139
1139
  type: "tool_call";
1140
1140
  tool_call_id: string;
1141
1141
  provider_continuations?: {
1142
- kind: string;
1143
1142
  schema_version: 2;
1144
1143
  producer: {
1145
1144
  model_id: string;
@@ -1148,6 +1147,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1148
1147
  capability_id: string;
1149
1148
  endpoint_model_id: string;
1150
1149
  };
1150
+ kind: string;
1151
1151
  payload: SerializableJsonValue;
1152
1152
  }[] | undefined;
1153
1153
  })[] | undefined;
@@ -1164,8 +1164,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1164
1164
  meta?: Record<string, SerializableJsonValue> | undefined;
1165
1165
  }, {
1166
1166
  id: string;
1167
- status: "error" | "loading" | "success";
1168
1167
  type: "tool_call_decision";
1168
+ status: "error" | "loading" | "success";
1169
1169
  tool_call_id: string;
1170
1170
  tool_name: string;
1171
1171
  timestamp: number;
@@ -1175,7 +1175,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1175
1175
  payload?: {
1176
1176
  tool_calls?: SerializableJsonValue[] | undefined;
1177
1177
  provider_continuations?: {
1178
- kind: string;
1179
1178
  schema_version: 2;
1180
1179
  producer: {
1181
1180
  model_id: string;
@@ -1184,13 +1183,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1184
1183
  capability_id: string;
1185
1184
  endpoint_model_id: string;
1186
1185
  };
1186
+ kind: string;
1187
1187
  payload: SerializableJsonValue;
1188
1188
  }[] | undefined;
1189
1189
  assistant_replay_parts?: ({
1190
1190
  type: "text";
1191
1191
  text: string;
1192
1192
  provider_continuations?: {
1193
- kind: string;
1194
1193
  schema_version: 2;
1195
1194
  producer: {
1196
1195
  model_id: string;
@@ -1199,13 +1198,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1199
1198
  capability_id: string;
1200
1199
  endpoint_model_id: string;
1201
1200
  };
1201
+ kind: string;
1202
1202
  payload: SerializableJsonValue;
1203
1203
  }[] | undefined;
1204
1204
  } | {
1205
1205
  type: "reasoning";
1206
1206
  text: string;
1207
1207
  provider_continuations?: {
1208
- kind: string;
1209
1208
  schema_version: 2;
1210
1209
  producer: {
1211
1210
  model_id: string;
@@ -1214,13 +1213,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1214
1213
  capability_id: string;
1215
1214
  endpoint_model_id: string;
1216
1215
  };
1216
+ kind: string;
1217
1217
  payload: SerializableJsonValue;
1218
1218
  }[] | undefined;
1219
1219
  } | {
1220
1220
  type: "tool_call";
1221
1221
  tool_call_id: string;
1222
1222
  provider_continuations?: {
1223
- kind: string;
1224
1223
  schema_version: 2;
1225
1224
  producer: {
1226
1225
  model_id: string;
@@ -1229,6 +1228,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1229
1228
  capability_id: string;
1230
1229
  endpoint_model_id: string;
1231
1230
  };
1231
+ kind: string;
1232
1232
  payload: SerializableJsonValue;
1233
1233
  }[] | undefined;
1234
1234
  })[] | undefined;
@@ -1268,8 +1268,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1268
1268
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
1269
1269
  }, "strip", z.ZodTypeAny, {
1270
1270
  id: string;
1271
- status: "error" | "loading" | "success";
1272
1271
  type: "tool_process";
1272
+ status: "error" | "loading" | "success";
1273
1273
  tool_call_id: string & z.BRAND<"ToolCallId">;
1274
1274
  tool_name: string;
1275
1275
  timestamp: number;
@@ -1289,8 +1289,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1289
1289
  meta?: Record<string, SerializableJsonValue> | undefined;
1290
1290
  }, {
1291
1291
  id: string;
1292
- status: "error" | "loading" | "success";
1293
1292
  type: "tool_process";
1293
+ status: "error" | "loading" | "success";
1294
1294
  tool_call_id: string;
1295
1295
  tool_name: string;
1296
1296
  timestamp: number;
@@ -1366,8 +1366,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1366
1366
  }>, "many">>;
1367
1367
  }, "strip", z.ZodTypeAny, {
1368
1368
  id: string;
1369
- status: "error" | "success";
1370
1369
  type: "tool_output";
1370
+ status: "error" | "success";
1371
1371
  tool_call_id: string & z.BRAND<"ToolCallId">;
1372
1372
  tool_name: string;
1373
1373
  timestamp: number;
@@ -1399,8 +1399,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1399
1399
  duration_ms?: number | undefined;
1400
1400
  }, {
1401
1401
  id: string;
1402
- status: "error" | "success";
1403
1402
  type: "tool_output";
1403
+ status: "error" | "success";
1404
1404
  tool_call_id: string;
1405
1405
  tool_name: string;
1406
1406
  timestamp: number;
@@ -1516,8 +1516,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1516
1516
  ephemeral: z.ZodLiteral<true>;
1517
1517
  }, "strip", z.ZodTypeAny, {
1518
1518
  id: string;
1519
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
1520
1519
  type: "subrun_trace";
1520
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
1521
1521
  timestamp: number;
1522
1522
  version: 1;
1523
1523
  conversation_id: string;
@@ -1569,8 +1569,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1569
1569
  replaced_message_ids?: string[] | undefined;
1570
1570
  }, {
1571
1571
  id: string;
1572
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
1573
1572
  type: "subrun_trace";
1573
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
1574
1574
  timestamp: number;
1575
1575
  conversation_id: string;
1576
1576
  turn_id: string;
@@ -1723,12 +1723,12 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1723
1723
  policy: z.ZodOptional<z.ZodString>;
1724
1724
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1725
1725
  }, "strip", z.ZodTypeAny, {
1726
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1726
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1727
1727
  metadata?: Record<string, unknown> | undefined;
1728
1728
  reason?: string | undefined;
1729
1729
  policy?: string | undefined;
1730
1730
  }, {
1731
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1731
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1732
1732
  metadata?: Record<string, unknown> | undefined;
1733
1733
  reason?: string | undefined;
1734
1734
  policy?: string | undefined;
@@ -1780,9 +1780,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1780
1780
  }, "strip", z.ZodTypeAny, {
1781
1781
  metadata?: Record<string, unknown> | undefined;
1782
1782
  toolName?: string | undefined;
1783
- conversationId?: string | undefined;
1784
1783
  runId?: (string & z.BRAND<"RunId">) | undefined;
1785
1784
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
1785
+ conversationId?: string | undefined;
1786
1786
  turnId?: string | undefined;
1787
1787
  traceId?: string | undefined;
1788
1788
  agentSpecId?: string | undefined;
@@ -1792,9 +1792,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1792
1792
  }, {
1793
1793
  metadata?: Record<string, unknown> | undefined;
1794
1794
  toolName?: string | undefined;
1795
- conversationId?: string | undefined;
1796
1795
  runId?: string | undefined;
1797
1796
  parentRunId?: string | undefined;
1797
+ conversationId?: string | undefined;
1798
1798
  turnId?: string | undefined;
1799
1799
  traceId?: string | undefined;
1800
1800
  agentSpecId?: string | undefined;
@@ -1803,8 +1803,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1803
1803
  nodeId?: string | undefined;
1804
1804
  }>>;
1805
1805
  }, "strip", z.ZodTypeAny, {
1806
- runId: string & z.BRAND<"RunId">;
1807
1806
  envelopeId: string;
1807
+ runId: string & z.BRAND<"RunId">;
1808
1808
  ts: number;
1809
1809
  actor: {
1810
1810
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -1814,7 +1814,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1814
1814
  action: string;
1815
1815
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
1816
1816
  decision?: {
1817
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1817
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1818
1818
  metadata?: Record<string, unknown> | undefined;
1819
1819
  reason?: string | undefined;
1820
1820
  policy?: string | undefined;
@@ -1834,9 +1834,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1834
1834
  scope?: {
1835
1835
  metadata?: Record<string, unknown> | undefined;
1836
1836
  toolName?: string | undefined;
1837
- conversationId?: string | undefined;
1838
1837
  runId?: (string & z.BRAND<"RunId">) | undefined;
1839
1838
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
1839
+ conversationId?: string | undefined;
1840
1840
  turnId?: string | undefined;
1841
1841
  traceId?: string | undefined;
1842
1842
  agentSpecId?: string | undefined;
@@ -1845,8 +1845,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1845
1845
  nodeId?: string | undefined;
1846
1846
  } | undefined;
1847
1847
  }, {
1848
- runId: string;
1849
1848
  envelopeId: string;
1849
+ runId: string;
1850
1850
  ts: number;
1851
1851
  actor: {
1852
1852
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -1856,7 +1856,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1856
1856
  action: string;
1857
1857
  parentRunId?: string | undefined;
1858
1858
  decision?: {
1859
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1859
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1860
1860
  metadata?: Record<string, unknown> | undefined;
1861
1861
  reason?: string | undefined;
1862
1862
  policy?: string | undefined;
@@ -1876,9 +1876,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1876
1876
  scope?: {
1877
1877
  metadata?: Record<string, unknown> | undefined;
1878
1878
  toolName?: string | undefined;
1879
- conversationId?: string | undefined;
1880
1879
  runId?: string | undefined;
1881
1880
  parentRunId?: string | undefined;
1881
+ conversationId?: string | undefined;
1882
1882
  turnId?: string | undefined;
1883
1883
  traceId?: string | undefined;
1884
1884
  agentSpecId?: string | undefined;
@@ -1895,8 +1895,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1895
1895
  conversation_id: string;
1896
1896
  turn_id: string;
1897
1897
  envelope: {
1898
- runId: string & z.BRAND<"RunId">;
1899
1898
  envelopeId: string;
1899
+ runId: string & z.BRAND<"RunId">;
1900
1900
  ts: number;
1901
1901
  actor: {
1902
1902
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -1906,7 +1906,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1906
1906
  action: string;
1907
1907
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
1908
1908
  decision?: {
1909
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1909
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1910
1910
  metadata?: Record<string, unknown> | undefined;
1911
1911
  reason?: string | undefined;
1912
1912
  policy?: string | undefined;
@@ -1926,9 +1926,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1926
1926
  scope?: {
1927
1927
  metadata?: Record<string, unknown> | undefined;
1928
1928
  toolName?: string | undefined;
1929
- conversationId?: string | undefined;
1930
1929
  runId?: (string & z.BRAND<"RunId">) | undefined;
1931
1930
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
1931
+ conversationId?: string | undefined;
1932
1932
  turnId?: string | undefined;
1933
1933
  traceId?: string | undefined;
1934
1934
  agentSpecId?: string | undefined;
@@ -1950,8 +1950,8 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1950
1950
  conversation_id: string;
1951
1951
  turn_id: string;
1952
1952
  envelope: {
1953
- runId: string;
1954
1953
  envelopeId: string;
1954
+ runId: string;
1955
1955
  ts: number;
1956
1956
  actor: {
1957
1957
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -1961,7 +1961,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1961
1961
  action: string;
1962
1962
  parentRunId?: string | undefined;
1963
1963
  decision?: {
1964
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
1964
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
1965
1965
  metadata?: Record<string, unknown> | undefined;
1966
1966
  reason?: string | undefined;
1967
1967
  policy?: string | undefined;
@@ -1981,9 +1981,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1981
1981
  scope?: {
1982
1982
  metadata?: Record<string, unknown> | undefined;
1983
1983
  toolName?: string | undefined;
1984
- conversationId?: string | undefined;
1985
1984
  runId?: string | undefined;
1986
1985
  parentRunId?: string | undefined;
1986
+ conversationId?: string | undefined;
1987
1987
  turnId?: string | undefined;
1988
1988
  traceId?: string | undefined;
1989
1989
  agentSpecId?: string | undefined;
@@ -2042,7 +2042,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2042
2042
  kind: z.ZodString;
2043
2043
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
2044
2044
  }, "strict", z.ZodTypeAny, {
2045
- kind: string;
2046
2045
  schema_version: 2;
2047
2046
  producer: {
2048
2047
  model_id: string;
@@ -2051,9 +2050,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2051
2050
  capability_id: string;
2052
2051
  endpoint_model_id: string;
2053
2052
  };
2053
+ kind: string;
2054
2054
  payload: SerializableJsonValue;
2055
2055
  }, {
2056
- kind: string;
2057
2056
  schema_version: 2;
2058
2057
  producer: {
2059
2058
  model_id: string;
@@ -2062,6 +2061,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2062
2061
  capability_id: string;
2063
2062
  endpoint_model_id: string;
2064
2063
  };
2064
+ kind: string;
2065
2065
  payload: SerializableJsonValue;
2066
2066
  }>, "many">>;
2067
2067
  assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -2091,7 +2091,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2091
2091
  kind: z.ZodString;
2092
2092
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
2093
2093
  }, "strict", z.ZodTypeAny, {
2094
- kind: string;
2095
2094
  schema_version: 2;
2096
2095
  producer: {
2097
2096
  model_id: string;
@@ -2100,9 +2099,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2100
2099
  capability_id: string;
2101
2100
  endpoint_model_id: string;
2102
2101
  };
2102
+ kind: string;
2103
2103
  payload: SerializableJsonValue;
2104
2104
  }, {
2105
- kind: string;
2106
2105
  schema_version: 2;
2107
2106
  producer: {
2108
2107
  model_id: string;
@@ -2111,13 +2110,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2111
2110
  capability_id: string;
2112
2111
  endpoint_model_id: string;
2113
2112
  };
2113
+ kind: string;
2114
2114
  payload: SerializableJsonValue;
2115
2115
  }>, "many">>;
2116
2116
  }, "strict", z.ZodTypeAny, {
2117
2117
  type: "text";
2118
2118
  text: string;
2119
2119
  provider_continuations?: {
2120
- kind: string;
2121
2120
  schema_version: 2;
2122
2121
  producer: {
2123
2122
  model_id: string;
@@ -2126,13 +2125,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2126
2125
  capability_id: string;
2127
2126
  endpoint_model_id: string;
2128
2127
  };
2128
+ kind: string;
2129
2129
  payload: SerializableJsonValue;
2130
2130
  }[] | undefined;
2131
2131
  }, {
2132
2132
  type: "text";
2133
2133
  text: string;
2134
2134
  provider_continuations?: {
2135
- kind: string;
2136
2135
  schema_version: 2;
2137
2136
  producer: {
2138
2137
  model_id: string;
@@ -2141,6 +2140,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2141
2140
  capability_id: string;
2142
2141
  endpoint_model_id: string;
2143
2142
  };
2143
+ kind: string;
2144
2144
  payload: SerializableJsonValue;
2145
2145
  }[] | undefined;
2146
2146
  }>, z.ZodObject<{
@@ -2170,7 +2170,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2170
2170
  kind: z.ZodString;
2171
2171
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
2172
2172
  }, "strict", z.ZodTypeAny, {
2173
- kind: string;
2174
2173
  schema_version: 2;
2175
2174
  producer: {
2176
2175
  model_id: string;
@@ -2179,9 +2178,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2179
2178
  capability_id: string;
2180
2179
  endpoint_model_id: string;
2181
2180
  };
2181
+ kind: string;
2182
2182
  payload: SerializableJsonValue;
2183
2183
  }, {
2184
- kind: string;
2185
2184
  schema_version: 2;
2186
2185
  producer: {
2187
2186
  model_id: string;
@@ -2190,13 +2189,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2190
2189
  capability_id: string;
2191
2190
  endpoint_model_id: string;
2192
2191
  };
2192
+ kind: string;
2193
2193
  payload: SerializableJsonValue;
2194
2194
  }>, "many">>;
2195
2195
  }, "strict", z.ZodTypeAny, {
2196
2196
  type: "reasoning";
2197
2197
  text: string;
2198
2198
  provider_continuations?: {
2199
- kind: string;
2200
2199
  schema_version: 2;
2201
2200
  producer: {
2202
2201
  model_id: string;
@@ -2205,13 +2204,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2205
2204
  capability_id: string;
2206
2205
  endpoint_model_id: string;
2207
2206
  };
2207
+ kind: string;
2208
2208
  payload: SerializableJsonValue;
2209
2209
  }[] | undefined;
2210
2210
  }, {
2211
2211
  type: "reasoning";
2212
2212
  text: string;
2213
2213
  provider_continuations?: {
2214
- kind: string;
2215
2214
  schema_version: 2;
2216
2215
  producer: {
2217
2216
  model_id: string;
@@ -2220,6 +2219,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2220
2219
  capability_id: string;
2221
2220
  endpoint_model_id: string;
2222
2221
  };
2222
+ kind: string;
2223
2223
  payload: SerializableJsonValue;
2224
2224
  }[] | undefined;
2225
2225
  }>, z.ZodObject<{
@@ -2249,7 +2249,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2249
2249
  kind: z.ZodString;
2250
2250
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
2251
2251
  }, "strict", z.ZodTypeAny, {
2252
- kind: string;
2253
2252
  schema_version: 2;
2254
2253
  producer: {
2255
2254
  model_id: string;
@@ -2258,9 +2257,9 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2258
2257
  capability_id: string;
2259
2258
  endpoint_model_id: string;
2260
2259
  };
2260
+ kind: string;
2261
2261
  payload: SerializableJsonValue;
2262
2262
  }, {
2263
- kind: string;
2264
2263
  schema_version: 2;
2265
2264
  producer: {
2266
2265
  model_id: string;
@@ -2269,13 +2268,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2269
2268
  capability_id: string;
2270
2269
  endpoint_model_id: string;
2271
2270
  };
2271
+ kind: string;
2272
2272
  payload: SerializableJsonValue;
2273
2273
  }>, "many">>;
2274
2274
  }, "strict", z.ZodTypeAny, {
2275
2275
  type: "tool_call";
2276
2276
  tool_call_id: string;
2277
2277
  provider_continuations?: {
2278
- kind: string;
2279
2278
  schema_version: 2;
2280
2279
  producer: {
2281
2280
  model_id: string;
@@ -2284,13 +2283,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2284
2283
  capability_id: string;
2285
2284
  endpoint_model_id: string;
2286
2285
  };
2286
+ kind: string;
2287
2287
  payload: SerializableJsonValue;
2288
2288
  }[] | undefined;
2289
2289
  }, {
2290
2290
  type: "tool_call";
2291
2291
  tool_call_id: string;
2292
2292
  provider_continuations?: {
2293
- kind: string;
2294
2293
  schema_version: 2;
2295
2294
  producer: {
2296
2295
  model_id: string;
@@ -2299,6 +2298,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2299
2298
  capability_id: string;
2300
2299
  endpoint_model_id: string;
2301
2300
  };
2301
+ kind: string;
2302
2302
  payload: SerializableJsonValue;
2303
2303
  }[] | undefined;
2304
2304
  }>]>, "many">>;
@@ -2315,7 +2315,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2315
2315
  is_complete: boolean;
2316
2316
  answer_id: string;
2317
2317
  provider_continuations?: {
2318
- kind: string;
2319
2318
  schema_version: 2;
2320
2319
  producer: {
2321
2320
  model_id: string;
@@ -2324,13 +2323,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2324
2323
  capability_id: string;
2325
2324
  endpoint_model_id: string;
2326
2325
  };
2326
+ kind: string;
2327
2327
  payload: SerializableJsonValue;
2328
2328
  }[] | undefined;
2329
2329
  assistant_replay_parts?: ({
2330
2330
  type: "text";
2331
2331
  text: string;
2332
2332
  provider_continuations?: {
2333
- kind: string;
2334
2333
  schema_version: 2;
2335
2334
  producer: {
2336
2335
  model_id: string;
@@ -2339,13 +2338,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2339
2338
  capability_id: string;
2340
2339
  endpoint_model_id: string;
2341
2340
  };
2341
+ kind: string;
2342
2342
  payload: SerializableJsonValue;
2343
2343
  }[] | undefined;
2344
2344
  } | {
2345
2345
  type: "reasoning";
2346
2346
  text: string;
2347
2347
  provider_continuations?: {
2348
- kind: string;
2349
2348
  schema_version: 2;
2350
2349
  producer: {
2351
2350
  model_id: string;
@@ -2354,13 +2353,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2354
2353
  capability_id: string;
2355
2354
  endpoint_model_id: string;
2356
2355
  };
2356
+ kind: string;
2357
2357
  payload: SerializableJsonValue;
2358
2358
  }[] | undefined;
2359
2359
  } | {
2360
2360
  type: "tool_call";
2361
2361
  tool_call_id: string;
2362
2362
  provider_continuations?: {
2363
- kind: string;
2364
2363
  schema_version: 2;
2365
2364
  producer: {
2366
2365
  model_id: string;
@@ -2369,6 +2368,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2369
2368
  capability_id: string;
2370
2369
  endpoint_model_id: string;
2371
2370
  };
2371
+ kind: string;
2372
2372
  payload: SerializableJsonValue;
2373
2373
  }[] | undefined;
2374
2374
  })[] | undefined;
@@ -2389,7 +2389,6 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2389
2389
  turn_id: string;
2390
2390
  answer_id: string;
2391
2391
  provider_continuations?: {
2392
- kind: string;
2393
2392
  schema_version: 2;
2394
2393
  producer: {
2395
2394
  model_id: string;
@@ -2398,13 +2397,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2398
2397
  capability_id: string;
2399
2398
  endpoint_model_id: string;
2400
2399
  };
2400
+ kind: string;
2401
2401
  payload: SerializableJsonValue;
2402
2402
  }[] | undefined;
2403
2403
  assistant_replay_parts?: ({
2404
2404
  type: "text";
2405
2405
  text: string;
2406
2406
  provider_continuations?: {
2407
- kind: string;
2408
2407
  schema_version: 2;
2409
2408
  producer: {
2410
2409
  model_id: string;
@@ -2413,13 +2412,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2413
2412
  capability_id: string;
2414
2413
  endpoint_model_id: string;
2415
2414
  };
2415
+ kind: string;
2416
2416
  payload: SerializableJsonValue;
2417
2417
  }[] | undefined;
2418
2418
  } | {
2419
2419
  type: "reasoning";
2420
2420
  text: string;
2421
2421
  provider_continuations?: {
2422
- kind: string;
2423
2422
  schema_version: 2;
2424
2423
  producer: {
2425
2424
  model_id: string;
@@ -2428,13 +2427,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2428
2427
  capability_id: string;
2429
2428
  endpoint_model_id: string;
2430
2429
  };
2430
+ kind: string;
2431
2431
  payload: SerializableJsonValue;
2432
2432
  }[] | undefined;
2433
2433
  } | {
2434
2434
  type: "tool_call";
2435
2435
  tool_call_id: string;
2436
2436
  provider_continuations?: {
2437
- kind: string;
2438
2437
  schema_version: 2;
2439
2438
  producer: {
2440
2439
  model_id: string;
@@ -2443,6 +2442,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2443
2442
  capability_id: string;
2444
2443
  endpoint_model_id: string;
2445
2444
  };
2445
+ kind: string;
2446
2446
  payload: SerializableJsonValue;
2447
2447
  }[] | undefined;
2448
2448
  })[] | undefined;
@@ -2690,13 +2690,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2690
2690
  turn_id: string;
2691
2691
  op: "truncate_after" | "replace" | "redo" | "branch";
2692
2692
  metadata?: Record<string, SerializableJsonValue> | undefined;
2693
- reason?: string | undefined;
2694
2693
  run_id?: (string & z.BRAND<"RunId">) | undefined;
2695
2694
  parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
2696
2695
  lane?: "foreground" | "auxiliary" | "child" | undefined;
2697
2696
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
2698
2697
  ephemeral?: boolean | undefined;
2699
2698
  meta?: SerializableJsonValue | undefined;
2699
+ reason?: string | undefined;
2700
2700
  target_id?: string | undefined;
2701
2701
  }, {
2702
2702
  id: string;
@@ -2707,13 +2707,13 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2707
2707
  op: "truncate_after" | "replace" | "redo" | "branch";
2708
2708
  metadata?: Record<string, SerializableJsonValue> | undefined;
2709
2709
  version?: 1 | undefined;
2710
- reason?: string | undefined;
2711
2710
  run_id?: string | undefined;
2712
2711
  parent_run_id?: string | undefined;
2713
2712
  lane?: "foreground" | "auxiliary" | "child" | undefined;
2714
2713
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
2715
2714
  ephemeral?: boolean | undefined;
2716
2715
  meta?: SerializableJsonValue | undefined;
2716
+ reason?: string | undefined;
2717
2717
  target_id?: string | undefined;
2718
2718
  }>, z.ZodObject<{
2719
2719
  id: z.ZodEffects<z.ZodString, string, string>;
@@ -3005,10 +3005,10 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3005
3005
  type: "run_execution_metrics";
3006
3006
  timestamp: number;
3007
3007
  version: 1;
3008
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
3009
3008
  conversation_id: string;
3010
3009
  turn_id: string;
3011
3010
  duration_ms: number;
3011
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
3012
3012
  execution_id: string;
3013
3013
  metadata?: Record<string, SerializableJsonValue> | undefined;
3014
3014
  run_id?: (string & z.BRAND<"RunId">) | undefined;
@@ -3039,10 +3039,10 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3039
3039
  id: string;
3040
3040
  type: "run_execution_metrics";
3041
3041
  timestamp: number;
3042
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
3043
3042
  conversation_id: string;
3044
3043
  turn_id: string;
3045
3044
  duration_ms: number;
3045
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
3046
3046
  execution_id: string;
3047
3047
  metadata?: Record<string, SerializableJsonValue> | undefined;
3048
3048
  version?: 1 | undefined;
@@ -3281,7 +3281,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3281
3281
  kind: z.ZodString;
3282
3282
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
3283
3283
  }, "strict", z.ZodTypeAny, {
3284
- kind: string;
3285
3284
  schema_version: 2;
3286
3285
  producer: {
3287
3286
  model_id: string;
@@ -3290,9 +3289,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3290
3289
  capability_id: string;
3291
3290
  endpoint_model_id: string;
3292
3291
  };
3292
+ kind: string;
3293
3293
  payload: SerializableJsonValue;
3294
3294
  }, {
3295
- kind: string;
3296
3295
  schema_version: 2;
3297
3296
  producer: {
3298
3297
  model_id: string;
@@ -3301,6 +3300,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3301
3300
  capability_id: string;
3302
3301
  endpoint_model_id: string;
3303
3302
  };
3303
+ kind: string;
3304
3304
  payload: SerializableJsonValue;
3305
3305
  }>, "many">>;
3306
3306
  assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -3330,7 +3330,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3330
3330
  kind: z.ZodString;
3331
3331
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
3332
3332
  }, "strict", z.ZodTypeAny, {
3333
- kind: string;
3334
3333
  schema_version: 2;
3335
3334
  producer: {
3336
3335
  model_id: string;
@@ -3339,9 +3338,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3339
3338
  capability_id: string;
3340
3339
  endpoint_model_id: string;
3341
3340
  };
3341
+ kind: string;
3342
3342
  payload: SerializableJsonValue;
3343
3343
  }, {
3344
- kind: string;
3345
3344
  schema_version: 2;
3346
3345
  producer: {
3347
3346
  model_id: string;
@@ -3350,13 +3349,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3350
3349
  capability_id: string;
3351
3350
  endpoint_model_id: string;
3352
3351
  };
3352
+ kind: string;
3353
3353
  payload: SerializableJsonValue;
3354
3354
  }>, "many">>;
3355
3355
  }, "strict", z.ZodTypeAny, {
3356
3356
  type: "text";
3357
3357
  text: string;
3358
3358
  provider_continuations?: {
3359
- kind: string;
3360
3359
  schema_version: 2;
3361
3360
  producer: {
3362
3361
  model_id: string;
@@ -3365,13 +3364,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3365
3364
  capability_id: string;
3366
3365
  endpoint_model_id: string;
3367
3366
  };
3367
+ kind: string;
3368
3368
  payload: SerializableJsonValue;
3369
3369
  }[] | undefined;
3370
3370
  }, {
3371
3371
  type: "text";
3372
3372
  text: string;
3373
3373
  provider_continuations?: {
3374
- kind: string;
3375
3374
  schema_version: 2;
3376
3375
  producer: {
3377
3376
  model_id: string;
@@ -3380,6 +3379,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3380
3379
  capability_id: string;
3381
3380
  endpoint_model_id: string;
3382
3381
  };
3382
+ kind: string;
3383
3383
  payload: SerializableJsonValue;
3384
3384
  }[] | undefined;
3385
3385
  }>, z.ZodObject<{
@@ -3409,7 +3409,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3409
3409
  kind: z.ZodString;
3410
3410
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
3411
3411
  }, "strict", z.ZodTypeAny, {
3412
- kind: string;
3413
3412
  schema_version: 2;
3414
3413
  producer: {
3415
3414
  model_id: string;
@@ -3418,9 +3417,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3418
3417
  capability_id: string;
3419
3418
  endpoint_model_id: string;
3420
3419
  };
3420
+ kind: string;
3421
3421
  payload: SerializableJsonValue;
3422
3422
  }, {
3423
- kind: string;
3424
3423
  schema_version: 2;
3425
3424
  producer: {
3426
3425
  model_id: string;
@@ -3429,13 +3428,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3429
3428
  capability_id: string;
3430
3429
  endpoint_model_id: string;
3431
3430
  };
3431
+ kind: string;
3432
3432
  payload: SerializableJsonValue;
3433
3433
  }>, "many">>;
3434
3434
  }, "strict", z.ZodTypeAny, {
3435
3435
  type: "reasoning";
3436
3436
  text: string;
3437
3437
  provider_continuations?: {
3438
- kind: string;
3439
3438
  schema_version: 2;
3440
3439
  producer: {
3441
3440
  model_id: string;
@@ -3444,13 +3443,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3444
3443
  capability_id: string;
3445
3444
  endpoint_model_id: string;
3446
3445
  };
3446
+ kind: string;
3447
3447
  payload: SerializableJsonValue;
3448
3448
  }[] | undefined;
3449
3449
  }, {
3450
3450
  type: "reasoning";
3451
3451
  text: string;
3452
3452
  provider_continuations?: {
3453
- kind: string;
3454
3453
  schema_version: 2;
3455
3454
  producer: {
3456
3455
  model_id: string;
@@ -3459,6 +3458,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3459
3458
  capability_id: string;
3460
3459
  endpoint_model_id: string;
3461
3460
  };
3461
+ kind: string;
3462
3462
  payload: SerializableJsonValue;
3463
3463
  }[] | undefined;
3464
3464
  }>, z.ZodObject<{
@@ -3488,7 +3488,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3488
3488
  kind: z.ZodString;
3489
3489
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
3490
3490
  }, "strict", z.ZodTypeAny, {
3491
- kind: string;
3492
3491
  schema_version: 2;
3493
3492
  producer: {
3494
3493
  model_id: string;
@@ -3497,9 +3496,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3497
3496
  capability_id: string;
3498
3497
  endpoint_model_id: string;
3499
3498
  };
3499
+ kind: string;
3500
3500
  payload: SerializableJsonValue;
3501
3501
  }, {
3502
- kind: string;
3503
3502
  schema_version: 2;
3504
3503
  producer: {
3505
3504
  model_id: string;
@@ -3508,13 +3507,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3508
3507
  capability_id: string;
3509
3508
  endpoint_model_id: string;
3510
3509
  };
3510
+ kind: string;
3511
3511
  payload: SerializableJsonValue;
3512
3512
  }>, "many">>;
3513
3513
  }, "strict", z.ZodTypeAny, {
3514
3514
  type: "tool_call";
3515
3515
  tool_call_id: string;
3516
3516
  provider_continuations?: {
3517
- kind: string;
3518
3517
  schema_version: 2;
3519
3518
  producer: {
3520
3519
  model_id: string;
@@ -3523,13 +3522,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3523
3522
  capability_id: string;
3524
3523
  endpoint_model_id: string;
3525
3524
  };
3525
+ kind: string;
3526
3526
  payload: SerializableJsonValue;
3527
3527
  }[] | undefined;
3528
3528
  }, {
3529
3529
  type: "tool_call";
3530
3530
  tool_call_id: string;
3531
3531
  provider_continuations?: {
3532
- kind: string;
3533
3532
  schema_version: 2;
3534
3533
  producer: {
3535
3534
  model_id: string;
@@ -3538,13 +3537,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3538
3537
  capability_id: string;
3539
3538
  endpoint_model_id: string;
3540
3539
  };
3540
+ kind: string;
3541
3541
  payload: SerializableJsonValue;
3542
3542
  }[] | undefined;
3543
3543
  }>]>, "many">>;
3544
3544
  }, "strict", z.ZodTypeAny, {
3545
3545
  tool_calls?: SerializableJsonValue[] | undefined;
3546
3546
  provider_continuations?: {
3547
- kind: string;
3548
3547
  schema_version: 2;
3549
3548
  producer: {
3550
3549
  model_id: string;
@@ -3553,13 +3552,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3553
3552
  capability_id: string;
3554
3553
  endpoint_model_id: string;
3555
3554
  };
3555
+ kind: string;
3556
3556
  payload: SerializableJsonValue;
3557
3557
  }[] | undefined;
3558
3558
  assistant_replay_parts?: ({
3559
3559
  type: "text";
3560
3560
  text: string;
3561
3561
  provider_continuations?: {
3562
- kind: string;
3563
3562
  schema_version: 2;
3564
3563
  producer: {
3565
3564
  model_id: string;
@@ -3568,13 +3567,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3568
3567
  capability_id: string;
3569
3568
  endpoint_model_id: string;
3570
3569
  };
3570
+ kind: string;
3571
3571
  payload: SerializableJsonValue;
3572
3572
  }[] | undefined;
3573
3573
  } | {
3574
3574
  type: "reasoning";
3575
3575
  text: string;
3576
3576
  provider_continuations?: {
3577
- kind: string;
3578
3577
  schema_version: 2;
3579
3578
  producer: {
3580
3579
  model_id: string;
@@ -3583,13 +3582,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3583
3582
  capability_id: string;
3584
3583
  endpoint_model_id: string;
3585
3584
  };
3585
+ kind: string;
3586
3586
  payload: SerializableJsonValue;
3587
3587
  }[] | undefined;
3588
3588
  } | {
3589
3589
  type: "tool_call";
3590
3590
  tool_call_id: string;
3591
3591
  provider_continuations?: {
3592
- kind: string;
3593
3592
  schema_version: 2;
3594
3593
  producer: {
3595
3594
  model_id: string;
@@ -3598,6 +3597,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3598
3597
  capability_id: string;
3599
3598
  endpoint_model_id: string;
3600
3599
  };
3600
+ kind: string;
3601
3601
  payload: SerializableJsonValue;
3602
3602
  }[] | undefined;
3603
3603
  })[] | undefined;
@@ -3605,7 +3605,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3605
3605
  }, {
3606
3606
  tool_calls?: SerializableJsonValue[] | undefined;
3607
3607
  provider_continuations?: {
3608
- kind: string;
3609
3608
  schema_version: 2;
3610
3609
  producer: {
3611
3610
  model_id: string;
@@ -3614,13 +3613,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3614
3613
  capability_id: string;
3615
3614
  endpoint_model_id: string;
3616
3615
  };
3616
+ kind: string;
3617
3617
  payload: SerializableJsonValue;
3618
3618
  }[] | undefined;
3619
3619
  assistant_replay_parts?: ({
3620
3620
  type: "text";
3621
3621
  text: string;
3622
3622
  provider_continuations?: {
3623
- kind: string;
3624
3623
  schema_version: 2;
3625
3624
  producer: {
3626
3625
  model_id: string;
@@ -3629,13 +3628,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3629
3628
  capability_id: string;
3630
3629
  endpoint_model_id: string;
3631
3630
  };
3631
+ kind: string;
3632
3632
  payload: SerializableJsonValue;
3633
3633
  }[] | undefined;
3634
3634
  } | {
3635
3635
  type: "reasoning";
3636
3636
  text: string;
3637
3637
  provider_continuations?: {
3638
- kind: string;
3639
3638
  schema_version: 2;
3640
3639
  producer: {
3641
3640
  model_id: string;
@@ -3644,13 +3643,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3644
3643
  capability_id: string;
3645
3644
  endpoint_model_id: string;
3646
3645
  };
3646
+ kind: string;
3647
3647
  payload: SerializableJsonValue;
3648
3648
  }[] | undefined;
3649
3649
  } | {
3650
3650
  type: "tool_call";
3651
3651
  tool_call_id: string;
3652
3652
  provider_continuations?: {
3653
- kind: string;
3654
3653
  schema_version: 2;
3655
3654
  producer: {
3656
3655
  model_id: string;
@@ -3659,6 +3658,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3659
3658
  capability_id: string;
3660
3659
  endpoint_model_id: string;
3661
3660
  };
3661
+ kind: string;
3662
3662
  payload: SerializableJsonValue;
3663
3663
  }[] | undefined;
3664
3664
  })[] | undefined;
@@ -3668,8 +3668,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3668
3668
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
3669
3669
  }, "strip", z.ZodTypeAny, {
3670
3670
  id: string;
3671
- status: "error" | "loading" | "success";
3672
3671
  type: "tool_call_decision";
3672
+ status: "error" | "loading" | "success";
3673
3673
  tool_call_id: string & z.BRAND<"ToolCallId">;
3674
3674
  tool_name: string;
3675
3675
  timestamp: number;
@@ -3680,7 +3680,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3680
3680
  payload?: {
3681
3681
  tool_calls?: SerializableJsonValue[] | undefined;
3682
3682
  provider_continuations?: {
3683
- kind: string;
3684
3683
  schema_version: 2;
3685
3684
  producer: {
3686
3685
  model_id: string;
@@ -3689,13 +3688,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3689
3688
  capability_id: string;
3690
3689
  endpoint_model_id: string;
3691
3690
  };
3691
+ kind: string;
3692
3692
  payload: SerializableJsonValue;
3693
3693
  }[] | undefined;
3694
3694
  assistant_replay_parts?: ({
3695
3695
  type: "text";
3696
3696
  text: string;
3697
3697
  provider_continuations?: {
3698
- kind: string;
3699
3698
  schema_version: 2;
3700
3699
  producer: {
3701
3700
  model_id: string;
@@ -3704,13 +3703,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3704
3703
  capability_id: string;
3705
3704
  endpoint_model_id: string;
3706
3705
  };
3706
+ kind: string;
3707
3707
  payload: SerializableJsonValue;
3708
3708
  }[] | undefined;
3709
3709
  } | {
3710
3710
  type: "reasoning";
3711
3711
  text: string;
3712
3712
  provider_continuations?: {
3713
- kind: string;
3714
3713
  schema_version: 2;
3715
3714
  producer: {
3716
3715
  model_id: string;
@@ -3719,13 +3718,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3719
3718
  capability_id: string;
3720
3719
  endpoint_model_id: string;
3721
3720
  };
3721
+ kind: string;
3722
3722
  payload: SerializableJsonValue;
3723
3723
  }[] | undefined;
3724
3724
  } | {
3725
3725
  type: "tool_call";
3726
3726
  tool_call_id: string;
3727
3727
  provider_continuations?: {
3728
- kind: string;
3729
3728
  schema_version: 2;
3730
3729
  producer: {
3731
3730
  model_id: string;
@@ -3734,6 +3733,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3734
3733
  capability_id: string;
3735
3734
  endpoint_model_id: string;
3736
3735
  };
3736
+ kind: string;
3737
3737
  payload: SerializableJsonValue;
3738
3738
  }[] | undefined;
3739
3739
  })[] | undefined;
@@ -3750,8 +3750,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3750
3750
  meta?: Record<string, SerializableJsonValue> | undefined;
3751
3751
  }, {
3752
3752
  id: string;
3753
- status: "error" | "loading" | "success";
3754
3753
  type: "tool_call_decision";
3754
+ status: "error" | "loading" | "success";
3755
3755
  tool_call_id: string;
3756
3756
  tool_name: string;
3757
3757
  timestamp: number;
@@ -3761,7 +3761,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3761
3761
  payload?: {
3762
3762
  tool_calls?: SerializableJsonValue[] | undefined;
3763
3763
  provider_continuations?: {
3764
- kind: string;
3765
3764
  schema_version: 2;
3766
3765
  producer: {
3767
3766
  model_id: string;
@@ -3770,13 +3769,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3770
3769
  capability_id: string;
3771
3770
  endpoint_model_id: string;
3772
3771
  };
3772
+ kind: string;
3773
3773
  payload: SerializableJsonValue;
3774
3774
  }[] | undefined;
3775
3775
  assistant_replay_parts?: ({
3776
3776
  type: "text";
3777
3777
  text: string;
3778
3778
  provider_continuations?: {
3779
- kind: string;
3780
3779
  schema_version: 2;
3781
3780
  producer: {
3782
3781
  model_id: string;
@@ -3785,13 +3784,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3785
3784
  capability_id: string;
3786
3785
  endpoint_model_id: string;
3787
3786
  };
3787
+ kind: string;
3788
3788
  payload: SerializableJsonValue;
3789
3789
  }[] | undefined;
3790
3790
  } | {
3791
3791
  type: "reasoning";
3792
3792
  text: string;
3793
3793
  provider_continuations?: {
3794
- kind: string;
3795
3794
  schema_version: 2;
3796
3795
  producer: {
3797
3796
  model_id: string;
@@ -3800,13 +3799,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3800
3799
  capability_id: string;
3801
3800
  endpoint_model_id: string;
3802
3801
  };
3802
+ kind: string;
3803
3803
  payload: SerializableJsonValue;
3804
3804
  }[] | undefined;
3805
3805
  } | {
3806
3806
  type: "tool_call";
3807
3807
  tool_call_id: string;
3808
3808
  provider_continuations?: {
3809
- kind: string;
3810
3809
  schema_version: 2;
3811
3810
  producer: {
3812
3811
  model_id: string;
@@ -3815,6 +3814,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3815
3814
  capability_id: string;
3816
3815
  endpoint_model_id: string;
3817
3816
  };
3817
+ kind: string;
3818
3818
  payload: SerializableJsonValue;
3819
3819
  }[] | undefined;
3820
3820
  })[] | undefined;
@@ -3854,8 +3854,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3854
3854
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>>>;
3855
3855
  }, "strip", z.ZodTypeAny, {
3856
3856
  id: string;
3857
- status: "error" | "loading" | "success";
3858
3857
  type: "tool_process";
3858
+ status: "error" | "loading" | "success";
3859
3859
  tool_call_id: string & z.BRAND<"ToolCallId">;
3860
3860
  tool_name: string;
3861
3861
  timestamp: number;
@@ -3875,8 +3875,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3875
3875
  meta?: Record<string, SerializableJsonValue> | undefined;
3876
3876
  }, {
3877
3877
  id: string;
3878
- status: "error" | "loading" | "success";
3879
3878
  type: "tool_process";
3879
+ status: "error" | "loading" | "success";
3880
3880
  tool_call_id: string;
3881
3881
  tool_name: string;
3882
3882
  timestamp: number;
@@ -3952,8 +3952,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3952
3952
  }>, "many">>;
3953
3953
  }, "strip", z.ZodTypeAny, {
3954
3954
  id: string;
3955
- status: "error" | "success";
3956
3955
  type: "tool_output";
3956
+ status: "error" | "success";
3957
3957
  tool_call_id: string & z.BRAND<"ToolCallId">;
3958
3958
  tool_name: string;
3959
3959
  timestamp: number;
@@ -3985,8 +3985,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
3985
3985
  duration_ms?: number | undefined;
3986
3986
  }, {
3987
3987
  id: string;
3988
- status: "error" | "success";
3989
3988
  type: "tool_output";
3989
+ status: "error" | "success";
3990
3990
  tool_call_id: string;
3991
3991
  tool_name: string;
3992
3992
  timestamp: number;
@@ -4102,8 +4102,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4102
4102
  ephemeral: z.ZodLiteral<true>;
4103
4103
  }, "strip", z.ZodTypeAny, {
4104
4104
  id: string;
4105
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
4106
4105
  type: "subrun_trace";
4106
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
4107
4107
  timestamp: number;
4108
4108
  version: 1;
4109
4109
  conversation_id: string;
@@ -4155,8 +4155,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4155
4155
  replaced_message_ids?: string[] | undefined;
4156
4156
  }, {
4157
4157
  id: string;
4158
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
4159
4158
  type: "subrun_trace";
4159
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
4160
4160
  timestamp: number;
4161
4161
  conversation_id: string;
4162
4162
  turn_id: string;
@@ -4309,12 +4309,12 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4309
4309
  policy: z.ZodOptional<z.ZodString>;
4310
4310
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4311
4311
  }, "strip", z.ZodTypeAny, {
4312
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4312
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4313
4313
  metadata?: Record<string, unknown> | undefined;
4314
4314
  reason?: string | undefined;
4315
4315
  policy?: string | undefined;
4316
4316
  }, {
4317
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4317
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4318
4318
  metadata?: Record<string, unknown> | undefined;
4319
4319
  reason?: string | undefined;
4320
4320
  policy?: string | undefined;
@@ -4366,9 +4366,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4366
4366
  }, "strip", z.ZodTypeAny, {
4367
4367
  metadata?: Record<string, unknown> | undefined;
4368
4368
  toolName?: string | undefined;
4369
- conversationId?: string | undefined;
4370
4369
  runId?: (string & z.BRAND<"RunId">) | undefined;
4371
4370
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
4371
+ conversationId?: string | undefined;
4372
4372
  turnId?: string | undefined;
4373
4373
  traceId?: string | undefined;
4374
4374
  agentSpecId?: string | undefined;
@@ -4378,9 +4378,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4378
4378
  }, {
4379
4379
  metadata?: Record<string, unknown> | undefined;
4380
4380
  toolName?: string | undefined;
4381
- conversationId?: string | undefined;
4382
4381
  runId?: string | undefined;
4383
4382
  parentRunId?: string | undefined;
4383
+ conversationId?: string | undefined;
4384
4384
  turnId?: string | undefined;
4385
4385
  traceId?: string | undefined;
4386
4386
  agentSpecId?: string | undefined;
@@ -4389,8 +4389,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4389
4389
  nodeId?: string | undefined;
4390
4390
  }>>;
4391
4391
  }, "strip", z.ZodTypeAny, {
4392
- runId: string & z.BRAND<"RunId">;
4393
4392
  envelopeId: string;
4393
+ runId: string & z.BRAND<"RunId">;
4394
4394
  ts: number;
4395
4395
  actor: {
4396
4396
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -4400,7 +4400,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4400
4400
  action: string;
4401
4401
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
4402
4402
  decision?: {
4403
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4403
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4404
4404
  metadata?: Record<string, unknown> | undefined;
4405
4405
  reason?: string | undefined;
4406
4406
  policy?: string | undefined;
@@ -4420,9 +4420,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4420
4420
  scope?: {
4421
4421
  metadata?: Record<string, unknown> | undefined;
4422
4422
  toolName?: string | undefined;
4423
- conversationId?: string | undefined;
4424
4423
  runId?: (string & z.BRAND<"RunId">) | undefined;
4425
4424
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
4425
+ conversationId?: string | undefined;
4426
4426
  turnId?: string | undefined;
4427
4427
  traceId?: string | undefined;
4428
4428
  agentSpecId?: string | undefined;
@@ -4431,8 +4431,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4431
4431
  nodeId?: string | undefined;
4432
4432
  } | undefined;
4433
4433
  }, {
4434
- runId: string;
4435
4434
  envelopeId: string;
4435
+ runId: string;
4436
4436
  ts: number;
4437
4437
  actor: {
4438
4438
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -4442,7 +4442,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4442
4442
  action: string;
4443
4443
  parentRunId?: string | undefined;
4444
4444
  decision?: {
4445
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4445
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4446
4446
  metadata?: Record<string, unknown> | undefined;
4447
4447
  reason?: string | undefined;
4448
4448
  policy?: string | undefined;
@@ -4462,9 +4462,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4462
4462
  scope?: {
4463
4463
  metadata?: Record<string, unknown> | undefined;
4464
4464
  toolName?: string | undefined;
4465
- conversationId?: string | undefined;
4466
4465
  runId?: string | undefined;
4467
4466
  parentRunId?: string | undefined;
4467
+ conversationId?: string | undefined;
4468
4468
  turnId?: string | undefined;
4469
4469
  traceId?: string | undefined;
4470
4470
  agentSpecId?: string | undefined;
@@ -4481,8 +4481,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4481
4481
  conversation_id: string;
4482
4482
  turn_id: string;
4483
4483
  envelope: {
4484
- runId: string & z.BRAND<"RunId">;
4485
4484
  envelopeId: string;
4485
+ runId: string & z.BRAND<"RunId">;
4486
4486
  ts: number;
4487
4487
  actor: {
4488
4488
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -4492,7 +4492,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4492
4492
  action: string;
4493
4493
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
4494
4494
  decision?: {
4495
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4495
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4496
4496
  metadata?: Record<string, unknown> | undefined;
4497
4497
  reason?: string | undefined;
4498
4498
  policy?: string | undefined;
@@ -4512,9 +4512,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4512
4512
  scope?: {
4513
4513
  metadata?: Record<string, unknown> | undefined;
4514
4514
  toolName?: string | undefined;
4515
- conversationId?: string | undefined;
4516
4515
  runId?: (string & z.BRAND<"RunId">) | undefined;
4517
4516
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
4517
+ conversationId?: string | undefined;
4518
4518
  turnId?: string | undefined;
4519
4519
  traceId?: string | undefined;
4520
4520
  agentSpecId?: string | undefined;
@@ -4536,8 +4536,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4536
4536
  conversation_id: string;
4537
4537
  turn_id: string;
4538
4538
  envelope: {
4539
- runId: string;
4540
4539
  envelopeId: string;
4540
+ runId: string;
4541
4541
  ts: number;
4542
4542
  actor: {
4543
4543
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -4547,7 +4547,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4547
4547
  action: string;
4548
4548
  parentRunId?: string | undefined;
4549
4549
  decision?: {
4550
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
4550
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
4551
4551
  metadata?: Record<string, unknown> | undefined;
4552
4552
  reason?: string | undefined;
4553
4553
  policy?: string | undefined;
@@ -4567,9 +4567,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4567
4567
  scope?: {
4568
4568
  metadata?: Record<string, unknown> | undefined;
4569
4569
  toolName?: string | undefined;
4570
- conversationId?: string | undefined;
4571
4570
  runId?: string | undefined;
4572
4571
  parentRunId?: string | undefined;
4572
+ conversationId?: string | undefined;
4573
4573
  turnId?: string | undefined;
4574
4574
  traceId?: string | undefined;
4575
4575
  agentSpecId?: string | undefined;
@@ -4628,7 +4628,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4628
4628
  kind: z.ZodString;
4629
4629
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
4630
4630
  }, "strict", z.ZodTypeAny, {
4631
- kind: string;
4632
4631
  schema_version: 2;
4633
4632
  producer: {
4634
4633
  model_id: string;
@@ -4637,9 +4636,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4637
4636
  capability_id: string;
4638
4637
  endpoint_model_id: string;
4639
4638
  };
4639
+ kind: string;
4640
4640
  payload: SerializableJsonValue;
4641
4641
  }, {
4642
- kind: string;
4643
4642
  schema_version: 2;
4644
4643
  producer: {
4645
4644
  model_id: string;
@@ -4648,6 +4647,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4648
4647
  capability_id: string;
4649
4648
  endpoint_model_id: string;
4650
4649
  };
4650
+ kind: string;
4651
4651
  payload: SerializableJsonValue;
4652
4652
  }>, "many">>;
4653
4653
  assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -4677,7 +4677,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4677
4677
  kind: z.ZodString;
4678
4678
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
4679
4679
  }, "strict", z.ZodTypeAny, {
4680
- kind: string;
4681
4680
  schema_version: 2;
4682
4681
  producer: {
4683
4682
  model_id: string;
@@ -4686,9 +4685,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4686
4685
  capability_id: string;
4687
4686
  endpoint_model_id: string;
4688
4687
  };
4688
+ kind: string;
4689
4689
  payload: SerializableJsonValue;
4690
4690
  }, {
4691
- kind: string;
4692
4691
  schema_version: 2;
4693
4692
  producer: {
4694
4693
  model_id: string;
@@ -4697,13 +4696,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4697
4696
  capability_id: string;
4698
4697
  endpoint_model_id: string;
4699
4698
  };
4699
+ kind: string;
4700
4700
  payload: SerializableJsonValue;
4701
4701
  }>, "many">>;
4702
4702
  }, "strict", z.ZodTypeAny, {
4703
4703
  type: "text";
4704
4704
  text: string;
4705
4705
  provider_continuations?: {
4706
- kind: string;
4707
4706
  schema_version: 2;
4708
4707
  producer: {
4709
4708
  model_id: string;
@@ -4712,13 +4711,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4712
4711
  capability_id: string;
4713
4712
  endpoint_model_id: string;
4714
4713
  };
4714
+ kind: string;
4715
4715
  payload: SerializableJsonValue;
4716
4716
  }[] | undefined;
4717
4717
  }, {
4718
4718
  type: "text";
4719
4719
  text: string;
4720
4720
  provider_continuations?: {
4721
- kind: string;
4722
4721
  schema_version: 2;
4723
4722
  producer: {
4724
4723
  model_id: string;
@@ -4727,6 +4726,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4727
4726
  capability_id: string;
4728
4727
  endpoint_model_id: string;
4729
4728
  };
4729
+ kind: string;
4730
4730
  payload: SerializableJsonValue;
4731
4731
  }[] | undefined;
4732
4732
  }>, z.ZodObject<{
@@ -4756,7 +4756,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4756
4756
  kind: z.ZodString;
4757
4757
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
4758
4758
  }, "strict", z.ZodTypeAny, {
4759
- kind: string;
4760
4759
  schema_version: 2;
4761
4760
  producer: {
4762
4761
  model_id: string;
@@ -4765,9 +4764,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4765
4764
  capability_id: string;
4766
4765
  endpoint_model_id: string;
4767
4766
  };
4767
+ kind: string;
4768
4768
  payload: SerializableJsonValue;
4769
4769
  }, {
4770
- kind: string;
4771
4770
  schema_version: 2;
4772
4771
  producer: {
4773
4772
  model_id: string;
@@ -4776,13 +4775,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4776
4775
  capability_id: string;
4777
4776
  endpoint_model_id: string;
4778
4777
  };
4778
+ kind: string;
4779
4779
  payload: SerializableJsonValue;
4780
4780
  }>, "many">>;
4781
4781
  }, "strict", z.ZodTypeAny, {
4782
4782
  type: "reasoning";
4783
4783
  text: string;
4784
4784
  provider_continuations?: {
4785
- kind: string;
4786
4785
  schema_version: 2;
4787
4786
  producer: {
4788
4787
  model_id: string;
@@ -4791,13 +4790,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4791
4790
  capability_id: string;
4792
4791
  endpoint_model_id: string;
4793
4792
  };
4793
+ kind: string;
4794
4794
  payload: SerializableJsonValue;
4795
4795
  }[] | undefined;
4796
4796
  }, {
4797
4797
  type: "reasoning";
4798
4798
  text: string;
4799
4799
  provider_continuations?: {
4800
- kind: string;
4801
4800
  schema_version: 2;
4802
4801
  producer: {
4803
4802
  model_id: string;
@@ -4806,6 +4805,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4806
4805
  capability_id: string;
4807
4806
  endpoint_model_id: string;
4808
4807
  };
4808
+ kind: string;
4809
4809
  payload: SerializableJsonValue;
4810
4810
  }[] | undefined;
4811
4811
  }>, z.ZodObject<{
@@ -4835,7 +4835,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4835
4835
  kind: z.ZodString;
4836
4836
  payload: z.ZodType<SerializableJsonValue, z.ZodTypeDef, SerializableJsonValue>;
4837
4837
  }, "strict", z.ZodTypeAny, {
4838
- kind: string;
4839
4838
  schema_version: 2;
4840
4839
  producer: {
4841
4840
  model_id: string;
@@ -4844,9 +4843,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4844
4843
  capability_id: string;
4845
4844
  endpoint_model_id: string;
4846
4845
  };
4846
+ kind: string;
4847
4847
  payload: SerializableJsonValue;
4848
4848
  }, {
4849
- kind: string;
4850
4849
  schema_version: 2;
4851
4850
  producer: {
4852
4851
  model_id: string;
@@ -4855,13 +4854,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4855
4854
  capability_id: string;
4856
4855
  endpoint_model_id: string;
4857
4856
  };
4857
+ kind: string;
4858
4858
  payload: SerializableJsonValue;
4859
4859
  }>, "many">>;
4860
4860
  }, "strict", z.ZodTypeAny, {
4861
4861
  type: "tool_call";
4862
4862
  tool_call_id: string;
4863
4863
  provider_continuations?: {
4864
- kind: string;
4865
4864
  schema_version: 2;
4866
4865
  producer: {
4867
4866
  model_id: string;
@@ -4870,13 +4869,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4870
4869
  capability_id: string;
4871
4870
  endpoint_model_id: string;
4872
4871
  };
4872
+ kind: string;
4873
4873
  payload: SerializableJsonValue;
4874
4874
  }[] | undefined;
4875
4875
  }, {
4876
4876
  type: "tool_call";
4877
4877
  tool_call_id: string;
4878
4878
  provider_continuations?: {
4879
- kind: string;
4880
4879
  schema_version: 2;
4881
4880
  producer: {
4882
4881
  model_id: string;
@@ -4885,6 +4884,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4885
4884
  capability_id: string;
4886
4885
  endpoint_model_id: string;
4887
4886
  };
4887
+ kind: string;
4888
4888
  payload: SerializableJsonValue;
4889
4889
  }[] | undefined;
4890
4890
  }>]>, "many">>;
@@ -4901,7 +4901,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4901
4901
  is_complete: boolean;
4902
4902
  answer_id: string;
4903
4903
  provider_continuations?: {
4904
- kind: string;
4905
4904
  schema_version: 2;
4906
4905
  producer: {
4907
4906
  model_id: string;
@@ -4910,13 +4909,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4910
4909
  capability_id: string;
4911
4910
  endpoint_model_id: string;
4912
4911
  };
4912
+ kind: string;
4913
4913
  payload: SerializableJsonValue;
4914
4914
  }[] | undefined;
4915
4915
  assistant_replay_parts?: ({
4916
4916
  type: "text";
4917
4917
  text: string;
4918
4918
  provider_continuations?: {
4919
- kind: string;
4920
4919
  schema_version: 2;
4921
4920
  producer: {
4922
4921
  model_id: string;
@@ -4925,13 +4924,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4925
4924
  capability_id: string;
4926
4925
  endpoint_model_id: string;
4927
4926
  };
4927
+ kind: string;
4928
4928
  payload: SerializableJsonValue;
4929
4929
  }[] | undefined;
4930
4930
  } | {
4931
4931
  type: "reasoning";
4932
4932
  text: string;
4933
4933
  provider_continuations?: {
4934
- kind: string;
4935
4934
  schema_version: 2;
4936
4935
  producer: {
4937
4936
  model_id: string;
@@ -4940,13 +4939,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4940
4939
  capability_id: string;
4941
4940
  endpoint_model_id: string;
4942
4941
  };
4942
+ kind: string;
4943
4943
  payload: SerializableJsonValue;
4944
4944
  }[] | undefined;
4945
4945
  } | {
4946
4946
  type: "tool_call";
4947
4947
  tool_call_id: string;
4948
4948
  provider_continuations?: {
4949
- kind: string;
4950
4949
  schema_version: 2;
4951
4950
  producer: {
4952
4951
  model_id: string;
@@ -4955,6 +4954,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4955
4954
  capability_id: string;
4956
4955
  endpoint_model_id: string;
4957
4956
  };
4957
+ kind: string;
4958
4958
  payload: SerializableJsonValue;
4959
4959
  }[] | undefined;
4960
4960
  })[] | undefined;
@@ -4975,7 +4975,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4975
4975
  turn_id: string;
4976
4976
  answer_id: string;
4977
4977
  provider_continuations?: {
4978
- kind: string;
4979
4978
  schema_version: 2;
4980
4979
  producer: {
4981
4980
  model_id: string;
@@ -4984,13 +4983,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4984
4983
  capability_id: string;
4985
4984
  endpoint_model_id: string;
4986
4985
  };
4986
+ kind: string;
4987
4987
  payload: SerializableJsonValue;
4988
4988
  }[] | undefined;
4989
4989
  assistant_replay_parts?: ({
4990
4990
  type: "text";
4991
4991
  text: string;
4992
4992
  provider_continuations?: {
4993
- kind: string;
4994
4993
  schema_version: 2;
4995
4994
  producer: {
4996
4995
  model_id: string;
@@ -4999,13 +4998,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
4999
4998
  capability_id: string;
5000
4999
  endpoint_model_id: string;
5001
5000
  };
5001
+ kind: string;
5002
5002
  payload: SerializableJsonValue;
5003
5003
  }[] | undefined;
5004
5004
  } | {
5005
5005
  type: "reasoning";
5006
5006
  text: string;
5007
5007
  provider_continuations?: {
5008
- kind: string;
5009
5008
  schema_version: 2;
5010
5009
  producer: {
5011
5010
  model_id: string;
@@ -5014,13 +5013,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5014
5013
  capability_id: string;
5015
5014
  endpoint_model_id: string;
5016
5015
  };
5016
+ kind: string;
5017
5017
  payload: SerializableJsonValue;
5018
5018
  }[] | undefined;
5019
5019
  } | {
5020
5020
  type: "tool_call";
5021
5021
  tool_call_id: string;
5022
5022
  provider_continuations?: {
5023
- kind: string;
5024
5023
  schema_version: 2;
5025
5024
  producer: {
5026
5025
  model_id: string;
@@ -5029,6 +5028,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5029
5028
  capability_id: string;
5030
5029
  endpoint_model_id: string;
5031
5030
  };
5031
+ kind: string;
5032
5032
  payload: SerializableJsonValue;
5033
5033
  }[] | undefined;
5034
5034
  })[] | undefined;
@@ -5276,13 +5276,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5276
5276
  turn_id: string;
5277
5277
  op: "truncate_after" | "replace" | "redo" | "branch";
5278
5278
  metadata?: Record<string, SerializableJsonValue> | undefined;
5279
- reason?: string | undefined;
5280
5279
  run_id?: (string & z.BRAND<"RunId">) | undefined;
5281
5280
  parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
5282
5281
  lane?: "foreground" | "auxiliary" | "child" | undefined;
5283
5282
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
5284
5283
  ephemeral?: boolean | undefined;
5285
5284
  meta?: SerializableJsonValue | undefined;
5285
+ reason?: string | undefined;
5286
5286
  target_id?: string | undefined;
5287
5287
  }, {
5288
5288
  id: string;
@@ -5293,13 +5293,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5293
5293
  op: "truncate_after" | "replace" | "redo" | "branch";
5294
5294
  metadata?: Record<string, SerializableJsonValue> | undefined;
5295
5295
  version?: 1 | undefined;
5296
- reason?: string | undefined;
5297
5296
  run_id?: string | undefined;
5298
5297
  parent_run_id?: string | undefined;
5299
5298
  lane?: "foreground" | "auxiliary" | "child" | undefined;
5300
5299
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
5301
5300
  ephemeral?: boolean | undefined;
5302
5301
  meta?: SerializableJsonValue | undefined;
5302
+ reason?: string | undefined;
5303
5303
  target_id?: string | undefined;
5304
5304
  }>, z.ZodObject<{
5305
5305
  id: z.ZodEffects<z.ZodString, string, string>;
@@ -5591,10 +5591,10 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5591
5591
  type: "run_execution_metrics";
5592
5592
  timestamp: number;
5593
5593
  version: 1;
5594
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
5595
5594
  conversation_id: string;
5596
5595
  turn_id: string;
5597
5596
  duration_ms: number;
5597
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
5598
5598
  execution_id: string;
5599
5599
  metadata?: Record<string, SerializableJsonValue> | undefined;
5600
5600
  run_id?: (string & z.BRAND<"RunId">) | undefined;
@@ -5625,10 +5625,10 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5625
5625
  id: string;
5626
5626
  type: "run_execution_metrics";
5627
5627
  timestamp: number;
5628
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
5629
5628
  conversation_id: string;
5630
5629
  turn_id: string;
5631
5630
  duration_ms: number;
5631
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
5632
5632
  execution_id: string;
5633
5633
  metadata?: Record<string, SerializableJsonValue> | undefined;
5634
5634
  version?: 1 | undefined;
@@ -5703,8 +5703,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5703
5703
  delta?: string | undefined;
5704
5704
  } | {
5705
5705
  id: string;
5706
- status: "error" | "loading" | "success";
5707
5706
  type: "tool_call_decision";
5707
+ status: "error" | "loading" | "success";
5708
5708
  tool_call_id: string & z.BRAND<"ToolCallId">;
5709
5709
  tool_name: string;
5710
5710
  timestamp: number;
@@ -5715,7 +5715,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5715
5715
  payload?: {
5716
5716
  tool_calls?: SerializableJsonValue[] | undefined;
5717
5717
  provider_continuations?: {
5718
- kind: string;
5719
5718
  schema_version: 2;
5720
5719
  producer: {
5721
5720
  model_id: string;
@@ -5724,13 +5723,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5724
5723
  capability_id: string;
5725
5724
  endpoint_model_id: string;
5726
5725
  };
5726
+ kind: string;
5727
5727
  payload: SerializableJsonValue;
5728
5728
  }[] | undefined;
5729
5729
  assistant_replay_parts?: ({
5730
5730
  type: "text";
5731
5731
  text: string;
5732
5732
  provider_continuations?: {
5733
- kind: string;
5734
5733
  schema_version: 2;
5735
5734
  producer: {
5736
5735
  model_id: string;
@@ -5739,13 +5738,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5739
5738
  capability_id: string;
5740
5739
  endpoint_model_id: string;
5741
5740
  };
5741
+ kind: string;
5742
5742
  payload: SerializableJsonValue;
5743
5743
  }[] | undefined;
5744
5744
  } | {
5745
5745
  type: "reasoning";
5746
5746
  text: string;
5747
5747
  provider_continuations?: {
5748
- kind: string;
5749
5748
  schema_version: 2;
5750
5749
  producer: {
5751
5750
  model_id: string;
@@ -5754,13 +5753,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5754
5753
  capability_id: string;
5755
5754
  endpoint_model_id: string;
5756
5755
  };
5756
+ kind: string;
5757
5757
  payload: SerializableJsonValue;
5758
5758
  }[] | undefined;
5759
5759
  } | {
5760
5760
  type: "tool_call";
5761
5761
  tool_call_id: string;
5762
5762
  provider_continuations?: {
5763
- kind: string;
5764
5763
  schema_version: 2;
5765
5764
  producer: {
5766
5765
  model_id: string;
@@ -5769,6 +5768,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5769
5768
  capability_id: string;
5770
5769
  endpoint_model_id: string;
5771
5770
  };
5771
+ kind: string;
5772
5772
  payload: SerializableJsonValue;
5773
5773
  }[] | undefined;
5774
5774
  })[] | undefined;
@@ -5785,8 +5785,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5785
5785
  meta?: Record<string, SerializableJsonValue> | undefined;
5786
5786
  } | {
5787
5787
  id: string;
5788
- status: "error" | "loading" | "success";
5789
5788
  type: "tool_process";
5789
+ status: "error" | "loading" | "success";
5790
5790
  tool_call_id: string & z.BRAND<"ToolCallId">;
5791
5791
  tool_name: string;
5792
5792
  timestamp: number;
@@ -5806,8 +5806,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5806
5806
  meta?: Record<string, SerializableJsonValue> | undefined;
5807
5807
  } | {
5808
5808
  id: string;
5809
- status: "error" | "success";
5810
5809
  type: "tool_output";
5810
+ status: "error" | "success";
5811
5811
  tool_call_id: string & z.BRAND<"ToolCallId">;
5812
5812
  tool_name: string;
5813
5813
  timestamp: number;
@@ -5839,8 +5839,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5839
5839
  duration_ms?: number | undefined;
5840
5840
  } | {
5841
5841
  id: string;
5842
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
5843
5842
  type: "subrun_trace";
5843
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
5844
5844
  timestamp: number;
5845
5845
  version: 1;
5846
5846
  conversation_id: string;
@@ -5919,8 +5919,8 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5919
5919
  conversation_id: string;
5920
5920
  turn_id: string;
5921
5921
  envelope: {
5922
- runId: string & z.BRAND<"RunId">;
5923
5922
  envelopeId: string;
5923
+ runId: string & z.BRAND<"RunId">;
5924
5924
  ts: number;
5925
5925
  actor: {
5926
5926
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -5930,7 +5930,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5930
5930
  action: string;
5931
5931
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
5932
5932
  decision?: {
5933
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
5933
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
5934
5934
  metadata?: Record<string, unknown> | undefined;
5935
5935
  reason?: string | undefined;
5936
5936
  policy?: string | undefined;
@@ -5950,9 +5950,9 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5950
5950
  scope?: {
5951
5951
  metadata?: Record<string, unknown> | undefined;
5952
5952
  toolName?: string | undefined;
5953
- conversationId?: string | undefined;
5954
5953
  runId?: (string & z.BRAND<"RunId">) | undefined;
5955
5954
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
5955
+ conversationId?: string | undefined;
5956
5956
  turnId?: string | undefined;
5957
5957
  traceId?: string | undefined;
5958
5958
  agentSpecId?: string | undefined;
@@ -5979,7 +5979,6 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5979
5979
  is_complete: boolean;
5980
5980
  answer_id: string;
5981
5981
  provider_continuations?: {
5982
- kind: string;
5983
5982
  schema_version: 2;
5984
5983
  producer: {
5985
5984
  model_id: string;
@@ -5988,13 +5987,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
5988
5987
  capability_id: string;
5989
5988
  endpoint_model_id: string;
5990
5989
  };
5990
+ kind: string;
5991
5991
  payload: SerializableJsonValue;
5992
5992
  }[] | undefined;
5993
5993
  assistant_replay_parts?: ({
5994
5994
  type: "text";
5995
5995
  text: string;
5996
5996
  provider_continuations?: {
5997
- kind: string;
5998
5997
  schema_version: 2;
5999
5998
  producer: {
6000
5999
  model_id: string;
@@ -6003,13 +6002,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6003
6002
  capability_id: string;
6004
6003
  endpoint_model_id: string;
6005
6004
  };
6005
+ kind: string;
6006
6006
  payload: SerializableJsonValue;
6007
6007
  }[] | undefined;
6008
6008
  } | {
6009
6009
  type: "reasoning";
6010
6010
  text: string;
6011
6011
  provider_continuations?: {
6012
- kind: string;
6013
6012
  schema_version: 2;
6014
6013
  producer: {
6015
6014
  model_id: string;
@@ -6018,13 +6017,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6018
6017
  capability_id: string;
6019
6018
  endpoint_model_id: string;
6020
6019
  };
6020
+ kind: string;
6021
6021
  payload: SerializableJsonValue;
6022
6022
  }[] | undefined;
6023
6023
  } | {
6024
6024
  type: "tool_call";
6025
6025
  tool_call_id: string;
6026
6026
  provider_continuations?: {
6027
- kind: string;
6028
6027
  schema_version: 2;
6029
6028
  producer: {
6030
6029
  model_id: string;
@@ -6033,6 +6032,7 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6033
6032
  capability_id: string;
6034
6033
  endpoint_model_id: string;
6035
6034
  };
6035
+ kind: string;
6036
6036
  payload: SerializableJsonValue;
6037
6037
  }[] | undefined;
6038
6038
  })[] | undefined;
@@ -6120,13 +6120,13 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6120
6120
  turn_id: string;
6121
6121
  op: "truncate_after" | "replace" | "redo" | "branch";
6122
6122
  metadata?: Record<string, SerializableJsonValue> | undefined;
6123
- reason?: string | undefined;
6124
6123
  run_id?: (string & z.BRAND<"RunId">) | undefined;
6125
6124
  parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
6126
6125
  lane?: "foreground" | "auxiliary" | "child" | undefined;
6127
6126
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
6128
6127
  ephemeral?: boolean | undefined;
6129
6128
  meta?: SerializableJsonValue | undefined;
6129
+ reason?: string | undefined;
6130
6130
  target_id?: string | undefined;
6131
6131
  } | {
6132
6132
  id: string;
@@ -6165,10 +6165,10 @@ declare const RuntimeEvent: z.ZodEffects<z.ZodPipeline<z.ZodEffects<z.ZodUnknown
6165
6165
  type: "run_execution_metrics";
6166
6166
  timestamp: number;
6167
6167
  version: 1;
6168
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6169
6168
  conversation_id: string;
6170
6169
  turn_id: string;
6171
6170
  duration_ms: number;
6171
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
6172
6172
  execution_id: string;
6173
6173
  metadata?: Record<string, SerializableJsonValue> | undefined;
6174
6174
  run_id?: (string & z.BRAND<"RunId">) | undefined;
@@ -6306,8 +6306,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6306
6306
  delta?: string | undefined;
6307
6307
  } | {
6308
6308
  id: string;
6309
- status: "error" | "loading" | "success";
6310
6309
  type: "tool_call_decision";
6310
+ status: "error" | "loading" | "success";
6311
6311
  tool_call_id: string & z.BRAND<"ToolCallId">;
6312
6312
  tool_name: string;
6313
6313
  timestamp: number;
@@ -6318,7 +6318,6 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6318
6318
  payload?: {
6319
6319
  tool_calls?: SerializableJsonValue[] | undefined;
6320
6320
  provider_continuations?: {
6321
- kind: string;
6322
6321
  schema_version: 2;
6323
6322
  producer: {
6324
6323
  model_id: string;
@@ -6327,13 +6326,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6327
6326
  capability_id: string;
6328
6327
  endpoint_model_id: string;
6329
6328
  };
6329
+ kind: string;
6330
6330
  payload: SerializableJsonValue;
6331
6331
  }[] | undefined;
6332
6332
  assistant_replay_parts?: ({
6333
6333
  type: "text";
6334
6334
  text: string;
6335
6335
  provider_continuations?: {
6336
- kind: string;
6337
6336
  schema_version: 2;
6338
6337
  producer: {
6339
6338
  model_id: string;
@@ -6342,13 +6341,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6342
6341
  capability_id: string;
6343
6342
  endpoint_model_id: string;
6344
6343
  };
6344
+ kind: string;
6345
6345
  payload: SerializableJsonValue;
6346
6346
  }[] | undefined;
6347
6347
  } | {
6348
6348
  type: "reasoning";
6349
6349
  text: string;
6350
6350
  provider_continuations?: {
6351
- kind: string;
6352
6351
  schema_version: 2;
6353
6352
  producer: {
6354
6353
  model_id: string;
@@ -6357,13 +6356,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6357
6356
  capability_id: string;
6358
6357
  endpoint_model_id: string;
6359
6358
  };
6359
+ kind: string;
6360
6360
  payload: SerializableJsonValue;
6361
6361
  }[] | undefined;
6362
6362
  } | {
6363
6363
  type: "tool_call";
6364
6364
  tool_call_id: string;
6365
6365
  provider_continuations?: {
6366
- kind: string;
6367
6366
  schema_version: 2;
6368
6367
  producer: {
6369
6368
  model_id: string;
@@ -6372,6 +6371,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6372
6371
  capability_id: string;
6373
6372
  endpoint_model_id: string;
6374
6373
  };
6374
+ kind: string;
6375
6375
  payload: SerializableJsonValue;
6376
6376
  }[] | undefined;
6377
6377
  })[] | undefined;
@@ -6388,8 +6388,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6388
6388
  meta?: Record<string, SerializableJsonValue> | undefined;
6389
6389
  } | {
6390
6390
  id: string;
6391
- status: "error" | "loading" | "success";
6392
6391
  type: "tool_process";
6392
+ status: "error" | "loading" | "success";
6393
6393
  tool_call_id: string & z.BRAND<"ToolCallId">;
6394
6394
  tool_name: string;
6395
6395
  timestamp: number;
@@ -6409,8 +6409,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6409
6409
  meta?: Record<string, SerializableJsonValue> | undefined;
6410
6410
  } | {
6411
6411
  id: string;
6412
- status: "error" | "success";
6413
6412
  type: "tool_output";
6413
+ status: "error" | "success";
6414
6414
  tool_call_id: string & z.BRAND<"ToolCallId">;
6415
6415
  tool_name: string;
6416
6416
  timestamp: number;
@@ -6442,8 +6442,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6442
6442
  duration_ms?: number | undefined;
6443
6443
  } | {
6444
6444
  id: string;
6445
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
6446
6445
  type: "subrun_trace";
6446
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
6447
6447
  timestamp: number;
6448
6448
  version: 1;
6449
6449
  conversation_id: string;
@@ -6522,8 +6522,8 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6522
6522
  conversation_id: string;
6523
6523
  turn_id: string;
6524
6524
  envelope: {
6525
- runId: string & z.BRAND<"RunId">;
6526
6525
  envelopeId: string;
6526
+ runId: string & z.BRAND<"RunId">;
6527
6527
  ts: number;
6528
6528
  actor: {
6529
6529
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -6533,7 +6533,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6533
6533
  action: string;
6534
6534
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
6535
6535
  decision?: {
6536
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
6536
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
6537
6537
  metadata?: Record<string, unknown> | undefined;
6538
6538
  reason?: string | undefined;
6539
6539
  policy?: string | undefined;
@@ -6553,9 +6553,9 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6553
6553
  scope?: {
6554
6554
  metadata?: Record<string, unknown> | undefined;
6555
6555
  toolName?: string | undefined;
6556
- conversationId?: string | undefined;
6557
6556
  runId?: (string & z.BRAND<"RunId">) | undefined;
6558
6557
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
6558
+ conversationId?: string | undefined;
6559
6559
  turnId?: string | undefined;
6560
6560
  traceId?: string | undefined;
6561
6561
  agentSpecId?: string | undefined;
@@ -6582,7 +6582,6 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6582
6582
  is_complete: boolean;
6583
6583
  answer_id: string;
6584
6584
  provider_continuations?: {
6585
- kind: string;
6586
6585
  schema_version: 2;
6587
6586
  producer: {
6588
6587
  model_id: string;
@@ -6591,13 +6590,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6591
6590
  capability_id: string;
6592
6591
  endpoint_model_id: string;
6593
6592
  };
6593
+ kind: string;
6594
6594
  payload: SerializableJsonValue;
6595
6595
  }[] | undefined;
6596
6596
  assistant_replay_parts?: ({
6597
6597
  type: "text";
6598
6598
  text: string;
6599
6599
  provider_continuations?: {
6600
- kind: string;
6601
6600
  schema_version: 2;
6602
6601
  producer: {
6603
6602
  model_id: string;
@@ -6606,13 +6605,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6606
6605
  capability_id: string;
6607
6606
  endpoint_model_id: string;
6608
6607
  };
6608
+ kind: string;
6609
6609
  payload: SerializableJsonValue;
6610
6610
  }[] | undefined;
6611
6611
  } | {
6612
6612
  type: "reasoning";
6613
6613
  text: string;
6614
6614
  provider_continuations?: {
6615
- kind: string;
6616
6615
  schema_version: 2;
6617
6616
  producer: {
6618
6617
  model_id: string;
@@ -6621,13 +6620,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6621
6620
  capability_id: string;
6622
6621
  endpoint_model_id: string;
6623
6622
  };
6623
+ kind: string;
6624
6624
  payload: SerializableJsonValue;
6625
6625
  }[] | undefined;
6626
6626
  } | {
6627
6627
  type: "tool_call";
6628
6628
  tool_call_id: string;
6629
6629
  provider_continuations?: {
6630
- kind: string;
6631
6630
  schema_version: 2;
6632
6631
  producer: {
6633
6632
  model_id: string;
@@ -6636,6 +6635,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6636
6635
  capability_id: string;
6637
6636
  endpoint_model_id: string;
6638
6637
  };
6638
+ kind: string;
6639
6639
  payload: SerializableJsonValue;
6640
6640
  }[] | undefined;
6641
6641
  })[] | undefined;
@@ -6723,13 +6723,13 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6723
6723
  turn_id: string;
6724
6724
  op: "truncate_after" | "replace" | "redo" | "branch";
6725
6725
  metadata?: Record<string, SerializableJsonValue> | undefined;
6726
- reason?: string | undefined;
6727
6726
  run_id?: (string & z.BRAND<"RunId">) | undefined;
6728
6727
  parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
6729
6728
  lane?: "foreground" | "auxiliary" | "child" | undefined;
6730
6729
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
6731
6730
  ephemeral?: boolean | undefined;
6732
6731
  meta?: SerializableJsonValue | undefined;
6732
+ reason?: string | undefined;
6733
6733
  target_id?: string | undefined;
6734
6734
  } | {
6735
6735
  id: string;
@@ -6768,10 +6768,10 @@ declare const validateRuntimeEvent: (event: unknown) => z.SafeParseReturnType<un
6768
6768
  type: "run_execution_metrics";
6769
6769
  timestamp: number;
6770
6770
  version: 1;
6771
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
6772
6771
  conversation_id: string;
6773
6772
  turn_id: string;
6774
6773
  duration_ms: number;
6774
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
6775
6775
  execution_id: string;
6776
6776
  metadata?: Record<string, SerializableJsonValue> | undefined;
6777
6777
  run_id?: (string & z.BRAND<"RunId">) | undefined;
@@ -6846,8 +6846,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6846
6846
  delta?: string | undefined;
6847
6847
  } | {
6848
6848
  id: string;
6849
- status: "error" | "loading" | "success";
6850
6849
  type: "tool_call_decision";
6850
+ status: "error" | "loading" | "success";
6851
6851
  tool_call_id: string & z.BRAND<"ToolCallId">;
6852
6852
  tool_name: string;
6853
6853
  timestamp: number;
@@ -6858,7 +6858,6 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6858
6858
  payload?: {
6859
6859
  tool_calls?: SerializableJsonValue[] | undefined;
6860
6860
  provider_continuations?: {
6861
- kind: string;
6862
6861
  schema_version: 2;
6863
6862
  producer: {
6864
6863
  model_id: string;
@@ -6867,13 +6866,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6867
6866
  capability_id: string;
6868
6867
  endpoint_model_id: string;
6869
6868
  };
6869
+ kind: string;
6870
6870
  payload: SerializableJsonValue;
6871
6871
  }[] | undefined;
6872
6872
  assistant_replay_parts?: ({
6873
6873
  type: "text";
6874
6874
  text: string;
6875
6875
  provider_continuations?: {
6876
- kind: string;
6877
6876
  schema_version: 2;
6878
6877
  producer: {
6879
6878
  model_id: string;
@@ -6882,13 +6881,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6882
6881
  capability_id: string;
6883
6882
  endpoint_model_id: string;
6884
6883
  };
6884
+ kind: string;
6885
6885
  payload: SerializableJsonValue;
6886
6886
  }[] | undefined;
6887
6887
  } | {
6888
6888
  type: "reasoning";
6889
6889
  text: string;
6890
6890
  provider_continuations?: {
6891
- kind: string;
6892
6891
  schema_version: 2;
6893
6892
  producer: {
6894
6893
  model_id: string;
@@ -6897,13 +6896,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6897
6896
  capability_id: string;
6898
6897
  endpoint_model_id: string;
6899
6898
  };
6899
+ kind: string;
6900
6900
  payload: SerializableJsonValue;
6901
6901
  }[] | undefined;
6902
6902
  } | {
6903
6903
  type: "tool_call";
6904
6904
  tool_call_id: string;
6905
6905
  provider_continuations?: {
6906
- kind: string;
6907
6906
  schema_version: 2;
6908
6907
  producer: {
6909
6908
  model_id: string;
@@ -6912,6 +6911,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6912
6911
  capability_id: string;
6913
6912
  endpoint_model_id: string;
6914
6913
  };
6914
+ kind: string;
6915
6915
  payload: SerializableJsonValue;
6916
6916
  }[] | undefined;
6917
6917
  })[] | undefined;
@@ -6928,8 +6928,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6928
6928
  meta?: Record<string, SerializableJsonValue> | undefined;
6929
6929
  } | {
6930
6930
  id: string;
6931
- status: "error" | "loading" | "success";
6932
6931
  type: "tool_process";
6932
+ status: "error" | "loading" | "success";
6933
6933
  tool_call_id: string & z.BRAND<"ToolCallId">;
6934
6934
  tool_name: string;
6935
6935
  timestamp: number;
@@ -6949,8 +6949,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6949
6949
  meta?: Record<string, SerializableJsonValue> | undefined;
6950
6950
  } | {
6951
6951
  id: string;
6952
- status: "error" | "success";
6953
6952
  type: "tool_output";
6953
+ status: "error" | "success";
6954
6954
  tool_call_id: string & z.BRAND<"ToolCallId">;
6955
6955
  tool_name: string;
6956
6956
  timestamp: number;
@@ -6982,8 +6982,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
6982
6982
  duration_ms?: number | undefined;
6983
6983
  } | {
6984
6984
  id: string;
6985
- kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
6986
6985
  type: "subrun_trace";
6986
+ kind: "history_summary" | "final_answer" | "tool_output" | "tool_call_decision" | "tool_process" | "thought_delta" | "thought_complete" | "final_answer_chunk";
6987
6987
  timestamp: number;
6988
6988
  version: 1;
6989
6989
  conversation_id: string;
@@ -7062,8 +7062,8 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7062
7062
  conversation_id: string;
7063
7063
  turn_id: string;
7064
7064
  envelope: {
7065
- runId: string & z.BRAND<"RunId">;
7066
7065
  envelopeId: string;
7066
+ runId: string & z.BRAND<"RunId">;
7067
7067
  ts: number;
7068
7068
  actor: {
7069
7069
  kind: "system" | "user" | "tool" | "host" | "agent" | "model";
@@ -7073,7 +7073,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7073
7073
  action: string;
7074
7074
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
7075
7075
  decision?: {
7076
- outcome: "requested" | "allowed" | "denied" | "fallback" | "retry" | "cancelled" | "paused" | "resumed" | "recorded";
7076
+ outcome: "requested" | "paused" | "cancelled" | "allowed" | "denied" | "fallback" | "retry" | "resumed" | "recorded";
7077
7077
  metadata?: Record<string, unknown> | undefined;
7078
7078
  reason?: string | undefined;
7079
7079
  policy?: string | undefined;
@@ -7093,9 +7093,9 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7093
7093
  scope?: {
7094
7094
  metadata?: Record<string, unknown> | undefined;
7095
7095
  toolName?: string | undefined;
7096
- conversationId?: string | undefined;
7097
7096
  runId?: (string & z.BRAND<"RunId">) | undefined;
7098
7097
  parentRunId?: (string & z.BRAND<"RunId">) | undefined;
7098
+ conversationId?: string | undefined;
7099
7099
  turnId?: string | undefined;
7100
7100
  traceId?: string | undefined;
7101
7101
  agentSpecId?: string | undefined;
@@ -7122,7 +7122,6 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7122
7122
  is_complete: boolean;
7123
7123
  answer_id: string;
7124
7124
  provider_continuations?: {
7125
- kind: string;
7126
7125
  schema_version: 2;
7127
7126
  producer: {
7128
7127
  model_id: string;
@@ -7131,13 +7130,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7131
7130
  capability_id: string;
7132
7131
  endpoint_model_id: string;
7133
7132
  };
7133
+ kind: string;
7134
7134
  payload: SerializableJsonValue;
7135
7135
  }[] | undefined;
7136
7136
  assistant_replay_parts?: ({
7137
7137
  type: "text";
7138
7138
  text: string;
7139
7139
  provider_continuations?: {
7140
- kind: string;
7141
7140
  schema_version: 2;
7142
7141
  producer: {
7143
7142
  model_id: string;
@@ -7146,13 +7145,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7146
7145
  capability_id: string;
7147
7146
  endpoint_model_id: string;
7148
7147
  };
7148
+ kind: string;
7149
7149
  payload: SerializableJsonValue;
7150
7150
  }[] | undefined;
7151
7151
  } | {
7152
7152
  type: "reasoning";
7153
7153
  text: string;
7154
7154
  provider_continuations?: {
7155
- kind: string;
7156
7155
  schema_version: 2;
7157
7156
  producer: {
7158
7157
  model_id: string;
@@ -7161,13 +7160,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7161
7160
  capability_id: string;
7162
7161
  endpoint_model_id: string;
7163
7162
  };
7163
+ kind: string;
7164
7164
  payload: SerializableJsonValue;
7165
7165
  }[] | undefined;
7166
7166
  } | {
7167
7167
  type: "tool_call";
7168
7168
  tool_call_id: string;
7169
7169
  provider_continuations?: {
7170
- kind: string;
7171
7170
  schema_version: 2;
7172
7171
  producer: {
7173
7172
  model_id: string;
@@ -7176,6 +7175,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7176
7175
  capability_id: string;
7177
7176
  endpoint_model_id: string;
7178
7177
  };
7178
+ kind: string;
7179
7179
  payload: SerializableJsonValue;
7180
7180
  }[] | undefined;
7181
7181
  })[] | undefined;
@@ -7263,13 +7263,13 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7263
7263
  turn_id: string;
7264
7264
  op: "truncate_after" | "replace" | "redo" | "branch";
7265
7265
  metadata?: Record<string, SerializableJsonValue> | undefined;
7266
- reason?: string | undefined;
7267
7266
  run_id?: (string & z.BRAND<"RunId">) | undefined;
7268
7267
  parent_run_id?: (string & z.BRAND<"RunId">) | undefined;
7269
7268
  lane?: "foreground" | "auxiliary" | "child" | undefined;
7270
7269
  visibility?: "none" | "conversation" | "parent-trace" | undefined;
7271
7270
  ephemeral?: boolean | undefined;
7272
7271
  meta?: SerializableJsonValue | undefined;
7272
+ reason?: string | undefined;
7273
7273
  target_id?: string | undefined;
7274
7274
  } | {
7275
7275
  id: string;
@@ -7308,10 +7308,10 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.SafeParseReturnTyp
7308
7308
  type: "run_execution_metrics";
7309
7309
  timestamp: number;
7310
7310
  version: 1;
7311
- outcome: "completed" | "failed" | "cancelled" | "awaiting_user";
7312
7311
  conversation_id: string;
7313
7312
  turn_id: string;
7314
7313
  duration_ms: number;
7314
+ outcome: "completed" | "failed" | "awaiting_user" | "cancelled";
7315
7315
  execution_id: string;
7316
7316
  metadata?: Record<string, SerializableJsonValue> | undefined;
7317
7317
  run_id?: (string & z.BRAND<"RunId">) | undefined;