@science-corporation/synapse 2.0.0 → 2.2.2

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 (127) hide show
  1. package/README.md +7 -0
  2. package/package.json +3 -2
  3. package/src/config.ts +1 -5
  4. package/src/device.ts +1 -5
  5. package/src/nodes/index.ts +0 -2
  6. package/synapse-api/README.md +1 -1
  7. package/synapse-api/api/app.proto +55 -0
  8. package/synapse-api/api/channel.proto +15 -1
  9. package/synapse-api/api/datatype.proto +97 -1
  10. package/synapse-api/api/device.proto +65 -0
  11. package/synapse-api/api/node.proto +19 -18
  12. package/synapse-api/api/nodes/application.proto +24 -0
  13. package/synapse-api/api/nodes/broadband_source.proto +1 -0
  14. package/synapse-api/api/nodes/disk_writer.proto +17 -0
  15. package/synapse-api/api/nodes/optical_stimulation.proto +29 -0
  16. package/synapse-api/api/nodes/signal_config.proto +2 -0
  17. package/synapse-api/api/performance.proto +29 -0
  18. package/synapse-api/api/query.proto +8 -0
  19. package/synapse-api/api/status.proto +6 -1
  20. package/synapse-api/api/synapse.proto +8 -31
  21. package/synapse-api/api/tap.proto +35 -0
  22. package/synapse-api/api/time.proto +53 -0
  23. package/dist/api/api.d.ts +0 -6755
  24. package/dist/api/api.d.ts.map +0 -1
  25. package/dist/api/api.js +0 -15729
  26. package/dist/api/api.js.map +0 -1
  27. package/dist/api/proto.json +0 -1144
  28. package/dist/browser.d.ts +0 -4
  29. package/dist/browser.d.ts.map +0 -1
  30. package/dist/browser.js +0 -22
  31. package/dist/browser.js.map +0 -1
  32. package/dist/config.d.ts +0 -17
  33. package/dist/config.d.ts.map +0 -1
  34. package/dist/config.js +0 -115
  35. package/dist/config.js.map +0 -1
  36. package/dist/demo.d.ts +0 -2
  37. package/dist/demo.d.ts.map +0 -1
  38. package/dist/demo.js +0 -285
  39. package/dist/demo.js.map +0 -1
  40. package/dist/device.d.ts +0 -38
  41. package/dist/device.d.ts.map +0 -1
  42. package/dist/device.js +0 -185
  43. package/dist/device.js.map +0 -1
  44. package/dist/index.d.ts +0 -7
  45. package/dist/index.d.ts.map +0 -1
  46. package/dist/index.js +0 -30
  47. package/dist/index.js.map +0 -1
  48. package/dist/node.d.ts +0 -10
  49. package/dist/node.d.ts.map +0 -1
  50. package/dist/node.js +0 -14
  51. package/dist/node.js.map +0 -1
  52. package/dist/nodes/broadband_source.d.ts +0 -11
  53. package/dist/nodes/broadband_source.d.ts.map +0 -1
  54. package/dist/nodes/broadband_source.js +0 -28
  55. package/dist/nodes/broadband_source.js.map +0 -1
  56. package/dist/nodes/disk_writer.d.ts +0 -11
  57. package/dist/nodes/disk_writer.d.ts.map +0 -1
  58. package/dist/nodes/disk_writer.js +0 -28
  59. package/dist/nodes/disk_writer.js.map +0 -1
  60. package/dist/nodes/electrical_stimulation.d.ts +0 -11
  61. package/dist/nodes/electrical_stimulation.d.ts.map +0 -1
  62. package/dist/nodes/electrical_stimulation.js +0 -28
  63. package/dist/nodes/electrical_stimulation.js.map +0 -1
  64. package/dist/nodes/index.d.ts +0 -12
  65. package/dist/nodes/index.d.ts.map +0 -1
  66. package/dist/nodes/index.js +0 -27
  67. package/dist/nodes/index.js.map +0 -1
  68. package/dist/nodes/optical_stimulation.d.ts +0 -11
  69. package/dist/nodes/optical_stimulation.d.ts.map +0 -1
  70. package/dist/nodes/optical_stimulation.js +0 -28
  71. package/dist/nodes/optical_stimulation.js.map +0 -1
  72. package/dist/nodes/spectral_filter.d.ts +0 -11
  73. package/dist/nodes/spectral_filter.d.ts.map +0 -1
  74. package/dist/nodes/spectral_filter.js +0 -28
  75. package/dist/nodes/spectral_filter.js.map +0 -1
  76. package/dist/nodes/spike_binner.d.ts +0 -11
  77. package/dist/nodes/spike_binner.d.ts.map +0 -1
  78. package/dist/nodes/spike_binner.js +0 -28
  79. package/dist/nodes/spike_binner.js.map +0 -1
  80. package/dist/nodes/spike_detector.d.ts +0 -11
  81. package/dist/nodes/spike_detector.d.ts.map +0 -1
  82. package/dist/nodes/spike_detector.js +0 -28
  83. package/dist/nodes/spike_detector.js.map +0 -1
  84. package/dist/nodes/spike_source.d.ts +0 -11
  85. package/dist/nodes/spike_source.d.ts.map +0 -1
  86. package/dist/nodes/spike_source.js +0 -28
  87. package/dist/nodes/spike_source.js.map +0 -1
  88. package/dist/nodes/stream_in.d.ts +0 -15
  89. package/dist/nodes/stream_in.d.ts.map +0 -1
  90. package/dist/nodes/stream_in.js +0 -66
  91. package/dist/nodes/stream_in.js.map +0 -1
  92. package/dist/nodes/stream_out.d.ts +0 -23
  93. package/dist/nodes/stream_out.d.ts.map +0 -1
  94. package/dist/nodes/stream_out.js +0 -105
  95. package/dist/nodes/stream_out.js.map +0 -1
  96. package/dist/utils/client.d.ts +0 -10
  97. package/dist/utils/client.d.ts.map +0 -1
  98. package/dist/utils/client.js +0 -39
  99. package/dist/utils/client.js.map +0 -1
  100. package/dist/utils/discover.d.ts +0 -10
  101. package/dist/utils/discover.d.ts.map +0 -1
  102. package/dist/utils/discover.js +0 -49
  103. package/dist/utils/discover.js.map +0 -1
  104. package/dist/utils/enum.d.ts +0 -2
  105. package/dist/utils/enum.d.ts.map +0 -1
  106. package/dist/utils/enum.js +0 -13
  107. package/dist/utils/enum.js.map +0 -1
  108. package/dist/utils/index.d.ts +0 -2
  109. package/dist/utils/index.d.ts.map +0 -1
  110. package/dist/utils/index.js +0 -6
  111. package/dist/utils/index.js.map +0 -1
  112. package/dist/utils/ip.d.ts +0 -2
  113. package/dist/utils/ip.d.ts.map +0 -1
  114. package/dist/utils/ip.js +0 -52
  115. package/dist/utils/ip.js.map +0 -1
  116. package/dist/utils/status.d.ts +0 -28
  117. package/dist/utils/status.d.ts.map +0 -1
  118. package/dist/utils/status.js +0 -54
  119. package/dist/utils/status.js.map +0 -1
  120. package/src/api/api.d.ts +0 -6755
  121. package/src/api/api.js +0 -16783
  122. package/src/api/proto.json +0 -1144
  123. package/src/demo.ts +0 -325
  124. package/src/nodes/stream_in.ts +0 -78
  125. package/src/nodes/stream_out.ts +0 -109
  126. package/synapse-api/api/nodes/stream_in.proto +0 -14
  127. package/synapse-api/api/nodes/stream_out.proto +0 -42
@@ -1,1144 +0,0 @@
1
- {
2
- "nested": {
3
- "synapse": {
4
- "nested": {
5
- "ElectrodeConfig": {
6
- "fields": {
7
- "channels": {
8
- "rule": "repeated",
9
- "type": "Channel",
10
- "id": 1
11
- },
12
- "lowCutoffHz": {
13
- "type": "float",
14
- "id": 2
15
- },
16
- "highCutoffHz": {
17
- "type": "float",
18
- "id": 3
19
- }
20
- }
21
- },
22
- "PixelConfig": {
23
- "fields": {
24
- "pixelMask": {
25
- "rule": "repeated",
26
- "type": "uint32",
27
- "id": 1
28
- }
29
- }
30
- },
31
- "SignalConfig": {
32
- "oneofs": {
33
- "signalType": {
34
- "oneof": [
35
- "electrode",
36
- "pixel"
37
- ]
38
- }
39
- },
40
- "fields": {
41
- "electrode": {
42
- "type": "ElectrodeConfig",
43
- "id": 1
44
- },
45
- "pixel": {
46
- "type": "PixelConfig",
47
- "id": 2
48
- }
49
- }
50
- },
51
- "Channel": {
52
- "fields": {
53
- "id": {
54
- "type": "uint32",
55
- "id": 1
56
- },
57
- "electrodeId": {
58
- "type": "uint32",
59
- "id": 2
60
- },
61
- "referenceId": {
62
- "type": "uint32",
63
- "id": 3
64
- }
65
- }
66
- },
67
- "SpectralFilterMethod": {
68
- "values": {
69
- "kSpectralFilterUnknown": 0,
70
- "kLowPass": 1,
71
- "kHighPass": 2,
72
- "kBandPass": 3,
73
- "kBandStop": 4
74
- }
75
- },
76
- "SpectralFilterConfig": {
77
- "fields": {
78
- "method": {
79
- "type": "SpectralFilterMethod",
80
- "id": 1
81
- },
82
- "lowCutoffHz": {
83
- "type": "float",
84
- "id": 2
85
- },
86
- "highCutoffHz": {
87
- "type": "float",
88
- "id": 3
89
- }
90
- }
91
- },
92
- "SpikeSourceConfig": {
93
- "fields": {
94
- "peripheralId": {
95
- "type": "uint32",
96
- "id": 1
97
- },
98
- "sampleRateHz": {
99
- "type": "uint32",
100
- "id": 2
101
- },
102
- "spikeWindowMs": {
103
- "type": "float",
104
- "id": 3
105
- },
106
- "gain": {
107
- "type": "float",
108
- "id": 4
109
- },
110
- "thresholdUV": {
111
- "type": "float",
112
- "id": 5
113
- },
114
- "electrodes": {
115
- "type": "ElectrodeConfig",
116
- "id": 6
117
- }
118
- }
119
- },
120
- "ElectricalStimulationConfig": {
121
- "fields": {
122
- "peripheralId": {
123
- "type": "uint32",
124
- "id": 1
125
- },
126
- "channels": {
127
- "rule": "repeated",
128
- "type": "Channel",
129
- "id": 2
130
- },
131
- "bitWidth": {
132
- "type": "uint32",
133
- "id": 3
134
- },
135
- "sampleRate": {
136
- "type": "uint32",
137
- "id": 4
138
- },
139
- "lsb": {
140
- "type": "uint32",
141
- "id": 5
142
- }
143
- }
144
- },
145
- "ElectricalStimulationStatus": {
146
- "fields": {
147
- "lsbUV": {
148
- "type": "float",
149
- "id": 1
150
- }
151
- }
152
- },
153
- "SpikeBinnerConfig": {
154
- "fields": {
155
- "binSizeMs": {
156
- "type": "uint32",
157
- "id": 1
158
- }
159
- }
160
- },
161
- "TemplateMatcher": {
162
- "fields": {
163
- "templateUV": {
164
- "rule": "repeated",
165
- "type": "uint32",
166
- "id": 1
167
- }
168
- }
169
- },
170
- "Thresholder": {
171
- "fields": {
172
- "thresholdUV": {
173
- "type": "uint32",
174
- "id": 1
175
- }
176
- }
177
- },
178
- "SpikeDetectorConfig": {
179
- "oneofs": {
180
- "config": {
181
- "oneof": [
182
- "thresholder",
183
- "templateMatcher"
184
- ]
185
- }
186
- },
187
- "fields": {
188
- "thresholder": {
189
- "type": "Thresholder",
190
- "id": 1
191
- },
192
- "templateMatcher": {
193
- "type": "TemplateMatcher",
194
- "id": 2
195
- },
196
- "samplesPerSpike": {
197
- "type": "uint32",
198
- "id": 3
199
- }
200
- }
201
- },
202
- "StreamInConfig": {
203
- "fields": {
204
- "dataType": {
205
- "type": "DataType",
206
- "id": 1
207
- },
208
- "shape": {
209
- "rule": "repeated",
210
- "type": "uint32",
211
- "id": 2
212
- }
213
- }
214
- },
215
- "StreamInStatus": {
216
- "fields": {
217
- "throughputMbps": {
218
- "type": "float",
219
- "id": 1
220
- }
221
- }
222
- },
223
- "DataType": {
224
- "values": {
225
- "kDataTypeUnknown": 0,
226
- "kAny": 1,
227
- "kBroadband": 2,
228
- "kSpiketrain": 3,
229
- "kTimestamps": 4,
230
- "kImage": 5,
231
- "kWaveforms": 6
232
- }
233
- },
234
- "DiskWriterConfig": {
235
- "fields": {
236
- "filename": {
237
- "type": "string",
238
- "id": 1
239
- }
240
- }
241
- },
242
- "UDPUnicastConfig": {
243
- "fields": {
244
- "destinationAddress": {
245
- "type": "string",
246
- "id": 1
247
- },
248
- "destinationPort": {
249
- "type": "uint32",
250
- "id": 2
251
- }
252
- }
253
- },
254
- "StreamOutConfig": {
255
- "oneofs": {
256
- "transport": {
257
- "oneof": [
258
- "udpUnicast"
259
- ]
260
- }
261
- },
262
- "fields": {
263
- "label": {
264
- "type": "string",
265
- "id": 1
266
- },
267
- "udpUnicast": {
268
- "type": "UDPUnicastConfig",
269
- "id": 2
270
- }
271
- }
272
- },
273
- "StreamOutStatus": {
274
- "fields": {
275
- "throughputMbps": {
276
- "type": "float",
277
- "id": 1
278
- },
279
- "failedSendCount": {
280
- "type": "uint64",
281
- "id": 2
282
- }
283
- }
284
- },
285
- "ElectrodeStatus": {
286
- "fields": {
287
- "lsbUV": {
288
- "type": "float",
289
- "id": 1
290
- }
291
- }
292
- },
293
- "PixelStatus": {
294
- "fields": {}
295
- },
296
- "SignalStatus": {
297
- "oneofs": {
298
- "signalType": {
299
- "oneof": [
300
- "electrode",
301
- "pixel"
302
- ]
303
- }
304
- },
305
- "fields": {
306
- "electrode": {
307
- "type": "ElectrodeStatus",
308
- "id": 1
309
- },
310
- "pixel": {
311
- "type": "PixelStatus",
312
- "id": 2
313
- }
314
- }
315
- },
316
- "BroadbandSourceConfig": {
317
- "fields": {
318
- "peripheralId": {
319
- "type": "uint32",
320
- "id": 1
321
- },
322
- "bitWidth": {
323
- "type": "uint32",
324
- "id": 2
325
- },
326
- "sampleRateHz": {
327
- "type": "uint32",
328
- "id": 3
329
- },
330
- "gain": {
331
- "type": "float",
332
- "id": 4
333
- },
334
- "signal": {
335
- "type": "SignalConfig",
336
- "id": 5
337
- }
338
- }
339
- },
340
- "BroadbandSourceStatus": {
341
- "fields": {
342
- "status": {
343
- "type": "SignalStatus",
344
- "id": 1
345
- }
346
- }
347
- },
348
- "OpticalStimulationConfig": {
349
- "fields": {
350
- "peripheralId": {
351
- "type": "uint32",
352
- "id": 1
353
- },
354
- "pixelMask": {
355
- "rule": "repeated",
356
- "type": "uint32",
357
- "id": 2
358
- },
359
- "bitWidth": {
360
- "type": "uint32",
361
- "id": 3
362
- },
363
- "frameRate": {
364
- "type": "uint32",
365
- "id": 4
366
- },
367
- "gain": {
368
- "type": "float",
369
- "id": 5
370
- }
371
- }
372
- },
373
- "Peripheral": {
374
- "fields": {
375
- "name": {
376
- "type": "string",
377
- "id": 1
378
- },
379
- "vendor": {
380
- "type": "string",
381
- "id": 2
382
- },
383
- "peripheralId": {
384
- "type": "uint32",
385
- "id": 3
386
- },
387
- "type": {
388
- "type": "Type",
389
- "id": 4
390
- },
391
- "address": {
392
- "type": "string",
393
- "id": 5
394
- }
395
- },
396
- "nested": {
397
- "Type": {
398
- "values": {
399
- "kUnknown": 0,
400
- "kBroadbandSource": 1,
401
- "kElectricalStimulation": 2,
402
- "kOpticalStimulation": 3,
403
- "kSpikeSource": 4
404
- }
405
- }
406
- }
407
- },
408
- "DeviceInfo": {
409
- "fields": {
410
- "name": {
411
- "type": "string",
412
- "id": 1
413
- },
414
- "serial": {
415
- "type": "string",
416
- "id": 2
417
- },
418
- "synapseVersion": {
419
- "type": "uint32",
420
- "id": 3
421
- },
422
- "firmwareVersion": {
423
- "type": "uint32",
424
- "id": 4
425
- },
426
- "status": {
427
- "type": "Status",
428
- "id": 5
429
- },
430
- "peripherals": {
431
- "rule": "repeated",
432
- "type": "Peripheral",
433
- "id": 6
434
- },
435
- "configuration": {
436
- "type": "DeviceConfiguration",
437
- "id": 7
438
- }
439
- }
440
- },
441
- "DeviceConfiguration": {
442
- "fields": {
443
- "nodes": {
444
- "rule": "repeated",
445
- "type": "NodeConfig",
446
- "id": 1
447
- },
448
- "connections": {
449
- "rule": "repeated",
450
- "type": "NodeConnection",
451
- "id": 2
452
- }
453
- }
454
- },
455
- "SynapseDevice": {
456
- "methods": {
457
- "Info": {
458
- "requestType": "google.protobuf.Empty",
459
- "responseType": "DeviceInfo"
460
- },
461
- "Configure": {
462
- "requestType": "DeviceConfiguration",
463
- "responseType": "Status"
464
- },
465
- "Start": {
466
- "requestType": "google.protobuf.Empty",
467
- "responseType": "Status"
468
- },
469
- "Stop": {
470
- "requestType": "google.protobuf.Empty",
471
- "responseType": "Status"
472
- },
473
- "Query": {
474
- "requestType": "QueryRequest",
475
- "responseType": "QueryResponse"
476
- },
477
- "StreamQuery": {
478
- "requestType": "StreamQueryRequest",
479
- "responseType": "StreamQueryResponse",
480
- "responseStream": true
481
- },
482
- "ListFiles": {
483
- "requestType": "google.protobuf.Empty",
484
- "responseType": "ListFilesResponse"
485
- },
486
- "WriteFile": {
487
- "requestType": "WriteFileRequest",
488
- "responseType": "WriteFileResponse"
489
- },
490
- "ReadFile": {
491
- "requestType": "ReadFileRequest",
492
- "responseType": "ReadFileResponse",
493
- "responseStream": true
494
- },
495
- "DeleteFile": {
496
- "requestType": "DeleteFileRequest",
497
- "responseType": "DeleteFileResponse"
498
- },
499
- "GetLogs": {
500
- "requestType": "LogQueryRequest",
501
- "responseType": "LogQueryResponse"
502
- },
503
- "TailLogs": {
504
- "requestType": "TailLogsRequest",
505
- "responseType": "LogEntry",
506
- "responseStream": true
507
- }
508
- }
509
- },
510
- "NodeType": {
511
- "values": {
512
- "kNodeTypeUnknown": 0,
513
- "kStreamIn": 1,
514
- "kStreamOut": 2,
515
- "kBroadbandSource": 3,
516
- "kElectricalStimulation": 4,
517
- "kOpticalStimulation": 5,
518
- "kSpikeDetector": 6,
519
- "kSpikeSource": 7,
520
- "kSpectralFilter": 8,
521
- "kDiskWriter": 9,
522
- "kSpikeBinner": 10
523
- }
524
- },
525
- "NodeConfig": {
526
- "oneofs": {
527
- "config": {
528
- "oneof": [
529
- "streamOut",
530
- "streamIn",
531
- "broadbandSource",
532
- "electricalStimulation",
533
- "opticalStimulation",
534
- "spikeDetector",
535
- "spectralFilter",
536
- "diskWriter",
537
- "spikeSource",
538
- "spikeBinner"
539
- ]
540
- }
541
- },
542
- "fields": {
543
- "type": {
544
- "type": "NodeType",
545
- "id": 1
546
- },
547
- "id": {
548
- "type": "uint32",
549
- "id": 2
550
- },
551
- "streamOut": {
552
- "type": "StreamOutConfig",
553
- "id": 3
554
- },
555
- "streamIn": {
556
- "type": "StreamInConfig",
557
- "id": 4
558
- },
559
- "broadbandSource": {
560
- "type": "BroadbandSourceConfig",
561
- "id": 5
562
- },
563
- "electricalStimulation": {
564
- "type": "ElectricalStimulationConfig",
565
- "id": 6
566
- },
567
- "opticalStimulation": {
568
- "type": "OpticalStimulationConfig",
569
- "id": 8
570
- },
571
- "spikeDetector": {
572
- "type": "SpikeDetectorConfig",
573
- "id": 9
574
- },
575
- "spectralFilter": {
576
- "type": "SpectralFilterConfig",
577
- "id": 10
578
- },
579
- "diskWriter": {
580
- "type": "DiskWriterConfig",
581
- "id": 11
582
- },
583
- "spikeSource": {
584
- "type": "SpikeSourceConfig",
585
- "id": 12
586
- },
587
- "spikeBinner": {
588
- "type": "SpikeBinnerConfig",
589
- "id": 13
590
- }
591
- }
592
- },
593
- "NodeStatus": {
594
- "oneofs": {
595
- "status": {
596
- "oneof": [
597
- "streamOut",
598
- "broadbandSource",
599
- "streamIn",
600
- "electricalStimulation"
601
- ]
602
- }
603
- },
604
- "fields": {
605
- "type": {
606
- "type": "NodeType",
607
- "id": 1
608
- },
609
- "id": {
610
- "type": "uint32",
611
- "id": 2
612
- },
613
- "streamOut": {
614
- "type": "StreamOutStatus",
615
- "id": 3
616
- },
617
- "broadbandSource": {
618
- "type": "BroadbandSourceStatus",
619
- "id": 4
620
- },
621
- "streamIn": {
622
- "type": "StreamInStatus",
623
- "id": 5
624
- },
625
- "electricalStimulation": {
626
- "type": "ElectricalStimulationStatus",
627
- "id": 6
628
- }
629
- }
630
- },
631
- "NodeConnection": {
632
- "fields": {
633
- "srcNodeId": {
634
- "type": "uint32",
635
- "id": 1
636
- },
637
- "dstNodeId": {
638
- "type": "uint32",
639
- "id": 2
640
- }
641
- }
642
- },
643
- "NodeSocket": {
644
- "fields": {
645
- "nodeId": {
646
- "type": "uint32",
647
- "id": 1
648
- },
649
- "bind": {
650
- "type": "string",
651
- "id": 2
652
- },
653
- "dataType": {
654
- "type": "DataType",
655
- "id": 3
656
- },
657
- "type": {
658
- "type": "NodeType",
659
- "id": 4
660
- },
661
- "label": {
662
- "type": "string",
663
- "id": 5
664
- },
665
- "shape": {
666
- "rule": "repeated",
667
- "type": "uint32",
668
- "id": 6
669
- }
670
- }
671
- },
672
- "SampleQuery": {
673
- "fields": {
674
- "channels": {
675
- "rule": "repeated",
676
- "type": "Channel",
677
- "id": 1
678
- },
679
- "sampleCount": {
680
- "type": "uint32",
681
- "id": 2
682
- }
683
- }
684
- },
685
- "ImpedanceQuery": {
686
- "fields": {
687
- "electrodeIds": {
688
- "rule": "repeated",
689
- "type": "uint32",
690
- "id": 1
691
- }
692
- }
693
- },
694
- "SelfTestQuery": {
695
- "fields": {
696
- "peripheralId": {
697
- "type": "uint32",
698
- "id": 1
699
- }
700
- }
701
- },
702
- "ImpedanceMeasurement": {
703
- "fields": {
704
- "electrodeId": {
705
- "type": "uint32",
706
- "id": 1
707
- },
708
- "magnitude": {
709
- "type": "float",
710
- "id": 2
711
- },
712
- "phase": {
713
- "type": "float",
714
- "id": 3
715
- }
716
- }
717
- },
718
- "ImpedanceResponse": {
719
- "fields": {
720
- "measurements": {
721
- "rule": "repeated",
722
- "type": "ImpedanceMeasurement",
723
- "id": 1
724
- }
725
- }
726
- },
727
- "SelfTestItem": {
728
- "fields": {
729
- "testName": {
730
- "type": "string",
731
- "id": 1
732
- },
733
- "passed": {
734
- "type": "bool",
735
- "id": 2
736
- },
737
- "testData": {
738
- "rule": "repeated",
739
- "type": "uint32",
740
- "id": 3
741
- },
742
- "testReport": {
743
- "type": "string",
744
- "id": 4
745
- }
746
- }
747
- },
748
- "SelfTestResponse": {
749
- "fields": {
750
- "allPassed": {
751
- "type": "bool",
752
- "id": 1
753
- },
754
- "tests": {
755
- "rule": "repeated",
756
- "type": "SelfTestItem",
757
- "id": 2
758
- }
759
- }
760
- },
761
- "QueryRequest": {
762
- "oneofs": {
763
- "query": {
764
- "oneof": [
765
- "impedanceQuery",
766
- "sampleQuery",
767
- "selfTestQuery"
768
- ]
769
- }
770
- },
771
- "fields": {
772
- "queryType": {
773
- "type": "QueryType",
774
- "id": 1
775
- },
776
- "impedanceQuery": {
777
- "type": "ImpedanceQuery",
778
- "id": 2
779
- },
780
- "sampleQuery": {
781
- "type": "SampleQuery",
782
- "id": 3
783
- },
784
- "selfTestQuery": {
785
- "type": "SelfTestQuery",
786
- "id": 4
787
- }
788
- },
789
- "nested": {
790
- "QueryType": {
791
- "values": {
792
- "kNone": 0,
793
- "kImpedance": 1,
794
- "kSample": 2,
795
- "kSelfTest": 3
796
- }
797
- }
798
- }
799
- },
800
- "StreamQueryRequest": {
801
- "fields": {
802
- "request": {
803
- "type": "QueryRequest",
804
- "id": 1
805
- }
806
- }
807
- },
808
- "QueryResponse": {
809
- "oneofs": {
810
- "response": {
811
- "oneof": [
812
- "impedanceResponse",
813
- "selfTestResponse"
814
- ]
815
- }
816
- },
817
- "fields": {
818
- "status": {
819
- "type": "Status",
820
- "id": 1
821
- },
822
- "data": {
823
- "rule": "repeated",
824
- "type": "uint32",
825
- "id": 2
826
- },
827
- "impedanceResponse": {
828
- "type": "ImpedanceResponse",
829
- "id": 3
830
- },
831
- "selfTestResponse": {
832
- "type": "SelfTestResponse",
833
- "id": 4
834
- }
835
- }
836
- },
837
- "StreamQueryResponse": {
838
- "oneofs": {
839
- "response": {
840
- "oneof": [
841
- "impedance",
842
- "selfTest"
843
- ]
844
- }
845
- },
846
- "fields": {
847
- "code": {
848
- "type": "StatusCode",
849
- "id": 1
850
- },
851
- "message": {
852
- "type": "string",
853
- "id": 2
854
- },
855
- "timestampNs": {
856
- "type": "uint64",
857
- "id": 3
858
- },
859
- "impedance": {
860
- "type": "ImpedanceResponse",
861
- "id": 4
862
- },
863
- "selfTest": {
864
- "type": "SelfTestResponse",
865
- "id": 5
866
- }
867
- }
868
- },
869
- "StatusCode": {
870
- "values": {
871
- "kOk": 0,
872
- "kUndefinedError": 1,
873
- "kInvalidConfiguration": 2,
874
- "kFailedPrecondition": 3,
875
- "kUnimplemented": 4,
876
- "kInternalError": 5,
877
- "kPermissionDenied": 6,
878
- "kQueryFailed": 7
879
- }
880
- },
881
- "DeviceState": {
882
- "values": {
883
- "kUnknown": 0,
884
- "kInitializing": 1,
885
- "kStopped": 2,
886
- "kRunning": 3,
887
- "kError": 4
888
- }
889
- },
890
- "DeviceStorage": {
891
- "fields": {
892
- "totalGb": {
893
- "type": "float",
894
- "id": 1
895
- },
896
- "usedGb": {
897
- "type": "float",
898
- "id": 2
899
- }
900
- }
901
- },
902
- "DevicePower": {
903
- "fields": {
904
- "batteryLevelPercent": {
905
- "type": "float",
906
- "id": 1
907
- },
908
- "isCharging": {
909
- "type": "bool",
910
- "id": 2
911
- }
912
- }
913
- },
914
- "SignalChainStatus": {
915
- "fields": {
916
- "nodes": {
917
- "rule": "repeated",
918
- "type": "NodeStatus",
919
- "id": 1
920
- }
921
- }
922
- },
923
- "Status": {
924
- "fields": {
925
- "message": {
926
- "type": "string",
927
- "id": 1
928
- },
929
- "code": {
930
- "type": "StatusCode",
931
- "id": 2
932
- },
933
- "state": {
934
- "type": "DeviceState",
935
- "id": 3
936
- },
937
- "sockets": {
938
- "rule": "repeated",
939
- "type": "NodeSocket",
940
- "id": 4
941
- },
942
- "power": {
943
- "type": "DevicePower",
944
- "id": 5
945
- },
946
- "storage": {
947
- "type": "DeviceStorage",
948
- "id": 6
949
- },
950
- "signalChain": {
951
- "type": "SignalChainStatus",
952
- "id": 7
953
- }
954
- }
955
- },
956
- "ListFilesResponse": {
957
- "fields": {
958
- "files": {
959
- "rule": "repeated",
960
- "type": "File",
961
- "id": 1
962
- }
963
- },
964
- "nested": {
965
- "File": {
966
- "fields": {
967
- "name": {
968
- "type": "string",
969
- "id": 1
970
- },
971
- "size": {
972
- "type": "uint32",
973
- "id": 2
974
- },
975
- "created": {
976
- "type": "uint32",
977
- "id": 3
978
- },
979
- "modified": {
980
- "type": "uint32",
981
- "id": 4
982
- },
983
- "type": {
984
- "type": "string",
985
- "id": 5
986
- }
987
- }
988
- }
989
- }
990
- },
991
- "WriteFileRequest": {
992
- "fields": {
993
- "name": {
994
- "type": "string",
995
- "id": 1
996
- },
997
- "data": {
998
- "type": "bytes",
999
- "id": 2
1000
- }
1001
- }
1002
- },
1003
- "WriteFileResponse": {
1004
- "fields": {
1005
- "name": {
1006
- "type": "string",
1007
- "id": 1
1008
- },
1009
- "bytesWritten": {
1010
- "type": "uint64",
1011
- "id": 2
1012
- }
1013
- }
1014
- },
1015
- "ReadFileRequest": {
1016
- "fields": {
1017
- "name": {
1018
- "type": "string",
1019
- "id": 1
1020
- }
1021
- }
1022
- },
1023
- "ReadFileResponse": {
1024
- "fields": {
1025
- "name": {
1026
- "type": "string",
1027
- "id": 1
1028
- },
1029
- "data": {
1030
- "type": "bytes",
1031
- "id": 2
1032
- },
1033
- "startOffset": {
1034
- "type": "uint32",
1035
- "id": 3
1036
- },
1037
- "fileTotalLength": {
1038
- "type": "uint32",
1039
- "id": 4
1040
- }
1041
- }
1042
- },
1043
- "DeleteFileRequest": {
1044
- "fields": {
1045
- "name": {
1046
- "type": "string",
1047
- "id": 1
1048
- }
1049
- }
1050
- },
1051
- "DeleteFileResponse": {
1052
- "fields": {
1053
- "name": {
1054
- "type": "string",
1055
- "id": 1
1056
- },
1057
- "statusCode": {
1058
- "type": "StatusCode",
1059
- "id": 2
1060
- }
1061
- }
1062
- },
1063
- "LogLevel": {
1064
- "values": {
1065
- "LOG_LEVEL_UNKNOWN": 0,
1066
- "LOG_LEVEL_DEBUG": 1,
1067
- "LOG_LEVEL_INFO": 2,
1068
- "LOG_LEVEL_WARNING": 3,
1069
- "LOG_LEVEL_ERROR": 4,
1070
- "LOG_LEVEL_CRITICAL": 5
1071
- }
1072
- },
1073
- "LogEntry": {
1074
- "fields": {
1075
- "timestampNs": {
1076
- "type": "uint64",
1077
- "id": 1
1078
- },
1079
- "level": {
1080
- "type": "LogLevel",
1081
- "id": 2
1082
- },
1083
- "source": {
1084
- "type": "string",
1085
- "id": 3
1086
- },
1087
- "message": {
1088
- "type": "string",
1089
- "id": 4
1090
- }
1091
- }
1092
- },
1093
- "LogQueryRequest": {
1094
- "fields": {
1095
- "startTimeNs": {
1096
- "type": "uint64",
1097
- "id": 1
1098
- },
1099
- "endTimeNs": {
1100
- "type": "uint64",
1101
- "id": 2
1102
- },
1103
- "sinceMs": {
1104
- "type": "uint64",
1105
- "id": 3
1106
- },
1107
- "minLevel": {
1108
- "type": "LogLevel",
1109
- "id": 4
1110
- }
1111
- }
1112
- },
1113
- "LogQueryResponse": {
1114
- "fields": {
1115
- "entries": {
1116
- "rule": "repeated",
1117
- "type": "LogEntry",
1118
- "id": 1
1119
- }
1120
- }
1121
- },
1122
- "TailLogsRequest": {
1123
- "fields": {
1124
- "minLevel": {
1125
- "type": "LogLevel",
1126
- "id": 1
1127
- }
1128
- }
1129
- }
1130
- }
1131
- },
1132
- "google": {
1133
- "nested": {
1134
- "protobuf": {
1135
- "nested": {
1136
- "Empty": {
1137
- "fields": {}
1138
- }
1139
- }
1140
- }
1141
- }
1142
- }
1143
- }
1144
- }