@moredrive/cli 1.3.0 → 1.4.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.
@@ -3,6 +3,725 @@
3
3
  "$id": "https://moredrive.local/schemas/moredrive-cli-output-v2.1.json",
4
4
  "title": "MoreDrive CLI command output v2.1",
5
5
  "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "schemaVersion": {
10
+ "const": "moredrive.cli.v2"
11
+ },
12
+ "ok": {
13
+ "const": true
14
+ },
15
+ "command": {
16
+ "const": "stream"
17
+ },
18
+ "data": {
19
+ "type": "object",
20
+ "properties": {
21
+ "fsId": {
22
+ "type": "string"
23
+ },
24
+ "bytesServed": {
25
+ "type": "integer",
26
+ "minimum": 0
27
+ },
28
+ "status": {
29
+ "const": "stopped"
30
+ }
31
+ },
32
+ "required": [
33
+ "fsId",
34
+ "bytesServed",
35
+ "status"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ "warnings": {
40
+ "type": "array",
41
+ "items": {
42
+ "type": "object",
43
+ "properties": {
44
+ "code": {
45
+ "type": "string"
46
+ },
47
+ "message": {
48
+ "type": "string"
49
+ },
50
+ "details": {
51
+ "type": "object",
52
+ "properties": {
53
+ "idempotencyKey": {
54
+ "type": "string"
55
+ },
56
+ "operationId": {
57
+ "type": "string"
58
+ },
59
+ "causeCode": {
60
+ "type": "string"
61
+ },
62
+ "maxFileSizeBytes": {
63
+ "type": "integer"
64
+ },
65
+ "actualFileSizeBytes": {
66
+ "type": "integer"
67
+ },
68
+ "capabilityRevision": {
69
+ "type": "string"
70
+ },
71
+ "reason": {
72
+ "type": "string"
73
+ },
74
+ "attempt": {
75
+ "type": "integer"
76
+ },
77
+ "status": {
78
+ "type": "integer"
79
+ },
80
+ "errno": {
81
+ "type": "integer"
82
+ },
83
+ "path": {
84
+ "type": "string"
85
+ },
86
+ "target": {
87
+ "type": "string"
88
+ }
89
+ },
90
+ "required": [],
91
+ "additionalProperties": false
92
+ }
93
+ },
94
+ "required": [
95
+ "code",
96
+ "message"
97
+ ],
98
+ "additionalProperties": false
99
+ }
100
+ },
101
+ "meta": {
102
+ "type": "object",
103
+ "properties": {
104
+ "requestId": {
105
+ "type": "string"
106
+ },
107
+ "durationMs": {
108
+ "type": "number"
109
+ },
110
+ "baseUrl": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [
115
+ "durationMs",
116
+ "baseUrl"
117
+ ],
118
+ "additionalProperties": false
119
+ }
120
+ },
121
+ "required": [
122
+ "schemaVersion",
123
+ "ok",
124
+ "command",
125
+ "data",
126
+ "warnings",
127
+ "meta"
128
+ ],
129
+ "additionalProperties": false
130
+ },
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "schemaVersion": {
135
+ "const": "moredrive.cli.v2"
136
+ },
137
+ "ok": {
138
+ "const": true
139
+ },
140
+ "command": {
141
+ "const": "media.thumbnails"
142
+ },
143
+ "data": {
144
+ "type": "object",
145
+ "properties": {
146
+ "operation": {
147
+ "const": "thumbnails"
148
+ },
149
+ "account": {
150
+ "type": "string"
151
+ },
152
+ "remoteDirectory": {
153
+ "type": "string"
154
+ },
155
+ "output": {
156
+ "type": [
157
+ "string",
158
+ "null"
159
+ ]
160
+ },
161
+ "uploaded": {
162
+ "const": false
163
+ },
164
+ "status": {
165
+ "enum": [
166
+ "completed",
167
+ "partial",
168
+ "failed",
169
+ "no-op"
170
+ ]
171
+ },
172
+ "generated": {
173
+ "type": "integer",
174
+ "minimum": 0
175
+ },
176
+ "reused": {
177
+ "type": "integer",
178
+ "minimum": 0
179
+ },
180
+ "failed": {
181
+ "type": "integer",
182
+ "minimum": 0
183
+ },
184
+ "bytesRead": {
185
+ "type": "integer",
186
+ "minimum": 0
187
+ },
188
+ "packBytesRead": {
189
+ "type": "integer",
190
+ "minimum": 0
191
+ },
192
+ "items": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "object",
196
+ "properties": {
197
+ "fsId": {
198
+ "type": "string"
199
+ },
200
+ "name": {
201
+ "type": "string"
202
+ },
203
+ "status": {
204
+ "enum": [
205
+ "generated",
206
+ "reused",
207
+ "failed"
208
+ ]
209
+ },
210
+ "reason": {
211
+ "type": "string"
212
+ },
213
+ "bytesRead": {
214
+ "type": "integer",
215
+ "minimum": 0
216
+ },
217
+ "requests": {
218
+ "type": "integer",
219
+ "minimum": 0
220
+ }
221
+ },
222
+ "required": [
223
+ "fsId",
224
+ "name",
225
+ "status",
226
+ "bytesRead",
227
+ "requests"
228
+ ],
229
+ "additionalProperties": false
230
+ }
231
+ }
232
+ },
233
+ "required": [
234
+ "operation",
235
+ "account",
236
+ "remoteDirectory",
237
+ "output",
238
+ "uploaded",
239
+ "status",
240
+ "generated",
241
+ "reused",
242
+ "failed",
243
+ "bytesRead",
244
+ "packBytesRead",
245
+ "items"
246
+ ],
247
+ "additionalProperties": false
248
+ },
249
+ "warnings": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "code": {
255
+ "type": "string"
256
+ },
257
+ "message": {
258
+ "type": "string"
259
+ },
260
+ "details": {
261
+ "type": "object",
262
+ "properties": {
263
+ "idempotencyKey": {
264
+ "type": "string"
265
+ },
266
+ "operationId": {
267
+ "type": "string"
268
+ },
269
+ "causeCode": {
270
+ "type": "string"
271
+ },
272
+ "maxFileSizeBytes": {
273
+ "type": "integer"
274
+ },
275
+ "actualFileSizeBytes": {
276
+ "type": "integer"
277
+ },
278
+ "capabilityRevision": {
279
+ "type": "string"
280
+ },
281
+ "reason": {
282
+ "type": "string"
283
+ },
284
+ "attempt": {
285
+ "type": "integer"
286
+ },
287
+ "status": {
288
+ "type": "integer"
289
+ },
290
+ "errno": {
291
+ "type": "integer"
292
+ },
293
+ "path": {
294
+ "type": "string"
295
+ },
296
+ "target": {
297
+ "type": "string"
298
+ }
299
+ },
300
+ "required": [],
301
+ "additionalProperties": false
302
+ }
303
+ },
304
+ "required": [
305
+ "code",
306
+ "message"
307
+ ],
308
+ "additionalProperties": false
309
+ }
310
+ },
311
+ "meta": {
312
+ "type": "object",
313
+ "properties": {
314
+ "requestId": {
315
+ "type": "string"
316
+ },
317
+ "durationMs": {
318
+ "type": "number"
319
+ },
320
+ "baseUrl": {
321
+ "type": "string"
322
+ }
323
+ },
324
+ "required": [
325
+ "durationMs",
326
+ "baseUrl"
327
+ ],
328
+ "additionalProperties": false
329
+ }
330
+ },
331
+ "required": [
332
+ "schemaVersion",
333
+ "ok",
334
+ "command",
335
+ "data",
336
+ "warnings",
337
+ "meta"
338
+ ],
339
+ "additionalProperties": false
340
+ },
341
+ {
342
+ "type": "object",
343
+ "properties": {
344
+ "schemaVersion": {
345
+ "const": "moredrive.cli.v2"
346
+ },
347
+ "ok": {
348
+ "const": true
349
+ },
350
+ "command": {
351
+ "const": "media.encrypt"
352
+ },
353
+ "data": {
354
+ "type": "object",
355
+ "properties": {
356
+ "operation": {
357
+ "enum": [
358
+ "encrypt",
359
+ "decrypt"
360
+ ]
361
+ },
362
+ "input": {
363
+ "type": "string"
364
+ },
365
+ "output": {
366
+ "type": "string"
367
+ },
368
+ "status": {
369
+ "enum": [
370
+ "completed",
371
+ "partial",
372
+ "failed",
373
+ "cancelled",
374
+ "no-op"
375
+ ]
376
+ },
377
+ "completed": {
378
+ "type": "integer",
379
+ "minimum": 0
380
+ },
381
+ "failed": {
382
+ "type": "integer",
383
+ "minimum": 0
384
+ },
385
+ "skipped": {
386
+ "type": "integer",
387
+ "minimum": 0
388
+ },
389
+ "bytesRead": {
390
+ "type": "integer",
391
+ "minimum": 0
392
+ },
393
+ "items": {
394
+ "type": "array",
395
+ "items": {
396
+ "type": "object",
397
+ "properties": {
398
+ "input": {
399
+ "type": "string"
400
+ },
401
+ "output": {
402
+ "type": "string"
403
+ },
404
+ "status": {
405
+ "enum": [
406
+ "completed",
407
+ "skipped",
408
+ "failed"
409
+ ]
410
+ },
411
+ "reason": {
412
+ "type": "string"
413
+ },
414
+ "bytesRead": {
415
+ "type": "integer",
416
+ "minimum": 0
417
+ }
418
+ },
419
+ "required": [
420
+ "input",
421
+ "status",
422
+ "bytesRead"
423
+ ],
424
+ "additionalProperties": false
425
+ }
426
+ }
427
+ },
428
+ "required": [
429
+ "operation",
430
+ "input",
431
+ "output",
432
+ "status",
433
+ "completed",
434
+ "failed",
435
+ "skipped",
436
+ "bytesRead",
437
+ "items"
438
+ ],
439
+ "additionalProperties": false
440
+ },
441
+ "warnings": {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "object",
445
+ "properties": {
446
+ "code": {
447
+ "type": "string"
448
+ },
449
+ "message": {
450
+ "type": "string"
451
+ },
452
+ "details": {
453
+ "type": "object",
454
+ "properties": {
455
+ "idempotencyKey": {
456
+ "type": "string"
457
+ },
458
+ "operationId": {
459
+ "type": "string"
460
+ },
461
+ "causeCode": {
462
+ "type": "string"
463
+ },
464
+ "maxFileSizeBytes": {
465
+ "type": "integer"
466
+ },
467
+ "actualFileSizeBytes": {
468
+ "type": "integer"
469
+ },
470
+ "capabilityRevision": {
471
+ "type": "string"
472
+ },
473
+ "reason": {
474
+ "type": "string"
475
+ },
476
+ "attempt": {
477
+ "type": "integer"
478
+ },
479
+ "status": {
480
+ "type": "integer"
481
+ },
482
+ "errno": {
483
+ "type": "integer"
484
+ },
485
+ "path": {
486
+ "type": "string"
487
+ },
488
+ "target": {
489
+ "type": "string"
490
+ }
491
+ },
492
+ "required": [],
493
+ "additionalProperties": false
494
+ }
495
+ },
496
+ "required": [
497
+ "code",
498
+ "message"
499
+ ],
500
+ "additionalProperties": false
501
+ }
502
+ },
503
+ "meta": {
504
+ "type": "object",
505
+ "properties": {
506
+ "requestId": {
507
+ "type": "string"
508
+ },
509
+ "durationMs": {
510
+ "type": "number"
511
+ },
512
+ "baseUrl": {
513
+ "type": "string"
514
+ }
515
+ },
516
+ "required": [
517
+ "durationMs",
518
+ "baseUrl"
519
+ ],
520
+ "additionalProperties": false
521
+ }
522
+ },
523
+ "required": [
524
+ "schemaVersion",
525
+ "ok",
526
+ "command",
527
+ "data",
528
+ "warnings",
529
+ "meta"
530
+ ],
531
+ "additionalProperties": false
532
+ },
533
+ {
534
+ "type": "object",
535
+ "properties": {
536
+ "schemaVersion": {
537
+ "const": "moredrive.cli.v2"
538
+ },
539
+ "ok": {
540
+ "const": true
541
+ },
542
+ "command": {
543
+ "const": "media.decrypt"
544
+ },
545
+ "data": {
546
+ "type": "object",
547
+ "properties": {
548
+ "operation": {
549
+ "enum": [
550
+ "encrypt",
551
+ "decrypt"
552
+ ]
553
+ },
554
+ "input": {
555
+ "type": "string"
556
+ },
557
+ "output": {
558
+ "type": "string"
559
+ },
560
+ "status": {
561
+ "enum": [
562
+ "completed",
563
+ "partial",
564
+ "failed",
565
+ "cancelled",
566
+ "no-op"
567
+ ]
568
+ },
569
+ "completed": {
570
+ "type": "integer",
571
+ "minimum": 0
572
+ },
573
+ "failed": {
574
+ "type": "integer",
575
+ "minimum": 0
576
+ },
577
+ "skipped": {
578
+ "type": "integer",
579
+ "minimum": 0
580
+ },
581
+ "bytesRead": {
582
+ "type": "integer",
583
+ "minimum": 0
584
+ },
585
+ "items": {
586
+ "type": "array",
587
+ "items": {
588
+ "type": "object",
589
+ "properties": {
590
+ "input": {
591
+ "type": "string"
592
+ },
593
+ "output": {
594
+ "type": "string"
595
+ },
596
+ "status": {
597
+ "enum": [
598
+ "completed",
599
+ "skipped",
600
+ "failed"
601
+ ]
602
+ },
603
+ "reason": {
604
+ "type": "string"
605
+ },
606
+ "bytesRead": {
607
+ "type": "integer",
608
+ "minimum": 0
609
+ }
610
+ },
611
+ "required": [
612
+ "input",
613
+ "status",
614
+ "bytesRead"
615
+ ],
616
+ "additionalProperties": false
617
+ }
618
+ }
619
+ },
620
+ "required": [
621
+ "operation",
622
+ "input",
623
+ "output",
624
+ "status",
625
+ "completed",
626
+ "failed",
627
+ "skipped",
628
+ "bytesRead",
629
+ "items"
630
+ ],
631
+ "additionalProperties": false
632
+ },
633
+ "warnings": {
634
+ "type": "array",
635
+ "items": {
636
+ "type": "object",
637
+ "properties": {
638
+ "code": {
639
+ "type": "string"
640
+ },
641
+ "message": {
642
+ "type": "string"
643
+ },
644
+ "details": {
645
+ "type": "object",
646
+ "properties": {
647
+ "idempotencyKey": {
648
+ "type": "string"
649
+ },
650
+ "operationId": {
651
+ "type": "string"
652
+ },
653
+ "causeCode": {
654
+ "type": "string"
655
+ },
656
+ "maxFileSizeBytes": {
657
+ "type": "integer"
658
+ },
659
+ "actualFileSizeBytes": {
660
+ "type": "integer"
661
+ },
662
+ "capabilityRevision": {
663
+ "type": "string"
664
+ },
665
+ "reason": {
666
+ "type": "string"
667
+ },
668
+ "attempt": {
669
+ "type": "integer"
670
+ },
671
+ "status": {
672
+ "type": "integer"
673
+ },
674
+ "errno": {
675
+ "type": "integer"
676
+ },
677
+ "path": {
678
+ "type": "string"
679
+ },
680
+ "target": {
681
+ "type": "string"
682
+ }
683
+ },
684
+ "required": [],
685
+ "additionalProperties": false
686
+ }
687
+ },
688
+ "required": [
689
+ "code",
690
+ "message"
691
+ ],
692
+ "additionalProperties": false
693
+ }
694
+ },
695
+ "meta": {
696
+ "type": "object",
697
+ "properties": {
698
+ "requestId": {
699
+ "type": "string"
700
+ },
701
+ "durationMs": {
702
+ "type": "number"
703
+ },
704
+ "baseUrl": {
705
+ "type": "string"
706
+ }
707
+ },
708
+ "required": [
709
+ "durationMs",
710
+ "baseUrl"
711
+ ],
712
+ "additionalProperties": false
713
+ }
714
+ },
715
+ "required": [
716
+ "schemaVersion",
717
+ "ok",
718
+ "command",
719
+ "data",
720
+ "warnings",
721
+ "meta"
722
+ ],
723
+ "additionalProperties": false
724
+ },
6
725
  {
7
726
  "type": "object",
8
727
  "properties": {
@@ -297,12 +1016,6 @@
297
1016
  "baidu": {
298
1017
  "type": "object",
299
1018
  "properties": {
300
- "username": {
301
- "type": "string"
302
- },
303
- "netdisk_name": {
304
- "type": "string"
305
- },
306
1019
  "avatar_url": {
307
1020
  "type": "string"
308
1021
  },