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