@source-repo/rpc-cli 3.0.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.
Files changed (61) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1131 -0
  3. package/dist/bench.d.ts +66 -0
  4. package/dist/bench.d.ts.map +1 -0
  5. package/dist/bench.js +109 -0
  6. package/dist/bench.js.map +1 -0
  7. package/dist/broker.d.ts +61 -0
  8. package/dist/broker.d.ts.map +1 -0
  9. package/dist/broker.js +56 -0
  10. package/dist/broker.js.map +1 -0
  11. package/dist/bus.d.ts +142 -0
  12. package/dist/bus.d.ts.map +1 -0
  13. package/dist/bus.js +272 -0
  14. package/dist/bus.js.map +1 -0
  15. package/dist/bus.types.json +269 -0
  16. package/dist/conform.d.ts +75 -0
  17. package/dist/conform.d.ts.map +1 -0
  18. package/dist/conform.js +152 -0
  19. package/dist/conform.js.map +1 -0
  20. package/dist/console.d.ts +285 -0
  21. package/dist/console.d.ts.map +1 -0
  22. package/dist/console.js +686 -0
  23. package/dist/console.js.map +1 -0
  24. package/dist/console.types.json +1730 -0
  25. package/dist/extract.d.ts +37 -0
  26. package/dist/extract.d.ts.map +1 -0
  27. package/dist/extract.js +272 -0
  28. package/dist/extract.js.map +1 -0
  29. package/dist/fake.d.ts +58 -0
  30. package/dist/fake.d.ts.map +1 -0
  31. package/dist/fake.js +164 -0
  32. package/dist/fake.js.map +1 -0
  33. package/dist/index.d.ts +3 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/index.js +905 -0
  36. package/dist/index.js.map +1 -0
  37. package/dist/mcp.d.ts +15 -0
  38. package/dist/mcp.d.ts.map +1 -0
  39. package/dist/mcp.js +507 -0
  40. package/dist/mcp.js.map +1 -0
  41. package/dist/network.d.ts +58 -0
  42. package/dist/network.d.ts.map +1 -0
  43. package/dist/network.js +64 -0
  44. package/dist/network.js.map +1 -0
  45. package/dist/record.d.ts +74 -0
  46. package/dist/record.d.ts.map +1 -0
  47. package/dist/record.js +221 -0
  48. package/dist/record.js.map +1 -0
  49. package/dist/tapping.d.ts +11 -0
  50. package/dist/tapping.d.ts.map +1 -0
  51. package/dist/tapping.js +71 -0
  52. package/dist/tapping.js.map +1 -0
  53. package/dist/verbs.d.ts +59 -0
  54. package/dist/verbs.d.ts.map +1 -0
  55. package/dist/verbs.js +324 -0
  56. package/dist/verbs.js.map +1 -0
  57. package/dist/web/app.css +1 -0
  58. package/dist/web/app.js +2063 -0
  59. package/dist/web/app.js.map +1 -0
  60. package/dist/web/index.html +13 -0
  61. package/package.json +65 -0
@@ -0,0 +1,1730 @@
1
+ {
2
+ "schema": 1,
3
+ "types": {
4
+ "PeerRole": {
5
+ "kind": "union",
6
+ "options": [
7
+ {
8
+ "kind": "literal",
9
+ "value": "broker"
10
+ },
11
+ {
12
+ "kind": "literal",
13
+ "value": "console"
14
+ },
15
+ {
16
+ "kind": "literal",
17
+ "value": "page"
18
+ },
19
+ {
20
+ "kind": "literal",
21
+ "value": "device"
22
+ },
23
+ {
24
+ "kind": "literal",
25
+ "value": "undescribed"
26
+ }
27
+ ]
28
+ },
29
+ "NetworkProblem": {
30
+ "kind": "object",
31
+ "fields": {
32
+ "at": {
33
+ "type": {
34
+ "kind": "number"
35
+ }
36
+ },
37
+ "kind": {
38
+ "type": {
39
+ "kind": "string"
40
+ }
41
+ },
42
+ "link": {
43
+ "type": {
44
+ "kind": "string"
45
+ }
46
+ },
47
+ "peer": {
48
+ "type": {
49
+ "kind": "string"
50
+ },
51
+ "optional": true
52
+ },
53
+ "target": {
54
+ "type": {
55
+ "kind": "string"
56
+ },
57
+ "optional": true
58
+ },
59
+ "reason": {
60
+ "type": {
61
+ "kind": "string"
62
+ },
63
+ "optional": true
64
+ }
65
+ }
66
+ },
67
+ "PeerChange": {
68
+ "kind": "object",
69
+ "fields": {
70
+ "peer": {
71
+ "type": {
72
+ "kind": "string"
73
+ }
74
+ },
75
+ "state": {
76
+ "type": {
77
+ "kind": "string"
78
+ }
79
+ },
80
+ "at": {
81
+ "type": {
82
+ "kind": "number"
83
+ }
84
+ },
85
+ "link": {
86
+ "type": {
87
+ "kind": "string"
88
+ },
89
+ "optional": true
90
+ }
91
+ }
92
+ },
93
+ "ServerDescription": {
94
+ "kind": "object",
95
+ "fields": {
96
+ "name": {
97
+ "type": {
98
+ "kind": "string"
99
+ }
100
+ },
101
+ "version": {
102
+ "type": {
103
+ "kind": "string"
104
+ },
105
+ "optional": true
106
+ },
107
+ "validating": {
108
+ "type": {
109
+ "kind": "boolean"
110
+ }
111
+ },
112
+ "namespaces": {
113
+ "type": {
114
+ "kind": "array",
115
+ "items": {
116
+ "kind": "ref",
117
+ "name": "DescribedNamespace"
118
+ }
119
+ }
120
+ },
121
+ "types": {
122
+ "type": {
123
+ "kind": "record",
124
+ "values": {
125
+ "kind": "ref",
126
+ "name": "TypeNode"
127
+ }
128
+ },
129
+ "optional": true
130
+ }
131
+ }
132
+ },
133
+ "DescribedNamespace": {
134
+ "kind": "object",
135
+ "fields": {
136
+ "name": {
137
+ "type": {
138
+ "kind": "string"
139
+ }
140
+ },
141
+ "version": {
142
+ "type": {
143
+ "kind": "string"
144
+ },
145
+ "optional": true
146
+ },
147
+ "className": {
148
+ "type": {
149
+ "kind": "string"
150
+ },
151
+ "optional": true
152
+ },
153
+ "created": {
154
+ "type": {
155
+ "kind": "boolean"
156
+ }
157
+ },
158
+ "emitter": {
159
+ "type": {
160
+ "kind": "boolean"
161
+ }
162
+ },
163
+ "serialised": {
164
+ "type": {
165
+ "kind": "boolean"
166
+ },
167
+ "optional": true
168
+ },
169
+ "methods": {
170
+ "type": {
171
+ "kind": "array",
172
+ "items": {
173
+ "kind": "ref",
174
+ "name": "DescribedMethod"
175
+ }
176
+ }
177
+ },
178
+ "events": {
179
+ "type": {
180
+ "kind": "array",
181
+ "items": {
182
+ "kind": "ref",
183
+ "name": "DescribedEvent"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ },
189
+ "DescribedMethod": {
190
+ "kind": "object",
191
+ "fields": {
192
+ "name": {
193
+ "type": {
194
+ "kind": "string"
195
+ }
196
+ },
197
+ "params": {
198
+ "type": {
199
+ "kind": "array",
200
+ "items": {
201
+ "kind": "ref",
202
+ "name": "TypeNode"
203
+ }
204
+ },
205
+ "optional": true
206
+ },
207
+ "paramNames": {
208
+ "type": {
209
+ "kind": "array",
210
+ "items": {
211
+ "kind": "string"
212
+ }
213
+ },
214
+ "optional": true
215
+ },
216
+ "rest": {
217
+ "type": {
218
+ "kind": "union",
219
+ "options": [
220
+ {
221
+ "kind": "object",
222
+ "fields": {
223
+ "kind": {
224
+ "type": {
225
+ "kind": "literal",
226
+ "value": "any"
227
+ }
228
+ }
229
+ }
230
+ },
231
+ {
232
+ "kind": "object",
233
+ "fields": {
234
+ "kind": {
235
+ "type": {
236
+ "kind": "literal",
237
+ "value": "null"
238
+ }
239
+ }
240
+ }
241
+ },
242
+ {
243
+ "kind": "object",
244
+ "fields": {
245
+ "kind": {
246
+ "type": {
247
+ "kind": "literal",
248
+ "value": "boolean"
249
+ }
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "kind": "object",
255
+ "fields": {
256
+ "kind": {
257
+ "type": {
258
+ "kind": "literal",
259
+ "value": "number"
260
+ }
261
+ },
262
+ "integer": {
263
+ "type": {
264
+ "kind": "boolean"
265
+ },
266
+ "optional": true
267
+ },
268
+ "min": {
269
+ "type": {
270
+ "kind": "number"
271
+ },
272
+ "optional": true
273
+ },
274
+ "max": {
275
+ "type": {
276
+ "kind": "number"
277
+ },
278
+ "optional": true
279
+ }
280
+ }
281
+ },
282
+ {
283
+ "kind": "object",
284
+ "fields": {
285
+ "kind": {
286
+ "type": {
287
+ "kind": "literal",
288
+ "value": "string"
289
+ }
290
+ },
291
+ "pattern": {
292
+ "type": {
293
+ "kind": "string"
294
+ },
295
+ "optional": true
296
+ },
297
+ "minLength": {
298
+ "type": {
299
+ "kind": "number"
300
+ },
301
+ "optional": true
302
+ },
303
+ "maxLength": {
304
+ "type": {
305
+ "kind": "number"
306
+ },
307
+ "optional": true
308
+ }
309
+ }
310
+ },
311
+ {
312
+ "kind": "object",
313
+ "fields": {
314
+ "kind": {
315
+ "type": {
316
+ "kind": "literal",
317
+ "value": "bytes"
318
+ }
319
+ },
320
+ "maxBytes": {
321
+ "type": {
322
+ "kind": "number"
323
+ },
324
+ "optional": true
325
+ }
326
+ }
327
+ },
328
+ {
329
+ "kind": "object",
330
+ "fields": {
331
+ "kind": {
332
+ "type": {
333
+ "kind": "literal",
334
+ "value": "date"
335
+ }
336
+ }
337
+ }
338
+ },
339
+ {
340
+ "kind": "object",
341
+ "fields": {
342
+ "kind": {
343
+ "type": {
344
+ "kind": "literal",
345
+ "value": "literal"
346
+ }
347
+ },
348
+ "value": {
349
+ "type": {
350
+ "kind": "union",
351
+ "options": [
352
+ {
353
+ "kind": "null"
354
+ },
355
+ {
356
+ "kind": "string"
357
+ },
358
+ {
359
+ "kind": "number"
360
+ },
361
+ {
362
+ "kind": "literal",
363
+ "value": false
364
+ },
365
+ {
366
+ "kind": "literal",
367
+ "value": true
368
+ }
369
+ ]
370
+ },
371
+ "optional": true
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "kind": "object",
377
+ "fields": {
378
+ "kind": {
379
+ "type": {
380
+ "kind": "literal",
381
+ "value": "array"
382
+ }
383
+ },
384
+ "items": {
385
+ "type": {
386
+ "kind": "ref",
387
+ "name": "TypeNode"
388
+ }
389
+ },
390
+ "maxItems": {
391
+ "type": {
392
+ "kind": "number"
393
+ },
394
+ "optional": true
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "kind": "object",
400
+ "fields": {
401
+ "kind": {
402
+ "type": {
403
+ "kind": "literal",
404
+ "value": "tuple"
405
+ }
406
+ },
407
+ "items": {
408
+ "type": {
409
+ "kind": "array",
410
+ "items": {
411
+ "kind": "ref",
412
+ "name": "TypeNode"
413
+ }
414
+ }
415
+ }
416
+ }
417
+ },
418
+ {
419
+ "kind": "object",
420
+ "fields": {
421
+ "kind": {
422
+ "type": {
423
+ "kind": "literal",
424
+ "value": "object"
425
+ }
426
+ },
427
+ "fields": {
428
+ "type": {
429
+ "kind": "record",
430
+ "values": {
431
+ "kind": "ref",
432
+ "name": "FieldNode"
433
+ }
434
+ }
435
+ },
436
+ "additional": {
437
+ "type": {
438
+ "kind": "boolean"
439
+ },
440
+ "optional": true
441
+ }
442
+ }
443
+ },
444
+ {
445
+ "kind": "object",
446
+ "fields": {
447
+ "kind": {
448
+ "type": {
449
+ "kind": "literal",
450
+ "value": "record"
451
+ }
452
+ },
453
+ "values": {
454
+ "type": {
455
+ "kind": "ref",
456
+ "name": "TypeNode"
457
+ }
458
+ },
459
+ "keyPattern": {
460
+ "type": {
461
+ "kind": "string"
462
+ },
463
+ "optional": true
464
+ },
465
+ "maxEntries": {
466
+ "type": {
467
+ "kind": "number"
468
+ },
469
+ "optional": true
470
+ }
471
+ }
472
+ },
473
+ {
474
+ "kind": "object",
475
+ "fields": {
476
+ "kind": {
477
+ "type": {
478
+ "kind": "literal",
479
+ "value": "union"
480
+ }
481
+ },
482
+ "options": {
483
+ "type": {
484
+ "kind": "array",
485
+ "items": {
486
+ "kind": "ref",
487
+ "name": "TypeNode"
488
+ }
489
+ }
490
+ }
491
+ }
492
+ },
493
+ {
494
+ "kind": "object",
495
+ "fields": {
496
+ "kind": {
497
+ "type": {
498
+ "kind": "literal",
499
+ "value": "ref"
500
+ }
501
+ },
502
+ "name": {
503
+ "type": {
504
+ "kind": "string"
505
+ }
506
+ }
507
+ }
508
+ }
509
+ ]
510
+ },
511
+ "optional": true
512
+ },
513
+ "returns": {
514
+ "type": {
515
+ "kind": "union",
516
+ "options": [
517
+ {
518
+ "kind": "object",
519
+ "fields": {
520
+ "kind": {
521
+ "type": {
522
+ "kind": "literal",
523
+ "value": "any"
524
+ }
525
+ }
526
+ }
527
+ },
528
+ {
529
+ "kind": "object",
530
+ "fields": {
531
+ "kind": {
532
+ "type": {
533
+ "kind": "literal",
534
+ "value": "null"
535
+ }
536
+ }
537
+ }
538
+ },
539
+ {
540
+ "kind": "object",
541
+ "fields": {
542
+ "kind": {
543
+ "type": {
544
+ "kind": "literal",
545
+ "value": "boolean"
546
+ }
547
+ }
548
+ }
549
+ },
550
+ {
551
+ "kind": "object",
552
+ "fields": {
553
+ "kind": {
554
+ "type": {
555
+ "kind": "literal",
556
+ "value": "number"
557
+ }
558
+ },
559
+ "integer": {
560
+ "type": {
561
+ "kind": "boolean"
562
+ },
563
+ "optional": true
564
+ },
565
+ "min": {
566
+ "type": {
567
+ "kind": "number"
568
+ },
569
+ "optional": true
570
+ },
571
+ "max": {
572
+ "type": {
573
+ "kind": "number"
574
+ },
575
+ "optional": true
576
+ }
577
+ }
578
+ },
579
+ {
580
+ "kind": "object",
581
+ "fields": {
582
+ "kind": {
583
+ "type": {
584
+ "kind": "literal",
585
+ "value": "string"
586
+ }
587
+ },
588
+ "pattern": {
589
+ "type": {
590
+ "kind": "string"
591
+ },
592
+ "optional": true
593
+ },
594
+ "minLength": {
595
+ "type": {
596
+ "kind": "number"
597
+ },
598
+ "optional": true
599
+ },
600
+ "maxLength": {
601
+ "type": {
602
+ "kind": "number"
603
+ },
604
+ "optional": true
605
+ }
606
+ }
607
+ },
608
+ {
609
+ "kind": "object",
610
+ "fields": {
611
+ "kind": {
612
+ "type": {
613
+ "kind": "literal",
614
+ "value": "bytes"
615
+ }
616
+ },
617
+ "maxBytes": {
618
+ "type": {
619
+ "kind": "number"
620
+ },
621
+ "optional": true
622
+ }
623
+ }
624
+ },
625
+ {
626
+ "kind": "object",
627
+ "fields": {
628
+ "kind": {
629
+ "type": {
630
+ "kind": "literal",
631
+ "value": "date"
632
+ }
633
+ }
634
+ }
635
+ },
636
+ {
637
+ "kind": "object",
638
+ "fields": {
639
+ "kind": {
640
+ "type": {
641
+ "kind": "literal",
642
+ "value": "literal"
643
+ }
644
+ },
645
+ "value": {
646
+ "type": {
647
+ "kind": "union",
648
+ "options": [
649
+ {
650
+ "kind": "null"
651
+ },
652
+ {
653
+ "kind": "string"
654
+ },
655
+ {
656
+ "kind": "number"
657
+ },
658
+ {
659
+ "kind": "literal",
660
+ "value": false
661
+ },
662
+ {
663
+ "kind": "literal",
664
+ "value": true
665
+ }
666
+ ]
667
+ },
668
+ "optional": true
669
+ }
670
+ }
671
+ },
672
+ {
673
+ "kind": "object",
674
+ "fields": {
675
+ "kind": {
676
+ "type": {
677
+ "kind": "literal",
678
+ "value": "array"
679
+ }
680
+ },
681
+ "items": {
682
+ "type": {
683
+ "kind": "ref",
684
+ "name": "TypeNode"
685
+ }
686
+ },
687
+ "maxItems": {
688
+ "type": {
689
+ "kind": "number"
690
+ },
691
+ "optional": true
692
+ }
693
+ }
694
+ },
695
+ {
696
+ "kind": "object",
697
+ "fields": {
698
+ "kind": {
699
+ "type": {
700
+ "kind": "literal",
701
+ "value": "tuple"
702
+ }
703
+ },
704
+ "items": {
705
+ "type": {
706
+ "kind": "array",
707
+ "items": {
708
+ "kind": "ref",
709
+ "name": "TypeNode"
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
715
+ {
716
+ "kind": "object",
717
+ "fields": {
718
+ "kind": {
719
+ "type": {
720
+ "kind": "literal",
721
+ "value": "object"
722
+ }
723
+ },
724
+ "fields": {
725
+ "type": {
726
+ "kind": "record",
727
+ "values": {
728
+ "kind": "ref",
729
+ "name": "FieldNode"
730
+ }
731
+ }
732
+ },
733
+ "additional": {
734
+ "type": {
735
+ "kind": "boolean"
736
+ },
737
+ "optional": true
738
+ }
739
+ }
740
+ },
741
+ {
742
+ "kind": "object",
743
+ "fields": {
744
+ "kind": {
745
+ "type": {
746
+ "kind": "literal",
747
+ "value": "record"
748
+ }
749
+ },
750
+ "values": {
751
+ "type": {
752
+ "kind": "ref",
753
+ "name": "TypeNode"
754
+ }
755
+ },
756
+ "keyPattern": {
757
+ "type": {
758
+ "kind": "string"
759
+ },
760
+ "optional": true
761
+ },
762
+ "maxEntries": {
763
+ "type": {
764
+ "kind": "number"
765
+ },
766
+ "optional": true
767
+ }
768
+ }
769
+ },
770
+ {
771
+ "kind": "object",
772
+ "fields": {
773
+ "kind": {
774
+ "type": {
775
+ "kind": "literal",
776
+ "value": "union"
777
+ }
778
+ },
779
+ "options": {
780
+ "type": {
781
+ "kind": "array",
782
+ "items": {
783
+ "kind": "ref",
784
+ "name": "TypeNode"
785
+ }
786
+ }
787
+ }
788
+ }
789
+ },
790
+ {
791
+ "kind": "object",
792
+ "fields": {
793
+ "kind": {
794
+ "type": {
795
+ "kind": "literal",
796
+ "value": "ref"
797
+ }
798
+ },
799
+ "name": {
800
+ "type": {
801
+ "kind": "string"
802
+ }
803
+ }
804
+ }
805
+ }
806
+ ]
807
+ },
808
+ "optional": true
809
+ },
810
+ "semantics": {
811
+ "type": {
812
+ "kind": "union",
813
+ "options": [
814
+ {
815
+ "kind": "literal",
816
+ "value": "query"
817
+ },
818
+ {
819
+ "kind": "literal",
820
+ "value": "idempotent-command"
821
+ },
822
+ {
823
+ "kind": "literal",
824
+ "value": "non-repeatable-command"
825
+ }
826
+ ]
827
+ },
828
+ "optional": true
829
+ }
830
+ }
831
+ },
832
+ "TypeNode": {
833
+ "kind": "union",
834
+ "options": [
835
+ {
836
+ "kind": "object",
837
+ "fields": {
838
+ "kind": {
839
+ "type": {
840
+ "kind": "literal",
841
+ "value": "any"
842
+ }
843
+ }
844
+ }
845
+ },
846
+ {
847
+ "kind": "object",
848
+ "fields": {
849
+ "kind": {
850
+ "type": {
851
+ "kind": "literal",
852
+ "value": "null"
853
+ }
854
+ }
855
+ }
856
+ },
857
+ {
858
+ "kind": "object",
859
+ "fields": {
860
+ "kind": {
861
+ "type": {
862
+ "kind": "literal",
863
+ "value": "boolean"
864
+ }
865
+ }
866
+ }
867
+ },
868
+ {
869
+ "kind": "object",
870
+ "fields": {
871
+ "kind": {
872
+ "type": {
873
+ "kind": "literal",
874
+ "value": "number"
875
+ }
876
+ },
877
+ "integer": {
878
+ "type": {
879
+ "kind": "boolean"
880
+ },
881
+ "optional": true
882
+ },
883
+ "min": {
884
+ "type": {
885
+ "kind": "number"
886
+ },
887
+ "optional": true
888
+ },
889
+ "max": {
890
+ "type": {
891
+ "kind": "number"
892
+ },
893
+ "optional": true
894
+ }
895
+ }
896
+ },
897
+ {
898
+ "kind": "object",
899
+ "fields": {
900
+ "kind": {
901
+ "type": {
902
+ "kind": "literal",
903
+ "value": "string"
904
+ }
905
+ },
906
+ "pattern": {
907
+ "type": {
908
+ "kind": "string"
909
+ },
910
+ "optional": true
911
+ },
912
+ "minLength": {
913
+ "type": {
914
+ "kind": "number"
915
+ },
916
+ "optional": true
917
+ },
918
+ "maxLength": {
919
+ "type": {
920
+ "kind": "number"
921
+ },
922
+ "optional": true
923
+ }
924
+ }
925
+ },
926
+ {
927
+ "kind": "object",
928
+ "fields": {
929
+ "kind": {
930
+ "type": {
931
+ "kind": "literal",
932
+ "value": "bytes"
933
+ }
934
+ },
935
+ "maxBytes": {
936
+ "type": {
937
+ "kind": "number"
938
+ },
939
+ "optional": true
940
+ }
941
+ }
942
+ },
943
+ {
944
+ "kind": "object",
945
+ "fields": {
946
+ "kind": {
947
+ "type": {
948
+ "kind": "literal",
949
+ "value": "date"
950
+ }
951
+ }
952
+ }
953
+ },
954
+ {
955
+ "kind": "object",
956
+ "fields": {
957
+ "kind": {
958
+ "type": {
959
+ "kind": "literal",
960
+ "value": "literal"
961
+ }
962
+ },
963
+ "value": {
964
+ "type": {
965
+ "kind": "union",
966
+ "options": [
967
+ {
968
+ "kind": "null"
969
+ },
970
+ {
971
+ "kind": "string"
972
+ },
973
+ {
974
+ "kind": "number"
975
+ },
976
+ {
977
+ "kind": "literal",
978
+ "value": false
979
+ },
980
+ {
981
+ "kind": "literal",
982
+ "value": true
983
+ }
984
+ ]
985
+ },
986
+ "optional": true
987
+ }
988
+ }
989
+ },
990
+ {
991
+ "kind": "object",
992
+ "fields": {
993
+ "kind": {
994
+ "type": {
995
+ "kind": "literal",
996
+ "value": "array"
997
+ }
998
+ },
999
+ "items": {
1000
+ "type": {
1001
+ "kind": "ref",
1002
+ "name": "TypeNode"
1003
+ }
1004
+ },
1005
+ "maxItems": {
1006
+ "type": {
1007
+ "kind": "number"
1008
+ },
1009
+ "optional": true
1010
+ }
1011
+ }
1012
+ },
1013
+ {
1014
+ "kind": "object",
1015
+ "fields": {
1016
+ "kind": {
1017
+ "type": {
1018
+ "kind": "literal",
1019
+ "value": "tuple"
1020
+ }
1021
+ },
1022
+ "items": {
1023
+ "type": {
1024
+ "kind": "array",
1025
+ "items": {
1026
+ "kind": "ref",
1027
+ "name": "TypeNode"
1028
+ }
1029
+ }
1030
+ }
1031
+ }
1032
+ },
1033
+ {
1034
+ "kind": "object",
1035
+ "fields": {
1036
+ "kind": {
1037
+ "type": {
1038
+ "kind": "literal",
1039
+ "value": "object"
1040
+ }
1041
+ },
1042
+ "fields": {
1043
+ "type": {
1044
+ "kind": "record",
1045
+ "values": {
1046
+ "kind": "ref",
1047
+ "name": "FieldNode"
1048
+ }
1049
+ }
1050
+ },
1051
+ "additional": {
1052
+ "type": {
1053
+ "kind": "boolean"
1054
+ },
1055
+ "optional": true
1056
+ }
1057
+ }
1058
+ },
1059
+ {
1060
+ "kind": "object",
1061
+ "fields": {
1062
+ "kind": {
1063
+ "type": {
1064
+ "kind": "literal",
1065
+ "value": "record"
1066
+ }
1067
+ },
1068
+ "values": {
1069
+ "type": {
1070
+ "kind": "ref",
1071
+ "name": "TypeNode"
1072
+ }
1073
+ },
1074
+ "keyPattern": {
1075
+ "type": {
1076
+ "kind": "string"
1077
+ },
1078
+ "optional": true
1079
+ },
1080
+ "maxEntries": {
1081
+ "type": {
1082
+ "kind": "number"
1083
+ },
1084
+ "optional": true
1085
+ }
1086
+ }
1087
+ },
1088
+ {
1089
+ "kind": "object",
1090
+ "fields": {
1091
+ "kind": {
1092
+ "type": {
1093
+ "kind": "literal",
1094
+ "value": "union"
1095
+ }
1096
+ },
1097
+ "options": {
1098
+ "type": {
1099
+ "kind": "array",
1100
+ "items": {
1101
+ "kind": "ref",
1102
+ "name": "TypeNode"
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ },
1108
+ {
1109
+ "kind": "object",
1110
+ "fields": {
1111
+ "kind": {
1112
+ "type": {
1113
+ "kind": "literal",
1114
+ "value": "ref"
1115
+ }
1116
+ },
1117
+ "name": {
1118
+ "type": {
1119
+ "kind": "string"
1120
+ }
1121
+ }
1122
+ }
1123
+ }
1124
+ ]
1125
+ },
1126
+ "FieldNode": {
1127
+ "kind": "object",
1128
+ "fields": {
1129
+ "type": {
1130
+ "type": {
1131
+ "kind": "ref",
1132
+ "name": "TypeNode"
1133
+ }
1134
+ },
1135
+ "optional": {
1136
+ "type": {
1137
+ "kind": "boolean"
1138
+ },
1139
+ "optional": true
1140
+ }
1141
+ }
1142
+ },
1143
+ "DescribedEvent": {
1144
+ "kind": "object",
1145
+ "fields": {
1146
+ "name": {
1147
+ "type": {
1148
+ "kind": "string"
1149
+ }
1150
+ },
1151
+ "params": {
1152
+ "type": {
1153
+ "kind": "array",
1154
+ "items": {
1155
+ "kind": "ref",
1156
+ "name": "TypeNode"
1157
+ }
1158
+ },
1159
+ "optional": true
1160
+ },
1161
+ "subscribers": {
1162
+ "type": {
1163
+ "kind": "number"
1164
+ }
1165
+ }
1166
+ }
1167
+ },
1168
+ "TapFilter": {
1169
+ "kind": "object",
1170
+ "fields": {
1171
+ "peer": {
1172
+ "type": {
1173
+ "kind": "string"
1174
+ },
1175
+ "optional": true
1176
+ },
1177
+ "namespace": {
1178
+ "type": {
1179
+ "kind": "string"
1180
+ },
1181
+ "optional": true
1182
+ },
1183
+ "kinds": {
1184
+ "type": {
1185
+ "kind": "array",
1186
+ "items": {
1187
+ "kind": "string"
1188
+ }
1189
+ },
1190
+ "optional": true
1191
+ },
1192
+ "payloads": {
1193
+ "type": {
1194
+ "kind": "boolean"
1195
+ },
1196
+ "optional": true
1197
+ },
1198
+ "ttl": {
1199
+ "type": {
1200
+ "kind": "number"
1201
+ },
1202
+ "optional": true
1203
+ }
1204
+ }
1205
+ },
1206
+ "ConsoleTap": {
1207
+ "kind": "object",
1208
+ "fields": {
1209
+ "token": {
1210
+ "type": {
1211
+ "kind": "string"
1212
+ }
1213
+ },
1214
+ "sources": {
1215
+ "type": {
1216
+ "kind": "array",
1217
+ "items": {
1218
+ "kind": "string"
1219
+ }
1220
+ }
1221
+ }
1222
+ }
1223
+ },
1224
+ "StreamedEvent": {
1225
+ "kind": "object",
1226
+ "fields": {
1227
+ "peer": {
1228
+ "type": {
1229
+ "kind": "string"
1230
+ }
1231
+ },
1232
+ "namespace": {
1233
+ "type": {
1234
+ "kind": "string"
1235
+ }
1236
+ },
1237
+ "event": {
1238
+ "type": {
1239
+ "kind": "string"
1240
+ }
1241
+ },
1242
+ "args": {
1243
+ "type": {
1244
+ "kind": "array",
1245
+ "items": {
1246
+ "kind": "any"
1247
+ }
1248
+ }
1249
+ },
1250
+ "at": {
1251
+ "type": {
1252
+ "kind": "number"
1253
+ }
1254
+ }
1255
+ }
1256
+ },
1257
+ "TappedFrame": {
1258
+ "kind": "object",
1259
+ "fields": {
1260
+ "at": {
1261
+ "type": {
1262
+ "kind": "number"
1263
+ }
1264
+ },
1265
+ "source": {
1266
+ "type": {
1267
+ "kind": "string"
1268
+ }
1269
+ },
1270
+ "target": {
1271
+ "type": {
1272
+ "kind": "string"
1273
+ }
1274
+ },
1275
+ "kind": {
1276
+ "type": {
1277
+ "kind": "string"
1278
+ }
1279
+ },
1280
+ "namespace": {
1281
+ "type": {
1282
+ "kind": "string"
1283
+ },
1284
+ "optional": true
1285
+ },
1286
+ "method": {
1287
+ "type": {
1288
+ "kind": "string"
1289
+ },
1290
+ "optional": true
1291
+ },
1292
+ "event": {
1293
+ "type": {
1294
+ "kind": "string"
1295
+ },
1296
+ "optional": true
1297
+ },
1298
+ "id": {
1299
+ "type": {
1300
+ "kind": "string"
1301
+ },
1302
+ "optional": true
1303
+ },
1304
+ "ms": {
1305
+ "type": {
1306
+ "kind": "number"
1307
+ },
1308
+ "optional": true
1309
+ },
1310
+ "code": {
1311
+ "type": {
1312
+ "kind": "string"
1313
+ },
1314
+ "optional": true
1315
+ },
1316
+ "error": {
1317
+ "type": {
1318
+ "kind": "string"
1319
+ },
1320
+ "optional": true
1321
+ },
1322
+ "params": {
1323
+ "type": {
1324
+ "kind": "array",
1325
+ "items": {
1326
+ "kind": "any"
1327
+ }
1328
+ },
1329
+ "optional": true
1330
+ },
1331
+ "result": {
1332
+ "type": {
1333
+ "kind": "any"
1334
+ },
1335
+ "optional": true
1336
+ },
1337
+ "taps": {
1338
+ "type": {
1339
+ "kind": "array",
1340
+ "items": {
1341
+ "kind": "string"
1342
+ }
1343
+ }
1344
+ }
1345
+ }
1346
+ }
1347
+ },
1348
+ "namespaces": {
1349
+ "console": {
1350
+ "methods": {
1351
+ "peers": {
1352
+ "params": [],
1353
+ "returns": {
1354
+ "kind": "object",
1355
+ "fields": {
1356
+ "peers": {
1357
+ "type": {
1358
+ "kind": "array",
1359
+ "items": {
1360
+ "kind": "string"
1361
+ }
1362
+ }
1363
+ },
1364
+ "watching": {
1365
+ "type": {
1366
+ "kind": "array",
1367
+ "items": {
1368
+ "kind": "string"
1369
+ }
1370
+ }
1371
+ },
1372
+ "callTimeout": {
1373
+ "type": {
1374
+ "kind": "number"
1375
+ }
1376
+ },
1377
+ "network": {
1378
+ "type": {
1379
+ "kind": "object",
1380
+ "fields": {
1381
+ "broker": {
1382
+ "type": {
1383
+ "kind": "string"
1384
+ },
1385
+ "optional": true
1386
+ },
1387
+ "hub": {
1388
+ "type": {
1389
+ "kind": "string"
1390
+ },
1391
+ "optional": true
1392
+ },
1393
+ "prefix": {
1394
+ "type": {
1395
+ "kind": "string"
1396
+ },
1397
+ "optional": true
1398
+ }
1399
+ }
1400
+ }
1401
+ },
1402
+ "roles": {
1403
+ "type": {
1404
+ "kind": "record",
1405
+ "values": {
1406
+ "kind": "ref",
1407
+ "name": "PeerRole"
1408
+ }
1409
+ }
1410
+ },
1411
+ "links": {
1412
+ "type": {
1413
+ "kind": "record",
1414
+ "values": {
1415
+ "kind": "string"
1416
+ }
1417
+ }
1418
+ }
1419
+ }
1420
+ }
1421
+ },
1422
+ "problems": {
1423
+ "params": [],
1424
+ "returns": {
1425
+ "kind": "object",
1426
+ "fields": {
1427
+ "problems": {
1428
+ "type": {
1429
+ "kind": "array",
1430
+ "items": {
1431
+ "kind": "ref",
1432
+ "name": "NetworkProblem"
1433
+ }
1434
+ }
1435
+ }
1436
+ }
1437
+ }
1438
+ },
1439
+ "presence": {
1440
+ "params": [],
1441
+ "returns": {
1442
+ "kind": "object",
1443
+ "fields": {
1444
+ "changes": {
1445
+ "type": {
1446
+ "kind": "array",
1447
+ "items": {
1448
+ "kind": "ref",
1449
+ "name": "PeerChange"
1450
+ }
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ },
1456
+ "describe": {
1457
+ "params": [
1458
+ {
1459
+ "kind": "string"
1460
+ }
1461
+ ],
1462
+ "paramNames": [
1463
+ "peer"
1464
+ ],
1465
+ "returns": {
1466
+ "kind": "union",
1467
+ "options": [
1468
+ {
1469
+ "kind": "ref",
1470
+ "name": "ServerDescription"
1471
+ },
1472
+ {
1473
+ "kind": "object",
1474
+ "fields": {
1475
+ "error": {
1476
+ "type": {
1477
+ "kind": "string"
1478
+ }
1479
+ },
1480
+ "code": {
1481
+ "type": {
1482
+ "kind": "string"
1483
+ },
1484
+ "optional": true
1485
+ }
1486
+ }
1487
+ }
1488
+ ]
1489
+ }
1490
+ },
1491
+ "call": {
1492
+ "params": [
1493
+ {
1494
+ "kind": "string"
1495
+ },
1496
+ {
1497
+ "kind": "string"
1498
+ },
1499
+ {
1500
+ "kind": "string"
1501
+ },
1502
+ {
1503
+ "kind": "union",
1504
+ "options": [
1505
+ {
1506
+ "kind": "array",
1507
+ "items": {
1508
+ "kind": "any"
1509
+ }
1510
+ },
1511
+ {
1512
+ "kind": "literal",
1513
+ "value": null
1514
+ }
1515
+ ]
1516
+ }
1517
+ ],
1518
+ "paramNames": [
1519
+ "peer",
1520
+ "namespace",
1521
+ "method",
1522
+ "args"
1523
+ ],
1524
+ "returns": {
1525
+ "kind": "object",
1526
+ "fields": {
1527
+ "result": {
1528
+ "type": {
1529
+ "kind": "any"
1530
+ },
1531
+ "optional": true
1532
+ },
1533
+ "error": {
1534
+ "type": {
1535
+ "kind": "string"
1536
+ },
1537
+ "optional": true
1538
+ },
1539
+ "code": {
1540
+ "type": {
1541
+ "kind": "string"
1542
+ },
1543
+ "optional": true
1544
+ },
1545
+ "ms": {
1546
+ "type": {
1547
+ "kind": "number"
1548
+ }
1549
+ }
1550
+ }
1551
+ }
1552
+ },
1553
+ "watch": {
1554
+ "params": [
1555
+ {
1556
+ "kind": "string"
1557
+ },
1558
+ {
1559
+ "kind": "string"
1560
+ },
1561
+ {
1562
+ "kind": "string"
1563
+ }
1564
+ ],
1565
+ "paramNames": [
1566
+ "peer",
1567
+ "namespace",
1568
+ "event"
1569
+ ],
1570
+ "returns": {
1571
+ "kind": "object",
1572
+ "fields": {
1573
+ "watching": {
1574
+ "type": {
1575
+ "kind": "boolean"
1576
+ }
1577
+ },
1578
+ "already": {
1579
+ "type": {
1580
+ "kind": "boolean"
1581
+ }
1582
+ }
1583
+ }
1584
+ }
1585
+ },
1586
+ "unwatch": {
1587
+ "params": [
1588
+ {
1589
+ "kind": "string"
1590
+ },
1591
+ {
1592
+ "kind": "string"
1593
+ },
1594
+ {
1595
+ "kind": "string"
1596
+ }
1597
+ ],
1598
+ "paramNames": [
1599
+ "peer",
1600
+ "namespace",
1601
+ "event"
1602
+ ],
1603
+ "returns": {
1604
+ "kind": "object",
1605
+ "fields": {
1606
+ "watching": {
1607
+ "type": {
1608
+ "kind": "boolean"
1609
+ }
1610
+ },
1611
+ "already": {
1612
+ "type": {
1613
+ "kind": "boolean"
1614
+ }
1615
+ }
1616
+ }
1617
+ }
1618
+ },
1619
+ "tap": {
1620
+ "params": [
1621
+ {
1622
+ "kind": "union",
1623
+ "options": [
1624
+ {
1625
+ "kind": "ref",
1626
+ "name": "TapFilter"
1627
+ },
1628
+ {
1629
+ "kind": "literal",
1630
+ "value": null
1631
+ }
1632
+ ]
1633
+ }
1634
+ ],
1635
+ "paramNames": [
1636
+ "filter"
1637
+ ],
1638
+ "returns": {
1639
+ "kind": "ref",
1640
+ "name": "ConsoleTap"
1641
+ }
1642
+ },
1643
+ "untap": {
1644
+ "params": [
1645
+ {
1646
+ "kind": "string"
1647
+ }
1648
+ ],
1649
+ "paramNames": [
1650
+ "token"
1651
+ ],
1652
+ "returns": {
1653
+ "kind": "object",
1654
+ "fields": {
1655
+ "tapping": {
1656
+ "type": {
1657
+ "kind": "boolean"
1658
+ }
1659
+ },
1660
+ "already": {
1661
+ "type": {
1662
+ "kind": "boolean"
1663
+ }
1664
+ }
1665
+ }
1666
+ }
1667
+ },
1668
+ "taps": {
1669
+ "params": [],
1670
+ "returns": {
1671
+ "kind": "object",
1672
+ "fields": {
1673
+ "taps": {
1674
+ "type": {
1675
+ "kind": "array",
1676
+ "items": {
1677
+ "kind": "ref",
1678
+ "name": "ConsoleTap"
1679
+ }
1680
+ }
1681
+ },
1682
+ "sources": {
1683
+ "type": {
1684
+ "kind": "array",
1685
+ "items": {
1686
+ "kind": "string"
1687
+ }
1688
+ }
1689
+ }
1690
+ }
1691
+ }
1692
+ }
1693
+ },
1694
+ "events": {
1695
+ "event": {
1696
+ "params": [
1697
+ {
1698
+ "kind": "ref",
1699
+ "name": "StreamedEvent"
1700
+ }
1701
+ ]
1702
+ },
1703
+ "peer": {
1704
+ "params": [
1705
+ {
1706
+ "kind": "ref",
1707
+ "name": "PeerChange"
1708
+ }
1709
+ ]
1710
+ },
1711
+ "frame": {
1712
+ "params": [
1713
+ {
1714
+ "kind": "ref",
1715
+ "name": "TappedFrame"
1716
+ }
1717
+ ]
1718
+ },
1719
+ "problem": {
1720
+ "params": [
1721
+ {
1722
+ "kind": "ref",
1723
+ "name": "NetworkProblem"
1724
+ }
1725
+ ]
1726
+ }
1727
+ }
1728
+ }
1729
+ }
1730
+ }