@linkshell/gateway 0.5.3 → 0.6.1

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.
Files changed (109) hide show
  1. package/Dockerfile +8 -22
  2. package/README.md +102 -44
  3. package/dist/gateway/src/accounts.js.map +1 -0
  4. package/dist/gateway/src/index.d.ts +4 -1
  5. package/dist/gateway/src/index.js +4 -863
  6. package/dist/gateway/src/index.js.map +1 -1
  7. package/dist/gateway/src/main.js +57 -0
  8. package/dist/gateway/src/main.js.map +1 -0
  9. package/dist/gateway/src/rate-limit.d.ts +32 -0
  10. package/dist/gateway/src/rate-limit.js +106 -0
  11. package/dist/gateway/src/rate-limit.js.map +1 -0
  12. package/dist/gateway/src/relay.d.ts +84 -5
  13. package/dist/gateway/src/relay.js +402 -529
  14. package/dist/gateway/src/relay.js.map +1 -1
  15. package/dist/gateway/src/serve.d.ts +34 -0
  16. package/dist/gateway/src/serve.js +115 -0
  17. package/dist/gateway/src/serve.js.map +1 -0
  18. package/dist/{gateway-v2 → gateway}/src/store.d.ts +5 -0
  19. package/dist/{gateway-v2 → gateway}/src/store.js +7 -0
  20. package/dist/gateway/src/store.js.map +1 -0
  21. package/dist/gateway/src/subscription.d.ts +18 -0
  22. package/dist/gateway/src/subscription.js +46 -0
  23. package/dist/gateway/src/subscription.js.map +1 -0
  24. package/dist/gateway/tsconfig.tsbuildinfo +1 -1
  25. package/dist/wire/src/direct.d.ts +22 -0
  26. package/dist/wire/src/direct.js +37 -0
  27. package/dist/wire/src/direct.js.map +1 -0
  28. package/dist/wire/src/index.d.ts +1 -0
  29. package/dist/wire/src/index.js +1 -0
  30. package/dist/wire/src/index.js.map +1 -1
  31. package/dist/wire/src/model.d.ts +287 -6
  32. package/dist/wire/src/model.js +33 -0
  33. package/dist/wire/src/model.js.map +1 -1
  34. package/dist/wire/src/relay.d.ts +8 -8
  35. package/dist/wire/src/rpc.d.ts +1780 -44
  36. package/dist/wire/src/rpc.js +48 -3
  37. package/dist/wire/src/rpc.js.map +1 -1
  38. package/dist/wire/src/updates.d.ts +356 -0
  39. package/dist/wire/src/updates.js +11 -1
  40. package/dist/wire/src/updates.js.map +1 -1
  41. package/package.json +13 -13
  42. package/src/accounts.ts +32 -0
  43. package/src/index.ts +4 -997
  44. package/src/main.ts +65 -0
  45. package/src/rate-limit.ts +114 -0
  46. package/src/relay.ts +435 -620
  47. package/src/serve.ts +142 -0
  48. package/src/store.ts +135 -0
  49. package/src/subscription.ts +51 -0
  50. package/dist/gateway/src/auth-middleware.d.ts +0 -44
  51. package/dist/gateway/src/auth-middleware.js +0 -204
  52. package/dist/gateway/src/auth-middleware.js.map +0 -1
  53. package/dist/gateway/src/cors.d.ts +0 -2
  54. package/dist/gateway/src/cors.js +0 -7
  55. package/dist/gateway/src/cors.js.map +0 -1
  56. package/dist/gateway/src/embedded.d.ts +0 -21
  57. package/dist/gateway/src/embedded.js +0 -438
  58. package/dist/gateway/src/embedded.js.map +0 -1
  59. package/dist/gateway/src/host-auth.d.ts +0 -32
  60. package/dist/gateway/src/host-auth.js +0 -78
  61. package/dist/gateway/src/host-auth.js.map +0 -1
  62. package/dist/gateway/src/pairings.d.ts +0 -38
  63. package/dist/gateway/src/pairings.js +0 -119
  64. package/dist/gateway/src/pairings.js.map +0 -1
  65. package/dist/gateway/src/presence.d.ts +0 -28
  66. package/dist/gateway/src/presence.js +0 -92
  67. package/dist/gateway/src/presence.js.map +0 -1
  68. package/dist/gateway/src/sessions.d.ts +0 -113
  69. package/dist/gateway/src/sessions.js +0 -352
  70. package/dist/gateway/src/sessions.js.map +0 -1
  71. package/dist/gateway/src/state-store.d.ts +0 -21
  72. package/dist/gateway/src/state-store.js +0 -103
  73. package/dist/gateway/src/state-store.js.map +0 -1
  74. package/dist/gateway/src/static-web.d.ts +0 -15
  75. package/dist/gateway/src/static-web.js +0 -129
  76. package/dist/gateway/src/static-web.js.map +0 -1
  77. package/dist/gateway/src/tokens.d.ts +0 -19
  78. package/dist/gateway/src/tokens.js +0 -151
  79. package/dist/gateway/src/tokens.js.map +0 -1
  80. package/dist/gateway/src/tunnel.d.ts +0 -61
  81. package/dist/gateway/src/tunnel.js +0 -576
  82. package/dist/gateway/src/tunnel.js.map +0 -1
  83. package/dist/gateway-v2/src/accounts.js.map +0 -1
  84. package/dist/gateway-v2/src/index.d.ts +0 -3
  85. package/dist/gateway-v2/src/index.js +0 -4
  86. package/dist/gateway-v2/src/index.js.map +0 -1
  87. package/dist/gateway-v2/src/main.js +0 -17
  88. package/dist/gateway-v2/src/main.js.map +0 -1
  89. package/dist/gateway-v2/src/server.d.ts +0 -84
  90. package/dist/gateway-v2/src/server.js +0 -426
  91. package/dist/gateway-v2/src/server.js.map +0 -1
  92. package/dist/gateway-v2/src/store.js.map +0 -1
  93. package/dist/shared-protocol/src/index.d.ts +0 -17029
  94. package/dist/shared-protocol/src/index.js +0 -1064
  95. package/dist/shared-protocol/src/index.js.map +0 -1
  96. package/src/auth-middleware.ts +0 -266
  97. package/src/cors.ts +0 -8
  98. package/src/embedded.ts +0 -526
  99. package/src/host-auth.ts +0 -88
  100. package/src/pairings.ts +0 -133
  101. package/src/presence.ts +0 -118
  102. package/src/sessions.ts +0 -432
  103. package/src/state-store.ts +0 -140
  104. package/src/static-web.ts +0 -133
  105. package/src/tokens.ts +0 -159
  106. package/src/tunnel.ts +0 -644
  107. /package/dist/{gateway-v2 → gateway}/src/accounts.d.ts +0 -0
  108. /package/dist/{gateway-v2 → gateway}/src/accounts.js +0 -0
  109. /package/dist/{gateway-v2 → gateway}/src/main.d.ts +0 -0
@@ -183,6 +183,13 @@ export declare const methods: {
183
183
  hint?: string | undefined;
184
184
  } | undefined;
185
185
  }>, "many">;
186
+ direct: z.ZodOptional<z.ZodObject<{
187
+ iceServers: z.ZodArray<z.ZodString, "many">;
188
+ }, "strip", z.ZodTypeAny, {
189
+ iceServers: string[];
190
+ }, {
191
+ iceServers: string[];
192
+ }>>;
186
193
  }, "strip", z.ZodTypeAny, {
187
194
  machineId: string;
188
195
  hostname: string;
@@ -211,6 +218,9 @@ export declare const methods: {
211
218
  } | undefined;
212
219
  }[];
213
220
  home?: string | undefined;
221
+ direct?: {
222
+ iceServers: string[];
223
+ } | undefined;
214
224
  }, {
215
225
  machineId: string;
216
226
  hostname: string;
@@ -239,6 +249,9 @@ export declare const methods: {
239
249
  } | undefined;
240
250
  }[];
241
251
  home?: string | undefined;
252
+ direct?: {
253
+ iceServers: string[];
254
+ } | undefined;
242
255
  }>;
243
256
  };
244
257
  readonly "projects.list": {
@@ -349,6 +362,54 @@ export declare const methods: {
349
362
  name: string;
350
363
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
351
364
  }>, "many">;
365
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ id: z.ZodString;
367
+ header: z.ZodOptional<z.ZodString>;
368
+ text: z.ZodString;
369
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
370
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
371
+ value: z.ZodString;
372
+ label: z.ZodString;
373
+ description: z.ZodOptional<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ value: string;
376
+ label: string;
377
+ description?: string | undefined;
378
+ }, {
379
+ value: string;
380
+ label: string;
381
+ description?: string | undefined;
382
+ }>, "many">>;
383
+ other: z.ZodOptional<z.ZodBoolean>;
384
+ secret: z.ZodOptional<z.ZodBoolean>;
385
+ required: z.ZodOptional<z.ZodBoolean>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ id: string;
388
+ kind: "text" | "choice" | "choices";
389
+ text: string;
390
+ options?: {
391
+ value: string;
392
+ label: string;
393
+ description?: string | undefined;
394
+ }[] | undefined;
395
+ other?: boolean | undefined;
396
+ header?: string | undefined;
397
+ secret?: boolean | undefined;
398
+ required?: boolean | undefined;
399
+ }, {
400
+ id: string;
401
+ kind: "text" | "choice" | "choices";
402
+ text: string;
403
+ options?: {
404
+ value: string;
405
+ label: string;
406
+ description?: string | undefined;
407
+ }[] | undefined;
408
+ other?: boolean | undefined;
409
+ header?: string | undefined;
410
+ secret?: boolean | undefined;
411
+ required?: boolean | undefined;
412
+ }>, "many">>;
352
413
  }, "strip", z.ZodTypeAny, {
353
414
  options: {
354
415
  optionId: string;
@@ -359,6 +420,20 @@ export declare const methods: {
359
420
  requestId: string;
360
421
  toolCallId?: string | undefined;
361
422
  detail?: string | undefined;
423
+ questions?: {
424
+ id: string;
425
+ kind: "text" | "choice" | "choices";
426
+ text: string;
427
+ options?: {
428
+ value: string;
429
+ label: string;
430
+ description?: string | undefined;
431
+ }[] | undefined;
432
+ other?: boolean | undefined;
433
+ header?: string | undefined;
434
+ secret?: boolean | undefined;
435
+ required?: boolean | undefined;
436
+ }[] | undefined;
362
437
  }, {
363
438
  options: {
364
439
  optionId: string;
@@ -369,6 +444,20 @@ export declare const methods: {
369
444
  requestId: string;
370
445
  toolCallId?: string | undefined;
371
446
  detail?: string | undefined;
447
+ questions?: {
448
+ id: string;
449
+ kind: "text" | "choice" | "choices";
450
+ text: string;
451
+ options?: {
452
+ value: string;
453
+ label: string;
454
+ description?: string | undefined;
455
+ }[] | undefined;
456
+ other?: boolean | undefined;
457
+ header?: string | undefined;
458
+ secret?: boolean | undefined;
459
+ required?: boolean | undefined;
460
+ }[] | undefined;
372
461
  }>>;
373
462
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
374
463
  clientMessageId: z.ZodString;
@@ -376,12 +465,12 @@ export declare const methods: {
376
465
  images: z.ZodNumber;
377
466
  }, "strip", z.ZodTypeAny, {
378
467
  images: number;
379
- clientMessageId: string;
380
468
  text: string;
469
+ clientMessageId: string;
381
470
  }, {
382
471
  images: number;
383
- clientMessageId: string;
384
472
  text: string;
473
+ clientMessageId: string;
385
474
  }>, "many">>;
386
475
  worktree: z.ZodOptional<z.ZodObject<{
387
476
  branch: z.ZodString;
@@ -433,11 +522,25 @@ export declare const methods: {
433
522
  requestId: string;
434
523
  toolCallId?: string | undefined;
435
524
  detail?: string | undefined;
525
+ questions?: {
526
+ id: string;
527
+ kind: "text" | "choice" | "choices";
528
+ text: string;
529
+ options?: {
530
+ value: string;
531
+ label: string;
532
+ description?: string | undefined;
533
+ }[] | undefined;
534
+ other?: boolean | undefined;
535
+ header?: string | undefined;
536
+ secret?: boolean | undefined;
537
+ required?: boolean | undefined;
538
+ }[] | undefined;
436
539
  } | undefined;
437
540
  queue?: {
438
541
  images: number;
439
- clientMessageId: string;
440
542
  text: string;
543
+ clientMessageId: string;
441
544
  }[] | undefined;
442
545
  worktree?: {
443
546
  branch: string;
@@ -477,11 +580,25 @@ export declare const methods: {
477
580
  requestId: string;
478
581
  toolCallId?: string | undefined;
479
582
  detail?: string | undefined;
583
+ questions?: {
584
+ id: string;
585
+ kind: "text" | "choice" | "choices";
586
+ text: string;
587
+ options?: {
588
+ value: string;
589
+ label: string;
590
+ description?: string | undefined;
591
+ }[] | undefined;
592
+ other?: boolean | undefined;
593
+ header?: string | undefined;
594
+ secret?: boolean | undefined;
595
+ required?: boolean | undefined;
596
+ }[] | undefined;
480
597
  } | undefined;
481
598
  queue?: {
482
599
  images: number;
483
- clientMessageId: string;
484
600
  text: string;
601
+ clientMessageId: string;
485
602
  }[] | undefined;
486
603
  worktree?: {
487
604
  branch: string;
@@ -524,11 +641,25 @@ export declare const methods: {
524
641
  requestId: string;
525
642
  toolCallId?: string | undefined;
526
643
  detail?: string | undefined;
644
+ questions?: {
645
+ id: string;
646
+ kind: "text" | "choice" | "choices";
647
+ text: string;
648
+ options?: {
649
+ value: string;
650
+ label: string;
651
+ description?: string | undefined;
652
+ }[] | undefined;
653
+ other?: boolean | undefined;
654
+ header?: string | undefined;
655
+ secret?: boolean | undefined;
656
+ required?: boolean | undefined;
657
+ }[] | undefined;
527
658
  } | undefined;
528
659
  queue?: {
529
660
  images: number;
530
- clientMessageId: string;
531
661
  text: string;
662
+ clientMessageId: string;
532
663
  }[] | undefined;
533
664
  worktree?: {
534
665
  branch: string;
@@ -571,11 +702,25 @@ export declare const methods: {
571
702
  requestId: string;
572
703
  toolCallId?: string | undefined;
573
704
  detail?: string | undefined;
705
+ questions?: {
706
+ id: string;
707
+ kind: "text" | "choice" | "choices";
708
+ text: string;
709
+ options?: {
710
+ value: string;
711
+ label: string;
712
+ description?: string | undefined;
713
+ }[] | undefined;
714
+ other?: boolean | undefined;
715
+ header?: string | undefined;
716
+ secret?: boolean | undefined;
717
+ required?: boolean | undefined;
718
+ }[] | undefined;
574
719
  } | undefined;
575
720
  queue?: {
576
721
  images: number;
577
- clientMessageId: string;
578
722
  text: string;
723
+ clientMessageId: string;
579
724
  }[] | undefined;
580
725
  worktree?: {
581
726
  branch: string;
@@ -729,6 +874,54 @@ export declare const methods: {
729
874
  name: string;
730
875
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
731
876
  }>, "many">;
877
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ id: z.ZodString;
879
+ header: z.ZodOptional<z.ZodString>;
880
+ text: z.ZodString;
881
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
882
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
883
+ value: z.ZodString;
884
+ label: z.ZodString;
885
+ description: z.ZodOptional<z.ZodString>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ value: string;
888
+ label: string;
889
+ description?: string | undefined;
890
+ }, {
891
+ value: string;
892
+ label: string;
893
+ description?: string | undefined;
894
+ }>, "many">>;
895
+ other: z.ZodOptional<z.ZodBoolean>;
896
+ secret: z.ZodOptional<z.ZodBoolean>;
897
+ required: z.ZodOptional<z.ZodBoolean>;
898
+ }, "strip", z.ZodTypeAny, {
899
+ id: string;
900
+ kind: "text" | "choice" | "choices";
901
+ text: string;
902
+ options?: {
903
+ value: string;
904
+ label: string;
905
+ description?: string | undefined;
906
+ }[] | undefined;
907
+ other?: boolean | undefined;
908
+ header?: string | undefined;
909
+ secret?: boolean | undefined;
910
+ required?: boolean | undefined;
911
+ }, {
912
+ id: string;
913
+ kind: "text" | "choice" | "choices";
914
+ text: string;
915
+ options?: {
916
+ value: string;
917
+ label: string;
918
+ description?: string | undefined;
919
+ }[] | undefined;
920
+ other?: boolean | undefined;
921
+ header?: string | undefined;
922
+ secret?: boolean | undefined;
923
+ required?: boolean | undefined;
924
+ }>, "many">>;
732
925
  }, "strip", z.ZodTypeAny, {
733
926
  options: {
734
927
  optionId: string;
@@ -739,6 +932,20 @@ export declare const methods: {
739
932
  requestId: string;
740
933
  toolCallId?: string | undefined;
741
934
  detail?: string | undefined;
935
+ questions?: {
936
+ id: string;
937
+ kind: "text" | "choice" | "choices";
938
+ text: string;
939
+ options?: {
940
+ value: string;
941
+ label: string;
942
+ description?: string | undefined;
943
+ }[] | undefined;
944
+ other?: boolean | undefined;
945
+ header?: string | undefined;
946
+ secret?: boolean | undefined;
947
+ required?: boolean | undefined;
948
+ }[] | undefined;
742
949
  }, {
743
950
  options: {
744
951
  optionId: string;
@@ -749,6 +956,20 @@ export declare const methods: {
749
956
  requestId: string;
750
957
  toolCallId?: string | undefined;
751
958
  detail?: string | undefined;
959
+ questions?: {
960
+ id: string;
961
+ kind: "text" | "choice" | "choices";
962
+ text: string;
963
+ options?: {
964
+ value: string;
965
+ label: string;
966
+ description?: string | undefined;
967
+ }[] | undefined;
968
+ other?: boolean | undefined;
969
+ header?: string | undefined;
970
+ secret?: boolean | undefined;
971
+ required?: boolean | undefined;
972
+ }[] | undefined;
752
973
  }>>;
753
974
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
754
975
  clientMessageId: z.ZodString;
@@ -756,12 +977,12 @@ export declare const methods: {
756
977
  images: z.ZodNumber;
757
978
  }, "strip", z.ZodTypeAny, {
758
979
  images: number;
759
- clientMessageId: string;
760
980
  text: string;
981
+ clientMessageId: string;
761
982
  }, {
762
983
  images: number;
763
- clientMessageId: string;
764
984
  text: string;
985
+ clientMessageId: string;
765
986
  }>, "many">>;
766
987
  worktree: z.ZodOptional<z.ZodObject<{
767
988
  branch: z.ZodString;
@@ -813,11 +1034,25 @@ export declare const methods: {
813
1034
  requestId: string;
814
1035
  toolCallId?: string | undefined;
815
1036
  detail?: string | undefined;
1037
+ questions?: {
1038
+ id: string;
1039
+ kind: "text" | "choice" | "choices";
1040
+ text: string;
1041
+ options?: {
1042
+ value: string;
1043
+ label: string;
1044
+ description?: string | undefined;
1045
+ }[] | undefined;
1046
+ other?: boolean | undefined;
1047
+ header?: string | undefined;
1048
+ secret?: boolean | undefined;
1049
+ required?: boolean | undefined;
1050
+ }[] | undefined;
816
1051
  } | undefined;
817
1052
  queue?: {
818
1053
  images: number;
819
- clientMessageId: string;
820
1054
  text: string;
1055
+ clientMessageId: string;
821
1056
  }[] | undefined;
822
1057
  worktree?: {
823
1058
  branch: string;
@@ -857,11 +1092,25 @@ export declare const methods: {
857
1092
  requestId: string;
858
1093
  toolCallId?: string | undefined;
859
1094
  detail?: string | undefined;
1095
+ questions?: {
1096
+ id: string;
1097
+ kind: "text" | "choice" | "choices";
1098
+ text: string;
1099
+ options?: {
1100
+ value: string;
1101
+ label: string;
1102
+ description?: string | undefined;
1103
+ }[] | undefined;
1104
+ other?: boolean | undefined;
1105
+ header?: string | undefined;
1106
+ secret?: boolean | undefined;
1107
+ required?: boolean | undefined;
1108
+ }[] | undefined;
860
1109
  } | undefined;
861
1110
  queue?: {
862
1111
  images: number;
863
- clientMessageId: string;
864
1112
  text: string;
1113
+ clientMessageId: string;
865
1114
  }[] | undefined;
866
1115
  worktree?: {
867
1116
  branch: string;
@@ -903,11 +1152,25 @@ export declare const methods: {
903
1152
  requestId: string;
904
1153
  toolCallId?: string | undefined;
905
1154
  detail?: string | undefined;
1155
+ questions?: {
1156
+ id: string;
1157
+ kind: "text" | "choice" | "choices";
1158
+ text: string;
1159
+ options?: {
1160
+ value: string;
1161
+ label: string;
1162
+ description?: string | undefined;
1163
+ }[] | undefined;
1164
+ other?: boolean | undefined;
1165
+ header?: string | undefined;
1166
+ secret?: boolean | undefined;
1167
+ required?: boolean | undefined;
1168
+ }[] | undefined;
906
1169
  } | undefined;
907
1170
  queue?: {
908
1171
  images: number;
909
- clientMessageId: string;
910
1172
  text: string;
1173
+ clientMessageId: string;
911
1174
  }[] | undefined;
912
1175
  worktree?: {
913
1176
  branch: string;
@@ -949,11 +1212,25 @@ export declare const methods: {
949
1212
  requestId: string;
950
1213
  toolCallId?: string | undefined;
951
1214
  detail?: string | undefined;
1215
+ questions?: {
1216
+ id: string;
1217
+ kind: "text" | "choice" | "choices";
1218
+ text: string;
1219
+ options?: {
1220
+ value: string;
1221
+ label: string;
1222
+ description?: string | undefined;
1223
+ }[] | undefined;
1224
+ other?: boolean | undefined;
1225
+ header?: string | undefined;
1226
+ secret?: boolean | undefined;
1227
+ required?: boolean | undefined;
1228
+ }[] | undefined;
952
1229
  } | undefined;
953
1230
  queue?: {
954
1231
  images: number;
955
- clientMessageId: string;
956
1232
  text: string;
1233
+ clientMessageId: string;
957
1234
  }[] | undefined;
958
1235
  worktree?: {
959
1236
  branch: string;
@@ -1033,6 +1310,54 @@ export declare const methods: {
1033
1310
  name: string;
1034
1311
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1035
1312
  }>, "many">;
1313
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1314
+ id: z.ZodString;
1315
+ header: z.ZodOptional<z.ZodString>;
1316
+ text: z.ZodString;
1317
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
1318
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1319
+ value: z.ZodString;
1320
+ label: z.ZodString;
1321
+ description: z.ZodOptional<z.ZodString>;
1322
+ }, "strip", z.ZodTypeAny, {
1323
+ value: string;
1324
+ label: string;
1325
+ description?: string | undefined;
1326
+ }, {
1327
+ value: string;
1328
+ label: string;
1329
+ description?: string | undefined;
1330
+ }>, "many">>;
1331
+ other: z.ZodOptional<z.ZodBoolean>;
1332
+ secret: z.ZodOptional<z.ZodBoolean>;
1333
+ required: z.ZodOptional<z.ZodBoolean>;
1334
+ }, "strip", z.ZodTypeAny, {
1335
+ id: string;
1336
+ kind: "text" | "choice" | "choices";
1337
+ text: string;
1338
+ options?: {
1339
+ value: string;
1340
+ label: string;
1341
+ description?: string | undefined;
1342
+ }[] | undefined;
1343
+ other?: boolean | undefined;
1344
+ header?: string | undefined;
1345
+ secret?: boolean | undefined;
1346
+ required?: boolean | undefined;
1347
+ }, {
1348
+ id: string;
1349
+ kind: "text" | "choice" | "choices";
1350
+ text: string;
1351
+ options?: {
1352
+ value: string;
1353
+ label: string;
1354
+ description?: string | undefined;
1355
+ }[] | undefined;
1356
+ other?: boolean | undefined;
1357
+ header?: string | undefined;
1358
+ secret?: boolean | undefined;
1359
+ required?: boolean | undefined;
1360
+ }>, "many">>;
1036
1361
  }, "strip", z.ZodTypeAny, {
1037
1362
  options: {
1038
1363
  optionId: string;
@@ -1043,6 +1368,20 @@ export declare const methods: {
1043
1368
  requestId: string;
1044
1369
  toolCallId?: string | undefined;
1045
1370
  detail?: string | undefined;
1371
+ questions?: {
1372
+ id: string;
1373
+ kind: "text" | "choice" | "choices";
1374
+ text: string;
1375
+ options?: {
1376
+ value: string;
1377
+ label: string;
1378
+ description?: string | undefined;
1379
+ }[] | undefined;
1380
+ other?: boolean | undefined;
1381
+ header?: string | undefined;
1382
+ secret?: boolean | undefined;
1383
+ required?: boolean | undefined;
1384
+ }[] | undefined;
1046
1385
  }, {
1047
1386
  options: {
1048
1387
  optionId: string;
@@ -1053,6 +1392,20 @@ export declare const methods: {
1053
1392
  requestId: string;
1054
1393
  toolCallId?: string | undefined;
1055
1394
  detail?: string | undefined;
1395
+ questions?: {
1396
+ id: string;
1397
+ kind: "text" | "choice" | "choices";
1398
+ text: string;
1399
+ options?: {
1400
+ value: string;
1401
+ label: string;
1402
+ description?: string | undefined;
1403
+ }[] | undefined;
1404
+ other?: boolean | undefined;
1405
+ header?: string | undefined;
1406
+ secret?: boolean | undefined;
1407
+ required?: boolean | undefined;
1408
+ }[] | undefined;
1056
1409
  }>>;
1057
1410
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
1411
  clientMessageId: z.ZodString;
@@ -1060,12 +1413,12 @@ export declare const methods: {
1060
1413
  images: z.ZodNumber;
1061
1414
  }, "strip", z.ZodTypeAny, {
1062
1415
  images: number;
1063
- clientMessageId: string;
1064
1416
  text: string;
1417
+ clientMessageId: string;
1065
1418
  }, {
1066
1419
  images: number;
1067
- clientMessageId: string;
1068
1420
  text: string;
1421
+ clientMessageId: string;
1069
1422
  }>, "many">>;
1070
1423
  worktree: z.ZodOptional<z.ZodObject<{
1071
1424
  branch: z.ZodString;
@@ -1117,11 +1470,25 @@ export declare const methods: {
1117
1470
  requestId: string;
1118
1471
  toolCallId?: string | undefined;
1119
1472
  detail?: string | undefined;
1473
+ questions?: {
1474
+ id: string;
1475
+ kind: "text" | "choice" | "choices";
1476
+ text: string;
1477
+ options?: {
1478
+ value: string;
1479
+ label: string;
1480
+ description?: string | undefined;
1481
+ }[] | undefined;
1482
+ other?: boolean | undefined;
1483
+ header?: string | undefined;
1484
+ secret?: boolean | undefined;
1485
+ required?: boolean | undefined;
1486
+ }[] | undefined;
1120
1487
  } | undefined;
1121
1488
  queue?: {
1122
1489
  images: number;
1123
- clientMessageId: string;
1124
1490
  text: string;
1491
+ clientMessageId: string;
1125
1492
  }[] | undefined;
1126
1493
  worktree?: {
1127
1494
  branch: string;
@@ -1161,11 +1528,25 @@ export declare const methods: {
1161
1528
  requestId: string;
1162
1529
  toolCallId?: string | undefined;
1163
1530
  detail?: string | undefined;
1531
+ questions?: {
1532
+ id: string;
1533
+ kind: "text" | "choice" | "choices";
1534
+ text: string;
1535
+ options?: {
1536
+ value: string;
1537
+ label: string;
1538
+ description?: string | undefined;
1539
+ }[] | undefined;
1540
+ other?: boolean | undefined;
1541
+ header?: string | undefined;
1542
+ secret?: boolean | undefined;
1543
+ required?: boolean | undefined;
1544
+ }[] | undefined;
1164
1545
  } | undefined;
1165
1546
  queue?: {
1166
1547
  images: number;
1167
- clientMessageId: string;
1168
1548
  text: string;
1549
+ clientMessageId: string;
1169
1550
  }[] | undefined;
1170
1551
  worktree?: {
1171
1552
  branch: string;
@@ -1207,11 +1588,25 @@ export declare const methods: {
1207
1588
  requestId: string;
1208
1589
  toolCallId?: string | undefined;
1209
1590
  detail?: string | undefined;
1591
+ questions?: {
1592
+ id: string;
1593
+ kind: "text" | "choice" | "choices";
1594
+ text: string;
1595
+ options?: {
1596
+ value: string;
1597
+ label: string;
1598
+ description?: string | undefined;
1599
+ }[] | undefined;
1600
+ other?: boolean | undefined;
1601
+ header?: string | undefined;
1602
+ secret?: boolean | undefined;
1603
+ required?: boolean | undefined;
1604
+ }[] | undefined;
1210
1605
  } | undefined;
1211
1606
  queue?: {
1212
1607
  images: number;
1213
- clientMessageId: string;
1214
1608
  text: string;
1609
+ clientMessageId: string;
1215
1610
  }[] | undefined;
1216
1611
  worktree?: {
1217
1612
  branch: string;
@@ -1253,11 +1648,25 @@ export declare const methods: {
1253
1648
  requestId: string;
1254
1649
  toolCallId?: string | undefined;
1255
1650
  detail?: string | undefined;
1651
+ questions?: {
1652
+ id: string;
1653
+ kind: "text" | "choice" | "choices";
1654
+ text: string;
1655
+ options?: {
1656
+ value: string;
1657
+ label: string;
1658
+ description?: string | undefined;
1659
+ }[] | undefined;
1660
+ other?: boolean | undefined;
1661
+ header?: string | undefined;
1662
+ secret?: boolean | undefined;
1663
+ required?: boolean | undefined;
1664
+ }[] | undefined;
1256
1665
  } | undefined;
1257
1666
  queue?: {
1258
1667
  images: number;
1259
- clientMessageId: string;
1260
1668
  text: string;
1669
+ clientMessageId: string;
1261
1670
  }[] | undefined;
1262
1671
  worktree?: {
1263
1672
  branch: string;
@@ -1342,6 +1751,54 @@ export declare const methods: {
1342
1751
  name: string;
1343
1752
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
1344
1753
  }>, "many">;
1754
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1755
+ id: z.ZodString;
1756
+ header: z.ZodOptional<z.ZodString>;
1757
+ text: z.ZodString;
1758
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
1759
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1760
+ value: z.ZodString;
1761
+ label: z.ZodString;
1762
+ description: z.ZodOptional<z.ZodString>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ value: string;
1765
+ label: string;
1766
+ description?: string | undefined;
1767
+ }, {
1768
+ value: string;
1769
+ label: string;
1770
+ description?: string | undefined;
1771
+ }>, "many">>;
1772
+ other: z.ZodOptional<z.ZodBoolean>;
1773
+ secret: z.ZodOptional<z.ZodBoolean>;
1774
+ required: z.ZodOptional<z.ZodBoolean>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ id: string;
1777
+ kind: "text" | "choice" | "choices";
1778
+ text: string;
1779
+ options?: {
1780
+ value: string;
1781
+ label: string;
1782
+ description?: string | undefined;
1783
+ }[] | undefined;
1784
+ other?: boolean | undefined;
1785
+ header?: string | undefined;
1786
+ secret?: boolean | undefined;
1787
+ required?: boolean | undefined;
1788
+ }, {
1789
+ id: string;
1790
+ kind: "text" | "choice" | "choices";
1791
+ text: string;
1792
+ options?: {
1793
+ value: string;
1794
+ label: string;
1795
+ description?: string | undefined;
1796
+ }[] | undefined;
1797
+ other?: boolean | undefined;
1798
+ header?: string | undefined;
1799
+ secret?: boolean | undefined;
1800
+ required?: boolean | undefined;
1801
+ }>, "many">>;
1345
1802
  }, "strip", z.ZodTypeAny, {
1346
1803
  options: {
1347
1804
  optionId: string;
@@ -1352,6 +1809,20 @@ export declare const methods: {
1352
1809
  requestId: string;
1353
1810
  toolCallId?: string | undefined;
1354
1811
  detail?: string | undefined;
1812
+ questions?: {
1813
+ id: string;
1814
+ kind: "text" | "choice" | "choices";
1815
+ text: string;
1816
+ options?: {
1817
+ value: string;
1818
+ label: string;
1819
+ description?: string | undefined;
1820
+ }[] | undefined;
1821
+ other?: boolean | undefined;
1822
+ header?: string | undefined;
1823
+ secret?: boolean | undefined;
1824
+ required?: boolean | undefined;
1825
+ }[] | undefined;
1355
1826
  }, {
1356
1827
  options: {
1357
1828
  optionId: string;
@@ -1362,6 +1833,20 @@ export declare const methods: {
1362
1833
  requestId: string;
1363
1834
  toolCallId?: string | undefined;
1364
1835
  detail?: string | undefined;
1836
+ questions?: {
1837
+ id: string;
1838
+ kind: "text" | "choice" | "choices";
1839
+ text: string;
1840
+ options?: {
1841
+ value: string;
1842
+ label: string;
1843
+ description?: string | undefined;
1844
+ }[] | undefined;
1845
+ other?: boolean | undefined;
1846
+ header?: string | undefined;
1847
+ secret?: boolean | undefined;
1848
+ required?: boolean | undefined;
1849
+ }[] | undefined;
1365
1850
  }>>;
1366
1851
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
1367
1852
  clientMessageId: z.ZodString;
@@ -1369,12 +1854,12 @@ export declare const methods: {
1369
1854
  images: z.ZodNumber;
1370
1855
  }, "strip", z.ZodTypeAny, {
1371
1856
  images: number;
1372
- clientMessageId: string;
1373
1857
  text: string;
1858
+ clientMessageId: string;
1374
1859
  }, {
1375
1860
  images: number;
1376
- clientMessageId: string;
1377
1861
  text: string;
1862
+ clientMessageId: string;
1378
1863
  }>, "many">>;
1379
1864
  worktree: z.ZodOptional<z.ZodObject<{
1380
1865
  branch: z.ZodString;
@@ -1426,11 +1911,25 @@ export declare const methods: {
1426
1911
  requestId: string;
1427
1912
  toolCallId?: string | undefined;
1428
1913
  detail?: string | undefined;
1914
+ questions?: {
1915
+ id: string;
1916
+ kind: "text" | "choice" | "choices";
1917
+ text: string;
1918
+ options?: {
1919
+ value: string;
1920
+ label: string;
1921
+ description?: string | undefined;
1922
+ }[] | undefined;
1923
+ other?: boolean | undefined;
1924
+ header?: string | undefined;
1925
+ secret?: boolean | undefined;
1926
+ required?: boolean | undefined;
1927
+ }[] | undefined;
1429
1928
  } | undefined;
1430
1929
  queue?: {
1431
1930
  images: number;
1432
- clientMessageId: string;
1433
1931
  text: string;
1932
+ clientMessageId: string;
1434
1933
  }[] | undefined;
1435
1934
  worktree?: {
1436
1935
  branch: string;
@@ -1470,11 +1969,25 @@ export declare const methods: {
1470
1969
  requestId: string;
1471
1970
  toolCallId?: string | undefined;
1472
1971
  detail?: string | undefined;
1972
+ questions?: {
1973
+ id: string;
1974
+ kind: "text" | "choice" | "choices";
1975
+ text: string;
1976
+ options?: {
1977
+ value: string;
1978
+ label: string;
1979
+ description?: string | undefined;
1980
+ }[] | undefined;
1981
+ other?: boolean | undefined;
1982
+ header?: string | undefined;
1983
+ secret?: boolean | undefined;
1984
+ required?: boolean | undefined;
1985
+ }[] | undefined;
1473
1986
  } | undefined;
1474
1987
  queue?: {
1475
1988
  images: number;
1476
- clientMessageId: string;
1477
1989
  text: string;
1990
+ clientMessageId: string;
1478
1991
  }[] | undefined;
1479
1992
  worktree?: {
1480
1993
  branch: string;
@@ -1517,11 +2030,25 @@ export declare const methods: {
1517
2030
  requestId: string;
1518
2031
  toolCallId?: string | undefined;
1519
2032
  detail?: string | undefined;
2033
+ questions?: {
2034
+ id: string;
2035
+ kind: "text" | "choice" | "choices";
2036
+ text: string;
2037
+ options?: {
2038
+ value: string;
2039
+ label: string;
2040
+ description?: string | undefined;
2041
+ }[] | undefined;
2042
+ other?: boolean | undefined;
2043
+ header?: string | undefined;
2044
+ secret?: boolean | undefined;
2045
+ required?: boolean | undefined;
2046
+ }[] | undefined;
1520
2047
  } | undefined;
1521
2048
  queue?: {
1522
2049
  images: number;
1523
- clientMessageId: string;
1524
2050
  text: string;
2051
+ clientMessageId: string;
1525
2052
  }[] | undefined;
1526
2053
  worktree?: {
1527
2054
  branch: string;
@@ -1564,11 +2091,25 @@ export declare const methods: {
1564
2091
  requestId: string;
1565
2092
  toolCallId?: string | undefined;
1566
2093
  detail?: string | undefined;
2094
+ questions?: {
2095
+ id: string;
2096
+ kind: "text" | "choice" | "choices";
2097
+ text: string;
2098
+ options?: {
2099
+ value: string;
2100
+ label: string;
2101
+ description?: string | undefined;
2102
+ }[] | undefined;
2103
+ other?: boolean | undefined;
2104
+ header?: string | undefined;
2105
+ secret?: boolean | undefined;
2106
+ required?: boolean | undefined;
2107
+ }[] | undefined;
1567
2108
  } | undefined;
1568
2109
  queue?: {
1569
2110
  images: number;
1570
- clientMessageId: string;
1571
2111
  text: string;
2112
+ clientMessageId: string;
1572
2113
  }[] | undefined;
1573
2114
  worktree?: {
1574
2115
  branch: string;
@@ -2049,6 +2590,18 @@ export declare const methods: {
2049
2590
  }, {
2050
2591
  type: "review";
2051
2592
  phase: "started" | "finished";
2593
+ }>, z.ZodObject<{
2594
+ type: z.ZodLiteral<"question">;
2595
+ text: z.ZodString;
2596
+ more: z.ZodOptional<z.ZodNumber>;
2597
+ }, "strip", z.ZodTypeAny, {
2598
+ type: "question";
2599
+ text: string;
2600
+ more?: number | undefined;
2601
+ }, {
2602
+ type: "question";
2603
+ text: string;
2604
+ more?: number | undefined;
2052
2605
  }>]>>;
2053
2606
  }, "strip", z.ZodTypeAny, {
2054
2607
  status: "failed" | "pending" | "in_progress" | "completed";
@@ -2081,6 +2634,10 @@ export declare const methods: {
2081
2634
  } | {
2082
2635
  type: "review";
2083
2636
  phase: "started" | "finished";
2637
+ } | {
2638
+ type: "question";
2639
+ text: string;
2640
+ more?: number | undefined;
2084
2641
  } | undefined;
2085
2642
  content?: ({
2086
2643
  type: "content";
@@ -2150,6 +2707,10 @@ export declare const methods: {
2150
2707
  } | {
2151
2708
  type: "review";
2152
2709
  phase: "started" | "finished";
2710
+ } | {
2711
+ type: "question";
2712
+ text: string;
2713
+ more?: number | undefined;
2153
2714
  } | undefined;
2154
2715
  content?: ({
2155
2716
  type: "content";
@@ -2269,6 +2830,18 @@ export declare const methods: {
2269
2830
  }, {
2270
2831
  type: "review";
2271
2832
  phase: "started" | "finished";
2833
+ }>, z.ZodObject<{
2834
+ type: z.ZodLiteral<"question">;
2835
+ text: z.ZodString;
2836
+ more: z.ZodOptional<z.ZodNumber>;
2837
+ }, "strip", z.ZodTypeAny, {
2838
+ type: "question";
2839
+ text: string;
2840
+ more?: number | undefined;
2841
+ }, {
2842
+ type: "question";
2843
+ text: string;
2844
+ more?: number | undefined;
2272
2845
  }>]>>;
2273
2846
  content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2274
2847
  type: z.ZodLiteral<"content">;
@@ -2419,6 +2992,10 @@ export declare const methods: {
2419
2992
  } | {
2420
2993
  type: "review";
2421
2994
  phase: "started" | "finished";
2995
+ } | {
2996
+ type: "question";
2997
+ text: string;
2998
+ more?: number | undefined;
2422
2999
  } | undefined;
2423
3000
  content?: ({
2424
3001
  type: "content";
@@ -2484,6 +3061,10 @@ export declare const methods: {
2484
3061
  } | {
2485
3062
  type: "review";
2486
3063
  phase: "started" | "finished";
3064
+ } | {
3065
+ type: "question";
3066
+ text: string;
3067
+ more?: number | undefined;
2487
3068
  } | undefined;
2488
3069
  content?: ({
2489
3070
  type: "content";
@@ -2744,6 +3325,54 @@ export declare const methods: {
2744
3325
  name: string;
2745
3326
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
2746
3327
  }>, "many">;
3328
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3329
+ id: z.ZodString;
3330
+ header: z.ZodOptional<z.ZodString>;
3331
+ text: z.ZodString;
3332
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
3333
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
3334
+ value: z.ZodString;
3335
+ label: z.ZodString;
3336
+ description: z.ZodOptional<z.ZodString>;
3337
+ }, "strip", z.ZodTypeAny, {
3338
+ value: string;
3339
+ label: string;
3340
+ description?: string | undefined;
3341
+ }, {
3342
+ value: string;
3343
+ label: string;
3344
+ description?: string | undefined;
3345
+ }>, "many">>;
3346
+ other: z.ZodOptional<z.ZodBoolean>;
3347
+ secret: z.ZodOptional<z.ZodBoolean>;
3348
+ required: z.ZodOptional<z.ZodBoolean>;
3349
+ }, "strip", z.ZodTypeAny, {
3350
+ id: string;
3351
+ kind: "text" | "choice" | "choices";
3352
+ text: string;
3353
+ options?: {
3354
+ value: string;
3355
+ label: string;
3356
+ description?: string | undefined;
3357
+ }[] | undefined;
3358
+ other?: boolean | undefined;
3359
+ header?: string | undefined;
3360
+ secret?: boolean | undefined;
3361
+ required?: boolean | undefined;
3362
+ }, {
3363
+ id: string;
3364
+ kind: "text" | "choice" | "choices";
3365
+ text: string;
3366
+ options?: {
3367
+ value: string;
3368
+ label: string;
3369
+ description?: string | undefined;
3370
+ }[] | undefined;
3371
+ other?: boolean | undefined;
3372
+ header?: string | undefined;
3373
+ secret?: boolean | undefined;
3374
+ required?: boolean | undefined;
3375
+ }>, "many">>;
2747
3376
  }, "strip", z.ZodTypeAny, {
2748
3377
  options: {
2749
3378
  optionId: string;
@@ -2755,6 +3384,20 @@ export declare const methods: {
2755
3384
  sessionUpdate: "ls_permission";
2756
3385
  toolCallId?: string | undefined;
2757
3386
  detail?: string | undefined;
3387
+ questions?: {
3388
+ id: string;
3389
+ kind: "text" | "choice" | "choices";
3390
+ text: string;
3391
+ options?: {
3392
+ value: string;
3393
+ label: string;
3394
+ description?: string | undefined;
3395
+ }[] | undefined;
3396
+ other?: boolean | undefined;
3397
+ header?: string | undefined;
3398
+ secret?: boolean | undefined;
3399
+ required?: boolean | undefined;
3400
+ }[] | undefined;
2758
3401
  }, {
2759
3402
  options: {
2760
3403
  optionId: string;
@@ -2766,18 +3409,55 @@ export declare const methods: {
2766
3409
  sessionUpdate: "ls_permission";
2767
3410
  toolCallId?: string | undefined;
2768
3411
  detail?: string | undefined;
3412
+ questions?: {
3413
+ id: string;
3414
+ kind: "text" | "choice" | "choices";
3415
+ text: string;
3416
+ options?: {
3417
+ value: string;
3418
+ label: string;
3419
+ description?: string | undefined;
3420
+ }[] | undefined;
3421
+ other?: boolean | undefined;
3422
+ header?: string | undefined;
3423
+ secret?: boolean | undefined;
3424
+ required?: boolean | undefined;
3425
+ }[] | undefined;
2769
3426
  }>, z.ZodObject<{
2770
3427
  sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
2771
3428
  requestId: z.ZodString;
2772
3429
  optionId: z.ZodOptional<z.ZodString>;
3430
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3431
+ id: z.ZodString;
3432
+ values: z.ZodArray<z.ZodString, "many">;
3433
+ other: z.ZodOptional<z.ZodString>;
3434
+ }, "strip", z.ZodTypeAny, {
3435
+ values: string[];
3436
+ id: string;
3437
+ other?: string | undefined;
3438
+ }, {
3439
+ values: string[];
3440
+ id: string;
3441
+ other?: string | undefined;
3442
+ }>, "many">>;
2773
3443
  }, "strip", z.ZodTypeAny, {
2774
3444
  requestId: string;
2775
3445
  sessionUpdate: "ls_permission_resolved";
2776
3446
  optionId?: string | undefined;
3447
+ answers?: {
3448
+ values: string[];
3449
+ id: string;
3450
+ other?: string | undefined;
3451
+ }[] | undefined;
2777
3452
  }, {
2778
3453
  requestId: string;
2779
3454
  sessionUpdate: "ls_permission_resolved";
2780
3455
  optionId?: string | undefined;
3456
+ answers?: {
3457
+ values: string[];
3458
+ id: string;
3459
+ other?: string | undefined;
3460
+ }[] | undefined;
2781
3461
  }>, z.ZodObject<{
2782
3462
  sessionUpdate: z.ZodLiteral<"ls_driver">;
2783
3463
  driver: z.ZodEnum<["desktop", "remote", "none"]>;
@@ -2900,6 +3580,10 @@ export declare const methods: {
2900
3580
  } | {
2901
3581
  type: "review";
2902
3582
  phase: "started" | "finished";
3583
+ } | {
3584
+ type: "question";
3585
+ text: string;
3586
+ more?: number | undefined;
2903
3587
  } | undefined;
2904
3588
  content?: ({
2905
3589
  type: "content";
@@ -2968,6 +3652,10 @@ export declare const methods: {
2968
3652
  } | {
2969
3653
  type: "review";
2970
3654
  phase: "started" | "finished";
3655
+ } | {
3656
+ type: "question";
3657
+ text: string;
3658
+ more?: number | undefined;
2971
3659
  } | undefined;
2972
3660
  content?: ({
2973
3661
  type: "content";
@@ -3068,10 +3756,29 @@ export declare const methods: {
3068
3756
  sessionUpdate: "ls_permission";
3069
3757
  toolCallId?: string | undefined;
3070
3758
  detail?: string | undefined;
3759
+ questions?: {
3760
+ id: string;
3761
+ kind: "text" | "choice" | "choices";
3762
+ text: string;
3763
+ options?: {
3764
+ value: string;
3765
+ label: string;
3766
+ description?: string | undefined;
3767
+ }[] | undefined;
3768
+ other?: boolean | undefined;
3769
+ header?: string | undefined;
3770
+ secret?: boolean | undefined;
3771
+ required?: boolean | undefined;
3772
+ }[] | undefined;
3071
3773
  } | {
3072
3774
  requestId: string;
3073
3775
  sessionUpdate: "ls_permission_resolved";
3074
3776
  optionId?: string | undefined;
3777
+ answers?: {
3778
+ values: string[];
3779
+ id: string;
3780
+ other?: string | undefined;
3781
+ }[] | undefined;
3075
3782
  } | {
3076
3783
  driver: "remote" | "desktop" | "none";
3077
3784
  sessionUpdate: "ls_driver";
@@ -3173,6 +3880,10 @@ export declare const methods: {
3173
3880
  } | {
3174
3881
  type: "review";
3175
3882
  phase: "started" | "finished";
3883
+ } | {
3884
+ type: "question";
3885
+ text: string;
3886
+ more?: number | undefined;
3176
3887
  } | undefined;
3177
3888
  content?: ({
3178
3889
  type: "content";
@@ -3241,6 +3952,10 @@ export declare const methods: {
3241
3952
  } | {
3242
3953
  type: "review";
3243
3954
  phase: "started" | "finished";
3955
+ } | {
3956
+ type: "question";
3957
+ text: string;
3958
+ more?: number | undefined;
3244
3959
  } | undefined;
3245
3960
  content?: ({
3246
3961
  type: "content";
@@ -3341,10 +4056,29 @@ export declare const methods: {
3341
4056
  sessionUpdate: "ls_permission";
3342
4057
  toolCallId?: string | undefined;
3343
4058
  detail?: string | undefined;
4059
+ questions?: {
4060
+ id: string;
4061
+ kind: "text" | "choice" | "choices";
4062
+ text: string;
4063
+ options?: {
4064
+ value: string;
4065
+ label: string;
4066
+ description?: string | undefined;
4067
+ }[] | undefined;
4068
+ other?: boolean | undefined;
4069
+ header?: string | undefined;
4070
+ secret?: boolean | undefined;
4071
+ required?: boolean | undefined;
4072
+ }[] | undefined;
3344
4073
  } | {
3345
4074
  requestId: string;
3346
4075
  sessionUpdate: "ls_permission_resolved";
3347
4076
  optionId?: string | undefined;
4077
+ answers?: {
4078
+ values: string[];
4079
+ id: string;
4080
+ other?: string | undefined;
4081
+ }[] | undefined;
3348
4082
  } | {
3349
4083
  driver: "remote" | "desktop" | "none";
3350
4084
  sessionUpdate: "ls_driver";
@@ -3450,6 +4184,10 @@ export declare const methods: {
3450
4184
  } | {
3451
4185
  type: "review";
3452
4186
  phase: "started" | "finished";
4187
+ } | {
4188
+ type: "question";
4189
+ text: string;
4190
+ more?: number | undefined;
3453
4191
  } | undefined;
3454
4192
  content?: ({
3455
4193
  type: "content";
@@ -3518,6 +4256,10 @@ export declare const methods: {
3518
4256
  } | {
3519
4257
  type: "review";
3520
4258
  phase: "started" | "finished";
4259
+ } | {
4260
+ type: "question";
4261
+ text: string;
4262
+ more?: number | undefined;
3521
4263
  } | undefined;
3522
4264
  content?: ({
3523
4265
  type: "content";
@@ -3618,10 +4360,29 @@ export declare const methods: {
3618
4360
  sessionUpdate: "ls_permission";
3619
4361
  toolCallId?: string | undefined;
3620
4362
  detail?: string | undefined;
4363
+ questions?: {
4364
+ id: string;
4365
+ kind: "text" | "choice" | "choices";
4366
+ text: string;
4367
+ options?: {
4368
+ value: string;
4369
+ label: string;
4370
+ description?: string | undefined;
4371
+ }[] | undefined;
4372
+ other?: boolean | undefined;
4373
+ header?: string | undefined;
4374
+ secret?: boolean | undefined;
4375
+ required?: boolean | undefined;
4376
+ }[] | undefined;
3621
4377
  } | {
3622
4378
  requestId: string;
3623
4379
  sessionUpdate: "ls_permission_resolved";
3624
4380
  optionId?: string | undefined;
4381
+ answers?: {
4382
+ values: string[];
4383
+ id: string;
4384
+ other?: string | undefined;
4385
+ }[] | undefined;
3625
4386
  } | {
3626
4387
  driver: "remote" | "desktop" | "none";
3627
4388
  sessionUpdate: "ls_driver";
@@ -3726,6 +4487,10 @@ export declare const methods: {
3726
4487
  } | {
3727
4488
  type: "review";
3728
4489
  phase: "started" | "finished";
4490
+ } | {
4491
+ type: "question";
4492
+ text: string;
4493
+ more?: number | undefined;
3729
4494
  } | undefined;
3730
4495
  content?: ({
3731
4496
  type: "content";
@@ -3794,6 +4559,10 @@ export declare const methods: {
3794
4559
  } | {
3795
4560
  type: "review";
3796
4561
  phase: "started" | "finished";
4562
+ } | {
4563
+ type: "question";
4564
+ text: string;
4565
+ more?: number | undefined;
3797
4566
  } | undefined;
3798
4567
  content?: ({
3799
4568
  type: "content";
@@ -3894,10 +4663,29 @@ export declare const methods: {
3894
4663
  sessionUpdate: "ls_permission";
3895
4664
  toolCallId?: string | undefined;
3896
4665
  detail?: string | undefined;
4666
+ questions?: {
4667
+ id: string;
4668
+ kind: "text" | "choice" | "choices";
4669
+ text: string;
4670
+ options?: {
4671
+ value: string;
4672
+ label: string;
4673
+ description?: string | undefined;
4674
+ }[] | undefined;
4675
+ other?: boolean | undefined;
4676
+ header?: string | undefined;
4677
+ secret?: boolean | undefined;
4678
+ required?: boolean | undefined;
4679
+ }[] | undefined;
3897
4680
  } | {
3898
4681
  requestId: string;
3899
4682
  sessionUpdate: "ls_permission_resolved";
3900
4683
  optionId?: string | undefined;
4684
+ answers?: {
4685
+ values: string[];
4686
+ id: string;
4687
+ other?: string | undefined;
4688
+ }[] | undefined;
3901
4689
  } | {
3902
4690
  driver: "remote" | "desktop" | "none";
3903
4691
  sessionUpdate: "ls_driver";
@@ -4445,6 +5233,18 @@ export declare const methods: {
4445
5233
  }, {
4446
5234
  type: "review";
4447
5235
  phase: "started" | "finished";
5236
+ }>, z.ZodObject<{
5237
+ type: z.ZodLiteral<"question">;
5238
+ text: z.ZodString;
5239
+ more: z.ZodOptional<z.ZodNumber>;
5240
+ }, "strip", z.ZodTypeAny, {
5241
+ type: "question";
5242
+ text: string;
5243
+ more?: number | undefined;
5244
+ }, {
5245
+ type: "question";
5246
+ text: string;
5247
+ more?: number | undefined;
4448
5248
  }>]>>;
4449
5249
  }, "strip", z.ZodTypeAny, {
4450
5250
  status: "failed" | "pending" | "in_progress" | "completed";
@@ -4477,6 +5277,10 @@ export declare const methods: {
4477
5277
  } | {
4478
5278
  type: "review";
4479
5279
  phase: "started" | "finished";
5280
+ } | {
5281
+ type: "question";
5282
+ text: string;
5283
+ more?: number | undefined;
4480
5284
  } | undefined;
4481
5285
  content?: ({
4482
5286
  type: "content";
@@ -4546,6 +5350,10 @@ export declare const methods: {
4546
5350
  } | {
4547
5351
  type: "review";
4548
5352
  phase: "started" | "finished";
5353
+ } | {
5354
+ type: "question";
5355
+ text: string;
5356
+ more?: number | undefined;
4549
5357
  } | undefined;
4550
5358
  content?: ({
4551
5359
  type: "content";
@@ -4665,6 +5473,18 @@ export declare const methods: {
4665
5473
  }, {
4666
5474
  type: "review";
4667
5475
  phase: "started" | "finished";
5476
+ }>, z.ZodObject<{
5477
+ type: z.ZodLiteral<"question">;
5478
+ text: z.ZodString;
5479
+ more: z.ZodOptional<z.ZodNumber>;
5480
+ }, "strip", z.ZodTypeAny, {
5481
+ type: "question";
5482
+ text: string;
5483
+ more?: number | undefined;
5484
+ }, {
5485
+ type: "question";
5486
+ text: string;
5487
+ more?: number | undefined;
4668
5488
  }>]>>;
4669
5489
  content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4670
5490
  type: z.ZodLiteral<"content">;
@@ -4815,6 +5635,10 @@ export declare const methods: {
4815
5635
  } | {
4816
5636
  type: "review";
4817
5637
  phase: "started" | "finished";
5638
+ } | {
5639
+ type: "question";
5640
+ text: string;
5641
+ more?: number | undefined;
4818
5642
  } | undefined;
4819
5643
  content?: ({
4820
5644
  type: "content";
@@ -4880,6 +5704,10 @@ export declare const methods: {
4880
5704
  } | {
4881
5705
  type: "review";
4882
5706
  phase: "started" | "finished";
5707
+ } | {
5708
+ type: "question";
5709
+ text: string;
5710
+ more?: number | undefined;
4883
5711
  } | undefined;
4884
5712
  content?: ({
4885
5713
  type: "content";
@@ -5140,6 +5968,54 @@ export declare const methods: {
5140
5968
  name: string;
5141
5969
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
5142
5970
  }>, "many">;
5971
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5972
+ id: z.ZodString;
5973
+ header: z.ZodOptional<z.ZodString>;
5974
+ text: z.ZodString;
5975
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
5976
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
5977
+ value: z.ZodString;
5978
+ label: z.ZodString;
5979
+ description: z.ZodOptional<z.ZodString>;
5980
+ }, "strip", z.ZodTypeAny, {
5981
+ value: string;
5982
+ label: string;
5983
+ description?: string | undefined;
5984
+ }, {
5985
+ value: string;
5986
+ label: string;
5987
+ description?: string | undefined;
5988
+ }>, "many">>;
5989
+ other: z.ZodOptional<z.ZodBoolean>;
5990
+ secret: z.ZodOptional<z.ZodBoolean>;
5991
+ required: z.ZodOptional<z.ZodBoolean>;
5992
+ }, "strip", z.ZodTypeAny, {
5993
+ id: string;
5994
+ kind: "text" | "choice" | "choices";
5995
+ text: string;
5996
+ options?: {
5997
+ value: string;
5998
+ label: string;
5999
+ description?: string | undefined;
6000
+ }[] | undefined;
6001
+ other?: boolean | undefined;
6002
+ header?: string | undefined;
6003
+ secret?: boolean | undefined;
6004
+ required?: boolean | undefined;
6005
+ }, {
6006
+ id: string;
6007
+ kind: "text" | "choice" | "choices";
6008
+ text: string;
6009
+ options?: {
6010
+ value: string;
6011
+ label: string;
6012
+ description?: string | undefined;
6013
+ }[] | undefined;
6014
+ other?: boolean | undefined;
6015
+ header?: string | undefined;
6016
+ secret?: boolean | undefined;
6017
+ required?: boolean | undefined;
6018
+ }>, "many">>;
5143
6019
  }, "strip", z.ZodTypeAny, {
5144
6020
  options: {
5145
6021
  optionId: string;
@@ -5151,6 +6027,20 @@ export declare const methods: {
5151
6027
  sessionUpdate: "ls_permission";
5152
6028
  toolCallId?: string | undefined;
5153
6029
  detail?: string | undefined;
6030
+ questions?: {
6031
+ id: string;
6032
+ kind: "text" | "choice" | "choices";
6033
+ text: string;
6034
+ options?: {
6035
+ value: string;
6036
+ label: string;
6037
+ description?: string | undefined;
6038
+ }[] | undefined;
6039
+ other?: boolean | undefined;
6040
+ header?: string | undefined;
6041
+ secret?: boolean | undefined;
6042
+ required?: boolean | undefined;
6043
+ }[] | undefined;
5154
6044
  }, {
5155
6045
  options: {
5156
6046
  optionId: string;
@@ -5162,18 +6052,55 @@ export declare const methods: {
5162
6052
  sessionUpdate: "ls_permission";
5163
6053
  toolCallId?: string | undefined;
5164
6054
  detail?: string | undefined;
6055
+ questions?: {
6056
+ id: string;
6057
+ kind: "text" | "choice" | "choices";
6058
+ text: string;
6059
+ options?: {
6060
+ value: string;
6061
+ label: string;
6062
+ description?: string | undefined;
6063
+ }[] | undefined;
6064
+ other?: boolean | undefined;
6065
+ header?: string | undefined;
6066
+ secret?: boolean | undefined;
6067
+ required?: boolean | undefined;
6068
+ }[] | undefined;
5165
6069
  }>, z.ZodObject<{
5166
6070
  sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
5167
6071
  requestId: z.ZodString;
5168
6072
  optionId: z.ZodOptional<z.ZodString>;
6073
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
6074
+ id: z.ZodString;
6075
+ values: z.ZodArray<z.ZodString, "many">;
6076
+ other: z.ZodOptional<z.ZodString>;
6077
+ }, "strip", z.ZodTypeAny, {
6078
+ values: string[];
6079
+ id: string;
6080
+ other?: string | undefined;
6081
+ }, {
6082
+ values: string[];
6083
+ id: string;
6084
+ other?: string | undefined;
6085
+ }>, "many">>;
5169
6086
  }, "strip", z.ZodTypeAny, {
5170
6087
  requestId: string;
5171
6088
  sessionUpdate: "ls_permission_resolved";
5172
6089
  optionId?: string | undefined;
6090
+ answers?: {
6091
+ values: string[];
6092
+ id: string;
6093
+ other?: string | undefined;
6094
+ }[] | undefined;
5173
6095
  }, {
5174
6096
  requestId: string;
5175
6097
  sessionUpdate: "ls_permission_resolved";
5176
6098
  optionId?: string | undefined;
6099
+ answers?: {
6100
+ values: string[];
6101
+ id: string;
6102
+ other?: string | undefined;
6103
+ }[] | undefined;
5177
6104
  }>, z.ZodObject<{
5178
6105
  sessionUpdate: z.ZodLiteral<"ls_driver">;
5179
6106
  driver: z.ZodEnum<["desktop", "remote", "none"]>;
@@ -5296,6 +6223,10 @@ export declare const methods: {
5296
6223
  } | {
5297
6224
  type: "review";
5298
6225
  phase: "started" | "finished";
6226
+ } | {
6227
+ type: "question";
6228
+ text: string;
6229
+ more?: number | undefined;
5299
6230
  } | undefined;
5300
6231
  content?: ({
5301
6232
  type: "content";
@@ -5364,6 +6295,10 @@ export declare const methods: {
5364
6295
  } | {
5365
6296
  type: "review";
5366
6297
  phase: "started" | "finished";
6298
+ } | {
6299
+ type: "question";
6300
+ text: string;
6301
+ more?: number | undefined;
5367
6302
  } | undefined;
5368
6303
  content?: ({
5369
6304
  type: "content";
@@ -5464,10 +6399,29 @@ export declare const methods: {
5464
6399
  sessionUpdate: "ls_permission";
5465
6400
  toolCallId?: string | undefined;
5466
6401
  detail?: string | undefined;
6402
+ questions?: {
6403
+ id: string;
6404
+ kind: "text" | "choice" | "choices";
6405
+ text: string;
6406
+ options?: {
6407
+ value: string;
6408
+ label: string;
6409
+ description?: string | undefined;
6410
+ }[] | undefined;
6411
+ other?: boolean | undefined;
6412
+ header?: string | undefined;
6413
+ secret?: boolean | undefined;
6414
+ required?: boolean | undefined;
6415
+ }[] | undefined;
5467
6416
  } | {
5468
6417
  requestId: string;
5469
6418
  sessionUpdate: "ls_permission_resolved";
5470
6419
  optionId?: string | undefined;
6420
+ answers?: {
6421
+ values: string[];
6422
+ id: string;
6423
+ other?: string | undefined;
6424
+ }[] | undefined;
5471
6425
  } | {
5472
6426
  driver: "remote" | "desktop" | "none";
5473
6427
  sessionUpdate: "ls_driver";
@@ -5569,6 +6523,10 @@ export declare const methods: {
5569
6523
  } | {
5570
6524
  type: "review";
5571
6525
  phase: "started" | "finished";
6526
+ } | {
6527
+ type: "question";
6528
+ text: string;
6529
+ more?: number | undefined;
5572
6530
  } | undefined;
5573
6531
  content?: ({
5574
6532
  type: "content";
@@ -5637,6 +6595,10 @@ export declare const methods: {
5637
6595
  } | {
5638
6596
  type: "review";
5639
6597
  phase: "started" | "finished";
6598
+ } | {
6599
+ type: "question";
6600
+ text: string;
6601
+ more?: number | undefined;
5640
6602
  } | undefined;
5641
6603
  content?: ({
5642
6604
  type: "content";
@@ -5737,10 +6699,29 @@ export declare const methods: {
5737
6699
  sessionUpdate: "ls_permission";
5738
6700
  toolCallId?: string | undefined;
5739
6701
  detail?: string | undefined;
6702
+ questions?: {
6703
+ id: string;
6704
+ kind: "text" | "choice" | "choices";
6705
+ text: string;
6706
+ options?: {
6707
+ value: string;
6708
+ label: string;
6709
+ description?: string | undefined;
6710
+ }[] | undefined;
6711
+ other?: boolean | undefined;
6712
+ header?: string | undefined;
6713
+ secret?: boolean | undefined;
6714
+ required?: boolean | undefined;
6715
+ }[] | undefined;
5740
6716
  } | {
5741
6717
  requestId: string;
5742
6718
  sessionUpdate: "ls_permission_resolved";
5743
6719
  optionId?: string | undefined;
6720
+ answers?: {
6721
+ values: string[];
6722
+ id: string;
6723
+ other?: string | undefined;
6724
+ }[] | undefined;
5744
6725
  } | {
5745
6726
  driver: "remote" | "desktop" | "none";
5746
6727
  sessionUpdate: "ls_driver";
@@ -5844,6 +6825,10 @@ export declare const methods: {
5844
6825
  } | {
5845
6826
  type: "review";
5846
6827
  phase: "started" | "finished";
6828
+ } | {
6829
+ type: "question";
6830
+ text: string;
6831
+ more?: number | undefined;
5847
6832
  } | undefined;
5848
6833
  content?: ({
5849
6834
  type: "content";
@@ -5912,6 +6897,10 @@ export declare const methods: {
5912
6897
  } | {
5913
6898
  type: "review";
5914
6899
  phase: "started" | "finished";
6900
+ } | {
6901
+ type: "question";
6902
+ text: string;
6903
+ more?: number | undefined;
5915
6904
  } | undefined;
5916
6905
  content?: ({
5917
6906
  type: "content";
@@ -6012,10 +7001,29 @@ export declare const methods: {
6012
7001
  sessionUpdate: "ls_permission";
6013
7002
  toolCallId?: string | undefined;
6014
7003
  detail?: string | undefined;
7004
+ questions?: {
7005
+ id: string;
7006
+ kind: "text" | "choice" | "choices";
7007
+ text: string;
7008
+ options?: {
7009
+ value: string;
7010
+ label: string;
7011
+ description?: string | undefined;
7012
+ }[] | undefined;
7013
+ other?: boolean | undefined;
7014
+ header?: string | undefined;
7015
+ secret?: boolean | undefined;
7016
+ required?: boolean | undefined;
7017
+ }[] | undefined;
6015
7018
  } | {
6016
7019
  requestId: string;
6017
7020
  sessionUpdate: "ls_permission_resolved";
6018
7021
  optionId?: string | undefined;
7022
+ answers?: {
7023
+ values: string[];
7024
+ id: string;
7025
+ other?: string | undefined;
7026
+ }[] | undefined;
6019
7027
  } | {
6020
7028
  driver: "remote" | "desktop" | "none";
6021
7029
  sessionUpdate: "ls_driver";
@@ -6119,6 +7127,10 @@ export declare const methods: {
6119
7127
  } | {
6120
7128
  type: "review";
6121
7129
  phase: "started" | "finished";
7130
+ } | {
7131
+ type: "question";
7132
+ text: string;
7133
+ more?: number | undefined;
6122
7134
  } | undefined;
6123
7135
  content?: ({
6124
7136
  type: "content";
@@ -6187,6 +7199,10 @@ export declare const methods: {
6187
7199
  } | {
6188
7200
  type: "review";
6189
7201
  phase: "started" | "finished";
7202
+ } | {
7203
+ type: "question";
7204
+ text: string;
7205
+ more?: number | undefined;
6190
7206
  } | undefined;
6191
7207
  content?: ({
6192
7208
  type: "content";
@@ -6287,10 +7303,29 @@ export declare const methods: {
6287
7303
  sessionUpdate: "ls_permission";
6288
7304
  toolCallId?: string | undefined;
6289
7305
  detail?: string | undefined;
7306
+ questions?: {
7307
+ id: string;
7308
+ kind: "text" | "choice" | "choices";
7309
+ text: string;
7310
+ options?: {
7311
+ value: string;
7312
+ label: string;
7313
+ description?: string | undefined;
7314
+ }[] | undefined;
7315
+ other?: boolean | undefined;
7316
+ header?: string | undefined;
7317
+ secret?: boolean | undefined;
7318
+ required?: boolean | undefined;
7319
+ }[] | undefined;
6290
7320
  } | {
6291
7321
  requestId: string;
6292
7322
  sessionUpdate: "ls_permission_resolved";
6293
7323
  optionId?: string | undefined;
7324
+ answers?: {
7325
+ values: string[];
7326
+ id: string;
7327
+ other?: string | undefined;
7328
+ }[] | undefined;
6294
7329
  } | {
6295
7330
  driver: "remote" | "desktop" | "none";
6296
7331
  sessionUpdate: "ls_driver";
@@ -6467,6 +7502,47 @@ export declare const methods: {
6467
7502
  }>;
6468
7503
  readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
6469
7504
  };
7505
+ /**
7506
+ * Answers the questions of a pending request (an `ls_permission` with
7507
+ * `questions`). Skipping or stopping instead is `sessions.permission` with
7508
+ * one of the request's options.
7509
+ */
7510
+ readonly "sessions.answer": {
7511
+ readonly params: z.ZodObject<{
7512
+ sessionId: z.ZodString;
7513
+ requestId: z.ZodString;
7514
+ answers: z.ZodArray<z.ZodObject<{
7515
+ id: z.ZodString;
7516
+ values: z.ZodArray<z.ZodString, "many">;
7517
+ other: z.ZodOptional<z.ZodString>;
7518
+ }, "strip", z.ZodTypeAny, {
7519
+ values: string[];
7520
+ id: string;
7521
+ other?: string | undefined;
7522
+ }, {
7523
+ values: string[];
7524
+ id: string;
7525
+ other?: string | undefined;
7526
+ }>, "many">;
7527
+ }, "strip", z.ZodTypeAny, {
7528
+ requestId: string;
7529
+ answers: {
7530
+ values: string[];
7531
+ id: string;
7532
+ other?: string | undefined;
7533
+ }[];
7534
+ sessionId: string;
7535
+ }, {
7536
+ requestId: string;
7537
+ answers: {
7538
+ values: string[];
7539
+ id: string;
7540
+ other?: string | undefined;
7541
+ }[];
7542
+ sessionId: string;
7543
+ }>;
7544
+ readonly result: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
7545
+ };
6470
7546
  readonly "sessions.setConfig": {
6471
7547
  readonly params: z.ZodObject<{
6472
7548
  sessionId: z.ZodString;
@@ -6594,6 +7670,54 @@ export declare const methods: {
6594
7670
  name: string;
6595
7671
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
6596
7672
  }>, "many">;
7673
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7674
+ id: z.ZodString;
7675
+ header: z.ZodOptional<z.ZodString>;
7676
+ text: z.ZodString;
7677
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
7678
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
7679
+ value: z.ZodString;
7680
+ label: z.ZodString;
7681
+ description: z.ZodOptional<z.ZodString>;
7682
+ }, "strip", z.ZodTypeAny, {
7683
+ value: string;
7684
+ label: string;
7685
+ description?: string | undefined;
7686
+ }, {
7687
+ value: string;
7688
+ label: string;
7689
+ description?: string | undefined;
7690
+ }>, "many">>;
7691
+ other: z.ZodOptional<z.ZodBoolean>;
7692
+ secret: z.ZodOptional<z.ZodBoolean>;
7693
+ required: z.ZodOptional<z.ZodBoolean>;
7694
+ }, "strip", z.ZodTypeAny, {
7695
+ id: string;
7696
+ kind: "text" | "choice" | "choices";
7697
+ text: string;
7698
+ options?: {
7699
+ value: string;
7700
+ label: string;
7701
+ description?: string | undefined;
7702
+ }[] | undefined;
7703
+ other?: boolean | undefined;
7704
+ header?: string | undefined;
7705
+ secret?: boolean | undefined;
7706
+ required?: boolean | undefined;
7707
+ }, {
7708
+ id: string;
7709
+ kind: "text" | "choice" | "choices";
7710
+ text: string;
7711
+ options?: {
7712
+ value: string;
7713
+ label: string;
7714
+ description?: string | undefined;
7715
+ }[] | undefined;
7716
+ other?: boolean | undefined;
7717
+ header?: string | undefined;
7718
+ secret?: boolean | undefined;
7719
+ required?: boolean | undefined;
7720
+ }>, "many">>;
6597
7721
  }, "strip", z.ZodTypeAny, {
6598
7722
  options: {
6599
7723
  optionId: string;
@@ -6604,6 +7728,20 @@ export declare const methods: {
6604
7728
  requestId: string;
6605
7729
  toolCallId?: string | undefined;
6606
7730
  detail?: string | undefined;
7731
+ questions?: {
7732
+ id: string;
7733
+ kind: "text" | "choice" | "choices";
7734
+ text: string;
7735
+ options?: {
7736
+ value: string;
7737
+ label: string;
7738
+ description?: string | undefined;
7739
+ }[] | undefined;
7740
+ other?: boolean | undefined;
7741
+ header?: string | undefined;
7742
+ secret?: boolean | undefined;
7743
+ required?: boolean | undefined;
7744
+ }[] | undefined;
6607
7745
  }, {
6608
7746
  options: {
6609
7747
  optionId: string;
@@ -6614,6 +7752,20 @@ export declare const methods: {
6614
7752
  requestId: string;
6615
7753
  toolCallId?: string | undefined;
6616
7754
  detail?: string | undefined;
7755
+ questions?: {
7756
+ id: string;
7757
+ kind: "text" | "choice" | "choices";
7758
+ text: string;
7759
+ options?: {
7760
+ value: string;
7761
+ label: string;
7762
+ description?: string | undefined;
7763
+ }[] | undefined;
7764
+ other?: boolean | undefined;
7765
+ header?: string | undefined;
7766
+ secret?: boolean | undefined;
7767
+ required?: boolean | undefined;
7768
+ }[] | undefined;
6617
7769
  }>>;
6618
7770
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
6619
7771
  clientMessageId: z.ZodString;
@@ -6621,12 +7773,12 @@ export declare const methods: {
6621
7773
  images: z.ZodNumber;
6622
7774
  }, "strip", z.ZodTypeAny, {
6623
7775
  images: number;
6624
- clientMessageId: string;
6625
7776
  text: string;
7777
+ clientMessageId: string;
6626
7778
  }, {
6627
7779
  images: number;
6628
- clientMessageId: string;
6629
7780
  text: string;
7781
+ clientMessageId: string;
6630
7782
  }>, "many">>;
6631
7783
  worktree: z.ZodOptional<z.ZodObject<{
6632
7784
  branch: z.ZodString;
@@ -6678,11 +7830,25 @@ export declare const methods: {
6678
7830
  requestId: string;
6679
7831
  toolCallId?: string | undefined;
6680
7832
  detail?: string | undefined;
7833
+ questions?: {
7834
+ id: string;
7835
+ kind: "text" | "choice" | "choices";
7836
+ text: string;
7837
+ options?: {
7838
+ value: string;
7839
+ label: string;
7840
+ description?: string | undefined;
7841
+ }[] | undefined;
7842
+ other?: boolean | undefined;
7843
+ header?: string | undefined;
7844
+ secret?: boolean | undefined;
7845
+ required?: boolean | undefined;
7846
+ }[] | undefined;
6681
7847
  } | undefined;
6682
7848
  queue?: {
6683
7849
  images: number;
6684
- clientMessageId: string;
6685
7850
  text: string;
7851
+ clientMessageId: string;
6686
7852
  }[] | undefined;
6687
7853
  worktree?: {
6688
7854
  branch: string;
@@ -6722,11 +7888,25 @@ export declare const methods: {
6722
7888
  requestId: string;
6723
7889
  toolCallId?: string | undefined;
6724
7890
  detail?: string | undefined;
7891
+ questions?: {
7892
+ id: string;
7893
+ kind: "text" | "choice" | "choices";
7894
+ text: string;
7895
+ options?: {
7896
+ value: string;
7897
+ label: string;
7898
+ description?: string | undefined;
7899
+ }[] | undefined;
7900
+ other?: boolean | undefined;
7901
+ header?: string | undefined;
7902
+ secret?: boolean | undefined;
7903
+ required?: boolean | undefined;
7904
+ }[] | undefined;
6725
7905
  } | undefined;
6726
7906
  queue?: {
6727
7907
  images: number;
6728
- clientMessageId: string;
6729
7908
  text: string;
7909
+ clientMessageId: string;
6730
7910
  }[] | undefined;
6731
7911
  worktree?: {
6732
7912
  branch: string;
@@ -6768,11 +7948,25 @@ export declare const methods: {
6768
7948
  requestId: string;
6769
7949
  toolCallId?: string | undefined;
6770
7950
  detail?: string | undefined;
7951
+ questions?: {
7952
+ id: string;
7953
+ kind: "text" | "choice" | "choices";
7954
+ text: string;
7955
+ options?: {
7956
+ value: string;
7957
+ label: string;
7958
+ description?: string | undefined;
7959
+ }[] | undefined;
7960
+ other?: boolean | undefined;
7961
+ header?: string | undefined;
7962
+ secret?: boolean | undefined;
7963
+ required?: boolean | undefined;
7964
+ }[] | undefined;
6771
7965
  } | undefined;
6772
7966
  queue?: {
6773
7967
  images: number;
6774
- clientMessageId: string;
6775
7968
  text: string;
7969
+ clientMessageId: string;
6776
7970
  }[] | undefined;
6777
7971
  worktree?: {
6778
7972
  branch: string;
@@ -6814,11 +8008,25 @@ export declare const methods: {
6814
8008
  requestId: string;
6815
8009
  toolCallId?: string | undefined;
6816
8010
  detail?: string | undefined;
8011
+ questions?: {
8012
+ id: string;
8013
+ kind: "text" | "choice" | "choices";
8014
+ text: string;
8015
+ options?: {
8016
+ value: string;
8017
+ label: string;
8018
+ description?: string | undefined;
8019
+ }[] | undefined;
8020
+ other?: boolean | undefined;
8021
+ header?: string | undefined;
8022
+ secret?: boolean | undefined;
8023
+ required?: boolean | undefined;
8024
+ }[] | undefined;
6817
8025
  } | undefined;
6818
8026
  queue?: {
6819
8027
  images: number;
6820
- clientMessageId: string;
6821
8028
  text: string;
8029
+ clientMessageId: string;
6822
8030
  }[] | undefined;
6823
8031
  worktree?: {
6824
8032
  branch: string;
@@ -6890,6 +8098,54 @@ export declare const methods: {
6890
8098
  name: string;
6891
8099
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
6892
8100
  }>, "many">;
8101
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8102
+ id: z.ZodString;
8103
+ header: z.ZodOptional<z.ZodString>;
8104
+ text: z.ZodString;
8105
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
8106
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
8107
+ value: z.ZodString;
8108
+ label: z.ZodString;
8109
+ description: z.ZodOptional<z.ZodString>;
8110
+ }, "strip", z.ZodTypeAny, {
8111
+ value: string;
8112
+ label: string;
8113
+ description?: string | undefined;
8114
+ }, {
8115
+ value: string;
8116
+ label: string;
8117
+ description?: string | undefined;
8118
+ }>, "many">>;
8119
+ other: z.ZodOptional<z.ZodBoolean>;
8120
+ secret: z.ZodOptional<z.ZodBoolean>;
8121
+ required: z.ZodOptional<z.ZodBoolean>;
8122
+ }, "strip", z.ZodTypeAny, {
8123
+ id: string;
8124
+ kind: "text" | "choice" | "choices";
8125
+ text: string;
8126
+ options?: {
8127
+ value: string;
8128
+ label: string;
8129
+ description?: string | undefined;
8130
+ }[] | undefined;
8131
+ other?: boolean | undefined;
8132
+ header?: string | undefined;
8133
+ secret?: boolean | undefined;
8134
+ required?: boolean | undefined;
8135
+ }, {
8136
+ id: string;
8137
+ kind: "text" | "choice" | "choices";
8138
+ text: string;
8139
+ options?: {
8140
+ value: string;
8141
+ label: string;
8142
+ description?: string | undefined;
8143
+ }[] | undefined;
8144
+ other?: boolean | undefined;
8145
+ header?: string | undefined;
8146
+ secret?: boolean | undefined;
8147
+ required?: boolean | undefined;
8148
+ }>, "many">>;
6893
8149
  }, "strip", z.ZodTypeAny, {
6894
8150
  options: {
6895
8151
  optionId: string;
@@ -6900,6 +8156,20 @@ export declare const methods: {
6900
8156
  requestId: string;
6901
8157
  toolCallId?: string | undefined;
6902
8158
  detail?: string | undefined;
8159
+ questions?: {
8160
+ id: string;
8161
+ kind: "text" | "choice" | "choices";
8162
+ text: string;
8163
+ options?: {
8164
+ value: string;
8165
+ label: string;
8166
+ description?: string | undefined;
8167
+ }[] | undefined;
8168
+ other?: boolean | undefined;
8169
+ header?: string | undefined;
8170
+ secret?: boolean | undefined;
8171
+ required?: boolean | undefined;
8172
+ }[] | undefined;
6903
8173
  }, {
6904
8174
  options: {
6905
8175
  optionId: string;
@@ -6910,6 +8180,20 @@ export declare const methods: {
6910
8180
  requestId: string;
6911
8181
  toolCallId?: string | undefined;
6912
8182
  detail?: string | undefined;
8183
+ questions?: {
8184
+ id: string;
8185
+ kind: "text" | "choice" | "choices";
8186
+ text: string;
8187
+ options?: {
8188
+ value: string;
8189
+ label: string;
8190
+ description?: string | undefined;
8191
+ }[] | undefined;
8192
+ other?: boolean | undefined;
8193
+ header?: string | undefined;
8194
+ secret?: boolean | undefined;
8195
+ required?: boolean | undefined;
8196
+ }[] | undefined;
6913
8197
  }>>;
6914
8198
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
6915
8199
  clientMessageId: z.ZodString;
@@ -6917,12 +8201,12 @@ export declare const methods: {
6917
8201
  images: z.ZodNumber;
6918
8202
  }, "strip", z.ZodTypeAny, {
6919
8203
  images: number;
6920
- clientMessageId: string;
6921
8204
  text: string;
8205
+ clientMessageId: string;
6922
8206
  }, {
6923
8207
  images: number;
6924
- clientMessageId: string;
6925
8208
  text: string;
8209
+ clientMessageId: string;
6926
8210
  }>, "many">>;
6927
8211
  worktree: z.ZodOptional<z.ZodObject<{
6928
8212
  branch: z.ZodString;
@@ -6974,11 +8258,25 @@ export declare const methods: {
6974
8258
  requestId: string;
6975
8259
  toolCallId?: string | undefined;
6976
8260
  detail?: string | undefined;
8261
+ questions?: {
8262
+ id: string;
8263
+ kind: "text" | "choice" | "choices";
8264
+ text: string;
8265
+ options?: {
8266
+ value: string;
8267
+ label: string;
8268
+ description?: string | undefined;
8269
+ }[] | undefined;
8270
+ other?: boolean | undefined;
8271
+ header?: string | undefined;
8272
+ secret?: boolean | undefined;
8273
+ required?: boolean | undefined;
8274
+ }[] | undefined;
6977
8275
  } | undefined;
6978
8276
  queue?: {
6979
8277
  images: number;
6980
- clientMessageId: string;
6981
8278
  text: string;
8279
+ clientMessageId: string;
6982
8280
  }[] | undefined;
6983
8281
  worktree?: {
6984
8282
  branch: string;
@@ -7018,11 +8316,25 @@ export declare const methods: {
7018
8316
  requestId: string;
7019
8317
  toolCallId?: string | undefined;
7020
8318
  detail?: string | undefined;
8319
+ questions?: {
8320
+ id: string;
8321
+ kind: "text" | "choice" | "choices";
8322
+ text: string;
8323
+ options?: {
8324
+ value: string;
8325
+ label: string;
8326
+ description?: string | undefined;
8327
+ }[] | undefined;
8328
+ other?: boolean | undefined;
8329
+ header?: string | undefined;
8330
+ secret?: boolean | undefined;
8331
+ required?: boolean | undefined;
8332
+ }[] | undefined;
7021
8333
  } | undefined;
7022
8334
  queue?: {
7023
8335
  images: number;
7024
- clientMessageId: string;
7025
8336
  text: string;
8337
+ clientMessageId: string;
7026
8338
  }[] | undefined;
7027
8339
  worktree?: {
7028
8340
  branch: string;
@@ -7064,11 +8376,25 @@ export declare const methods: {
7064
8376
  requestId: string;
7065
8377
  toolCallId?: string | undefined;
7066
8378
  detail?: string | undefined;
8379
+ questions?: {
8380
+ id: string;
8381
+ kind: "text" | "choice" | "choices";
8382
+ text: string;
8383
+ options?: {
8384
+ value: string;
8385
+ label: string;
8386
+ description?: string | undefined;
8387
+ }[] | undefined;
8388
+ other?: boolean | undefined;
8389
+ header?: string | undefined;
8390
+ secret?: boolean | undefined;
8391
+ required?: boolean | undefined;
8392
+ }[] | undefined;
7067
8393
  } | undefined;
7068
8394
  queue?: {
7069
8395
  images: number;
7070
- clientMessageId: string;
7071
8396
  text: string;
8397
+ clientMessageId: string;
7072
8398
  }[] | undefined;
7073
8399
  worktree?: {
7074
8400
  branch: string;
@@ -7110,11 +8436,25 @@ export declare const methods: {
7110
8436
  requestId: string;
7111
8437
  toolCallId?: string | undefined;
7112
8438
  detail?: string | undefined;
8439
+ questions?: {
8440
+ id: string;
8441
+ kind: "text" | "choice" | "choices";
8442
+ text: string;
8443
+ options?: {
8444
+ value: string;
8445
+ label: string;
8446
+ description?: string | undefined;
8447
+ }[] | undefined;
8448
+ other?: boolean | undefined;
8449
+ header?: string | undefined;
8450
+ secret?: boolean | undefined;
8451
+ required?: boolean | undefined;
8452
+ }[] | undefined;
7113
8453
  } | undefined;
7114
8454
  queue?: {
7115
8455
  images: number;
7116
- clientMessageId: string;
7117
8456
  text: string;
8457
+ clientMessageId: string;
7118
8458
  }[] | undefined;
7119
8459
  worktree?: {
7120
8460
  branch: string;
@@ -7639,7 +8979,6 @@ export declare const methods: {
7639
8979
  /** The directory holds more than a listing carries (1000 entries). */
7640
8980
  truncated: z.ZodOptional<z.ZodBoolean>;
7641
8981
  }, "strip", z.ZodTypeAny, {
7642
- path: string;
7643
8982
  entries: {
7644
8983
  path: string;
7645
8984
  name: string;
@@ -7647,11 +8986,11 @@ export declare const methods: {
7647
8986
  project?: boolean | undefined;
7648
8987
  size?: number | undefined;
7649
8988
  }[];
8989
+ path: string;
7650
8990
  home: string;
7651
8991
  parent?: string | undefined;
7652
8992
  truncated?: boolean | undefined;
7653
8993
  }, {
7654
- path: string;
7655
8994
  entries: {
7656
8995
  path: string;
7657
8996
  name: string;
@@ -7659,6 +8998,7 @@ export declare const methods: {
7659
8998
  project?: boolean | undefined;
7660
8999
  size?: number | undefined;
7661
9000
  }[];
9001
+ path: string;
7662
9002
  home: string;
7663
9003
  parent?: string | undefined;
7664
9004
  truncated?: boolean | undefined;
@@ -8165,17 +9505,47 @@ export declare const methods: {
8165
9505
  readonly "proxy.open": {
8166
9506
  readonly params: z.ZodObject<{
8167
9507
  port: z.ZodNumber;
9508
+ /** Carry the stream on the direct channel, if this connection has one open. */
9509
+ direct: z.ZodOptional<z.ZodBoolean>;
8168
9510
  }, "strip", z.ZodTypeAny, {
8169
9511
  port: number;
9512
+ direct?: boolean | undefined;
8170
9513
  }, {
8171
9514
  port: number;
9515
+ direct?: boolean | undefined;
8172
9516
  }>;
9517
+ /** `channel`: the stream's number on the direct channel, when it goes there instead of over `proxy.*`. */
8173
9518
  readonly result: z.ZodObject<{
8174
9519
  streamId: z.ZodString;
9520
+ channel: z.ZodOptional<z.ZodNumber>;
8175
9521
  }, "strip", z.ZodTypeAny, {
8176
9522
  streamId: string;
9523
+ channel?: number | undefined;
8177
9524
  }, {
8178
9525
  streamId: string;
9526
+ channel?: number | undefined;
9527
+ }>;
9528
+ };
9529
+ /**
9530
+ * Sets up the direct channel (see `direct.ts`): the device's WebRTC offer,
9531
+ * holding the `linkshell-bulk` data channel, answered by the host. Each side
9532
+ * has gathered its addresses before sending. A new offer replaces the
9533
+ * connection made by an earlier one.
9534
+ */
9535
+ readonly "direct.offer": {
9536
+ readonly params: z.ZodObject<{
9537
+ sdp: z.ZodString;
9538
+ }, "strip", z.ZodTypeAny, {
9539
+ sdp: string;
9540
+ }, {
9541
+ sdp: string;
9542
+ }>;
9543
+ readonly result: z.ZodObject<{
9544
+ sdp: z.ZodString;
9545
+ }, "strip", z.ZodTypeAny, {
9546
+ sdp: string;
9547
+ }, {
9548
+ sdp: string;
8179
9549
  }>;
8180
9550
  };
8181
9551
  /**
@@ -8213,6 +9583,47 @@ export declare const methods: {
8213
9583
  }[];
8214
9584
  }>;
8215
9585
  };
9586
+ /**
9587
+ * Whether this computer's screen can be watched and controlled: the capture
9588
+ * program, and the two permissions the system gives to an app by name. With
9589
+ * `ask`, the system puts its own question for the first one missing and opens
9590
+ * its settings page there, on the computer.
9591
+ */
9592
+ readonly "screen.access": {
9593
+ readonly params: z.ZodObject<{
9594
+ ask: z.ZodOptional<z.ZodBoolean>;
9595
+ }, "strip", z.ZodTypeAny, {
9596
+ ask?: boolean | undefined;
9597
+ }, {
9598
+ ask?: boolean | undefined;
9599
+ }>;
9600
+ readonly result: z.ZodObject<{
9601
+ /** This kind of computer can show its screen at all. */
9602
+ supported: z.ZodBoolean;
9603
+ ffmpeg: z.ZodBoolean;
9604
+ /** May record the screen / post pointer and key events; null where that isn't known. */
9605
+ recording: z.ZodNullable<z.ZodBoolean>;
9606
+ control: z.ZodNullable<z.ZodBoolean>;
9607
+ /** The app the system lists for these permissions: the one to allow. */
9608
+ app: z.ZodOptional<z.ZodString>;
9609
+ /** Why the answer is missing, or what stands in the way besides the permissions. */
9610
+ problem: z.ZodOptional<z.ZodString>;
9611
+ }, "strip", z.ZodTypeAny, {
9612
+ supported: boolean;
9613
+ ffmpeg: boolean;
9614
+ recording: boolean | null;
9615
+ control: boolean | null;
9616
+ problem?: string | undefined;
9617
+ app?: string | undefined;
9618
+ }, {
9619
+ supported: boolean;
9620
+ ffmpeg: boolean;
9621
+ recording: boolean | null;
9622
+ control: boolean | null;
9623
+ problem?: string | undefined;
9624
+ app?: string | undefined;
9625
+ }>;
9626
+ };
8216
9627
  /** Bytes to the host's end of a stream (base64). */
8217
9628
  readonly "proxy.write": {
8218
9629
  readonly params: z.ZodObject<{
@@ -8694,6 +10105,18 @@ export declare const notifications: {
8694
10105
  }, {
8695
10106
  type: "review";
8696
10107
  phase: "started" | "finished";
10108
+ }>, z.ZodObject<{
10109
+ type: z.ZodLiteral<"question">;
10110
+ text: z.ZodString;
10111
+ more: z.ZodOptional<z.ZodNumber>;
10112
+ }, "strip", z.ZodTypeAny, {
10113
+ type: "question";
10114
+ text: string;
10115
+ more?: number | undefined;
10116
+ }, {
10117
+ type: "question";
10118
+ text: string;
10119
+ more?: number | undefined;
8697
10120
  }>]>>;
8698
10121
  }, "strip", z.ZodTypeAny, {
8699
10122
  status: "failed" | "pending" | "in_progress" | "completed";
@@ -8726,6 +10149,10 @@ export declare const notifications: {
8726
10149
  } | {
8727
10150
  type: "review";
8728
10151
  phase: "started" | "finished";
10152
+ } | {
10153
+ type: "question";
10154
+ text: string;
10155
+ more?: number | undefined;
8729
10156
  } | undefined;
8730
10157
  content?: ({
8731
10158
  type: "content";
@@ -8795,6 +10222,10 @@ export declare const notifications: {
8795
10222
  } | {
8796
10223
  type: "review";
8797
10224
  phase: "started" | "finished";
10225
+ } | {
10226
+ type: "question";
10227
+ text: string;
10228
+ more?: number | undefined;
8798
10229
  } | undefined;
8799
10230
  content?: ({
8800
10231
  type: "content";
@@ -8914,6 +10345,18 @@ export declare const notifications: {
8914
10345
  }, {
8915
10346
  type: "review";
8916
10347
  phase: "started" | "finished";
10348
+ }>, z.ZodObject<{
10349
+ type: z.ZodLiteral<"question">;
10350
+ text: z.ZodString;
10351
+ more: z.ZodOptional<z.ZodNumber>;
10352
+ }, "strip", z.ZodTypeAny, {
10353
+ type: "question";
10354
+ text: string;
10355
+ more?: number | undefined;
10356
+ }, {
10357
+ type: "question";
10358
+ text: string;
10359
+ more?: number | undefined;
8917
10360
  }>]>>;
8918
10361
  content: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
8919
10362
  type: z.ZodLiteral<"content">;
@@ -9064,6 +10507,10 @@ export declare const notifications: {
9064
10507
  } | {
9065
10508
  type: "review";
9066
10509
  phase: "started" | "finished";
10510
+ } | {
10511
+ type: "question";
10512
+ text: string;
10513
+ more?: number | undefined;
9067
10514
  } | undefined;
9068
10515
  content?: ({
9069
10516
  type: "content";
@@ -9129,6 +10576,10 @@ export declare const notifications: {
9129
10576
  } | {
9130
10577
  type: "review";
9131
10578
  phase: "started" | "finished";
10579
+ } | {
10580
+ type: "question";
10581
+ text: string;
10582
+ more?: number | undefined;
9132
10583
  } | undefined;
9133
10584
  content?: ({
9134
10585
  type: "content";
@@ -9389,6 +10840,54 @@ export declare const notifications: {
9389
10840
  name: string;
9390
10841
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
9391
10842
  }>, "many">;
10843
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10844
+ id: z.ZodString;
10845
+ header: z.ZodOptional<z.ZodString>;
10846
+ text: z.ZodString;
10847
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
10848
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
10849
+ value: z.ZodString;
10850
+ label: z.ZodString;
10851
+ description: z.ZodOptional<z.ZodString>;
10852
+ }, "strip", z.ZodTypeAny, {
10853
+ value: string;
10854
+ label: string;
10855
+ description?: string | undefined;
10856
+ }, {
10857
+ value: string;
10858
+ label: string;
10859
+ description?: string | undefined;
10860
+ }>, "many">>;
10861
+ other: z.ZodOptional<z.ZodBoolean>;
10862
+ secret: z.ZodOptional<z.ZodBoolean>;
10863
+ required: z.ZodOptional<z.ZodBoolean>;
10864
+ }, "strip", z.ZodTypeAny, {
10865
+ id: string;
10866
+ kind: "text" | "choice" | "choices";
10867
+ text: string;
10868
+ options?: {
10869
+ value: string;
10870
+ label: string;
10871
+ description?: string | undefined;
10872
+ }[] | undefined;
10873
+ other?: boolean | undefined;
10874
+ header?: string | undefined;
10875
+ secret?: boolean | undefined;
10876
+ required?: boolean | undefined;
10877
+ }, {
10878
+ id: string;
10879
+ kind: "text" | "choice" | "choices";
10880
+ text: string;
10881
+ options?: {
10882
+ value: string;
10883
+ label: string;
10884
+ description?: string | undefined;
10885
+ }[] | undefined;
10886
+ other?: boolean | undefined;
10887
+ header?: string | undefined;
10888
+ secret?: boolean | undefined;
10889
+ required?: boolean | undefined;
10890
+ }>, "many">>;
9392
10891
  }, "strip", z.ZodTypeAny, {
9393
10892
  options: {
9394
10893
  optionId: string;
@@ -9400,6 +10899,20 @@ export declare const notifications: {
9400
10899
  sessionUpdate: "ls_permission";
9401
10900
  toolCallId?: string | undefined;
9402
10901
  detail?: string | undefined;
10902
+ questions?: {
10903
+ id: string;
10904
+ kind: "text" | "choice" | "choices";
10905
+ text: string;
10906
+ options?: {
10907
+ value: string;
10908
+ label: string;
10909
+ description?: string | undefined;
10910
+ }[] | undefined;
10911
+ other?: boolean | undefined;
10912
+ header?: string | undefined;
10913
+ secret?: boolean | undefined;
10914
+ required?: boolean | undefined;
10915
+ }[] | undefined;
9403
10916
  }, {
9404
10917
  options: {
9405
10918
  optionId: string;
@@ -9411,18 +10924,55 @@ export declare const notifications: {
9411
10924
  sessionUpdate: "ls_permission";
9412
10925
  toolCallId?: string | undefined;
9413
10926
  detail?: string | undefined;
10927
+ questions?: {
10928
+ id: string;
10929
+ kind: "text" | "choice" | "choices";
10930
+ text: string;
10931
+ options?: {
10932
+ value: string;
10933
+ label: string;
10934
+ description?: string | undefined;
10935
+ }[] | undefined;
10936
+ other?: boolean | undefined;
10937
+ header?: string | undefined;
10938
+ secret?: boolean | undefined;
10939
+ required?: boolean | undefined;
10940
+ }[] | undefined;
9414
10941
  }>, z.ZodObject<{
9415
10942
  sessionUpdate: z.ZodLiteral<"ls_permission_resolved">;
9416
10943
  requestId: z.ZodString;
9417
10944
  optionId: z.ZodOptional<z.ZodString>;
10945
+ answers: z.ZodOptional<z.ZodArray<z.ZodObject<{
10946
+ id: z.ZodString;
10947
+ values: z.ZodArray<z.ZodString, "many">;
10948
+ other: z.ZodOptional<z.ZodString>;
10949
+ }, "strip", z.ZodTypeAny, {
10950
+ values: string[];
10951
+ id: string;
10952
+ other?: string | undefined;
10953
+ }, {
10954
+ values: string[];
10955
+ id: string;
10956
+ other?: string | undefined;
10957
+ }>, "many">>;
9418
10958
  }, "strip", z.ZodTypeAny, {
9419
10959
  requestId: string;
9420
10960
  sessionUpdate: "ls_permission_resolved";
9421
10961
  optionId?: string | undefined;
10962
+ answers?: {
10963
+ values: string[];
10964
+ id: string;
10965
+ other?: string | undefined;
10966
+ }[] | undefined;
9422
10967
  }, {
9423
10968
  requestId: string;
9424
10969
  sessionUpdate: "ls_permission_resolved";
9425
10970
  optionId?: string | undefined;
10971
+ answers?: {
10972
+ values: string[];
10973
+ id: string;
10974
+ other?: string | undefined;
10975
+ }[] | undefined;
9426
10976
  }>, z.ZodObject<{
9427
10977
  sessionUpdate: z.ZodLiteral<"ls_driver">;
9428
10978
  driver: z.ZodEnum<["desktop", "remote", "none"]>;
@@ -9545,6 +11095,10 @@ export declare const notifications: {
9545
11095
  } | {
9546
11096
  type: "review";
9547
11097
  phase: "started" | "finished";
11098
+ } | {
11099
+ type: "question";
11100
+ text: string;
11101
+ more?: number | undefined;
9548
11102
  } | undefined;
9549
11103
  content?: ({
9550
11104
  type: "content";
@@ -9613,6 +11167,10 @@ export declare const notifications: {
9613
11167
  } | {
9614
11168
  type: "review";
9615
11169
  phase: "started" | "finished";
11170
+ } | {
11171
+ type: "question";
11172
+ text: string;
11173
+ more?: number | undefined;
9616
11174
  } | undefined;
9617
11175
  content?: ({
9618
11176
  type: "content";
@@ -9713,10 +11271,29 @@ export declare const notifications: {
9713
11271
  sessionUpdate: "ls_permission";
9714
11272
  toolCallId?: string | undefined;
9715
11273
  detail?: string | undefined;
11274
+ questions?: {
11275
+ id: string;
11276
+ kind: "text" | "choice" | "choices";
11277
+ text: string;
11278
+ options?: {
11279
+ value: string;
11280
+ label: string;
11281
+ description?: string | undefined;
11282
+ }[] | undefined;
11283
+ other?: boolean | undefined;
11284
+ header?: string | undefined;
11285
+ secret?: boolean | undefined;
11286
+ required?: boolean | undefined;
11287
+ }[] | undefined;
9716
11288
  } | {
9717
11289
  requestId: string;
9718
11290
  sessionUpdate: "ls_permission_resolved";
9719
11291
  optionId?: string | undefined;
11292
+ answers?: {
11293
+ values: string[];
11294
+ id: string;
11295
+ other?: string | undefined;
11296
+ }[] | undefined;
9720
11297
  } | {
9721
11298
  driver: "remote" | "desktop" | "none";
9722
11299
  sessionUpdate: "ls_driver";
@@ -9818,6 +11395,10 @@ export declare const notifications: {
9818
11395
  } | {
9819
11396
  type: "review";
9820
11397
  phase: "started" | "finished";
11398
+ } | {
11399
+ type: "question";
11400
+ text: string;
11401
+ more?: number | undefined;
9821
11402
  } | undefined;
9822
11403
  content?: ({
9823
11404
  type: "content";
@@ -9886,6 +11467,10 @@ export declare const notifications: {
9886
11467
  } | {
9887
11468
  type: "review";
9888
11469
  phase: "started" | "finished";
11470
+ } | {
11471
+ type: "question";
11472
+ text: string;
11473
+ more?: number | undefined;
9889
11474
  } | undefined;
9890
11475
  content?: ({
9891
11476
  type: "content";
@@ -9986,10 +11571,29 @@ export declare const notifications: {
9986
11571
  sessionUpdate: "ls_permission";
9987
11572
  toolCallId?: string | undefined;
9988
11573
  detail?: string | undefined;
11574
+ questions?: {
11575
+ id: string;
11576
+ kind: "text" | "choice" | "choices";
11577
+ text: string;
11578
+ options?: {
11579
+ value: string;
11580
+ label: string;
11581
+ description?: string | undefined;
11582
+ }[] | undefined;
11583
+ other?: boolean | undefined;
11584
+ header?: string | undefined;
11585
+ secret?: boolean | undefined;
11586
+ required?: boolean | undefined;
11587
+ }[] | undefined;
9989
11588
  } | {
9990
11589
  requestId: string;
9991
11590
  sessionUpdate: "ls_permission_resolved";
9992
11591
  optionId?: string | undefined;
11592
+ answers?: {
11593
+ values: string[];
11594
+ id: string;
11595
+ other?: string | undefined;
11596
+ }[] | undefined;
9993
11597
  } | {
9994
11598
  driver: "remote" | "desktop" | "none";
9995
11599
  sessionUpdate: "ls_driver";
@@ -10069,6 +11673,54 @@ export declare const notifications: {
10069
11673
  name: string;
10070
11674
  kind: "allow_once" | "allow_always" | "reject_once" | "reject_always";
10071
11675
  }>, "many">;
11676
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
11677
+ id: z.ZodString;
11678
+ header: z.ZodOptional<z.ZodString>;
11679
+ text: z.ZodString;
11680
+ kind: z.ZodEnum<["choice", "choices", "text"]>;
11681
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
11682
+ value: z.ZodString;
11683
+ label: z.ZodString;
11684
+ description: z.ZodOptional<z.ZodString>;
11685
+ }, "strip", z.ZodTypeAny, {
11686
+ value: string;
11687
+ label: string;
11688
+ description?: string | undefined;
11689
+ }, {
11690
+ value: string;
11691
+ label: string;
11692
+ description?: string | undefined;
11693
+ }>, "many">>;
11694
+ other: z.ZodOptional<z.ZodBoolean>;
11695
+ secret: z.ZodOptional<z.ZodBoolean>;
11696
+ required: z.ZodOptional<z.ZodBoolean>;
11697
+ }, "strip", z.ZodTypeAny, {
11698
+ id: string;
11699
+ kind: "text" | "choice" | "choices";
11700
+ text: string;
11701
+ options?: {
11702
+ value: string;
11703
+ label: string;
11704
+ description?: string | undefined;
11705
+ }[] | undefined;
11706
+ other?: boolean | undefined;
11707
+ header?: string | undefined;
11708
+ secret?: boolean | undefined;
11709
+ required?: boolean | undefined;
11710
+ }, {
11711
+ id: string;
11712
+ kind: "text" | "choice" | "choices";
11713
+ text: string;
11714
+ options?: {
11715
+ value: string;
11716
+ label: string;
11717
+ description?: string | undefined;
11718
+ }[] | undefined;
11719
+ other?: boolean | undefined;
11720
+ header?: string | undefined;
11721
+ secret?: boolean | undefined;
11722
+ required?: boolean | undefined;
11723
+ }>, "many">>;
10072
11724
  }, "strip", z.ZodTypeAny, {
10073
11725
  options: {
10074
11726
  optionId: string;
@@ -10079,6 +11731,20 @@ export declare const notifications: {
10079
11731
  requestId: string;
10080
11732
  toolCallId?: string | undefined;
10081
11733
  detail?: string | undefined;
11734
+ questions?: {
11735
+ id: string;
11736
+ kind: "text" | "choice" | "choices";
11737
+ text: string;
11738
+ options?: {
11739
+ value: string;
11740
+ label: string;
11741
+ description?: string | undefined;
11742
+ }[] | undefined;
11743
+ other?: boolean | undefined;
11744
+ header?: string | undefined;
11745
+ secret?: boolean | undefined;
11746
+ required?: boolean | undefined;
11747
+ }[] | undefined;
10082
11748
  }, {
10083
11749
  options: {
10084
11750
  optionId: string;
@@ -10089,6 +11755,20 @@ export declare const notifications: {
10089
11755
  requestId: string;
10090
11756
  toolCallId?: string | undefined;
10091
11757
  detail?: string | undefined;
11758
+ questions?: {
11759
+ id: string;
11760
+ kind: "text" | "choice" | "choices";
11761
+ text: string;
11762
+ options?: {
11763
+ value: string;
11764
+ label: string;
11765
+ description?: string | undefined;
11766
+ }[] | undefined;
11767
+ other?: boolean | undefined;
11768
+ header?: string | undefined;
11769
+ secret?: boolean | undefined;
11770
+ required?: boolean | undefined;
11771
+ }[] | undefined;
10092
11772
  }>>;
10093
11773
  queue: z.ZodOptional<z.ZodArray<z.ZodObject<{
10094
11774
  clientMessageId: z.ZodString;
@@ -10096,12 +11776,12 @@ export declare const notifications: {
10096
11776
  images: z.ZodNumber;
10097
11777
  }, "strip", z.ZodTypeAny, {
10098
11778
  images: number;
10099
- clientMessageId: string;
10100
11779
  text: string;
11780
+ clientMessageId: string;
10101
11781
  }, {
10102
11782
  images: number;
10103
- clientMessageId: string;
10104
11783
  text: string;
11784
+ clientMessageId: string;
10105
11785
  }>, "many">>;
10106
11786
  worktree: z.ZodOptional<z.ZodObject<{
10107
11787
  branch: z.ZodString;
@@ -10153,11 +11833,25 @@ export declare const notifications: {
10153
11833
  requestId: string;
10154
11834
  toolCallId?: string | undefined;
10155
11835
  detail?: string | undefined;
11836
+ questions?: {
11837
+ id: string;
11838
+ kind: "text" | "choice" | "choices";
11839
+ text: string;
11840
+ options?: {
11841
+ value: string;
11842
+ label: string;
11843
+ description?: string | undefined;
11844
+ }[] | undefined;
11845
+ other?: boolean | undefined;
11846
+ header?: string | undefined;
11847
+ secret?: boolean | undefined;
11848
+ required?: boolean | undefined;
11849
+ }[] | undefined;
10156
11850
  } | undefined;
10157
11851
  queue?: {
10158
11852
  images: number;
10159
- clientMessageId: string;
10160
11853
  text: string;
11854
+ clientMessageId: string;
10161
11855
  }[] | undefined;
10162
11856
  worktree?: {
10163
11857
  branch: string;
@@ -10197,11 +11891,25 @@ export declare const notifications: {
10197
11891
  requestId: string;
10198
11892
  toolCallId?: string | undefined;
10199
11893
  detail?: string | undefined;
11894
+ questions?: {
11895
+ id: string;
11896
+ kind: "text" | "choice" | "choices";
11897
+ text: string;
11898
+ options?: {
11899
+ value: string;
11900
+ label: string;
11901
+ description?: string | undefined;
11902
+ }[] | undefined;
11903
+ other?: boolean | undefined;
11904
+ header?: string | undefined;
11905
+ secret?: boolean | undefined;
11906
+ required?: boolean | undefined;
11907
+ }[] | undefined;
10200
11908
  } | undefined;
10201
11909
  queue?: {
10202
11910
  images: number;
10203
- clientMessageId: string;
10204
11911
  text: string;
11912
+ clientMessageId: string;
10205
11913
  }[] | undefined;
10206
11914
  worktree?: {
10207
11915
  branch: string;
@@ -10243,11 +11951,25 @@ export declare const notifications: {
10243
11951
  requestId: string;
10244
11952
  toolCallId?: string | undefined;
10245
11953
  detail?: string | undefined;
11954
+ questions?: {
11955
+ id: string;
11956
+ kind: "text" | "choice" | "choices";
11957
+ text: string;
11958
+ options?: {
11959
+ value: string;
11960
+ label: string;
11961
+ description?: string | undefined;
11962
+ }[] | undefined;
11963
+ other?: boolean | undefined;
11964
+ header?: string | undefined;
11965
+ secret?: boolean | undefined;
11966
+ required?: boolean | undefined;
11967
+ }[] | undefined;
10246
11968
  } | undefined;
10247
11969
  queue?: {
10248
11970
  images: number;
10249
- clientMessageId: string;
10250
11971
  text: string;
11972
+ clientMessageId: string;
10251
11973
  }[] | undefined;
10252
11974
  worktree?: {
10253
11975
  branch: string;
@@ -10289,11 +12011,25 @@ export declare const notifications: {
10289
12011
  requestId: string;
10290
12012
  toolCallId?: string | undefined;
10291
12013
  detail?: string | undefined;
12014
+ questions?: {
12015
+ id: string;
12016
+ kind: "text" | "choice" | "choices";
12017
+ text: string;
12018
+ options?: {
12019
+ value: string;
12020
+ label: string;
12021
+ description?: string | undefined;
12022
+ }[] | undefined;
12023
+ other?: boolean | undefined;
12024
+ header?: string | undefined;
12025
+ secret?: boolean | undefined;
12026
+ required?: boolean | undefined;
12027
+ }[] | undefined;
10292
12028
  } | undefined;
10293
12029
  queue?: {
10294
12030
  images: number;
10295
- clientMessageId: string;
10296
12031
  text: string;
12032
+ clientMessageId: string;
10297
12033
  }[] | undefined;
10298
12034
  worktree?: {
10299
12035
  branch: string;