@moredrive/cli 1.3.0 → 1.5.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.
@@ -5,6 +5,725 @@
5
5
  "$defs": {
6
6
  "successOutput": {
7
7
  "oneOf": [
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "schemaVersion": {
12
+ "const": "moredrive.cli.v2"
13
+ },
14
+ "ok": {
15
+ "const": true
16
+ },
17
+ "command": {
18
+ "const": "stream"
19
+ },
20
+ "data": {
21
+ "type": "object",
22
+ "properties": {
23
+ "fsId": {
24
+ "type": "string"
25
+ },
26
+ "bytesServed": {
27
+ "type": "integer",
28
+ "minimum": 0
29
+ },
30
+ "status": {
31
+ "const": "stopped"
32
+ }
33
+ },
34
+ "required": [
35
+ "fsId",
36
+ "bytesServed",
37
+ "status"
38
+ ],
39
+ "additionalProperties": false
40
+ },
41
+ "warnings": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "code": {
47
+ "type": "string"
48
+ },
49
+ "message": {
50
+ "type": "string"
51
+ },
52
+ "details": {
53
+ "type": "object",
54
+ "properties": {
55
+ "idempotencyKey": {
56
+ "type": "string"
57
+ },
58
+ "operationId": {
59
+ "type": "string"
60
+ },
61
+ "causeCode": {
62
+ "type": "string"
63
+ },
64
+ "maxFileSizeBytes": {
65
+ "type": "integer"
66
+ },
67
+ "actualFileSizeBytes": {
68
+ "type": "integer"
69
+ },
70
+ "capabilityRevision": {
71
+ "type": "string"
72
+ },
73
+ "reason": {
74
+ "type": "string"
75
+ },
76
+ "attempt": {
77
+ "type": "integer"
78
+ },
79
+ "status": {
80
+ "type": "integer"
81
+ },
82
+ "errno": {
83
+ "type": "integer"
84
+ },
85
+ "path": {
86
+ "type": "string"
87
+ },
88
+ "target": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ "required": [],
93
+ "additionalProperties": false
94
+ }
95
+ },
96
+ "required": [
97
+ "code",
98
+ "message"
99
+ ],
100
+ "additionalProperties": false
101
+ }
102
+ },
103
+ "meta": {
104
+ "type": "object",
105
+ "properties": {
106
+ "requestId": {
107
+ "type": "string"
108
+ },
109
+ "durationMs": {
110
+ "type": "number"
111
+ },
112
+ "baseUrl": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ "required": [
117
+ "durationMs",
118
+ "baseUrl"
119
+ ],
120
+ "additionalProperties": false
121
+ }
122
+ },
123
+ "required": [
124
+ "schemaVersion",
125
+ "ok",
126
+ "command",
127
+ "data",
128
+ "warnings",
129
+ "meta"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ {
134
+ "type": "object",
135
+ "properties": {
136
+ "schemaVersion": {
137
+ "const": "moredrive.cli.v2"
138
+ },
139
+ "ok": {
140
+ "const": true
141
+ },
142
+ "command": {
143
+ "const": "media.thumbnails"
144
+ },
145
+ "data": {
146
+ "type": "object",
147
+ "properties": {
148
+ "operation": {
149
+ "const": "thumbnails"
150
+ },
151
+ "account": {
152
+ "type": "string"
153
+ },
154
+ "remoteDirectory": {
155
+ "type": "string"
156
+ },
157
+ "output": {
158
+ "type": [
159
+ "string",
160
+ "null"
161
+ ]
162
+ },
163
+ "uploaded": {
164
+ "const": false
165
+ },
166
+ "status": {
167
+ "enum": [
168
+ "completed",
169
+ "partial",
170
+ "failed",
171
+ "no-op"
172
+ ]
173
+ },
174
+ "generated": {
175
+ "type": "integer",
176
+ "minimum": 0
177
+ },
178
+ "reused": {
179
+ "type": "integer",
180
+ "minimum": 0
181
+ },
182
+ "failed": {
183
+ "type": "integer",
184
+ "minimum": 0
185
+ },
186
+ "bytesRead": {
187
+ "type": "integer",
188
+ "minimum": 0
189
+ },
190
+ "packBytesRead": {
191
+ "type": "integer",
192
+ "minimum": 0
193
+ },
194
+ "items": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "object",
198
+ "properties": {
199
+ "fsId": {
200
+ "type": "string"
201
+ },
202
+ "name": {
203
+ "type": "string"
204
+ },
205
+ "status": {
206
+ "enum": [
207
+ "generated",
208
+ "reused",
209
+ "failed"
210
+ ]
211
+ },
212
+ "reason": {
213
+ "type": "string"
214
+ },
215
+ "bytesRead": {
216
+ "type": "integer",
217
+ "minimum": 0
218
+ },
219
+ "requests": {
220
+ "type": "integer",
221
+ "minimum": 0
222
+ }
223
+ },
224
+ "required": [
225
+ "fsId",
226
+ "name",
227
+ "status",
228
+ "bytesRead",
229
+ "requests"
230
+ ],
231
+ "additionalProperties": false
232
+ }
233
+ }
234
+ },
235
+ "required": [
236
+ "operation",
237
+ "account",
238
+ "remoteDirectory",
239
+ "output",
240
+ "uploaded",
241
+ "status",
242
+ "generated",
243
+ "reused",
244
+ "failed",
245
+ "bytesRead",
246
+ "packBytesRead",
247
+ "items"
248
+ ],
249
+ "additionalProperties": false
250
+ },
251
+ "warnings": {
252
+ "type": "array",
253
+ "items": {
254
+ "type": "object",
255
+ "properties": {
256
+ "code": {
257
+ "type": "string"
258
+ },
259
+ "message": {
260
+ "type": "string"
261
+ },
262
+ "details": {
263
+ "type": "object",
264
+ "properties": {
265
+ "idempotencyKey": {
266
+ "type": "string"
267
+ },
268
+ "operationId": {
269
+ "type": "string"
270
+ },
271
+ "causeCode": {
272
+ "type": "string"
273
+ },
274
+ "maxFileSizeBytes": {
275
+ "type": "integer"
276
+ },
277
+ "actualFileSizeBytes": {
278
+ "type": "integer"
279
+ },
280
+ "capabilityRevision": {
281
+ "type": "string"
282
+ },
283
+ "reason": {
284
+ "type": "string"
285
+ },
286
+ "attempt": {
287
+ "type": "integer"
288
+ },
289
+ "status": {
290
+ "type": "integer"
291
+ },
292
+ "errno": {
293
+ "type": "integer"
294
+ },
295
+ "path": {
296
+ "type": "string"
297
+ },
298
+ "target": {
299
+ "type": "string"
300
+ }
301
+ },
302
+ "required": [],
303
+ "additionalProperties": false
304
+ }
305
+ },
306
+ "required": [
307
+ "code",
308
+ "message"
309
+ ],
310
+ "additionalProperties": false
311
+ }
312
+ },
313
+ "meta": {
314
+ "type": "object",
315
+ "properties": {
316
+ "requestId": {
317
+ "type": "string"
318
+ },
319
+ "durationMs": {
320
+ "type": "number"
321
+ },
322
+ "baseUrl": {
323
+ "type": "string"
324
+ }
325
+ },
326
+ "required": [
327
+ "durationMs",
328
+ "baseUrl"
329
+ ],
330
+ "additionalProperties": false
331
+ }
332
+ },
333
+ "required": [
334
+ "schemaVersion",
335
+ "ok",
336
+ "command",
337
+ "data",
338
+ "warnings",
339
+ "meta"
340
+ ],
341
+ "additionalProperties": false
342
+ },
343
+ {
344
+ "type": "object",
345
+ "properties": {
346
+ "schemaVersion": {
347
+ "const": "moredrive.cli.v2"
348
+ },
349
+ "ok": {
350
+ "const": true
351
+ },
352
+ "command": {
353
+ "const": "media.encrypt"
354
+ },
355
+ "data": {
356
+ "type": "object",
357
+ "properties": {
358
+ "operation": {
359
+ "enum": [
360
+ "encrypt",
361
+ "decrypt"
362
+ ]
363
+ },
364
+ "input": {
365
+ "type": "string"
366
+ },
367
+ "output": {
368
+ "type": "string"
369
+ },
370
+ "status": {
371
+ "enum": [
372
+ "completed",
373
+ "partial",
374
+ "failed",
375
+ "cancelled",
376
+ "no-op"
377
+ ]
378
+ },
379
+ "completed": {
380
+ "type": "integer",
381
+ "minimum": 0
382
+ },
383
+ "failed": {
384
+ "type": "integer",
385
+ "minimum": 0
386
+ },
387
+ "skipped": {
388
+ "type": "integer",
389
+ "minimum": 0
390
+ },
391
+ "bytesRead": {
392
+ "type": "integer",
393
+ "minimum": 0
394
+ },
395
+ "items": {
396
+ "type": "array",
397
+ "items": {
398
+ "type": "object",
399
+ "properties": {
400
+ "input": {
401
+ "type": "string"
402
+ },
403
+ "output": {
404
+ "type": "string"
405
+ },
406
+ "status": {
407
+ "enum": [
408
+ "completed",
409
+ "skipped",
410
+ "failed"
411
+ ]
412
+ },
413
+ "reason": {
414
+ "type": "string"
415
+ },
416
+ "bytesRead": {
417
+ "type": "integer",
418
+ "minimum": 0
419
+ }
420
+ },
421
+ "required": [
422
+ "input",
423
+ "status",
424
+ "bytesRead"
425
+ ],
426
+ "additionalProperties": false
427
+ }
428
+ }
429
+ },
430
+ "required": [
431
+ "operation",
432
+ "input",
433
+ "output",
434
+ "status",
435
+ "completed",
436
+ "failed",
437
+ "skipped",
438
+ "bytesRead",
439
+ "items"
440
+ ],
441
+ "additionalProperties": false
442
+ },
443
+ "warnings": {
444
+ "type": "array",
445
+ "items": {
446
+ "type": "object",
447
+ "properties": {
448
+ "code": {
449
+ "type": "string"
450
+ },
451
+ "message": {
452
+ "type": "string"
453
+ },
454
+ "details": {
455
+ "type": "object",
456
+ "properties": {
457
+ "idempotencyKey": {
458
+ "type": "string"
459
+ },
460
+ "operationId": {
461
+ "type": "string"
462
+ },
463
+ "causeCode": {
464
+ "type": "string"
465
+ },
466
+ "maxFileSizeBytes": {
467
+ "type": "integer"
468
+ },
469
+ "actualFileSizeBytes": {
470
+ "type": "integer"
471
+ },
472
+ "capabilityRevision": {
473
+ "type": "string"
474
+ },
475
+ "reason": {
476
+ "type": "string"
477
+ },
478
+ "attempt": {
479
+ "type": "integer"
480
+ },
481
+ "status": {
482
+ "type": "integer"
483
+ },
484
+ "errno": {
485
+ "type": "integer"
486
+ },
487
+ "path": {
488
+ "type": "string"
489
+ },
490
+ "target": {
491
+ "type": "string"
492
+ }
493
+ },
494
+ "required": [],
495
+ "additionalProperties": false
496
+ }
497
+ },
498
+ "required": [
499
+ "code",
500
+ "message"
501
+ ],
502
+ "additionalProperties": false
503
+ }
504
+ },
505
+ "meta": {
506
+ "type": "object",
507
+ "properties": {
508
+ "requestId": {
509
+ "type": "string"
510
+ },
511
+ "durationMs": {
512
+ "type": "number"
513
+ },
514
+ "baseUrl": {
515
+ "type": "string"
516
+ }
517
+ },
518
+ "required": [
519
+ "durationMs",
520
+ "baseUrl"
521
+ ],
522
+ "additionalProperties": false
523
+ }
524
+ },
525
+ "required": [
526
+ "schemaVersion",
527
+ "ok",
528
+ "command",
529
+ "data",
530
+ "warnings",
531
+ "meta"
532
+ ],
533
+ "additionalProperties": false
534
+ },
535
+ {
536
+ "type": "object",
537
+ "properties": {
538
+ "schemaVersion": {
539
+ "const": "moredrive.cli.v2"
540
+ },
541
+ "ok": {
542
+ "const": true
543
+ },
544
+ "command": {
545
+ "const": "media.decrypt"
546
+ },
547
+ "data": {
548
+ "type": "object",
549
+ "properties": {
550
+ "operation": {
551
+ "enum": [
552
+ "encrypt",
553
+ "decrypt"
554
+ ]
555
+ },
556
+ "input": {
557
+ "type": "string"
558
+ },
559
+ "output": {
560
+ "type": "string"
561
+ },
562
+ "status": {
563
+ "enum": [
564
+ "completed",
565
+ "partial",
566
+ "failed",
567
+ "cancelled",
568
+ "no-op"
569
+ ]
570
+ },
571
+ "completed": {
572
+ "type": "integer",
573
+ "minimum": 0
574
+ },
575
+ "failed": {
576
+ "type": "integer",
577
+ "minimum": 0
578
+ },
579
+ "skipped": {
580
+ "type": "integer",
581
+ "minimum": 0
582
+ },
583
+ "bytesRead": {
584
+ "type": "integer",
585
+ "minimum": 0
586
+ },
587
+ "items": {
588
+ "type": "array",
589
+ "items": {
590
+ "type": "object",
591
+ "properties": {
592
+ "input": {
593
+ "type": "string"
594
+ },
595
+ "output": {
596
+ "type": "string"
597
+ },
598
+ "status": {
599
+ "enum": [
600
+ "completed",
601
+ "skipped",
602
+ "failed"
603
+ ]
604
+ },
605
+ "reason": {
606
+ "type": "string"
607
+ },
608
+ "bytesRead": {
609
+ "type": "integer",
610
+ "minimum": 0
611
+ }
612
+ },
613
+ "required": [
614
+ "input",
615
+ "status",
616
+ "bytesRead"
617
+ ],
618
+ "additionalProperties": false
619
+ }
620
+ }
621
+ },
622
+ "required": [
623
+ "operation",
624
+ "input",
625
+ "output",
626
+ "status",
627
+ "completed",
628
+ "failed",
629
+ "skipped",
630
+ "bytesRead",
631
+ "items"
632
+ ],
633
+ "additionalProperties": false
634
+ },
635
+ "warnings": {
636
+ "type": "array",
637
+ "items": {
638
+ "type": "object",
639
+ "properties": {
640
+ "code": {
641
+ "type": "string"
642
+ },
643
+ "message": {
644
+ "type": "string"
645
+ },
646
+ "details": {
647
+ "type": "object",
648
+ "properties": {
649
+ "idempotencyKey": {
650
+ "type": "string"
651
+ },
652
+ "operationId": {
653
+ "type": "string"
654
+ },
655
+ "causeCode": {
656
+ "type": "string"
657
+ },
658
+ "maxFileSizeBytes": {
659
+ "type": "integer"
660
+ },
661
+ "actualFileSizeBytes": {
662
+ "type": "integer"
663
+ },
664
+ "capabilityRevision": {
665
+ "type": "string"
666
+ },
667
+ "reason": {
668
+ "type": "string"
669
+ },
670
+ "attempt": {
671
+ "type": "integer"
672
+ },
673
+ "status": {
674
+ "type": "integer"
675
+ },
676
+ "errno": {
677
+ "type": "integer"
678
+ },
679
+ "path": {
680
+ "type": "string"
681
+ },
682
+ "target": {
683
+ "type": "string"
684
+ }
685
+ },
686
+ "required": [],
687
+ "additionalProperties": false
688
+ }
689
+ },
690
+ "required": [
691
+ "code",
692
+ "message"
693
+ ],
694
+ "additionalProperties": false
695
+ }
696
+ },
697
+ "meta": {
698
+ "type": "object",
699
+ "properties": {
700
+ "requestId": {
701
+ "type": "string"
702
+ },
703
+ "durationMs": {
704
+ "type": "number"
705
+ },
706
+ "baseUrl": {
707
+ "type": "string"
708
+ }
709
+ },
710
+ "required": [
711
+ "durationMs",
712
+ "baseUrl"
713
+ ],
714
+ "additionalProperties": false
715
+ }
716
+ },
717
+ "required": [
718
+ "schemaVersion",
719
+ "ok",
720
+ "command",
721
+ "data",
722
+ "warnings",
723
+ "meta"
724
+ ],
725
+ "additionalProperties": false
726
+ },
8
727
  {
9
728
  "type": "object",
10
729
  "properties": {
@@ -299,12 +1018,6 @@
299
1018
  "baidu": {
300
1019
  "type": "object",
301
1020
  "properties": {
302
- "username": {
303
- "type": "string"
304
- },
305
- "netdisk_name": {
306
- "type": "string"
307
- },
308
1021
  "avatar_url": {
309
1022
  "type": "string"
310
1023
  },
@@ -789,6 +1502,28 @@
789
1502
  "required": [],
790
1503
  "additionalProperties": false
791
1504
  },
1505
+ "media": {
1506
+ "type": "object",
1507
+ "properties": {
1508
+ "mode": {
1509
+ "enum": [
1510
+ "auto",
1511
+ "raw"
1512
+ ]
1513
+ },
1514
+ "thumbnails": {
1515
+ "enum": [
1516
+ "auto",
1517
+ "off"
1518
+ ]
1519
+ },
1520
+ "decoderPath": {
1521
+ "type": "string"
1522
+ }
1523
+ },
1524
+ "required": [],
1525
+ "additionalProperties": false
1526
+ },
792
1527
  "createdAt": {
793
1528
  "type": "string"
794
1529
  },
@@ -3683,6 +4418,57 @@
3683
4418
  {
3684
4419
  "type": "object",
3685
4420
  "properties": {
4421
+ "media": {
4422
+ "type": "object",
4423
+ "properties": {
4424
+ "mediaMode": {
4425
+ "enum": [
4426
+ "auto",
4427
+ "raw"
4428
+ ]
4429
+ },
4430
+ "sourceName": {
4431
+ "type": "string"
4432
+ },
4433
+ "targetName": {
4434
+ "type": "string"
4435
+ },
4436
+ "sourceForm": {
4437
+ "enum": [
4438
+ "plain",
4439
+ "media_xor_v1",
4440
+ "unknown"
4441
+ ]
4442
+ },
4443
+ "targetForm": {
4444
+ "enum": [
4445
+ "plain",
4446
+ "media_xor_v1",
4447
+ "unknown"
4448
+ ]
4449
+ },
4450
+ "transform": {
4451
+ "enum": [
4452
+ "none",
4453
+ "encrypt",
4454
+ "decrypt"
4455
+ ]
4456
+ },
4457
+ "reason": {
4458
+ "type": "string"
4459
+ }
4460
+ },
4461
+ "required": [
4462
+ "mediaMode",
4463
+ "sourceName",
4464
+ "targetName",
4465
+ "sourceForm",
4466
+ "targetForm",
4467
+ "transform",
4468
+ "reason"
4469
+ ],
4470
+ "additionalProperties": false
4471
+ },
3686
4472
  "remotePath": {
3687
4473
  "type": "string"
3688
4474
  },
@@ -4446,6 +5232,94 @@
4446
5232
  {
4447
5233
  "type": "object",
4448
5234
  "properties": {
5235
+ "media": {
5236
+ "type": "object",
5237
+ "properties": {
5238
+ "mediaMode": {
5239
+ "enum": [
5240
+ "auto",
5241
+ "raw"
5242
+ ]
5243
+ },
5244
+ "sourceName": {
5245
+ "type": "string"
5246
+ },
5247
+ "targetName": {
5248
+ "type": "string"
5249
+ },
5250
+ "sourceForm": {
5251
+ "enum": [
5252
+ "plain",
5253
+ "media_xor_v1",
5254
+ "unknown"
5255
+ ]
5256
+ },
5257
+ "targetForm": {
5258
+ "enum": [
5259
+ "plain",
5260
+ "media_xor_v1",
5261
+ "unknown"
5262
+ ]
5263
+ },
5264
+ "transform": {
5265
+ "enum": [
5266
+ "none",
5267
+ "encrypt",
5268
+ "decrypt"
5269
+ ]
5270
+ },
5271
+ "reason": {
5272
+ "type": "string"
5273
+ }
5274
+ },
5275
+ "required": [
5276
+ "mediaMode",
5277
+ "sourceName",
5278
+ "targetName",
5279
+ "sourceForm",
5280
+ "targetForm",
5281
+ "transform",
5282
+ "reason"
5283
+ ],
5284
+ "additionalProperties": false
5285
+ },
5286
+ "thumbnail": {
5287
+ "type": "object",
5288
+ "properties": {
5289
+ "status": {
5290
+ "type": "string"
5291
+ },
5292
+ "reason": {
5293
+ "type": "string"
5294
+ },
5295
+ "nextStep": {
5296
+ "type": "string"
5297
+ },
5298
+ "generated": {
5299
+ "type": "integer",
5300
+ "minimum": 0
5301
+ },
5302
+ "reused": {
5303
+ "type": "integer",
5304
+ "minimum": 0
5305
+ },
5306
+ "bytesRead": {
5307
+ "type": "integer",
5308
+ "minimum": 0
5309
+ },
5310
+ "packBytesRead": {
5311
+ "type": "integer",
5312
+ "minimum": 0
5313
+ }
5314
+ },
5315
+ "required": [
5316
+ "status"
5317
+ ],
5318
+ "additionalProperties": true
5319
+ },
5320
+ "replayed": {
5321
+ "type": "boolean"
5322
+ },
4449
5323
  "remotePath": {
4450
5324
  "type": "string"
4451
5325
  },
@@ -4486,6 +5360,91 @@
4486
5360
  {
4487
5361
  "type": "object",
4488
5362
  "properties": {
5363
+ "media": {
5364
+ "type": "object",
5365
+ "properties": {
5366
+ "mediaMode": {
5367
+ "enum": [
5368
+ "auto",
5369
+ "raw"
5370
+ ]
5371
+ },
5372
+ "sourceName": {
5373
+ "type": "string"
5374
+ },
5375
+ "targetName": {
5376
+ "type": "string"
5377
+ },
5378
+ "sourceForm": {
5379
+ "enum": [
5380
+ "plain",
5381
+ "media_xor_v1",
5382
+ "unknown"
5383
+ ]
5384
+ },
5385
+ "targetForm": {
5386
+ "enum": [
5387
+ "plain",
5388
+ "media_xor_v1",
5389
+ "unknown"
5390
+ ]
5391
+ },
5392
+ "transform": {
5393
+ "enum": [
5394
+ "none",
5395
+ "encrypt",
5396
+ "decrypt"
5397
+ ]
5398
+ },
5399
+ "reason": {
5400
+ "type": "string"
5401
+ }
5402
+ },
5403
+ "required": [
5404
+ "mediaMode",
5405
+ "sourceName",
5406
+ "targetName",
5407
+ "sourceForm",
5408
+ "targetForm",
5409
+ "transform",
5410
+ "reason"
5411
+ ],
5412
+ "additionalProperties": false
5413
+ },
5414
+ "thumbnail": {
5415
+ "type": "object",
5416
+ "properties": {
5417
+ "status": {
5418
+ "type": "string"
5419
+ },
5420
+ "reason": {
5421
+ "type": "string"
5422
+ },
5423
+ "nextStep": {
5424
+ "type": "string"
5425
+ },
5426
+ "generated": {
5427
+ "type": "integer",
5428
+ "minimum": 0
5429
+ },
5430
+ "reused": {
5431
+ "type": "integer",
5432
+ "minimum": 0
5433
+ },
5434
+ "bytesRead": {
5435
+ "type": "integer",
5436
+ "minimum": 0
5437
+ },
5438
+ "packBytesRead": {
5439
+ "type": "integer",
5440
+ "minimum": 0
5441
+ }
5442
+ },
5443
+ "required": [
5444
+ "status"
5445
+ ],
5446
+ "additionalProperties": true
5447
+ },
4489
5448
  "remotePath": {
4490
5449
  "type": "string"
4491
5450
  },
@@ -4628,6 +5587,94 @@
4628
5587
  "data": {
4629
5588
  "type": "object",
4630
5589
  "properties": {
5590
+ "media": {
5591
+ "type": "object",
5592
+ "properties": {
5593
+ "mediaMode": {
5594
+ "enum": [
5595
+ "auto",
5596
+ "raw"
5597
+ ]
5598
+ },
5599
+ "sourceName": {
5600
+ "type": "string"
5601
+ },
5602
+ "targetName": {
5603
+ "type": "string"
5604
+ },
5605
+ "sourceForm": {
5606
+ "enum": [
5607
+ "plain",
5608
+ "media_xor_v1",
5609
+ "unknown"
5610
+ ]
5611
+ },
5612
+ "targetForm": {
5613
+ "enum": [
5614
+ "plain",
5615
+ "media_xor_v1",
5616
+ "unknown"
5617
+ ]
5618
+ },
5619
+ "transform": {
5620
+ "enum": [
5621
+ "none",
5622
+ "encrypt",
5623
+ "decrypt"
5624
+ ]
5625
+ },
5626
+ "reason": {
5627
+ "type": "string"
5628
+ }
5629
+ },
5630
+ "required": [
5631
+ "mediaMode",
5632
+ "sourceName",
5633
+ "targetName",
5634
+ "sourceForm",
5635
+ "targetForm",
5636
+ "transform",
5637
+ "reason"
5638
+ ],
5639
+ "additionalProperties": false
5640
+ },
5641
+ "thumbnail": {
5642
+ "type": "object",
5643
+ "properties": {
5644
+ "status": {
5645
+ "type": "string"
5646
+ },
5647
+ "reason": {
5648
+ "type": "string"
5649
+ },
5650
+ "nextStep": {
5651
+ "type": "string"
5652
+ },
5653
+ "generated": {
5654
+ "type": "integer",
5655
+ "minimum": 0
5656
+ },
5657
+ "reused": {
5658
+ "type": "integer",
5659
+ "minimum": 0
5660
+ },
5661
+ "bytesRead": {
5662
+ "type": "integer",
5663
+ "minimum": 0
5664
+ },
5665
+ "packBytesRead": {
5666
+ "type": "integer",
5667
+ "minimum": 0
5668
+ }
5669
+ },
5670
+ "required": [
5671
+ "status"
5672
+ ],
5673
+ "additionalProperties": true
5674
+ },
5675
+ "replayed": {
5676
+ "type": "boolean"
5677
+ },
4631
5678
  "remotePath": {
4632
5679
  "type": "string"
4633
5680
  },
@@ -5838,6 +6885,40 @@
5838
6885
  }
5839
6886
  },
5840
6887
  "oneOf": [
6888
+ {
6889
+ "type": "object",
6890
+ "properties": {
6891
+ "event": {
6892
+ "const": "ready"
6893
+ },
6894
+ "command": {
6895
+ "const": "stream"
6896
+ },
6897
+ "url": {
6898
+ "type": "string",
6899
+ "pattern": "^http://127\\.0\\.0\\.1:[0-9]+/[a-f0-9]{64}$"
6900
+ },
6901
+ "fsId": {
6902
+ "type": "string"
6903
+ },
6904
+ "size": {
6905
+ "type": "integer",
6906
+ "minimum": 0
6907
+ },
6908
+ "decrypted": {
6909
+ "type": "boolean"
6910
+ }
6911
+ },
6912
+ "required": [
6913
+ "event",
6914
+ "command",
6915
+ "url",
6916
+ "fsId",
6917
+ "size",
6918
+ "decrypted"
6919
+ ],
6920
+ "additionalProperties": false
6921
+ },
5841
6922
  {
5842
6923
  "type": "object",
5843
6924
  "properties": {