@super-protocol/sp-cli 0.0.9 → 0.0.10-beta
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.
- package/README.md +191 -163
- package/dist/commands/account/base.d.ts +3 -4
- package/dist/commands/account/base.js +8 -6
- package/dist/commands/account/forget.js +3 -3
- package/dist/commands/account/get-sppi.js +7 -11
- package/dist/commands/account/info.d.ts +1 -13
- package/dist/commands/account/info.js +20 -40
- package/dist/commands/account/list.js +6 -6
- package/dist/commands/account/login.d.ts +6 -5
- package/dist/commands/account/login.js +96 -145
- package/dist/commands/account/switch.js +2 -2
- package/dist/commands/assets/base.d.ts +39 -0
- package/dist/commands/assets/base.js +217 -0
- package/dist/commands/assets/create.d.ts +41 -0
- package/dist/commands/assets/create.js +277 -0
- package/dist/commands/assets/delete.d.ts +14 -0
- package/dist/commands/assets/delete.js +69 -0
- package/dist/commands/assets/get.d.ts +14 -0
- package/dist/commands/assets/get.js +79 -0
- package/dist/commands/assets/list.d.ts +7 -0
- package/dist/commands/assets/list.js +33 -0
- package/dist/commands/assets/update.d.ts +44 -0
- package/dist/commands/assets/update.js +321 -0
- package/dist/commands/base.d.ts +1 -0
- package/dist/commands/base.js +5 -0
- package/dist/config/config.schema.d.ts +2 -11
- package/dist/config/config.schema.js +2 -7
- package/dist/constants.d.ts +3 -3
- package/dist/constants.js +3 -3
- package/dist/errors.d.ts +0 -2
- package/dist/errors.js +0 -2
- package/dist/hooks/prerun/auth.js +3 -8
- package/dist/interfaces/config-manager.interface.d.ts +3 -1
- package/dist/lib/container.d.ts +4 -12
- package/dist/lib/container.js +28 -113
- package/dist/lib/swarm-client/fetch-api.d.ts +7 -0
- package/dist/lib/swarm-client/fetch-api.js +41 -0
- package/dist/lib/swarm-client/fetch-timeout.client.d.ts +1 -0
- package/dist/lib/swarm-client/fetch-timeout.client.js +32 -0
- package/dist/lib/swarm-client/index.d.ts +6 -0
- package/dist/lib/swarm-client/index.js +31 -0
- package/dist/lib/swarm-client/middlewares/authorization.middleware.d.ts +2 -0
- package/dist/lib/swarm-client/middlewares/authorization.middleware.js +12 -0
- package/dist/lib/swarm-client/middlewares/index.d.ts +6 -0
- package/dist/lib/swarm-client/middlewares/index.js +5 -0
- package/dist/lib/swarm-client/middlewares/logger.middleware.d.ts +2 -0
- package/dist/lib/swarm-client/middlewares/logger.middleware.js +30 -0
- package/dist/lib/swarm-client/middlewares/request-id.middleware.d.ts +2 -0
- package/dist/lib/swarm-client/middlewares/request-id.middleware.js +13 -0
- package/dist/lib/swarm-client/types.d.ts +23 -0
- package/dist/lib/swarm-client/types.js +1 -0
- package/dist/managers/account-manager.d.ts +1 -0
- package/dist/managers/account-manager.js +13 -18
- package/dist/managers/config-file-manager.d.ts +22 -9
- package/dist/managers/config-file-manager.js +247 -122
- package/dist/managers/config-manager.d.ts +6 -6
- package/dist/managers/config-manager.js +8 -8
- package/dist/services/account.service.d.ts +42 -0
- package/dist/services/account.service.js +140 -0
- package/dist/services/asset.service.d.ts +35 -0
- package/dist/services/asset.service.js +120 -0
- package/dist/services/auth.service.d.ts +4 -6
- package/dist/services/auth.service.js +108 -118
- package/dist/utils/helper.js +2 -2
- package/oclif.manifest.json +462 -212
- package/package.json +7 -8
- package/dist/commands/files/download.d.ts +0 -15
- package/dist/commands/files/download.js +0 -63
- package/dist/commands/files/upload.d.ts +0 -18
- package/dist/commands/files/upload.js +0 -83
- package/dist/commands/storage/base.d.ts +0 -13
- package/dist/commands/storage/base.js +0 -125
- package/dist/commands/storage/create.d.ts +0 -11
- package/dist/commands/storage/create.js +0 -53
- package/dist/commands/storage/select.d.ts +0 -9
- package/dist/commands/storage/select.js +0 -38
- package/dist/commands/storage/show.d.ts +0 -17
- package/dist/commands/storage/show.js +0 -34
- package/dist/commands/storage/update.d.ts +0 -14
- package/dist/commands/storage/update.js +0 -204
- package/dist/commands/workflows/extend-lease.d.ts +0 -17
- package/dist/commands/workflows/extend-lease.js +0 -102
- package/dist/hooks/finally/shutdown-blockchain.d.ts +0 -3
- package/dist/hooks/finally/shutdown-blockchain.js +0 -8
- package/dist/middlewares/auth-middleware.d.ts +0 -9
- package/dist/middlewares/auth-middleware.js +0 -91
- package/dist/middlewares/cookies-middleware.d.ts +0 -8
- package/dist/middlewares/cookies-middleware.js +0 -80
- package/dist/services/storage.service.d.ts +0 -73
- package/dist/services/storage.service.js +0 -378
package/oclif.manifest.json
CHANGED
|
@@ -58,6 +58,8 @@
|
|
|
58
58
|
"pluginName": "@super-protocol/sp-cli",
|
|
59
59
|
"pluginType": "core",
|
|
60
60
|
"strict": true,
|
|
61
|
+
"summary": "Account management",
|
|
62
|
+
"enableJsonFlag": true,
|
|
61
63
|
"authenticate": false,
|
|
62
64
|
"isESM": true,
|
|
63
65
|
"relativePath": [
|
|
@@ -108,6 +110,9 @@
|
|
|
108
110
|
"pluginName": "@super-protocol/sp-cli",
|
|
109
111
|
"pluginType": "core",
|
|
110
112
|
"strict": true,
|
|
113
|
+
"summary": "Account management",
|
|
114
|
+
"enableJsonFlag": true,
|
|
115
|
+
"authenticate": true,
|
|
111
116
|
"isESM": true,
|
|
112
117
|
"relativePath": [
|
|
113
118
|
"dist",
|
|
@@ -160,6 +165,9 @@
|
|
|
160
165
|
"pluginName": "@super-protocol/sp-cli",
|
|
161
166
|
"pluginType": "core",
|
|
162
167
|
"strict": true,
|
|
168
|
+
"summary": "Account management",
|
|
169
|
+
"enableJsonFlag": true,
|
|
170
|
+
"authenticate": true,
|
|
163
171
|
"isESM": true,
|
|
164
172
|
"relativePath": [
|
|
165
173
|
"dist",
|
|
@@ -276,13 +284,21 @@
|
|
|
276
284
|
"type": "option"
|
|
277
285
|
},
|
|
278
286
|
"url": {
|
|
279
|
-
"description": "
|
|
287
|
+
"description": "Swarm Api URL",
|
|
280
288
|
"hidden": true,
|
|
281
289
|
"name": "url",
|
|
282
290
|
"hasDynamicHelp": false,
|
|
283
291
|
"multiple": false,
|
|
284
292
|
"type": "option"
|
|
285
293
|
},
|
|
294
|
+
"authUrl": {
|
|
295
|
+
"description": "Auth URL",
|
|
296
|
+
"hidden": true,
|
|
297
|
+
"name": "authUrl",
|
|
298
|
+
"hasDynamicHelp": false,
|
|
299
|
+
"multiple": false,
|
|
300
|
+
"type": "option"
|
|
301
|
+
},
|
|
286
302
|
"yes": {
|
|
287
303
|
"char": "y",
|
|
288
304
|
"description": "Skip questions (generate keys when needed).",
|
|
@@ -298,6 +314,8 @@
|
|
|
298
314
|
"pluginName": "@super-protocol/sp-cli",
|
|
299
315
|
"pluginType": "core",
|
|
300
316
|
"strict": true,
|
|
317
|
+
"summary": "Login and account creation for SuperProtocol",
|
|
318
|
+
"enableJsonFlag": true,
|
|
301
319
|
"authenticate": false,
|
|
302
320
|
"isESM": true,
|
|
303
321
|
"relativePath": [
|
|
@@ -356,6 +374,8 @@
|
|
|
356
374
|
"pluginName": "@super-protocol/sp-cli",
|
|
357
375
|
"pluginType": "core",
|
|
358
376
|
"strict": true,
|
|
377
|
+
"summary": "Account management",
|
|
378
|
+
"enableJsonFlag": true,
|
|
359
379
|
"authenticate": false,
|
|
360
380
|
"isESM": true,
|
|
361
381
|
"relativePath": [
|
|
@@ -365,23 +385,14 @@
|
|
|
365
385
|
"switch.js"
|
|
366
386
|
]
|
|
367
387
|
},
|
|
368
|
-
"
|
|
388
|
+
"assets:create": {
|
|
369
389
|
"aliases": [],
|
|
370
|
-
"args": {
|
|
371
|
-
|
|
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",
|
|
390
|
+
"args": {},
|
|
391
|
+
"description": "Create a new asset.",
|
|
383
392
|
"examples": [
|
|
384
|
-
"<%= config.bin %>
|
|
393
|
+
"<%= config.bin %> assets create",
|
|
394
|
+
"<%= config.bin %> assets create --fromFile ./asset.json",
|
|
395
|
+
"<%= config.bin %> assets create --name \"dataset-v1\" --type data --sourceType s3 --s3Bucket b --s3Path p --s3AccessKey a --s3SecretKey s --s3Region us-east-1"
|
|
385
396
|
],
|
|
386
397
|
"flags": {
|
|
387
398
|
"json": {
|
|
@@ -409,145 +420,230 @@
|
|
|
409
420
|
"allowNo": true,
|
|
410
421
|
"type": "boolean"
|
|
411
422
|
},
|
|
412
|
-
"
|
|
413
|
-
"
|
|
414
|
-
"
|
|
415
|
-
"
|
|
423
|
+
"fromFile": {
|
|
424
|
+
"char": "f",
|
|
425
|
+
"description": "Path to a JSON file that contains asset definition.",
|
|
426
|
+
"name": "fromFile",
|
|
416
427
|
"hasDynamicHelp": false,
|
|
417
428
|
"multiple": false,
|
|
418
429
|
"type": "option"
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
"hasDynamicHelp": false,
|
|
422
|
-
"hiddenAliases": [],
|
|
423
|
-
"id": "files:download",
|
|
424
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
425
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
426
|
-
"pluginType": "core",
|
|
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>",
|
|
431
|
-
"isESM": true,
|
|
432
|
-
"relativePath": [
|
|
433
|
-
"dist",
|
|
434
|
-
"commands",
|
|
435
|
-
"files",
|
|
436
|
-
"download.js"
|
|
437
|
-
]
|
|
438
|
-
},
|
|
439
|
-
"files:upload": {
|
|
440
|
-
"aliases": [],
|
|
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",
|
|
449
|
-
"examples": [
|
|
450
|
-
"<%= config.bin %> <%= command.id %> ./file.txt"
|
|
451
|
-
],
|
|
452
|
-
"flags": {
|
|
453
|
-
"json": {
|
|
454
|
-
"description": "Format output as json.",
|
|
455
|
-
"helpGroup": "GLOBAL",
|
|
456
|
-
"name": "json",
|
|
457
|
-
"allowNo": false,
|
|
458
|
-
"type": "boolean"
|
|
459
430
|
},
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"name": "
|
|
464
|
-
"required": false,
|
|
465
|
-
"summary": "Specify config file.",
|
|
431
|
+
"name": {
|
|
432
|
+
"char": "n",
|
|
433
|
+
"description": "Asset name",
|
|
434
|
+
"name": "name",
|
|
466
435
|
"hasDynamicHelp": false,
|
|
467
436
|
"multiple": false,
|
|
468
437
|
"type": "option"
|
|
469
438
|
},
|
|
470
|
-
"
|
|
471
|
-
"
|
|
472
|
-
"
|
|
473
|
-
"
|
|
474
|
-
"
|
|
475
|
-
"
|
|
476
|
-
"
|
|
439
|
+
"type": {
|
|
440
|
+
"char": "t",
|
|
441
|
+
"description": "Asset type",
|
|
442
|
+
"name": "type",
|
|
443
|
+
"hasDynamicHelp": false,
|
|
444
|
+
"multiple": false,
|
|
445
|
+
"options": [
|
|
446
|
+
"data",
|
|
447
|
+
"image",
|
|
448
|
+
"output"
|
|
449
|
+
],
|
|
450
|
+
"type": "option"
|
|
477
451
|
},
|
|
478
|
-
"
|
|
479
|
-
"
|
|
480
|
-
"
|
|
481
|
-
"
|
|
452
|
+
"sourceType": {
|
|
453
|
+
"char": "s",
|
|
454
|
+
"description": "Source type",
|
|
455
|
+
"name": "sourceType",
|
|
482
456
|
"hasDynamicHelp": false,
|
|
483
457
|
"multiple": false,
|
|
458
|
+
"options": [
|
|
459
|
+
"storj",
|
|
460
|
+
"s3",
|
|
461
|
+
"dockerhub",
|
|
462
|
+
"github",
|
|
463
|
+
"google-docs"
|
|
464
|
+
],
|
|
484
465
|
"type": "option"
|
|
485
466
|
},
|
|
486
|
-
"
|
|
487
|
-
"description": "
|
|
488
|
-
"name": "
|
|
489
|
-
"default": 1,
|
|
467
|
+
"tag": {
|
|
468
|
+
"description": "Asset tag",
|
|
469
|
+
"name": "tag",
|
|
490
470
|
"hasDynamicHelp": false,
|
|
491
471
|
"multiple": false,
|
|
492
472
|
"type": "option"
|
|
493
473
|
},
|
|
494
|
-
"
|
|
495
|
-
"description": "
|
|
496
|
-
"name": "
|
|
497
|
-
"required": false,
|
|
474
|
+
"hash": {
|
|
475
|
+
"description": "Asset hash",
|
|
476
|
+
"name": "hash",
|
|
498
477
|
"hasDynamicHelp": false,
|
|
499
478
|
"multiple": false,
|
|
500
479
|
"type": "option"
|
|
501
480
|
},
|
|
502
|
-
"
|
|
503
|
-
"description": "
|
|
504
|
-
"name": "
|
|
505
|
-
"required": false,
|
|
506
|
-
"default": "resource.json",
|
|
481
|
+
"size": {
|
|
482
|
+
"description": "Asset size in bytes",
|
|
483
|
+
"name": "size",
|
|
507
484
|
"hasDynamicHelp": false,
|
|
508
485
|
"multiple": false,
|
|
509
486
|
"type": "option"
|
|
510
487
|
},
|
|
511
|
-
"
|
|
512
|
-
"description": "
|
|
513
|
-
"name": "
|
|
514
|
-
"
|
|
515
|
-
"
|
|
516
|
-
"type": "
|
|
488
|
+
"storjBucket": {
|
|
489
|
+
"description": "Storj bucket",
|
|
490
|
+
"name": "storjBucket",
|
|
491
|
+
"hasDynamicHelp": false,
|
|
492
|
+
"multiple": false,
|
|
493
|
+
"type": "option"
|
|
517
494
|
},
|
|
518
|
-
"
|
|
519
|
-
"description": "
|
|
520
|
-
"name": "
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"type": "
|
|
495
|
+
"storjPath": {
|
|
496
|
+
"description": "Storj path",
|
|
497
|
+
"name": "storjPath",
|
|
498
|
+
"hasDynamicHelp": false,
|
|
499
|
+
"multiple": false,
|
|
500
|
+
"type": "option"
|
|
501
|
+
},
|
|
502
|
+
"storjToken": {
|
|
503
|
+
"description": "Storj access token",
|
|
504
|
+
"name": "storjToken",
|
|
505
|
+
"hasDynamicHelp": false,
|
|
506
|
+
"multiple": false,
|
|
507
|
+
"type": "option"
|
|
508
|
+
},
|
|
509
|
+
"s3Bucket": {
|
|
510
|
+
"description": "S3 bucket",
|
|
511
|
+
"name": "s3Bucket",
|
|
512
|
+
"hasDynamicHelp": false,
|
|
513
|
+
"multiple": false,
|
|
514
|
+
"type": "option"
|
|
515
|
+
},
|
|
516
|
+
"s3Path": {
|
|
517
|
+
"description": "S3 path",
|
|
518
|
+
"name": "s3Path",
|
|
519
|
+
"hasDynamicHelp": false,
|
|
520
|
+
"multiple": false,
|
|
521
|
+
"type": "option"
|
|
522
|
+
},
|
|
523
|
+
"s3AccessKey": {
|
|
524
|
+
"description": "S3 access key",
|
|
525
|
+
"name": "s3AccessKey",
|
|
526
|
+
"hasDynamicHelp": false,
|
|
527
|
+
"multiple": false,
|
|
528
|
+
"type": "option"
|
|
529
|
+
},
|
|
530
|
+
"s3SecretKey": {
|
|
531
|
+
"description": "S3 secret key",
|
|
532
|
+
"name": "s3SecretKey",
|
|
533
|
+
"hasDynamicHelp": false,
|
|
534
|
+
"multiple": false,
|
|
535
|
+
"type": "option"
|
|
536
|
+
},
|
|
537
|
+
"s3Region": {
|
|
538
|
+
"description": "S3 region",
|
|
539
|
+
"name": "s3Region",
|
|
540
|
+
"hasDynamicHelp": false,
|
|
541
|
+
"multiple": false,
|
|
542
|
+
"type": "option"
|
|
543
|
+
},
|
|
544
|
+
"s3Endpoint": {
|
|
545
|
+
"description": "S3 endpoint",
|
|
546
|
+
"name": "s3Endpoint",
|
|
547
|
+
"hasDynamicHelp": false,
|
|
548
|
+
"multiple": false,
|
|
549
|
+
"type": "option"
|
|
550
|
+
},
|
|
551
|
+
"dockerImage": {
|
|
552
|
+
"description": "Docker image",
|
|
553
|
+
"name": "dockerImage",
|
|
554
|
+
"hasDynamicHelp": false,
|
|
555
|
+
"multiple": false,
|
|
556
|
+
"type": "option"
|
|
557
|
+
},
|
|
558
|
+
"dockerRegistry": {
|
|
559
|
+
"description": "Docker registry",
|
|
560
|
+
"name": "dockerRegistry",
|
|
561
|
+
"hasDynamicHelp": false,
|
|
562
|
+
"multiple": false,
|
|
563
|
+
"type": "option"
|
|
564
|
+
},
|
|
565
|
+
"dockerUsername": {
|
|
566
|
+
"description": "Docker username",
|
|
567
|
+
"name": "dockerUsername",
|
|
568
|
+
"hasDynamicHelp": false,
|
|
569
|
+
"multiple": false,
|
|
570
|
+
"type": "option"
|
|
571
|
+
},
|
|
572
|
+
"dockerPassword": {
|
|
573
|
+
"description": "Docker password",
|
|
574
|
+
"name": "dockerPassword",
|
|
575
|
+
"hasDynamicHelp": false,
|
|
576
|
+
"multiple": false,
|
|
577
|
+
"type": "option"
|
|
578
|
+
},
|
|
579
|
+
"githubRepo": {
|
|
580
|
+
"description": "GitHub repo (org/repo)",
|
|
581
|
+
"name": "githubRepo",
|
|
582
|
+
"hasDynamicHelp": false,
|
|
583
|
+
"multiple": false,
|
|
584
|
+
"type": "option"
|
|
585
|
+
},
|
|
586
|
+
"githubToken": {
|
|
587
|
+
"description": "GitHub token",
|
|
588
|
+
"name": "githubToken",
|
|
589
|
+
"hasDynamicHelp": false,
|
|
590
|
+
"multiple": false,
|
|
591
|
+
"type": "option"
|
|
592
|
+
},
|
|
593
|
+
"githubBranch": {
|
|
594
|
+
"description": "GitHub branch",
|
|
595
|
+
"name": "githubBranch",
|
|
596
|
+
"hasDynamicHelp": false,
|
|
597
|
+
"multiple": false,
|
|
598
|
+
"type": "option"
|
|
599
|
+
},
|
|
600
|
+
"gdocsDocumentId": {
|
|
601
|
+
"description": "Google Docs document ID",
|
|
602
|
+
"name": "gdocsDocumentId",
|
|
603
|
+
"hasDynamicHelp": false,
|
|
604
|
+
"multiple": false,
|
|
605
|
+
"type": "option"
|
|
606
|
+
},
|
|
607
|
+
"gdocsApiKey": {
|
|
608
|
+
"description": "Google Docs API key",
|
|
609
|
+
"name": "gdocsApiKey",
|
|
610
|
+
"hasDynamicHelp": false,
|
|
611
|
+
"multiple": false,
|
|
612
|
+
"type": "option"
|
|
613
|
+
},
|
|
614
|
+
"gdocsServiceAccountJson": {
|
|
615
|
+
"description": "Google Docs service account JSON",
|
|
616
|
+
"name": "gdocsServiceAccountJson",
|
|
617
|
+
"hasDynamicHelp": false,
|
|
618
|
+
"multiple": false,
|
|
619
|
+
"type": "option"
|
|
524
620
|
}
|
|
525
621
|
},
|
|
526
622
|
"hasDynamicHelp": false,
|
|
527
623
|
"hiddenAliases": [],
|
|
528
|
-
"id": "
|
|
624
|
+
"id": "assets:create",
|
|
529
625
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
530
626
|
"pluginName": "@super-protocol/sp-cli",
|
|
531
627
|
"pluginType": "core",
|
|
532
628
|
"strict": true,
|
|
629
|
+
"summary": "Asset management",
|
|
533
630
|
"enableJsonFlag": true,
|
|
534
|
-
"authenticate":
|
|
631
|
+
"authenticate": false,
|
|
535
632
|
"isESM": true,
|
|
536
633
|
"relativePath": [
|
|
537
634
|
"dist",
|
|
538
635
|
"commands",
|
|
539
|
-
"
|
|
540
|
-
"
|
|
636
|
+
"assets",
|
|
637
|
+
"create.js"
|
|
541
638
|
]
|
|
542
639
|
},
|
|
543
|
-
"
|
|
640
|
+
"assets:delete": {
|
|
544
641
|
"aliases": [],
|
|
545
642
|
"args": {},
|
|
546
|
-
"description": "
|
|
643
|
+
"description": "Delete an asset.",
|
|
547
644
|
"examples": [
|
|
548
|
-
"<%= config.bin %>
|
|
549
|
-
"<%= config.bin %>
|
|
550
|
-
"<%= config.bin %> storage create --not-default"
|
|
645
|
+
"<%= config.bin %> assets delete --id 11111111-1111-1111-1111-111111111111",
|
|
646
|
+
"<%= config.bin %> assets delete --name \"dataset-v1\" --force"
|
|
551
647
|
],
|
|
552
648
|
"flags": {
|
|
553
649
|
"json": {
|
|
@@ -575,45 +671,55 @@
|
|
|
575
671
|
"allowNo": true,
|
|
576
672
|
"type": "boolean"
|
|
577
673
|
},
|
|
578
|
-
"
|
|
579
|
-
"aliases": [
|
|
580
|
-
"fromFile"
|
|
581
|
-
],
|
|
674
|
+
"force": {
|
|
582
675
|
"char": "f",
|
|
583
|
-
"description": "
|
|
584
|
-
"name": "
|
|
676
|
+
"description": "Delete without confirmation",
|
|
677
|
+
"name": "force",
|
|
678
|
+
"allowNo": false,
|
|
679
|
+
"type": "boolean"
|
|
680
|
+
},
|
|
681
|
+
"id": {
|
|
682
|
+
"char": "i",
|
|
683
|
+
"description": "Asset ID to delete",
|
|
684
|
+
"name": "id",
|
|
585
685
|
"hasDynamicHelp": false,
|
|
586
686
|
"multiple": false,
|
|
587
687
|
"type": "option"
|
|
588
688
|
},
|
|
589
|
-
"
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"
|
|
593
|
-
"
|
|
689
|
+
"name": {
|
|
690
|
+
"char": "n",
|
|
691
|
+
"description": "Asset name to delete",
|
|
692
|
+
"name": "name",
|
|
693
|
+
"hasDynamicHelp": false,
|
|
694
|
+
"multiple": false,
|
|
695
|
+
"type": "option"
|
|
594
696
|
}
|
|
595
697
|
},
|
|
596
698
|
"hasDynamicHelp": false,
|
|
597
699
|
"hiddenAliases": [],
|
|
598
|
-
"id": "
|
|
700
|
+
"id": "assets:delete",
|
|
599
701
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
600
702
|
"pluginName": "@super-protocol/sp-cli",
|
|
601
703
|
"pluginType": "core",
|
|
602
704
|
"strict": true,
|
|
705
|
+
"summary": "Asset management",
|
|
706
|
+
"enableJsonFlag": true,
|
|
707
|
+
"authenticate": false,
|
|
603
708
|
"isESM": true,
|
|
604
709
|
"relativePath": [
|
|
605
710
|
"dist",
|
|
606
711
|
"commands",
|
|
607
|
-
"
|
|
608
|
-
"
|
|
712
|
+
"assets",
|
|
713
|
+
"delete.js"
|
|
609
714
|
]
|
|
610
715
|
},
|
|
611
|
-
"
|
|
716
|
+
"assets:get": {
|
|
612
717
|
"aliases": [],
|
|
613
718
|
"args": {},
|
|
614
|
-
"description": "
|
|
719
|
+
"description": "Get information about an asset.",
|
|
615
720
|
"examples": [
|
|
616
|
-
"<%= config.bin %>
|
|
721
|
+
"<%= config.bin %> assets get --id 11111111-1111-1111-1111-111111111111",
|
|
722
|
+
"<%= config.bin %> assets get --name \"dataset-v1\""
|
|
617
723
|
],
|
|
618
724
|
"flags": {
|
|
619
725
|
"json": {
|
|
@@ -640,29 +746,48 @@
|
|
|
640
746
|
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
641
747
|
"allowNo": true,
|
|
642
748
|
"type": "boolean"
|
|
749
|
+
},
|
|
750
|
+
"id": {
|
|
751
|
+
"char": "i",
|
|
752
|
+
"description": "Asset ID to fetch",
|
|
753
|
+
"name": "id",
|
|
754
|
+
"hasDynamicHelp": false,
|
|
755
|
+
"multiple": false,
|
|
756
|
+
"type": "option"
|
|
757
|
+
},
|
|
758
|
+
"name": {
|
|
759
|
+
"char": "n",
|
|
760
|
+
"description": "Asset name to fetch",
|
|
761
|
+
"name": "name",
|
|
762
|
+
"hasDynamicHelp": false,
|
|
763
|
+
"multiple": false,
|
|
764
|
+
"type": "option"
|
|
643
765
|
}
|
|
644
766
|
},
|
|
645
767
|
"hasDynamicHelp": false,
|
|
646
768
|
"hiddenAliases": [],
|
|
647
|
-
"id": "
|
|
769
|
+
"id": "assets:get",
|
|
648
770
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
649
771
|
"pluginName": "@super-protocol/sp-cli",
|
|
650
772
|
"pluginType": "core",
|
|
651
773
|
"strict": true,
|
|
774
|
+
"summary": "Asset management",
|
|
775
|
+
"enableJsonFlag": true,
|
|
776
|
+
"authenticate": false,
|
|
652
777
|
"isESM": true,
|
|
653
778
|
"relativePath": [
|
|
654
779
|
"dist",
|
|
655
780
|
"commands",
|
|
656
|
-
"
|
|
657
|
-
"
|
|
781
|
+
"assets",
|
|
782
|
+
"get.js"
|
|
658
783
|
]
|
|
659
784
|
},
|
|
660
|
-
"
|
|
785
|
+
"assets:list": {
|
|
661
786
|
"aliases": [],
|
|
662
787
|
"args": {},
|
|
663
|
-
"description": "
|
|
788
|
+
"description": "List assets for the current user.",
|
|
664
789
|
"examples": [
|
|
665
|
-
"<%= config.bin %>
|
|
790
|
+
"<%= config.bin %> assets list"
|
|
666
791
|
],
|
|
667
792
|
"flags": {
|
|
668
793
|
"json": {
|
|
@@ -693,26 +818,31 @@
|
|
|
693
818
|
},
|
|
694
819
|
"hasDynamicHelp": false,
|
|
695
820
|
"hiddenAliases": [],
|
|
696
|
-
"id": "
|
|
821
|
+
"id": "assets:list",
|
|
697
822
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
698
823
|
"pluginName": "@super-protocol/sp-cli",
|
|
699
824
|
"pluginType": "core",
|
|
700
825
|
"strict": true,
|
|
826
|
+
"summary": "Asset management",
|
|
827
|
+
"enableJsonFlag": true,
|
|
828
|
+
"authenticate": false,
|
|
701
829
|
"isESM": true,
|
|
702
830
|
"relativePath": [
|
|
703
831
|
"dist",
|
|
704
832
|
"commands",
|
|
705
|
-
"
|
|
706
|
-
"
|
|
833
|
+
"assets",
|
|
834
|
+
"list.js"
|
|
707
835
|
]
|
|
708
836
|
},
|
|
709
|
-
"
|
|
837
|
+
"assets:update": {
|
|
710
838
|
"aliases": [],
|
|
711
839
|
"args": {},
|
|
712
|
-
"description": "Update
|
|
840
|
+
"description": "Update an existing asset.",
|
|
713
841
|
"examples": [
|
|
714
|
-
"<%= config.bin %>
|
|
715
|
-
"<%= config.bin %>
|
|
842
|
+
"<%= config.bin %> assets update --id 11111111-1111-1111-1111-111111111111 --fromFile ./asset-update.json",
|
|
843
|
+
"<%= config.bin %> assets update --name \"dataset-v1\"",
|
|
844
|
+
"<%= config.bin %> assets update --id 11111111-1111-1111-1111-111111111111 --newName \"dataset-v2\"",
|
|
845
|
+
"<%= config.bin %> assets update --id 11111111-1111-1111-1111-111111111111 --sourceType s3 --s3Bucket b --s3Path p --s3AccessKey a --s3SecretKey s --s3Region us-east-1"
|
|
716
846
|
],
|
|
717
847
|
"flags": {
|
|
718
848
|
"json": {
|
|
@@ -742,7 +872,7 @@
|
|
|
742
872
|
},
|
|
743
873
|
"fromFile": {
|
|
744
874
|
"char": "f",
|
|
745
|
-
"description": "Path to a JSON file that contains
|
|
875
|
+
"description": "Path to a JSON file that contains asset update definition.",
|
|
746
876
|
"name": "fromFile",
|
|
747
877
|
"hasDynamicHelp": false,
|
|
748
878
|
"multiple": false,
|
|
@@ -750,108 +880,228 @@
|
|
|
750
880
|
},
|
|
751
881
|
"id": {
|
|
752
882
|
"char": "i",
|
|
753
|
-
"description": "
|
|
883
|
+
"description": "Asset ID to update",
|
|
754
884
|
"name": "id",
|
|
755
885
|
"hasDynamicHelp": false,
|
|
756
886
|
"multiple": false,
|
|
757
887
|
"type": "option"
|
|
758
|
-
}
|
|
759
|
-
},
|
|
760
|
-
"hasDynamicHelp": false,
|
|
761
|
-
"hiddenAliases": [],
|
|
762
|
-
"id": "storage:update",
|
|
763
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
764
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
765
|
-
"pluginType": "core",
|
|
766
|
-
"strict": true,
|
|
767
|
-
"isESM": true,
|
|
768
|
-
"relativePath": [
|
|
769
|
-
"dist",
|
|
770
|
-
"commands",
|
|
771
|
-
"storage",
|
|
772
|
-
"update.js"
|
|
773
|
-
]
|
|
774
|
-
},
|
|
775
|
-
"workflows:extend-lease": {
|
|
776
|
-
"aliases": [],
|
|
777
|
-
"args": {
|
|
778
|
-
"orderId": {
|
|
779
|
-
"description": "Order ID",
|
|
780
|
-
"name": "orderId",
|
|
781
|
-
"required": true
|
|
782
|
-
}
|
|
783
|
-
},
|
|
784
|
-
"description": "Replenish deposit for a workflow to extend its lease time",
|
|
785
|
-
"examples": [
|
|
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"
|
|
789
|
-
],
|
|
790
|
-
"flags": {
|
|
791
|
-
"json": {
|
|
792
|
-
"description": "Format output as json.",
|
|
793
|
-
"helpGroup": "GLOBAL",
|
|
794
|
-
"name": "json",
|
|
795
|
-
"allowNo": false,
|
|
796
|
-
"type": "boolean"
|
|
797
888
|
},
|
|
798
|
-
"
|
|
799
|
-
"
|
|
800
|
-
"
|
|
801
|
-
"name": "
|
|
802
|
-
"required": false,
|
|
803
|
-
"summary": "Specify config file.",
|
|
889
|
+
"name": {
|
|
890
|
+
"char": "n",
|
|
891
|
+
"description": "Asset name to update",
|
|
892
|
+
"name": "name",
|
|
804
893
|
"hasDynamicHelp": false,
|
|
805
894
|
"multiple": false,
|
|
806
895
|
"type": "option"
|
|
807
896
|
},
|
|
808
|
-
"
|
|
809
|
-
"
|
|
810
|
-
"name": "
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
"type": "boolean"
|
|
897
|
+
"newName": {
|
|
898
|
+
"description": "New asset name",
|
|
899
|
+
"name": "newName",
|
|
900
|
+
"hasDynamicHelp": false,
|
|
901
|
+
"multiple": false,
|
|
902
|
+
"type": "option"
|
|
815
903
|
},
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"
|
|
904
|
+
"type": {
|
|
905
|
+
"char": "t",
|
|
906
|
+
"description": "New asset type",
|
|
907
|
+
"name": "type",
|
|
819
908
|
"hasDynamicHelp": false,
|
|
820
909
|
"multiple": false,
|
|
910
|
+
"options": [
|
|
911
|
+
"data",
|
|
912
|
+
"image",
|
|
913
|
+
"output"
|
|
914
|
+
],
|
|
821
915
|
"type": "option"
|
|
822
916
|
},
|
|
823
|
-
"
|
|
824
|
-
"
|
|
825
|
-
"
|
|
917
|
+
"sourceType": {
|
|
918
|
+
"char": "s",
|
|
919
|
+
"description": "New source type",
|
|
920
|
+
"name": "sourceType",
|
|
826
921
|
"hasDynamicHelp": false,
|
|
827
922
|
"multiple": false,
|
|
923
|
+
"options": [
|
|
924
|
+
"storj",
|
|
925
|
+
"s3",
|
|
926
|
+
"dockerhub",
|
|
927
|
+
"github",
|
|
928
|
+
"google-docs"
|
|
929
|
+
],
|
|
828
930
|
"type": "option"
|
|
829
931
|
},
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
-
"
|
|
833
|
-
"
|
|
834
|
-
"
|
|
835
|
-
"type": "
|
|
932
|
+
"tag": {
|
|
933
|
+
"description": "New asset tag",
|
|
934
|
+
"name": "tag",
|
|
935
|
+
"hasDynamicHelp": false,
|
|
936
|
+
"multiple": false,
|
|
937
|
+
"type": "option"
|
|
938
|
+
},
|
|
939
|
+
"hash": {
|
|
940
|
+
"description": "New asset hash",
|
|
941
|
+
"name": "hash",
|
|
942
|
+
"hasDynamicHelp": false,
|
|
943
|
+
"multiple": false,
|
|
944
|
+
"type": "option"
|
|
945
|
+
},
|
|
946
|
+
"size": {
|
|
947
|
+
"description": "New asset size in bytes",
|
|
948
|
+
"name": "size",
|
|
949
|
+
"hasDynamicHelp": false,
|
|
950
|
+
"multiple": false,
|
|
951
|
+
"type": "option"
|
|
952
|
+
},
|
|
953
|
+
"storjBucket": {
|
|
954
|
+
"description": "Storj bucket",
|
|
955
|
+
"name": "storjBucket",
|
|
956
|
+
"hasDynamicHelp": false,
|
|
957
|
+
"multiple": false,
|
|
958
|
+
"type": "option"
|
|
959
|
+
},
|
|
960
|
+
"storjPath": {
|
|
961
|
+
"description": "Storj path",
|
|
962
|
+
"name": "storjPath",
|
|
963
|
+
"hasDynamicHelp": false,
|
|
964
|
+
"multiple": false,
|
|
965
|
+
"type": "option"
|
|
966
|
+
},
|
|
967
|
+
"storjToken": {
|
|
968
|
+
"description": "Storj access token",
|
|
969
|
+
"name": "storjToken",
|
|
970
|
+
"hasDynamicHelp": false,
|
|
971
|
+
"multiple": false,
|
|
972
|
+
"type": "option"
|
|
973
|
+
},
|
|
974
|
+
"s3Bucket": {
|
|
975
|
+
"description": "S3 bucket",
|
|
976
|
+
"name": "s3Bucket",
|
|
977
|
+
"hasDynamicHelp": false,
|
|
978
|
+
"multiple": false,
|
|
979
|
+
"type": "option"
|
|
980
|
+
},
|
|
981
|
+
"s3Path": {
|
|
982
|
+
"description": "S3 path",
|
|
983
|
+
"name": "s3Path",
|
|
984
|
+
"hasDynamicHelp": false,
|
|
985
|
+
"multiple": false,
|
|
986
|
+
"type": "option"
|
|
987
|
+
},
|
|
988
|
+
"s3AccessKey": {
|
|
989
|
+
"description": "S3 access key",
|
|
990
|
+
"name": "s3AccessKey",
|
|
991
|
+
"hasDynamicHelp": false,
|
|
992
|
+
"multiple": false,
|
|
993
|
+
"type": "option"
|
|
994
|
+
},
|
|
995
|
+
"s3SecretKey": {
|
|
996
|
+
"description": "S3 secret key",
|
|
997
|
+
"name": "s3SecretKey",
|
|
998
|
+
"hasDynamicHelp": false,
|
|
999
|
+
"multiple": false,
|
|
1000
|
+
"type": "option"
|
|
1001
|
+
},
|
|
1002
|
+
"s3Region": {
|
|
1003
|
+
"description": "S3 region",
|
|
1004
|
+
"name": "s3Region",
|
|
1005
|
+
"hasDynamicHelp": false,
|
|
1006
|
+
"multiple": false,
|
|
1007
|
+
"type": "option"
|
|
1008
|
+
},
|
|
1009
|
+
"s3Endpoint": {
|
|
1010
|
+
"description": "S3 endpoint",
|
|
1011
|
+
"name": "s3Endpoint",
|
|
1012
|
+
"hasDynamicHelp": false,
|
|
1013
|
+
"multiple": false,
|
|
1014
|
+
"type": "option"
|
|
1015
|
+
},
|
|
1016
|
+
"dockerImage": {
|
|
1017
|
+
"description": "Docker image",
|
|
1018
|
+
"name": "dockerImage",
|
|
1019
|
+
"hasDynamicHelp": false,
|
|
1020
|
+
"multiple": false,
|
|
1021
|
+
"type": "option"
|
|
1022
|
+
},
|
|
1023
|
+
"dockerRegistry": {
|
|
1024
|
+
"description": "Docker registry",
|
|
1025
|
+
"name": "dockerRegistry",
|
|
1026
|
+
"hasDynamicHelp": false,
|
|
1027
|
+
"multiple": false,
|
|
1028
|
+
"type": "option"
|
|
1029
|
+
},
|
|
1030
|
+
"dockerUsername": {
|
|
1031
|
+
"description": "Docker username",
|
|
1032
|
+
"name": "dockerUsername",
|
|
1033
|
+
"hasDynamicHelp": false,
|
|
1034
|
+
"multiple": false,
|
|
1035
|
+
"type": "option"
|
|
1036
|
+
},
|
|
1037
|
+
"dockerPassword": {
|
|
1038
|
+
"description": "Docker password",
|
|
1039
|
+
"name": "dockerPassword",
|
|
1040
|
+
"hasDynamicHelp": false,
|
|
1041
|
+
"multiple": false,
|
|
1042
|
+
"type": "option"
|
|
1043
|
+
},
|
|
1044
|
+
"githubRepo": {
|
|
1045
|
+
"description": "GitHub repo (org/repo)",
|
|
1046
|
+
"name": "githubRepo",
|
|
1047
|
+
"hasDynamicHelp": false,
|
|
1048
|
+
"multiple": false,
|
|
1049
|
+
"type": "option"
|
|
1050
|
+
},
|
|
1051
|
+
"githubToken": {
|
|
1052
|
+
"description": "GitHub token",
|
|
1053
|
+
"name": "githubToken",
|
|
1054
|
+
"hasDynamicHelp": false,
|
|
1055
|
+
"multiple": false,
|
|
1056
|
+
"type": "option"
|
|
1057
|
+
},
|
|
1058
|
+
"githubBranch": {
|
|
1059
|
+
"description": "GitHub branch",
|
|
1060
|
+
"name": "githubBranch",
|
|
1061
|
+
"hasDynamicHelp": false,
|
|
1062
|
+
"multiple": false,
|
|
1063
|
+
"type": "option"
|
|
1064
|
+
},
|
|
1065
|
+
"gdocsDocumentId": {
|
|
1066
|
+
"description": "Google Docs document ID",
|
|
1067
|
+
"name": "gdocsDocumentId",
|
|
1068
|
+
"hasDynamicHelp": false,
|
|
1069
|
+
"multiple": false,
|
|
1070
|
+
"type": "option"
|
|
1071
|
+
},
|
|
1072
|
+
"gdocsApiKey": {
|
|
1073
|
+
"description": "Google Docs API key",
|
|
1074
|
+
"name": "gdocsApiKey",
|
|
1075
|
+
"hasDynamicHelp": false,
|
|
1076
|
+
"multiple": false,
|
|
1077
|
+
"type": "option"
|
|
1078
|
+
},
|
|
1079
|
+
"gdocsServiceAccountJson": {
|
|
1080
|
+
"description": "Google Docs service account JSON",
|
|
1081
|
+
"name": "gdocsServiceAccountJson",
|
|
1082
|
+
"hasDynamicHelp": false,
|
|
1083
|
+
"multiple": false,
|
|
1084
|
+
"type": "option"
|
|
836
1085
|
}
|
|
837
1086
|
},
|
|
838
1087
|
"hasDynamicHelp": false,
|
|
839
1088
|
"hiddenAliases": [],
|
|
840
|
-
"id": "
|
|
1089
|
+
"id": "assets:update",
|
|
841
1090
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
842
1091
|
"pluginName": "@super-protocol/sp-cli",
|
|
843
1092
|
"pluginType": "core",
|
|
844
1093
|
"strict": true,
|
|
1094
|
+
"summary": "Asset management",
|
|
845
1095
|
"enableJsonFlag": true,
|
|
846
|
-
"authenticate":
|
|
1096
|
+
"authenticate": false,
|
|
847
1097
|
"isESM": true,
|
|
848
1098
|
"relativePath": [
|
|
849
1099
|
"dist",
|
|
850
1100
|
"commands",
|
|
851
|
-
"
|
|
852
|
-
"
|
|
1101
|
+
"assets",
|
|
1102
|
+
"update.js"
|
|
853
1103
|
]
|
|
854
1104
|
}
|
|
855
1105
|
},
|
|
856
|
-
"version": "0.0.
|
|
1106
|
+
"version": "0.0.10-beta"
|
|
857
1107
|
}
|