@science-corporation/synapse 0.9.0 → 0.12.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.
- package/README.md +40 -18
- package/dist/api/api.d.ts +3881 -1739
- package/dist/api/api.js +10023 -5111
- package/dist/api/api.js.map +1 -1
- package/dist/api/proto.json +370 -63
- package/dist/api-science-device/api.d.ts +3 -0
- package/dist/api-science-device/api.d.ts.map +1 -0
- package/dist/api-science-device/api.js +3822 -0
- package/dist/api-science-device/api.js.map +1 -0
- package/dist/api-science-device/proto.json +258 -0
- package/dist/browser.d.ts +4 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +22 -0
- package/dist/browser.js.map +1 -0
- package/dist/config.d.ts +5 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +25 -17
- package/dist/config.js.map +1 -1
- package/dist/demo.js +42 -38
- package/dist/demo.js.map +1 -1
- package/dist/device.d.ts +20 -5
- package/dist/device.d.ts.map +1 -1
- package/dist/device.js +75 -27
- package/dist/device.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/nodejs.d.ts +8 -0
- package/dist/nodejs.d.ts.map +1 -0
- package/dist/nodejs.js +32 -0
- package/dist/nodejs.js.map +1 -0
- package/dist/nodes/broadband_source.d.ts +11 -0
- package/dist/nodes/broadband_source.d.ts.map +1 -0
- package/dist/nodes/{optical_broadband.js → broadband_source.js} +9 -9
- package/dist/nodes/broadband_source.js.map +1 -0
- package/dist/nodes/index.d.ts +3 -2
- package/dist/nodes/index.d.ts.map +1 -1
- package/dist/nodes/index.js +5 -5
- package/dist/nodes/index.js.map +1 -1
- package/dist/nodes/spike_source.d.ts +11 -0
- package/dist/nodes/spike_source.d.ts.map +1 -0
- package/dist/nodes/{electrical_broadband.js → spike_source.js} +9 -9
- package/dist/nodes/spike_source.js.map +1 -0
- package/dist/nodes/stream_in.d.ts +0 -4
- package/dist/nodes/stream_in.d.ts.map +1 -1
- package/dist/nodes/stream_in.js +1 -1
- package/dist/nodes/stream_in.js.map +1 -1
- package/dist/nodes/stream_out.d.ts +2 -2
- package/dist/nodes/stream_out.d.ts.map +1 -1
- package/dist/nodes/stream_out.js +2 -2
- package/dist/nodes/stream_out.js.map +1 -1
- package/dist/science-device-api/api.d.ts +3 -0
- package/dist/science-device-api/api.d.ts.map +1 -0
- package/dist/science-device-api/api.js +3822 -0
- package/dist/science-device-api/api.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +19 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +19 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/client.d.ts +8 -1
- package/dist/utils/client.d.ts.map +1 -1
- package/dist/utils/client.js +30 -16
- package/dist/utils/client.js.map +1 -1
- package/dist/utils/device-management.d.ts +37 -0
- package/dist/utils/device-management.d.ts.map +1 -0
- package/dist/utils/device-management.js +126 -0
- package/dist/utils/device-management.js.map +1 -0
- package/dist/utils/discover.d.ts +3 -8
- package/dist/utils/discover.d.ts.map +1 -1
- package/dist/utils/discover.js +17 -32
- package/dist/utils/discover.js.map +1 -1
- package/dist/utils/enum.d.ts +1 -1
- package/dist/utils/enum.d.ts.map +1 -1
- package/dist/utils/enum.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/status.d.ts +28 -0
- package/dist/utils/status.d.ts.map +1 -0
- package/dist/utils/status.js +54 -0
- package/dist/utils/status.js.map +1 -0
- package/package.json +35 -9
- package/scripts/postinstall.sh +95 -0
- package/src/api/api.d.ts +3881 -1739
- package/src/api/api.js +10524 -5282
- package/src/api/proto.json +370 -63
- package/src/browser.ts +4 -0
- package/src/config.ts +31 -20
- package/src/demo.ts +43 -33
- package/src/device.ts +84 -30
- package/src/index.ts +4 -1
- package/src/nodes/broadband_source.ts +30 -0
- package/src/nodes/index.ts +4 -2
- package/src/nodes/spike_source.ts +30 -0
- package/src/nodes/stream_in.ts +1 -6
- package/src/nodes/stream_out.ts +4 -4
- package/src/utils/client.ts +38 -13
- package/src/utils/discover.ts +25 -45
- package/src/utils/enum.ts +1 -1
- package/src/utils/index.ts +1 -1
- package/src/utils/status.ts +57 -0
- package/synapse-api/.github/workflows/proto-check.yaml +33 -0
- package/synapse-api/COPYRIGHT +1 -0
- package/synapse-api/README.md +1 -1
- package/synapse-api/api/logging.proto +44 -0
- package/synapse-api/api/node.proto +22 -8
- package/synapse-api/api/nodes/broadband_source.proto +20 -0
- package/synapse-api/api/nodes/disk_writer.proto +7 -0
- package/synapse-api/api/nodes/electrical_stimulation.proto +4 -0
- package/synapse-api/api/nodes/signal_config.proto +22 -0
- package/synapse-api/api/nodes/signal_status.proto +18 -0
- package/synapse-api/api/nodes/spike_source.proto +15 -0
- package/synapse-api/api/nodes/stream_in.proto +5 -0
- package/synapse-api/api/nodes/stream_out.proto +4 -0
- package/synapse-api/api/query.proto +19 -0
- package/synapse-api/api/status.proto +6 -0
- package/synapse-api/api/synapse.proto +6 -2
- package/synapse-api/build.sh +17 -0
- package/dist/channel_mask.d.ts +0 -7
- package/dist/channel_mask.d.ts.map +0 -1
- package/dist/channel_mask.js +0 -14
- package/dist/channel_mask.js.map +0 -1
- package/dist/nodes/electrical_broadband.d.ts +0 -11
- package/dist/nodes/electrical_broadband.d.ts.map +0 -1
- package/dist/nodes/electrical_broadband.js.map +0 -1
- package/dist/nodes/optical_broadband.d.ts +0 -11
- package/dist/nodes/optical_broadband.d.ts.map +0 -1
- package/dist/nodes/optical_broadband.js.map +0 -1
- package/src/nodes/electrical_broadband.ts +0 -30
- package/src/nodes/optical_broadband.ts +0 -30
- package/synapse-api/api/nodes/electrical_broadband.proto +0 -15
- package/synapse-api/api/nodes/optical_broadband.proto +0 -11
package/dist/api/proto.json
CHANGED
|
@@ -2,6 +2,68 @@
|
|
|
2
2
|
"nested": {
|
|
3
3
|
"synapse": {
|
|
4
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
|
+
},
|
|
5
67
|
"SpectralFilterMethod": {
|
|
6
68
|
"values": {
|
|
7
69
|
"kSpectralFilterUnknown": 0,
|
|
@@ -27,48 +89,35 @@
|
|
|
27
89
|
}
|
|
28
90
|
}
|
|
29
91
|
},
|
|
30
|
-
"
|
|
92
|
+
"SpikeSourceConfig": {
|
|
31
93
|
"fields": {
|
|
32
94
|
"peripheralId": {
|
|
33
95
|
"type": "uint32",
|
|
34
96
|
"id": 1
|
|
35
97
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"type": "Channel",
|
|
98
|
+
"sampleRateHz": {
|
|
99
|
+
"type": "uint32",
|
|
39
100
|
"id": 2
|
|
40
101
|
},
|
|
41
|
-
"
|
|
42
|
-
"type": "
|
|
102
|
+
"spikeWindowMs": {
|
|
103
|
+
"type": "float",
|
|
43
104
|
"id": 3
|
|
44
105
|
},
|
|
45
|
-
"
|
|
46
|
-
"type": "
|
|
106
|
+
"gain": {
|
|
107
|
+
"type": "float",
|
|
47
108
|
"id": 4
|
|
48
109
|
},
|
|
49
|
-
"
|
|
50
|
-
"type": "
|
|
110
|
+
"thresholdUV": {
|
|
111
|
+
"type": "float",
|
|
51
112
|
"id": 5
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"Channel": {
|
|
56
|
-
"fields": {
|
|
57
|
-
"id": {
|
|
58
|
-
"type": "uint32",
|
|
59
|
-
"id": 1
|
|
60
113
|
},
|
|
61
|
-
"
|
|
62
|
-
"type": "
|
|
63
|
-
"id":
|
|
64
|
-
},
|
|
65
|
-
"referenceId": {
|
|
66
|
-
"type": "uint32",
|
|
67
|
-
"id": 3
|
|
114
|
+
"electrodes": {
|
|
115
|
+
"type": "ElectrodeConfig",
|
|
116
|
+
"id": 6
|
|
68
117
|
}
|
|
69
118
|
}
|
|
70
119
|
},
|
|
71
|
-
"
|
|
120
|
+
"ElectricalStimulationConfig": {
|
|
72
121
|
"fields": {
|
|
73
122
|
"peripheralId": {
|
|
74
123
|
"type": "uint32",
|
|
@@ -87,17 +136,17 @@
|
|
|
87
136
|
"type": "uint32",
|
|
88
137
|
"id": 4
|
|
89
138
|
},
|
|
90
|
-
"
|
|
91
|
-
"type": "
|
|
139
|
+
"lsb": {
|
|
140
|
+
"type": "uint32",
|
|
92
141
|
"id": 5
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"ElectricalStimulationStatus": {
|
|
146
|
+
"fields": {
|
|
147
|
+
"lsbUV": {
|
|
99
148
|
"type": "float",
|
|
100
|
-
"id":
|
|
149
|
+
"id": 1
|
|
101
150
|
}
|
|
102
151
|
}
|
|
103
152
|
},
|
|
@@ -140,6 +189,19 @@
|
|
|
140
189
|
"dataType": {
|
|
141
190
|
"type": "DataType",
|
|
142
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
|
|
143
205
|
}
|
|
144
206
|
}
|
|
145
207
|
},
|
|
@@ -153,6 +215,14 @@
|
|
|
153
215
|
"kImage": 5
|
|
154
216
|
}
|
|
155
217
|
},
|
|
218
|
+
"DiskWriterConfig": {
|
|
219
|
+
"fields": {
|
|
220
|
+
"filename": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"id": 1
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
156
226
|
"StreamOutConfig": {
|
|
157
227
|
"fields": {
|
|
158
228
|
"label": {
|
|
@@ -165,31 +235,77 @@
|
|
|
165
235
|
}
|
|
166
236
|
}
|
|
167
237
|
},
|
|
168
|
-
"
|
|
238
|
+
"StreamOutStatus": {
|
|
239
|
+
"fields": {
|
|
240
|
+
"throughputMbps": {
|
|
241
|
+
"type": "float",
|
|
242
|
+
"id": 1
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"ElectrodeStatus": {
|
|
247
|
+
"fields": {
|
|
248
|
+
"lsbUV": {
|
|
249
|
+
"type": "float",
|
|
250
|
+
"id": 1
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"PixelStatus": {
|
|
255
|
+
"fields": {}
|
|
256
|
+
},
|
|
257
|
+
"SignalStatus": {
|
|
258
|
+
"oneofs": {
|
|
259
|
+
"signalType": {
|
|
260
|
+
"oneof": [
|
|
261
|
+
"electrode",
|
|
262
|
+
"pixel"
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"fields": {
|
|
267
|
+
"electrode": {
|
|
268
|
+
"type": "ElectrodeStatus",
|
|
269
|
+
"id": 1
|
|
270
|
+
},
|
|
271
|
+
"pixel": {
|
|
272
|
+
"type": "PixelStatus",
|
|
273
|
+
"id": 2
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"BroadbandSourceConfig": {
|
|
169
278
|
"fields": {
|
|
170
279
|
"peripheralId": {
|
|
171
280
|
"type": "uint32",
|
|
172
281
|
"id": 1
|
|
173
282
|
},
|
|
174
|
-
"
|
|
175
|
-
"rule": "repeated",
|
|
283
|
+
"bitWidth": {
|
|
176
284
|
"type": "uint32",
|
|
177
285
|
"id": 2
|
|
178
286
|
},
|
|
179
|
-
"
|
|
287
|
+
"sampleRateHz": {
|
|
180
288
|
"type": "uint32",
|
|
181
289
|
"id": 3
|
|
182
290
|
},
|
|
183
|
-
"
|
|
184
|
-
"type": "
|
|
291
|
+
"gain": {
|
|
292
|
+
"type": "float",
|
|
185
293
|
"id": 4
|
|
186
294
|
},
|
|
187
|
-
"
|
|
188
|
-
"type": "
|
|
295
|
+
"signal": {
|
|
296
|
+
"type": "SignalConfig",
|
|
189
297
|
"id": 5
|
|
190
298
|
}
|
|
191
299
|
}
|
|
192
300
|
},
|
|
301
|
+
"BroadbandSourceStatus": {
|
|
302
|
+
"fields": {
|
|
303
|
+
"status": {
|
|
304
|
+
"type": "SignalStatus",
|
|
305
|
+
"id": 1
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
},
|
|
193
309
|
"OpticalStimulationConfig": {
|
|
194
310
|
"fields": {
|
|
195
311
|
"peripheralId": {
|
|
@@ -232,16 +348,20 @@
|
|
|
232
348
|
"type": {
|
|
233
349
|
"type": "Type",
|
|
234
350
|
"id": 4
|
|
351
|
+
},
|
|
352
|
+
"address": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"id": 5
|
|
235
355
|
}
|
|
236
356
|
},
|
|
237
357
|
"nested": {
|
|
238
358
|
"Type": {
|
|
239
359
|
"values": {
|
|
240
360
|
"kUnknown": 0,
|
|
241
|
-
"
|
|
361
|
+
"kBroadbandSource": 1,
|
|
242
362
|
"kElectricalStimulation": 2,
|
|
243
363
|
"kOpticalStimulation": 3,
|
|
244
|
-
"
|
|
364
|
+
"kSpikeSource": 4
|
|
245
365
|
}
|
|
246
366
|
}
|
|
247
367
|
}
|
|
@@ -331,6 +451,15 @@
|
|
|
331
451
|
"DeleteFile": {
|
|
332
452
|
"requestType": "DeleteFileRequest",
|
|
333
453
|
"responseType": "DeleteFileResponse"
|
|
454
|
+
},
|
|
455
|
+
"GetLogs": {
|
|
456
|
+
"requestType": "LogQueryRequest",
|
|
457
|
+
"responseType": "LogQueryResponse"
|
|
458
|
+
},
|
|
459
|
+
"TailLogs": {
|
|
460
|
+
"requestType": "TailLogsRequest",
|
|
461
|
+
"responseType": "LogEntry",
|
|
462
|
+
"responseStream": true
|
|
334
463
|
}
|
|
335
464
|
}
|
|
336
465
|
},
|
|
@@ -339,12 +468,13 @@
|
|
|
339
468
|
"kNodeTypeUnknown": 0,
|
|
340
469
|
"kStreamIn": 1,
|
|
341
470
|
"kStreamOut": 2,
|
|
342
|
-
"
|
|
471
|
+
"kBroadbandSource": 3,
|
|
343
472
|
"kElectricalStimulation": 4,
|
|
344
|
-
"
|
|
345
|
-
"
|
|
346
|
-
"
|
|
347
|
-
"kSpectralFilter": 8
|
|
473
|
+
"kOpticalStimulation": 5,
|
|
474
|
+
"kSpikeDetect": 6,
|
|
475
|
+
"kSpikeSource": 7,
|
|
476
|
+
"kSpectralFilter": 8,
|
|
477
|
+
"kDiskWriter": 9
|
|
348
478
|
}
|
|
349
479
|
},
|
|
350
480
|
"NodeConfig": {
|
|
@@ -353,12 +483,13 @@
|
|
|
353
483
|
"oneof": [
|
|
354
484
|
"streamOut",
|
|
355
485
|
"streamIn",
|
|
356
|
-
"
|
|
486
|
+
"broadbandSource",
|
|
357
487
|
"electricalStimulation",
|
|
358
|
-
"opticalBroadband",
|
|
359
488
|
"opticalStimulation",
|
|
360
489
|
"spikeDetect",
|
|
361
|
-
"spectralFilter"
|
|
490
|
+
"spectralFilter",
|
|
491
|
+
"diskWriter",
|
|
492
|
+
"spikeSource"
|
|
362
493
|
]
|
|
363
494
|
}
|
|
364
495
|
},
|
|
@@ -379,18 +510,14 @@
|
|
|
379
510
|
"type": "StreamInConfig",
|
|
380
511
|
"id": 4
|
|
381
512
|
},
|
|
382
|
-
"
|
|
383
|
-
"type": "
|
|
513
|
+
"broadbandSource": {
|
|
514
|
+
"type": "BroadbandSourceConfig",
|
|
384
515
|
"id": 5
|
|
385
516
|
},
|
|
386
517
|
"electricalStimulation": {
|
|
387
518
|
"type": "ElectricalStimulationConfig",
|
|
388
519
|
"id": 6
|
|
389
520
|
},
|
|
390
|
-
"opticalBroadband": {
|
|
391
|
-
"type": "OpticalBroadbandConfig",
|
|
392
|
-
"id": 7
|
|
393
|
-
},
|
|
394
521
|
"opticalStimulation": {
|
|
395
522
|
"type": "OpticalStimulationConfig",
|
|
396
523
|
"id": 8
|
|
@@ -402,6 +529,52 @@
|
|
|
402
529
|
"spectralFilter": {
|
|
403
530
|
"type": "SpectralFilterConfig",
|
|
404
531
|
"id": 10
|
|
532
|
+
},
|
|
533
|
+
"diskWriter": {
|
|
534
|
+
"type": "DiskWriterConfig",
|
|
535
|
+
"id": 11
|
|
536
|
+
},
|
|
537
|
+
"spikeSource": {
|
|
538
|
+
"type": "SpikeSourceConfig",
|
|
539
|
+
"id": 12
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"NodeStatus": {
|
|
544
|
+
"oneofs": {
|
|
545
|
+
"status": {
|
|
546
|
+
"oneof": [
|
|
547
|
+
"streamOut",
|
|
548
|
+
"broadbandSource",
|
|
549
|
+
"streamIn",
|
|
550
|
+
"electricalStimulation"
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"fields": {
|
|
555
|
+
"type": {
|
|
556
|
+
"type": "NodeType",
|
|
557
|
+
"id": 1
|
|
558
|
+
},
|
|
559
|
+
"id": {
|
|
560
|
+
"type": "uint32",
|
|
561
|
+
"id": 2
|
|
562
|
+
},
|
|
563
|
+
"streamOut": {
|
|
564
|
+
"type": "StreamOutStatus",
|
|
565
|
+
"id": 3
|
|
566
|
+
},
|
|
567
|
+
"broadbandSource": {
|
|
568
|
+
"type": "BroadbandSourceStatus",
|
|
569
|
+
"id": 4
|
|
570
|
+
},
|
|
571
|
+
"streamIn": {
|
|
572
|
+
"type": "StreamInStatus",
|
|
573
|
+
"id": 5
|
|
574
|
+
},
|
|
575
|
+
"electricalStimulation": {
|
|
576
|
+
"type": "ElectricalStimulationStatus",
|
|
577
|
+
"id": 6
|
|
405
578
|
}
|
|
406
579
|
}
|
|
407
580
|
},
|
|
@@ -468,6 +641,14 @@
|
|
|
468
641
|
}
|
|
469
642
|
}
|
|
470
643
|
},
|
|
644
|
+
"SelfTestQuery": {
|
|
645
|
+
"fields": {
|
|
646
|
+
"peripheralId": {
|
|
647
|
+
"type": "uint32",
|
|
648
|
+
"id": 1
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
},
|
|
471
652
|
"ImpedanceMeasurement": {
|
|
472
653
|
"fields": {
|
|
473
654
|
"electrodeId": {
|
|
@@ -493,12 +674,47 @@
|
|
|
493
674
|
}
|
|
494
675
|
}
|
|
495
676
|
},
|
|
677
|
+
"SelfTestItem": {
|
|
678
|
+
"fields": {
|
|
679
|
+
"testName": {
|
|
680
|
+
"type": "string",
|
|
681
|
+
"id": 1
|
|
682
|
+
},
|
|
683
|
+
"passed": {
|
|
684
|
+
"type": "bool",
|
|
685
|
+
"id": 2
|
|
686
|
+
},
|
|
687
|
+
"testData": {
|
|
688
|
+
"rule": "repeated",
|
|
689
|
+
"type": "uint32",
|
|
690
|
+
"id": 3
|
|
691
|
+
},
|
|
692
|
+
"testReport": {
|
|
693
|
+
"type": "string",
|
|
694
|
+
"id": 4
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"SelfTestResponse": {
|
|
699
|
+
"fields": {
|
|
700
|
+
"allPassed": {
|
|
701
|
+
"type": "bool",
|
|
702
|
+
"id": 1
|
|
703
|
+
},
|
|
704
|
+
"tests": {
|
|
705
|
+
"rule": "repeated",
|
|
706
|
+
"type": "SelfTestItem",
|
|
707
|
+
"id": 2
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
},
|
|
496
711
|
"QueryRequest": {
|
|
497
712
|
"oneofs": {
|
|
498
713
|
"query": {
|
|
499
714
|
"oneof": [
|
|
500
715
|
"impedanceQuery",
|
|
501
|
-
"sampleQuery"
|
|
716
|
+
"sampleQuery",
|
|
717
|
+
"selfTestQuery"
|
|
502
718
|
]
|
|
503
719
|
}
|
|
504
720
|
},
|
|
@@ -514,6 +730,10 @@
|
|
|
514
730
|
"sampleQuery": {
|
|
515
731
|
"type": "SampleQuery",
|
|
516
732
|
"id": 3
|
|
733
|
+
},
|
|
734
|
+
"selfTestQuery": {
|
|
735
|
+
"type": "SelfTestQuery",
|
|
736
|
+
"id": 4
|
|
517
737
|
}
|
|
518
738
|
},
|
|
519
739
|
"nested": {
|
|
@@ -521,7 +741,8 @@
|
|
|
521
741
|
"values": {
|
|
522
742
|
"kNone": 0,
|
|
523
743
|
"kImpedance": 1,
|
|
524
|
-
"kSample": 2
|
|
744
|
+
"kSample": 2,
|
|
745
|
+
"kSelfTest": 3
|
|
525
746
|
}
|
|
526
747
|
}
|
|
527
748
|
}
|
|
@@ -530,7 +751,8 @@
|
|
|
530
751
|
"oneofs": {
|
|
531
752
|
"response": {
|
|
532
753
|
"oneof": [
|
|
533
|
-
"impedanceResponse"
|
|
754
|
+
"impedanceResponse",
|
|
755
|
+
"selfTestResponse"
|
|
534
756
|
]
|
|
535
757
|
}
|
|
536
758
|
},
|
|
@@ -547,6 +769,10 @@
|
|
|
547
769
|
"impedanceResponse": {
|
|
548
770
|
"type": "ImpedanceResponse",
|
|
549
771
|
"id": 3
|
|
772
|
+
},
|
|
773
|
+
"selfTestResponse": {
|
|
774
|
+
"type": "SelfTestResponse",
|
|
775
|
+
"id": 4
|
|
550
776
|
}
|
|
551
777
|
}
|
|
552
778
|
},
|
|
@@ -558,7 +784,8 @@
|
|
|
558
784
|
"kFailedPrecondition": 3,
|
|
559
785
|
"kUnimplemented": 4,
|
|
560
786
|
"kInternalError": 5,
|
|
561
|
-
"kPermissionDenied": 6
|
|
787
|
+
"kPermissionDenied": 6,
|
|
788
|
+
"kQueryFailed": 7
|
|
562
789
|
}
|
|
563
790
|
},
|
|
564
791
|
"DeviceState": {
|
|
@@ -594,6 +821,15 @@
|
|
|
594
821
|
}
|
|
595
822
|
}
|
|
596
823
|
},
|
|
824
|
+
"SignalChainStatus": {
|
|
825
|
+
"fields": {
|
|
826
|
+
"nodes": {
|
|
827
|
+
"rule": "repeated",
|
|
828
|
+
"type": "NodeStatus",
|
|
829
|
+
"id": 1
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
},
|
|
597
833
|
"Status": {
|
|
598
834
|
"fields": {
|
|
599
835
|
"message": {
|
|
@@ -620,6 +856,10 @@
|
|
|
620
856
|
"storage": {
|
|
621
857
|
"type": "DeviceStorage",
|
|
622
858
|
"id": 6
|
|
859
|
+
},
|
|
860
|
+
"signalChain": {
|
|
861
|
+
"type": "SignalChainStatus",
|
|
862
|
+
"id": 7
|
|
623
863
|
}
|
|
624
864
|
}
|
|
625
865
|
},
|
|
@@ -729,6 +969,73 @@
|
|
|
729
969
|
"id": 2
|
|
730
970
|
}
|
|
731
971
|
}
|
|
972
|
+
},
|
|
973
|
+
"LogLevel": {
|
|
974
|
+
"values": {
|
|
975
|
+
"LOG_LEVEL_UNKNOWN": 0,
|
|
976
|
+
"LOG_LEVEL_DEBUG": 1,
|
|
977
|
+
"LOG_LEVEL_INFO": 2,
|
|
978
|
+
"LOG_LEVEL_WARNING": 3,
|
|
979
|
+
"LOG_LEVEL_ERROR": 4,
|
|
980
|
+
"LOG_LEVEL_CRITICAL": 5
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
"LogEntry": {
|
|
984
|
+
"fields": {
|
|
985
|
+
"timestampNs": {
|
|
986
|
+
"type": "uint64",
|
|
987
|
+
"id": 1
|
|
988
|
+
},
|
|
989
|
+
"level": {
|
|
990
|
+
"type": "LogLevel",
|
|
991
|
+
"id": 2
|
|
992
|
+
},
|
|
993
|
+
"source": {
|
|
994
|
+
"type": "string",
|
|
995
|
+
"id": 3
|
|
996
|
+
},
|
|
997
|
+
"message": {
|
|
998
|
+
"type": "string",
|
|
999
|
+
"id": 4
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
},
|
|
1003
|
+
"LogQueryRequest": {
|
|
1004
|
+
"fields": {
|
|
1005
|
+
"startTimeNs": {
|
|
1006
|
+
"type": "uint64",
|
|
1007
|
+
"id": 1
|
|
1008
|
+
},
|
|
1009
|
+
"endTimeNs": {
|
|
1010
|
+
"type": "uint64",
|
|
1011
|
+
"id": 2
|
|
1012
|
+
},
|
|
1013
|
+
"sinceMs": {
|
|
1014
|
+
"type": "uint64",
|
|
1015
|
+
"id": 3
|
|
1016
|
+
},
|
|
1017
|
+
"minLevel": {
|
|
1018
|
+
"type": "LogLevel",
|
|
1019
|
+
"id": 4
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"LogQueryResponse": {
|
|
1024
|
+
"fields": {
|
|
1025
|
+
"entries": {
|
|
1026
|
+
"rule": "repeated",
|
|
1027
|
+
"type": "LogEntry",
|
|
1028
|
+
"id": 1
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"TailLogsRequest": {
|
|
1033
|
+
"fields": {
|
|
1034
|
+
"minLevel": {
|
|
1035
|
+
"type": "LogLevel",
|
|
1036
|
+
"id": 1
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
732
1039
|
}
|
|
733
1040
|
}
|
|
734
1041
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api-science-device/api.js"],"names":[],"mappings":""}
|