@science-corporation/synapse 2.2.7 → 2.2.9

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,388 @@
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
+ },
242
+ "reserved": [
243
+ [
244
+ 1,
245
+ 1
246
+ ],
247
+ [
248
+ 2,
249
+ 2
250
+ ]
251
+ ]
233
252
  },
234
- "SpikeDetectorConfig": {
253
+ "NodeConfig": {
235
254
  "oneofs": {
236
255
  "config": {
237
256
  "oneof": [
238
- "thresholder",
239
- "templateMatcher"
257
+ "broadbandSource",
258
+ "electricalStimulation",
259
+ "opticalStimulation",
260
+ "spikeDetector",
261
+ "spectralFilter",
262
+ "diskWriter",
263
+ "spikeSource",
264
+ "spikeBinner",
265
+ "application"
240
266
  ]
241
267
  }
242
268
  },
243
269
  "fields": {
244
- "thresholder": {
245
- "type": "Thresholder",
270
+ "type": {
271
+ "type": "NodeType",
246
272
  "id": 1
247
273
  },
248
- "templateMatcher": {
249
- "type": "TemplateMatcher",
274
+ "id": {
275
+ "type": "uint32",
250
276
  "id": 2
251
277
  },
252
- "samplesPerSpike": {
253
- "type": "uint32",
254
- "id": 3
278
+ "broadbandSource": {
279
+ "type": "BroadbandSourceConfig",
280
+ "id": 5
281
+ },
282
+ "electricalStimulation": {
283
+ "type": "ElectricalStimulationConfig",
284
+ "id": 6
285
+ },
286
+ "opticalStimulation": {
287
+ "type": "OpticalStimulationConfig",
288
+ "id": 8
289
+ },
290
+ "spikeDetector": {
291
+ "type": "SpikeDetectorConfig",
292
+ "id": 9
293
+ },
294
+ "spectralFilter": {
295
+ "type": "SpectralFilterConfig",
296
+ "id": 10
297
+ },
298
+ "diskWriter": {
299
+ "type": "DiskWriterConfig",
300
+ "id": 11
301
+ },
302
+ "spikeSource": {
303
+ "type": "SpikeSourceConfig",
304
+ "id": 12
305
+ },
306
+ "spikeBinner": {
307
+ "type": "SpikeBinnerConfig",
308
+ "id": 13
309
+ },
310
+ "application": {
311
+ "type": "ApplicationNodeConfig",
312
+ "id": 14
255
313
  }
256
- }
314
+ },
315
+ "reserved": [
316
+ [
317
+ 3,
318
+ 3
319
+ ],
320
+ [
321
+ 4,
322
+ 4
323
+ ]
324
+ ]
257
325
  },
258
- "DiskWriterConfig": {
259
- "fields": {
260
- "filename": {
261
- "type": "string",
262
- "id": 1
326
+ "NodeStatus": {
327
+ "oneofs": {
328
+ "status": {
329
+ "oneof": [
330
+ "broadbandSource",
331
+ "electricalStimulation",
332
+ "application",
333
+ "opticalStimulation",
334
+ "diskWriter"
335
+ ]
263
336
  }
264
- }
265
- },
266
- "DiskWriterStatus": {
337
+ },
267
338
  "fields": {
268
- "outputPath": {
269
- "type": "string",
339
+ "type": {
340
+ "type": "NodeType",
270
341
  "id": 1
271
342
  },
272
- "bytesWritten": {
273
- "type": "uint64",
343
+ "id": {
344
+ "type": "uint32",
274
345
  "id": 2
275
346
  },
276
- "isWriting": {
277
- "type": "bool",
278
- "id": 3
279
- },
280
- "availableDiskSpaceBytes": {
281
- "type": "uint64",
347
+ "broadbandSource": {
348
+ "type": "BroadbandSourceStatus",
282
349
  "id": 4
283
350
  },
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
- ]
351
+ "electricalStimulation": {
352
+ "type": "ElectricalStimulationStatus",
353
+ "id": 6
354
+ },
355
+ "application": {
356
+ "type": "ApplicationNodeStatus",
357
+ "id": 7
358
+ },
359
+ "opticalStimulation": {
360
+ "type": "OpticalStimulationStatus",
361
+ "id": 8
362
+ },
363
+ "diskWriter": {
364
+ "type": "DiskWriterStatus",
365
+ "id": 10
308
366
  }
309
367
  },
368
+ "reserved": [
369
+ [
370
+ 3,
371
+ 3
372
+ ],
373
+ [
374
+ 5,
375
+ 5
376
+ ]
377
+ ]
378
+ },
379
+ "NodeConnection": {
310
380
  "fields": {
311
- "electrode": {
312
- "type": "ElectrodeStatus",
381
+ "srcNodeId": {
382
+ "type": "uint32",
313
383
  "id": 1
314
384
  },
315
- "pixel": {
316
- "type": "PixelStatus",
385
+ "dstNodeId": {
386
+ "type": "uint32",
317
387
  "id": 2
318
388
  }
319
389
  }
@@ -350,656 +420,431 @@
350
420
  }
351
421
  }
352
422
  },
353
- "OpticalStimulationConfig": {
423
+ "ElectrodeConfig": {
354
424
  "fields": {
355
- "peripheralId": {
356
- "type": "uint32",
425
+ "channels": {
426
+ "rule": "repeated",
427
+ "type": "Channel",
357
428
  "id": 1
358
429
  },
359
- "pixelMask": {
360
- "rule": "repeated",
361
- "type": "uint32",
430
+ "lowCutoffHz": {
431
+ "type": "float",
362
432
  "id": 2
363
433
  },
364
- "bitWidth": {
365
- "type": "uint32",
434
+ "highCutoffHz": {
435
+ "type": "float",
366
436
  "id": 3
367
- },
368
- "frameRate": {
437
+ }
438
+ }
439
+ },
440
+ "PixelConfig": {
441
+ "fields": {
442
+ "pixelMask": {
443
+ "rule": "repeated",
369
444
  "type": "uint32",
370
- "id": 4
371
- },
372
- "gain": {
373
- "type": "float",
374
- "id": 5
375
- },
376
- "sendReceipts": {
377
- "type": "bool",
378
- "id": 6
445
+ "id": 1
379
446
  }
380
447
  }
381
448
  },
382
- "OpticalStimFrame": {
449
+ "SignalConfig": {
450
+ "oneofs": {
451
+ "signalType": {
452
+ "oneof": [
453
+ "electrode",
454
+ "pixel"
455
+ ]
456
+ }
457
+ },
383
458
  "fields": {
384
- "frameId": {
385
- "type": "uint64",
459
+ "electrode": {
460
+ "type": "ElectrodeConfig",
386
461
  "id": 1
387
462
  },
388
- "sequenceNumber": {
389
- "type": "uint64",
390
- "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
463
+ "pixel": {
464
+ "type": "PixelConfig",
465
+ "id": 2
412
466
  }
413
467
  }
414
468
  },
415
- "OpticalStimulationStatus": {
416
- "fields": {
417
- "framesWritten": {
418
- "type": "uint64",
419
- "id": 1
420
- }
469
+ "ChannelType": {
470
+ "values": {
471
+ "ELECTRODE": 0,
472
+ "GPIO": 1
421
473
  }
422
474
  },
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"
475
+ "Channel": {
476
+ "fields": {
477
+ "id": {
478
+ "type": "uint32",
479
+ "id": 1
476
480
  },
477
- "GetLogs": {
478
- "requestType": "LogQueryRequest",
479
- "responseType": "LogQueryResponse"
481
+ "electrodeId": {
482
+ "type": "uint32",
483
+ "id": 2
480
484
  },
481
- "TailLogs": {
482
- "requestType": "TailLogsRequest",
483
- "responseType": "LogEntry",
484
- "responseStream": true
485
+ "referenceId": {
486
+ "type": "uint32",
487
+ "id": 3
485
488
  },
486
- "UpdateDeviceSettings": {
487
- "requestType": "UpdateDeviceSettingsRequest",
488
- "responseType": "UpdateDeviceSettingsResponse"
489
+ "type": {
490
+ "type": "ChannelType",
491
+ "id": 4
489
492
  }
490
493
  }
491
494
  },
492
- "SampleQuery": {
495
+ "ChannelRange": {
493
496
  "fields": {
494
- "channels": {
495
- "rule": "repeated",
496
- "type": "Channel",
497
+ "type": {
498
+ "type": "ChannelType",
497
499
  "id": 1
498
500
  },
499
- "sampleCount": {
501
+ "count": {
500
502
  "type": "uint32",
501
503
  "id": 2
504
+ },
505
+ "channelIds": {
506
+ "rule": "repeated",
507
+ "type": "uint32",
508
+ "id": 3
502
509
  }
503
510
  }
504
511
  },
505
- "ImpedanceQuery": {
512
+ "ElectrodeStatus": {
506
513
  "fields": {
507
- "electrodeIds": {
508
- "rule": "repeated",
509
- "type": "uint32",
514
+ "lsbUV": {
515
+ "type": "float",
510
516
  "id": 1
511
517
  }
512
518
  }
513
519
  },
514
- "SelfTestQuery": {
520
+ "PixelStatus": {
521
+ "fields": {}
522
+ },
523
+ "SignalStatus": {
524
+ "oneofs": {
525
+ "signalType": {
526
+ "oneof": [
527
+ "electrode",
528
+ "pixel"
529
+ ]
530
+ }
531
+ },
515
532
  "fields": {
516
- "peripheralId": {
517
- "type": "uint32",
533
+ "electrode": {
534
+ "type": "ElectrodeStatus",
518
535
  "id": 1
536
+ },
537
+ "pixel": {
538
+ "type": "PixelStatus",
539
+ "id": 2
519
540
  }
520
541
  }
521
542
  },
522
- "ImpedanceMeasurement": {
543
+ "ElectricalStimulationConfig": {
523
544
  "fields": {
524
- "electrodeId": {
545
+ "peripheralId": {
525
546
  "type": "uint32",
526
547
  "id": 1
527
548
  },
528
- "magnitude": {
529
- "type": "float",
549
+ "channels": {
550
+ "rule": "repeated",
551
+ "type": "Channel",
530
552
  "id": 2
531
553
  },
532
- "phase": {
533
- "type": "float",
554
+ "bitWidth": {
555
+ "type": "uint32",
534
556
  "id": 3
557
+ },
558
+ "sampleRate": {
559
+ "type": "uint32",
560
+ "id": 4
561
+ },
562
+ "lsb": {
563
+ "type": "uint32",
564
+ "id": 5
535
565
  }
536
566
  }
537
567
  },
538
- "ImpedanceResponse": {
568
+ "ElectricalStimulationStatus": {
539
569
  "fields": {
540
- "measurements": {
541
- "rule": "repeated",
542
- "type": "ImpedanceMeasurement",
570
+ "lsbUV": {
571
+ "type": "float",
543
572
  "id": 1
544
573
  }
545
574
  }
546
575
  },
547
- "SelfTestItem": {
576
+ "OpticalStimulationConfig": {
548
577
  "fields": {
549
- "testName": {
550
- "type": "string",
578
+ "peripheralId": {
579
+ "type": "uint32",
551
580
  "id": 1
552
581
  },
553
- "passed": {
554
- "type": "bool",
582
+ "pixelMask": {
583
+ "rule": "repeated",
584
+ "type": "uint32",
555
585
  "id": 2
556
586
  },
557
- "testData": {
558
- "rule": "repeated",
587
+ "bitWidth": {
559
588
  "type": "uint32",
560
589
  "id": 3
561
590
  },
562
- "testReport": {
563
- "type": "string",
591
+ "frameRate": {
592
+ "type": "uint32",
564
593
  "id": 4
565
- }
566
- }
567
- },
568
- "SelfTestResponse": {
569
- "fields": {
570
- "allPassed": {
571
- "type": "bool",
572
- "id": 1
573
594
  },
574
- "tests": {
575
- "rule": "repeated",
576
- "type": "SelfTestItem",
577
- "id": 2
595
+ "gain": {
596
+ "type": "float",
597
+ "id": 5
598
+ },
599
+ "sendReceipts": {
600
+ "type": "bool",
601
+ "id": 6
578
602
  }
579
603
  }
580
604
  },
581
- "QueryRequest": {
582
- "oneofs": {
583
- "query": {
584
- "oneof": [
585
- "impedanceQuery",
586
- "sampleQuery",
587
- "selfTestQuery",
588
- "listTapsQuery",
589
- "getSettingsQuery"
590
- ]
591
- }
592
- },
605
+ "OpticalStimFrame": {
593
606
  "fields": {
594
- "queryType": {
595
- "type": "QueryType",
607
+ "frameId": {
608
+ "type": "uint64",
596
609
  "id": 1
597
610
  },
598
- "impedanceQuery": {
599
- "type": "ImpedanceQuery",
611
+ "sequenceNumber": {
612
+ "type": "uint64",
600
613
  "id": 2
601
614
  },
602
- "sampleQuery": {
603
- "type": "SampleQuery",
615
+ "timestampNs": {
616
+ "type": "uint64",
604
617
  "id": 3
605
618
  },
606
- "selfTestQuery": {
607
- "type": "SelfTestQuery",
619
+ "rows": {
620
+ "type": "uint32",
608
621
  "id": 4
609
622
  },
610
- "listTapsQuery": {
611
- "type": "ListTapsQuery",
623
+ "columns": {
624
+ "type": "uint32",
612
625
  "id": 5
613
626
  },
614
- "getSettingsQuery": {
615
- "type": "GetSettingsQuery",
627
+ "intensity": {
628
+ "rule": "repeated",
629
+ "type": "float",
616
630
  "id": 6
631
+ },
632
+ "durationUs": {
633
+ "type": "uint64",
634
+ "id": 7
617
635
  }
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
- }
636
+ }
637
+ },
638
+ "OpticalStimulationStatus": {
639
+ "fields": {
640
+ "framesWritten": {
641
+ "type": "uint64",
642
+ "id": 1
629
643
  }
630
644
  }
631
645
  },
632
- "StreamQueryRequest": {
646
+ "TemplateMatcher": {
633
647
  "fields": {
634
- "request": {
635
- "type": "QueryRequest",
648
+ "templateUV": {
649
+ "rule": "repeated",
650
+ "type": "uint32",
636
651
  "id": 1
637
652
  }
638
653
  }
639
654
  },
640
- "QueryResponse": {
655
+ "Thresholder": {
656
+ "fields": {
657
+ "thresholdUV": {
658
+ "type": "uint32",
659
+ "id": 1
660
+ }
661
+ }
662
+ },
663
+ "SpikeDetectorConfig": {
641
664
  "oneofs": {
642
- "response": {
665
+ "config": {
643
666
  "oneof": [
644
- "impedanceResponse",
645
- "selfTestResponse",
646
- "listTapsResponse",
647
- "getSettingsResponse"
667
+ "thresholder",
668
+ "templateMatcher"
648
669
  ]
649
670
  }
650
671
  },
651
672
  "fields": {
652
- "status": {
653
- "type": "Status",
673
+ "thresholder": {
674
+ "type": "Thresholder",
654
675
  "id": 1
655
676
  },
656
- "data": {
657
- "rule": "repeated",
658
- "type": "uint32",
677
+ "templateMatcher": {
678
+ "type": "TemplateMatcher",
659
679
  "id": 2
660
680
  },
661
- "impedanceResponse": {
662
- "type": "ImpedanceResponse",
681
+ "samplesPerSpike": {
682
+ "type": "uint32",
663
683
  "id": 3
684
+ }
685
+ }
686
+ },
687
+ "SpectralFilterMethod": {
688
+ "values": {
689
+ "kSpectralFilterUnknown": 0,
690
+ "kLowPass": 1,
691
+ "kHighPass": 2,
692
+ "kBandPass": 3,
693
+ "kBandStop": 4
694
+ }
695
+ },
696
+ "SpectralFilterConfig": {
697
+ "fields": {
698
+ "method": {
699
+ "type": "SpectralFilterMethod",
700
+ "id": 1
664
701
  },
665
- "selfTestResponse": {
666
- "type": "SelfTestResponse",
667
- "id": 4
668
- },
669
- "listTapsResponse": {
670
- "type": "ListTapsResponse",
671
- "id": 5
702
+ "lowCutoffHz": {
703
+ "type": "float",
704
+ "id": 2
672
705
  },
673
- "getSettingsResponse": {
674
- "type": "GetSettingsResponse",
675
- "id": 6
706
+ "highCutoffHz": {
707
+ "type": "float",
708
+ "id": 3
676
709
  }
677
710
  }
678
711
  },
679
- "StreamQueryResponse": {
680
- "oneofs": {
681
- "response": {
682
- "oneof": [
683
- "impedance",
684
- "selfTest"
685
- ]
686
- }
687
- },
712
+ "DiskWriterConfig": {
688
713
  "fields": {
689
- "code": {
690
- "type": "StatusCode",
714
+ "filename": {
715
+ "type": "string",
691
716
  "id": 1
692
717
  },
693
- "message": {
694
- "type": "string",
718
+ "storageDeviceId": {
719
+ "type": "uint32",
695
720
  "id": 2
721
+ }
722
+ }
723
+ },
724
+ "DiskWriterStatus": {
725
+ "fields": {
726
+ "outputPath": {
727
+ "type": "string",
728
+ "id": 1
696
729
  },
697
- "timestampNs": {
730
+ "bytesWritten": {
698
731
  "type": "uint64",
732
+ "id": 2
733
+ },
734
+ "isWriting": {
735
+ "type": "bool",
699
736
  "id": 3
700
737
  },
701
- "impedance": {
702
- "type": "ImpedanceResponse",
738
+ "availableDiskSpaceBytes": {
739
+ "type": "uint64",
703
740
  "id": 4
704
741
  },
705
- "selfTest": {
706
- "type": "SelfTestResponse",
742
+ "currentBitrateMbps": {
743
+ "type": "float",
707
744
  "id": 5
708
745
  }
709
746
  }
710
747
  },
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": {
748
+ "SpikeSourceConfig": {
733
749
  "fields": {
734
- "totalGb": {
735
- "type": "float",
750
+ "peripheralId": {
751
+ "type": "uint32",
736
752
  "id": 1
737
753
  },
738
- "usedGb": {
739
- "type": "float",
754
+ "sampleRateHz": {
755
+ "type": "uint32",
740
756
  "id": 2
757
+ },
758
+ "spikeWindowMs": {
759
+ "type": "float",
760
+ "id": 3
761
+ },
762
+ "gain": {
763
+ "type": "float",
764
+ "id": 4
765
+ },
766
+ "thresholdUV": {
767
+ "type": "float",
768
+ "id": 5
769
+ },
770
+ "electrodes": {
771
+ "type": "ElectrodeConfig",
772
+ "id": 6
741
773
  }
742
774
  }
743
775
  },
744
- "DevicePower": {
776
+ "SpikeBinnerConfig": {
745
777
  "fields": {
746
- "batteryLevelPercent": {
747
- "type": "float",
778
+ "binSizeMs": {
779
+ "type": "uint32",
780
+ "id": 1
781
+ }
782
+ }
783
+ },
784
+ "ApplicationNodeConfig": {
785
+ "fields": {
786
+ "name": {
787
+ "type": "string",
748
788
  "id": 1
749
789
  },
750
- "isCharging": {
751
- "type": "bool",
790
+ "parameters": {
791
+ "keyType": "string",
792
+ "type": "google.protobuf.Value",
752
793
  "id": 2
753
794
  }
754
795
  }
755
796
  },
756
- "SignalChainStatus": {
797
+ "ApplicationNodeStatus": {
757
798
  "fields": {
758
- "nodes": {
759
- "rule": "repeated",
760
- "type": "NodeStatus",
799
+ "name": {
800
+ "type": "string",
761
801
  "id": 1
802
+ },
803
+ "running": {
804
+ "type": "bool",
805
+ "id": 2
806
+ },
807
+ "errorLogs": {
808
+ "type": "string",
809
+ "id": 3
762
810
  }
763
811
  }
764
812
  },
765
- "Status": {
813
+ "FunctionProfile": {
766
814
  "fields": {
767
- "message": {
815
+ "name": {
768
816
  "type": "string",
769
817
  "id": 1
770
818
  },
771
- "code": {
772
- "type": "StatusCode",
819
+ "callCount": {
820
+ "type": "uint64",
773
821
  "id": 2
774
822
  },
775
- "state": {
776
- "type": "DeviceState",
823
+ "minDurationNs": {
824
+ "type": "uint64",
777
825
  "id": 3
778
826
  },
779
- "power": {
780
- "type": "DevicePower",
827
+ "maxDurationNs": {
828
+ "type": "uint64",
829
+ "id": 4
830
+ },
831
+ "averageDurationNs": {
832
+ "type": "uint64",
781
833
  "id": 5
782
834
  },
783
- "storage": {
784
- "type": "DeviceStorage",
835
+ "medianDurationNs": {
836
+ "type": "uint64",
785
837
  "id": 6
786
838
  },
787
- "signalChain": {
788
- "type": "SignalChainStatus",
839
+ "p99DurationNs": {
840
+ "type": "uint64",
789
841
  "id": 7
790
842
  },
791
- "timeSyncPort": {
792
- "type": "uint32",
843
+ "latestDurationNs": {
844
+ "type": "uint64",
793
845
  "id": 8
794
846
  }
795
- },
796
- "reserved": [
797
- [
798
- 4,
799
- 4
800
- ]
801
- ]
802
- },
803
- "NodeType": {
804
- "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
- ]
826
- },
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
- },
843
- "fields": {
844
- "type": {
845
- "type": "NodeType",
846
- "id": 1
847
- },
848
- "id": {
849
- "type": "uint32",
850
- "id": 2
851
- },
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
879
- },
880
- "spikeBinner": {
881
- "type": "SpikeBinnerConfig",
882
- "id": 13
883
- },
884
- "application": {
885
- "type": "ApplicationNodeConfig",
886
- "id": 14
887
- }
888
- },
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
- ]
910
- }
911
- },
912
- "fields": {
913
- "type": {
914
- "type": "NodeType",
915
- "id": 1
916
- },
917
- "id": {
918
- "type": "uint32",
919
- "id": 2
920
- },
921
- "broadbandSource": {
922
- "type": "BroadbandSourceStatus",
923
- "id": 4
924
- },
925
- "electricalStimulation": {
926
- "type": "ElectricalStimulationStatus",
927
- "id": 6
928
- },
929
- "application": {
930
- "type": "ApplicationNodeStatus",
931
- "id": 7
932
- },
933
- "opticalStimulation": {
934
- "type": "OpticalStimulationStatus",
935
- "id": 8
936
- },
937
- "diskWriter": {
938
- "type": "DiskWriterStatus",
939
- "id": 10
940
- }
941
- },
942
- "reserved": [
943
- [
944
- 3,
945
- 3
946
- ],
947
- [
948
- 5,
949
- 5
950
- ]
951
- ]
952
- },
953
- "NodeConnection": {
954
- "fields": {
955
- "srcNodeId": {
956
- "type": "uint32",
957
- "id": 1
958
- },
959
- "dstNodeId": {
960
- "type": "uint32",
961
- "id": 2
962
- }
963
- }
964
- },
965
- "TapType": {
966
- "values": {
967
- "TAP_TYPE_UNSPECIFIED": 0,
968
- "TAP_TYPE_PRODUCER": 1,
969
- "TAP_TYPE_CONSUMER": 2
970
- }
971
- },
972
- "TapConnection": {
973
- "fields": {
974
- "name": {
975
- "type": "string",
976
- "id": 1
977
- },
978
- "endpoint": {
979
- "type": "string",
980
- "id": 2
981
- },
982
- "messageType": {
983
- "type": "string",
984
- "id": 3
985
- },
986
- "tapType": {
987
- "type": "TapType",
988
- "id": 4
989
- }
990
- }
991
- },
992
- "ListTapsQuery": {
993
- "fields": {}
994
- },
995
- "ListTapsResponse": {
996
- "fields": {
997
- "taps": {
998
- "rule": "repeated",
999
- "type": "TapConnection",
1000
- "id": 1
1001
- }
1002
- }
847
+ }
1003
848
  },
1004
849
  "Peripheral": {
1005
850
  "fields": {
@@ -1165,55 +1010,185 @@
1165
1010
  "TIME_SOURCE_SAMPLE_COUNTER": 2
1166
1011
  }
1167
1012
  },
1168
- "ListFilesResponse": {
1169
- "fields": {
1170
- "files": {
1171
- "rule": "repeated",
1172
- "type": "File",
1173
- "id": 1
1174
- }
1175
- },
1176
- "nested": {
1177
- "File": {
1178
- "fields": {
1179
- "name": {
1180
- "type": "string",
1181
- "id": 1
1182
- },
1183
- "size": {
1184
- "type": "uint32",
1185
- "id": 2
1186
- },
1187
- "created": {
1188
- "type": "uint32",
1189
- "id": 3
1190
- },
1191
- "modified": {
1192
- "type": "uint32",
1193
- "id": 4
1194
- },
1195
- "type": {
1196
- "type": "string",
1197
- "id": 5
1198
- }
1199
- }
1200
- }
1013
+ "DataType": {
1014
+ "values": {
1015
+ "kDataTypeUnknown": 0,
1016
+ "kAny": 1,
1017
+ "kBroadband": 2,
1018
+ "kSpiketrain": 3,
1019
+ "kTimestamps": 4,
1020
+ "kImage": 5,
1021
+ "kWaveforms": 6
1201
1022
  }
1202
1023
  },
1203
- "WriteFileRequest": {
1024
+ "Tensor": {
1204
1025
  "fields": {
1205
- "name": {
1206
- "type": "string",
1026
+ "timestampNs": {
1027
+ "type": "uint64",
1207
1028
  "id": 1
1208
1029
  },
1209
- "data": {
1210
- "type": "bytes",
1030
+ "shape": {
1031
+ "rule": "repeated",
1032
+ "type": "int32",
1211
1033
  "id": 2
1212
- }
1213
- }
1214
- },
1215
- "WriteFileResponse": {
1216
- "fields": {
1034
+ },
1035
+ "dtype": {
1036
+ "type": "DType",
1037
+ "id": 3
1038
+ },
1039
+ "endianness": {
1040
+ "type": "Endianness",
1041
+ "id": 4
1042
+ },
1043
+ "data": {
1044
+ "type": "bytes",
1045
+ "id": 5
1046
+ }
1047
+ },
1048
+ "nested": {
1049
+ "DType": {
1050
+ "values": {
1051
+ "DT_INVALID": 0,
1052
+ "DT_FLOAT": 1,
1053
+ "DT_DOUBLE": 2,
1054
+ "DT_UINT8": 3,
1055
+ "DT_UINT16": 4,
1056
+ "DT_UINT32": 5,
1057
+ "DT_UINT64": 6,
1058
+ "DT_INT8": 7,
1059
+ "DT_INT16": 8,
1060
+ "DT_INT32": 9,
1061
+ "DT_INT64": 10,
1062
+ "DT_BOOL": 11
1063
+ }
1064
+ },
1065
+ "Endianness": {
1066
+ "values": {
1067
+ "TENSOR_LITTLE_ENDIAN": 0,
1068
+ "TENSOR_BIG_ENDIAN": 1
1069
+ }
1070
+ }
1071
+ }
1072
+ },
1073
+ "BroadbandFrame": {
1074
+ "fields": {
1075
+ "timestampNs": {
1076
+ "type": "uint64",
1077
+ "id": 1
1078
+ },
1079
+ "sequenceNumber": {
1080
+ "type": "uint64",
1081
+ "id": 2
1082
+ },
1083
+ "frameData": {
1084
+ "rule": "repeated",
1085
+ "type": "sint32",
1086
+ "id": 3
1087
+ },
1088
+ "sampleRateHz": {
1089
+ "type": "uint32",
1090
+ "id": 4
1091
+ },
1092
+ "channelRanges": {
1093
+ "rule": "repeated",
1094
+ "type": "ChannelRange",
1095
+ "id": 5
1096
+ },
1097
+ "unixTimestampNs": {
1098
+ "type": "uint64",
1099
+ "id": 6
1100
+ }
1101
+ }
1102
+ },
1103
+ "Timeseries": {
1104
+ "fields": {
1105
+ "id": {
1106
+ "type": "uint32",
1107
+ "id": 1
1108
+ },
1109
+ "datapoints": {
1110
+ "rule": "repeated",
1111
+ "type": "Datapoint",
1112
+ "id": 2
1113
+ }
1114
+ },
1115
+ "nested": {
1116
+ "Datapoint": {
1117
+ "fields": {
1118
+ "timestampNs": {
1119
+ "type": "uint64",
1120
+ "id": 1
1121
+ },
1122
+ "sample": {
1123
+ "type": "sint32",
1124
+ "id": 2
1125
+ }
1126
+ }
1127
+ }
1128
+ }
1129
+ },
1130
+ "AnnotatedTensor": {
1131
+ "fields": {
1132
+ "tensor": {
1133
+ "type": "Tensor",
1134
+ "id": 1
1135
+ },
1136
+ "metadata": {
1137
+ "keyType": "string",
1138
+ "type": "google.protobuf.Value",
1139
+ "id": 2
1140
+ }
1141
+ }
1142
+ },
1143
+ "ListFilesResponse": {
1144
+ "fields": {
1145
+ "files": {
1146
+ "rule": "repeated",
1147
+ "type": "File",
1148
+ "id": 1
1149
+ }
1150
+ },
1151
+ "nested": {
1152
+ "File": {
1153
+ "fields": {
1154
+ "name": {
1155
+ "type": "string",
1156
+ "id": 1
1157
+ },
1158
+ "size": {
1159
+ "type": "uint32",
1160
+ "id": 2
1161
+ },
1162
+ "created": {
1163
+ "type": "uint32",
1164
+ "id": 3
1165
+ },
1166
+ "modified": {
1167
+ "type": "uint32",
1168
+ "id": 4
1169
+ },
1170
+ "type": {
1171
+ "type": "string",
1172
+ "id": 5
1173
+ }
1174
+ }
1175
+ }
1176
+ }
1177
+ },
1178
+ "WriteFileRequest": {
1179
+ "fields": {
1180
+ "name": {
1181
+ "type": "string",
1182
+ "id": 1
1183
+ },
1184
+ "data": {
1185
+ "type": "bytes",
1186
+ "id": 2
1187
+ }
1188
+ }
1189
+ },
1190
+ "WriteFileResponse": {
1191
+ "fields": {
1217
1192
  "name": {
1218
1193
  "type": "string",
1219
1194
  "id": 1
@@ -1339,274 +1314,330 @@
1339
1314
  }
1340
1315
  }
1341
1316
  },
1342
- "AppManifest": {
1317
+ "SampleQuery": {
1343
1318
  "fields": {
1344
- "name": {
1345
- "type": "string",
1319
+ "channels": {
1320
+ "rule": "repeated",
1321
+ "type": "Channel",
1346
1322
  "id": 1
1347
1323
  },
1348
- "configSchema": {
1349
- "type": "google.protobuf.Struct",
1324
+ "sampleCount": {
1325
+ "type": "uint32",
1350
1326
  "id": 2
1351
- },
1352
- "deviceConfig": {
1353
- "type": "DeviceConfiguration",
1354
- "id": 3
1355
1327
  }
1356
1328
  }
1357
1329
  },
1358
- "PackageMetadata": {
1330
+ "ImpedanceQuery": {
1359
1331
  "fields": {
1360
- "name": {
1361
- "type": "string",
1332
+ "electrodeIds": {
1333
+ "rule": "repeated",
1334
+ "type": "uint32",
1362
1335
  "id": 1
1363
- },
1364
- "version": {
1365
- "type": "string",
1366
- "id": 2
1367
- },
1368
- "size": {
1369
- "type": "uint64",
1370
- "id": 3
1371
- },
1372
- "sha256Sum": {
1373
- "type": "string",
1374
- "id": 4
1375
1336
  }
1376
1337
  }
1377
1338
  },
1378
- "AppPackageChunk": {
1379
- "oneofs": {
1380
- "data": {
1381
- "oneof": [
1382
- "metadata",
1383
- "fileChunk"
1384
- ]
1385
- }
1386
- },
1339
+ "SelfTestQuery": {
1387
1340
  "fields": {
1388
- "metadata": {
1389
- "type": "PackageMetadata",
1341
+ "peripheralId": {
1342
+ "type": "uint32",
1390
1343
  "id": 1
1391
- },
1392
- "fileChunk": {
1393
- "type": "bytes",
1394
- "id": 2
1395
1344
  }
1396
1345
  }
1397
1346
  },
1398
- "AppDeployResponse": {
1347
+ "ImpedanceMeasurement": {
1399
1348
  "fields": {
1400
- "status": {
1401
- "type": "StatusCode",
1349
+ "electrodeId": {
1350
+ "type": "uint32",
1402
1351
  "id": 1
1403
1352
  },
1404
- "message": {
1405
- "type": "string",
1353
+ "magnitude": {
1354
+ "type": "float",
1406
1355
  "id": 2
1356
+ },
1357
+ "phase": {
1358
+ "type": "float",
1359
+ "id": 3
1407
1360
  }
1408
1361
  }
1409
1362
  },
1410
- "AppPerformanceSummary": {
1363
+ "ImpedanceResponse": {
1411
1364
  "fields": {
1412
- "timestampNs": {
1413
- "type": "uint64",
1414
- "id": 1
1415
- },
1416
- "functionProfiles": {
1365
+ "measurements": {
1417
1366
  "rule": "repeated",
1418
- "type": "FunctionProfile",
1419
- "id": 2
1367
+ "type": "ImpedanceMeasurement",
1368
+ "id": 1
1420
1369
  }
1421
1370
  }
1422
1371
  },
1423
- "AppInfo": {
1372
+ "SelfTestItem": {
1424
1373
  "fields": {
1425
- "name": {
1374
+ "testName": {
1426
1375
  "type": "string",
1427
1376
  "id": 1
1428
1377
  },
1429
- "version": {
1430
- "type": "string",
1378
+ "passed": {
1379
+ "type": "bool",
1431
1380
  "id": 2
1381
+ },
1382
+ "testData": {
1383
+ "rule": "repeated",
1384
+ "type": "uint32",
1385
+ "id": 3
1386
+ },
1387
+ "testReport": {
1388
+ "type": "string",
1389
+ "id": 4
1432
1390
  }
1433
1391
  }
1434
1392
  },
1435
- "ListAppsRequest": {
1436
- "fields": {}
1437
- },
1438
- "ListAppsResponse": {
1393
+ "SelfTestResponse": {
1439
1394
  "fields": {
1440
- "apps": {
1441
- "rule": "repeated",
1442
- "type": "AppInfo",
1395
+ "allPassed": {
1396
+ "type": "bool",
1443
1397
  "id": 1
1398
+ },
1399
+ "tests": {
1400
+ "rule": "repeated",
1401
+ "type": "SelfTestItem",
1402
+ "id": 2
1444
1403
  }
1445
1404
  }
1446
1405
  },
1447
- "FunctionProfile": {
1406
+ "QueryRequest": {
1407
+ "oneofs": {
1408
+ "query": {
1409
+ "oneof": [
1410
+ "impedanceQuery",
1411
+ "sampleQuery",
1412
+ "selfTestQuery",
1413
+ "listTapsQuery",
1414
+ "getSettingsQuery"
1415
+ ]
1416
+ }
1417
+ },
1448
1418
  "fields": {
1449
- "name": {
1450
- "type": "string",
1419
+ "queryType": {
1420
+ "type": "QueryType",
1451
1421
  "id": 1
1452
1422
  },
1453
- "callCount": {
1454
- "type": "uint64",
1423
+ "impedanceQuery": {
1424
+ "type": "ImpedanceQuery",
1455
1425
  "id": 2
1456
1426
  },
1457
- "minDurationNs": {
1458
- "type": "uint64",
1427
+ "sampleQuery": {
1428
+ "type": "SampleQuery",
1459
1429
  "id": 3
1460
1430
  },
1461
- "maxDurationNs": {
1462
- "type": "uint64",
1431
+ "selfTestQuery": {
1432
+ "type": "SelfTestQuery",
1463
1433
  "id": 4
1464
1434
  },
1465
- "averageDurationNs": {
1466
- "type": "uint64",
1435
+ "listTapsQuery": {
1436
+ "type": "ListTapsQuery",
1467
1437
  "id": 5
1468
1438
  },
1469
- "medianDurationNs": {
1470
- "type": "uint64",
1439
+ "getSettingsQuery": {
1440
+ "type": "GetSettingsQuery",
1471
1441
  "id": 6
1472
- },
1473
- "p99DurationNs": {
1474
- "type": "uint64",
1475
- "id": 7
1476
- },
1477
- "latestDurationNs": {
1478
- "type": "uint64",
1479
- "id": 8
1442
+ }
1443
+ },
1444
+ "nested": {
1445
+ "QueryType": {
1446
+ "values": {
1447
+ "kNone": 0,
1448
+ "kImpedance": 1,
1449
+ "kSample": 2,
1450
+ "kSelfTest": 3,
1451
+ "kListTaps": 4,
1452
+ "kGetSettings": 5
1453
+ }
1480
1454
  }
1481
1455
  }
1482
1456
  },
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
1457
+ "StreamQueryRequest": {
1458
+ "fields": {
1459
+ "request": {
1460
+ "type": "QueryRequest",
1461
+ "id": 1
1462
+ }
1492
1463
  }
1493
1464
  },
1494
- "Tensor": {
1465
+ "QueryResponse": {
1466
+ "oneofs": {
1467
+ "response": {
1468
+ "oneof": [
1469
+ "impedanceResponse",
1470
+ "selfTestResponse",
1471
+ "listTapsResponse",
1472
+ "getSettingsResponse"
1473
+ ]
1474
+ }
1475
+ },
1495
1476
  "fields": {
1496
- "timestampNs": {
1497
- "type": "uint64",
1477
+ "status": {
1478
+ "type": "Status",
1498
1479
  "id": 1
1499
1480
  },
1500
- "shape": {
1481
+ "data": {
1501
1482
  "rule": "repeated",
1502
- "type": "int32",
1483
+ "type": "uint32",
1503
1484
  "id": 2
1504
1485
  },
1505
- "dtype": {
1506
- "type": "DType",
1486
+ "impedanceResponse": {
1487
+ "type": "ImpedanceResponse",
1507
1488
  "id": 3
1508
1489
  },
1509
- "endianness": {
1510
- "type": "Endianness",
1490
+ "selfTestResponse": {
1491
+ "type": "SelfTestResponse",
1511
1492
  "id": 4
1512
1493
  },
1513
- "data": {
1514
- "type": "bytes",
1494
+ "listTapsResponse": {
1495
+ "type": "ListTapsResponse",
1515
1496
  "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
- }
1534
1497
  },
1535
- "Endianness": {
1536
- "values": {
1537
- "TENSOR_LITTLE_ENDIAN": 0,
1538
- "TENSOR_BIG_ENDIAN": 1
1539
- }
1498
+ "getSettingsResponse": {
1499
+ "type": "GetSettingsResponse",
1500
+ "id": 6
1540
1501
  }
1541
1502
  }
1542
1503
  },
1543
- "BroadbandFrame": {
1504
+ "StreamQueryResponse": {
1505
+ "oneofs": {
1506
+ "response": {
1507
+ "oneof": [
1508
+ "impedance",
1509
+ "selfTest"
1510
+ ]
1511
+ }
1512
+ },
1544
1513
  "fields": {
1545
- "timestampNs": {
1546
- "type": "uint64",
1514
+ "code": {
1515
+ "type": "StatusCode",
1547
1516
  "id": 1
1548
1517
  },
1549
- "sequenceNumber": {
1550
- "type": "uint64",
1518
+ "message": {
1519
+ "type": "string",
1551
1520
  "id": 2
1552
1521
  },
1553
- "frameData": {
1554
- "rule": "repeated",
1555
- "type": "sint32",
1522
+ "timestampNs": {
1523
+ "type": "uint64",
1556
1524
  "id": 3
1557
1525
  },
1558
- "sampleRateHz": {
1559
- "type": "uint32",
1526
+ "impedance": {
1527
+ "type": "ImpedanceResponse",
1560
1528
  "id": 4
1561
1529
  },
1562
- "channelRanges": {
1563
- "rule": "repeated",
1564
- "type": "ChannelRange",
1530
+ "selfTest": {
1531
+ "type": "SelfTestResponse",
1565
1532
  "id": 5
1566
- },
1567
- "unixTimestampNs": {
1568
- "type": "uint64",
1569
- "id": 6
1570
1533
  }
1571
1534
  }
1572
1535
  },
1573
- "Timeseries": {
1536
+ "TapType": {
1537
+ "values": {
1538
+ "TAP_TYPE_UNSPECIFIED": 0,
1539
+ "TAP_TYPE_PRODUCER": 1,
1540
+ "TAP_TYPE_CONSUMER": 2
1541
+ }
1542
+ },
1543
+ "TapConnection": {
1574
1544
  "fields": {
1575
- "id": {
1576
- "type": "uint32",
1545
+ "name": {
1546
+ "type": "string",
1577
1547
  "id": 1
1578
1548
  },
1579
- "datapoints": {
1580
- "rule": "repeated",
1581
- "type": "Datapoint",
1549
+ "endpoint": {
1550
+ "type": "string",
1582
1551
  "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
- }
1552
+ },
1553
+ "messageType": {
1554
+ "type": "string",
1555
+ "id": 3
1556
+ },
1557
+ "tapType": {
1558
+ "type": "TapType",
1559
+ "id": 4
1597
1560
  }
1598
1561
  }
1599
1562
  },
1600
- "AnnotatedTensor": {
1563
+ "ListTapsQuery": {
1564
+ "fields": {}
1565
+ },
1566
+ "ListTapsResponse": {
1601
1567
  "fields": {
1602
- "tensor": {
1603
- "type": "Tensor",
1568
+ "taps": {
1569
+ "rule": "repeated",
1570
+ "type": "TapConnection",
1604
1571
  "id": 1
1572
+ }
1573
+ }
1574
+ },
1575
+ "SynapseDevice": {
1576
+ "methods": {
1577
+ "Info": {
1578
+ "requestType": "google.protobuf.Empty",
1579
+ "responseType": "DeviceInfo"
1605
1580
  },
1606
- "metadata": {
1607
- "keyType": "string",
1608
- "type": "google.protobuf.Value",
1609
- "id": 2
1581
+ "Configure": {
1582
+ "requestType": "DeviceConfiguration",
1583
+ "responseType": "Status"
1584
+ },
1585
+ "Start": {
1586
+ "requestType": "google.protobuf.Empty",
1587
+ "responseType": "Status"
1588
+ },
1589
+ "Stop": {
1590
+ "requestType": "google.protobuf.Empty",
1591
+ "responseType": "Status"
1592
+ },
1593
+ "Query": {
1594
+ "requestType": "QueryRequest",
1595
+ "responseType": "QueryResponse"
1596
+ },
1597
+ "StreamQuery": {
1598
+ "requestType": "StreamQueryRequest",
1599
+ "responseType": "StreamQueryResponse",
1600
+ "responseStream": true
1601
+ },
1602
+ "DeployApp": {
1603
+ "requestType": "AppPackageChunk",
1604
+ "requestStream": true,
1605
+ "responseType": "AppDeployResponse",
1606
+ "responseStream": true
1607
+ },
1608
+ "ListApps": {
1609
+ "requestType": "ListAppsRequest",
1610
+ "responseType": "ListAppsResponse"
1611
+ },
1612
+ "ListFiles": {
1613
+ "requestType": "google.protobuf.Empty",
1614
+ "responseType": "ListFilesResponse"
1615
+ },
1616
+ "WriteFile": {
1617
+ "requestType": "WriteFileRequest",
1618
+ "responseType": "WriteFileResponse"
1619
+ },
1620
+ "ReadFile": {
1621
+ "requestType": "ReadFileRequest",
1622
+ "responseType": "ReadFileResponse",
1623
+ "responseStream": true
1624
+ },
1625
+ "DeleteFile": {
1626
+ "requestType": "DeleteFileRequest",
1627
+ "responseType": "DeleteFileResponse"
1628
+ },
1629
+ "GetLogs": {
1630
+ "requestType": "LogQueryRequest",
1631
+ "responseType": "LogQueryResponse"
1632
+ },
1633
+ "TailLogs": {
1634
+ "requestType": "TailLogsRequest",
1635
+ "responseType": "LogEntry",
1636
+ "responseStream": true
1637
+ },
1638
+ "UpdateDeviceSettings": {
1639
+ "requestType": "UpdateDeviceSettingsRequest",
1640
+ "responseType": "UpdateDeviceSettingsResponse"
1610
1641
  }
1611
1642
  }
1612
1643
  }