@linkshell/wire 0.2.7 → 0.2.8

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.
package/dist/updates.d.ts CHANGED
@@ -14,13 +14,13 @@ export declare const contentBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodO
14
14
  data: z.ZodOptional<z.ZodString>;
15
15
  uri: z.ZodOptional<z.ZodString>;
16
16
  }, "strip", z.ZodTypeAny, {
17
- mimeType: string;
18
17
  type: "image";
18
+ mimeType: string;
19
19
  data?: string | undefined;
20
20
  uri?: string | undefined;
21
21
  }, {
22
- mimeType: string;
23
22
  type: "image";
23
+ mimeType: string;
24
24
  data?: string | undefined;
25
25
  uri?: string | undefined;
26
26
  }>, z.ZodObject<{
@@ -60,13 +60,13 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
60
60
  data: z.ZodOptional<z.ZodString>;
61
61
  uri: z.ZodOptional<z.ZodString>;
62
62
  }, "strip", z.ZodTypeAny, {
63
- mimeType: string;
64
63
  type: "image";
64
+ mimeType: string;
65
65
  data?: string | undefined;
66
66
  uri?: string | undefined;
67
67
  }, {
68
- mimeType: string;
69
68
  type: "image";
69
+ mimeType: string;
70
70
  data?: string | undefined;
71
71
  uri?: string | undefined;
72
72
  }>, z.ZodObject<{
@@ -92,8 +92,8 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
92
92
  type: "text";
93
93
  text: string;
94
94
  } | {
95
- mimeType: string;
96
95
  type: "image";
96
+ mimeType: string;
97
97
  data?: string | undefined;
98
98
  uri?: string | undefined;
99
99
  } | {
@@ -108,8 +108,8 @@ export declare const toolCallContentSchema: z.ZodDiscriminatedUnion<"type", [z.Z
108
108
  type: "text";
109
109
  text: string;
110
110
  } | {
111
- mimeType: string;
112
111
  type: "image";
112
+ mimeType: string;
113
113
  data?: string | undefined;
114
114
  uri?: string | undefined;
115
115
  } | {
@@ -496,22 +496,22 @@ export declare const sessionConfigOptionSchema: z.ZodObject<{
496
496
  description?: string | undefined;
497
497
  }>, "many">;
498
498
  }, "strip", z.ZodTypeAny, {
499
- id: string;
500
499
  values: {
501
500
  value: string;
502
501
  name: string;
503
502
  description?: string | undefined;
504
503
  }[];
504
+ id: string;
505
505
  name: string;
506
506
  category: "model" | "other" | "mode" | "effort";
507
507
  current: string;
508
508
  }, {
509
- id: string;
510
509
  values: {
511
510
  value: string;
512
511
  name: string;
513
512
  description?: string | undefined;
514
513
  }[];
514
+ id: string;
515
515
  name: string;
516
516
  current: string;
517
517
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -535,13 +535,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
535
535
  data: z.ZodOptional<z.ZodString>;
536
536
  uri: z.ZodOptional<z.ZodString>;
537
537
  }, "strip", z.ZodTypeAny, {
538
- mimeType: string;
539
538
  type: "image";
539
+ mimeType: string;
540
540
  data?: string | undefined;
541
541
  uri?: string | undefined;
542
542
  }, {
543
- mimeType: string;
544
543
  type: "image";
544
+ mimeType: string;
545
545
  data?: string | undefined;
546
546
  uri?: string | undefined;
547
547
  }>, z.ZodObject<{
@@ -566,8 +566,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
566
566
  type: "text";
567
567
  text: string;
568
568
  } | {
569
- mimeType: string;
570
569
  type: "image";
570
+ mimeType: string;
571
571
  data?: string | undefined;
572
572
  uri?: string | undefined;
573
573
  } | {
@@ -583,8 +583,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
583
583
  type: "text";
584
584
  text: string;
585
585
  } | {
586
- mimeType: string;
587
586
  type: "image";
587
+ mimeType: string;
588
588
  data?: string | undefined;
589
589
  uri?: string | undefined;
590
590
  } | {
@@ -614,13 +614,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
614
614
  data: z.ZodOptional<z.ZodString>;
615
615
  uri: z.ZodOptional<z.ZodString>;
616
616
  }, "strip", z.ZodTypeAny, {
617
- mimeType: string;
618
617
  type: "image";
618
+ mimeType: string;
619
619
  data?: string | undefined;
620
620
  uri?: string | undefined;
621
621
  }, {
622
- mimeType: string;
623
622
  type: "image";
623
+ mimeType: string;
624
624
  data?: string | undefined;
625
625
  uri?: string | undefined;
626
626
  }>, z.ZodObject<{
@@ -645,8 +645,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
645
645
  type: "text";
646
646
  text: string;
647
647
  } | {
648
- mimeType: string;
649
648
  type: "image";
649
+ mimeType: string;
650
650
  data?: string | undefined;
651
651
  uri?: string | undefined;
652
652
  } | {
@@ -663,8 +663,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
663
663
  type: "text";
664
664
  text: string;
665
665
  } | {
666
- mimeType: string;
667
666
  type: "image";
667
+ mimeType: string;
668
668
  data?: string | undefined;
669
669
  uri?: string | undefined;
670
670
  } | {
@@ -695,13 +695,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
695
695
  data: z.ZodOptional<z.ZodString>;
696
696
  uri: z.ZodOptional<z.ZodString>;
697
697
  }, "strip", z.ZodTypeAny, {
698
- mimeType: string;
699
698
  type: "image";
699
+ mimeType: string;
700
700
  data?: string | undefined;
701
701
  uri?: string | undefined;
702
702
  }, {
703
- mimeType: string;
704
703
  type: "image";
704
+ mimeType: string;
705
705
  data?: string | undefined;
706
706
  uri?: string | undefined;
707
707
  }>, z.ZodObject<{
@@ -726,8 +726,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
726
726
  type: "text";
727
727
  text: string;
728
728
  } | {
729
- mimeType: string;
730
729
  type: "image";
730
+ mimeType: string;
731
731
  data?: string | undefined;
732
732
  uri?: string | undefined;
733
733
  } | {
@@ -744,8 +744,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
744
744
  type: "text";
745
745
  text: string;
746
746
  } | {
747
- mimeType: string;
748
747
  type: "image";
748
+ mimeType: string;
749
749
  data?: string | undefined;
750
750
  uri?: string | undefined;
751
751
  } | {
@@ -783,13 +783,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
783
783
  data: z.ZodOptional<z.ZodString>;
784
784
  uri: z.ZodOptional<z.ZodString>;
785
785
  }, "strip", z.ZodTypeAny, {
786
- mimeType: string;
787
786
  type: "image";
787
+ mimeType: string;
788
788
  data?: string | undefined;
789
789
  uri?: string | undefined;
790
790
  }, {
791
- mimeType: string;
792
791
  type: "image";
792
+ mimeType: string;
793
793
  data?: string | undefined;
794
794
  uri?: string | undefined;
795
795
  }>, z.ZodObject<{
@@ -815,8 +815,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
815
815
  type: "text";
816
816
  text: string;
817
817
  } | {
818
- mimeType: string;
819
818
  type: "image";
819
+ mimeType: string;
820
820
  data?: string | undefined;
821
821
  uri?: string | undefined;
822
822
  } | {
@@ -831,8 +831,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
831
831
  type: "text";
832
832
  text: string;
833
833
  } | {
834
- mimeType: string;
835
834
  type: "image";
835
+ mimeType: string;
836
836
  data?: string | undefined;
837
837
  uri?: string | undefined;
838
838
  } | {
@@ -1250,8 +1250,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1250
1250
  type: "text";
1251
1251
  text: string;
1252
1252
  } | {
1253
- mimeType: string;
1254
1253
  type: "image";
1254
+ mimeType: string;
1255
1255
  data?: string | undefined;
1256
1256
  uri?: string | undefined;
1257
1257
  } | {
@@ -1355,8 +1355,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1355
1355
  type: "text";
1356
1356
  text: string;
1357
1357
  } | {
1358
- mimeType: string;
1359
1358
  type: "image";
1359
+ mimeType: string;
1360
1360
  data?: string | undefined;
1361
1361
  uri?: string | undefined;
1362
1362
  } | {
@@ -1690,13 +1690,13 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1690
1690
  data: z.ZodOptional<z.ZodString>;
1691
1691
  uri: z.ZodOptional<z.ZodString>;
1692
1692
  }, "strip", z.ZodTypeAny, {
1693
- mimeType: string;
1694
1693
  type: "image";
1694
+ mimeType: string;
1695
1695
  data?: string | undefined;
1696
1696
  uri?: string | undefined;
1697
1697
  }, {
1698
- mimeType: string;
1699
1698
  type: "image";
1699
+ mimeType: string;
1700
1700
  data?: string | undefined;
1701
1701
  uri?: string | undefined;
1702
1702
  }>, z.ZodObject<{
@@ -1722,8 +1722,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1722
1722
  type: "text";
1723
1723
  text: string;
1724
1724
  } | {
1725
- mimeType: string;
1726
1725
  type: "image";
1726
+ mimeType: string;
1727
1727
  data?: string | undefined;
1728
1728
  uri?: string | undefined;
1729
1729
  } | {
@@ -1738,8 +1738,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1738
1738
  type: "text";
1739
1739
  text: string;
1740
1740
  } | {
1741
- mimeType: string;
1742
1741
  type: "image";
1742
+ mimeType: string;
1743
1743
  data?: string | undefined;
1744
1744
  uri?: string | undefined;
1745
1745
  } | {
@@ -1868,8 +1868,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1868
1868
  type: "text";
1869
1869
  text: string;
1870
1870
  } | {
1871
- mimeType: string;
1872
1871
  type: "image";
1872
+ mimeType: string;
1873
1873
  data?: string | undefined;
1874
1874
  uri?: string | undefined;
1875
1875
  } | {
@@ -1969,8 +1969,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
1969
1969
  type: "text";
1970
1970
  text: string;
1971
1971
  } | {
1972
- mimeType: string;
1973
1972
  type: "image";
1973
+ mimeType: string;
1974
1974
  data?: string | undefined;
1975
1975
  uri?: string | undefined;
1976
1976
  } | {
@@ -2036,16 +2036,16 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2036
2036
  iterations: z.ZodOptional<z.ZodNumber>;
2037
2037
  lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2038
2038
  }, "strip", z.ZodTypeAny, {
2039
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2040
2039
  objective: string;
2040
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2041
2041
  tokenBudget?: number | null | undefined;
2042
2042
  tokensUsed?: number | undefined;
2043
2043
  timeUsedSeconds?: number | undefined;
2044
2044
  iterations?: number | undefined;
2045
2045
  lastReason?: string | null | undefined;
2046
2046
  }, {
2047
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2048
2047
  objective: string;
2048
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2049
2049
  tokenBudget?: number | null | undefined;
2050
2050
  tokensUsed?: number | undefined;
2051
2051
  timeUsedSeconds?: number | undefined;
@@ -2055,8 +2055,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2055
2055
  }, "strip", z.ZodTypeAny, {
2056
2056
  sessionUpdate: "ls_goal";
2057
2057
  goal: {
2058
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2059
2058
  objective: string;
2059
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2060
2060
  tokenBudget?: number | null | undefined;
2061
2061
  tokensUsed?: number | undefined;
2062
2062
  timeUsedSeconds?: number | undefined;
@@ -2066,8 +2066,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2066
2066
  }, {
2067
2067
  sessionUpdate: "ls_goal";
2068
2068
  goal: {
2069
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2070
2069
  objective: string;
2070
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
2071
2071
  tokenBudget?: number | null | undefined;
2072
2072
  tokensUsed?: number | undefined;
2073
2073
  timeUsedSeconds?: number | undefined;
@@ -2136,6 +2136,35 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2136
2136
  sessionUpdate: "usage_update";
2137
2137
  usedTokens?: number | undefined;
2138
2138
  contextWindow?: number | undefined;
2139
+ }>, z.ZodObject<{
2140
+ sessionUpdate: z.ZodLiteral<"ls_async_questions">;
2141
+ questions: z.ZodArray<z.ZodObject<{
2142
+ id: z.ZodString;
2143
+ title: z.ZodString;
2144
+ options: z.ZodArray<z.ZodString, "many">;
2145
+ }, "strip", z.ZodTypeAny, {
2146
+ options: string[];
2147
+ id: string;
2148
+ title: string;
2149
+ }, {
2150
+ options: string[];
2151
+ id: string;
2152
+ title: string;
2153
+ }>, "many">;
2154
+ }, "strip", z.ZodTypeAny, {
2155
+ questions: {
2156
+ options: string[];
2157
+ id: string;
2158
+ title: string;
2159
+ }[];
2160
+ sessionUpdate: "ls_async_questions";
2161
+ }, {
2162
+ questions: {
2163
+ options: string[];
2164
+ id: string;
2165
+ title: string;
2166
+ }[];
2167
+ sessionUpdate: "ls_async_questions";
2139
2168
  }>, z.ZodObject<{
2140
2169
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
2141
2170
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -2151,12 +2180,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2151
2180
  title: z.ZodString;
2152
2181
  options: z.ZodArray<z.ZodString, "many">;
2153
2182
  }, "strip", z.ZodTypeAny, {
2154
- id: string;
2155
2183
  options: string[];
2184
+ id: string;
2156
2185
  title: string;
2157
2186
  }, {
2158
- id: string;
2159
2187
  options: string[];
2188
+ id: string;
2160
2189
  title: string;
2161
2190
  }>, "many">>;
2162
2191
  }, "strip", z.ZodTypeAny, {
@@ -2164,8 +2193,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2164
2193
  messageId: string;
2165
2194
  role: "agent" | "thought" | "user";
2166
2195
  questions?: {
2167
- id: string;
2168
2196
  options: string[];
2197
+ id: string;
2169
2198
  title: string;
2170
2199
  }[] | undefined;
2171
2200
  parentToolCallId?: string | undefined;
@@ -2174,8 +2203,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2174
2203
  messageId: string;
2175
2204
  role: "agent" | "thought" | "user";
2176
2205
  questions?: {
2177
- id: string;
2178
2206
  options: string[];
2207
+ id: string;
2179
2208
  title: string;
2180
2209
  }[] | undefined;
2181
2210
  parentToolCallId?: string | undefined;
@@ -2201,34 +2230,34 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2201
2230
  description?: string | undefined;
2202
2231
  }>, "many">;
2203
2232
  }, "strip", z.ZodTypeAny, {
2204
- id: string;
2205
2233
  values: {
2206
2234
  value: string;
2207
2235
  name: string;
2208
2236
  description?: string | undefined;
2209
2237
  }[];
2238
+ id: string;
2210
2239
  name: string;
2211
2240
  category: "model" | "other" | "mode" | "effort";
2212
2241
  current: string;
2213
2242
  }, {
2214
- id: string;
2215
2243
  values: {
2216
2244
  value: string;
2217
2245
  name: string;
2218
2246
  description?: string | undefined;
2219
2247
  }[];
2248
+ id: string;
2220
2249
  name: string;
2221
2250
  current: string;
2222
2251
  category?: "model" | "other" | "mode" | "effort" | undefined;
2223
2252
  }>, "many">;
2224
2253
  }, "strip", z.ZodTypeAny, {
2225
2254
  options: {
2226
- id: string;
2227
2255
  values: {
2228
2256
  value: string;
2229
2257
  name: string;
2230
2258
  description?: string | undefined;
2231
2259
  }[];
2260
+ id: string;
2232
2261
  name: string;
2233
2262
  category: "model" | "other" | "mode" | "effort";
2234
2263
  current: string;
@@ -2236,12 +2265,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2236
2265
  sessionUpdate: "ls_config";
2237
2266
  }, {
2238
2267
  options: {
2239
- id: string;
2240
2268
  values: {
2241
2269
  value: string;
2242
2270
  name: string;
2243
2271
  description?: string | undefined;
2244
2272
  }[];
2273
+ id: string;
2245
2274
  name: string;
2246
2275
  current: string;
2247
2276
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -2413,12 +2442,12 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2413
2442
  values: z.ZodArray<z.ZodString, "many">;
2414
2443
  other: z.ZodOptional<z.ZodString>;
2415
2444
  }, "strip", z.ZodTypeAny, {
2416
- id: string;
2417
2445
  values: string[];
2446
+ id: string;
2418
2447
  other?: string | undefined;
2419
2448
  }, {
2420
- id: string;
2421
2449
  values: string[];
2450
+ id: string;
2422
2451
  other?: string | undefined;
2423
2452
  }>, "many">>;
2424
2453
  }, "strip", z.ZodTypeAny, {
@@ -2426,8 +2455,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2426
2455
  sessionUpdate: "ls_permission_resolved";
2427
2456
  optionId?: string | undefined;
2428
2457
  answers?: {
2429
- id: string;
2430
2458
  values: string[];
2459
+ id: string;
2431
2460
  other?: string | undefined;
2432
2461
  }[] | undefined;
2433
2462
  }, {
@@ -2435,8 +2464,8 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2435
2464
  sessionUpdate: "ls_permission_resolved";
2436
2465
  optionId?: string | undefined;
2437
2466
  answers?: {
2438
- id: string;
2439
2467
  values: string[];
2468
+ id: string;
2440
2469
  other?: string | undefined;
2441
2470
  }[] | undefined;
2442
2471
  }>, z.ZodObject<{
@@ -2455,10 +2484,10 @@ export declare const sessionUpdateSchema: z.ZodDiscriminatedUnion<"sessionUpdate
2455
2484
  sessionUpdate: z.ZodLiteral<"ls_status">;
2456
2485
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
2457
2486
  }, "strip", z.ZodTypeAny, {
2458
- state: "error" | "running" | "idle" | "waiting" | "offline";
2487
+ state: "running" | "idle" | "waiting" | "error" | "offline";
2459
2488
  sessionUpdate: "ls_status";
2460
2489
  }, {
2461
- state: "error" | "running" | "idle" | "waiting" | "offline";
2490
+ state: "running" | "idle" | "waiting" | "error" | "offline";
2462
2491
  sessionUpdate: "ls_status";
2463
2492
  }>, z.ZodObject<{
2464
2493
  sessionUpdate: z.ZodLiteral<"ls_task">;
@@ -2580,13 +2609,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2580
2609
  data: z.ZodOptional<z.ZodString>;
2581
2610
  uri: z.ZodOptional<z.ZodString>;
2582
2611
  }, "strip", z.ZodTypeAny, {
2583
- mimeType: string;
2584
2612
  type: "image";
2613
+ mimeType: string;
2585
2614
  data?: string | undefined;
2586
2615
  uri?: string | undefined;
2587
2616
  }, {
2588
- mimeType: string;
2589
2617
  type: "image";
2618
+ mimeType: string;
2590
2619
  data?: string | undefined;
2591
2620
  uri?: string | undefined;
2592
2621
  }>, z.ZodObject<{
@@ -2611,8 +2640,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2611
2640
  type: "text";
2612
2641
  text: string;
2613
2642
  } | {
2614
- mimeType: string;
2615
2643
  type: "image";
2644
+ mimeType: string;
2616
2645
  data?: string | undefined;
2617
2646
  uri?: string | undefined;
2618
2647
  } | {
@@ -2628,8 +2657,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2628
2657
  type: "text";
2629
2658
  text: string;
2630
2659
  } | {
2631
- mimeType: string;
2632
2660
  type: "image";
2661
+ mimeType: string;
2633
2662
  data?: string | undefined;
2634
2663
  uri?: string | undefined;
2635
2664
  } | {
@@ -2659,13 +2688,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2659
2688
  data: z.ZodOptional<z.ZodString>;
2660
2689
  uri: z.ZodOptional<z.ZodString>;
2661
2690
  }, "strip", z.ZodTypeAny, {
2662
- mimeType: string;
2663
2691
  type: "image";
2692
+ mimeType: string;
2664
2693
  data?: string | undefined;
2665
2694
  uri?: string | undefined;
2666
2695
  }, {
2667
- mimeType: string;
2668
2696
  type: "image";
2697
+ mimeType: string;
2669
2698
  data?: string | undefined;
2670
2699
  uri?: string | undefined;
2671
2700
  }>, z.ZodObject<{
@@ -2690,8 +2719,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2690
2719
  type: "text";
2691
2720
  text: string;
2692
2721
  } | {
2693
- mimeType: string;
2694
2722
  type: "image";
2723
+ mimeType: string;
2695
2724
  data?: string | undefined;
2696
2725
  uri?: string | undefined;
2697
2726
  } | {
@@ -2708,8 +2737,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2708
2737
  type: "text";
2709
2738
  text: string;
2710
2739
  } | {
2711
- mimeType: string;
2712
2740
  type: "image";
2741
+ mimeType: string;
2713
2742
  data?: string | undefined;
2714
2743
  uri?: string | undefined;
2715
2744
  } | {
@@ -2740,13 +2769,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2740
2769
  data: z.ZodOptional<z.ZodString>;
2741
2770
  uri: z.ZodOptional<z.ZodString>;
2742
2771
  }, "strip", z.ZodTypeAny, {
2743
- mimeType: string;
2744
2772
  type: "image";
2773
+ mimeType: string;
2745
2774
  data?: string | undefined;
2746
2775
  uri?: string | undefined;
2747
2776
  }, {
2748
- mimeType: string;
2749
2777
  type: "image";
2778
+ mimeType: string;
2750
2779
  data?: string | undefined;
2751
2780
  uri?: string | undefined;
2752
2781
  }>, z.ZodObject<{
@@ -2771,8 +2800,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2771
2800
  type: "text";
2772
2801
  text: string;
2773
2802
  } | {
2774
- mimeType: string;
2775
2803
  type: "image";
2804
+ mimeType: string;
2776
2805
  data?: string | undefined;
2777
2806
  uri?: string | undefined;
2778
2807
  } | {
@@ -2789,8 +2818,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2789
2818
  type: "text";
2790
2819
  text: string;
2791
2820
  } | {
2792
- mimeType: string;
2793
2821
  type: "image";
2822
+ mimeType: string;
2794
2823
  data?: string | undefined;
2795
2824
  uri?: string | undefined;
2796
2825
  } | {
@@ -2828,13 +2857,13 @@ export declare const sessionEventSchema: z.ZodObject<{
2828
2857
  data: z.ZodOptional<z.ZodString>;
2829
2858
  uri: z.ZodOptional<z.ZodString>;
2830
2859
  }, "strip", z.ZodTypeAny, {
2831
- mimeType: string;
2832
2860
  type: "image";
2861
+ mimeType: string;
2833
2862
  data?: string | undefined;
2834
2863
  uri?: string | undefined;
2835
2864
  }, {
2836
- mimeType: string;
2837
2865
  type: "image";
2866
+ mimeType: string;
2838
2867
  data?: string | undefined;
2839
2868
  uri?: string | undefined;
2840
2869
  }>, z.ZodObject<{
@@ -2860,8 +2889,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2860
2889
  type: "text";
2861
2890
  text: string;
2862
2891
  } | {
2863
- mimeType: string;
2864
2892
  type: "image";
2893
+ mimeType: string;
2865
2894
  data?: string | undefined;
2866
2895
  uri?: string | undefined;
2867
2896
  } | {
@@ -2876,8 +2905,8 @@ export declare const sessionEventSchema: z.ZodObject<{
2876
2905
  type: "text";
2877
2906
  text: string;
2878
2907
  } | {
2879
- mimeType: string;
2880
2908
  type: "image";
2909
+ mimeType: string;
2881
2910
  data?: string | undefined;
2882
2911
  uri?: string | undefined;
2883
2912
  } | {
@@ -3295,8 +3324,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3295
3324
  type: "text";
3296
3325
  text: string;
3297
3326
  } | {
3298
- mimeType: string;
3299
3327
  type: "image";
3328
+ mimeType: string;
3300
3329
  data?: string | undefined;
3301
3330
  uri?: string | undefined;
3302
3331
  } | {
@@ -3400,8 +3429,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3400
3429
  type: "text";
3401
3430
  text: string;
3402
3431
  } | {
3403
- mimeType: string;
3404
3432
  type: "image";
3433
+ mimeType: string;
3405
3434
  data?: string | undefined;
3406
3435
  uri?: string | undefined;
3407
3436
  } | {
@@ -3735,13 +3764,13 @@ export declare const sessionEventSchema: z.ZodObject<{
3735
3764
  data: z.ZodOptional<z.ZodString>;
3736
3765
  uri: z.ZodOptional<z.ZodString>;
3737
3766
  }, "strip", z.ZodTypeAny, {
3738
- mimeType: string;
3739
3767
  type: "image";
3768
+ mimeType: string;
3740
3769
  data?: string | undefined;
3741
3770
  uri?: string | undefined;
3742
3771
  }, {
3743
- mimeType: string;
3744
3772
  type: "image";
3773
+ mimeType: string;
3745
3774
  data?: string | undefined;
3746
3775
  uri?: string | undefined;
3747
3776
  }>, z.ZodObject<{
@@ -3767,8 +3796,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3767
3796
  type: "text";
3768
3797
  text: string;
3769
3798
  } | {
3770
- mimeType: string;
3771
3799
  type: "image";
3800
+ mimeType: string;
3772
3801
  data?: string | undefined;
3773
3802
  uri?: string | undefined;
3774
3803
  } | {
@@ -3783,8 +3812,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3783
3812
  type: "text";
3784
3813
  text: string;
3785
3814
  } | {
3786
- mimeType: string;
3787
3815
  type: "image";
3816
+ mimeType: string;
3788
3817
  data?: string | undefined;
3789
3818
  uri?: string | undefined;
3790
3819
  } | {
@@ -3913,8 +3942,8 @@ export declare const sessionEventSchema: z.ZodObject<{
3913
3942
  type: "text";
3914
3943
  text: string;
3915
3944
  } | {
3916
- mimeType: string;
3917
3945
  type: "image";
3946
+ mimeType: string;
3918
3947
  data?: string | undefined;
3919
3948
  uri?: string | undefined;
3920
3949
  } | {
@@ -4014,8 +4043,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4014
4043
  type: "text";
4015
4044
  text: string;
4016
4045
  } | {
4017
- mimeType: string;
4018
4046
  type: "image";
4047
+ mimeType: string;
4019
4048
  data?: string | undefined;
4020
4049
  uri?: string | undefined;
4021
4050
  } | {
@@ -4081,16 +4110,16 @@ export declare const sessionEventSchema: z.ZodObject<{
4081
4110
  iterations: z.ZodOptional<z.ZodNumber>;
4082
4111
  lastReason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4083
4112
  }, "strip", z.ZodTypeAny, {
4084
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4085
4113
  objective: string;
4114
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4086
4115
  tokenBudget?: number | null | undefined;
4087
4116
  tokensUsed?: number | undefined;
4088
4117
  timeUsedSeconds?: number | undefined;
4089
4118
  iterations?: number | undefined;
4090
4119
  lastReason?: string | null | undefined;
4091
4120
  }, {
4092
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4093
4121
  objective: string;
4122
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4094
4123
  tokenBudget?: number | null | undefined;
4095
4124
  tokensUsed?: number | undefined;
4096
4125
  timeUsedSeconds?: number | undefined;
@@ -4100,8 +4129,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4100
4129
  }, "strip", z.ZodTypeAny, {
4101
4130
  sessionUpdate: "ls_goal";
4102
4131
  goal: {
4103
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4104
4132
  objective: string;
4133
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4105
4134
  tokenBudget?: number | null | undefined;
4106
4135
  tokensUsed?: number | undefined;
4107
4136
  timeUsedSeconds?: number | undefined;
@@ -4111,8 +4140,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4111
4140
  }, {
4112
4141
  sessionUpdate: "ls_goal";
4113
4142
  goal: {
4114
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4115
4143
  objective: string;
4144
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4116
4145
  tokenBudget?: number | null | undefined;
4117
4146
  tokensUsed?: number | undefined;
4118
4147
  timeUsedSeconds?: number | undefined;
@@ -4181,6 +4210,35 @@ export declare const sessionEventSchema: z.ZodObject<{
4181
4210
  sessionUpdate: "usage_update";
4182
4211
  usedTokens?: number | undefined;
4183
4212
  contextWindow?: number | undefined;
4213
+ }>, z.ZodObject<{
4214
+ sessionUpdate: z.ZodLiteral<"ls_async_questions">;
4215
+ questions: z.ZodArray<z.ZodObject<{
4216
+ id: z.ZodString;
4217
+ title: z.ZodString;
4218
+ options: z.ZodArray<z.ZodString, "many">;
4219
+ }, "strip", z.ZodTypeAny, {
4220
+ options: string[];
4221
+ id: string;
4222
+ title: string;
4223
+ }, {
4224
+ options: string[];
4225
+ id: string;
4226
+ title: string;
4227
+ }>, "many">;
4228
+ }, "strip", z.ZodTypeAny, {
4229
+ questions: {
4230
+ options: string[];
4231
+ id: string;
4232
+ title: string;
4233
+ }[];
4234
+ sessionUpdate: "ls_async_questions";
4235
+ }, {
4236
+ questions: {
4237
+ options: string[];
4238
+ id: string;
4239
+ title: string;
4240
+ }[];
4241
+ sessionUpdate: "ls_async_questions";
4184
4242
  }>, z.ZodObject<{
4185
4243
  sessionUpdate: z.ZodLiteral<"ls_message_done">;
4186
4244
  parentToolCallId: z.ZodOptional<z.ZodString>;
@@ -4196,12 +4254,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4196
4254
  title: z.ZodString;
4197
4255
  options: z.ZodArray<z.ZodString, "many">;
4198
4256
  }, "strip", z.ZodTypeAny, {
4199
- id: string;
4200
4257
  options: string[];
4258
+ id: string;
4201
4259
  title: string;
4202
4260
  }, {
4203
- id: string;
4204
4261
  options: string[];
4262
+ id: string;
4205
4263
  title: string;
4206
4264
  }>, "many">>;
4207
4265
  }, "strip", z.ZodTypeAny, {
@@ -4209,8 +4267,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4209
4267
  messageId: string;
4210
4268
  role: "agent" | "thought" | "user";
4211
4269
  questions?: {
4212
- id: string;
4213
4270
  options: string[];
4271
+ id: string;
4214
4272
  title: string;
4215
4273
  }[] | undefined;
4216
4274
  parentToolCallId?: string | undefined;
@@ -4219,8 +4277,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4219
4277
  messageId: string;
4220
4278
  role: "agent" | "thought" | "user";
4221
4279
  questions?: {
4222
- id: string;
4223
4280
  options: string[];
4281
+ id: string;
4224
4282
  title: string;
4225
4283
  }[] | undefined;
4226
4284
  parentToolCallId?: string | undefined;
@@ -4246,34 +4304,34 @@ export declare const sessionEventSchema: z.ZodObject<{
4246
4304
  description?: string | undefined;
4247
4305
  }>, "many">;
4248
4306
  }, "strip", z.ZodTypeAny, {
4249
- id: string;
4250
4307
  values: {
4251
4308
  value: string;
4252
4309
  name: string;
4253
4310
  description?: string | undefined;
4254
4311
  }[];
4312
+ id: string;
4255
4313
  name: string;
4256
4314
  category: "model" | "other" | "mode" | "effort";
4257
4315
  current: string;
4258
4316
  }, {
4259
- id: string;
4260
4317
  values: {
4261
4318
  value: string;
4262
4319
  name: string;
4263
4320
  description?: string | undefined;
4264
4321
  }[];
4322
+ id: string;
4265
4323
  name: string;
4266
4324
  current: string;
4267
4325
  category?: "model" | "other" | "mode" | "effort" | undefined;
4268
4326
  }>, "many">;
4269
4327
  }, "strip", z.ZodTypeAny, {
4270
4328
  options: {
4271
- id: string;
4272
4329
  values: {
4273
4330
  value: string;
4274
4331
  name: string;
4275
4332
  description?: string | undefined;
4276
4333
  }[];
4334
+ id: string;
4277
4335
  name: string;
4278
4336
  category: "model" | "other" | "mode" | "effort";
4279
4337
  current: string;
@@ -4281,12 +4339,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4281
4339
  sessionUpdate: "ls_config";
4282
4340
  }, {
4283
4341
  options: {
4284
- id: string;
4285
4342
  values: {
4286
4343
  value: string;
4287
4344
  name: string;
4288
4345
  description?: string | undefined;
4289
4346
  }[];
4347
+ id: string;
4290
4348
  name: string;
4291
4349
  current: string;
4292
4350
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -4458,12 +4516,12 @@ export declare const sessionEventSchema: z.ZodObject<{
4458
4516
  values: z.ZodArray<z.ZodString, "many">;
4459
4517
  other: z.ZodOptional<z.ZodString>;
4460
4518
  }, "strip", z.ZodTypeAny, {
4461
- id: string;
4462
4519
  values: string[];
4520
+ id: string;
4463
4521
  other?: string | undefined;
4464
4522
  }, {
4465
- id: string;
4466
4523
  values: string[];
4524
+ id: string;
4467
4525
  other?: string | undefined;
4468
4526
  }>, "many">>;
4469
4527
  }, "strip", z.ZodTypeAny, {
@@ -4471,8 +4529,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4471
4529
  sessionUpdate: "ls_permission_resolved";
4472
4530
  optionId?: string | undefined;
4473
4531
  answers?: {
4474
- id: string;
4475
4532
  values: string[];
4533
+ id: string;
4476
4534
  other?: string | undefined;
4477
4535
  }[] | undefined;
4478
4536
  }, {
@@ -4480,8 +4538,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4480
4538
  sessionUpdate: "ls_permission_resolved";
4481
4539
  optionId?: string | undefined;
4482
4540
  answers?: {
4483
- id: string;
4484
4541
  values: string[];
4542
+ id: string;
4485
4543
  other?: string | undefined;
4486
4544
  }[] | undefined;
4487
4545
  }>, z.ZodObject<{
@@ -4500,10 +4558,10 @@ export declare const sessionEventSchema: z.ZodObject<{
4500
4558
  sessionUpdate: z.ZodLiteral<"ls_status">;
4501
4559
  state: z.ZodEnum<["idle", "running", "waiting", "error", "offline"]>;
4502
4560
  }, "strip", z.ZodTypeAny, {
4503
- state: "error" | "running" | "idle" | "waiting" | "offline";
4561
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4504
4562
  sessionUpdate: "ls_status";
4505
4563
  }, {
4506
- state: "error" | "running" | "idle" | "waiting" | "offline";
4564
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4507
4565
  sessionUpdate: "ls_status";
4508
4566
  }>, z.ZodObject<{
4509
4567
  sessionUpdate: z.ZodLiteral<"ls_task">;
@@ -4606,8 +4664,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4606
4664
  type: "text";
4607
4665
  text: string;
4608
4666
  } | {
4609
- mimeType: string;
4610
4667
  type: "image";
4668
+ mimeType: string;
4611
4669
  data?: string | undefined;
4612
4670
  uri?: string | undefined;
4613
4671
  } | {
@@ -4623,8 +4681,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4623
4681
  type: "text";
4624
4682
  text: string;
4625
4683
  } | {
4626
- mimeType: string;
4627
4684
  type: "image";
4685
+ mimeType: string;
4628
4686
  data?: string | undefined;
4629
4687
  uri?: string | undefined;
4630
4688
  } | {
@@ -4641,8 +4699,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4641
4699
  type: "text";
4642
4700
  text: string;
4643
4701
  } | {
4644
- mimeType: string;
4645
4702
  type: "image";
4703
+ mimeType: string;
4646
4704
  data?: string | undefined;
4647
4705
  uri?: string | undefined;
4648
4706
  } | {
@@ -4729,8 +4787,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4729
4787
  type: "text";
4730
4788
  text: string;
4731
4789
  } | {
4732
- mimeType: string;
4733
4790
  type: "image";
4791
+ mimeType: string;
4734
4792
  data?: string | undefined;
4735
4793
  uri?: string | undefined;
4736
4794
  } | {
@@ -4833,8 +4891,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4833
4891
  type: "text";
4834
4892
  text: string;
4835
4893
  } | {
4836
- mimeType: string;
4837
4894
  type: "image";
4895
+ mimeType: string;
4838
4896
  data?: string | undefined;
4839
4897
  uri?: string | undefined;
4840
4898
  } | {
@@ -4870,8 +4928,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4870
4928
  } | {
4871
4929
  sessionUpdate: "ls_goal";
4872
4930
  goal: {
4873
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4874
4931
  objective: string;
4932
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
4875
4933
  tokenBudget?: number | null | undefined;
4876
4934
  tokensUsed?: number | undefined;
4877
4935
  timeUsedSeconds?: number | undefined;
@@ -4896,24 +4954,31 @@ export declare const sessionEventSchema: z.ZodObject<{
4896
4954
  sessionUpdate: "usage_update";
4897
4955
  usedTokens?: number | undefined;
4898
4956
  contextWindow?: number | undefined;
4957
+ } | {
4958
+ questions: {
4959
+ options: string[];
4960
+ id: string;
4961
+ title: string;
4962
+ }[];
4963
+ sessionUpdate: "ls_async_questions";
4899
4964
  } | {
4900
4965
  sessionUpdate: "ls_message_done";
4901
4966
  messageId: string;
4902
4967
  role: "agent" | "thought" | "user";
4903
4968
  questions?: {
4904
- id: string;
4905
4969
  options: string[];
4970
+ id: string;
4906
4971
  title: string;
4907
4972
  }[] | undefined;
4908
4973
  parentToolCallId?: string | undefined;
4909
4974
  } | {
4910
4975
  options: {
4911
- id: string;
4912
4976
  values: {
4913
4977
  value: string;
4914
4978
  name: string;
4915
4979
  description?: string | undefined;
4916
4980
  }[];
4981
+ id: string;
4917
4982
  name: string;
4918
4983
  category: "model" | "other" | "mode" | "effort";
4919
4984
  current: string;
@@ -4960,8 +5025,8 @@ export declare const sessionEventSchema: z.ZodObject<{
4960
5025
  sessionUpdate: "ls_permission_resolved";
4961
5026
  optionId?: string | undefined;
4962
5027
  answers?: {
4963
- id: string;
4964
5028
  values: string[];
5029
+ id: string;
4965
5030
  other?: string | undefined;
4966
5031
  }[] | undefined;
4967
5032
  } | {
@@ -4969,7 +5034,7 @@ export declare const sessionEventSchema: z.ZodObject<{
4969
5034
  sessionUpdate: "ls_driver";
4970
5035
  deviceId?: string | undefined;
4971
5036
  } | {
4972
- state: "error" | "running" | "idle" | "waiting" | "offline";
5037
+ state: "running" | "idle" | "waiting" | "error" | "offline";
4973
5038
  sessionUpdate: "ls_status";
4974
5039
  } | {
4975
5040
  task: {
@@ -5003,8 +5068,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5003
5068
  type: "text";
5004
5069
  text: string;
5005
5070
  } | {
5006
- mimeType: string;
5007
5071
  type: "image";
5072
+ mimeType: string;
5008
5073
  data?: string | undefined;
5009
5074
  uri?: string | undefined;
5010
5075
  } | {
@@ -5020,8 +5085,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5020
5085
  type: "text";
5021
5086
  text: string;
5022
5087
  } | {
5023
- mimeType: string;
5024
5088
  type: "image";
5089
+ mimeType: string;
5025
5090
  data?: string | undefined;
5026
5091
  uri?: string | undefined;
5027
5092
  } | {
@@ -5038,8 +5103,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5038
5103
  type: "text";
5039
5104
  text: string;
5040
5105
  } | {
5041
- mimeType: string;
5042
5106
  type: "image";
5107
+ mimeType: string;
5043
5108
  data?: string | undefined;
5044
5109
  uri?: string | undefined;
5045
5110
  } | {
@@ -5126,8 +5191,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5126
5191
  type: "text";
5127
5192
  text: string;
5128
5193
  } | {
5129
- mimeType: string;
5130
5194
  type: "image";
5195
+ mimeType: string;
5131
5196
  data?: string | undefined;
5132
5197
  uri?: string | undefined;
5133
5198
  } | {
@@ -5230,8 +5295,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5230
5295
  type: "text";
5231
5296
  text: string;
5232
5297
  } | {
5233
- mimeType: string;
5234
5298
  type: "image";
5299
+ mimeType: string;
5235
5300
  data?: string | undefined;
5236
5301
  uri?: string | undefined;
5237
5302
  } | {
@@ -5267,8 +5332,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5267
5332
  } | {
5268
5333
  sessionUpdate: "ls_goal";
5269
5334
  goal: {
5270
- status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
5271
5335
  objective: string;
5336
+ status: "active" | "paused" | "blocked" | "usageLimited" | "budgetLimited" | "complete";
5272
5337
  tokenBudget?: number | null | undefined;
5273
5338
  tokensUsed?: number | undefined;
5274
5339
  timeUsedSeconds?: number | undefined;
@@ -5293,24 +5358,31 @@ export declare const sessionEventSchema: z.ZodObject<{
5293
5358
  sessionUpdate: "usage_update";
5294
5359
  usedTokens?: number | undefined;
5295
5360
  contextWindow?: number | undefined;
5361
+ } | {
5362
+ questions: {
5363
+ options: string[];
5364
+ id: string;
5365
+ title: string;
5366
+ }[];
5367
+ sessionUpdate: "ls_async_questions";
5296
5368
  } | {
5297
5369
  sessionUpdate: "ls_message_done";
5298
5370
  messageId: string;
5299
5371
  role: "agent" | "thought" | "user";
5300
5372
  questions?: {
5301
- id: string;
5302
5373
  options: string[];
5374
+ id: string;
5303
5375
  title: string;
5304
5376
  }[] | undefined;
5305
5377
  parentToolCallId?: string | undefined;
5306
5378
  } | {
5307
5379
  options: {
5308
- id: string;
5309
5380
  values: {
5310
5381
  value: string;
5311
5382
  name: string;
5312
5383
  description?: string | undefined;
5313
5384
  }[];
5385
+ id: string;
5314
5386
  name: string;
5315
5387
  current: string;
5316
5388
  category?: "model" | "other" | "mode" | "effort" | undefined;
@@ -5357,8 +5429,8 @@ export declare const sessionEventSchema: z.ZodObject<{
5357
5429
  sessionUpdate: "ls_permission_resolved";
5358
5430
  optionId?: string | undefined;
5359
5431
  answers?: {
5360
- id: string;
5361
5432
  values: string[];
5433
+ id: string;
5362
5434
  other?: string | undefined;
5363
5435
  }[] | undefined;
5364
5436
  } | {
@@ -5366,7 +5438,7 @@ export declare const sessionEventSchema: z.ZodObject<{
5366
5438
  sessionUpdate: "ls_driver";
5367
5439
  deviceId?: string | undefined;
5368
5440
  } | {
5369
- state: "error" | "running" | "idle" | "waiting" | "offline";
5441
+ state: "running" | "idle" | "waiting" | "error" | "offline";
5370
5442
  sessionUpdate: "ls_status";
5371
5443
  } | {
5372
5444
  task: {