@science-corporation/synapse 2.2.8 → 2.3.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.
@@ -2,318 +2,399 @@
2
2
  "nested": {
3
3
  "synapse": {
4
4
  "nested": {
5
- "ElectrodeConfig": {
5
+ "AppManifest": {
6
6
  "fields": {
7
- "channels": {
8
- "rule": "repeated",
9
- "type": "Channel",
7
+ "name": {
8
+ "type": "string",
10
9
  "id": 1
11
10
  },
12
- "lowCutoffHz": {
13
- "type": "float",
11
+ "configSchema": {
12
+ "type": "google.protobuf.Struct",
14
13
  "id": 2
15
14
  },
16
- "highCutoffHz": {
17
- "type": "float",
15
+ "deviceConfig": {
16
+ "type": "DeviceConfiguration",
18
17
  "id": 3
19
18
  }
20
19
  }
21
20
  },
22
- "PixelConfig": {
21
+ "PackageMetadata": {
23
22
  "fields": {
24
- "pixelMask": {
25
- "rule": "repeated",
26
- "type": "uint32",
23
+ "name": {
24
+ "type": "string",
27
25
  "id": 1
26
+ },
27
+ "version": {
28
+ "type": "string",
29
+ "id": 2
30
+ },
31
+ "size": {
32
+ "type": "uint64",
33
+ "id": 3
34
+ },
35
+ "sha256Sum": {
36
+ "type": "string",
37
+ "id": 4
28
38
  }
29
39
  }
30
40
  },
31
- "SignalConfig": {
41
+ "AppPackageChunk": {
32
42
  "oneofs": {
33
- "signalType": {
43
+ "data": {
34
44
  "oneof": [
35
- "electrode",
36
- "pixel"
45
+ "metadata",
46
+ "fileChunk"
37
47
  ]
38
48
  }
39
49
  },
40
50
  "fields": {
41
- "electrode": {
42
- "type": "ElectrodeConfig",
51
+ "metadata": {
52
+ "type": "PackageMetadata",
43
53
  "id": 1
44
54
  },
45
- "pixel": {
46
- "type": "PixelConfig",
55
+ "fileChunk": {
56
+ "type": "bytes",
47
57
  "id": 2
48
58
  }
49
59
  }
50
60
  },
51
- "ChannelType": {
52
- "values": {
53
- "ELECTRODE": 0,
54
- "GPIO": 1
61
+ "AppDeployResponse": {
62
+ "fields": {
63
+ "status": {
64
+ "type": "StatusCode",
65
+ "id": 1
66
+ },
67
+ "message": {
68
+ "type": "string",
69
+ "id": 2
70
+ }
55
71
  }
56
72
  },
57
- "Channel": {
73
+ "AppPerformanceSummary": {
58
74
  "fields": {
59
- "id": {
60
- "type": "uint32",
75
+ "timestampNs": {
76
+ "type": "uint64",
61
77
  "id": 1
62
78
  },
63
- "electrodeId": {
64
- "type": "uint32",
79
+ "functionProfiles": {
80
+ "rule": "repeated",
81
+ "type": "FunctionProfile",
65
82
  "id": 2
66
- },
67
- "referenceId": {
68
- "type": "uint32",
69
- "id": 3
70
- },
71
- "type": {
72
- "type": "ChannelType",
73
- "id": 4
74
83
  }
75
84
  }
76
85
  },
77
- "ChannelRange": {
86
+ "AppInfo": {
78
87
  "fields": {
79
- "type": {
80
- "type": "ChannelType",
88
+ "name": {
89
+ "type": "string",
81
90
  "id": 1
82
91
  },
83
- "count": {
84
- "type": "uint32",
92
+ "version": {
93
+ "type": "string",
85
94
  "id": 2
86
- },
87
- "channelIds": {
88
- "rule": "repeated",
89
- "type": "uint32",
90
- "id": 3
91
95
  }
92
96
  }
93
97
  },
94
- "SpectralFilterMethod": {
95
- "values": {
96
- "kSpectralFilterUnknown": 0,
97
- "kLowPass": 1,
98
- "kHighPass": 2,
99
- "kBandPass": 3,
100
- "kBandStop": 4
101
- }
98
+ "ListAppsRequest": {
99
+ "fields": {}
102
100
  },
103
- "SpectralFilterConfig": {
101
+ "ListAppsResponse": {
104
102
  "fields": {
105
- "method": {
106
- "type": "SpectralFilterMethod",
103
+ "apps": {
104
+ "rule": "repeated",
105
+ "type": "AppInfo",
107
106
  "id": 1
108
- },
109
- "lowCutoffHz": {
110
- "type": "float",
111
- "id": 2
112
- },
113
- "highCutoffHz": {
114
- "type": "float",
115
- "id": 3
116
107
  }
117
108
  }
118
109
  },
119
- "SpikeSourceConfig": {
110
+ "StatusCode": {
111
+ "values": {
112
+ "kOk": 0,
113
+ "kUndefinedError": 1,
114
+ "kInvalidConfiguration": 2,
115
+ "kFailedPrecondition": 3,
116
+ "kUnimplemented": 4,
117
+ "kInternalError": 5,
118
+ "kPermissionDenied": 6,
119
+ "kQueryFailed": 7
120
+ }
121
+ },
122
+ "DeviceState": {
123
+ "values": {
124
+ "kUnknown": 0,
125
+ "kInitializing": 1,
126
+ "kStopped": 2,
127
+ "kRunning": 3,
128
+ "kError": 4
129
+ }
130
+ },
131
+ "StorageDevice": {
120
132
  "fields": {
121
- "peripheralId": {
122
- "type": "uint32",
133
+ "name": {
134
+ "type": "string",
123
135
  "id": 1
124
136
  },
125
- "sampleRateHz": {
137
+ "storageDeviceId": {
126
138
  "type": "uint32",
127
139
  "id": 2
128
140
  },
129
- "spikeWindowMs": {
141
+ "totalGb": {
130
142
  "type": "float",
131
143
  "id": 3
132
144
  },
133
- "gain": {
145
+ "usedGb": {
134
146
  "type": "float",
135
147
  "id": 4
136
- },
137
- "thresholdUV": {
138
- "type": "float",
139
- "id": 5
140
- },
141
- "electrodes": {
142
- "type": "ElectrodeConfig",
143
- "id": 6
144
148
  }
145
149
  }
146
150
  },
147
- "ElectricalStimulationConfig": {
151
+ "DeviceStorage": {
148
152
  "fields": {
149
- "peripheralId": {
150
- "type": "uint32",
151
- "id": 1
152
- },
153
- "channels": {
153
+ "storageDevices": {
154
154
  "rule": "repeated",
155
- "type": "Channel",
156
- "id": 2
157
- },
158
- "bitWidth": {
159
- "type": "uint32",
155
+ "type": "StorageDevice",
160
156
  "id": 3
161
- },
162
- "sampleRate": {
163
- "type": "uint32",
164
- "id": 4
165
- },
166
- "lsb": {
167
- "type": "uint32",
168
- "id": 5
169
157
  }
170
- }
158
+ },
159
+ "reserved": [
160
+ [
161
+ 1,
162
+ 1
163
+ ],
164
+ [
165
+ 2,
166
+ 2
167
+ ]
168
+ ]
171
169
  },
172
- "ElectricalStimulationStatus": {
170
+ "DevicePower": {
173
171
  "fields": {
174
- "lsbUV": {
172
+ "batteryLevelPercent": {
175
173
  "type": "float",
176
174
  "id": 1
175
+ },
176
+ "isCharging": {
177
+ "type": "bool",
178
+ "id": 2
177
179
  }
178
180
  }
179
181
  },
180
- "SpikeBinnerConfig": {
181
- "fields": {
182
- "binSizeMs": {
183
- "type": "uint32",
184
- "id": 1
185
- }
186
- }
187
- },
188
- "ApplicationNodeConfig": {
182
+ "SignalChainStatus": {
189
183
  "fields": {
190
- "name": {
191
- "type": "string",
184
+ "nodes": {
185
+ "rule": "repeated",
186
+ "type": "NodeStatus",
192
187
  "id": 1
193
- },
194
- "parameters": {
195
- "keyType": "string",
196
- "type": "google.protobuf.Value",
197
- "id": 2
198
188
  }
199
189
  }
200
190
  },
201
- "ApplicationNodeStatus": {
191
+ "Status": {
202
192
  "fields": {
203
- "name": {
193
+ "message": {
204
194
  "type": "string",
205
195
  "id": 1
206
196
  },
207
- "running": {
208
- "type": "bool",
197
+ "code": {
198
+ "type": "StatusCode",
209
199
  "id": 2
210
200
  },
211
- "errorLogs": {
212
- "type": "string",
201
+ "state": {
202
+ "type": "DeviceState",
213
203
  "id": 3
214
- }
215
- }
216
- },
217
- "TemplateMatcher": {
218
- "fields": {
219
- "templateUV": {
220
- "rule": "repeated",
204
+ },
205
+ "power": {
206
+ "type": "DevicePower",
207
+ "id": 5
208
+ },
209
+ "storage": {
210
+ "type": "DeviceStorage",
211
+ "id": 6
212
+ },
213
+ "signalChain": {
214
+ "type": "SignalChainStatus",
215
+ "id": 7
216
+ },
217
+ "timeSyncPort": {
221
218
  "type": "uint32",
222
- "id": 1
219
+ "id": 8
223
220
  }
224
- }
221
+ },
222
+ "reserved": [
223
+ [
224
+ 4,
225
+ 4
226
+ ]
227
+ ]
225
228
  },
226
- "Thresholder": {
227
- "fields": {
228
- "thresholdUV": {
229
- "type": "uint32",
230
- "id": 1
231
- }
232
- }
229
+ "NodeType": {
230
+ "values": {
231
+ "kNodeTypeUnknown": 0,
232
+ "kBroadbandSource": 3,
233
+ "kElectricalStimulation": 4,
234
+ "kOpticalStimulation": 5,
235
+ "kSpikeDetector": 6,
236
+ "kSpikeSource": 7,
237
+ "kSpectralFilter": 8,
238
+ "kDiskWriter": 9,
239
+ "kSpikeBinner": 10,
240
+ "kApplication": 11,
241
+ "kCamera": 12
242
+ },
243
+ "reserved": [
244
+ [
245
+ 1,
246
+ 1
247
+ ],
248
+ [
249
+ 2,
250
+ 2
251
+ ]
252
+ ]
233
253
  },
234
- "SpikeDetectorConfig": {
254
+ "NodeConfig": {
235
255
  "oneofs": {
236
256
  "config": {
237
257
  "oneof": [
238
- "thresholder",
239
- "templateMatcher"
258
+ "broadbandSource",
259
+ "electricalStimulation",
260
+ "opticalStimulation",
261
+ "spikeDetector",
262
+ "spectralFilter",
263
+ "diskWriter",
264
+ "spikeSource",
265
+ "spikeBinner",
266
+ "application",
267
+ "camera"
240
268
  ]
241
269
  }
242
270
  },
243
271
  "fields": {
244
- "thresholder": {
245
- "type": "Thresholder",
272
+ "type": {
273
+ "type": "NodeType",
246
274
  "id": 1
247
275
  },
248
- "templateMatcher": {
249
- "type": "TemplateMatcher",
276
+ "id": {
277
+ "type": "uint32",
250
278
  "id": 2
251
279
  },
252
- "samplesPerSpike": {
253
- "type": "uint32",
254
- "id": 3
280
+ "broadbandSource": {
281
+ "type": "BroadbandSourceConfig",
282
+ "id": 5
283
+ },
284
+ "electricalStimulation": {
285
+ "type": "ElectricalStimulationConfig",
286
+ "id": 6
287
+ },
288
+ "opticalStimulation": {
289
+ "type": "OpticalStimulationConfig",
290
+ "id": 8
291
+ },
292
+ "spikeDetector": {
293
+ "type": "SpikeDetectorConfig",
294
+ "id": 9
295
+ },
296
+ "spectralFilter": {
297
+ "type": "SpectralFilterConfig",
298
+ "id": 10
299
+ },
300
+ "diskWriter": {
301
+ "type": "DiskWriterConfig",
302
+ "id": 11
303
+ },
304
+ "spikeSource": {
305
+ "type": "SpikeSourceConfig",
306
+ "id": 12
307
+ },
308
+ "spikeBinner": {
309
+ "type": "SpikeBinnerConfig",
310
+ "id": 13
311
+ },
312
+ "application": {
313
+ "type": "ApplicationNodeConfig",
314
+ "id": 14
315
+ },
316
+ "camera": {
317
+ "type": "CameraConfig",
318
+ "id": 15
255
319
  }
256
- }
320
+ },
321
+ "reserved": [
322
+ [
323
+ 3,
324
+ 3
325
+ ],
326
+ [
327
+ 4,
328
+ 4
329
+ ]
330
+ ]
257
331
  },
258
- "DiskWriterConfig": {
259
- "fields": {
260
- "filename": {
261
- "type": "string",
262
- "id": 1
332
+ "NodeStatus": {
333
+ "oneofs": {
334
+ "status": {
335
+ "oneof": [
336
+ "broadbandSource",
337
+ "electricalStimulation",
338
+ "application",
339
+ "opticalStimulation",
340
+ "diskWriter",
341
+ "camera"
342
+ ]
263
343
  }
264
- }
265
- },
266
- "DiskWriterStatus": {
344
+ },
267
345
  "fields": {
268
- "outputPath": {
269
- "type": "string",
346
+ "type": {
347
+ "type": "NodeType",
270
348
  "id": 1
271
349
  },
272
- "bytesWritten": {
273
- "type": "uint64",
350
+ "id": {
351
+ "type": "uint32",
274
352
  "id": 2
275
353
  },
276
- "isWriting": {
277
- "type": "bool",
278
- "id": 3
279
- },
280
- "availableDiskSpaceBytes": {
281
- "type": "uint64",
354
+ "broadbandSource": {
355
+ "type": "BroadbandSourceStatus",
282
356
  "id": 4
283
357
  },
284
- "currentBitrateMbps": {
285
- "type": "float",
286
- "id": 5
287
- }
288
- }
289
- },
290
- "ElectrodeStatus": {
291
- "fields": {
292
- "lsbUV": {
293
- "type": "float",
294
- "id": 1
295
- }
296
- }
297
- },
298
- "PixelStatus": {
299
- "fields": {}
300
- },
301
- "SignalStatus": {
302
- "oneofs": {
303
- "signalType": {
304
- "oneof": [
305
- "electrode",
306
- "pixel"
307
- ]
358
+ "electricalStimulation": {
359
+ "type": "ElectricalStimulationStatus",
360
+ "id": 6
361
+ },
362
+ "application": {
363
+ "type": "ApplicationNodeStatus",
364
+ "id": 7
365
+ },
366
+ "opticalStimulation": {
367
+ "type": "OpticalStimulationStatus",
368
+ "id": 8
369
+ },
370
+ "diskWriter": {
371
+ "type": "DiskWriterStatus",
372
+ "id": 10
373
+ },
374
+ "camera": {
375
+ "type": "CameraStatus",
376
+ "id": 11
308
377
  }
309
378
  },
379
+ "reserved": [
380
+ [
381
+ 3,
382
+ 3
383
+ ],
384
+ [
385
+ 5,
386
+ 5
387
+ ]
388
+ ]
389
+ },
390
+ "NodeConnection": {
310
391
  "fields": {
311
- "electrode": {
312
- "type": "ElectrodeStatus",
392
+ "srcNodeId": {
393
+ "type": "uint32",
313
394
  "id": 1
314
395
  },
315
- "pixel": {
316
- "type": "PixelStatus",
396
+ "dstNodeId": {
397
+ "type": "uint32",
317
398
  "id": 2
318
399
  }
319
400
  }
@@ -350,654 +431,644 @@
350
431
  }
351
432
  }
352
433
  },
353
- "OpticalStimulationConfig": {
434
+ "ElectrodeConfig": {
354
435
  "fields": {
355
- "peripheralId": {
356
- "type": "uint32",
436
+ "channels": {
437
+ "rule": "repeated",
438
+ "type": "Channel",
357
439
  "id": 1
358
440
  },
359
- "pixelMask": {
360
- "rule": "repeated",
361
- "type": "uint32",
441
+ "lowCutoffHz": {
442
+ "type": "float",
362
443
  "id": 2
363
444
  },
364
- "bitWidth": {
365
- "type": "uint32",
445
+ "highCutoffHz": {
446
+ "type": "float",
366
447
  "id": 3
367
- },
368
- "frameRate": {
448
+ }
449
+ }
450
+ },
451
+ "PixelConfig": {
452
+ "fields": {
453
+ "pixelMask": {
454
+ "rule": "repeated",
369
455
  "type": "uint32",
370
- "id": 4
371
- },
372
- "gain": {
373
- "type": "float",
374
- "id": 5
375
- },
376
- "sendReceipts": {
377
- "type": "bool",
378
- "id": 6
456
+ "id": 1
379
457
  }
380
458
  }
381
459
  },
382
- "OpticalStimFrame": {
460
+ "SignalConfig": {
461
+ "oneofs": {
462
+ "signalType": {
463
+ "oneof": [
464
+ "electrode",
465
+ "pixel"
466
+ ]
467
+ }
468
+ },
383
469
  "fields": {
384
- "frameId": {
385
- "type": "uint64",
470
+ "electrode": {
471
+ "type": "ElectrodeConfig",
386
472
  "id": 1
387
473
  },
388
- "sequenceNumber": {
389
- "type": "uint64",
474
+ "pixel": {
475
+ "type": "PixelConfig",
390
476
  "id": 2
391
- },
392
- "timestampNs": {
393
- "type": "uint64",
394
- "id": 3
395
- },
396
- "rows": {
397
- "type": "uint32",
398
- "id": 4
399
- },
400
- "columns": {
401
- "type": "uint32",
402
- "id": 5
403
- },
404
- "intensity": {
405
- "rule": "repeated",
406
- "type": "float",
407
- "id": 6
408
- },
409
- "durationUs": {
410
- "type": "uint64",
411
- "id": 7
412
477
  }
413
478
  }
414
479
  },
415
- "OpticalStimulationStatus": {
416
- "fields": {
417
- "framesWritten": {
418
- "type": "uint64",
419
- "id": 1
420
- }
480
+ "ChannelType": {
481
+ "values": {
482
+ "ELECTRODE": 0,
483
+ "GPIO": 1
421
484
  }
422
485
  },
423
- "SynapseDevice": {
424
- "methods": {
425
- "Info": {
426
- "requestType": "google.protobuf.Empty",
427
- "responseType": "DeviceInfo"
428
- },
429
- "Configure": {
430
- "requestType": "DeviceConfiguration",
431
- "responseType": "Status"
432
- },
433
- "Start": {
434
- "requestType": "google.protobuf.Empty",
435
- "responseType": "Status"
436
- },
437
- "Stop": {
438
- "requestType": "google.protobuf.Empty",
439
- "responseType": "Status"
440
- },
441
- "Query": {
442
- "requestType": "QueryRequest",
443
- "responseType": "QueryResponse"
444
- },
445
- "StreamQuery": {
446
- "requestType": "StreamQueryRequest",
447
- "responseType": "StreamQueryResponse",
448
- "responseStream": true
449
- },
450
- "DeployApp": {
451
- "requestType": "AppPackageChunk",
452
- "requestStream": true,
453
- "responseType": "AppDeployResponse",
454
- "responseStream": true
455
- },
456
- "ListApps": {
457
- "requestType": "ListAppsRequest",
458
- "responseType": "ListAppsResponse"
459
- },
460
- "ListFiles": {
461
- "requestType": "google.protobuf.Empty",
462
- "responseType": "ListFilesResponse"
463
- },
464
- "WriteFile": {
465
- "requestType": "WriteFileRequest",
466
- "responseType": "WriteFileResponse"
467
- },
468
- "ReadFile": {
469
- "requestType": "ReadFileRequest",
470
- "responseType": "ReadFileResponse",
471
- "responseStream": true
472
- },
473
- "DeleteFile": {
474
- "requestType": "DeleteFileRequest",
475
- "responseType": "DeleteFileResponse"
486
+ "Channel": {
487
+ "fields": {
488
+ "id": {
489
+ "type": "uint32",
490
+ "id": 1
476
491
  },
477
- "GetLogs": {
478
- "requestType": "LogQueryRequest",
479
- "responseType": "LogQueryResponse"
492
+ "electrodeId": {
493
+ "type": "uint32",
494
+ "id": 2
480
495
  },
481
- "TailLogs": {
482
- "requestType": "TailLogsRequest",
483
- "responseType": "LogEntry",
484
- "responseStream": true
496
+ "referenceId": {
497
+ "type": "uint32",
498
+ "id": 3
485
499
  },
486
- "UpdateDeviceSettings": {
487
- "requestType": "UpdateDeviceSettingsRequest",
488
- "responseType": "UpdateDeviceSettingsResponse"
500
+ "type": {
501
+ "type": "ChannelType",
502
+ "id": 4
489
503
  }
490
504
  }
491
505
  },
492
- "SampleQuery": {
506
+ "ChannelRange": {
493
507
  "fields": {
494
- "channels": {
495
- "rule": "repeated",
496
- "type": "Channel",
508
+ "type": {
509
+ "type": "ChannelType",
497
510
  "id": 1
498
511
  },
499
- "sampleCount": {
512
+ "count": {
500
513
  "type": "uint32",
501
514
  "id": 2
515
+ },
516
+ "channelIds": {
517
+ "rule": "repeated",
518
+ "type": "uint32",
519
+ "id": 3
502
520
  }
503
521
  }
504
522
  },
505
- "ImpedanceQuery": {
523
+ "ElectrodeStatus": {
506
524
  "fields": {
507
- "electrodeIds": {
508
- "rule": "repeated",
509
- "type": "uint32",
525
+ "lsbUV": {
526
+ "type": "float",
510
527
  "id": 1
511
528
  }
512
529
  }
513
530
  },
514
- "SelfTestQuery": {
531
+ "PixelStatus": {
532
+ "fields": {}
533
+ },
534
+ "SignalStatus": {
535
+ "oneofs": {
536
+ "signalType": {
537
+ "oneof": [
538
+ "electrode",
539
+ "pixel"
540
+ ]
541
+ }
542
+ },
515
543
  "fields": {
516
- "peripheralId": {
517
- "type": "uint32",
544
+ "electrode": {
545
+ "type": "ElectrodeStatus",
518
546
  "id": 1
547
+ },
548
+ "pixel": {
549
+ "type": "PixelStatus",
550
+ "id": 2
519
551
  }
520
552
  }
521
553
  },
522
- "ImpedanceMeasurement": {
554
+ "ElectricalStimulationConfig": {
523
555
  "fields": {
524
- "electrodeId": {
556
+ "peripheralId": {
525
557
  "type": "uint32",
526
558
  "id": 1
527
559
  },
528
- "magnitude": {
529
- "type": "float",
560
+ "channels": {
561
+ "rule": "repeated",
562
+ "type": "Channel",
530
563
  "id": 2
531
564
  },
532
- "phase": {
533
- "type": "float",
565
+ "bitWidth": {
566
+ "type": "uint32",
534
567
  "id": 3
568
+ },
569
+ "sampleRate": {
570
+ "type": "uint32",
571
+ "id": 4
572
+ },
573
+ "lsb": {
574
+ "type": "uint32",
575
+ "id": 5
535
576
  }
536
577
  }
537
578
  },
538
- "ImpedanceResponse": {
579
+ "ElectricalStimulationStatus": {
539
580
  "fields": {
540
- "measurements": {
541
- "rule": "repeated",
542
- "type": "ImpedanceMeasurement",
581
+ "lsbUV": {
582
+ "type": "float",
543
583
  "id": 1
544
584
  }
545
585
  }
546
586
  },
547
- "SelfTestItem": {
587
+ "OpticalStimulationConfig": {
548
588
  "fields": {
549
- "testName": {
550
- "type": "string",
589
+ "peripheralId": {
590
+ "type": "uint32",
551
591
  "id": 1
552
592
  },
553
- "passed": {
554
- "type": "bool",
593
+ "pixelMask": {
594
+ "rule": "repeated",
595
+ "type": "uint32",
555
596
  "id": 2
556
597
  },
557
- "testData": {
558
- "rule": "repeated",
598
+ "bitWidth": {
559
599
  "type": "uint32",
560
600
  "id": 3
561
601
  },
562
- "testReport": {
563
- "type": "string",
602
+ "frameRate": {
603
+ "type": "uint32",
564
604
  "id": 4
565
- }
566
- }
567
- },
568
- "SelfTestResponse": {
569
- "fields": {
570
- "allPassed": {
571
- "type": "bool",
572
- "id": 1
573
605
  },
574
- "tests": {
575
- "rule": "repeated",
576
- "type": "SelfTestItem",
577
- "id": 2
606
+ "gain": {
607
+ "type": "float",
608
+ "id": 5
609
+ },
610
+ "sendReceipts": {
611
+ "type": "bool",
612
+ "id": 6
578
613
  }
579
614
  }
580
615
  },
581
- "QueryRequest": {
582
- "oneofs": {
583
- "query": {
584
- "oneof": [
585
- "impedanceQuery",
586
- "sampleQuery",
587
- "selfTestQuery",
588
- "listTapsQuery",
589
- "getSettingsQuery"
590
- ]
591
- }
592
- },
616
+ "OpticalStimFrame": {
593
617
  "fields": {
594
- "queryType": {
595
- "type": "QueryType",
618
+ "frameId": {
619
+ "type": "uint64",
596
620
  "id": 1
597
621
  },
598
- "impedanceQuery": {
599
- "type": "ImpedanceQuery",
622
+ "sequenceNumber": {
623
+ "type": "uint64",
600
624
  "id": 2
601
625
  },
602
- "sampleQuery": {
603
- "type": "SampleQuery",
626
+ "timestampNs": {
627
+ "type": "uint64",
604
628
  "id": 3
605
629
  },
606
- "selfTestQuery": {
607
- "type": "SelfTestQuery",
630
+ "rows": {
631
+ "type": "uint32",
608
632
  "id": 4
609
633
  },
610
- "listTapsQuery": {
611
- "type": "ListTapsQuery",
634
+ "columns": {
635
+ "type": "uint32",
612
636
  "id": 5
613
637
  },
614
- "getSettingsQuery": {
615
- "type": "GetSettingsQuery",
638
+ "intensity": {
639
+ "rule": "repeated",
640
+ "type": "float",
616
641
  "id": 6
642
+ },
643
+ "durationUs": {
644
+ "type": "uint64",
645
+ "id": 7
617
646
  }
618
- },
619
- "nested": {
620
- "QueryType": {
621
- "values": {
622
- "kNone": 0,
623
- "kImpedance": 1,
624
- "kSample": 2,
625
- "kSelfTest": 3,
626
- "kListTaps": 4,
627
- "kGetSettings": 5
628
- }
647
+ }
648
+ },
649
+ "OpticalStimulationStatus": {
650
+ "fields": {
651
+ "framesWritten": {
652
+ "type": "uint64",
653
+ "id": 1
629
654
  }
630
655
  }
631
656
  },
632
- "StreamQueryRequest": {
657
+ "TemplateMatcher": {
633
658
  "fields": {
634
- "request": {
635
- "type": "QueryRequest",
659
+ "templateUV": {
660
+ "rule": "repeated",
661
+ "type": "uint32",
636
662
  "id": 1
637
663
  }
638
664
  }
639
665
  },
640
- "QueryResponse": {
666
+ "Thresholder": {
667
+ "fields": {
668
+ "thresholdUV": {
669
+ "type": "uint32",
670
+ "id": 1
671
+ }
672
+ }
673
+ },
674
+ "SpikeDetectorConfig": {
641
675
  "oneofs": {
642
- "response": {
676
+ "config": {
643
677
  "oneof": [
644
- "impedanceResponse",
645
- "selfTestResponse",
646
- "listTapsResponse",
647
- "getSettingsResponse"
678
+ "thresholder",
679
+ "templateMatcher"
648
680
  ]
649
681
  }
650
682
  },
651
683
  "fields": {
652
- "status": {
653
- "type": "Status",
684
+ "thresholder": {
685
+ "type": "Thresholder",
654
686
  "id": 1
655
687
  },
656
- "data": {
657
- "rule": "repeated",
658
- "type": "uint32",
688
+ "templateMatcher": {
689
+ "type": "TemplateMatcher",
659
690
  "id": 2
660
691
  },
661
- "impedanceResponse": {
662
- "type": "ImpedanceResponse",
692
+ "samplesPerSpike": {
693
+ "type": "uint32",
663
694
  "id": 3
695
+ }
696
+ }
697
+ },
698
+ "SpectralFilterMethod": {
699
+ "values": {
700
+ "kSpectralFilterUnknown": 0,
701
+ "kLowPass": 1,
702
+ "kHighPass": 2,
703
+ "kBandPass": 3,
704
+ "kBandStop": 4
705
+ }
706
+ },
707
+ "SpectralFilterConfig": {
708
+ "fields": {
709
+ "method": {
710
+ "type": "SpectralFilterMethod",
711
+ "id": 1
664
712
  },
665
- "selfTestResponse": {
666
- "type": "SelfTestResponse",
667
- "id": 4
668
- },
669
- "listTapsResponse": {
670
- "type": "ListTapsResponse",
671
- "id": 5
713
+ "lowCutoffHz": {
714
+ "type": "float",
715
+ "id": 2
672
716
  },
673
- "getSettingsResponse": {
674
- "type": "GetSettingsResponse",
675
- "id": 6
717
+ "highCutoffHz": {
718
+ "type": "float",
719
+ "id": 3
676
720
  }
677
721
  }
678
722
  },
679
- "StreamQueryResponse": {
680
- "oneofs": {
681
- "response": {
682
- "oneof": [
683
- "impedance",
684
- "selfTest"
685
- ]
686
- }
687
- },
723
+ "DiskWriterConfig": {
688
724
  "fields": {
689
- "code": {
690
- "type": "StatusCode",
725
+ "filename": {
726
+ "type": "string",
691
727
  "id": 1
692
728
  },
693
- "message": {
694
- "type": "string",
729
+ "storageDeviceId": {
730
+ "type": "uint32",
695
731
  "id": 2
732
+ }
733
+ }
734
+ },
735
+ "DiskWriterStatus": {
736
+ "fields": {
737
+ "outputPath": {
738
+ "type": "string",
739
+ "id": 1
696
740
  },
697
- "timestampNs": {
741
+ "bytesWritten": {
698
742
  "type": "uint64",
743
+ "id": 2
744
+ },
745
+ "isWriting": {
746
+ "type": "bool",
699
747
  "id": 3
700
748
  },
701
- "impedance": {
702
- "type": "ImpedanceResponse",
749
+ "availableDiskSpaceBytes": {
750
+ "type": "uint64",
703
751
  "id": 4
704
752
  },
705
- "selfTest": {
706
- "type": "SelfTestResponse",
753
+ "currentBitrateMbps": {
754
+ "type": "float",
707
755
  "id": 5
708
756
  }
709
757
  }
710
758
  },
711
- "StatusCode": {
712
- "values": {
713
- "kOk": 0,
714
- "kUndefinedError": 1,
715
- "kInvalidConfiguration": 2,
716
- "kFailedPrecondition": 3,
717
- "kUnimplemented": 4,
718
- "kInternalError": 5,
719
- "kPermissionDenied": 6,
720
- "kQueryFailed": 7
721
- }
722
- },
723
- "DeviceState": {
724
- "values": {
725
- "kUnknown": 0,
726
- "kInitializing": 1,
727
- "kStopped": 2,
728
- "kRunning": 3,
729
- "kError": 4
730
- }
731
- },
732
- "DeviceStorage": {
759
+ "SpikeSourceConfig": {
733
760
  "fields": {
734
- "totalGb": {
735
- "type": "float",
761
+ "peripheralId": {
762
+ "type": "uint32",
736
763
  "id": 1
737
764
  },
738
- "usedGb": {
739
- "type": "float",
765
+ "sampleRateHz": {
766
+ "type": "uint32",
740
767
  "id": 2
768
+ },
769
+ "spikeWindowMs": {
770
+ "type": "float",
771
+ "id": 3
772
+ },
773
+ "gain": {
774
+ "type": "float",
775
+ "id": 4
776
+ },
777
+ "thresholdUV": {
778
+ "type": "float",
779
+ "id": 5
780
+ },
781
+ "electrodes": {
782
+ "type": "ElectrodeConfig",
783
+ "id": 6
741
784
  }
742
785
  }
743
786
  },
744
- "DevicePower": {
787
+ "SpikeBinnerConfig": {
745
788
  "fields": {
746
- "batteryLevelPercent": {
747
- "type": "float",
789
+ "binSizeMs": {
790
+ "type": "uint32",
748
791
  "id": 1
749
- },
750
- "isCharging": {
751
- "type": "bool",
752
- "id": 2
753
792
  }
754
793
  }
755
794
  },
756
- "SignalChainStatus": {
795
+ "ApplicationNodeConfig": {
757
796
  "fields": {
758
- "nodes": {
759
- "rule": "repeated",
760
- "type": "NodeStatus",
797
+ "name": {
798
+ "type": "string",
761
799
  "id": 1
800
+ },
801
+ "parameters": {
802
+ "keyType": "string",
803
+ "type": "google.protobuf.Value",
804
+ "id": 2
762
805
  }
763
806
  }
764
807
  },
765
- "Status": {
808
+ "ApplicationNodeStatus": {
766
809
  "fields": {
767
- "message": {
810
+ "name": {
768
811
  "type": "string",
769
812
  "id": 1
770
813
  },
771
- "code": {
772
- "type": "StatusCode",
814
+ "running": {
815
+ "type": "bool",
773
816
  "id": 2
774
817
  },
775
- "state": {
776
- "type": "DeviceState",
818
+ "errorLogs": {
819
+ "type": "string",
777
820
  "id": 3
821
+ }
822
+ }
823
+ },
824
+ "CameraConfig": {
825
+ "fields": {
826
+ "peripheralId": {
827
+ "type": "uint32",
828
+ "id": 1
778
829
  },
779
- "power": {
780
- "type": "DevicePower",
781
- "id": 5
830
+ "width": {
831
+ "type": "uint32",
832
+ "id": 2
782
833
  },
783
- "storage": {
784
- "type": "DeviceStorage",
785
- "id": 6
834
+ "height": {
835
+ "type": "uint32",
836
+ "id": 3
786
837
  },
787
- "signalChain": {
788
- "type": "SignalChainStatus",
789
- "id": 7
838
+ "format": {
839
+ "type": "PixelFormat",
840
+ "id": 4
790
841
  },
791
- "timeSyncPort": {
842
+ "frameRateHz": {
792
843
  "type": "uint32",
793
- "id": 8
844
+ "id": 5
794
845
  }
795
- },
796
- "reserved": [
797
- [
798
- 4,
799
- 4
800
- ]
801
- ]
846
+ }
802
847
  },
803
- "NodeType": {
848
+ "CameraStatus": {
849
+ "fields": {
850
+ "framesProduced": {
851
+ "type": "uint64",
852
+ "id": 1
853
+ },
854
+ "framesDropped": {
855
+ "type": "uint64",
856
+ "id": 2
857
+ }
858
+ }
859
+ },
860
+ "DataType": {
804
861
  "values": {
805
- "kNodeTypeUnknown": 0,
806
- "kBroadbandSource": 3,
807
- "kElectricalStimulation": 4,
808
- "kOpticalStimulation": 5,
809
- "kSpikeDetector": 6,
810
- "kSpikeSource": 7,
811
- "kSpectralFilter": 8,
812
- "kDiskWriter": 9,
813
- "kSpikeBinner": 10,
814
- "kApplication": 11
815
- },
816
- "reserved": [
817
- [
818
- 1,
819
- 1
820
- ],
821
- [
822
- 2,
823
- 2
824
- ]
825
- ]
862
+ "kDataTypeUnknown": 0,
863
+ "kAny": 1,
864
+ "kBroadband": 2,
865
+ "kSpiketrain": 3,
866
+ "kTimestamps": 4,
867
+ "kImage": 5,
868
+ "kWaveforms": 6
869
+ }
826
870
  },
827
- "NodeConfig": {
828
- "oneofs": {
829
- "config": {
830
- "oneof": [
831
- "broadbandSource",
832
- "electricalStimulation",
833
- "opticalStimulation",
834
- "spikeDetector",
835
- "spectralFilter",
836
- "diskWriter",
837
- "spikeSource",
838
- "spikeBinner",
839
- "application"
840
- ]
841
- }
842
- },
871
+ "Tensor": {
843
872
  "fields": {
844
- "type": {
845
- "type": "NodeType",
873
+ "timestampNs": {
874
+ "type": "uint64",
846
875
  "id": 1
847
876
  },
848
- "id": {
849
- "type": "uint32",
877
+ "shape": {
878
+ "rule": "repeated",
879
+ "type": "int32",
850
880
  "id": 2
851
881
  },
852
- "broadbandSource": {
853
- "type": "BroadbandSourceConfig",
854
- "id": 5
855
- },
856
- "electricalStimulation": {
857
- "type": "ElectricalStimulationConfig",
858
- "id": 6
859
- },
860
- "opticalStimulation": {
861
- "type": "OpticalStimulationConfig",
862
- "id": 8
863
- },
864
- "spikeDetector": {
865
- "type": "SpikeDetectorConfig",
866
- "id": 9
867
- },
868
- "spectralFilter": {
869
- "type": "SpectralFilterConfig",
870
- "id": 10
871
- },
872
- "diskWriter": {
873
- "type": "DiskWriterConfig",
874
- "id": 11
875
- },
876
- "spikeSource": {
877
- "type": "SpikeSourceConfig",
878
- "id": 12
882
+ "dtype": {
883
+ "type": "DType",
884
+ "id": 3
879
885
  },
880
- "spikeBinner": {
881
- "type": "SpikeBinnerConfig",
882
- "id": 13
886
+ "endianness": {
887
+ "type": "Endianness",
888
+ "id": 4
883
889
  },
884
- "application": {
885
- "type": "ApplicationNodeConfig",
886
- "id": 14
890
+ "data": {
891
+ "type": "bytes",
892
+ "id": 5
887
893
  }
888
894
  },
889
- "reserved": [
890
- [
891
- 3,
892
- 3
893
- ],
894
- [
895
- 4,
896
- 4
897
- ]
898
- ]
899
- },
900
- "NodeStatus": {
901
- "oneofs": {
902
- "status": {
903
- "oneof": [
904
- "broadbandSource",
905
- "electricalStimulation",
906
- "application",
907
- "opticalStimulation",
908
- "diskWriter"
909
- ]
895
+ "nested": {
896
+ "DType": {
897
+ "values": {
898
+ "DT_INVALID": 0,
899
+ "DT_FLOAT": 1,
900
+ "DT_DOUBLE": 2,
901
+ "DT_UINT8": 3,
902
+ "DT_UINT16": 4,
903
+ "DT_UINT32": 5,
904
+ "DT_UINT64": 6,
905
+ "DT_INT8": 7,
906
+ "DT_INT16": 8,
907
+ "DT_INT32": 9,
908
+ "DT_INT64": 10,
909
+ "DT_BOOL": 11
910
+ }
911
+ },
912
+ "Endianness": {
913
+ "values": {
914
+ "TENSOR_LITTLE_ENDIAN": 0,
915
+ "TENSOR_BIG_ENDIAN": 1
916
+ }
910
917
  }
911
- },
918
+ }
919
+ },
920
+ "BroadbandFrame": {
912
921
  "fields": {
913
- "type": {
914
- "type": "NodeType",
922
+ "timestampNs": {
923
+ "type": "uint64",
915
924
  "id": 1
916
925
  },
917
- "id": {
918
- "type": "uint32",
926
+ "sequenceNumber": {
927
+ "type": "uint64",
919
928
  "id": 2
920
929
  },
921
- "broadbandSource": {
922
- "type": "BroadbandSourceStatus",
923
- "id": 4
930
+ "frameData": {
931
+ "rule": "repeated",
932
+ "type": "sint32",
933
+ "id": 3
924
934
  },
925
- "electricalStimulation": {
926
- "type": "ElectricalStimulationStatus",
927
- "id": 6
935
+ "sampleRateHz": {
936
+ "type": "uint32",
937
+ "id": 4
928
938
  },
929
- "application": {
930
- "type": "ApplicationNodeStatus",
931
- "id": 7
939
+ "channelRanges": {
940
+ "rule": "repeated",
941
+ "type": "ChannelRange",
942
+ "id": 5
932
943
  },
933
- "opticalStimulation": {
934
- "type": "OpticalStimulationStatus",
935
- "id": 8
944
+ "unixTimestampNs": {
945
+ "type": "uint64",
946
+ "id": 6
947
+ }
948
+ }
949
+ },
950
+ "Timeseries": {
951
+ "fields": {
952
+ "id": {
953
+ "type": "uint32",
954
+ "id": 1
936
955
  },
937
- "diskWriter": {
938
- "type": "DiskWriterStatus",
939
- "id": 10
956
+ "datapoints": {
957
+ "rule": "repeated",
958
+ "type": "Datapoint",
959
+ "id": 2
940
960
  }
941
961
  },
942
- "reserved": [
943
- [
944
- 3,
945
- 3
946
- ],
947
- [
948
- 5,
949
- 5
950
- ]
951
- ]
962
+ "nested": {
963
+ "Datapoint": {
964
+ "fields": {
965
+ "timestampNs": {
966
+ "type": "uint64",
967
+ "id": 1
968
+ },
969
+ "sample": {
970
+ "type": "sint32",
971
+ "id": 2
972
+ }
973
+ }
974
+ }
975
+ }
952
976
  },
953
- "NodeConnection": {
977
+ "AnnotatedTensor": {
954
978
  "fields": {
955
- "srcNodeId": {
956
- "type": "uint32",
979
+ "tensor": {
980
+ "type": "Tensor",
957
981
  "id": 1
958
982
  },
959
- "dstNodeId": {
960
- "type": "uint32",
983
+ "metadata": {
984
+ "keyType": "string",
985
+ "type": "google.protobuf.Value",
961
986
  "id": 2
962
987
  }
963
988
  }
964
989
  },
965
- "TapType": {
990
+ "PixelFormat": {
966
991
  "values": {
967
- "TAP_TYPE_UNSPECIFIED": 0,
968
- "TAP_TYPE_PRODUCER": 1,
969
- "TAP_TYPE_CONSUMER": 2
992
+ "kPixelFormatUnknown": 0,
993
+ "kYUV420_888": 1,
994
+ "kRGB888": 2,
995
+ "kRGBA8888": 3,
996
+ "kGrayscale8": 4,
997
+ "kRAW10": 5,
998
+ "kRAW16": 6,
999
+ "kNV12": 7,
1000
+ "kNV21": 8
970
1001
  }
971
1002
  },
972
- "TapConnection": {
1003
+ "ImageFrame": {
973
1004
  "fields": {
974
- "name": {
975
- "type": "string",
1005
+ "width": {
1006
+ "type": "uint32",
976
1007
  "id": 1
977
1008
  },
978
- "endpoint": {
979
- "type": "string",
1009
+ "height": {
1010
+ "type": "uint32",
980
1011
  "id": 2
981
1012
  },
982
- "messageType": {
983
- "type": "string",
1013
+ "format": {
1014
+ "type": "PixelFormat",
984
1015
  "id": 3
985
1016
  },
986
- "tapType": {
987
- "type": "TapType",
1017
+ "sampleRateHz": {
1018
+ "type": "uint32",
988
1019
  "id": 4
1020
+ },
1021
+ "sequenceNumber": {
1022
+ "type": "uint64",
1023
+ "id": 5
1024
+ },
1025
+ "timestampNs": {
1026
+ "type": "uint64",
1027
+ "id": 6
1028
+ },
1029
+ "unixTimestampNs": {
1030
+ "type": "uint64",
1031
+ "id": 7
1032
+ },
1033
+ "data": {
1034
+ "type": "bytes",
1035
+ "id": 8
989
1036
  }
990
1037
  }
991
1038
  },
992
- "ListTapsQuery": {
993
- "fields": {}
994
- },
995
- "ListTapsResponse": {
1039
+ "FunctionProfile": {
996
1040
  "fields": {
997
- "taps": {
998
- "rule": "repeated",
999
- "type": "TapConnection",
1041
+ "name": {
1042
+ "type": "string",
1000
1043
  "id": 1
1044
+ },
1045
+ "callCount": {
1046
+ "type": "uint64",
1047
+ "id": 2
1048
+ },
1049
+ "minDurationNs": {
1050
+ "type": "uint64",
1051
+ "id": 3
1052
+ },
1053
+ "maxDurationNs": {
1054
+ "type": "uint64",
1055
+ "id": 4
1056
+ },
1057
+ "averageDurationNs": {
1058
+ "type": "uint64",
1059
+ "id": 5
1060
+ },
1061
+ "medianDurationNs": {
1062
+ "type": "uint64",
1063
+ "id": 6
1064
+ },
1065
+ "p99DurationNs": {
1066
+ "type": "uint64",
1067
+ "id": 7
1068
+ },
1069
+ "latestDurationNs": {
1070
+ "type": "uint64",
1071
+ "id": 8
1001
1072
  }
1002
1073
  }
1003
1074
  },
@@ -1031,7 +1102,8 @@
1031
1102
  "kBroadbandSource": 1,
1032
1103
  "kElectricalStimulation": 2,
1033
1104
  "kOpticalStimulation": 3,
1034
- "kSpikeSource": 4
1105
+ "kSpikeSource": 4,
1106
+ "kCamera": 5
1035
1107
  }
1036
1108
  }
1037
1109
  }
@@ -1084,18 +1156,64 @@
1084
1156
  }
1085
1157
  },
1086
1158
  "DeviceSettings": {
1159
+ "fields": {
1160
+ "values": {
1161
+ "type": "google.protobuf.Struct",
1162
+ "id": 4
1163
+ }
1164
+ },
1165
+ "reserved": [
1166
+ [
1167
+ 1,
1168
+ 1
1169
+ ],
1170
+ [
1171
+ 2,
1172
+ 2
1173
+ ],
1174
+ [
1175
+ 3,
1176
+ 3
1177
+ ],
1178
+ "name",
1179
+ "time_source",
1180
+ "fpga_clock_freq_hz"
1181
+ ]
1182
+ },
1183
+ "SettingDescriptor": {
1087
1184
  "fields": {
1088
1185
  "name": {
1089
1186
  "type": "string",
1090
1187
  "id": 1
1091
1188
  },
1092
- "timeSource": {
1093
- "type": "TimeSource",
1189
+ "description": {
1190
+ "type": "string",
1094
1191
  "id": 2
1095
1192
  },
1096
- "fpgaClockFreqHz": {
1097
- "type": "uint32",
1193
+ "kind": {
1194
+ "type": "Kind",
1098
1195
  "id": 3
1196
+ },
1197
+ "defaultValue": {
1198
+ "type": "google.protobuf.Value",
1199
+ "id": 4
1200
+ },
1201
+ "allowedValues": {
1202
+ "rule": "repeated",
1203
+ "type": "google.protobuf.Value",
1204
+ "id": 5
1205
+ }
1206
+ },
1207
+ "nested": {
1208
+ "Kind": {
1209
+ "values": {
1210
+ "kKindUnknown": 0,
1211
+ "kString": 1,
1212
+ "kInt": 2,
1213
+ "kDouble": 3,
1214
+ "kBool": 4,
1215
+ "kEnum": 5
1216
+ }
1099
1217
  }
1100
1218
  }
1101
1219
  },
@@ -1107,6 +1225,11 @@
1107
1225
  "settings": {
1108
1226
  "type": "DeviceSettings",
1109
1227
  "id": 1
1228
+ },
1229
+ "schema": {
1230
+ "rule": "repeated",
1231
+ "type": "SettingDescriptor",
1232
+ "id": 2
1110
1233
  }
1111
1234
  }
1112
1235
  },
@@ -1130,41 +1253,6 @@
1130
1253
  }
1131
1254
  }
1132
1255
  },
1133
- "TimeSyncPacket": {
1134
- "fields": {
1135
- "clientId": {
1136
- "type": "fixed32",
1137
- "id": 1
1138
- },
1139
- "sequence": {
1140
- "type": "fixed32",
1141
- "id": 2
1142
- },
1143
- "clientSendTimeNs": {
1144
- "type": "fixed64",
1145
- "id": 3
1146
- },
1147
- "serverReceiveTimeNs": {
1148
- "type": "fixed64",
1149
- "id": 4
1150
- },
1151
- "serverSendTimeNs": {
1152
- "type": "fixed64",
1153
- "id": 5
1154
- },
1155
- "clientReceiveTimeNs": {
1156
- "type": "fixed64",
1157
- "id": 6
1158
- }
1159
- }
1160
- },
1161
- "TimeSource": {
1162
- "values": {
1163
- "TIME_SOURCE_UNKNOWN": 0,
1164
- "TIME_SOURCE_STEADY_CLOCK": 1,
1165
- "TIME_SOURCE_SAMPLE_COUNTER": 2
1166
- }
1167
- },
1168
1256
  "ListFilesResponse": {
1169
1257
  "fields": {
1170
1258
  "files": {
@@ -1339,275 +1427,366 @@
1339
1427
  }
1340
1428
  }
1341
1429
  },
1342
- "AppManifest": {
1430
+ "SampleQuery": {
1343
1431
  "fields": {
1344
- "name": {
1345
- "type": "string",
1432
+ "channels": {
1433
+ "rule": "repeated",
1434
+ "type": "Channel",
1346
1435
  "id": 1
1347
1436
  },
1348
- "configSchema": {
1349
- "type": "google.protobuf.Struct",
1437
+ "sampleCount": {
1438
+ "type": "uint32",
1439
+ "id": 2
1440
+ }
1441
+ }
1442
+ },
1443
+ "ImpedanceQuery": {
1444
+ "fields": {
1445
+ "electrodeIds": {
1446
+ "rule": "repeated",
1447
+ "type": "uint32",
1448
+ "id": 1
1449
+ }
1450
+ }
1451
+ },
1452
+ "SelfTestQuery": {
1453
+ "fields": {
1454
+ "peripheralId": {
1455
+ "type": "uint32",
1456
+ "id": 1
1457
+ }
1458
+ }
1459
+ },
1460
+ "ImpedanceMeasurement": {
1461
+ "fields": {
1462
+ "electrodeId": {
1463
+ "type": "uint32",
1464
+ "id": 1
1465
+ },
1466
+ "magnitude": {
1467
+ "type": "float",
1350
1468
  "id": 2
1351
1469
  },
1352
- "deviceConfig": {
1353
- "type": "DeviceConfiguration",
1470
+ "phase": {
1471
+ "type": "float",
1354
1472
  "id": 3
1355
1473
  }
1356
1474
  }
1357
1475
  },
1358
- "PackageMetadata": {
1476
+ "ImpedanceResponse": {
1359
1477
  "fields": {
1360
- "name": {
1478
+ "measurements": {
1479
+ "rule": "repeated",
1480
+ "type": "ImpedanceMeasurement",
1481
+ "id": 1
1482
+ }
1483
+ }
1484
+ },
1485
+ "SelfTestItem": {
1486
+ "fields": {
1487
+ "testName": {
1361
1488
  "type": "string",
1362
1489
  "id": 1
1363
1490
  },
1364
- "version": {
1365
- "type": "string",
1491
+ "passed": {
1492
+ "type": "bool",
1366
1493
  "id": 2
1367
1494
  },
1368
- "size": {
1369
- "type": "uint64",
1495
+ "testData": {
1496
+ "rule": "repeated",
1497
+ "type": "uint32",
1370
1498
  "id": 3
1371
1499
  },
1372
- "sha256Sum": {
1500
+ "testReport": {
1373
1501
  "type": "string",
1374
1502
  "id": 4
1375
1503
  }
1376
1504
  }
1377
1505
  },
1378
- "AppPackageChunk": {
1506
+ "SelfTestResponse": {
1507
+ "fields": {
1508
+ "allPassed": {
1509
+ "type": "bool",
1510
+ "id": 1
1511
+ },
1512
+ "tests": {
1513
+ "rule": "repeated",
1514
+ "type": "SelfTestItem",
1515
+ "id": 2
1516
+ }
1517
+ }
1518
+ },
1519
+ "QueryRequest": {
1379
1520
  "oneofs": {
1380
- "data": {
1521
+ "query": {
1381
1522
  "oneof": [
1382
- "metadata",
1383
- "fileChunk"
1523
+ "impedanceQuery",
1524
+ "sampleQuery",
1525
+ "selfTestQuery",
1526
+ "listTapsQuery",
1527
+ "getSettingsQuery"
1384
1528
  ]
1385
1529
  }
1386
1530
  },
1387
1531
  "fields": {
1388
- "metadata": {
1389
- "type": "PackageMetadata",
1532
+ "queryType": {
1533
+ "type": "QueryType",
1390
1534
  "id": 1
1391
1535
  },
1392
- "fileChunk": {
1393
- "type": "bytes",
1536
+ "impedanceQuery": {
1537
+ "type": "ImpedanceQuery",
1538
+ "id": 2
1539
+ },
1540
+ "sampleQuery": {
1541
+ "type": "SampleQuery",
1542
+ "id": 3
1543
+ },
1544
+ "selfTestQuery": {
1545
+ "type": "SelfTestQuery",
1546
+ "id": 4
1547
+ },
1548
+ "listTapsQuery": {
1549
+ "type": "ListTapsQuery",
1550
+ "id": 5
1551
+ },
1552
+ "getSettingsQuery": {
1553
+ "type": "GetSettingsQuery",
1554
+ "id": 6
1555
+ }
1556
+ },
1557
+ "nested": {
1558
+ "QueryType": {
1559
+ "values": {
1560
+ "kNone": 0,
1561
+ "kImpedance": 1,
1562
+ "kSample": 2,
1563
+ "kSelfTest": 3,
1564
+ "kListTaps": 4,
1565
+ "kGetSettings": 5
1566
+ }
1567
+ }
1568
+ }
1569
+ },
1570
+ "StreamQueryRequest": {
1571
+ "fields": {
1572
+ "request": {
1573
+ "type": "QueryRequest",
1574
+ "id": 1
1575
+ }
1576
+ }
1577
+ },
1578
+ "QueryResponse": {
1579
+ "oneofs": {
1580
+ "response": {
1581
+ "oneof": [
1582
+ "impedanceResponse",
1583
+ "selfTestResponse",
1584
+ "listTapsResponse",
1585
+ "getSettingsResponse"
1586
+ ]
1587
+ }
1588
+ },
1589
+ "fields": {
1590
+ "status": {
1591
+ "type": "Status",
1592
+ "id": 1
1593
+ },
1594
+ "data": {
1595
+ "rule": "repeated",
1596
+ "type": "uint32",
1394
1597
  "id": 2
1598
+ },
1599
+ "impedanceResponse": {
1600
+ "type": "ImpedanceResponse",
1601
+ "id": 3
1602
+ },
1603
+ "selfTestResponse": {
1604
+ "type": "SelfTestResponse",
1605
+ "id": 4
1606
+ },
1607
+ "listTapsResponse": {
1608
+ "type": "ListTapsResponse",
1609
+ "id": 5
1610
+ },
1611
+ "getSettingsResponse": {
1612
+ "type": "GetSettingsResponse",
1613
+ "id": 6
1395
1614
  }
1396
1615
  }
1397
1616
  },
1398
- "AppDeployResponse": {
1617
+ "StreamQueryResponse": {
1618
+ "oneofs": {
1619
+ "response": {
1620
+ "oneof": [
1621
+ "impedance",
1622
+ "selfTest"
1623
+ ]
1624
+ }
1625
+ },
1399
1626
  "fields": {
1400
- "status": {
1627
+ "code": {
1401
1628
  "type": "StatusCode",
1402
1629
  "id": 1
1403
1630
  },
1404
1631
  "message": {
1405
1632
  "type": "string",
1406
1633
  "id": 2
1407
- }
1408
- }
1409
- },
1410
- "AppPerformanceSummary": {
1411
- "fields": {
1634
+ },
1412
1635
  "timestampNs": {
1413
1636
  "type": "uint64",
1414
- "id": 1
1637
+ "id": 3
1415
1638
  },
1416
- "functionProfiles": {
1417
- "rule": "repeated",
1418
- "type": "FunctionProfile",
1419
- "id": 2
1639
+ "impedance": {
1640
+ "type": "ImpedanceResponse",
1641
+ "id": 4
1642
+ },
1643
+ "selfTest": {
1644
+ "type": "SelfTestResponse",
1645
+ "id": 5
1420
1646
  }
1421
1647
  }
1422
1648
  },
1423
- "AppInfo": {
1649
+ "TapType": {
1650
+ "values": {
1651
+ "TAP_TYPE_UNSPECIFIED": 0,
1652
+ "TAP_TYPE_PRODUCER": 1,
1653
+ "TAP_TYPE_CONSUMER": 2
1654
+ }
1655
+ },
1656
+ "TapConnection": {
1424
1657
  "fields": {
1425
1658
  "name": {
1426
1659
  "type": "string",
1427
1660
  "id": 1
1428
1661
  },
1429
- "version": {
1662
+ "endpoint": {
1430
1663
  "type": "string",
1431
1664
  "id": 2
1665
+ },
1666
+ "messageType": {
1667
+ "type": "string",
1668
+ "id": 3
1669
+ },
1670
+ "tapType": {
1671
+ "type": "TapType",
1672
+ "id": 4
1432
1673
  }
1433
1674
  }
1434
1675
  },
1435
- "ListAppsRequest": {
1676
+ "ListTapsQuery": {
1436
1677
  "fields": {}
1437
1678
  },
1438
- "ListAppsResponse": {
1679
+ "ListTapsResponse": {
1439
1680
  "fields": {
1440
- "apps": {
1681
+ "taps": {
1441
1682
  "rule": "repeated",
1442
- "type": "AppInfo",
1683
+ "type": "TapConnection",
1443
1684
  "id": 1
1444
1685
  }
1445
1686
  }
1446
1687
  },
1447
- "FunctionProfile": {
1448
- "fields": {
1449
- "name": {
1450
- "type": "string",
1451
- "id": 1
1688
+ "SynapseDevice": {
1689
+ "methods": {
1690
+ "Info": {
1691
+ "requestType": "google.protobuf.Empty",
1692
+ "responseType": "DeviceInfo"
1452
1693
  },
1453
- "callCount": {
1454
- "type": "uint64",
1455
- "id": 2
1694
+ "Configure": {
1695
+ "requestType": "DeviceConfiguration",
1696
+ "responseType": "Status"
1456
1697
  },
1457
- "minDurationNs": {
1458
- "type": "uint64",
1459
- "id": 3
1698
+ "Start": {
1699
+ "requestType": "google.protobuf.Empty",
1700
+ "responseType": "Status"
1460
1701
  },
1461
- "maxDurationNs": {
1462
- "type": "uint64",
1463
- "id": 4
1702
+ "Stop": {
1703
+ "requestType": "google.protobuf.Empty",
1704
+ "responseType": "Status"
1464
1705
  },
1465
- "averageDurationNs": {
1466
- "type": "uint64",
1467
- "id": 5
1706
+ "Query": {
1707
+ "requestType": "QueryRequest",
1708
+ "responseType": "QueryResponse"
1468
1709
  },
1469
- "medianDurationNs": {
1470
- "type": "uint64",
1471
- "id": 6
1710
+ "StreamQuery": {
1711
+ "requestType": "StreamQueryRequest",
1712
+ "responseType": "StreamQueryResponse",
1713
+ "responseStream": true
1472
1714
  },
1473
- "p99DurationNs": {
1474
- "type": "uint64",
1475
- "id": 7
1715
+ "DeployApp": {
1716
+ "requestType": "AppPackageChunk",
1717
+ "requestStream": true,
1718
+ "responseType": "AppDeployResponse",
1719
+ "responseStream": true
1476
1720
  },
1477
- "latestDurationNs": {
1478
- "type": "uint64",
1479
- "id": 8
1480
- }
1481
- }
1482
- },
1483
- "DataType": {
1484
- "values": {
1485
- "kDataTypeUnknown": 0,
1486
- "kAny": 1,
1487
- "kBroadband": 2,
1488
- "kSpiketrain": 3,
1489
- "kTimestamps": 4,
1490
- "kImage": 5,
1491
- "kWaveforms": 6
1492
- }
1493
- },
1494
- "Tensor": {
1495
- "fields": {
1496
- "timestampNs": {
1497
- "type": "uint64",
1498
- "id": 1
1721
+ "ListApps": {
1722
+ "requestType": "ListAppsRequest",
1723
+ "responseType": "ListAppsResponse"
1499
1724
  },
1500
- "shape": {
1501
- "rule": "repeated",
1502
- "type": "int32",
1503
- "id": 2
1725
+ "ListFiles": {
1726
+ "requestType": "google.protobuf.Empty",
1727
+ "responseType": "ListFilesResponse"
1504
1728
  },
1505
- "dtype": {
1506
- "type": "DType",
1507
- "id": 3
1729
+ "WriteFile": {
1730
+ "requestType": "WriteFileRequest",
1731
+ "responseType": "WriteFileResponse"
1508
1732
  },
1509
- "endianness": {
1510
- "type": "Endianness",
1511
- "id": 4
1733
+ "ReadFile": {
1734
+ "requestType": "ReadFileRequest",
1735
+ "responseType": "ReadFileResponse",
1736
+ "responseStream": true
1512
1737
  },
1513
- "data": {
1514
- "type": "bytes",
1515
- "id": 5
1516
- }
1517
- },
1518
- "nested": {
1519
- "DType": {
1520
- "values": {
1521
- "DT_INVALID": 0,
1522
- "DT_FLOAT": 1,
1523
- "DT_DOUBLE": 2,
1524
- "DT_UINT8": 3,
1525
- "DT_UINT16": 4,
1526
- "DT_UINT32": 5,
1527
- "DT_UINT64": 6,
1528
- "DT_INT8": 7,
1529
- "DT_INT16": 8,
1530
- "DT_INT32": 9,
1531
- "DT_INT64": 10,
1532
- "DT_BOOL": 11
1533
- }
1738
+ "DeleteFile": {
1739
+ "requestType": "DeleteFileRequest",
1740
+ "responseType": "DeleteFileResponse"
1534
1741
  },
1535
- "Endianness": {
1536
- "values": {
1537
- "TENSOR_LITTLE_ENDIAN": 0,
1538
- "TENSOR_BIG_ENDIAN": 1
1539
- }
1742
+ "GetLogs": {
1743
+ "requestType": "LogQueryRequest",
1744
+ "responseType": "LogQueryResponse"
1745
+ },
1746
+ "TailLogs": {
1747
+ "requestType": "TailLogsRequest",
1748
+ "responseType": "LogEntry",
1749
+ "responseStream": true
1750
+ },
1751
+ "UpdateDeviceSettings": {
1752
+ "requestType": "UpdateDeviceSettingsRequest",
1753
+ "responseType": "UpdateDeviceSettingsResponse"
1540
1754
  }
1541
1755
  }
1542
1756
  },
1543
- "BroadbandFrame": {
1757
+ "TimeSyncPacket": {
1544
1758
  "fields": {
1545
- "timestampNs": {
1546
- "type": "uint64",
1759
+ "clientId": {
1760
+ "type": "fixed32",
1547
1761
  "id": 1
1548
1762
  },
1549
- "sequenceNumber": {
1550
- "type": "uint64",
1763
+ "sequence": {
1764
+ "type": "fixed32",
1551
1765
  "id": 2
1552
1766
  },
1553
- "frameData": {
1554
- "rule": "repeated",
1555
- "type": "sint32",
1767
+ "clientSendTimeNs": {
1768
+ "type": "fixed64",
1556
1769
  "id": 3
1557
1770
  },
1558
- "sampleRateHz": {
1559
- "type": "uint32",
1771
+ "serverReceiveTimeNs": {
1772
+ "type": "fixed64",
1560
1773
  "id": 4
1561
1774
  },
1562
- "channelRanges": {
1563
- "rule": "repeated",
1564
- "type": "ChannelRange",
1775
+ "serverSendTimeNs": {
1776
+ "type": "fixed64",
1565
1777
  "id": 5
1566
1778
  },
1567
- "unixTimestampNs": {
1568
- "type": "uint64",
1779
+ "clientReceiveTimeNs": {
1780
+ "type": "fixed64",
1569
1781
  "id": 6
1570
1782
  }
1571
1783
  }
1572
1784
  },
1573
- "Timeseries": {
1574
- "fields": {
1575
- "id": {
1576
- "type": "uint32",
1577
- "id": 1
1578
- },
1579
- "datapoints": {
1580
- "rule": "repeated",
1581
- "type": "Datapoint",
1582
- "id": 2
1583
- }
1584
- },
1585
- "nested": {
1586
- "Datapoint": {
1587
- "fields": {
1588
- "timestampNs": {
1589
- "type": "uint64",
1590
- "id": 1
1591
- },
1592
- "sample": {
1593
- "type": "sint32",
1594
- "id": 2
1595
- }
1596
- }
1597
- }
1598
- }
1599
- },
1600
- "AnnotatedTensor": {
1601
- "fields": {
1602
- "tensor": {
1603
- "type": "Tensor",
1604
- "id": 1
1605
- },
1606
- "metadata": {
1607
- "keyType": "string",
1608
- "type": "google.protobuf.Value",
1609
- "id": 2
1610
- }
1785
+ "TimeSource": {
1786
+ "values": {
1787
+ "TIME_SOURCE_UNKNOWN": 0,
1788
+ "TIME_SOURCE_STEADY_CLOCK": 1,
1789
+ "TIME_SOURCE_SAMPLE_COUNTER": 2
1611
1790
  }
1612
1791
  }
1613
1792
  }