@super-protocol/sp-cli 0.0.7 → 0.0.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.
@@ -27,16 +27,24 @@
27
27
  "multiple": false,
28
28
  "type": "option"
29
29
  },
30
+ "tty": {
31
+ "helpGroup": "GLOBAL",
32
+ "name": "tty",
33
+ "required": false,
34
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
35
+ "allowNo": true,
36
+ "type": "boolean"
37
+ },
30
38
  "force": {
31
39
  "char": "f",
32
- "description": "Force deletion without confirmation",
40
+ "description": "Force forget without confirmation",
33
41
  "name": "force",
34
42
  "allowNo": false,
35
43
  "type": "boolean"
36
44
  },
37
45
  "name": {
38
46
  "char": "n",
39
- "description": "Configuration name to delete",
47
+ "description": "Account name to forget",
40
48
  "name": "name",
41
49
  "hasDynamicHelp": false,
42
50
  "multiple": false,
@@ -83,6 +91,14 @@
83
91
  "hasDynamicHelp": false,
84
92
  "multiple": false,
85
93
  "type": "option"
94
+ },
95
+ "tty": {
96
+ "helpGroup": "GLOBAL",
97
+ "name": "tty",
98
+ "required": false,
99
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
100
+ "allowNo": true,
101
+ "type": "boolean"
86
102
  }
87
103
  },
88
104
  "hasDynamicHelp": false,
@@ -122,6 +138,14 @@
122
138
  "multiple": false,
123
139
  "type": "option"
124
140
  },
141
+ "tty": {
142
+ "helpGroup": "GLOBAL",
143
+ "name": "tty",
144
+ "required": false,
145
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
146
+ "allowNo": true,
147
+ "type": "boolean"
148
+ },
125
149
  "detail": {
126
150
  "description": "Detailed information about Account",
127
151
  "name": "detail",
@@ -168,6 +192,14 @@
168
192
  "hasDynamicHelp": false,
169
193
  "multiple": false,
170
194
  "type": "option"
195
+ },
196
+ "tty": {
197
+ "helpGroup": "GLOBAL",
198
+ "name": "tty",
199
+ "required": false,
200
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
201
+ "allowNo": true,
202
+ "type": "boolean"
171
203
  }
172
204
  },
173
205
  "hasDynamicHelp": false,
@@ -214,6 +246,14 @@
214
246
  "multiple": false,
215
247
  "type": "option"
216
248
  },
249
+ "tty": {
250
+ "helpGroup": "GLOBAL",
251
+ "name": "tty",
252
+ "required": false,
253
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
254
+ "allowNo": true,
255
+ "type": "boolean"
256
+ },
217
257
  "name": {
218
258
  "description": "Account readable name",
219
259
  "name": "name",
@@ -228,6 +268,13 @@
228
268
  "multiple": false,
229
269
  "type": "option"
230
270
  },
271
+ "path": {
272
+ "description": "Path to account(configuration) file to import",
273
+ "name": "path",
274
+ "hasDynamicHelp": false,
275
+ "multiple": false,
276
+ "type": "option"
277
+ },
231
278
  "url": {
232
279
  "description": "Provider base URL",
233
280
  "hidden": true,
@@ -284,6 +331,22 @@
284
331
  "hasDynamicHelp": false,
285
332
  "multiple": false,
286
333
  "type": "option"
334
+ },
335
+ "tty": {
336
+ "helpGroup": "GLOBAL",
337
+ "name": "tty",
338
+ "required": false,
339
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
340
+ "allowNo": true,
341
+ "type": "boolean"
342
+ },
343
+ "name": {
344
+ "char": "n",
345
+ "description": "Account name to switch",
346
+ "name": "name",
347
+ "hasDynamicHelp": false,
348
+ "multiple": false,
349
+ "type": "option"
287
350
  }
288
351
  },
289
352
  "hasDynamicHelp": false,
@@ -302,14 +365,23 @@
302
365
  "switch.js"
303
366
  ]
304
367
  },
305
- "storage:create": {
368
+ "files:download": {
306
369
  "aliases": [],
307
- "args": {},
308
- "description": "Create a new storage entry from file or interactive prompts.",
370
+ "args": {
371
+ "resourceFile": {
372
+ "description": "Path to a resource file",
373
+ "name": "resourceFile",
374
+ "required": true
375
+ },
376
+ "localDirectory": {
377
+ "description": "Path to save downloaded file",
378
+ "name": "localDirectory",
379
+ "required": true
380
+ }
381
+ },
382
+ "description": "Download file or directory described in resource file",
309
383
  "examples": [
310
- "<%= config.bin %> storage create",
311
- "<%= config.bin %> storage create --fromFile ./storage.json",
312
- "<%= config.bin %> storage create --not-default"
384
+ "<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
313
385
  ],
314
386
  "flags": {
315
387
  "json": {
@@ -329,45 +401,53 @@
329
401
  "multiple": false,
330
402
  "type": "option"
331
403
  },
332
- "fromFile": {
333
- "aliases": [
334
- "fromFile"
335
- ],
336
- "char": "f",
337
- "description": "Path to a JSON file that contains AddStorageDto payload.",
338
- "name": "fromFile",
404
+ "tty": {
405
+ "helpGroup": "GLOBAL",
406
+ "name": "tty",
407
+ "required": false,
408
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
409
+ "allowNo": true,
410
+ "type": "boolean"
411
+ },
412
+ "maximum-concurrent": {
413
+ "description": "Maximum concurrent pieces to download at once per transfer",
414
+ "name": "maximum-concurrent",
415
+ "default": 1,
339
416
  "hasDynamicHelp": false,
340
417
  "multiple": false,
341
418
  "type": "option"
342
- },
343
- "notDefault": {
344
- "description": "Skip setting the created storage as default.",
345
- "name": "notDefault",
346
- "allowNo": false,
347
- "type": "boolean"
348
419
  }
349
420
  },
350
421
  "hasDynamicHelp": false,
351
422
  "hiddenAliases": [],
352
- "id": "storage:create",
423
+ "id": "files:download",
353
424
  "pluginAlias": "@super-protocol/sp-cli",
354
425
  "pluginName": "@super-protocol/sp-cli",
355
426
  "pluginType": "core",
356
427
  "strict": true,
428
+ "enableJsonFlag": true,
429
+ "authenticate": true,
430
+ "help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
357
431
  "isESM": true,
358
432
  "relativePath": [
359
433
  "dist",
360
434
  "commands",
361
- "storage",
362
- "create.js"
435
+ "files",
436
+ "download.js"
363
437
  ]
364
438
  },
365
- "storage:select": {
439
+ "files:upload": {
366
440
  "aliases": [],
367
- "args": {},
368
- "description": "Select a storage that will be used by subsequent commands.",
441
+ "args": {
442
+ "path": {
443
+ "description": "file or directory to upload",
444
+ "name": "path",
445
+ "required": true
446
+ }
447
+ },
448
+ "description": "Upload file or directory to remote storage",
369
449
  "examples": [
370
- "<%= config.bin %> storage select"
450
+ "<%= config.bin %> <%= command.id %> ./file.txt"
371
451
  ],
372
452
  "flags": {
373
453
  "json": {
@@ -386,29 +466,88 @@
386
466
  "hasDynamicHelp": false,
387
467
  "multiple": false,
388
468
  "type": "option"
469
+ },
470
+ "tty": {
471
+ "helpGroup": "GLOBAL",
472
+ "name": "tty",
473
+ "required": false,
474
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
475
+ "allowNo": true,
476
+ "type": "boolean"
477
+ },
478
+ "filename": {
479
+ "description": "The name of the resulting file/directory in the storage",
480
+ "name": "filename",
481
+ "required": false,
482
+ "hasDynamicHelp": false,
483
+ "multiple": false,
484
+ "type": "option"
485
+ },
486
+ "maximum-concurrent": {
487
+ "description": "Maximum concurrent pieces to upload at once per transfer",
488
+ "name": "maximum-concurrent",
489
+ "default": 1,
490
+ "hasDynamicHelp": false,
491
+ "multiple": false,
492
+ "type": "option"
493
+ },
494
+ "metadata": {
495
+ "description": "Path to a metadata file for adding fields to the resource file",
496
+ "name": "metadata",
497
+ "required": false,
498
+ "hasDynamicHelp": false,
499
+ "multiple": false,
500
+ "type": "option"
501
+ },
502
+ "output": {
503
+ "description": "Path to save resource file that is used to access the uploaded file",
504
+ "name": "output",
505
+ "required": false,
506
+ "default": "resource.json",
507
+ "hasDynamicHelp": false,
508
+ "multiple": false,
509
+ "type": "option"
510
+ },
511
+ "skip-encryption": {
512
+ "description": "Skip file encryption before upload",
513
+ "name": "skip-encryption",
514
+ "required": false,
515
+ "allowNo": false,
516
+ "type": "boolean"
517
+ },
518
+ "sync": {
519
+ "description": "Sync mode: delete files in target that don't exist in source",
520
+ "name": "sync",
521
+ "required": false,
522
+ "allowNo": false,
523
+ "type": "boolean"
389
524
  }
390
525
  },
391
526
  "hasDynamicHelp": false,
392
527
  "hiddenAliases": [],
393
- "id": "storage:select",
528
+ "id": "files:upload",
394
529
  "pluginAlias": "@super-protocol/sp-cli",
395
530
  "pluginName": "@super-protocol/sp-cli",
396
531
  "pluginType": "core",
397
532
  "strict": true,
533
+ "enableJsonFlag": true,
534
+ "authenticate": true,
398
535
  "isESM": true,
399
536
  "relativePath": [
400
537
  "dist",
401
538
  "commands",
402
- "storage",
403
- "select.js"
539
+ "files",
540
+ "upload.js"
404
541
  ]
405
542
  },
406
- "storage:show": {
543
+ "storage:create": {
407
544
  "aliases": [],
408
545
  "args": {},
409
- "description": "Show current selected storage",
546
+ "description": "Create a new storage entry from file or interactive prompts.",
410
547
  "examples": [
411
- "<%= config.bin %> <%= command.id %>"
548
+ "<%= config.bin %> storage create",
549
+ "<%= config.bin %> storage create --fromFile ./storage.json",
550
+ "<%= config.bin %> storage create --not-default"
412
551
  ],
413
552
  "flags": {
414
553
  "json": {
@@ -427,11 +566,36 @@
427
566
  "hasDynamicHelp": false,
428
567
  "multiple": false,
429
568
  "type": "option"
569
+ },
570
+ "tty": {
571
+ "helpGroup": "GLOBAL",
572
+ "name": "tty",
573
+ "required": false,
574
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
575
+ "allowNo": true,
576
+ "type": "boolean"
577
+ },
578
+ "fromFile": {
579
+ "aliases": [
580
+ "fromFile"
581
+ ],
582
+ "char": "f",
583
+ "description": "Path to a JSON file that contains AddStorageDto payload.",
584
+ "name": "fromFile",
585
+ "hasDynamicHelp": false,
586
+ "multiple": false,
587
+ "type": "option"
588
+ },
589
+ "notDefault": {
590
+ "description": "Skip setting the created storage as default.",
591
+ "name": "notDefault",
592
+ "allowNo": false,
593
+ "type": "boolean"
430
594
  }
431
595
  },
432
596
  "hasDynamicHelp": false,
433
597
  "hiddenAliases": [],
434
- "id": "storage:show",
598
+ "id": "storage:create",
435
599
  "pluginAlias": "@super-protocol/sp-cli",
436
600
  "pluginName": "@super-protocol/sp-cli",
437
601
  "pluginType": "core",
@@ -441,16 +605,15 @@
441
605
  "dist",
442
606
  "commands",
443
607
  "storage",
444
- "show.js"
608
+ "create.js"
445
609
  ]
446
610
  },
447
- "storage:update": {
611
+ "storage:select": {
448
612
  "aliases": [],
449
613
  "args": {},
450
- "description": "Update the configuration of an existing storage.",
614
+ "description": "Select a storage that will be used by subsequent commands.",
451
615
  "examples": [
452
- "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555 --fromFile ./storage-update.json",
453
- "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
616
+ "<%= config.bin %> storage select"
454
617
  ],
455
618
  "flags": {
456
619
  "json": {
@@ -470,26 +633,18 @@
470
633
  "multiple": false,
471
634
  "type": "option"
472
635
  },
473
- "fromFile": {
474
- "char": "f",
475
- "description": "Path to a JSON file that contains UpdateStorageDto payload.",
476
- "name": "fromFile",
477
- "hasDynamicHelp": false,
478
- "multiple": false,
479
- "type": "option"
480
- },
481
- "id": {
482
- "char": "i",
483
- "description": "Storage ID to update",
484
- "name": "id",
485
- "hasDynamicHelp": false,
486
- "multiple": false,
487
- "type": "option"
636
+ "tty": {
637
+ "helpGroup": "GLOBAL",
638
+ "name": "tty",
639
+ "required": false,
640
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
641
+ "allowNo": true,
642
+ "type": "boolean"
488
643
  }
489
644
  },
490
645
  "hasDynamicHelp": false,
491
646
  "hiddenAliases": [],
492
- "id": "storage:update",
647
+ "id": "storage:select",
493
648
  "pluginAlias": "@super-protocol/sp-cli",
494
649
  "pluginName": "@super-protocol/sp-cli",
495
650
  "pluginType": "core",
@@ -499,23 +654,15 @@
499
654
  "dist",
500
655
  "commands",
501
656
  "storage",
502
- "update.js"
657
+ "select.js"
503
658
  ]
504
659
  },
505
- "workflows:extend-lease": {
660
+ "storage:show": {
506
661
  "aliases": [],
507
- "args": {
508
- "orderId": {
509
- "description": "Order ID",
510
- "name": "orderId",
511
- "required": true
512
- }
513
- },
514
- "description": "Replenish deposit for a workflow to extend its lease time",
662
+ "args": {},
663
+ "description": "Show current selected storage",
515
664
  "examples": [
516
- "<%= config.bin %> <%= command.id %> <orderId> --sppi 1.5",
517
- "<%= config.bin %> <%= command.id %> <orderId> --minutes 120",
518
- "<%= config.bin %> <%= command.id %> <orderId> --sppi 2 --yes"
665
+ "<%= config.bin %> <%= command.id %>"
519
666
  ],
520
667
  "flags": {
521
668
  "json": {
@@ -535,62 +682,37 @@
535
682
  "multiple": false,
536
683
  "type": "option"
537
684
  },
538
- "minutes": {
539
- "description": "Time to extend order in minutes (automatically calculates tokens)",
540
- "name": "minutes",
541
- "hasDynamicHelp": false,
542
- "multiple": false,
543
- "type": "option"
544
- },
545
- "sppi": {
546
- "description": "SPPI token amount to add to the order",
547
- "name": "sppi",
548
- "hasDynamicHelp": false,
549
- "multiple": false,
550
- "type": "option"
551
- },
552
- "yes": {
553
- "char": "y",
554
- "description": "Skip confirmation prompt",
555
- "name": "yes",
556
- "allowNo": false,
685
+ "tty": {
686
+ "helpGroup": "GLOBAL",
687
+ "name": "tty",
688
+ "required": false,
689
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
690
+ "allowNo": true,
557
691
  "type": "boolean"
558
692
  }
559
693
  },
560
694
  "hasDynamicHelp": false,
561
695
  "hiddenAliases": [],
562
- "id": "workflows:extend-lease",
696
+ "id": "storage:show",
563
697
  "pluginAlias": "@super-protocol/sp-cli",
564
698
  "pluginName": "@super-protocol/sp-cli",
565
699
  "pluginType": "core",
566
700
  "strict": true,
567
- "enableJsonFlag": true,
568
- "authenticate": true,
569
701
  "isESM": true,
570
702
  "relativePath": [
571
703
  "dist",
572
704
  "commands",
573
- "workflows",
574
- "extend-lease.js"
705
+ "storage",
706
+ "show.js"
575
707
  ]
576
708
  },
577
- "files:download": {
709
+ "storage:update": {
578
710
  "aliases": [],
579
- "args": {
580
- "resourceFile": {
581
- "description": "Path to a resource file",
582
- "name": "resourceFile",
583
- "required": true
584
- },
585
- "localDirectory": {
586
- "description": "Path to save downloaded file",
587
- "name": "localDirectory",
588
- "required": true
589
- }
590
- },
591
- "description": "Download file or directory described in resource file",
711
+ "args": {},
712
+ "description": "Update the configuration of an existing storage.",
592
713
  "examples": [
593
- "<%= config.bin %> <%= command.id %> ./resource.json ./pathToDownload "
714
+ "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555 --fromFile ./storage-update.json",
715
+ "<%= config.bin %> storage update --id=2de3e3a4-0000-1111-2222-333344445555"
594
716
  ],
595
717
  "flags": {
596
718
  "json": {
@@ -610,10 +732,26 @@
610
732
  "multiple": false,
611
733
  "type": "option"
612
734
  },
613
- "maximum-concurrent": {
614
- "description": "Maximum concurrent pieces to download at once per transfer",
615
- "name": "maximum-concurrent",
616
- "default": 1,
735
+ "tty": {
736
+ "helpGroup": "GLOBAL",
737
+ "name": "tty",
738
+ "required": false,
739
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
740
+ "allowNo": true,
741
+ "type": "boolean"
742
+ },
743
+ "fromFile": {
744
+ "char": "f",
745
+ "description": "Path to a JSON file that contains UpdateStorageDto payload.",
746
+ "name": "fromFile",
747
+ "hasDynamicHelp": false,
748
+ "multiple": false,
749
+ "type": "option"
750
+ },
751
+ "id": {
752
+ "char": "i",
753
+ "description": "Storage ID to update",
754
+ "name": "id",
617
755
  "hasDynamicHelp": false,
618
756
  "multiple": false,
619
757
  "type": "option"
@@ -621,34 +759,33 @@
621
759
  },
622
760
  "hasDynamicHelp": false,
623
761
  "hiddenAliases": [],
624
- "id": "files:download",
762
+ "id": "storage:update",
625
763
  "pluginAlias": "@super-protocol/sp-cli",
626
764
  "pluginName": "@super-protocol/sp-cli",
627
765
  "pluginType": "core",
628
766
  "strict": true,
629
- "enableJsonFlag": true,
630
- "authenticate": true,
631
- "help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
632
767
  "isESM": true,
633
768
  "relativePath": [
634
769
  "dist",
635
770
  "commands",
636
- "files",
637
- "download.js"
771
+ "storage",
772
+ "update.js"
638
773
  ]
639
774
  },
640
- "files:upload": {
775
+ "workflows:extend-lease": {
641
776
  "aliases": [],
642
777
  "args": {
643
- "path": {
644
- "description": "file or directory to upload",
645
- "name": "path",
778
+ "orderId": {
779
+ "description": "Order ID",
780
+ "name": "orderId",
646
781
  "required": true
647
782
  }
648
783
  },
649
- "description": "Upload file or directory to remote storage",
784
+ "description": "Replenish deposit for a workflow to extend its lease time",
650
785
  "examples": [
651
- "<%= config.bin %> <%= command.id %> ./file.txt"
786
+ "<%= config.bin %> <%= command.id %> <orderId> --sppi 1.5",
787
+ "<%= config.bin %> <%= command.id %> <orderId> --minutes 120",
788
+ "<%= config.bin %> <%= command.id %> <orderId> --sppi 2 --yes"
652
789
  ],
653
790
  "flags": {
654
791
  "json": {
@@ -668,57 +805,39 @@
668
805
  "multiple": false,
669
806
  "type": "option"
670
807
  },
671
- "filename": {
672
- "description": "The name of the resulting file/directory in the storage",
673
- "name": "filename",
808
+ "tty": {
809
+ "helpGroup": "GLOBAL",
810
+ "name": "tty",
674
811
  "required": false,
675
- "hasDynamicHelp": false,
676
- "multiple": false,
677
- "type": "option"
678
- },
679
- "maximum-concurrent": {
680
- "description": "Maximum concurrent pieces to upload at once per transfer",
681
- "name": "maximum-concurrent",
682
- "default": 1,
683
- "hasDynamicHelp": false,
684
- "multiple": false,
685
- "type": "option"
812
+ "summary": "Force or disable interactive mode (use --no-tty to disable).",
813
+ "allowNo": true,
814
+ "type": "boolean"
686
815
  },
687
- "metadata": {
688
- "description": "Path to a metadata file for adding fields to the resource file",
689
- "name": "metadata",
690
- "required": false,
816
+ "minutes": {
817
+ "description": "Time to extend order in minutes (automatically calculates tokens)",
818
+ "name": "minutes",
691
819
  "hasDynamicHelp": false,
692
820
  "multiple": false,
693
821
  "type": "option"
694
822
  },
695
- "output": {
696
- "description": "Path to save resource file that is used to access the uploaded file",
697
- "name": "output",
698
- "required": false,
699
- "default": "resource.json",
823
+ "sppi": {
824
+ "description": "SPPI token amount to add to the order",
825
+ "name": "sppi",
700
826
  "hasDynamicHelp": false,
701
827
  "multiple": false,
702
828
  "type": "option"
703
829
  },
704
- "skip-encryption": {
705
- "description": "Skip file encryption before upload",
706
- "name": "skip-encryption",
707
- "required": false,
708
- "allowNo": false,
709
- "type": "boolean"
710
- },
711
- "sync": {
712
- "description": "Sync mode: delete files in target that don't exist in source",
713
- "name": "sync",
714
- "required": false,
830
+ "yes": {
831
+ "char": "y",
832
+ "description": "Skip confirmation prompt",
833
+ "name": "yes",
715
834
  "allowNo": false,
716
835
  "type": "boolean"
717
836
  }
718
837
  },
719
838
  "hasDynamicHelp": false,
720
839
  "hiddenAliases": [],
721
- "id": "files:upload",
840
+ "id": "workflows:extend-lease",
722
841
  "pluginAlias": "@super-protocol/sp-cli",
723
842
  "pluginName": "@super-protocol/sp-cli",
724
843
  "pluginType": "core",
@@ -729,10 +848,10 @@
729
848
  "relativePath": [
730
849
  "dist",
731
850
  "commands",
732
- "files",
733
- "upload.js"
851
+ "workflows",
852
+ "extend-lease.js"
734
853
  ]
735
854
  }
736
855
  },
737
- "version": "0.0.7"
856
+ "version": "0.0.9"
738
857
  }