@nikcli-ai/sdk 1.187.0 → 1.189.0

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.
@@ -2575,7 +2575,7 @@ export type Config = {
2575
2575
  * Text after the user message.
2576
2576
  */
2577
2577
  footer: string;
2578
- } | "default" | boolean;
2578
+ } | "default" | boolean | null;
2579
2579
  /**
2580
2580
  * Number of retries for chat completions on failure
2581
2581
  */
@@ -10748,6 +10748,1383 @@ export type DoctorRunResponses = {
10748
10748
  200: DoctorReport;
10749
10749
  };
10750
10750
  export type DoctorRunResponse = DoctorRunResponses[keyof DoctorRunResponses];
10751
+ export type NativeUiCapabilitiesData = {
10752
+ body?: never;
10753
+ path?: never;
10754
+ query?: {
10755
+ directory?: string;
10756
+ workspace?: string;
10757
+ };
10758
+ url: "/native-ui/capabilities";
10759
+ };
10760
+ export type NativeUiCapabilitiesResponses = {
10761
+ /**
10762
+ * Native UI capabilities
10763
+ */
10764
+ 200: {
10765
+ version: 1;
10766
+ surfaces: Array<"dialog" | "popover" | "notification" | "menu">;
10767
+ controls: Array<"button" | "link" | "text-input" | "select" | "checkbox" | "progress" | "separator">;
10768
+ actions: Array<"dismiss-surface" | "invoke" | "open-url" | "update-control">;
10769
+ maxSurfaces?: number;
10770
+ };
10771
+ };
10772
+ export type NativeUiCapabilitiesResponse = NativeUiCapabilitiesResponses[keyof NativeUiCapabilitiesResponses];
10773
+ export type NativeUiListData = {
10774
+ body?: never;
10775
+ path?: never;
10776
+ query?: {
10777
+ directory?: string;
10778
+ workspace?: string;
10779
+ };
10780
+ url: "/native-ui/surfaces";
10781
+ };
10782
+ export type NativeUiListResponses = {
10783
+ /**
10784
+ * Native UI surfaces
10785
+ */
10786
+ 200: Array<{
10787
+ id: string;
10788
+ title: string;
10789
+ body?: string;
10790
+ controls?: Array<{
10791
+ type: "button";
10792
+ id: string;
10793
+ label: string;
10794
+ action: string;
10795
+ disabled?: boolean;
10796
+ destructive?: boolean;
10797
+ } | {
10798
+ type: "link";
10799
+ id: string;
10800
+ label: string;
10801
+ url: string;
10802
+ disabled?: boolean;
10803
+ } | {
10804
+ type: "text-input";
10805
+ id: string;
10806
+ label?: string;
10807
+ value?: string;
10808
+ placeholder?: string;
10809
+ secure?: boolean;
10810
+ multiline?: boolean;
10811
+ required?: boolean;
10812
+ } | {
10813
+ type: "select";
10814
+ id: string;
10815
+ label: string;
10816
+ value?: string;
10817
+ options: Array<{
10818
+ id: string;
10819
+ label: string;
10820
+ disabled?: boolean;
10821
+ }>;
10822
+ } | {
10823
+ type: "checkbox";
10824
+ id: string;
10825
+ label: string;
10826
+ checked: boolean;
10827
+ disabled?: boolean;
10828
+ } | {
10829
+ type: "progress";
10830
+ id: string;
10831
+ label?: string;
10832
+ value: number;
10833
+ detail?: string;
10834
+ indeterminate?: boolean;
10835
+ } | {
10836
+ type: "separator";
10837
+ id?: string;
10838
+ }>;
10839
+ dismissible?: boolean;
10840
+ metadata?: {
10841
+ [key: string]: unknown;
10842
+ };
10843
+ kind: "dialog";
10844
+ modal?: boolean;
10845
+ width?: "small" | "medium" | "large";
10846
+ } | {
10847
+ id: string;
10848
+ title: string;
10849
+ body?: string;
10850
+ controls?: Array<{
10851
+ type: "button";
10852
+ id: string;
10853
+ label: string;
10854
+ action: string;
10855
+ disabled?: boolean;
10856
+ destructive?: boolean;
10857
+ } | {
10858
+ type: "link";
10859
+ id: string;
10860
+ label: string;
10861
+ url: string;
10862
+ disabled?: boolean;
10863
+ } | {
10864
+ type: "text-input";
10865
+ id: string;
10866
+ label?: string;
10867
+ value?: string;
10868
+ placeholder?: string;
10869
+ secure?: boolean;
10870
+ multiline?: boolean;
10871
+ required?: boolean;
10872
+ } | {
10873
+ type: "select";
10874
+ id: string;
10875
+ label: string;
10876
+ value?: string;
10877
+ options: Array<{
10878
+ id: string;
10879
+ label: string;
10880
+ disabled?: boolean;
10881
+ }>;
10882
+ } | {
10883
+ type: "checkbox";
10884
+ id: string;
10885
+ label: string;
10886
+ checked: boolean;
10887
+ disabled?: boolean;
10888
+ } | {
10889
+ type: "progress";
10890
+ id: string;
10891
+ label?: string;
10892
+ value: number;
10893
+ detail?: string;
10894
+ indeterminate?: boolean;
10895
+ } | {
10896
+ type: "separator";
10897
+ id?: string;
10898
+ }>;
10899
+ dismissible?: boolean;
10900
+ metadata?: {
10901
+ [key: string]: unknown;
10902
+ };
10903
+ kind: "popover";
10904
+ anchor: {
10905
+ x: number;
10906
+ y: number;
10907
+ width: number;
10908
+ height: number;
10909
+ };
10910
+ placement?: "top" | "right" | "bottom" | "left";
10911
+ } | {
10912
+ id: string;
10913
+ title: string;
10914
+ body?: string;
10915
+ controls?: Array<{
10916
+ type: "button";
10917
+ id: string;
10918
+ label: string;
10919
+ action: string;
10920
+ disabled?: boolean;
10921
+ destructive?: boolean;
10922
+ } | {
10923
+ type: "link";
10924
+ id: string;
10925
+ label: string;
10926
+ url: string;
10927
+ disabled?: boolean;
10928
+ } | {
10929
+ type: "text-input";
10930
+ id: string;
10931
+ label?: string;
10932
+ value?: string;
10933
+ placeholder?: string;
10934
+ secure?: boolean;
10935
+ multiline?: boolean;
10936
+ required?: boolean;
10937
+ } | {
10938
+ type: "select";
10939
+ id: string;
10940
+ label: string;
10941
+ value?: string;
10942
+ options: Array<{
10943
+ id: string;
10944
+ label: string;
10945
+ disabled?: boolean;
10946
+ }>;
10947
+ } | {
10948
+ type: "checkbox";
10949
+ id: string;
10950
+ label: string;
10951
+ checked: boolean;
10952
+ disabled?: boolean;
10953
+ } | {
10954
+ type: "progress";
10955
+ id: string;
10956
+ label?: string;
10957
+ value: number;
10958
+ detail?: string;
10959
+ indeterminate?: boolean;
10960
+ } | {
10961
+ type: "separator";
10962
+ id?: string;
10963
+ }>;
10964
+ dismissible?: boolean;
10965
+ metadata?: {
10966
+ [key: string]: unknown;
10967
+ };
10968
+ kind: "notification";
10969
+ severity?: "info" | "success" | "warning" | "error";
10970
+ durationMs?: number;
10971
+ } | {
10972
+ id: string;
10973
+ title: string;
10974
+ body?: string;
10975
+ controls?: Array<{
10976
+ type: "button";
10977
+ id: string;
10978
+ label: string;
10979
+ action: string;
10980
+ disabled?: boolean;
10981
+ destructive?: boolean;
10982
+ } | {
10983
+ type: "link";
10984
+ id: string;
10985
+ label: string;
10986
+ url: string;
10987
+ disabled?: boolean;
10988
+ } | {
10989
+ type: "text-input";
10990
+ id: string;
10991
+ label?: string;
10992
+ value?: string;
10993
+ placeholder?: string;
10994
+ secure?: boolean;
10995
+ multiline?: boolean;
10996
+ required?: boolean;
10997
+ } | {
10998
+ type: "select";
10999
+ id: string;
11000
+ label: string;
11001
+ value?: string;
11002
+ options: Array<{
11003
+ id: string;
11004
+ label: string;
11005
+ disabled?: boolean;
11006
+ }>;
11007
+ } | {
11008
+ type: "checkbox";
11009
+ id: string;
11010
+ label: string;
11011
+ checked: boolean;
11012
+ disabled?: boolean;
11013
+ } | {
11014
+ type: "progress";
11015
+ id: string;
11016
+ label?: string;
11017
+ value: number;
11018
+ detail?: string;
11019
+ indeterminate?: boolean;
11020
+ } | {
11021
+ type: "separator";
11022
+ id?: string;
11023
+ }>;
11024
+ dismissible?: boolean;
11025
+ metadata?: {
11026
+ [key: string]: unknown;
11027
+ };
11028
+ kind: "menu";
11029
+ items: Array<{
11030
+ id: string;
11031
+ label: string;
11032
+ action?: string;
11033
+ disabled?: boolean;
11034
+ checked?: boolean;
11035
+ }>;
11036
+ }>;
11037
+ };
11038
+ export type NativeUiListResponse = NativeUiListResponses[keyof NativeUiListResponses];
11039
+ export type PostNativeUiSurfacesData = {
11040
+ body?: {
11041
+ id: string;
11042
+ title: string;
11043
+ body?: string;
11044
+ controls?: Array<{
11045
+ type: "button";
11046
+ id: string;
11047
+ label: string;
11048
+ action: string;
11049
+ disabled?: boolean;
11050
+ destructive?: boolean;
11051
+ } | {
11052
+ type: "link";
11053
+ id: string;
11054
+ label: string;
11055
+ url: string;
11056
+ disabled?: boolean;
11057
+ } | {
11058
+ type: "text-input";
11059
+ id: string;
11060
+ label?: string;
11061
+ value?: string;
11062
+ placeholder?: string;
11063
+ secure?: boolean;
11064
+ multiline?: boolean;
11065
+ required?: boolean;
11066
+ } | {
11067
+ type: "select";
11068
+ id: string;
11069
+ label: string;
11070
+ value?: string;
11071
+ options: Array<{
11072
+ id: string;
11073
+ label: string;
11074
+ disabled?: boolean;
11075
+ }>;
11076
+ } | {
11077
+ type: "checkbox";
11078
+ id: string;
11079
+ label: string;
11080
+ checked: boolean;
11081
+ disabled?: boolean;
11082
+ } | {
11083
+ type: "progress";
11084
+ id: string;
11085
+ label?: string;
11086
+ value: number;
11087
+ detail?: string;
11088
+ indeterminate?: boolean;
11089
+ } | {
11090
+ type: "separator";
11091
+ id?: string;
11092
+ }>;
11093
+ dismissible?: boolean;
11094
+ metadata?: {
11095
+ [key: string]: unknown;
11096
+ };
11097
+ kind: "dialog";
11098
+ modal?: boolean;
11099
+ width?: "small" | "medium" | "large";
11100
+ } | {
11101
+ id: string;
11102
+ title: string;
11103
+ body?: string;
11104
+ controls?: Array<{
11105
+ type: "button";
11106
+ id: string;
11107
+ label: string;
11108
+ action: string;
11109
+ disabled?: boolean;
11110
+ destructive?: boolean;
11111
+ } | {
11112
+ type: "link";
11113
+ id: string;
11114
+ label: string;
11115
+ url: string;
11116
+ disabled?: boolean;
11117
+ } | {
11118
+ type: "text-input";
11119
+ id: string;
11120
+ label?: string;
11121
+ value?: string;
11122
+ placeholder?: string;
11123
+ secure?: boolean;
11124
+ multiline?: boolean;
11125
+ required?: boolean;
11126
+ } | {
11127
+ type: "select";
11128
+ id: string;
11129
+ label: string;
11130
+ value?: string;
11131
+ options: Array<{
11132
+ id: string;
11133
+ label: string;
11134
+ disabled?: boolean;
11135
+ }>;
11136
+ } | {
11137
+ type: "checkbox";
11138
+ id: string;
11139
+ label: string;
11140
+ checked: boolean;
11141
+ disabled?: boolean;
11142
+ } | {
11143
+ type: "progress";
11144
+ id: string;
11145
+ label?: string;
11146
+ value: number;
11147
+ detail?: string;
11148
+ indeterminate?: boolean;
11149
+ } | {
11150
+ type: "separator";
11151
+ id?: string;
11152
+ }>;
11153
+ dismissible?: boolean;
11154
+ metadata?: {
11155
+ [key: string]: unknown;
11156
+ };
11157
+ kind: "popover";
11158
+ anchor: {
11159
+ x: number;
11160
+ y: number;
11161
+ width: number;
11162
+ height: number;
11163
+ };
11164
+ placement?: "top" | "right" | "bottom" | "left";
11165
+ } | {
11166
+ id: string;
11167
+ title: string;
11168
+ body?: string;
11169
+ controls?: Array<{
11170
+ type: "button";
11171
+ id: string;
11172
+ label: string;
11173
+ action: string;
11174
+ disabled?: boolean;
11175
+ destructive?: boolean;
11176
+ } | {
11177
+ type: "link";
11178
+ id: string;
11179
+ label: string;
11180
+ url: string;
11181
+ disabled?: boolean;
11182
+ } | {
11183
+ type: "text-input";
11184
+ id: string;
11185
+ label?: string;
11186
+ value?: string;
11187
+ placeholder?: string;
11188
+ secure?: boolean;
11189
+ multiline?: boolean;
11190
+ required?: boolean;
11191
+ } | {
11192
+ type: "select";
11193
+ id: string;
11194
+ label: string;
11195
+ value?: string;
11196
+ options: Array<{
11197
+ id: string;
11198
+ label: string;
11199
+ disabled?: boolean;
11200
+ }>;
11201
+ } | {
11202
+ type: "checkbox";
11203
+ id: string;
11204
+ label: string;
11205
+ checked: boolean;
11206
+ disabled?: boolean;
11207
+ } | {
11208
+ type: "progress";
11209
+ id: string;
11210
+ label?: string;
11211
+ value: number;
11212
+ detail?: string;
11213
+ indeterminate?: boolean;
11214
+ } | {
11215
+ type: "separator";
11216
+ id?: string;
11217
+ }>;
11218
+ dismissible?: boolean;
11219
+ metadata?: {
11220
+ [key: string]: unknown;
11221
+ };
11222
+ kind: "notification";
11223
+ severity?: "info" | "success" | "warning" | "error";
11224
+ durationMs?: number;
11225
+ } | {
11226
+ id: string;
11227
+ title: string;
11228
+ body?: string;
11229
+ controls?: Array<{
11230
+ type: "button";
11231
+ id: string;
11232
+ label: string;
11233
+ action: string;
11234
+ disabled?: boolean;
11235
+ destructive?: boolean;
11236
+ } | {
11237
+ type: "link";
11238
+ id: string;
11239
+ label: string;
11240
+ url: string;
11241
+ disabled?: boolean;
11242
+ } | {
11243
+ type: "text-input";
11244
+ id: string;
11245
+ label?: string;
11246
+ value?: string;
11247
+ placeholder?: string;
11248
+ secure?: boolean;
11249
+ multiline?: boolean;
11250
+ required?: boolean;
11251
+ } | {
11252
+ type: "select";
11253
+ id: string;
11254
+ label: string;
11255
+ value?: string;
11256
+ options: Array<{
11257
+ id: string;
11258
+ label: string;
11259
+ disabled?: boolean;
11260
+ }>;
11261
+ } | {
11262
+ type: "checkbox";
11263
+ id: string;
11264
+ label: string;
11265
+ checked: boolean;
11266
+ disabled?: boolean;
11267
+ } | {
11268
+ type: "progress";
11269
+ id: string;
11270
+ label?: string;
11271
+ value: number;
11272
+ detail?: string;
11273
+ indeterminate?: boolean;
11274
+ } | {
11275
+ type: "separator";
11276
+ id?: string;
11277
+ }>;
11278
+ dismissible?: boolean;
11279
+ metadata?: {
11280
+ [key: string]: unknown;
11281
+ };
11282
+ kind: "menu";
11283
+ items: Array<{
11284
+ id: string;
11285
+ label: string;
11286
+ action?: string;
11287
+ disabled?: boolean;
11288
+ checked?: boolean;
11289
+ }>;
11290
+ };
11291
+ path?: never;
11292
+ query?: {
11293
+ directory?: string;
11294
+ workspace?: string;
11295
+ };
11296
+ url: "/native-ui/surfaces";
11297
+ };
11298
+ export type PostNativeUiSurfacesResponses = {
11299
+ 200: unknown;
11300
+ };
11301
+ export type DeleteNativeUiSurfacesIdData = {
11302
+ body?: never;
11303
+ path: {
11304
+ id: string;
11305
+ };
11306
+ query?: {
11307
+ directory?: string;
11308
+ workspace?: string;
11309
+ };
11310
+ url: "/native-ui/surfaces/{id}";
11311
+ };
11312
+ export type DeleteNativeUiSurfacesIdResponses = {
11313
+ 200: unknown;
11314
+ };
11315
+ export type PutNativeUiSurfacesIdData = {
11316
+ body?: {
11317
+ id: string;
11318
+ title: string;
11319
+ body?: string;
11320
+ controls?: Array<{
11321
+ type: "button";
11322
+ id: string;
11323
+ label: string;
11324
+ action: string;
11325
+ disabled?: boolean;
11326
+ destructive?: boolean;
11327
+ } | {
11328
+ type: "link";
11329
+ id: string;
11330
+ label: string;
11331
+ url: string;
11332
+ disabled?: boolean;
11333
+ } | {
11334
+ type: "text-input";
11335
+ id: string;
11336
+ label?: string;
11337
+ value?: string;
11338
+ placeholder?: string;
11339
+ secure?: boolean;
11340
+ multiline?: boolean;
11341
+ required?: boolean;
11342
+ } | {
11343
+ type: "select";
11344
+ id: string;
11345
+ label: string;
11346
+ value?: string;
11347
+ options: Array<{
11348
+ id: string;
11349
+ label: string;
11350
+ disabled?: boolean;
11351
+ }>;
11352
+ } | {
11353
+ type: "checkbox";
11354
+ id: string;
11355
+ label: string;
11356
+ checked: boolean;
11357
+ disabled?: boolean;
11358
+ } | {
11359
+ type: "progress";
11360
+ id: string;
11361
+ label?: string;
11362
+ value: number;
11363
+ detail?: string;
11364
+ indeterminate?: boolean;
11365
+ } | {
11366
+ type: "separator";
11367
+ id?: string;
11368
+ }>;
11369
+ dismissible?: boolean;
11370
+ metadata?: {
11371
+ [key: string]: unknown;
11372
+ };
11373
+ kind: "dialog";
11374
+ modal?: boolean;
11375
+ width?: "small" | "medium" | "large";
11376
+ } | {
11377
+ id: string;
11378
+ title: string;
11379
+ body?: string;
11380
+ controls?: Array<{
11381
+ type: "button";
11382
+ id: string;
11383
+ label: string;
11384
+ action: string;
11385
+ disabled?: boolean;
11386
+ destructive?: boolean;
11387
+ } | {
11388
+ type: "link";
11389
+ id: string;
11390
+ label: string;
11391
+ url: string;
11392
+ disabled?: boolean;
11393
+ } | {
11394
+ type: "text-input";
11395
+ id: string;
11396
+ label?: string;
11397
+ value?: string;
11398
+ placeholder?: string;
11399
+ secure?: boolean;
11400
+ multiline?: boolean;
11401
+ required?: boolean;
11402
+ } | {
11403
+ type: "select";
11404
+ id: string;
11405
+ label: string;
11406
+ value?: string;
11407
+ options: Array<{
11408
+ id: string;
11409
+ label: string;
11410
+ disabled?: boolean;
11411
+ }>;
11412
+ } | {
11413
+ type: "checkbox";
11414
+ id: string;
11415
+ label: string;
11416
+ checked: boolean;
11417
+ disabled?: boolean;
11418
+ } | {
11419
+ type: "progress";
11420
+ id: string;
11421
+ label?: string;
11422
+ value: number;
11423
+ detail?: string;
11424
+ indeterminate?: boolean;
11425
+ } | {
11426
+ type: "separator";
11427
+ id?: string;
11428
+ }>;
11429
+ dismissible?: boolean;
11430
+ metadata?: {
11431
+ [key: string]: unknown;
11432
+ };
11433
+ kind: "popover";
11434
+ anchor: {
11435
+ x: number;
11436
+ y: number;
11437
+ width: number;
11438
+ height: number;
11439
+ };
11440
+ placement?: "top" | "right" | "bottom" | "left";
11441
+ } | {
11442
+ id: string;
11443
+ title: string;
11444
+ body?: string;
11445
+ controls?: Array<{
11446
+ type: "button";
11447
+ id: string;
11448
+ label: string;
11449
+ action: string;
11450
+ disabled?: boolean;
11451
+ destructive?: boolean;
11452
+ } | {
11453
+ type: "link";
11454
+ id: string;
11455
+ label: string;
11456
+ url: string;
11457
+ disabled?: boolean;
11458
+ } | {
11459
+ type: "text-input";
11460
+ id: string;
11461
+ label?: string;
11462
+ value?: string;
11463
+ placeholder?: string;
11464
+ secure?: boolean;
11465
+ multiline?: boolean;
11466
+ required?: boolean;
11467
+ } | {
11468
+ type: "select";
11469
+ id: string;
11470
+ label: string;
11471
+ value?: string;
11472
+ options: Array<{
11473
+ id: string;
11474
+ label: string;
11475
+ disabled?: boolean;
11476
+ }>;
11477
+ } | {
11478
+ type: "checkbox";
11479
+ id: string;
11480
+ label: string;
11481
+ checked: boolean;
11482
+ disabled?: boolean;
11483
+ } | {
11484
+ type: "progress";
11485
+ id: string;
11486
+ label?: string;
11487
+ value: number;
11488
+ detail?: string;
11489
+ indeterminate?: boolean;
11490
+ } | {
11491
+ type: "separator";
11492
+ id?: string;
11493
+ }>;
11494
+ dismissible?: boolean;
11495
+ metadata?: {
11496
+ [key: string]: unknown;
11497
+ };
11498
+ kind: "notification";
11499
+ severity?: "info" | "success" | "warning" | "error";
11500
+ durationMs?: number;
11501
+ } | {
11502
+ id: string;
11503
+ title: string;
11504
+ body?: string;
11505
+ controls?: Array<{
11506
+ type: "button";
11507
+ id: string;
11508
+ label: string;
11509
+ action: string;
11510
+ disabled?: boolean;
11511
+ destructive?: boolean;
11512
+ } | {
11513
+ type: "link";
11514
+ id: string;
11515
+ label: string;
11516
+ url: string;
11517
+ disabled?: boolean;
11518
+ } | {
11519
+ type: "text-input";
11520
+ id: string;
11521
+ label?: string;
11522
+ value?: string;
11523
+ placeholder?: string;
11524
+ secure?: boolean;
11525
+ multiline?: boolean;
11526
+ required?: boolean;
11527
+ } | {
11528
+ type: "select";
11529
+ id: string;
11530
+ label: string;
11531
+ value?: string;
11532
+ options: Array<{
11533
+ id: string;
11534
+ label: string;
11535
+ disabled?: boolean;
11536
+ }>;
11537
+ } | {
11538
+ type: "checkbox";
11539
+ id: string;
11540
+ label: string;
11541
+ checked: boolean;
11542
+ disabled?: boolean;
11543
+ } | {
11544
+ type: "progress";
11545
+ id: string;
11546
+ label?: string;
11547
+ value: number;
11548
+ detail?: string;
11549
+ indeterminate?: boolean;
11550
+ } | {
11551
+ type: "separator";
11552
+ id?: string;
11553
+ }>;
11554
+ dismissible?: boolean;
11555
+ metadata?: {
11556
+ [key: string]: unknown;
11557
+ };
11558
+ kind: "menu";
11559
+ items: Array<{
11560
+ id: string;
11561
+ label: string;
11562
+ action?: string;
11563
+ disabled?: boolean;
11564
+ checked?: boolean;
11565
+ }>;
11566
+ };
11567
+ path: {
11568
+ id: string;
11569
+ };
11570
+ query?: {
11571
+ directory?: string;
11572
+ workspace?: string;
11573
+ };
11574
+ url: "/native-ui/surfaces/{id}";
11575
+ };
11576
+ export type PutNativeUiSurfacesIdResponses = {
11577
+ 200: unknown;
11578
+ };
11579
+ export type PostNativeUiEventsData = {
11580
+ body?: {
11581
+ type: "surface-opened";
11582
+ surface: {
11583
+ id: string;
11584
+ title: string;
11585
+ body?: string;
11586
+ controls?: Array<{
11587
+ type: "button";
11588
+ id: string;
11589
+ label: string;
11590
+ action: string;
11591
+ disabled?: boolean;
11592
+ destructive?: boolean;
11593
+ } | {
11594
+ type: "link";
11595
+ id: string;
11596
+ label: string;
11597
+ url: string;
11598
+ disabled?: boolean;
11599
+ } | {
11600
+ type: "text-input";
11601
+ id: string;
11602
+ label?: string;
11603
+ value?: string;
11604
+ placeholder?: string;
11605
+ secure?: boolean;
11606
+ multiline?: boolean;
11607
+ required?: boolean;
11608
+ } | {
11609
+ type: "select";
11610
+ id: string;
11611
+ label: string;
11612
+ value?: string;
11613
+ options: Array<{
11614
+ id: string;
11615
+ label: string;
11616
+ disabled?: boolean;
11617
+ }>;
11618
+ } | {
11619
+ type: "checkbox";
11620
+ id: string;
11621
+ label: string;
11622
+ checked: boolean;
11623
+ disabled?: boolean;
11624
+ } | {
11625
+ type: "progress";
11626
+ id: string;
11627
+ label?: string;
11628
+ value: number;
11629
+ detail?: string;
11630
+ indeterminate?: boolean;
11631
+ } | {
11632
+ type: "separator";
11633
+ id?: string;
11634
+ }>;
11635
+ dismissible?: boolean;
11636
+ metadata?: {
11637
+ [key: string]: unknown;
11638
+ };
11639
+ kind: "dialog";
11640
+ modal?: boolean;
11641
+ width?: "small" | "medium" | "large";
11642
+ } | {
11643
+ id: string;
11644
+ title: string;
11645
+ body?: string;
11646
+ controls?: Array<{
11647
+ type: "button";
11648
+ id: string;
11649
+ label: string;
11650
+ action: string;
11651
+ disabled?: boolean;
11652
+ destructive?: boolean;
11653
+ } | {
11654
+ type: "link";
11655
+ id: string;
11656
+ label: string;
11657
+ url: string;
11658
+ disabled?: boolean;
11659
+ } | {
11660
+ type: "text-input";
11661
+ id: string;
11662
+ label?: string;
11663
+ value?: string;
11664
+ placeholder?: string;
11665
+ secure?: boolean;
11666
+ multiline?: boolean;
11667
+ required?: boolean;
11668
+ } | {
11669
+ type: "select";
11670
+ id: string;
11671
+ label: string;
11672
+ value?: string;
11673
+ options: Array<{
11674
+ id: string;
11675
+ label: string;
11676
+ disabled?: boolean;
11677
+ }>;
11678
+ } | {
11679
+ type: "checkbox";
11680
+ id: string;
11681
+ label: string;
11682
+ checked: boolean;
11683
+ disabled?: boolean;
11684
+ } | {
11685
+ type: "progress";
11686
+ id: string;
11687
+ label?: string;
11688
+ value: number;
11689
+ detail?: string;
11690
+ indeterminate?: boolean;
11691
+ } | {
11692
+ type: "separator";
11693
+ id?: string;
11694
+ }>;
11695
+ dismissible?: boolean;
11696
+ metadata?: {
11697
+ [key: string]: unknown;
11698
+ };
11699
+ kind: "popover";
11700
+ anchor: {
11701
+ x: number;
11702
+ y: number;
11703
+ width: number;
11704
+ height: number;
11705
+ };
11706
+ placement?: "top" | "right" | "bottom" | "left";
11707
+ } | {
11708
+ id: string;
11709
+ title: string;
11710
+ body?: string;
11711
+ controls?: Array<{
11712
+ type: "button";
11713
+ id: string;
11714
+ label: string;
11715
+ action: string;
11716
+ disabled?: boolean;
11717
+ destructive?: boolean;
11718
+ } | {
11719
+ type: "link";
11720
+ id: string;
11721
+ label: string;
11722
+ url: string;
11723
+ disabled?: boolean;
11724
+ } | {
11725
+ type: "text-input";
11726
+ id: string;
11727
+ label?: string;
11728
+ value?: string;
11729
+ placeholder?: string;
11730
+ secure?: boolean;
11731
+ multiline?: boolean;
11732
+ required?: boolean;
11733
+ } | {
11734
+ type: "select";
11735
+ id: string;
11736
+ label: string;
11737
+ value?: string;
11738
+ options: Array<{
11739
+ id: string;
11740
+ label: string;
11741
+ disabled?: boolean;
11742
+ }>;
11743
+ } | {
11744
+ type: "checkbox";
11745
+ id: string;
11746
+ label: string;
11747
+ checked: boolean;
11748
+ disabled?: boolean;
11749
+ } | {
11750
+ type: "progress";
11751
+ id: string;
11752
+ label?: string;
11753
+ value: number;
11754
+ detail?: string;
11755
+ indeterminate?: boolean;
11756
+ } | {
11757
+ type: "separator";
11758
+ id?: string;
11759
+ }>;
11760
+ dismissible?: boolean;
11761
+ metadata?: {
11762
+ [key: string]: unknown;
11763
+ };
11764
+ kind: "notification";
11765
+ severity?: "info" | "success" | "warning" | "error";
11766
+ durationMs?: number;
11767
+ } | {
11768
+ id: string;
11769
+ title: string;
11770
+ body?: string;
11771
+ controls?: Array<{
11772
+ type: "button";
11773
+ id: string;
11774
+ label: string;
11775
+ action: string;
11776
+ disabled?: boolean;
11777
+ destructive?: boolean;
11778
+ } | {
11779
+ type: "link";
11780
+ id: string;
11781
+ label: string;
11782
+ url: string;
11783
+ disabled?: boolean;
11784
+ } | {
11785
+ type: "text-input";
11786
+ id: string;
11787
+ label?: string;
11788
+ value?: string;
11789
+ placeholder?: string;
11790
+ secure?: boolean;
11791
+ multiline?: boolean;
11792
+ required?: boolean;
11793
+ } | {
11794
+ type: "select";
11795
+ id: string;
11796
+ label: string;
11797
+ value?: string;
11798
+ options: Array<{
11799
+ id: string;
11800
+ label: string;
11801
+ disabled?: boolean;
11802
+ }>;
11803
+ } | {
11804
+ type: "checkbox";
11805
+ id: string;
11806
+ label: string;
11807
+ checked: boolean;
11808
+ disabled?: boolean;
11809
+ } | {
11810
+ type: "progress";
11811
+ id: string;
11812
+ label?: string;
11813
+ value: number;
11814
+ detail?: string;
11815
+ indeterminate?: boolean;
11816
+ } | {
11817
+ type: "separator";
11818
+ id?: string;
11819
+ }>;
11820
+ dismissible?: boolean;
11821
+ metadata?: {
11822
+ [key: string]: unknown;
11823
+ };
11824
+ kind: "menu";
11825
+ items: Array<{
11826
+ id: string;
11827
+ label: string;
11828
+ action?: string;
11829
+ disabled?: boolean;
11830
+ checked?: boolean;
11831
+ }>;
11832
+ };
11833
+ } | {
11834
+ type: "surface-updated";
11835
+ surface: {
11836
+ id: string;
11837
+ title: string;
11838
+ body?: string;
11839
+ controls?: Array<{
11840
+ type: "button";
11841
+ id: string;
11842
+ label: string;
11843
+ action: string;
11844
+ disabled?: boolean;
11845
+ destructive?: boolean;
11846
+ } | {
11847
+ type: "link";
11848
+ id: string;
11849
+ label: string;
11850
+ url: string;
11851
+ disabled?: boolean;
11852
+ } | {
11853
+ type: "text-input";
11854
+ id: string;
11855
+ label?: string;
11856
+ value?: string;
11857
+ placeholder?: string;
11858
+ secure?: boolean;
11859
+ multiline?: boolean;
11860
+ required?: boolean;
11861
+ } | {
11862
+ type: "select";
11863
+ id: string;
11864
+ label: string;
11865
+ value?: string;
11866
+ options: Array<{
11867
+ id: string;
11868
+ label: string;
11869
+ disabled?: boolean;
11870
+ }>;
11871
+ } | {
11872
+ type: "checkbox";
11873
+ id: string;
11874
+ label: string;
11875
+ checked: boolean;
11876
+ disabled?: boolean;
11877
+ } | {
11878
+ type: "progress";
11879
+ id: string;
11880
+ label?: string;
11881
+ value: number;
11882
+ detail?: string;
11883
+ indeterminate?: boolean;
11884
+ } | {
11885
+ type: "separator";
11886
+ id?: string;
11887
+ }>;
11888
+ dismissible?: boolean;
11889
+ metadata?: {
11890
+ [key: string]: unknown;
11891
+ };
11892
+ kind: "dialog";
11893
+ modal?: boolean;
11894
+ width?: "small" | "medium" | "large";
11895
+ } | {
11896
+ id: string;
11897
+ title: string;
11898
+ body?: string;
11899
+ controls?: Array<{
11900
+ type: "button";
11901
+ id: string;
11902
+ label: string;
11903
+ action: string;
11904
+ disabled?: boolean;
11905
+ destructive?: boolean;
11906
+ } | {
11907
+ type: "link";
11908
+ id: string;
11909
+ label: string;
11910
+ url: string;
11911
+ disabled?: boolean;
11912
+ } | {
11913
+ type: "text-input";
11914
+ id: string;
11915
+ label?: string;
11916
+ value?: string;
11917
+ placeholder?: string;
11918
+ secure?: boolean;
11919
+ multiline?: boolean;
11920
+ required?: boolean;
11921
+ } | {
11922
+ type: "select";
11923
+ id: string;
11924
+ label: string;
11925
+ value?: string;
11926
+ options: Array<{
11927
+ id: string;
11928
+ label: string;
11929
+ disabled?: boolean;
11930
+ }>;
11931
+ } | {
11932
+ type: "checkbox";
11933
+ id: string;
11934
+ label: string;
11935
+ checked: boolean;
11936
+ disabled?: boolean;
11937
+ } | {
11938
+ type: "progress";
11939
+ id: string;
11940
+ label?: string;
11941
+ value: number;
11942
+ detail?: string;
11943
+ indeterminate?: boolean;
11944
+ } | {
11945
+ type: "separator";
11946
+ id?: string;
11947
+ }>;
11948
+ dismissible?: boolean;
11949
+ metadata?: {
11950
+ [key: string]: unknown;
11951
+ };
11952
+ kind: "popover";
11953
+ anchor: {
11954
+ x: number;
11955
+ y: number;
11956
+ width: number;
11957
+ height: number;
11958
+ };
11959
+ placement?: "top" | "right" | "bottom" | "left";
11960
+ } | {
11961
+ id: string;
11962
+ title: string;
11963
+ body?: string;
11964
+ controls?: Array<{
11965
+ type: "button";
11966
+ id: string;
11967
+ label: string;
11968
+ action: string;
11969
+ disabled?: boolean;
11970
+ destructive?: boolean;
11971
+ } | {
11972
+ type: "link";
11973
+ id: string;
11974
+ label: string;
11975
+ url: string;
11976
+ disabled?: boolean;
11977
+ } | {
11978
+ type: "text-input";
11979
+ id: string;
11980
+ label?: string;
11981
+ value?: string;
11982
+ placeholder?: string;
11983
+ secure?: boolean;
11984
+ multiline?: boolean;
11985
+ required?: boolean;
11986
+ } | {
11987
+ type: "select";
11988
+ id: string;
11989
+ label: string;
11990
+ value?: string;
11991
+ options: Array<{
11992
+ id: string;
11993
+ label: string;
11994
+ disabled?: boolean;
11995
+ }>;
11996
+ } | {
11997
+ type: "checkbox";
11998
+ id: string;
11999
+ label: string;
12000
+ checked: boolean;
12001
+ disabled?: boolean;
12002
+ } | {
12003
+ type: "progress";
12004
+ id: string;
12005
+ label?: string;
12006
+ value: number;
12007
+ detail?: string;
12008
+ indeterminate?: boolean;
12009
+ } | {
12010
+ type: "separator";
12011
+ id?: string;
12012
+ }>;
12013
+ dismissible?: boolean;
12014
+ metadata?: {
12015
+ [key: string]: unknown;
12016
+ };
12017
+ kind: "notification";
12018
+ severity?: "info" | "success" | "warning" | "error";
12019
+ durationMs?: number;
12020
+ } | {
12021
+ id: string;
12022
+ title: string;
12023
+ body?: string;
12024
+ controls?: Array<{
12025
+ type: "button";
12026
+ id: string;
12027
+ label: string;
12028
+ action: string;
12029
+ disabled?: boolean;
12030
+ destructive?: boolean;
12031
+ } | {
12032
+ type: "link";
12033
+ id: string;
12034
+ label: string;
12035
+ url: string;
12036
+ disabled?: boolean;
12037
+ } | {
12038
+ type: "text-input";
12039
+ id: string;
12040
+ label?: string;
12041
+ value?: string;
12042
+ placeholder?: string;
12043
+ secure?: boolean;
12044
+ multiline?: boolean;
12045
+ required?: boolean;
12046
+ } | {
12047
+ type: "select";
12048
+ id: string;
12049
+ label: string;
12050
+ value?: string;
12051
+ options: Array<{
12052
+ id: string;
12053
+ label: string;
12054
+ disabled?: boolean;
12055
+ }>;
12056
+ } | {
12057
+ type: "checkbox";
12058
+ id: string;
12059
+ label: string;
12060
+ checked: boolean;
12061
+ disabled?: boolean;
12062
+ } | {
12063
+ type: "progress";
12064
+ id: string;
12065
+ label?: string;
12066
+ value: number;
12067
+ detail?: string;
12068
+ indeterminate?: boolean;
12069
+ } | {
12070
+ type: "separator";
12071
+ id?: string;
12072
+ }>;
12073
+ dismissible?: boolean;
12074
+ metadata?: {
12075
+ [key: string]: unknown;
12076
+ };
12077
+ kind: "menu";
12078
+ items: Array<{
12079
+ id: string;
12080
+ label: string;
12081
+ action?: string;
12082
+ disabled?: boolean;
12083
+ checked?: boolean;
12084
+ }>;
12085
+ };
12086
+ } | {
12087
+ type: "surface-closed";
12088
+ surfaceId: string;
12089
+ reason: "dismissed" | "action" | "replaced" | "system";
12090
+ } | {
12091
+ type: "control-activated";
12092
+ surfaceId: string;
12093
+ controlId: string;
12094
+ action: {
12095
+ type: "dismiss-surface";
12096
+ surfaceId: string;
12097
+ } | {
12098
+ type: "invoke";
12099
+ action: string;
12100
+ payload?: {
12101
+ [key: string]: unknown;
12102
+ };
12103
+ } | {
12104
+ type: "open-url";
12105
+ url: string;
12106
+ } | {
12107
+ type: "update-control";
12108
+ surfaceId: string;
12109
+ controlId: string;
12110
+ value: unknown;
12111
+ };
12112
+ } | {
12113
+ type: "control-changed";
12114
+ surfaceId: string;
12115
+ controlId: string;
12116
+ value: unknown;
12117
+ };
12118
+ path?: never;
12119
+ query?: {
12120
+ directory?: string;
12121
+ workspace?: string;
12122
+ };
12123
+ url: "/native-ui/events";
12124
+ };
12125
+ export type PostNativeUiEventsResponses = {
12126
+ 200: unknown;
12127
+ };
10751
12128
  export type InstanceDisposeData = {
10752
12129
  body?: never;
10753
12130
  path?: never;