@science-corporation/synapse 0.9.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.
Files changed (123) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +57 -0
  3. package/dist/api/api.d.ts +3973 -0
  4. package/dist/api/api.d.ts.map +1 -0
  5. package/dist/api/api.js +9368 -0
  6. package/dist/api/api.js.map +1 -0
  7. package/dist/api/proto.json +747 -0
  8. package/dist/channel_mask.d.ts +7 -0
  9. package/dist/channel_mask.d.ts.map +1 -0
  10. package/dist/channel_mask.js +14 -0
  11. package/dist/channel_mask.js.map +1 -0
  12. package/dist/config.d.ts +16 -0
  13. package/dist/config.d.ts.map +1 -0
  14. package/dist/config.js +103 -0
  15. package/dist/config.js.map +1 -0
  16. package/dist/demo.d.ts +2 -0
  17. package/dist/demo.d.ts.map +1 -0
  18. package/dist/demo.js +269 -0
  19. package/dist/demo.js.map +1 -0
  20. package/dist/device.d.ts +17 -0
  21. package/dist/device.d.ts.map +1 -0
  22. package/dist/device.js +112 -0
  23. package/dist/device.js.map +1 -0
  24. package/dist/index.d.ts +5 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +28 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/node.d.ts +10 -0
  29. package/dist/node.d.ts.map +1 -0
  30. package/dist/node.js +14 -0
  31. package/dist/node.js.map +1 -0
  32. package/dist/nodes/electrical_broadband.d.ts +11 -0
  33. package/dist/nodes/electrical_broadband.d.ts.map +1 -0
  34. package/dist/nodes/electrical_broadband.js +28 -0
  35. package/dist/nodes/electrical_broadband.js.map +1 -0
  36. package/dist/nodes/electrical_stimulation.d.ts +11 -0
  37. package/dist/nodes/electrical_stimulation.d.ts.map +1 -0
  38. package/dist/nodes/electrical_stimulation.js +28 -0
  39. package/dist/nodes/electrical_stimulation.js.map +1 -0
  40. package/dist/nodes/index.d.ts +9 -0
  41. package/dist/nodes/index.d.ts.map +1 -0
  42. package/dist/nodes/index.js +23 -0
  43. package/dist/nodes/index.js.map +1 -0
  44. package/dist/nodes/optical_broadband.d.ts +11 -0
  45. package/dist/nodes/optical_broadband.d.ts.map +1 -0
  46. package/dist/nodes/optical_broadband.js +28 -0
  47. package/dist/nodes/optical_broadband.js.map +1 -0
  48. package/dist/nodes/optical_stimulation.d.ts +11 -0
  49. package/dist/nodes/optical_stimulation.d.ts.map +1 -0
  50. package/dist/nodes/optical_stimulation.js +28 -0
  51. package/dist/nodes/optical_stimulation.js.map +1 -0
  52. package/dist/nodes/spectral_filter.d.ts +11 -0
  53. package/dist/nodes/spectral_filter.d.ts.map +1 -0
  54. package/dist/nodes/spectral_filter.js +28 -0
  55. package/dist/nodes/spectral_filter.js.map +1 -0
  56. package/dist/nodes/spike_detect.d.ts +11 -0
  57. package/dist/nodes/spike_detect.d.ts.map +1 -0
  58. package/dist/nodes/spike_detect.js +28 -0
  59. package/dist/nodes/spike_detect.js.map +1 -0
  60. package/dist/nodes/stream_in.d.ts +19 -0
  61. package/dist/nodes/stream_in.d.ts.map +1 -0
  62. package/dist/nodes/stream_in.js +66 -0
  63. package/dist/nodes/stream_in.js.map +1 -0
  64. package/dist/nodes/stream_out.d.ts +16 -0
  65. package/dist/nodes/stream_out.d.ts.map +1 -0
  66. package/dist/nodes/stream_out.js +87 -0
  67. package/dist/nodes/stream_out.js.map +1 -0
  68. package/dist/utils/client.d.ts +3 -0
  69. package/dist/utils/client.d.ts.map +1 -0
  70. package/dist/utils/client.js +25 -0
  71. package/dist/utils/client.js.map +1 -0
  72. package/dist/utils/discover.d.ts +15 -0
  73. package/dist/utils/discover.d.ts.map +1 -0
  74. package/dist/utils/discover.js +64 -0
  75. package/dist/utils/discover.js.map +1 -0
  76. package/dist/utils/enum.d.ts +2 -0
  77. package/dist/utils/enum.d.ts.map +1 -0
  78. package/dist/utils/enum.js +13 -0
  79. package/dist/utils/enum.js.map +1 -0
  80. package/dist/utils/index.d.ts +2 -0
  81. package/dist/utils/index.d.ts.map +1 -0
  82. package/dist/utils/index.js +3 -0
  83. package/dist/utils/index.js.map +1 -0
  84. package/package.json +42 -0
  85. package/scripts/build.sh +11 -0
  86. package/scripts/generate.sh +25 -0
  87. package/src/api/api.d.ts +3973 -0
  88. package/src/api/api.js +9991 -0
  89. package/src/api/proto.json +747 -0
  90. package/src/config.ts +110 -0
  91. package/src/demo.ts +303 -0
  92. package/src/device.ts +94 -0
  93. package/src/index.ts +4 -0
  94. package/src/node.ts +18 -0
  95. package/src/nodes/electrical_broadband.ts +30 -0
  96. package/src/nodes/electrical_stimulation.ts +30 -0
  97. package/src/nodes/index.ts +8 -0
  98. package/src/nodes/optical_broadband.ts +30 -0
  99. package/src/nodes/optical_stimulation.ts +30 -0
  100. package/src/nodes/spectral_filter.ts +30 -0
  101. package/src/nodes/spike_detect.ts +30 -0
  102. package/src/nodes/stream_in.ts +83 -0
  103. package/src/nodes/stream_out.ts +92 -0
  104. package/src/utils/client.ts +20 -0
  105. package/src/utils/discover.ts +82 -0
  106. package/src/utils/enum.ts +8 -0
  107. package/src/utils/index.ts +1 -0
  108. package/synapse-api/README.md +15 -0
  109. package/synapse-api/api/channel.proto +9 -0
  110. package/synapse-api/api/datatype.proto +12 -0
  111. package/synapse-api/api/files.proto +46 -0
  112. package/synapse-api/api/node.proto +54 -0
  113. package/synapse-api/api/nodes/electrical_broadband.proto +15 -0
  114. package/synapse-api/api/nodes/electrical_stimulation.proto +13 -0
  115. package/synapse-api/api/nodes/optical_broadband.proto +11 -0
  116. package/synapse-api/api/nodes/optical_stimulation.proto +11 -0
  117. package/synapse-api/api/nodes/spectral_filter.proto +17 -0
  118. package/synapse-api/api/nodes/spike_detect.proto +16 -0
  119. package/synapse-api/api/nodes/stream_in.proto +9 -0
  120. package/synapse-api/api/nodes/stream_out.proto +8 -0
  121. package/synapse-api/api/query.proto +46 -0
  122. package/synapse-api/api/status.proto +42 -0
  123. package/synapse-api/api/synapse.proto +51 -0
@@ -0,0 +1,747 @@
1
+ {
2
+ "nested": {
3
+ "synapse": {
4
+ "nested": {
5
+ "SpectralFilterMethod": {
6
+ "values": {
7
+ "kSpectralFilterUnknown": 0,
8
+ "kLowPass": 1,
9
+ "kHighPass": 2,
10
+ "kBandPass": 3,
11
+ "kBandStop": 4
12
+ }
13
+ },
14
+ "SpectralFilterConfig": {
15
+ "fields": {
16
+ "method": {
17
+ "type": "SpectralFilterMethod",
18
+ "id": 1
19
+ },
20
+ "lowCutoffHz": {
21
+ "type": "float",
22
+ "id": 2
23
+ },
24
+ "highCutoffHz": {
25
+ "type": "float",
26
+ "id": 3
27
+ }
28
+ }
29
+ },
30
+ "ElectricalStimulationConfig": {
31
+ "fields": {
32
+ "peripheralId": {
33
+ "type": "uint32",
34
+ "id": 1
35
+ },
36
+ "channels": {
37
+ "rule": "repeated",
38
+ "type": "Channel",
39
+ "id": 2
40
+ },
41
+ "bitWidth": {
42
+ "type": "uint32",
43
+ "id": 3
44
+ },
45
+ "sampleRate": {
46
+ "type": "uint32",
47
+ "id": 4
48
+ },
49
+ "lsb": {
50
+ "type": "uint32",
51
+ "id": 5
52
+ }
53
+ }
54
+ },
55
+ "Channel": {
56
+ "fields": {
57
+ "id": {
58
+ "type": "uint32",
59
+ "id": 1
60
+ },
61
+ "electrodeId": {
62
+ "type": "uint32",
63
+ "id": 2
64
+ },
65
+ "referenceId": {
66
+ "type": "uint32",
67
+ "id": 3
68
+ }
69
+ }
70
+ },
71
+ "ElectricalBroadbandConfig": {
72
+ "fields": {
73
+ "peripheralId": {
74
+ "type": "uint32",
75
+ "id": 1
76
+ },
77
+ "channels": {
78
+ "rule": "repeated",
79
+ "type": "Channel",
80
+ "id": 2
81
+ },
82
+ "bitWidth": {
83
+ "type": "uint32",
84
+ "id": 3
85
+ },
86
+ "sampleRate": {
87
+ "type": "uint32",
88
+ "id": 4
89
+ },
90
+ "gain": {
91
+ "type": "float",
92
+ "id": 5
93
+ },
94
+ "lowCutoffHz": {
95
+ "type": "float",
96
+ "id": 6
97
+ },
98
+ "highCutoffHz": {
99
+ "type": "float",
100
+ "id": 7
101
+ }
102
+ }
103
+ },
104
+ "SpikeDetectConfig": {
105
+ "fields": {
106
+ "mode": {
107
+ "type": "SpikeDetectMode",
108
+ "id": 1
109
+ },
110
+ "thresholdUV": {
111
+ "type": "uint32",
112
+ "id": 2
113
+ },
114
+ "templateUV": {
115
+ "rule": "repeated",
116
+ "type": "uint32",
117
+ "id": 3
118
+ },
119
+ "sort": {
120
+ "type": "bool",
121
+ "id": 4
122
+ },
123
+ "binSizeMs": {
124
+ "type": "uint32",
125
+ "id": 5
126
+ }
127
+ },
128
+ "nested": {
129
+ "SpikeDetectMode": {
130
+ "values": {
131
+ "kThreshold": 0,
132
+ "kTemplate": 1,
133
+ "kWavelet": 2
134
+ }
135
+ }
136
+ }
137
+ },
138
+ "StreamInConfig": {
139
+ "fields": {
140
+ "dataType": {
141
+ "type": "DataType",
142
+ "id": 1
143
+ }
144
+ }
145
+ },
146
+ "DataType": {
147
+ "values": {
148
+ "kDataTypeUnknown": 0,
149
+ "kAny": 1,
150
+ "kBroadband": 2,
151
+ "kSpiketrain": 3,
152
+ "kTimestamps": 4,
153
+ "kImage": 5
154
+ }
155
+ },
156
+ "StreamOutConfig": {
157
+ "fields": {
158
+ "label": {
159
+ "type": "string",
160
+ "id": 1
161
+ },
162
+ "multicastGroup": {
163
+ "type": "string",
164
+ "id": 2
165
+ }
166
+ }
167
+ },
168
+ "OpticalBroadbandConfig": {
169
+ "fields": {
170
+ "peripheralId": {
171
+ "type": "uint32",
172
+ "id": 1
173
+ },
174
+ "pixelMask": {
175
+ "rule": "repeated",
176
+ "type": "uint32",
177
+ "id": 2
178
+ },
179
+ "bitWidth": {
180
+ "type": "uint32",
181
+ "id": 3
182
+ },
183
+ "frameRate": {
184
+ "type": "uint32",
185
+ "id": 4
186
+ },
187
+ "gain": {
188
+ "type": "uint32",
189
+ "id": 5
190
+ }
191
+ }
192
+ },
193
+ "OpticalStimulationConfig": {
194
+ "fields": {
195
+ "peripheralId": {
196
+ "type": "uint32",
197
+ "id": 1
198
+ },
199
+ "pixelMask": {
200
+ "rule": "repeated",
201
+ "type": "uint32",
202
+ "id": 2
203
+ },
204
+ "bitWidth": {
205
+ "type": "uint32",
206
+ "id": 3
207
+ },
208
+ "frameRate": {
209
+ "type": "uint32",
210
+ "id": 4
211
+ },
212
+ "gain": {
213
+ "type": "float",
214
+ "id": 5
215
+ }
216
+ }
217
+ },
218
+ "Peripheral": {
219
+ "fields": {
220
+ "name": {
221
+ "type": "string",
222
+ "id": 1
223
+ },
224
+ "vendor": {
225
+ "type": "string",
226
+ "id": 2
227
+ },
228
+ "peripheralId": {
229
+ "type": "uint32",
230
+ "id": 3
231
+ },
232
+ "type": {
233
+ "type": "Type",
234
+ "id": 4
235
+ }
236
+ },
237
+ "nested": {
238
+ "Type": {
239
+ "values": {
240
+ "kUnknown": 0,
241
+ "kElectricalRecord": 1,
242
+ "kElectricalStimulation": 2,
243
+ "kOpticalStimulation": 3,
244
+ "kOpticalRecord": 4
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "DeviceInfo": {
250
+ "fields": {
251
+ "name": {
252
+ "type": "string",
253
+ "id": 1
254
+ },
255
+ "serial": {
256
+ "type": "string",
257
+ "id": 2
258
+ },
259
+ "synapseVersion": {
260
+ "type": "uint32",
261
+ "id": 3
262
+ },
263
+ "firmwareVersion": {
264
+ "type": "uint32",
265
+ "id": 4
266
+ },
267
+ "status": {
268
+ "type": "Status",
269
+ "id": 5
270
+ },
271
+ "peripherals": {
272
+ "rule": "repeated",
273
+ "type": "Peripheral",
274
+ "id": 6
275
+ },
276
+ "configuration": {
277
+ "type": "DeviceConfiguration",
278
+ "id": 7
279
+ }
280
+ }
281
+ },
282
+ "DeviceConfiguration": {
283
+ "fields": {
284
+ "nodes": {
285
+ "rule": "repeated",
286
+ "type": "NodeConfig",
287
+ "id": 1
288
+ },
289
+ "connections": {
290
+ "rule": "repeated",
291
+ "type": "NodeConnection",
292
+ "id": 2
293
+ }
294
+ }
295
+ },
296
+ "SynapseDevice": {
297
+ "methods": {
298
+ "Info": {
299
+ "requestType": "google.protobuf.Empty",
300
+ "responseType": "DeviceInfo"
301
+ },
302
+ "Configure": {
303
+ "requestType": "DeviceConfiguration",
304
+ "responseType": "Status"
305
+ },
306
+ "Start": {
307
+ "requestType": "google.protobuf.Empty",
308
+ "responseType": "Status"
309
+ },
310
+ "Stop": {
311
+ "requestType": "google.protobuf.Empty",
312
+ "responseType": "Status"
313
+ },
314
+ "Query": {
315
+ "requestType": "QueryRequest",
316
+ "responseType": "QueryResponse"
317
+ },
318
+ "ListFiles": {
319
+ "requestType": "google.protobuf.Empty",
320
+ "responseType": "ListFilesResponse"
321
+ },
322
+ "WriteFile": {
323
+ "requestType": "WriteFileRequest",
324
+ "responseType": "WriteFileResponse"
325
+ },
326
+ "ReadFile": {
327
+ "requestType": "ReadFileRequest",
328
+ "responseType": "ReadFileResponse",
329
+ "responseStream": true
330
+ },
331
+ "DeleteFile": {
332
+ "requestType": "DeleteFileRequest",
333
+ "responseType": "DeleteFileResponse"
334
+ }
335
+ }
336
+ },
337
+ "NodeType": {
338
+ "values": {
339
+ "kNodeTypeUnknown": 0,
340
+ "kStreamIn": 1,
341
+ "kStreamOut": 2,
342
+ "kElectricalBroadband": 3,
343
+ "kElectricalStimulation": 4,
344
+ "kOpticalBroadband": 5,
345
+ "kOpticalStimulation": 6,
346
+ "kSpikeDetect": 7,
347
+ "kSpectralFilter": 8
348
+ }
349
+ },
350
+ "NodeConfig": {
351
+ "oneofs": {
352
+ "config": {
353
+ "oneof": [
354
+ "streamOut",
355
+ "streamIn",
356
+ "electricalBroadband",
357
+ "electricalStimulation",
358
+ "opticalBroadband",
359
+ "opticalStimulation",
360
+ "spikeDetect",
361
+ "spectralFilter"
362
+ ]
363
+ }
364
+ },
365
+ "fields": {
366
+ "type": {
367
+ "type": "NodeType",
368
+ "id": 1
369
+ },
370
+ "id": {
371
+ "type": "uint32",
372
+ "id": 2
373
+ },
374
+ "streamOut": {
375
+ "type": "StreamOutConfig",
376
+ "id": 3
377
+ },
378
+ "streamIn": {
379
+ "type": "StreamInConfig",
380
+ "id": 4
381
+ },
382
+ "electricalBroadband": {
383
+ "type": "ElectricalBroadbandConfig",
384
+ "id": 5
385
+ },
386
+ "electricalStimulation": {
387
+ "type": "ElectricalStimulationConfig",
388
+ "id": 6
389
+ },
390
+ "opticalBroadband": {
391
+ "type": "OpticalBroadbandConfig",
392
+ "id": 7
393
+ },
394
+ "opticalStimulation": {
395
+ "type": "OpticalStimulationConfig",
396
+ "id": 8
397
+ },
398
+ "spikeDetect": {
399
+ "type": "SpikeDetectConfig",
400
+ "id": 9
401
+ },
402
+ "spectralFilter": {
403
+ "type": "SpectralFilterConfig",
404
+ "id": 10
405
+ }
406
+ }
407
+ },
408
+ "NodeConnection": {
409
+ "fields": {
410
+ "srcNodeId": {
411
+ "type": "uint32",
412
+ "id": 1
413
+ },
414
+ "dstNodeId": {
415
+ "type": "uint32",
416
+ "id": 2
417
+ }
418
+ }
419
+ },
420
+ "NodeSocket": {
421
+ "fields": {
422
+ "nodeId": {
423
+ "type": "uint32",
424
+ "id": 1
425
+ },
426
+ "bind": {
427
+ "type": "string",
428
+ "id": 2
429
+ },
430
+ "dataType": {
431
+ "type": "DataType",
432
+ "id": 3
433
+ },
434
+ "type": {
435
+ "type": "NodeType",
436
+ "id": 4
437
+ },
438
+ "label": {
439
+ "type": "string",
440
+ "id": 5
441
+ },
442
+ "shape": {
443
+ "rule": "repeated",
444
+ "type": "uint32",
445
+ "id": 6
446
+ }
447
+ }
448
+ },
449
+ "SampleQuery": {
450
+ "fields": {
451
+ "channels": {
452
+ "rule": "repeated",
453
+ "type": "Channel",
454
+ "id": 1
455
+ },
456
+ "sampleCount": {
457
+ "type": "uint32",
458
+ "id": 2
459
+ }
460
+ }
461
+ },
462
+ "ImpedanceQuery": {
463
+ "fields": {
464
+ "electrodeIds": {
465
+ "rule": "repeated",
466
+ "type": "uint32",
467
+ "id": 1
468
+ }
469
+ }
470
+ },
471
+ "ImpedanceMeasurement": {
472
+ "fields": {
473
+ "electrodeId": {
474
+ "type": "uint32",
475
+ "id": 1
476
+ },
477
+ "magnitude": {
478
+ "type": "float",
479
+ "id": 2
480
+ },
481
+ "phase": {
482
+ "type": "float",
483
+ "id": 3
484
+ }
485
+ }
486
+ },
487
+ "ImpedanceResponse": {
488
+ "fields": {
489
+ "measurements": {
490
+ "rule": "repeated",
491
+ "type": "ImpedanceMeasurement",
492
+ "id": 1
493
+ }
494
+ }
495
+ },
496
+ "QueryRequest": {
497
+ "oneofs": {
498
+ "query": {
499
+ "oneof": [
500
+ "impedanceQuery",
501
+ "sampleQuery"
502
+ ]
503
+ }
504
+ },
505
+ "fields": {
506
+ "queryType": {
507
+ "type": "QueryType",
508
+ "id": 1
509
+ },
510
+ "impedanceQuery": {
511
+ "type": "ImpedanceQuery",
512
+ "id": 2
513
+ },
514
+ "sampleQuery": {
515
+ "type": "SampleQuery",
516
+ "id": 3
517
+ }
518
+ },
519
+ "nested": {
520
+ "QueryType": {
521
+ "values": {
522
+ "kNone": 0,
523
+ "kImpedance": 1,
524
+ "kSample": 2
525
+ }
526
+ }
527
+ }
528
+ },
529
+ "QueryResponse": {
530
+ "oneofs": {
531
+ "response": {
532
+ "oneof": [
533
+ "impedanceResponse"
534
+ ]
535
+ }
536
+ },
537
+ "fields": {
538
+ "status": {
539
+ "type": "Status",
540
+ "id": 1
541
+ },
542
+ "data": {
543
+ "rule": "repeated",
544
+ "type": "uint32",
545
+ "id": 2
546
+ },
547
+ "impedanceResponse": {
548
+ "type": "ImpedanceResponse",
549
+ "id": 3
550
+ }
551
+ }
552
+ },
553
+ "StatusCode": {
554
+ "values": {
555
+ "kOk": 0,
556
+ "kUndefinedError": 1,
557
+ "kInvalidConfiguration": 2,
558
+ "kFailedPrecondition": 3,
559
+ "kUnimplemented": 4,
560
+ "kInternalError": 5,
561
+ "kPermissionDenied": 6
562
+ }
563
+ },
564
+ "DeviceState": {
565
+ "values": {
566
+ "kUnknown": 0,
567
+ "kInitializing": 1,
568
+ "kStopped": 2,
569
+ "kRunning": 3,
570
+ "kError": 4
571
+ }
572
+ },
573
+ "DeviceStorage": {
574
+ "fields": {
575
+ "totalGb": {
576
+ "type": "float",
577
+ "id": 1
578
+ },
579
+ "usedGb": {
580
+ "type": "float",
581
+ "id": 2
582
+ }
583
+ }
584
+ },
585
+ "DevicePower": {
586
+ "fields": {
587
+ "batteryLevelPercent": {
588
+ "type": "float",
589
+ "id": 1
590
+ },
591
+ "isCharging": {
592
+ "type": "bool",
593
+ "id": 2
594
+ }
595
+ }
596
+ },
597
+ "Status": {
598
+ "fields": {
599
+ "message": {
600
+ "type": "string",
601
+ "id": 1
602
+ },
603
+ "code": {
604
+ "type": "StatusCode",
605
+ "id": 2
606
+ },
607
+ "state": {
608
+ "type": "DeviceState",
609
+ "id": 3
610
+ },
611
+ "sockets": {
612
+ "rule": "repeated",
613
+ "type": "NodeSocket",
614
+ "id": 4
615
+ },
616
+ "power": {
617
+ "type": "DevicePower",
618
+ "id": 5
619
+ },
620
+ "storage": {
621
+ "type": "DeviceStorage",
622
+ "id": 6
623
+ }
624
+ }
625
+ },
626
+ "ListFilesResponse": {
627
+ "fields": {
628
+ "files": {
629
+ "rule": "repeated",
630
+ "type": "File",
631
+ "id": 1
632
+ }
633
+ },
634
+ "nested": {
635
+ "File": {
636
+ "fields": {
637
+ "name": {
638
+ "type": "string",
639
+ "id": 1
640
+ },
641
+ "size": {
642
+ "type": "uint32",
643
+ "id": 2
644
+ },
645
+ "created": {
646
+ "type": "uint32",
647
+ "id": 3
648
+ },
649
+ "modified": {
650
+ "type": "uint32",
651
+ "id": 4
652
+ },
653
+ "type": {
654
+ "type": "string",
655
+ "id": 5
656
+ }
657
+ }
658
+ }
659
+ }
660
+ },
661
+ "WriteFileRequest": {
662
+ "fields": {
663
+ "name": {
664
+ "type": "string",
665
+ "id": 1
666
+ },
667
+ "data": {
668
+ "type": "bytes",
669
+ "id": 2
670
+ }
671
+ }
672
+ },
673
+ "WriteFileResponse": {
674
+ "fields": {
675
+ "name": {
676
+ "type": "string",
677
+ "id": 1
678
+ },
679
+ "bytesWritten": {
680
+ "type": "uint64",
681
+ "id": 2
682
+ }
683
+ }
684
+ },
685
+ "ReadFileRequest": {
686
+ "fields": {
687
+ "name": {
688
+ "type": "string",
689
+ "id": 1
690
+ }
691
+ }
692
+ },
693
+ "ReadFileResponse": {
694
+ "fields": {
695
+ "name": {
696
+ "type": "string",
697
+ "id": 1
698
+ },
699
+ "data": {
700
+ "type": "bytes",
701
+ "id": 2
702
+ },
703
+ "startOffset": {
704
+ "type": "uint32",
705
+ "id": 3
706
+ },
707
+ "fileTotalLength": {
708
+ "type": "uint32",
709
+ "id": 4
710
+ }
711
+ }
712
+ },
713
+ "DeleteFileRequest": {
714
+ "fields": {
715
+ "name": {
716
+ "type": "string",
717
+ "id": 1
718
+ }
719
+ }
720
+ },
721
+ "DeleteFileResponse": {
722
+ "fields": {
723
+ "name": {
724
+ "type": "string",
725
+ "id": 1
726
+ },
727
+ "statusCode": {
728
+ "type": "StatusCode",
729
+ "id": 2
730
+ }
731
+ }
732
+ }
733
+ }
734
+ },
735
+ "google": {
736
+ "nested": {
737
+ "protobuf": {
738
+ "nested": {
739
+ "Empty": {
740
+ "fields": {}
741
+ }
742
+ }
743
+ }
744
+ }
745
+ }
746
+ }
747
+ }