@ai-matrx/desktop-protocol 0.7.0 → 0.11.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.
@@ -0,0 +1,4554 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aimatrx.com/schemas/desktop-protocol/1.0",
4
+ "title": "DesktopProtocol",
5
+ "$defs": {
6
+ "ProtocolVersion": {
7
+ "type": "string",
8
+ "pattern": "^[1-9][0-9]{0,2}\\.[0-9]{1,3}$"
9
+ },
10
+ "RequestId": {
11
+ "type": "string",
12
+ "minLength": 1,
13
+ "maxLength": 64,
14
+ "pattern": "^[A-Za-z0-9_-]+$"
15
+ },
16
+ "ResourceId": {
17
+ "type": "string",
18
+ "pattern": "^(pty|watch)_[A-Za-z0-9]{16,40}$"
19
+ },
20
+ "DeviceId": {
21
+ "type": "string",
22
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
23
+ },
24
+ "AbsPath": {
25
+ "type": "string",
26
+ "minLength": 1,
27
+ "maxLength": 4096,
28
+ "pattern": "^(\\/|[A-Za-z]:\\/)[^\\\\\\u0000]*$"
29
+ },
30
+ "ErrorCode": {
31
+ "type": "string",
32
+ "enum": [
33
+ "AUTH_REQUIRED",
34
+ "AUTH_INVALID",
35
+ "AUTH_EXPIRED",
36
+ "AUTH_FORBIDDEN",
37
+ "AUTH_DEVICE_REVOKED",
38
+ "PERMISSION_DENIED_OS",
39
+ "NOT_FOUND",
40
+ "CONFLICT",
41
+ "INVALID_PARAMS",
42
+ "RESOURCE_BUSY",
43
+ "RESOURCE_GONE",
44
+ "CANCELLED",
45
+ "TIMEOUT",
46
+ "PLATFORM_UNSUPPORTED",
47
+ "RATE_LIMITED",
48
+ "INTERNAL",
49
+ "PROTOCOL_VERSION_UNSUPPORTED",
50
+ "PROTOCOL_ERROR",
51
+ "UNKNOWN_OPERATION",
52
+ "DEVICE_OFFLINE",
53
+ "PAYLOAD_TOO_LARGE"
54
+ ]
55
+ },
56
+ "ErrorReason": {
57
+ "type": "string",
58
+ "enum": [
59
+ "not_a_directory",
60
+ "is_a_directory",
61
+ "directory_not_empty",
62
+ "already_exists",
63
+ "stale_write",
64
+ "binary_content",
65
+ "not_utf8_boundary",
66
+ "patch_no_match",
67
+ "patch_ambiguous",
68
+ "resource_exited",
69
+ "resource_expired",
70
+ "control_taken",
71
+ "window_exhausted",
72
+ "runtime_not_installed",
73
+ "model_not_installed",
74
+ "unsupported_media",
75
+ "download_failed",
76
+ "service_starting",
77
+ "service_restarted",
78
+ "service_failed"
79
+ ]
80
+ },
81
+ "FsPatchEditFailure": {
82
+ "type": "object",
83
+ "properties": {
84
+ "edit_index": {
85
+ "type": "integer",
86
+ "minimum": 0,
87
+ "maximum": 9007199254740991
88
+ },
89
+ "reason": {
90
+ "type": "string",
91
+ "maxLength": 300
92
+ }
93
+ },
94
+ "required": [
95
+ "edit_index",
96
+ "reason"
97
+ ],
98
+ "additionalProperties": false
99
+ },
100
+ "ProtocolErrorBody": {
101
+ "type": "object",
102
+ "properties": {
103
+ "code": {
104
+ "$ref": "#/$defs/ErrorCode"
105
+ },
106
+ "message": {
107
+ "type": "string",
108
+ "maxLength": 300
109
+ },
110
+ "retryable": {
111
+ "type": "boolean"
112
+ },
113
+ "data": {
114
+ "type": "object",
115
+ "properties": {
116
+ "reason": {
117
+ "$ref": "#/$defs/ErrorReason"
118
+ },
119
+ "cap": {
120
+ "type": "string",
121
+ "maxLength": 32
122
+ },
123
+ "op": {
124
+ "type": "string",
125
+ "maxLength": 64
126
+ },
127
+ "path": {
128
+ "$ref": "#/$defs/AbsPath"
129
+ },
130
+ "settings_url": {
131
+ "type": "string",
132
+ "maxLength": 512
133
+ },
134
+ "retry_after_ms": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "maximum": 9007199254740991
138
+ },
139
+ "limit_bytes": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "maximum": 9007199254740991
143
+ },
144
+ "edits_failed": {
145
+ "maxItems": 256,
146
+ "type": "array",
147
+ "items": {
148
+ "$ref": "#/$defs/FsPatchEditFailure"
149
+ }
150
+ },
151
+ "upgrade": {
152
+ "type": "object",
153
+ "properties": {
154
+ "min_version": {
155
+ "$ref": "#/$defs/ProtocolVersion"
156
+ },
157
+ "max_version": {
158
+ "$ref": "#/$defs/ProtocolVersion"
159
+ },
160
+ "download_url": {
161
+ "type": "string",
162
+ "format": "uri"
163
+ }
164
+ },
165
+ "required": [
166
+ "min_version",
167
+ "max_version"
168
+ ],
169
+ "additionalProperties": false
170
+ }
171
+ },
172
+ "additionalProperties": false
173
+ }
174
+ },
175
+ "required": [
176
+ "code",
177
+ "message",
178
+ "retryable"
179
+ ],
180
+ "additionalProperties": false
181
+ },
182
+ "FrameHeader": {
183
+ "type": "object",
184
+ "properties": {
185
+ "version": {
186
+ "type": "number",
187
+ "const": 1
188
+ },
189
+ "flags": {
190
+ "type": "integer",
191
+ "minimum": 0,
192
+ "maximum": 3
193
+ },
194
+ "channel": {
195
+ "anyOf": [
196
+ {
197
+ "type": "number",
198
+ "const": 0
199
+ },
200
+ {
201
+ "type": "number",
202
+ "const": 1
203
+ },
204
+ {
205
+ "type": "number",
206
+ "const": 2
207
+ },
208
+ {
209
+ "type": "number",
210
+ "const": 3
211
+ },
212
+ {
213
+ "type": "number",
214
+ "const": 255
215
+ }
216
+ ]
217
+ },
218
+ "cid": {
219
+ "type": "integer",
220
+ "minimum": 0,
221
+ "maximum": 4294967295
222
+ },
223
+ "sid": {
224
+ "type": "integer",
225
+ "minimum": 0,
226
+ "maximum": 4294967295
227
+ },
228
+ "seq": {
229
+ "type": "integer",
230
+ "minimum": 0,
231
+ "maximum": 4294967295
232
+ }
233
+ },
234
+ "required": [
235
+ "version",
236
+ "flags",
237
+ "channel",
238
+ "cid",
239
+ "sid",
240
+ "seq"
241
+ ],
242
+ "additionalProperties": false
243
+ },
244
+ "ClientType": {
245
+ "type": "string",
246
+ "enum": [
247
+ "screen",
248
+ "web",
249
+ "extension",
250
+ "server",
251
+ "test"
252
+ ]
253
+ },
254
+ "Limits": {
255
+ "type": "object",
256
+ "properties": {
257
+ "max_message_bytes": {
258
+ "type": "integer",
259
+ "minimum": 65536,
260
+ "maximum": 9007199254740991
261
+ },
262
+ "max_frame_payload_bytes": {
263
+ "type": "integer",
264
+ "minimum": 4096,
265
+ "maximum": 9007199254740991
266
+ },
267
+ "default_window_bytes": {
268
+ "type": "integer",
269
+ "minimum": 4096,
270
+ "maximum": 9007199254740991
271
+ },
272
+ "max_streams_per_client": {
273
+ "type": "integer",
274
+ "minimum": 1,
275
+ "maximum": 9007199254740991
276
+ },
277
+ "max_resources_per_user": {
278
+ "type": "integer",
279
+ "minimum": 1,
280
+ "maximum": 9007199254740991
281
+ }
282
+ },
283
+ "required": [
284
+ "max_message_bytes",
285
+ "max_frame_payload_bytes",
286
+ "default_window_bytes",
287
+ "max_streams_per_client",
288
+ "max_resources_per_user"
289
+ ],
290
+ "additionalProperties": false
291
+ },
292
+ "OpDescriptor": {
293
+ "type": "object",
294
+ "properties": {
295
+ "cap": {
296
+ "type": "string",
297
+ "maxLength": 32
298
+ },
299
+ "op": {
300
+ "type": "string",
301
+ "maxLength": 64
302
+ },
303
+ "since": {
304
+ "$ref": "#/$defs/ProtocolVersion"
305
+ }
306
+ },
307
+ "required": [
308
+ "cap",
309
+ "op",
310
+ "since"
311
+ ],
312
+ "additionalProperties": false
313
+ },
314
+ "Welcome": {
315
+ "type": "object",
316
+ "properties": {
317
+ "protocol_version": {
318
+ "$ref": "#/$defs/ProtocolVersion"
319
+ },
320
+ "session_id": {
321
+ "type": "string",
322
+ "minLength": 8,
323
+ "maxLength": 64
324
+ },
325
+ "client_id": {
326
+ "type": "string",
327
+ "minLength": 8,
328
+ "maxLength": 64
329
+ },
330
+ "device_id": {
331
+ "$ref": "#/$defs/DeviceId"
332
+ },
333
+ "device_name": {
334
+ "type": "string",
335
+ "maxLength": 128
336
+ },
337
+ "app_version": {
338
+ "type": "string",
339
+ "maxLength": 32
340
+ },
341
+ "platform": {
342
+ "type": "string",
343
+ "enum": [
344
+ "darwin",
345
+ "win32",
346
+ "linux"
347
+ ]
348
+ },
349
+ "ops": {
350
+ "type": "array",
351
+ "items": {
352
+ "$ref": "#/$defs/OpDescriptor"
353
+ }
354
+ },
355
+ "limits": {
356
+ "$ref": "#/$defs/Limits"
357
+ },
358
+ "server_time_ms": {
359
+ "type": "integer",
360
+ "minimum": 0,
361
+ "maximum": 9007199254740991
362
+ }
363
+ },
364
+ "required": [
365
+ "protocol_version",
366
+ "session_id",
367
+ "client_id",
368
+ "device_id",
369
+ "device_name",
370
+ "app_version",
371
+ "platform",
372
+ "ops",
373
+ "limits",
374
+ "server_time_ms"
375
+ ],
376
+ "additionalProperties": false
377
+ },
378
+ "HelloMsg": {
379
+ "type": "object",
380
+ "properties": {
381
+ "type": {
382
+ "type": "string",
383
+ "const": "hello"
384
+ },
385
+ "id": {
386
+ "$ref": "#/$defs/RequestId"
387
+ },
388
+ "protocolVersion": {
389
+ "$ref": "#/$defs/ProtocolVersion"
390
+ },
391
+ "clientType": {
392
+ "$ref": "#/$defs/ClientType"
393
+ },
394
+ "clientVersion": {
395
+ "type": "string",
396
+ "minLength": 1,
397
+ "maxLength": 32
398
+ }
399
+ },
400
+ "required": [
401
+ "type",
402
+ "id",
403
+ "protocolVersion",
404
+ "clientType",
405
+ "clientVersion"
406
+ ],
407
+ "additionalProperties": false
408
+ },
409
+ "RequestMsg": {
410
+ "type": "object",
411
+ "properties": {
412
+ "id": {
413
+ "$ref": "#/$defs/RequestId"
414
+ },
415
+ "type": {
416
+ "type": "string",
417
+ "const": "request"
418
+ },
419
+ "cap": {
420
+ "type": "string",
421
+ "minLength": 1,
422
+ "maxLength": 32
423
+ },
424
+ "op": {
425
+ "type": "string",
426
+ "minLength": 1,
427
+ "maxLength": 64
428
+ },
429
+ "params": {}
430
+ },
431
+ "required": [
432
+ "id",
433
+ "type",
434
+ "cap",
435
+ "op",
436
+ "params"
437
+ ],
438
+ "additionalProperties": false
439
+ },
440
+ "ResponseMsg": {
441
+ "type": "object",
442
+ "properties": {
443
+ "id": {
444
+ "$ref": "#/$defs/RequestId"
445
+ },
446
+ "type": {
447
+ "type": "string",
448
+ "const": "response"
449
+ },
450
+ "result": {}
451
+ },
452
+ "required": [
453
+ "id",
454
+ "type",
455
+ "result"
456
+ ],
457
+ "additionalProperties": false
458
+ },
459
+ "ErrorMsg": {
460
+ "type": "object",
461
+ "properties": {
462
+ "id": {
463
+ "$ref": "#/$defs/RequestId"
464
+ },
465
+ "type": {
466
+ "type": "string",
467
+ "const": "error"
468
+ },
469
+ "error": {
470
+ "$ref": "#/$defs/ProtocolErrorBody"
471
+ }
472
+ },
473
+ "required": [
474
+ "id",
475
+ "type",
476
+ "error"
477
+ ],
478
+ "additionalProperties": false
479
+ },
480
+ "StreamMeta": {
481
+ "oneOf": [
482
+ {
483
+ "type": "object",
484
+ "properties": {
485
+ "kind": {
486
+ "type": "string",
487
+ "const": "open"
488
+ },
489
+ "sid": {
490
+ "type": "integer",
491
+ "minimum": 0,
492
+ "maximum": 4294967295
493
+ },
494
+ "window_bytes": {
495
+ "type": "integer",
496
+ "minimum": 4096,
497
+ "maximum": 9007199254740991
498
+ },
499
+ "resource_id": {
500
+ "$ref": "#/$defs/ResourceId"
501
+ }
502
+ },
503
+ "required": [
504
+ "kind",
505
+ "sid",
506
+ "window_bytes"
507
+ ],
508
+ "additionalProperties": false
509
+ },
510
+ {
511
+ "type": "object",
512
+ "properties": {
513
+ "kind": {
514
+ "type": "string",
515
+ "const": "snapshot"
516
+ },
517
+ "cols": {
518
+ "type": "integer",
519
+ "minimum": 1,
520
+ "maximum": 9007199254740991
521
+ },
522
+ "rows": {
523
+ "type": "integer",
524
+ "minimum": 1,
525
+ "maximum": 9007199254740991
526
+ }
527
+ },
528
+ "required": [
529
+ "kind",
530
+ "cols",
531
+ "rows"
532
+ ],
533
+ "additionalProperties": false
534
+ },
535
+ {
536
+ "type": "object",
537
+ "properties": {
538
+ "kind": {
539
+ "type": "string",
540
+ "const": "gap"
541
+ },
542
+ "from_seq": {
543
+ "type": "integer",
544
+ "minimum": 0,
545
+ "maximum": 4294967295
546
+ },
547
+ "to_seq": {
548
+ "type": "integer",
549
+ "minimum": 0,
550
+ "maximum": 4294967295
551
+ }
552
+ },
553
+ "required": [
554
+ "kind",
555
+ "from_seq",
556
+ "to_seq"
557
+ ],
558
+ "additionalProperties": false
559
+ }
560
+ ]
561
+ },
562
+ "StreamMsg": {
563
+ "type": "object",
564
+ "properties": {
565
+ "id": {
566
+ "$ref": "#/$defs/RequestId"
567
+ },
568
+ "type": {
569
+ "type": "string",
570
+ "const": "stream"
571
+ },
572
+ "seq": {
573
+ "type": "integer",
574
+ "minimum": 0,
575
+ "maximum": 4294967295
576
+ },
577
+ "meta": {
578
+ "$ref": "#/$defs/StreamMeta"
579
+ }
580
+ },
581
+ "required": [
582
+ "id",
583
+ "type",
584
+ "seq",
585
+ "meta"
586
+ ],
587
+ "additionalProperties": false
588
+ },
589
+ "EndReason": {
590
+ "type": "string",
591
+ "enum": [
592
+ "completed",
593
+ "cancelled",
594
+ "detached",
595
+ "resource_exited",
596
+ "error"
597
+ ]
598
+ },
599
+ "EndMsg": {
600
+ "type": "object",
601
+ "properties": {
602
+ "id": {
603
+ "$ref": "#/$defs/RequestId"
604
+ },
605
+ "type": {
606
+ "type": "string",
607
+ "const": "end"
608
+ },
609
+ "seq": {
610
+ "type": "integer",
611
+ "minimum": 0,
612
+ "maximum": 4294967295
613
+ },
614
+ "reason": {
615
+ "$ref": "#/$defs/EndReason"
616
+ }
617
+ },
618
+ "required": [
619
+ "id",
620
+ "type",
621
+ "seq"
622
+ ],
623
+ "additionalProperties": false
624
+ },
625
+ "CancelMsg": {
626
+ "type": "object",
627
+ "properties": {
628
+ "id": {
629
+ "$ref": "#/$defs/RequestId"
630
+ },
631
+ "type": {
632
+ "type": "string",
633
+ "const": "cancel"
634
+ }
635
+ },
636
+ "required": [
637
+ "id",
638
+ "type"
639
+ ],
640
+ "additionalProperties": false
641
+ },
642
+ "CreditMsg": {
643
+ "type": "object",
644
+ "properties": {
645
+ "id": {
646
+ "$ref": "#/$defs/RequestId"
647
+ },
648
+ "type": {
649
+ "type": "string",
650
+ "const": "credit"
651
+ },
652
+ "n": {
653
+ "type": "integer",
654
+ "minimum": 1,
655
+ "maximum": 2147483647
656
+ }
657
+ },
658
+ "required": [
659
+ "id",
660
+ "type",
661
+ "n"
662
+ ],
663
+ "additionalProperties": false
664
+ },
665
+ "EventMsg": {
666
+ "type": "object",
667
+ "properties": {
668
+ "type": {
669
+ "type": "string",
670
+ "const": "event"
671
+ },
672
+ "cap": {
673
+ "type": "string",
674
+ "minLength": 1,
675
+ "maxLength": 32
676
+ },
677
+ "name": {
678
+ "type": "string",
679
+ "minLength": 1,
680
+ "maxLength": 64
681
+ },
682
+ "payload": {},
683
+ "resourceId": {
684
+ "$ref": "#/$defs/ResourceId"
685
+ }
686
+ },
687
+ "required": [
688
+ "type",
689
+ "cap",
690
+ "name",
691
+ "payload"
692
+ ],
693
+ "additionalProperties": false
694
+ },
695
+ "RelayMsg": {
696
+ "oneOf": [
697
+ {
698
+ "type": "object",
699
+ "properties": {
700
+ "type": {
701
+ "type": "string",
702
+ "const": "relay"
703
+ },
704
+ "op": {
705
+ "type": "string",
706
+ "const": "reauth"
707
+ },
708
+ "token": {
709
+ "type": "string",
710
+ "minLength": 16,
711
+ "maxLength": 8192
712
+ }
713
+ },
714
+ "required": [
715
+ "type",
716
+ "op",
717
+ "token"
718
+ ],
719
+ "additionalProperties": false
720
+ }
721
+ ]
722
+ },
723
+ "ClientToCoreMsg": {
724
+ "oneOf": [
725
+ {
726
+ "$ref": "#/$defs/HelloMsg"
727
+ },
728
+ {
729
+ "$ref": "#/$defs/RequestMsg"
730
+ },
731
+ {
732
+ "$ref": "#/$defs/CancelMsg"
733
+ },
734
+ {
735
+ "$ref": "#/$defs/CreditMsg"
736
+ }
737
+ ]
738
+ },
739
+ "CoreToClientMsg": {
740
+ "oneOf": [
741
+ {
742
+ "$ref": "#/$defs/ResponseMsg"
743
+ },
744
+ {
745
+ "$ref": "#/$defs/ErrorMsg"
746
+ },
747
+ {
748
+ "$ref": "#/$defs/StreamMsg"
749
+ },
750
+ {
751
+ "$ref": "#/$defs/EndMsg"
752
+ },
753
+ {
754
+ "$ref": "#/$defs/CreditMsg"
755
+ },
756
+ {
757
+ "$ref": "#/$defs/EventMsg"
758
+ }
759
+ ]
760
+ },
761
+ "OsPermissionName": {
762
+ "type": "string",
763
+ "enum": [
764
+ "full_disk_access",
765
+ "accessibility",
766
+ "screen_recording",
767
+ "microphone",
768
+ "camera",
769
+ "automation",
770
+ "contacts",
771
+ "calendars",
772
+ "photos",
773
+ "location",
774
+ "local_network",
775
+ "bluetooth",
776
+ "notifications"
777
+ ]
778
+ },
779
+ "SysinfoGetParams": {
780
+ "type": "object",
781
+ "properties": {},
782
+ "additionalProperties": false
783
+ },
784
+ "SysinfoGetResult": {
785
+ "type": "object",
786
+ "properties": {
787
+ "device_id": {
788
+ "$ref": "#/$defs/DeviceId"
789
+ },
790
+ "device_name": {
791
+ "type": "string",
792
+ "maxLength": 128
793
+ },
794
+ "hostname": {
795
+ "type": "string",
796
+ "maxLength": 255
797
+ },
798
+ "platform": {
799
+ "type": "string",
800
+ "enum": [
801
+ "darwin",
802
+ "win32",
803
+ "linux"
804
+ ]
805
+ },
806
+ "os_version": {
807
+ "type": "string",
808
+ "maxLength": 64
809
+ },
810
+ "arch": {
811
+ "type": "string",
812
+ "enum": [
813
+ "arm64",
814
+ "x64"
815
+ ]
816
+ },
817
+ "app_version": {
818
+ "type": "string",
819
+ "maxLength": 32
820
+ },
821
+ "protocol_version": {
822
+ "$ref": "#/$defs/ProtocolVersion"
823
+ },
824
+ "user": {
825
+ "type": "object",
826
+ "properties": {
827
+ "username": {
828
+ "type": "string",
829
+ "maxLength": 128
830
+ },
831
+ "shell": {
832
+ "type": "string",
833
+ "maxLength": 512
834
+ }
835
+ },
836
+ "required": [
837
+ "username",
838
+ "shell"
839
+ ],
840
+ "additionalProperties": false
841
+ },
842
+ "paths": {
843
+ "type": "object",
844
+ "properties": {
845
+ "home": {
846
+ "$ref": "#/$defs/AbsPath"
847
+ },
848
+ "desktop": {
849
+ "$ref": "#/$defs/AbsPath"
850
+ },
851
+ "documents": {
852
+ "$ref": "#/$defs/AbsPath"
853
+ },
854
+ "downloads": {
855
+ "$ref": "#/$defs/AbsPath"
856
+ },
857
+ "app_data": {
858
+ "$ref": "#/$defs/AbsPath"
859
+ },
860
+ "temp": {
861
+ "$ref": "#/$defs/AbsPath"
862
+ }
863
+ },
864
+ "required": [
865
+ "home",
866
+ "desktop",
867
+ "documents",
868
+ "downloads",
869
+ "app_data",
870
+ "temp"
871
+ ],
872
+ "additionalProperties": false
873
+ },
874
+ "cpu": {
875
+ "type": "object",
876
+ "properties": {
877
+ "model": {
878
+ "type": "string",
879
+ "maxLength": 128
880
+ },
881
+ "cores": {
882
+ "type": "integer",
883
+ "minimum": 1,
884
+ "maximum": 9007199254740991
885
+ }
886
+ },
887
+ "required": [
888
+ "model",
889
+ "cores"
890
+ ],
891
+ "additionalProperties": false
892
+ },
893
+ "memory": {
894
+ "type": "object",
895
+ "properties": {
896
+ "total_bytes": {
897
+ "type": "integer",
898
+ "minimum": 0,
899
+ "maximum": 9007199254740991
900
+ },
901
+ "free_bytes": {
902
+ "type": "integer",
903
+ "minimum": 0,
904
+ "maximum": 9007199254740991
905
+ }
906
+ },
907
+ "required": [
908
+ "total_bytes",
909
+ "free_bytes"
910
+ ],
911
+ "additionalProperties": false
912
+ },
913
+ "uptime_seconds": {
914
+ "type": "integer",
915
+ "minimum": 0,
916
+ "maximum": 9007199254740991
917
+ },
918
+ "on_battery": {
919
+ "type": [
920
+ "boolean",
921
+ "null"
922
+ ]
923
+ },
924
+ "sleep_prevented": {
925
+ "type": "boolean"
926
+ },
927
+ "permissions": {
928
+ "type": "array",
929
+ "items": {
930
+ "type": "object",
931
+ "properties": {
932
+ "name": {
933
+ "$ref": "#/$defs/OsPermissionName"
934
+ },
935
+ "state": {
936
+ "type": "string",
937
+ "enum": [
938
+ "granted",
939
+ "denied",
940
+ "not_determined",
941
+ "not_applicable"
942
+ ]
943
+ },
944
+ "settings_url": {
945
+ "anyOf": [
946
+ {
947
+ "type": "string",
948
+ "maxLength": 512
949
+ },
950
+ {
951
+ "type": "null"
952
+ }
953
+ ]
954
+ }
955
+ },
956
+ "required": [
957
+ "name",
958
+ "state",
959
+ "settings_url"
960
+ ],
961
+ "additionalProperties": false
962
+ }
963
+ }
964
+ },
965
+ "required": [
966
+ "device_id",
967
+ "device_name",
968
+ "hostname",
969
+ "platform",
970
+ "os_version",
971
+ "arch",
972
+ "app_version",
973
+ "protocol_version",
974
+ "user",
975
+ "paths",
976
+ "cpu",
977
+ "memory",
978
+ "uptime_seconds",
979
+ "on_battery",
980
+ "sleep_prevented",
981
+ "permissions"
982
+ ],
983
+ "additionalProperties": false
984
+ },
985
+ "FsKind": {
986
+ "type": "string",
987
+ "enum": [
988
+ "file",
989
+ "dir",
990
+ "symlink"
991
+ ]
992
+ },
993
+ "FsEntry": {
994
+ "type": "object",
995
+ "properties": {
996
+ "name": {
997
+ "type": "string",
998
+ "maxLength": 1024
999
+ },
1000
+ "path": {
1001
+ "$ref": "#/$defs/AbsPath"
1002
+ },
1003
+ "kind": {
1004
+ "$ref": "#/$defs/FsKind"
1005
+ },
1006
+ "size": {
1007
+ "type": "integer",
1008
+ "minimum": 0,
1009
+ "maximum": 9007199254740991
1010
+ },
1011
+ "mtime": {
1012
+ "type": "number",
1013
+ "minimum": 0
1014
+ },
1015
+ "mode": {
1016
+ "type": "integer",
1017
+ "minimum": 0,
1018
+ "maximum": 4095
1019
+ },
1020
+ "target": {
1021
+ "anyOf": [
1022
+ {
1023
+ "$ref": "#/$defs/AbsPath"
1024
+ },
1025
+ {
1026
+ "type": "null"
1027
+ }
1028
+ ]
1029
+ }
1030
+ },
1031
+ "required": [
1032
+ "name",
1033
+ "path",
1034
+ "kind",
1035
+ "size",
1036
+ "mtime",
1037
+ "mode",
1038
+ "target"
1039
+ ],
1040
+ "additionalProperties": false
1041
+ },
1042
+ "FsListParams": {
1043
+ "type": "object",
1044
+ "properties": {
1045
+ "path": {
1046
+ "$ref": "#/$defs/AbsPath"
1047
+ },
1048
+ "recursive": {
1049
+ "default": false,
1050
+ "type": "boolean"
1051
+ },
1052
+ "depth": {
1053
+ "default": 1,
1054
+ "type": "integer",
1055
+ "minimum": 1,
1056
+ "maximum": 32
1057
+ },
1058
+ "pattern": {
1059
+ "type": "string",
1060
+ "maxLength": 256
1061
+ },
1062
+ "limit": {
1063
+ "default": 1000,
1064
+ "type": "integer",
1065
+ "minimum": 1,
1066
+ "maximum": 5000
1067
+ },
1068
+ "page_token": {
1069
+ "type": "string",
1070
+ "maxLength": 256
1071
+ },
1072
+ "show_hidden": {
1073
+ "default": true,
1074
+ "type": "boolean"
1075
+ },
1076
+ "sort": {
1077
+ "default": "name",
1078
+ "type": "string",
1079
+ "enum": [
1080
+ "name",
1081
+ "mtime",
1082
+ "size",
1083
+ "kind"
1084
+ ]
1085
+ }
1086
+ },
1087
+ "required": [
1088
+ "path"
1089
+ ],
1090
+ "additionalProperties": false
1091
+ },
1092
+ "FsListResult": {
1093
+ "type": "object",
1094
+ "properties": {
1095
+ "entries": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "$ref": "#/$defs/FsEntry"
1099
+ }
1100
+ },
1101
+ "truncated": {
1102
+ "type": "boolean"
1103
+ },
1104
+ "next_page_token": {
1105
+ "anyOf": [
1106
+ {
1107
+ "type": "string",
1108
+ "maxLength": 256
1109
+ },
1110
+ {
1111
+ "type": "null"
1112
+ }
1113
+ ]
1114
+ },
1115
+ "scanned": {
1116
+ "type": "integer",
1117
+ "minimum": 0,
1118
+ "maximum": 9007199254740991
1119
+ }
1120
+ },
1121
+ "required": [
1122
+ "entries",
1123
+ "truncated",
1124
+ "next_page_token",
1125
+ "scanned"
1126
+ ],
1127
+ "additionalProperties": false
1128
+ },
1129
+ "FsStatParams": {
1130
+ "type": "object",
1131
+ "properties": {
1132
+ "path": {
1133
+ "$ref": "#/$defs/AbsPath"
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "path"
1138
+ ],
1139
+ "additionalProperties": false
1140
+ },
1141
+ "FsEncoding": {
1142
+ "type": "string",
1143
+ "enum": [
1144
+ "utf8",
1145
+ "base64"
1146
+ ]
1147
+ },
1148
+ "FsReadParams": {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "path": {
1152
+ "$ref": "#/$defs/AbsPath"
1153
+ },
1154
+ "encoding": {
1155
+ "default": "utf8",
1156
+ "$ref": "#/$defs/FsEncoding"
1157
+ },
1158
+ "offset": {
1159
+ "default": 0,
1160
+ "type": "integer",
1161
+ "minimum": 0,
1162
+ "maximum": 9007199254740991
1163
+ },
1164
+ "limit": {
1165
+ "default": 262144,
1166
+ "type": "integer",
1167
+ "minimum": 1,
1168
+ "maximum": 4194304
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "path"
1173
+ ],
1174
+ "additionalProperties": false
1175
+ },
1176
+ "FsReadResult": {
1177
+ "type": "object",
1178
+ "properties": {
1179
+ "content": {
1180
+ "type": "string"
1181
+ },
1182
+ "encoding": {
1183
+ "$ref": "#/$defs/FsEncoding"
1184
+ },
1185
+ "size": {
1186
+ "type": "integer",
1187
+ "minimum": 0,
1188
+ "maximum": 9007199254740991
1189
+ },
1190
+ "offset": {
1191
+ "type": "integer",
1192
+ "minimum": 0,
1193
+ "maximum": 9007199254740991
1194
+ },
1195
+ "next_offset": {
1196
+ "type": "integer",
1197
+ "minimum": 0,
1198
+ "maximum": 9007199254740991
1199
+ },
1200
+ "truncated": {
1201
+ "type": "boolean"
1202
+ },
1203
+ "mime": {
1204
+ "anyOf": [
1205
+ {
1206
+ "type": "string",
1207
+ "maxLength": 128
1208
+ },
1209
+ {
1210
+ "type": "null"
1211
+ }
1212
+ ]
1213
+ },
1214
+ "mtime_ms": {
1215
+ "type": "integer",
1216
+ "minimum": 0,
1217
+ "maximum": 9007199254740991
1218
+ }
1219
+ },
1220
+ "required": [
1221
+ "content",
1222
+ "encoding",
1223
+ "size",
1224
+ "offset",
1225
+ "next_offset",
1226
+ "truncated",
1227
+ "mime",
1228
+ "mtime_ms"
1229
+ ],
1230
+ "additionalProperties": false
1231
+ },
1232
+ "FsReadStreamParams": {
1233
+ "type": "object",
1234
+ "properties": {
1235
+ "path": {
1236
+ "$ref": "#/$defs/AbsPath"
1237
+ },
1238
+ "offset": {
1239
+ "default": 0,
1240
+ "type": "integer",
1241
+ "minimum": 0,
1242
+ "maximum": 9007199254740991
1243
+ },
1244
+ "length": {
1245
+ "type": "integer",
1246
+ "minimum": 0,
1247
+ "maximum": 9007199254740991
1248
+ },
1249
+ "window_bytes": {
1250
+ "type": "integer",
1251
+ "minimum": 4096,
1252
+ "maximum": 16777216
1253
+ }
1254
+ },
1255
+ "required": [
1256
+ "path"
1257
+ ],
1258
+ "additionalProperties": false
1259
+ },
1260
+ "FsReadStreamResult": {
1261
+ "type": "object",
1262
+ "properties": {
1263
+ "size": {
1264
+ "type": "integer",
1265
+ "minimum": 0,
1266
+ "maximum": 9007199254740991
1267
+ },
1268
+ "mime": {
1269
+ "anyOf": [
1270
+ {
1271
+ "type": "string",
1272
+ "maxLength": 128
1273
+ },
1274
+ {
1275
+ "type": "null"
1276
+ }
1277
+ ]
1278
+ },
1279
+ "mtime_ms": {
1280
+ "type": "integer",
1281
+ "minimum": 0,
1282
+ "maximum": 9007199254740991
1283
+ }
1284
+ },
1285
+ "required": [
1286
+ "size",
1287
+ "mime",
1288
+ "mtime_ms"
1289
+ ],
1290
+ "additionalProperties": false
1291
+ },
1292
+ "FsWriteParams": {
1293
+ "type": "object",
1294
+ "properties": {
1295
+ "path": {
1296
+ "$ref": "#/$defs/AbsPath"
1297
+ },
1298
+ "content": {
1299
+ "type": "string",
1300
+ "maxLength": 5592406
1301
+ },
1302
+ "encoding": {
1303
+ "default": "utf8",
1304
+ "$ref": "#/$defs/FsEncoding"
1305
+ },
1306
+ "mode": {
1307
+ "type": "integer",
1308
+ "minimum": 0,
1309
+ "maximum": 4095
1310
+ },
1311
+ "create_parents": {
1312
+ "default": false,
1313
+ "type": "boolean"
1314
+ },
1315
+ "if_match_mtime_ms": {
1316
+ "type": "integer",
1317
+ "minimum": 0,
1318
+ "maximum": 9007199254740991
1319
+ },
1320
+ "exclusive": {
1321
+ "default": false,
1322
+ "type": "boolean"
1323
+ }
1324
+ },
1325
+ "required": [
1326
+ "path",
1327
+ "content"
1328
+ ],
1329
+ "additionalProperties": false
1330
+ },
1331
+ "FsWriteResult": {
1332
+ "type": "object",
1333
+ "properties": {
1334
+ "path": {
1335
+ "$ref": "#/$defs/AbsPath"
1336
+ },
1337
+ "size": {
1338
+ "type": "integer",
1339
+ "minimum": 0,
1340
+ "maximum": 9007199254740991
1341
+ },
1342
+ "mtime_ms": {
1343
+ "type": "integer",
1344
+ "minimum": 0,
1345
+ "maximum": 9007199254740991
1346
+ },
1347
+ "created": {
1348
+ "type": "boolean"
1349
+ }
1350
+ },
1351
+ "required": [
1352
+ "path",
1353
+ "size",
1354
+ "mtime_ms",
1355
+ "created"
1356
+ ],
1357
+ "additionalProperties": false
1358
+ },
1359
+ "FsMkdirParams": {
1360
+ "type": "object",
1361
+ "properties": {
1362
+ "path": {
1363
+ "$ref": "#/$defs/AbsPath"
1364
+ },
1365
+ "parents": {
1366
+ "default": false,
1367
+ "type": "boolean"
1368
+ }
1369
+ },
1370
+ "required": [
1371
+ "path"
1372
+ ],
1373
+ "additionalProperties": false
1374
+ },
1375
+ "FsMkdirResult": {
1376
+ "type": "object",
1377
+ "properties": {
1378
+ "path": {
1379
+ "$ref": "#/$defs/AbsPath"
1380
+ },
1381
+ "created": {
1382
+ "type": "boolean"
1383
+ }
1384
+ },
1385
+ "required": [
1386
+ "path",
1387
+ "created"
1388
+ ],
1389
+ "additionalProperties": false
1390
+ },
1391
+ "FsMoveParams": {
1392
+ "type": "object",
1393
+ "properties": {
1394
+ "from_path": {
1395
+ "$ref": "#/$defs/AbsPath"
1396
+ },
1397
+ "to_path": {
1398
+ "$ref": "#/$defs/AbsPath"
1399
+ },
1400
+ "overwrite": {
1401
+ "default": false,
1402
+ "type": "boolean"
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "from_path",
1407
+ "to_path"
1408
+ ],
1409
+ "additionalProperties": false
1410
+ },
1411
+ "FsMoveResult": {
1412
+ "type": "object",
1413
+ "properties": {
1414
+ "from_path": {
1415
+ "$ref": "#/$defs/AbsPath"
1416
+ },
1417
+ "to_path": {
1418
+ "$ref": "#/$defs/AbsPath"
1419
+ }
1420
+ },
1421
+ "required": [
1422
+ "from_path",
1423
+ "to_path"
1424
+ ],
1425
+ "additionalProperties": false
1426
+ },
1427
+ "FsDeleteParams": {
1428
+ "type": "object",
1429
+ "properties": {
1430
+ "path": {
1431
+ "$ref": "#/$defs/AbsPath"
1432
+ },
1433
+ "recursive": {
1434
+ "default": false,
1435
+ "type": "boolean"
1436
+ },
1437
+ "to_trash": {
1438
+ "default": true,
1439
+ "type": "boolean"
1440
+ }
1441
+ },
1442
+ "required": [
1443
+ "path"
1444
+ ],
1445
+ "additionalProperties": false
1446
+ },
1447
+ "FsDeleteResult": {
1448
+ "type": "object",
1449
+ "properties": {
1450
+ "deleted": {
1451
+ "type": "boolean",
1452
+ "const": true
1453
+ },
1454
+ "trashed_to": {
1455
+ "anyOf": [
1456
+ {
1457
+ "$ref": "#/$defs/AbsPath"
1458
+ },
1459
+ {
1460
+ "type": "null"
1461
+ }
1462
+ ]
1463
+ }
1464
+ },
1465
+ "required": [
1466
+ "deleted",
1467
+ "trashed_to"
1468
+ ],
1469
+ "additionalProperties": false
1470
+ },
1471
+ "FsWatchParams": {
1472
+ "type": "object",
1473
+ "properties": {
1474
+ "path": {
1475
+ "$ref": "#/$defs/AbsPath"
1476
+ },
1477
+ "recursive": {
1478
+ "default": false,
1479
+ "type": "boolean"
1480
+ },
1481
+ "ignore": {
1482
+ "default": [],
1483
+ "maxItems": 64,
1484
+ "type": "array",
1485
+ "items": {
1486
+ "type": "string",
1487
+ "maxLength": 256
1488
+ }
1489
+ },
1490
+ "debounce_ms": {
1491
+ "default": 50,
1492
+ "type": "integer",
1493
+ "minimum": 0,
1494
+ "maximum": 5000
1495
+ }
1496
+ },
1497
+ "required": [
1498
+ "path"
1499
+ ],
1500
+ "additionalProperties": false
1501
+ },
1502
+ "FsWatchResult": {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "resource_id": {
1506
+ "$ref": "#/$defs/ResourceId"
1507
+ },
1508
+ "path": {
1509
+ "$ref": "#/$defs/AbsPath"
1510
+ }
1511
+ },
1512
+ "required": [
1513
+ "resource_id",
1514
+ "path"
1515
+ ],
1516
+ "additionalProperties": false
1517
+ },
1518
+ "FsPatchEditApplied": {
1519
+ "type": "object",
1520
+ "properties": {
1521
+ "edit_index": {
1522
+ "type": "integer",
1523
+ "minimum": 0,
1524
+ "maximum": 9007199254740991
1525
+ },
1526
+ "mode": {
1527
+ "type": "string",
1528
+ "enum": [
1529
+ "create",
1530
+ "replace",
1531
+ "replace_all"
1532
+ ]
1533
+ },
1534
+ "matches_replaced": {
1535
+ "type": "integer",
1536
+ "minimum": 0,
1537
+ "maximum": 9007199254740991
1538
+ }
1539
+ },
1540
+ "required": [
1541
+ "edit_index",
1542
+ "mode"
1543
+ ],
1544
+ "additionalProperties": false
1545
+ },
1546
+ "FsPatchParams": {
1547
+ "type": "object",
1548
+ "properties": {
1549
+ "path": {
1550
+ "$ref": "#/$defs/AbsPath"
1551
+ },
1552
+ "edits": {
1553
+ "minItems": 1,
1554
+ "maxItems": 256,
1555
+ "type": "array",
1556
+ "items": {
1557
+ "type": "object",
1558
+ "properties": {
1559
+ "old_text": {
1560
+ "type": "string"
1561
+ },
1562
+ "new_text": {
1563
+ "type": "string"
1564
+ },
1565
+ "replace_all": {
1566
+ "default": false,
1567
+ "type": "boolean"
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "old_text",
1572
+ "new_text"
1573
+ ],
1574
+ "additionalProperties": false
1575
+ }
1576
+ },
1577
+ "create_if_missing": {
1578
+ "default": false,
1579
+ "type": "boolean"
1580
+ }
1581
+ },
1582
+ "required": [
1583
+ "path",
1584
+ "edits"
1585
+ ],
1586
+ "additionalProperties": false
1587
+ },
1588
+ "FsPatchResult": {
1589
+ "type": "object",
1590
+ "properties": {
1591
+ "path": {
1592
+ "$ref": "#/$defs/AbsPath"
1593
+ },
1594
+ "applied": {
1595
+ "type": "integer",
1596
+ "minimum": 0,
1597
+ "maximum": 9007199254740991
1598
+ },
1599
+ "size": {
1600
+ "type": "integer",
1601
+ "minimum": 0,
1602
+ "maximum": 9007199254740991
1603
+ },
1604
+ "mtime_ms": {
1605
+ "type": "integer",
1606
+ "minimum": 0,
1607
+ "maximum": 9007199254740991
1608
+ },
1609
+ "edits_applied": {
1610
+ "maxItems": 256,
1611
+ "type": "array",
1612
+ "items": {
1613
+ "$ref": "#/$defs/FsPatchEditApplied"
1614
+ }
1615
+ },
1616
+ "edits_failed": {
1617
+ "maxItems": 256,
1618
+ "type": "array",
1619
+ "items": {
1620
+ "$ref": "#/$defs/FsPatchEditFailure"
1621
+ }
1622
+ }
1623
+ },
1624
+ "required": [
1625
+ "path",
1626
+ "applied",
1627
+ "size",
1628
+ "mtime_ms"
1629
+ ],
1630
+ "additionalProperties": false
1631
+ },
1632
+ "FsSearchPathsParams": {
1633
+ "type": "object",
1634
+ "properties": {
1635
+ "pattern": {
1636
+ "type": "string",
1637
+ "minLength": 1,
1638
+ "maxLength": 512
1639
+ },
1640
+ "cwd": {
1641
+ "$ref": "#/$defs/AbsPath"
1642
+ },
1643
+ "hidden": {
1644
+ "default": false,
1645
+ "type": "boolean"
1646
+ },
1647
+ "max_results": {
1648
+ "default": 100,
1649
+ "type": "integer",
1650
+ "minimum": 1,
1651
+ "maximum": 5000
1652
+ }
1653
+ },
1654
+ "required": [
1655
+ "pattern",
1656
+ "cwd"
1657
+ ],
1658
+ "additionalProperties": false
1659
+ },
1660
+ "FsSearchPathsResult": {
1661
+ "type": "object",
1662
+ "properties": {
1663
+ "paths": {
1664
+ "type": "array",
1665
+ "items": {
1666
+ "type": "string",
1667
+ "minLength": 3,
1668
+ "maxLength": 4096,
1669
+ "pattern": "^\\.\\/[^\\\\\\u0000]+$"
1670
+ }
1671
+ }
1672
+ },
1673
+ "required": [
1674
+ "paths"
1675
+ ],
1676
+ "additionalProperties": false
1677
+ },
1678
+ "FsSearchContentParams": {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "query": {
1682
+ "type": "string",
1683
+ "minLength": 1,
1684
+ "maxLength": 1024
1685
+ },
1686
+ "cwd": {
1687
+ "$ref": "#/$defs/AbsPath"
1688
+ },
1689
+ "regex": {
1690
+ "default": true,
1691
+ "type": "boolean"
1692
+ },
1693
+ "case_sensitive": {
1694
+ "default": false,
1695
+ "type": "boolean"
1696
+ },
1697
+ "include": {
1698
+ "maxItems": 64,
1699
+ "type": "array",
1700
+ "items": {
1701
+ "type": "string",
1702
+ "maxLength": 256
1703
+ }
1704
+ },
1705
+ "exclude": {
1706
+ "maxItems": 64,
1707
+ "type": "array",
1708
+ "items": {
1709
+ "type": "string",
1710
+ "maxLength": 256
1711
+ }
1712
+ },
1713
+ "max_results": {
1714
+ "default": 100,
1715
+ "type": "integer",
1716
+ "minimum": 1,
1717
+ "maximum": 5000
1718
+ }
1719
+ },
1720
+ "required": [
1721
+ "query",
1722
+ "cwd"
1723
+ ],
1724
+ "additionalProperties": false
1725
+ },
1726
+ "FsSearchContentResult": {
1727
+ "type": "object",
1728
+ "properties": {
1729
+ "results": {
1730
+ "type": "array",
1731
+ "items": {
1732
+ "type": "object",
1733
+ "properties": {
1734
+ "path": {
1735
+ "type": "string",
1736
+ "minLength": 1,
1737
+ "maxLength": 4096,
1738
+ "pattern": "^[^/\\\\\\u0000][^\\\\\\u0000]*$"
1739
+ },
1740
+ "lines": {
1741
+ "type": "string"
1742
+ },
1743
+ "line_number": {
1744
+ "type": "integer",
1745
+ "minimum": 1,
1746
+ "maximum": 9007199254740991
1747
+ },
1748
+ "submatches": {
1749
+ "type": "array",
1750
+ "items": {
1751
+ "type": "object",
1752
+ "properties": {
1753
+ "match": {
1754
+ "type": "object",
1755
+ "properties": {
1756
+ "text": {
1757
+ "type": "string"
1758
+ }
1759
+ },
1760
+ "required": [
1761
+ "text"
1762
+ ],
1763
+ "additionalProperties": false
1764
+ },
1765
+ "start": {
1766
+ "type": "integer",
1767
+ "minimum": 0,
1768
+ "maximum": 9007199254740991
1769
+ },
1770
+ "end": {
1771
+ "type": "integer",
1772
+ "minimum": 0,
1773
+ "maximum": 9007199254740991
1774
+ }
1775
+ },
1776
+ "required": [
1777
+ "match",
1778
+ "start",
1779
+ "end"
1780
+ ],
1781
+ "additionalProperties": false
1782
+ }
1783
+ }
1784
+ },
1785
+ "required": [
1786
+ "path",
1787
+ "lines",
1788
+ "line_number",
1789
+ "submatches"
1790
+ ],
1791
+ "additionalProperties": false
1792
+ }
1793
+ }
1794
+ },
1795
+ "required": [
1796
+ "results"
1797
+ ],
1798
+ "additionalProperties": false
1799
+ },
1800
+ "FsChange": {
1801
+ "type": "object",
1802
+ "properties": {
1803
+ "type": {
1804
+ "type": "string",
1805
+ "enum": [
1806
+ "created",
1807
+ "modified",
1808
+ "deleted",
1809
+ "moved"
1810
+ ]
1811
+ },
1812
+ "path": {
1813
+ "$ref": "#/$defs/AbsPath"
1814
+ },
1815
+ "to_path": {
1816
+ "$ref": "#/$defs/AbsPath"
1817
+ },
1818
+ "kind": {
1819
+ "type": "string",
1820
+ "enum": [
1821
+ "file",
1822
+ "dir",
1823
+ "symlink",
1824
+ "unknown"
1825
+ ]
1826
+ }
1827
+ },
1828
+ "required": [
1829
+ "type",
1830
+ "path",
1831
+ "kind"
1832
+ ],
1833
+ "additionalProperties": false
1834
+ },
1835
+ "FsChangedEvent": {
1836
+ "type": "object",
1837
+ "properties": {
1838
+ "changes": {
1839
+ "minItems": 1,
1840
+ "maxItems": 1000,
1841
+ "type": "array",
1842
+ "items": {
1843
+ "$ref": "#/$defs/FsChange"
1844
+ }
1845
+ },
1846
+ "overflow": {
1847
+ "type": "boolean"
1848
+ }
1849
+ },
1850
+ "required": [
1851
+ "changes",
1852
+ "overflow"
1853
+ ],
1854
+ "additionalProperties": false
1855
+ },
1856
+ "Signal": {
1857
+ "type": "string",
1858
+ "enum": [
1859
+ "SIGINT",
1860
+ "SIGTERM",
1861
+ "SIGKILL",
1862
+ "SIGHUP",
1863
+ "SIGQUIT",
1864
+ "SIGTSTP",
1865
+ "SIGCONT",
1866
+ "SIGUSR1",
1867
+ "SIGUSR2"
1868
+ ]
1869
+ },
1870
+ "ExecPtyStartParams": {
1871
+ "type": "object",
1872
+ "properties": {
1873
+ "cols": {
1874
+ "type": "integer",
1875
+ "minimum": 2,
1876
+ "maximum": 1000
1877
+ },
1878
+ "rows": {
1879
+ "type": "integer",
1880
+ "minimum": 1,
1881
+ "maximum": 500
1882
+ },
1883
+ "cwd": {
1884
+ "$ref": "#/$defs/AbsPath"
1885
+ },
1886
+ "shell": {
1887
+ "type": "string",
1888
+ "maxLength": 512
1889
+ },
1890
+ "args": {
1891
+ "maxItems": 64,
1892
+ "type": "array",
1893
+ "items": {
1894
+ "type": "string",
1895
+ "maxLength": 4096
1896
+ }
1897
+ },
1898
+ "env": {
1899
+ "type": "object",
1900
+ "propertyNames": {
1901
+ "type": "string",
1902
+ "maxLength": 128,
1903
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
1904
+ },
1905
+ "additionalProperties": {
1906
+ "type": "string",
1907
+ "maxLength": 32768
1908
+ }
1909
+ },
1910
+ "name": {
1911
+ "type": "string",
1912
+ "maxLength": 64
1913
+ },
1914
+ "window_bytes": {
1915
+ "type": "integer",
1916
+ "minimum": 4096,
1917
+ "maximum": 16777216
1918
+ }
1919
+ },
1920
+ "required": [
1921
+ "cols",
1922
+ "rows"
1923
+ ],
1924
+ "additionalProperties": false
1925
+ },
1926
+ "PtyInfo": {
1927
+ "type": "object",
1928
+ "properties": {
1929
+ "resource_id": {
1930
+ "$ref": "#/$defs/ResourceId"
1931
+ },
1932
+ "pid": {
1933
+ "type": "integer",
1934
+ "minimum": 1,
1935
+ "maximum": 9007199254740991
1936
+ },
1937
+ "shell": {
1938
+ "type": "string",
1939
+ "maxLength": 512
1940
+ },
1941
+ "cwd": {
1942
+ "$ref": "#/$defs/AbsPath"
1943
+ },
1944
+ "title": {
1945
+ "type": "string",
1946
+ "maxLength": 256
1947
+ },
1948
+ "name": {
1949
+ "anyOf": [
1950
+ {
1951
+ "type": "string",
1952
+ "maxLength": 64
1953
+ },
1954
+ {
1955
+ "type": "null"
1956
+ }
1957
+ ]
1958
+ },
1959
+ "cols": {
1960
+ "type": "integer",
1961
+ "minimum": 2,
1962
+ "maximum": 1000
1963
+ },
1964
+ "rows": {
1965
+ "type": "integer",
1966
+ "minimum": 1,
1967
+ "maximum": 500
1968
+ },
1969
+ "state": {
1970
+ "type": "string",
1971
+ "enum": [
1972
+ "running",
1973
+ "exited"
1974
+ ]
1975
+ },
1976
+ "exit_code": {
1977
+ "anyOf": [
1978
+ {
1979
+ "type": "integer",
1980
+ "minimum": -9007199254740991,
1981
+ "maximum": 9007199254740991
1982
+ },
1983
+ {
1984
+ "type": "null"
1985
+ }
1986
+ ]
1987
+ },
1988
+ "exit_signal": {
1989
+ "anyOf": [
1990
+ {
1991
+ "$ref": "#/$defs/Signal"
1992
+ },
1993
+ {
1994
+ "type": "null"
1995
+ }
1996
+ ]
1997
+ },
1998
+ "last_seq": {
1999
+ "type": "integer",
2000
+ "minimum": 0,
2001
+ "maximum": 4294967295
2002
+ },
2003
+ "created_at_ms": {
2004
+ "type": "integer",
2005
+ "minimum": 0,
2006
+ "maximum": 9007199254740991
2007
+ },
2008
+ "controller_client_id": {
2009
+ "anyOf": [
2010
+ {
2011
+ "type": "string",
2012
+ "maxLength": 64
2013
+ },
2014
+ {
2015
+ "type": "null"
2016
+ }
2017
+ ]
2018
+ },
2019
+ "attached_clients": {
2020
+ "type": "integer",
2021
+ "minimum": 0,
2022
+ "maximum": 9007199254740991
2023
+ },
2024
+ "orphan_expires_at_ms": {
2025
+ "anyOf": [
2026
+ {
2027
+ "type": "integer",
2028
+ "minimum": 0,
2029
+ "maximum": 9007199254740991
2030
+ },
2031
+ {
2032
+ "type": "null"
2033
+ }
2034
+ ]
2035
+ }
2036
+ },
2037
+ "required": [
2038
+ "resource_id",
2039
+ "pid",
2040
+ "shell",
2041
+ "cwd",
2042
+ "title",
2043
+ "name",
2044
+ "cols",
2045
+ "rows",
2046
+ "state",
2047
+ "exit_code",
2048
+ "exit_signal",
2049
+ "last_seq",
2050
+ "created_at_ms",
2051
+ "controller_client_id",
2052
+ "attached_clients",
2053
+ "orphan_expires_at_ms"
2054
+ ],
2055
+ "additionalProperties": false
2056
+ },
2057
+ "ExecPtyWriteParams": {
2058
+ "type": "object",
2059
+ "properties": {
2060
+ "resource_id": {
2061
+ "$ref": "#/$defs/ResourceId"
2062
+ },
2063
+ "data": {
2064
+ "type": "string",
2065
+ "minLength": 1,
2066
+ "maxLength": 65536
2067
+ }
2068
+ },
2069
+ "required": [
2070
+ "resource_id",
2071
+ "data"
2072
+ ],
2073
+ "additionalProperties": false
2074
+ },
2075
+ "ExecPtyWriteResult": {
2076
+ "type": "object",
2077
+ "properties": {
2078
+ "written": {
2079
+ "type": "integer",
2080
+ "minimum": 0,
2081
+ "maximum": 9007199254740991
2082
+ }
2083
+ },
2084
+ "required": [
2085
+ "written"
2086
+ ],
2087
+ "additionalProperties": false
2088
+ },
2089
+ "ExecPtyResizeParams": {
2090
+ "type": "object",
2091
+ "properties": {
2092
+ "resource_id": {
2093
+ "$ref": "#/$defs/ResourceId"
2094
+ },
2095
+ "cols": {
2096
+ "type": "integer",
2097
+ "minimum": 2,
2098
+ "maximum": 1000
2099
+ },
2100
+ "rows": {
2101
+ "type": "integer",
2102
+ "minimum": 1,
2103
+ "maximum": 500
2104
+ }
2105
+ },
2106
+ "required": [
2107
+ "resource_id",
2108
+ "cols",
2109
+ "rows"
2110
+ ],
2111
+ "additionalProperties": false
2112
+ },
2113
+ "ExecPtyResizeResult": {
2114
+ "type": "object",
2115
+ "properties": {
2116
+ "cols": {
2117
+ "type": "integer",
2118
+ "minimum": 2,
2119
+ "maximum": 1000
2120
+ },
2121
+ "rows": {
2122
+ "type": "integer",
2123
+ "minimum": 1,
2124
+ "maximum": 500
2125
+ }
2126
+ },
2127
+ "required": [
2128
+ "cols",
2129
+ "rows"
2130
+ ],
2131
+ "additionalProperties": false
2132
+ },
2133
+ "ExecPtySignalParams": {
2134
+ "type": "object",
2135
+ "properties": {
2136
+ "resource_id": {
2137
+ "$ref": "#/$defs/ResourceId"
2138
+ },
2139
+ "signal": {
2140
+ "$ref": "#/$defs/Signal"
2141
+ }
2142
+ },
2143
+ "required": [
2144
+ "resource_id",
2145
+ "signal"
2146
+ ],
2147
+ "additionalProperties": false
2148
+ },
2149
+ "ExecPtySignalResult": {
2150
+ "type": "object",
2151
+ "properties": {
2152
+ "delivered": {
2153
+ "type": "boolean"
2154
+ }
2155
+ },
2156
+ "required": [
2157
+ "delivered"
2158
+ ],
2159
+ "additionalProperties": false
2160
+ },
2161
+ "ExecPtyKillParams": {
2162
+ "type": "object",
2163
+ "properties": {
2164
+ "resource_id": {
2165
+ "$ref": "#/$defs/ResourceId"
2166
+ },
2167
+ "grace_ms": {
2168
+ "default": 2000,
2169
+ "type": "integer",
2170
+ "minimum": 0,
2171
+ "maximum": 30000
2172
+ }
2173
+ },
2174
+ "required": [
2175
+ "resource_id"
2176
+ ],
2177
+ "additionalProperties": false
2178
+ },
2179
+ "ExecPtyKillResult": {
2180
+ "type": "object",
2181
+ "properties": {
2182
+ "exit_code": {
2183
+ "anyOf": [
2184
+ {
2185
+ "type": "integer",
2186
+ "minimum": -9007199254740991,
2187
+ "maximum": 9007199254740991
2188
+ },
2189
+ {
2190
+ "type": "null"
2191
+ }
2192
+ ]
2193
+ },
2194
+ "exit_signal": {
2195
+ "anyOf": [
2196
+ {
2197
+ "$ref": "#/$defs/Signal"
2198
+ },
2199
+ {
2200
+ "type": "null"
2201
+ }
2202
+ ]
2203
+ }
2204
+ },
2205
+ "required": [
2206
+ "exit_code",
2207
+ "exit_signal"
2208
+ ],
2209
+ "additionalProperties": false
2210
+ },
2211
+ "ExecListParams": {
2212
+ "type": "object",
2213
+ "properties": {},
2214
+ "additionalProperties": false
2215
+ },
2216
+ "ExecListResult": {
2217
+ "type": "object",
2218
+ "properties": {
2219
+ "sessions": {
2220
+ "type": "array",
2221
+ "items": {
2222
+ "$ref": "#/$defs/PtyInfo"
2223
+ }
2224
+ }
2225
+ },
2226
+ "required": [
2227
+ "sessions"
2228
+ ],
2229
+ "additionalProperties": false
2230
+ },
2231
+ "ExecRunParams": {
2232
+ "type": "object",
2233
+ "properties": {
2234
+ "command": {
2235
+ "type": "string",
2236
+ "minLength": 1,
2237
+ "maxLength": 131072
2238
+ },
2239
+ "cwd": {
2240
+ "$ref": "#/$defs/AbsPath"
2241
+ },
2242
+ "cwd_key": {
2243
+ "type": "string",
2244
+ "maxLength": 128
2245
+ },
2246
+ "env": {
2247
+ "type": "object",
2248
+ "propertyNames": {
2249
+ "type": "string",
2250
+ "maxLength": 128,
2251
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
2252
+ },
2253
+ "additionalProperties": {
2254
+ "type": "string",
2255
+ "maxLength": 32768
2256
+ }
2257
+ },
2258
+ "stdin": {
2259
+ "type": "string",
2260
+ "maxLength": 1048576
2261
+ },
2262
+ "timeout": {
2263
+ "default": 60,
2264
+ "type": "integer",
2265
+ "minimum": 1,
2266
+ "maximum": 3600
2267
+ },
2268
+ "max_output_bytes": {
2269
+ "default": 1048576,
2270
+ "type": "integer",
2271
+ "minimum": 1024,
2272
+ "maximum": 8388608
2273
+ }
2274
+ },
2275
+ "required": [
2276
+ "command"
2277
+ ],
2278
+ "additionalProperties": false
2279
+ },
2280
+ "ExecRunResult": {
2281
+ "type": "object",
2282
+ "properties": {
2283
+ "exit_code": {
2284
+ "type": "integer",
2285
+ "minimum": -9007199254740991,
2286
+ "maximum": 9007199254740991
2287
+ },
2288
+ "stdout": {
2289
+ "type": "string"
2290
+ },
2291
+ "stderr": {
2292
+ "type": "string"
2293
+ },
2294
+ "cwd": {
2295
+ "$ref": "#/$defs/AbsPath"
2296
+ },
2297
+ "duration_ms": {
2298
+ "type": "integer",
2299
+ "minimum": 0,
2300
+ "maximum": 9007199254740991
2301
+ },
2302
+ "timed_out": {
2303
+ "type": "boolean"
2304
+ },
2305
+ "output_truncated": {
2306
+ "type": "boolean"
2307
+ }
2308
+ },
2309
+ "required": [
2310
+ "exit_code",
2311
+ "stdout",
2312
+ "stderr",
2313
+ "cwd",
2314
+ "duration_ms",
2315
+ "timed_out",
2316
+ "output_truncated"
2317
+ ],
2318
+ "additionalProperties": false
2319
+ },
2320
+ "ExecExitedEvent": {
2321
+ "type": "object",
2322
+ "properties": {
2323
+ "exit_code": {
2324
+ "anyOf": [
2325
+ {
2326
+ "type": "integer",
2327
+ "minimum": -9007199254740991,
2328
+ "maximum": 9007199254740991
2329
+ },
2330
+ {
2331
+ "type": "null"
2332
+ }
2333
+ ]
2334
+ },
2335
+ "exit_signal": {
2336
+ "anyOf": [
2337
+ {
2338
+ "$ref": "#/$defs/Signal"
2339
+ },
2340
+ {
2341
+ "type": "null"
2342
+ }
2343
+ ]
2344
+ }
2345
+ },
2346
+ "required": [
2347
+ "exit_code",
2348
+ "exit_signal"
2349
+ ],
2350
+ "additionalProperties": false
2351
+ },
2352
+ "ExecTitleEvent": {
2353
+ "type": "object",
2354
+ "properties": {
2355
+ "title": {
2356
+ "type": "string",
2357
+ "maxLength": 256
2358
+ }
2359
+ },
2360
+ "required": [
2361
+ "title"
2362
+ ],
2363
+ "additionalProperties": false
2364
+ },
2365
+ "ExecCwdEvent": {
2366
+ "type": "object",
2367
+ "properties": {
2368
+ "cwd": {
2369
+ "$ref": "#/$defs/AbsPath"
2370
+ }
2371
+ },
2372
+ "required": [
2373
+ "cwd"
2374
+ ],
2375
+ "additionalProperties": false
2376
+ },
2377
+ "SessionAttachParams": {
2378
+ "type": "object",
2379
+ "properties": {
2380
+ "resource_id": {
2381
+ "$ref": "#/$defs/ResourceId"
2382
+ },
2383
+ "mode": {
2384
+ "default": "control",
2385
+ "type": "string",
2386
+ "enum": [
2387
+ "control",
2388
+ "read_only"
2389
+ ]
2390
+ },
2391
+ "since_seq": {
2392
+ "type": "integer",
2393
+ "minimum": 0,
2394
+ "maximum": 4294967295
2395
+ },
2396
+ "window_bytes": {
2397
+ "type": "integer",
2398
+ "minimum": 4096,
2399
+ "maximum": 16777216
2400
+ }
2401
+ },
2402
+ "required": [
2403
+ "resource_id"
2404
+ ],
2405
+ "additionalProperties": false
2406
+ },
2407
+ "ResourceInfo": {
2408
+ "oneOf": [
2409
+ {
2410
+ "type": "object",
2411
+ "properties": {
2412
+ "kind": {
2413
+ "type": "string",
2414
+ "const": "pty"
2415
+ },
2416
+ "pty": {
2417
+ "$ref": "#/$defs/PtyInfo"
2418
+ }
2419
+ },
2420
+ "required": [
2421
+ "kind",
2422
+ "pty"
2423
+ ],
2424
+ "additionalProperties": false
2425
+ },
2426
+ {
2427
+ "type": "object",
2428
+ "properties": {
2429
+ "kind": {
2430
+ "type": "string",
2431
+ "const": "watch"
2432
+ },
2433
+ "resource_id": {
2434
+ "$ref": "#/$defs/ResourceId"
2435
+ },
2436
+ "path": {
2437
+ "$ref": "#/$defs/AbsPath"
2438
+ },
2439
+ "orphan_expires_at_ms": {
2440
+ "anyOf": [
2441
+ {
2442
+ "type": "integer",
2443
+ "minimum": 0,
2444
+ "maximum": 9007199254740991
2445
+ },
2446
+ {
2447
+ "type": "null"
2448
+ }
2449
+ ]
2450
+ }
2451
+ },
2452
+ "required": [
2453
+ "kind",
2454
+ "resource_id",
2455
+ "path",
2456
+ "orphan_expires_at_ms"
2457
+ ],
2458
+ "additionalProperties": false
2459
+ }
2460
+ ]
2461
+ },
2462
+ "SessionDetachParams": {
2463
+ "type": "object",
2464
+ "properties": {
2465
+ "resource_id": {
2466
+ "$ref": "#/$defs/ResourceId"
2467
+ }
2468
+ },
2469
+ "required": [
2470
+ "resource_id"
2471
+ ],
2472
+ "additionalProperties": false
2473
+ },
2474
+ "SessionDetachResult": {
2475
+ "type": "object",
2476
+ "properties": {
2477
+ "orphan_expires_at_ms": {
2478
+ "anyOf": [
2479
+ {
2480
+ "type": "integer",
2481
+ "minimum": 0,
2482
+ "maximum": 9007199254740991
2483
+ },
2484
+ {
2485
+ "type": "null"
2486
+ }
2487
+ ]
2488
+ }
2489
+ },
2490
+ "required": [
2491
+ "orphan_expires_at_ms"
2492
+ ],
2493
+ "additionalProperties": false
2494
+ },
2495
+ "SessionReleaseParams": {
2496
+ "type": "object",
2497
+ "properties": {
2498
+ "resource_id": {
2499
+ "$ref": "#/$defs/ResourceId"
2500
+ }
2501
+ },
2502
+ "required": [
2503
+ "resource_id"
2504
+ ],
2505
+ "additionalProperties": false
2506
+ },
2507
+ "SessionReleaseResult": {
2508
+ "type": "object",
2509
+ "properties": {
2510
+ "released": {
2511
+ "type": "boolean",
2512
+ "const": true
2513
+ }
2514
+ },
2515
+ "required": [
2516
+ "released"
2517
+ ],
2518
+ "additionalProperties": false
2519
+ },
2520
+ "SessionListParams": {
2521
+ "type": "object",
2522
+ "properties": {},
2523
+ "additionalProperties": false
2524
+ },
2525
+ "SessionListResult": {
2526
+ "type": "object",
2527
+ "properties": {
2528
+ "resources": {
2529
+ "type": "array",
2530
+ "items": {
2531
+ "$ref": "#/$defs/ResourceInfo"
2532
+ }
2533
+ }
2534
+ },
2535
+ "required": [
2536
+ "resources"
2537
+ ],
2538
+ "additionalProperties": false
2539
+ },
2540
+ "SessionControlChangedEvent": {
2541
+ "type": "object",
2542
+ "properties": {
2543
+ "controller_client_id": {
2544
+ "anyOf": [
2545
+ {
2546
+ "type": "string",
2547
+ "maxLength": 64
2548
+ },
2549
+ {
2550
+ "type": "null"
2551
+ }
2552
+ ]
2553
+ },
2554
+ "your_mode": {
2555
+ "type": "string",
2556
+ "enum": [
2557
+ "control",
2558
+ "read_only"
2559
+ ]
2560
+ }
2561
+ },
2562
+ "required": [
2563
+ "controller_client_id",
2564
+ "your_mode"
2565
+ ],
2566
+ "additionalProperties": false
2567
+ },
2568
+ "TranscriptionModelId": {
2569
+ "type": "string",
2570
+ "enum": [
2571
+ "tiny",
2572
+ "base",
2573
+ "small",
2574
+ "large-v3-turbo"
2575
+ ]
2576
+ },
2577
+ "MlRuntimeState": {
2578
+ "type": "string",
2579
+ "enum": [
2580
+ "not_installed",
2581
+ "installing",
2582
+ "installed",
2583
+ "failed"
2584
+ ]
2585
+ },
2586
+ "MlInstallPhase": {
2587
+ "type": "string",
2588
+ "enum": [
2589
+ "packages",
2590
+ "model",
2591
+ "verifying"
2592
+ ]
2593
+ },
2594
+ "MlInstallProgress": {
2595
+ "type": "object",
2596
+ "properties": {
2597
+ "phase": {
2598
+ "$ref": "#/$defs/MlInstallPhase"
2599
+ },
2600
+ "item": {
2601
+ "type": "string",
2602
+ "maxLength": 200
2603
+ },
2604
+ "bytes_done": {
2605
+ "type": "integer",
2606
+ "minimum": 0,
2607
+ "maximum": 9007199254740991
2608
+ },
2609
+ "bytes_total": {
2610
+ "anyOf": [
2611
+ {
2612
+ "type": "integer",
2613
+ "minimum": 0,
2614
+ "maximum": 9007199254740991
2615
+ },
2616
+ {
2617
+ "type": "null"
2618
+ }
2619
+ ]
2620
+ }
2621
+ },
2622
+ "required": [
2623
+ "phase",
2624
+ "item",
2625
+ "bytes_done",
2626
+ "bytes_total"
2627
+ ],
2628
+ "additionalProperties": false
2629
+ },
2630
+ "TranscriptionModelInfo": {
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "id": {
2634
+ "$ref": "#/$defs/TranscriptionModelId"
2635
+ },
2636
+ "size_bytes": {
2637
+ "type": "integer",
2638
+ "minimum": 0,
2639
+ "maximum": 9007199254740991
2640
+ },
2641
+ "multilingual": {
2642
+ "type": "boolean"
2643
+ },
2644
+ "installed": {
2645
+ "type": "boolean"
2646
+ }
2647
+ },
2648
+ "required": [
2649
+ "id",
2650
+ "size_bytes",
2651
+ "multilingual",
2652
+ "installed"
2653
+ ],
2654
+ "additionalProperties": false
2655
+ },
2656
+ "TranscriptSegment": {
2657
+ "type": "object",
2658
+ "properties": {
2659
+ "start_s": {
2660
+ "type": "number",
2661
+ "minimum": 0
2662
+ },
2663
+ "end_s": {
2664
+ "type": "number",
2665
+ "minimum": 0
2666
+ },
2667
+ "text": {
2668
+ "type": "string",
2669
+ "maxLength": 4000
2670
+ }
2671
+ },
2672
+ "required": [
2673
+ "start_s",
2674
+ "end_s",
2675
+ "text"
2676
+ ],
2677
+ "additionalProperties": false
2678
+ },
2679
+ "MlStatusParams": {
2680
+ "type": "object",
2681
+ "properties": {},
2682
+ "additionalProperties": false
2683
+ },
2684
+ "MlStatusResult": {
2685
+ "type": "object",
2686
+ "properties": {
2687
+ "runtime": {
2688
+ "$ref": "#/$defs/MlRuntimeState"
2689
+ },
2690
+ "install": {
2691
+ "anyOf": [
2692
+ {
2693
+ "$ref": "#/$defs/MlInstallProgress"
2694
+ },
2695
+ {
2696
+ "type": "null"
2697
+ }
2698
+ ]
2699
+ },
2700
+ "error": {
2701
+ "anyOf": [
2702
+ {
2703
+ "type": "string",
2704
+ "maxLength": 300
2705
+ },
2706
+ {
2707
+ "type": "null"
2708
+ }
2709
+ ]
2710
+ },
2711
+ "accelerator": {
2712
+ "type": "string",
2713
+ "enum": [
2714
+ "cpu",
2715
+ "cuda"
2716
+ ]
2717
+ },
2718
+ "models": {
2719
+ "maxItems": 16,
2720
+ "type": "array",
2721
+ "items": {
2722
+ "$ref": "#/$defs/TranscriptionModelInfo"
2723
+ }
2724
+ },
2725
+ "default_model": {
2726
+ "$ref": "#/$defs/TranscriptionModelId"
2727
+ }
2728
+ },
2729
+ "required": [
2730
+ "runtime",
2731
+ "install",
2732
+ "error",
2733
+ "accelerator",
2734
+ "models",
2735
+ "default_model"
2736
+ ],
2737
+ "additionalProperties": false
2738
+ },
2739
+ "ModelsInstallParams": {
2740
+ "type": "object",
2741
+ "properties": {
2742
+ "model": {
2743
+ "$ref": "#/$defs/TranscriptionModelId"
2744
+ }
2745
+ },
2746
+ "additionalProperties": false
2747
+ },
2748
+ "ModelsInstallResult": {
2749
+ "type": "object",
2750
+ "properties": {
2751
+ "model": {
2752
+ "$ref": "#/$defs/TranscriptionModelId"
2753
+ },
2754
+ "elapsed_ms": {
2755
+ "type": "integer",
2756
+ "minimum": 0,
2757
+ "maximum": 9007199254740991
2758
+ }
2759
+ },
2760
+ "required": [
2761
+ "model",
2762
+ "elapsed_ms"
2763
+ ],
2764
+ "additionalProperties": false
2765
+ },
2766
+ "ModelsTranscribeParams": {
2767
+ "type": "object",
2768
+ "properties": {
2769
+ "path": {
2770
+ "$ref": "#/$defs/AbsPath"
2771
+ },
2772
+ "model": {
2773
+ "$ref": "#/$defs/TranscriptionModelId"
2774
+ },
2775
+ "language": {
2776
+ "type": "string",
2777
+ "pattern": "^[a-z]{2,3}$"
2778
+ },
2779
+ "task": {
2780
+ "default": "transcribe",
2781
+ "type": "string",
2782
+ "enum": [
2783
+ "transcribe",
2784
+ "translate"
2785
+ ]
2786
+ }
2787
+ },
2788
+ "required": [
2789
+ "path"
2790
+ ],
2791
+ "additionalProperties": false
2792
+ },
2793
+ "ModelsTranscribeResult": {
2794
+ "type": "object",
2795
+ "properties": {
2796
+ "text": {
2797
+ "type": "string",
2798
+ "maxLength": 400000
2799
+ },
2800
+ "language": {
2801
+ "type": "string",
2802
+ "maxLength": 8
2803
+ },
2804
+ "language_probability": {
2805
+ "type": "number",
2806
+ "minimum": 0,
2807
+ "maximum": 1
2808
+ },
2809
+ "duration_s": {
2810
+ "type": "number",
2811
+ "minimum": 0
2812
+ },
2813
+ "model": {
2814
+ "$ref": "#/$defs/TranscriptionModelId"
2815
+ },
2816
+ "segments": {
2817
+ "maxItems": 20000,
2818
+ "type": "array",
2819
+ "items": {
2820
+ "$ref": "#/$defs/TranscriptSegment"
2821
+ }
2822
+ },
2823
+ "elapsed_ms": {
2824
+ "type": "integer",
2825
+ "minimum": 0,
2826
+ "maximum": 9007199254740991
2827
+ }
2828
+ },
2829
+ "required": [
2830
+ "text",
2831
+ "language",
2832
+ "language_probability",
2833
+ "duration_s",
2834
+ "model",
2835
+ "segments",
2836
+ "elapsed_ms"
2837
+ ],
2838
+ "additionalProperties": false
2839
+ },
2840
+ "MlProgress": {
2841
+ "type": "object",
2842
+ "properties": {
2843
+ "kind": {
2844
+ "type": "string",
2845
+ "enum": [
2846
+ "install",
2847
+ "transcribe"
2848
+ ]
2849
+ },
2850
+ "fraction": {
2851
+ "anyOf": [
2852
+ {
2853
+ "type": "number",
2854
+ "minimum": 0,
2855
+ "maximum": 1
2856
+ },
2857
+ {
2858
+ "type": "null"
2859
+ }
2860
+ ]
2861
+ },
2862
+ "install": {
2863
+ "anyOf": [
2864
+ {
2865
+ "$ref": "#/$defs/MlInstallProgress"
2866
+ },
2867
+ {
2868
+ "type": "null"
2869
+ }
2870
+ ]
2871
+ },
2872
+ "segment": {
2873
+ "anyOf": [
2874
+ {
2875
+ "$ref": "#/$defs/TranscriptSegment"
2876
+ },
2877
+ {
2878
+ "type": "null"
2879
+ }
2880
+ ]
2881
+ }
2882
+ },
2883
+ "required": [
2884
+ "kind",
2885
+ "fraction",
2886
+ "install",
2887
+ "segment"
2888
+ ],
2889
+ "additionalProperties": false
2890
+ },
2891
+ "MlServiceState": {
2892
+ "type": "string",
2893
+ "enum": [
2894
+ "starting",
2895
+ "ready",
2896
+ "restarting",
2897
+ "failed",
2898
+ "stopped"
2899
+ ]
2900
+ },
2901
+ "MlServiceStatus": {
2902
+ "type": "object",
2903
+ "properties": {
2904
+ "state": {
2905
+ "$ref": "#/$defs/MlServiceState"
2906
+ },
2907
+ "pid": {
2908
+ "anyOf": [
2909
+ {
2910
+ "type": "integer",
2911
+ "minimum": 0,
2912
+ "maximum": 9007199254740991
2913
+ },
2914
+ {
2915
+ "type": "null"
2916
+ }
2917
+ ]
2918
+ },
2919
+ "restarts": {
2920
+ "type": "integer",
2921
+ "minimum": 0,
2922
+ "maximum": 9007199254740991
2923
+ },
2924
+ "python": {
2925
+ "anyOf": [
2926
+ {
2927
+ "type": "string",
2928
+ "maxLength": 32
2929
+ },
2930
+ {
2931
+ "type": "null"
2932
+ }
2933
+ ]
2934
+ },
2935
+ "error": {
2936
+ "anyOf": [
2937
+ {
2938
+ "type": "string",
2939
+ "maxLength": 300
2940
+ },
2941
+ {
2942
+ "type": "null"
2943
+ }
2944
+ ]
2945
+ }
2946
+ },
2947
+ "required": [
2948
+ "state",
2949
+ "pid",
2950
+ "restarts",
2951
+ "python",
2952
+ "error"
2953
+ ],
2954
+ "additionalProperties": false
2955
+ },
2956
+ "ModelsStatusParams": {
2957
+ "type": "object",
2958
+ "properties": {},
2959
+ "additionalProperties": false
2960
+ },
2961
+ "ModelsStatusResult": {
2962
+ "type": "object",
2963
+ "properties": {
2964
+ "service": {
2965
+ "$ref": "#/$defs/MlServiceStatus"
2966
+ },
2967
+ "transcription": {
2968
+ "anyOf": [
2969
+ {
2970
+ "$ref": "#/$defs/MlStatusResult"
2971
+ },
2972
+ {
2973
+ "type": "null"
2974
+ }
2975
+ ]
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "service",
2980
+ "transcription"
2981
+ ],
2982
+ "additionalProperties": false
2983
+ },
2984
+ "ModelsProgressEvent": {
2985
+ "type": "object",
2986
+ "properties": {
2987
+ "request_id": {
2988
+ "$ref": "#/$defs/RequestId"
2989
+ },
2990
+ "progress": {
2991
+ "$ref": "#/$defs/MlProgress"
2992
+ }
2993
+ },
2994
+ "required": [
2995
+ "request_id",
2996
+ "progress"
2997
+ ],
2998
+ "additionalProperties": false
2999
+ },
3000
+ "ServiceName": {
3001
+ "type": "string",
3002
+ "enum": [
3003
+ "ml"
3004
+ ]
3005
+ },
3006
+ "ContractHash": {
3007
+ "type": "string",
3008
+ "pattern": "^[0-9a-f]{64}$"
3009
+ },
3010
+ "ServiceToken": {
3011
+ "type": "string",
3012
+ "pattern": "^[A-Za-z0-9_-]{43}$"
3013
+ },
3014
+ "ServiceHello": {
3015
+ "type": "object",
3016
+ "properties": {
3017
+ "type": {
3018
+ "type": "string",
3019
+ "const": "hello"
3020
+ },
3021
+ "token": {
3022
+ "$ref": "#/$defs/ServiceToken"
3023
+ },
3024
+ "contract": {
3025
+ "$ref": "#/$defs/ContractHash"
3026
+ }
3027
+ },
3028
+ "required": [
3029
+ "type",
3030
+ "token",
3031
+ "contract"
3032
+ ],
3033
+ "additionalProperties": false
3034
+ },
3035
+ "ServiceWelcome": {
3036
+ "type": "object",
3037
+ "properties": {
3038
+ "type": {
3039
+ "type": "string",
3040
+ "const": "welcome"
3041
+ },
3042
+ "service": {
3043
+ "$ref": "#/$defs/ServiceName"
3044
+ },
3045
+ "contract": {
3046
+ "$ref": "#/$defs/ContractHash"
3047
+ },
3048
+ "pid": {
3049
+ "type": "integer",
3050
+ "minimum": 0,
3051
+ "maximum": 9007199254740991
3052
+ },
3053
+ "python": {
3054
+ "type": "string",
3055
+ "maxLength": 32
3056
+ },
3057
+ "ops": {
3058
+ "maxItems": 64,
3059
+ "type": "array",
3060
+ "items": {
3061
+ "type": "string",
3062
+ "minLength": 1,
3063
+ "maxLength": 64
3064
+ }
3065
+ }
3066
+ },
3067
+ "required": [
3068
+ "type",
3069
+ "service",
3070
+ "contract",
3071
+ "pid",
3072
+ "python",
3073
+ "ops"
3074
+ ],
3075
+ "additionalProperties": false
3076
+ },
3077
+ "ServiceRequest": {
3078
+ "type": "object",
3079
+ "properties": {
3080
+ "type": {
3081
+ "type": "string",
3082
+ "const": "request"
3083
+ },
3084
+ "id": {
3085
+ "type": "integer",
3086
+ "minimum": 0,
3087
+ "maximum": 4294967295
3088
+ },
3089
+ "op": {
3090
+ "type": "string",
3091
+ "minLength": 1,
3092
+ "maxLength": 64
3093
+ },
3094
+ "params": {}
3095
+ },
3096
+ "required": [
3097
+ "type",
3098
+ "id",
3099
+ "op",
3100
+ "params"
3101
+ ],
3102
+ "additionalProperties": false
3103
+ },
3104
+ "ServiceResponse": {
3105
+ "type": "object",
3106
+ "properties": {
3107
+ "type": {
3108
+ "type": "string",
3109
+ "const": "response"
3110
+ },
3111
+ "id": {
3112
+ "type": "integer",
3113
+ "minimum": 0,
3114
+ "maximum": 4294967295
3115
+ },
3116
+ "result": {}
3117
+ },
3118
+ "required": [
3119
+ "type",
3120
+ "id",
3121
+ "result"
3122
+ ],
3123
+ "additionalProperties": false
3124
+ },
3125
+ "ServiceErrorMsg": {
3126
+ "type": "object",
3127
+ "properties": {
3128
+ "type": {
3129
+ "type": "string",
3130
+ "const": "error"
3131
+ },
3132
+ "id": {
3133
+ "type": "integer",
3134
+ "minimum": 0,
3135
+ "maximum": 4294967295
3136
+ },
3137
+ "error": {
3138
+ "$ref": "#/$defs/ProtocolErrorBody"
3139
+ }
3140
+ },
3141
+ "required": [
3142
+ "type",
3143
+ "id",
3144
+ "error"
3145
+ ],
3146
+ "additionalProperties": false
3147
+ },
3148
+ "ServiceProgressMsg": {
3149
+ "type": "object",
3150
+ "properties": {
3151
+ "type": {
3152
+ "type": "string",
3153
+ "const": "progress"
3154
+ },
3155
+ "id": {
3156
+ "type": "integer",
3157
+ "minimum": 0,
3158
+ "maximum": 4294967295
3159
+ },
3160
+ "progress": {}
3161
+ },
3162
+ "required": [
3163
+ "type",
3164
+ "id",
3165
+ "progress"
3166
+ ],
3167
+ "additionalProperties": false
3168
+ },
3169
+ "ServiceCancel": {
3170
+ "type": "object",
3171
+ "properties": {
3172
+ "type": {
3173
+ "type": "string",
3174
+ "const": "cancel"
3175
+ },
3176
+ "id": {
3177
+ "type": "integer",
3178
+ "minimum": 0,
3179
+ "maximum": 4294967295
3180
+ }
3181
+ },
3182
+ "required": [
3183
+ "type",
3184
+ "id"
3185
+ ],
3186
+ "additionalProperties": false
3187
+ },
3188
+ "ServicePing": {
3189
+ "type": "object",
3190
+ "properties": {
3191
+ "type": {
3192
+ "type": "string",
3193
+ "const": "ping"
3194
+ },
3195
+ "id": {
3196
+ "type": "integer",
3197
+ "minimum": 0,
3198
+ "maximum": 4294967295
3199
+ }
3200
+ },
3201
+ "required": [
3202
+ "type",
3203
+ "id"
3204
+ ],
3205
+ "additionalProperties": false
3206
+ },
3207
+ "ServicePong": {
3208
+ "type": "object",
3209
+ "properties": {
3210
+ "type": {
3211
+ "type": "string",
3212
+ "const": "pong"
3213
+ },
3214
+ "id": {
3215
+ "type": "integer",
3216
+ "minimum": 0,
3217
+ "maximum": 4294967295
3218
+ },
3219
+ "busy": {
3220
+ "type": "integer",
3221
+ "minimum": 0,
3222
+ "maximum": 9007199254740991
3223
+ }
3224
+ },
3225
+ "required": [
3226
+ "type",
3227
+ "id",
3228
+ "busy"
3229
+ ],
3230
+ "additionalProperties": false
3231
+ },
3232
+ "ServiceShutdown": {
3233
+ "type": "object",
3234
+ "properties": {
3235
+ "type": {
3236
+ "type": "string",
3237
+ "const": "shutdown"
3238
+ }
3239
+ },
3240
+ "required": [
3241
+ "type"
3242
+ ],
3243
+ "additionalProperties": false
3244
+ },
3245
+ "CoreToServiceMsg": {
3246
+ "oneOf": [
3247
+ {
3248
+ "$ref": "#/$defs/ServiceHello"
3249
+ },
3250
+ {
3251
+ "$ref": "#/$defs/ServiceRequest"
3252
+ },
3253
+ {
3254
+ "$ref": "#/$defs/ServiceCancel"
3255
+ },
3256
+ {
3257
+ "$ref": "#/$defs/ServicePing"
3258
+ },
3259
+ {
3260
+ "$ref": "#/$defs/ServiceShutdown"
3261
+ }
3262
+ ]
3263
+ },
3264
+ "ServiceToCoreMsg": {
3265
+ "oneOf": [
3266
+ {
3267
+ "$ref": "#/$defs/ServiceWelcome"
3268
+ },
3269
+ {
3270
+ "$ref": "#/$defs/ServiceResponse"
3271
+ },
3272
+ {
3273
+ "$ref": "#/$defs/ServiceErrorMsg"
3274
+ },
3275
+ {
3276
+ "$ref": "#/$defs/ServiceProgressMsg"
3277
+ },
3278
+ {
3279
+ "$ref": "#/$defs/ServicePong"
3280
+ }
3281
+ ]
3282
+ },
3283
+ "RelayDeviceStatusEvent": {
3284
+ "type": "object",
3285
+ "properties": {
3286
+ "online": {
3287
+ "type": "boolean"
3288
+ },
3289
+ "since_ms": {
3290
+ "anyOf": [
3291
+ {
3292
+ "type": "integer",
3293
+ "minimum": 0,
3294
+ "maximum": 9007199254740991
3295
+ },
3296
+ {
3297
+ "type": "null"
3298
+ }
3299
+ ]
3300
+ },
3301
+ "app_version": {
3302
+ "anyOf": [
3303
+ {
3304
+ "type": "string",
3305
+ "maxLength": 32
3306
+ },
3307
+ {
3308
+ "type": "null"
3309
+ }
3310
+ ]
3311
+ },
3312
+ "protocol_version": {
3313
+ "anyOf": [
3314
+ {
3315
+ "$ref": "#/$defs/ProtocolVersion"
3316
+ },
3317
+ {
3318
+ "type": "null"
3319
+ }
3320
+ ]
3321
+ }
3322
+ },
3323
+ "required": [
3324
+ "online",
3325
+ "since_ms",
3326
+ "app_version",
3327
+ "protocol_version"
3328
+ ],
3329
+ "additionalProperties": false
3330
+ },
3331
+ "RelayAuthExpiringEvent": {
3332
+ "type": "object",
3333
+ "properties": {
3334
+ "expires_at_ms": {
3335
+ "type": "integer",
3336
+ "minimum": 0,
3337
+ "maximum": 9007199254740991
3338
+ }
3339
+ },
3340
+ "required": [
3341
+ "expires_at_ms"
3342
+ ],
3343
+ "additionalProperties": false
3344
+ },
3345
+ "RelayCallRequest": {
3346
+ "type": "object",
3347
+ "properties": {
3348
+ "cap": {
3349
+ "type": "string",
3350
+ "minLength": 1,
3351
+ "maxLength": 32
3352
+ },
3353
+ "op": {
3354
+ "type": "string",
3355
+ "minLength": 1,
3356
+ "maxLength": 64
3357
+ },
3358
+ "params": {},
3359
+ "timeout_ms": {
3360
+ "default": 70000,
3361
+ "type": "integer",
3362
+ "minimum": 100,
3363
+ "maximum": 3700000
3364
+ }
3365
+ },
3366
+ "required": [
3367
+ "cap",
3368
+ "op",
3369
+ "params"
3370
+ ],
3371
+ "additionalProperties": false
3372
+ },
3373
+ "RelayCallResponse": {
3374
+ "oneOf": [
3375
+ {
3376
+ "type": "object",
3377
+ "properties": {
3378
+ "ok": {
3379
+ "type": "boolean",
3380
+ "const": true
3381
+ },
3382
+ "result": {},
3383
+ "protocol_version": {
3384
+ "$ref": "#/$defs/ProtocolVersion"
3385
+ }
3386
+ },
3387
+ "required": [
3388
+ "ok",
3389
+ "result"
3390
+ ],
3391
+ "additionalProperties": false
3392
+ },
3393
+ {
3394
+ "type": "object",
3395
+ "properties": {
3396
+ "ok": {
3397
+ "type": "boolean",
3398
+ "const": false
3399
+ },
3400
+ "error": {
3401
+ "$ref": "#/$defs/ProtocolErrorBody"
3402
+ },
3403
+ "protocol_version": {
3404
+ "$ref": "#/$defs/ProtocolVersion"
3405
+ }
3406
+ },
3407
+ "required": [
3408
+ "ok",
3409
+ "error"
3410
+ ],
3411
+ "additionalProperties": false
3412
+ }
3413
+ ]
3414
+ },
3415
+ "RelayCallHello": {
3416
+ "type": "object",
3417
+ "properties": {
3418
+ "type": {
3419
+ "type": "string",
3420
+ "const": "hello"
3421
+ },
3422
+ "id": {
3423
+ "type": "string",
3424
+ "const": "hello"
3425
+ },
3426
+ "protocolVersion": {
3427
+ "$ref": "#/$defs/ProtocolVersion"
3428
+ },
3429
+ "clientType": {
3430
+ "type": "string",
3431
+ "const": "server"
3432
+ },
3433
+ "clientVersion": {
3434
+ "type": "string",
3435
+ "minLength": 1,
3436
+ "maxLength": 32
3437
+ }
3438
+ },
3439
+ "required": [
3440
+ "type",
3441
+ "id",
3442
+ "protocolVersion",
3443
+ "clientType",
3444
+ "clientVersion"
3445
+ ],
3446
+ "additionalProperties": false
3447
+ },
3448
+ "RelayCallEnvelope": {
3449
+ "type": "object",
3450
+ "properties": {
3451
+ "id": {
3452
+ "type": "string",
3453
+ "const": "call"
3454
+ },
3455
+ "type": {
3456
+ "type": "string",
3457
+ "const": "request"
3458
+ },
3459
+ "cap": {
3460
+ "type": "string",
3461
+ "minLength": 1,
3462
+ "maxLength": 32
3463
+ },
3464
+ "op": {
3465
+ "type": "string",
3466
+ "minLength": 1,
3467
+ "maxLength": 64
3468
+ },
3469
+ "params": {}
3470
+ },
3471
+ "required": [
3472
+ "id",
3473
+ "type",
3474
+ "cap",
3475
+ "op",
3476
+ "params"
3477
+ ],
3478
+ "additionalProperties": false
3479
+ },
3480
+ "RelayHopEnvelopeHeader": {
3481
+ "type": "object",
3482
+ "properties": {
3483
+ "version": {
3484
+ "type": "number",
3485
+ "const": 1
3486
+ },
3487
+ "flags": {
3488
+ "type": "number",
3489
+ "const": 0
3490
+ },
3491
+ "channel": {
3492
+ "type": "number",
3493
+ "const": 255
3494
+ },
3495
+ "cid": {
3496
+ "type": "integer",
3497
+ "minimum": 0,
3498
+ "maximum": 4294967295
3499
+ },
3500
+ "sid": {
3501
+ "type": "number",
3502
+ "const": 0
3503
+ },
3504
+ "seq": {
3505
+ "type": "number",
3506
+ "const": 0
3507
+ }
3508
+ },
3509
+ "required": [
3510
+ "version",
3511
+ "flags",
3512
+ "channel",
3513
+ "cid",
3514
+ "sid",
3515
+ "seq"
3516
+ ],
3517
+ "additionalProperties": false
3518
+ },
3519
+ "RelayHopConnectionEnd": {
3520
+ "type": "object",
3521
+ "properties": {
3522
+ "version": {
3523
+ "type": "number",
3524
+ "const": 1
3525
+ },
3526
+ "flags": {
3527
+ "type": "number",
3528
+ "const": 1
3529
+ },
3530
+ "channel": {
3531
+ "type": "number",
3532
+ "const": 255
3533
+ },
3534
+ "cid": {
3535
+ "type": "integer",
3536
+ "minimum": 1,
3537
+ "maximum": 4294967295
3538
+ },
3539
+ "sid": {
3540
+ "type": "number",
3541
+ "const": 0
3542
+ },
3543
+ "seq": {
3544
+ "type": "number",
3545
+ "const": 0
3546
+ }
3547
+ },
3548
+ "required": [
3549
+ "version",
3550
+ "flags",
3551
+ "channel",
3552
+ "cid",
3553
+ "sid",
3554
+ "seq"
3555
+ ],
3556
+ "additionalProperties": false
3557
+ },
3558
+ "CloseCodeValue": {
3559
+ "type": "number",
3560
+ "enum": [
3561
+ 1000,
3562
+ 1001,
3563
+ 1006,
3564
+ 1012,
3565
+ 1013,
3566
+ 4001,
3567
+ 4003,
3568
+ 4004,
3569
+ 4008,
3570
+ 4009,
3571
+ 4010,
3572
+ 4400,
3573
+ 4426
3574
+ ]
3575
+ },
3576
+ "ToolLevel": {
3577
+ "type": "string",
3578
+ "enum": [
3579
+ "programmatic",
3580
+ "protocol",
3581
+ "chat"
3582
+ ]
3583
+ },
3584
+ "ToolOutcome": {
3585
+ "type": "string",
3586
+ "enum": [
3587
+ "pass",
3588
+ "fail",
3589
+ "skip"
3590
+ ]
3591
+ },
3592
+ "ToolPlatform": {
3593
+ "type": "string",
3594
+ "enum": [
3595
+ "darwin",
3596
+ "win32",
3597
+ "linux"
3598
+ ]
3599
+ },
3600
+ "ToolTransport": {
3601
+ "type": "string",
3602
+ "enum": [
3603
+ "in_process",
3604
+ "localhost",
3605
+ "relay",
3606
+ "agent"
3607
+ ]
3608
+ },
3609
+ "ToolName": {
3610
+ "type": "string",
3611
+ "minLength": 1,
3612
+ "maxLength": 64,
3613
+ "pattern": "^[a-z][a-z0-9_]*$"
3614
+ },
3615
+ "ToolLevelResult": {
3616
+ "type": "object",
3617
+ "properties": {
3618
+ "tool": {
3619
+ "$ref": "#/$defs/ToolName"
3620
+ },
3621
+ "level": {
3622
+ "$ref": "#/$defs/ToolLevel"
3623
+ },
3624
+ "platform": {
3625
+ "$ref": "#/$defs/ToolPlatform"
3626
+ },
3627
+ "transport": {
3628
+ "$ref": "#/$defs/ToolTransport"
3629
+ },
3630
+ "outcome": {
3631
+ "$ref": "#/$defs/ToolOutcome"
3632
+ },
3633
+ "remote_network": {
3634
+ "type": "boolean"
3635
+ },
3636
+ "detail": {
3637
+ "type": "string",
3638
+ "maxLength": 500
3639
+ },
3640
+ "suite": {
3641
+ "type": "string",
3642
+ "minLength": 1,
3643
+ "maxLength": 200
3644
+ },
3645
+ "test": {
3646
+ "type": "string",
3647
+ "minLength": 1,
3648
+ "maxLength": 300
3649
+ },
3650
+ "run_at_ms": {
3651
+ "type": "integer",
3652
+ "minimum": 0,
3653
+ "maximum": 9007199254740991
3654
+ }
3655
+ },
3656
+ "required": [
3657
+ "tool",
3658
+ "level",
3659
+ "platform",
3660
+ "transport",
3661
+ "outcome",
3662
+ "remote_network",
3663
+ "detail",
3664
+ "suite",
3665
+ "test",
3666
+ "run_at_ms"
3667
+ ],
3668
+ "additionalProperties": false
3669
+ },
3670
+ "ToolResultsFile": {
3671
+ "type": "object",
3672
+ "properties": {
3673
+ "schema": {
3674
+ "type": "string",
3675
+ "const": "matrx.tool-results.v1"
3676
+ },
3677
+ "commit": {
3678
+ "type": "string",
3679
+ "minLength": 4,
3680
+ "maxLength": 64
3681
+ },
3682
+ "results": {
3683
+ "maxItems": 10000,
3684
+ "type": "array",
3685
+ "items": {
3686
+ "$ref": "#/$defs/ToolLevelResult"
3687
+ }
3688
+ }
3689
+ },
3690
+ "required": [
3691
+ "schema",
3692
+ "commit",
3693
+ "results"
3694
+ ],
3695
+ "additionalProperties": false
3696
+ },
3697
+ "AppKey": {
3698
+ "type": "string",
3699
+ "pattern": "^[a-z][a-z0-9_-]{0,39}$"
3700
+ },
3701
+ "AppProfileId": {
3702
+ "type": "string",
3703
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
3704
+ },
3705
+ "AppProfileLocator": {
3706
+ "type": "string",
3707
+ "minLength": 1,
3708
+ "maxLength": 512,
3709
+ "pattern": "^[A-Za-z0-9 _()+@,-][A-Za-z0-9 ._()+@,-]{0,127}(\\/[A-Za-z0-9 _()+@,-][A-Za-z0-9 ._()+@,-]{0,127}){0,7}$"
3710
+ },
3711
+ "AppSupport": {
3712
+ "type": "string",
3713
+ "enum": [
3714
+ "supported",
3715
+ "partial",
3716
+ "unsupported"
3717
+ ]
3718
+ },
3719
+ "AppFeatureStatus": {
3720
+ "type": "object",
3721
+ "properties": {
3722
+ "status": {
3723
+ "$ref": "#/$defs/AppSupport"
3724
+ },
3725
+ "reason": {
3726
+ "anyOf": [
3727
+ {
3728
+ "type": "string",
3729
+ "maxLength": 140
3730
+ },
3731
+ {
3732
+ "type": "null"
3733
+ }
3734
+ ]
3735
+ }
3736
+ },
3737
+ "required": [
3738
+ "status",
3739
+ "reason"
3740
+ ],
3741
+ "additionalProperties": false
3742
+ },
3743
+ "AppInfo": {
3744
+ "type": "object",
3745
+ "properties": {
3746
+ "app_key": {
3747
+ "$ref": "#/$defs/AppKey"
3748
+ },
3749
+ "name": {
3750
+ "type": "string",
3751
+ "maxLength": 64
3752
+ },
3753
+ "installed": {
3754
+ "type": "boolean"
3755
+ },
3756
+ "version": {
3757
+ "anyOf": [
3758
+ {
3759
+ "type": "string",
3760
+ "maxLength": 64
3761
+ },
3762
+ {
3763
+ "type": "null"
3764
+ }
3765
+ ]
3766
+ },
3767
+ "location": {
3768
+ "anyOf": [
3769
+ {
3770
+ "$ref": "#/$defs/AbsPath"
3771
+ },
3772
+ {
3773
+ "type": "null"
3774
+ }
3775
+ ]
3776
+ },
3777
+ "open": {
3778
+ "$ref": "#/$defs/AppFeatureStatus"
3779
+ },
3780
+ "profiles": {
3781
+ "$ref": "#/$defs/AppFeatureStatus"
3782
+ },
3783
+ "usage": {
3784
+ "$ref": "#/$defs/AppFeatureStatus"
3785
+ }
3786
+ },
3787
+ "required": [
3788
+ "app_key",
3789
+ "name",
3790
+ "installed",
3791
+ "version",
3792
+ "location",
3793
+ "open",
3794
+ "profiles",
3795
+ "usage"
3796
+ ],
3797
+ "additionalProperties": false
3798
+ },
3799
+ "AppUsageReading": {
3800
+ "type": "object",
3801
+ "properties": {
3802
+ "window": {
3803
+ "type": "string",
3804
+ "enum": [
3805
+ "five_hour",
3806
+ "weekly",
3807
+ "extra"
3808
+ ]
3809
+ },
3810
+ "percent": {
3811
+ "type": "number",
3812
+ "minimum": 0,
3813
+ "maximum": 10000
3814
+ },
3815
+ "sampled_at_ms": {
3816
+ "type": "integer",
3817
+ "minimum": 0,
3818
+ "maximum": 9007199254740991
3819
+ },
3820
+ "reset_since": {
3821
+ "type": "boolean"
3822
+ }
3823
+ },
3824
+ "required": [
3825
+ "window",
3826
+ "percent",
3827
+ "sampled_at_ms",
3828
+ "reset_since"
3829
+ ],
3830
+ "additionalProperties": false
3831
+ },
3832
+ "AppProfile": {
3833
+ "type": "object",
3834
+ "properties": {
3835
+ "id": {
3836
+ "anyOf": [
3837
+ {
3838
+ "$ref": "#/$defs/AppProfileId"
3839
+ },
3840
+ {
3841
+ "type": "null"
3842
+ }
3843
+ ]
3844
+ },
3845
+ "app_key": {
3846
+ "$ref": "#/$defs/AppKey"
3847
+ },
3848
+ "display_name": {
3849
+ "type": "string",
3850
+ "minLength": 1,
3851
+ "maxLength": 120
3852
+ },
3853
+ "account_identity": {
3854
+ "anyOf": [
3855
+ {
3856
+ "type": "string",
3857
+ "minLength": 3,
3858
+ "maxLength": 320
3859
+ },
3860
+ {
3861
+ "type": "null"
3862
+ }
3863
+ ]
3864
+ },
3865
+ "profile_locator": {
3866
+ "anyOf": [
3867
+ {
3868
+ "$ref": "#/$defs/AppProfileLocator"
3869
+ },
3870
+ {
3871
+ "type": "null"
3872
+ }
3873
+ ]
3874
+ },
3875
+ "device_id": {
3876
+ "anyOf": [
3877
+ {
3878
+ "$ref": "#/$defs/DeviceId"
3879
+ },
3880
+ {
3881
+ "type": "null"
3882
+ }
3883
+ ]
3884
+ },
3885
+ "folder": {
3886
+ "anyOf": [
3887
+ {
3888
+ "$ref": "#/$defs/AbsPath"
3889
+ },
3890
+ {
3891
+ "type": "null"
3892
+ }
3893
+ ]
3894
+ },
3895
+ "on_disk": {
3896
+ "type": "boolean"
3897
+ },
3898
+ "running": {
3899
+ "type": [
3900
+ "boolean",
3901
+ "null"
3902
+ ]
3903
+ },
3904
+ "usage": {
3905
+ "anyOf": [
3906
+ {
3907
+ "type": "array",
3908
+ "items": {
3909
+ "$ref": "#/$defs/AppUsageReading"
3910
+ }
3911
+ },
3912
+ {
3913
+ "type": "null"
3914
+ }
3915
+ ]
3916
+ },
3917
+ "last_opened_ms": {
3918
+ "anyOf": [
3919
+ {
3920
+ "type": "integer",
3921
+ "minimum": 0,
3922
+ "maximum": 9007199254740991
3923
+ },
3924
+ {
3925
+ "type": "null"
3926
+ }
3927
+ ]
3928
+ }
3929
+ },
3930
+ "required": [
3931
+ "id",
3932
+ "app_key",
3933
+ "display_name",
3934
+ "account_identity",
3935
+ "profile_locator",
3936
+ "device_id",
3937
+ "folder",
3938
+ "on_disk",
3939
+ "running",
3940
+ "usage",
3941
+ "last_opened_ms"
3942
+ ],
3943
+ "additionalProperties": false
3944
+ },
3945
+ "AppsListParams": {
3946
+ "type": "object",
3947
+ "properties": {},
3948
+ "additionalProperties": false
3949
+ },
3950
+ "AppsListResult": {
3951
+ "type": "object",
3952
+ "properties": {
3953
+ "apps": {
3954
+ "type": "array",
3955
+ "items": {
3956
+ "$ref": "#/$defs/AppInfo"
3957
+ }
3958
+ }
3959
+ },
3960
+ "required": [
3961
+ "apps"
3962
+ ],
3963
+ "additionalProperties": false
3964
+ },
3965
+ "AppsProfilesListParams": {
3966
+ "type": "object",
3967
+ "properties": {
3968
+ "app_key": {
3969
+ "$ref": "#/$defs/AppKey"
3970
+ }
3971
+ },
3972
+ "additionalProperties": false
3973
+ },
3974
+ "AppsProfilesListResult": {
3975
+ "type": "object",
3976
+ "properties": {
3977
+ "profiles": {
3978
+ "type": "array",
3979
+ "items": {
3980
+ "$ref": "#/$defs/AppProfile"
3981
+ }
3982
+ },
3983
+ "registry": {
3984
+ "type": "string",
3985
+ "enum": [
3986
+ "ok",
3987
+ "signed_out",
3988
+ "unavailable"
3989
+ ]
3990
+ }
3991
+ },
3992
+ "required": [
3993
+ "profiles",
3994
+ "registry"
3995
+ ],
3996
+ "additionalProperties": false
3997
+ },
3998
+ "AppsProfilesSaveParams": {
3999
+ "type": "object",
4000
+ "properties": {
4001
+ "id": {
4002
+ "$ref": "#/$defs/AppProfileId"
4003
+ },
4004
+ "app_key": {
4005
+ "$ref": "#/$defs/AppKey"
4006
+ },
4007
+ "display_name": {
4008
+ "type": "string",
4009
+ "minLength": 1,
4010
+ "maxLength": 120
4011
+ },
4012
+ "account_identity": {
4013
+ "anyOf": [
4014
+ {
4015
+ "type": "string",
4016
+ "minLength": 3,
4017
+ "maxLength": 320
4018
+ },
4019
+ {
4020
+ "type": "null"
4021
+ }
4022
+ ]
4023
+ },
4024
+ "profile_locator": {
4025
+ "anyOf": [
4026
+ {
4027
+ "$ref": "#/$defs/AppProfileLocator"
4028
+ },
4029
+ {
4030
+ "type": "null"
4031
+ }
4032
+ ]
4033
+ },
4034
+ "new_folder": {
4035
+ "default": false,
4036
+ "type": "boolean"
4037
+ }
4038
+ },
4039
+ "required": [
4040
+ "app_key",
4041
+ "display_name",
4042
+ "account_identity",
4043
+ "profile_locator"
4044
+ ],
4045
+ "additionalProperties": false
4046
+ },
4047
+ "AppsProfilesRemoveParams": {
4048
+ "type": "object",
4049
+ "properties": {
4050
+ "id": {
4051
+ "$ref": "#/$defs/AppProfileId"
4052
+ }
4053
+ },
4054
+ "required": [
4055
+ "id"
4056
+ ],
4057
+ "additionalProperties": false
4058
+ },
4059
+ "AppsProfilesRemoveResult": {
4060
+ "type": "object",
4061
+ "properties": {
4062
+ "removed": {
4063
+ "type": "boolean"
4064
+ }
4065
+ },
4066
+ "required": [
4067
+ "removed"
4068
+ ],
4069
+ "additionalProperties": false
4070
+ },
4071
+ "AppsOpenParams": {
4072
+ "type": "object",
4073
+ "properties": {
4074
+ "app_key": {
4075
+ "$ref": "#/$defs/AppKey"
4076
+ },
4077
+ "profile_id": {
4078
+ "$ref": "#/$defs/AppProfileId"
4079
+ }
4080
+ },
4081
+ "required": [
4082
+ "app_key"
4083
+ ],
4084
+ "additionalProperties": false
4085
+ },
4086
+ "AppsOpenResult": {
4087
+ "type": "object",
4088
+ "properties": {
4089
+ "already_running": {
4090
+ "type": "boolean"
4091
+ },
4092
+ "folder": {
4093
+ "anyOf": [
4094
+ {
4095
+ "$ref": "#/$defs/AbsPath"
4096
+ },
4097
+ {
4098
+ "type": "null"
4099
+ }
4100
+ ]
4101
+ }
4102
+ },
4103
+ "required": [
4104
+ "already_running",
4105
+ "folder"
4106
+ ],
4107
+ "additionalProperties": false
4108
+ }
4109
+ },
4110
+ "x-ops": {
4111
+ "sysinfo.get": {
4112
+ "params": "SysinfoGetParams",
4113
+ "result": "SysinfoGetResult",
4114
+ "kind": "unary",
4115
+ "since": "1.0",
4116
+ "errors": [
4117
+ "INTERNAL"
4118
+ ]
4119
+ },
4120
+ "fs.list": {
4121
+ "params": "FsListParams",
4122
+ "result": "FsListResult",
4123
+ "kind": "unary",
4124
+ "since": "1.0",
4125
+ "errors": [
4126
+ "NOT_FOUND",
4127
+ "PERMISSION_DENIED_OS",
4128
+ "INVALID_PARAMS",
4129
+ "RESOURCE_BUSY",
4130
+ "INTERNAL"
4131
+ ]
4132
+ },
4133
+ "fs.stat": {
4134
+ "params": "FsStatParams",
4135
+ "result": "FsEntry",
4136
+ "kind": "unary",
4137
+ "since": "1.0",
4138
+ "errors": [
4139
+ "NOT_FOUND",
4140
+ "PERMISSION_DENIED_OS",
4141
+ "INVALID_PARAMS",
4142
+ "RESOURCE_BUSY",
4143
+ "INTERNAL"
4144
+ ]
4145
+ },
4146
+ "fs.read": {
4147
+ "params": "FsReadParams",
4148
+ "result": "FsReadResult",
4149
+ "kind": "unary",
4150
+ "since": "1.0",
4151
+ "errors": [
4152
+ "NOT_FOUND",
4153
+ "PERMISSION_DENIED_OS",
4154
+ "INVALID_PARAMS",
4155
+ "RESOURCE_BUSY",
4156
+ "INTERNAL",
4157
+ "PAYLOAD_TOO_LARGE"
4158
+ ]
4159
+ },
4160
+ "fs.read_stream": {
4161
+ "params": "FsReadStreamParams",
4162
+ "result": "FsReadStreamResult",
4163
+ "kind": "stream",
4164
+ "since": "1.0",
4165
+ "errors": [
4166
+ "NOT_FOUND",
4167
+ "PERMISSION_DENIED_OS",
4168
+ "INVALID_PARAMS",
4169
+ "RESOURCE_BUSY",
4170
+ "INTERNAL",
4171
+ "CANCELLED"
4172
+ ]
4173
+ },
4174
+ "fs.write": {
4175
+ "params": "FsWriteParams",
4176
+ "result": "FsWriteResult",
4177
+ "kind": "unary",
4178
+ "since": "1.0",
4179
+ "errors": [
4180
+ "NOT_FOUND",
4181
+ "PERMISSION_DENIED_OS",
4182
+ "INVALID_PARAMS",
4183
+ "RESOURCE_BUSY",
4184
+ "INTERNAL",
4185
+ "CONFLICT",
4186
+ "PAYLOAD_TOO_LARGE"
4187
+ ]
4188
+ },
4189
+ "fs.mkdir": {
4190
+ "params": "FsMkdirParams",
4191
+ "result": "FsMkdirResult",
4192
+ "kind": "unary",
4193
+ "since": "1.0",
4194
+ "errors": [
4195
+ "NOT_FOUND",
4196
+ "PERMISSION_DENIED_OS",
4197
+ "INVALID_PARAMS",
4198
+ "RESOURCE_BUSY",
4199
+ "INTERNAL",
4200
+ "CONFLICT"
4201
+ ]
4202
+ },
4203
+ "fs.move": {
4204
+ "params": "FsMoveParams",
4205
+ "result": "FsMoveResult",
4206
+ "kind": "unary",
4207
+ "since": "1.0",
4208
+ "errors": [
4209
+ "NOT_FOUND",
4210
+ "PERMISSION_DENIED_OS",
4211
+ "INVALID_PARAMS",
4212
+ "RESOURCE_BUSY",
4213
+ "INTERNAL",
4214
+ "CONFLICT"
4215
+ ]
4216
+ },
4217
+ "fs.delete": {
4218
+ "params": "FsDeleteParams",
4219
+ "result": "FsDeleteResult",
4220
+ "kind": "unary",
4221
+ "since": "1.0",
4222
+ "errors": [
4223
+ "NOT_FOUND",
4224
+ "PERMISSION_DENIED_OS",
4225
+ "INVALID_PARAMS",
4226
+ "RESOURCE_BUSY",
4227
+ "INTERNAL"
4228
+ ]
4229
+ },
4230
+ "fs.watch": {
4231
+ "params": "FsWatchParams",
4232
+ "result": "FsWatchResult",
4233
+ "kind": "resource",
4234
+ "since": "1.0",
4235
+ "errors": [
4236
+ "NOT_FOUND",
4237
+ "PERMISSION_DENIED_OS",
4238
+ "INVALID_PARAMS",
4239
+ "RESOURCE_BUSY",
4240
+ "INTERNAL",
4241
+ "RATE_LIMITED"
4242
+ ]
4243
+ },
4244
+ "fs.patch": {
4245
+ "params": "FsPatchParams",
4246
+ "result": "FsPatchResult",
4247
+ "kind": "unary",
4248
+ "since": "1.0",
4249
+ "errors": [
4250
+ "NOT_FOUND",
4251
+ "PERMISSION_DENIED_OS",
4252
+ "INVALID_PARAMS",
4253
+ "RESOURCE_BUSY",
4254
+ "INTERNAL",
4255
+ "CONFLICT"
4256
+ ]
4257
+ },
4258
+ "fs.search_paths": {
4259
+ "params": "FsSearchPathsParams",
4260
+ "result": "FsSearchPathsResult",
4261
+ "kind": "unary",
4262
+ "since": "1.0",
4263
+ "errors": [
4264
+ "NOT_FOUND",
4265
+ "PERMISSION_DENIED_OS",
4266
+ "INVALID_PARAMS",
4267
+ "RESOURCE_BUSY",
4268
+ "INTERNAL",
4269
+ "TIMEOUT"
4270
+ ]
4271
+ },
4272
+ "fs.search_content": {
4273
+ "params": "FsSearchContentParams",
4274
+ "result": "FsSearchContentResult",
4275
+ "kind": "unary",
4276
+ "since": "1.0",
4277
+ "errors": [
4278
+ "NOT_FOUND",
4279
+ "PERMISSION_DENIED_OS",
4280
+ "INVALID_PARAMS",
4281
+ "RESOURCE_BUSY",
4282
+ "INTERNAL",
4283
+ "TIMEOUT"
4284
+ ]
4285
+ },
4286
+ "exec.pty.start": {
4287
+ "params": "ExecPtyStartParams",
4288
+ "result": "PtyInfo",
4289
+ "kind": "resource",
4290
+ "since": "1.0",
4291
+ "errors": [
4292
+ "INVALID_PARAMS",
4293
+ "NOT_FOUND",
4294
+ "RATE_LIMITED",
4295
+ "PLATFORM_UNSUPPORTED",
4296
+ "INTERNAL"
4297
+ ]
4298
+ },
4299
+ "exec.pty.write": {
4300
+ "params": "ExecPtyWriteParams",
4301
+ "result": "ExecPtyWriteResult",
4302
+ "kind": "unary",
4303
+ "since": "1.0",
4304
+ "errors": [
4305
+ "RESOURCE_GONE",
4306
+ "AUTH_FORBIDDEN",
4307
+ "INVALID_PARAMS"
4308
+ ]
4309
+ },
4310
+ "exec.pty.resize": {
4311
+ "params": "ExecPtyResizeParams",
4312
+ "result": "ExecPtyResizeResult",
4313
+ "kind": "unary",
4314
+ "since": "1.0",
4315
+ "errors": [
4316
+ "RESOURCE_GONE",
4317
+ "AUTH_FORBIDDEN"
4318
+ ]
4319
+ },
4320
+ "exec.pty.signal": {
4321
+ "params": "ExecPtySignalParams",
4322
+ "result": "ExecPtySignalResult",
4323
+ "kind": "unary",
4324
+ "since": "1.0",
4325
+ "errors": [
4326
+ "RESOURCE_GONE",
4327
+ "AUTH_FORBIDDEN",
4328
+ "PLATFORM_UNSUPPORTED"
4329
+ ]
4330
+ },
4331
+ "exec.pty.kill": {
4332
+ "params": "ExecPtyKillParams",
4333
+ "result": "ExecPtyKillResult",
4334
+ "kind": "unary",
4335
+ "since": "1.0",
4336
+ "errors": [
4337
+ "RESOURCE_GONE",
4338
+ "AUTH_FORBIDDEN"
4339
+ ]
4340
+ },
4341
+ "exec.list": {
4342
+ "params": "ExecListParams",
4343
+ "result": "ExecListResult",
4344
+ "kind": "unary",
4345
+ "since": "1.0",
4346
+ "errors": [
4347
+ "INTERNAL"
4348
+ ]
4349
+ },
4350
+ "exec.run": {
4351
+ "params": "ExecRunParams",
4352
+ "result": "ExecRunResult",
4353
+ "kind": "unary",
4354
+ "since": "1.0",
4355
+ "errors": [
4356
+ "INVALID_PARAMS",
4357
+ "NOT_FOUND",
4358
+ "TIMEOUT",
4359
+ "CANCELLED",
4360
+ "INTERNAL"
4361
+ ]
4362
+ },
4363
+ "session.attach": {
4364
+ "params": "SessionAttachParams",
4365
+ "result": "ResourceInfo",
4366
+ "kind": "stream",
4367
+ "since": "1.0",
4368
+ "errors": [
4369
+ "RESOURCE_GONE",
4370
+ "AUTH_FORBIDDEN",
4371
+ "RESOURCE_BUSY"
4372
+ ]
4373
+ },
4374
+ "session.detach": {
4375
+ "params": "SessionDetachParams",
4376
+ "result": "SessionDetachResult",
4377
+ "kind": "unary",
4378
+ "since": "1.0",
4379
+ "errors": [
4380
+ "RESOURCE_GONE"
4381
+ ]
4382
+ },
4383
+ "session.release": {
4384
+ "params": "SessionReleaseParams",
4385
+ "result": "SessionReleaseResult",
4386
+ "kind": "unary",
4387
+ "since": "1.0",
4388
+ "errors": [
4389
+ "RESOURCE_GONE",
4390
+ "AUTH_FORBIDDEN"
4391
+ ]
4392
+ },
4393
+ "session.list": {
4394
+ "params": "SessionListParams",
4395
+ "result": "SessionListResult",
4396
+ "kind": "unary",
4397
+ "since": "1.0",
4398
+ "errors": [
4399
+ "INTERNAL"
4400
+ ]
4401
+ },
4402
+ "models.status": {
4403
+ "params": "ModelsStatusParams",
4404
+ "result": "ModelsStatusResult",
4405
+ "kind": "unary",
4406
+ "since": "1.2",
4407
+ "errors": [
4408
+ "INTERNAL"
4409
+ ]
4410
+ },
4411
+ "models.install": {
4412
+ "params": "ModelsInstallParams",
4413
+ "result": "ModelsInstallResult",
4414
+ "kind": "unary",
4415
+ "since": "1.2",
4416
+ "errors": [
4417
+ "RESOURCE_BUSY",
4418
+ "RESOURCE_GONE",
4419
+ "TIMEOUT",
4420
+ "CANCELLED",
4421
+ "INTERNAL"
4422
+ ]
4423
+ },
4424
+ "models.transcribe": {
4425
+ "params": "ModelsTranscribeParams",
4426
+ "result": "ModelsTranscribeResult",
4427
+ "kind": "unary",
4428
+ "since": "1.2",
4429
+ "errors": [
4430
+ "NOT_FOUND",
4431
+ "INVALID_PARAMS",
4432
+ "PERMISSION_DENIED_OS",
4433
+ "RESOURCE_BUSY",
4434
+ "RESOURCE_GONE",
4435
+ "CANCELLED",
4436
+ "PAYLOAD_TOO_LARGE",
4437
+ "INTERNAL"
4438
+ ]
4439
+ },
4440
+ "apps.list": {
4441
+ "params": "AppsListParams",
4442
+ "result": "AppsListResult",
4443
+ "kind": "unary",
4444
+ "since": "1.2",
4445
+ "errors": [
4446
+ "INTERNAL"
4447
+ ]
4448
+ },
4449
+ "apps.profiles.list": {
4450
+ "params": "AppsProfilesListParams",
4451
+ "result": "AppsProfilesListResult",
4452
+ "kind": "unary",
4453
+ "since": "1.2",
4454
+ "errors": [
4455
+ "NOT_FOUND",
4456
+ "INVALID_PARAMS",
4457
+ "INTERNAL"
4458
+ ]
4459
+ },
4460
+ "apps.profiles.save": {
4461
+ "params": "AppsProfilesSaveParams",
4462
+ "result": "AppProfile",
4463
+ "kind": "unary",
4464
+ "since": "1.2",
4465
+ "errors": [
4466
+ "AUTH_REQUIRED",
4467
+ "AUTH_FORBIDDEN",
4468
+ "NOT_FOUND",
4469
+ "INVALID_PARAMS",
4470
+ "CONFLICT",
4471
+ "PLATFORM_UNSUPPORTED",
4472
+ "DEVICE_OFFLINE",
4473
+ "INTERNAL"
4474
+ ]
4475
+ },
4476
+ "apps.profiles.remove": {
4477
+ "params": "AppsProfilesRemoveParams",
4478
+ "result": "AppsProfilesRemoveResult",
4479
+ "kind": "unary",
4480
+ "since": "1.2",
4481
+ "errors": [
4482
+ "AUTH_REQUIRED",
4483
+ "AUTH_FORBIDDEN",
4484
+ "NOT_FOUND",
4485
+ "DEVICE_OFFLINE",
4486
+ "INTERNAL"
4487
+ ]
4488
+ },
4489
+ "apps.open": {
4490
+ "params": "AppsOpenParams",
4491
+ "result": "AppsOpenResult",
4492
+ "kind": "unary",
4493
+ "since": "1.2",
4494
+ "errors": [
4495
+ "NOT_FOUND",
4496
+ "PLATFORM_UNSUPPORTED",
4497
+ "AUTH_REQUIRED",
4498
+ "DEVICE_OFFLINE",
4499
+ "INTERNAL"
4500
+ ]
4501
+ }
4502
+ },
4503
+ "x-events": {
4504
+ "fs.changed": "FsChangedEvent",
4505
+ "exec.exited": "ExecExitedEvent",
4506
+ "exec.title": "ExecTitleEvent",
4507
+ "exec.cwd": "ExecCwdEvent",
4508
+ "session.control_changed": "SessionControlChangedEvent",
4509
+ "models.progress": "ModelsProgressEvent",
4510
+ "relay.device_status": "RelayDeviceStatusEvent",
4511
+ "relay.auth_expiring": "RelayAuthExpiringEvent"
4512
+ },
4513
+ "x-services": {
4514
+ "ml": {
4515
+ "progress": "MlProgress",
4516
+ "ops": {
4517
+ "ml.status": {
4518
+ "params": "MlStatusParams",
4519
+ "result": "MlStatusResult"
4520
+ },
4521
+ "ml.install": {
4522
+ "params": "ModelsInstallParams",
4523
+ "result": "ModelsInstallResult"
4524
+ },
4525
+ "ml.transcribe": {
4526
+ "params": "ModelsTranscribeParams",
4527
+ "result": "ModelsTranscribeResult"
4528
+ }
4529
+ }
4530
+ }
4531
+ },
4532
+ "x-fields-since": {
4533
+ "FsPatchResult": {
4534
+ "edits_applied": "1.1",
4535
+ "edits_failed": "1.1"
4536
+ },
4537
+ "ProtocolErrorBody.data": {
4538
+ "edits_failed": "1.1"
4539
+ },
4540
+ "RelayCallResponse|0": {
4541
+ "protocol_version": "1.1"
4542
+ },
4543
+ "RelayCallResponse|1": {
4544
+ "protocol_version": "1.1"
4545
+ }
4546
+ },
4547
+ "x-null-since": {
4548
+ "RelayDeviceStatusEvent.since_ms": {
4549
+ "since": "1.1",
4550
+ "olderPeersGet": 0
4551
+ }
4552
+ },
4553
+ "x-protocol-version": "1.2"
4554
+ }