@super-protocol/sp-cli 0.0.8 → 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 +200 -167
- package/dist/commands/account/base.d.ts +3 -4
- package/dist/commands/account/base.js +12 -9
- package/dist/commands/account/forget.d.ts +1 -1
- package/dist/commands/account/forget.js +66 -17
- package/dist/commands/account/get-sppi.js +7 -11
- package/dist/commands/account/info.d.ts +1 -13
- package/dist/commands/account/info.js +25 -45
- package/dist/commands/account/list.js +6 -6
- package/dist/commands/account/login.d.ts +10 -3
- package/dist/commands/account/login.js +143 -87
- package/dist/commands/account/switch.d.ts +3 -0
- package/dist/commands/account/switch.js +31 -11
- 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 +6 -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 +5 -9
- 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 +24 -17
- package/dist/managers/config-file-manager.js +285 -161
- 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/dist/utils/progress.js +1 -0
- package/dist/utils/prompt.service.d.ts +8 -1
- package/dist/utils/prompt.service.js +33 -1
- package/oclif.manifest.json +479 -215
- 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
|
@@ -37,16 +37,15 @@
|
|
|
37
37
|
},
|
|
38
38
|
"force": {
|
|
39
39
|
"char": "f",
|
|
40
|
-
"description": "Force
|
|
40
|
+
"description": "Force forget without confirmation",
|
|
41
41
|
"name": "force",
|
|
42
42
|
"allowNo": false,
|
|
43
43
|
"type": "boolean"
|
|
44
44
|
},
|
|
45
45
|
"name": {
|
|
46
46
|
"char": "n",
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "Account name to forget",
|
|
48
48
|
"name": "name",
|
|
49
|
-
"required": true,
|
|
50
49
|
"hasDynamicHelp": false,
|
|
51
50
|
"multiple": false,
|
|
52
51
|
"type": "option"
|
|
@@ -59,6 +58,8 @@
|
|
|
59
58
|
"pluginName": "@super-protocol/sp-cli",
|
|
60
59
|
"pluginType": "core",
|
|
61
60
|
"strict": true,
|
|
61
|
+
"summary": "Account management",
|
|
62
|
+
"enableJsonFlag": true,
|
|
62
63
|
"authenticate": false,
|
|
63
64
|
"isESM": true,
|
|
64
65
|
"relativePath": [
|
|
@@ -109,6 +110,9 @@
|
|
|
109
110
|
"pluginName": "@super-protocol/sp-cli",
|
|
110
111
|
"pluginType": "core",
|
|
111
112
|
"strict": true,
|
|
113
|
+
"summary": "Account management",
|
|
114
|
+
"enableJsonFlag": true,
|
|
115
|
+
"authenticate": true,
|
|
112
116
|
"isESM": true,
|
|
113
117
|
"relativePath": [
|
|
114
118
|
"dist",
|
|
@@ -161,6 +165,9 @@
|
|
|
161
165
|
"pluginName": "@super-protocol/sp-cli",
|
|
162
166
|
"pluginType": "core",
|
|
163
167
|
"strict": true,
|
|
168
|
+
"summary": "Account management",
|
|
169
|
+
"enableJsonFlag": true,
|
|
170
|
+
"authenticate": true,
|
|
164
171
|
"isESM": true,
|
|
165
172
|
"relativePath": [
|
|
166
173
|
"dist",
|
|
@@ -269,14 +276,29 @@
|
|
|
269
276
|
"multiple": false,
|
|
270
277
|
"type": "option"
|
|
271
278
|
},
|
|
279
|
+
"path": {
|
|
280
|
+
"description": "Path to account(configuration) file to import",
|
|
281
|
+
"name": "path",
|
|
282
|
+
"hasDynamicHelp": false,
|
|
283
|
+
"multiple": false,
|
|
284
|
+
"type": "option"
|
|
285
|
+
},
|
|
272
286
|
"url": {
|
|
273
|
-
"description": "
|
|
287
|
+
"description": "Swarm Api URL",
|
|
274
288
|
"hidden": true,
|
|
275
289
|
"name": "url",
|
|
276
290
|
"hasDynamicHelp": false,
|
|
277
291
|
"multiple": false,
|
|
278
292
|
"type": "option"
|
|
279
293
|
},
|
|
294
|
+
"authUrl": {
|
|
295
|
+
"description": "Auth URL",
|
|
296
|
+
"hidden": true,
|
|
297
|
+
"name": "authUrl",
|
|
298
|
+
"hasDynamicHelp": false,
|
|
299
|
+
"multiple": false,
|
|
300
|
+
"type": "option"
|
|
301
|
+
},
|
|
280
302
|
"yes": {
|
|
281
303
|
"char": "y",
|
|
282
304
|
"description": "Skip questions (generate keys when needed).",
|
|
@@ -292,6 +314,8 @@
|
|
|
292
314
|
"pluginName": "@super-protocol/sp-cli",
|
|
293
315
|
"pluginType": "core",
|
|
294
316
|
"strict": true,
|
|
317
|
+
"summary": "Login and account creation for SuperProtocol",
|
|
318
|
+
"enableJsonFlag": true,
|
|
295
319
|
"authenticate": false,
|
|
296
320
|
"isESM": true,
|
|
297
321
|
"relativePath": [
|
|
@@ -333,6 +357,14 @@
|
|
|
333
357
|
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
334
358
|
"allowNo": true,
|
|
335
359
|
"type": "boolean"
|
|
360
|
+
},
|
|
361
|
+
"name": {
|
|
362
|
+
"char": "n",
|
|
363
|
+
"description": "Account name to switch",
|
|
364
|
+
"name": "name",
|
|
365
|
+
"hasDynamicHelp": false,
|
|
366
|
+
"multiple": false,
|
|
367
|
+
"type": "option"
|
|
336
368
|
}
|
|
337
369
|
},
|
|
338
370
|
"hasDynamicHelp": false,
|
|
@@ -342,6 +374,8 @@
|
|
|
342
374
|
"pluginName": "@super-protocol/sp-cli",
|
|
343
375
|
"pluginType": "core",
|
|
344
376
|
"strict": true,
|
|
377
|
+
"summary": "Account management",
|
|
378
|
+
"enableJsonFlag": true,
|
|
345
379
|
"authenticate": false,
|
|
346
380
|
"isESM": true,
|
|
347
381
|
"relativePath": [
|
|
@@ -351,23 +385,14 @@
|
|
|
351
385
|
"switch.js"
|
|
352
386
|
]
|
|
353
387
|
},
|
|
354
|
-
"
|
|
388
|
+
"assets:create": {
|
|
355
389
|
"aliases": [],
|
|
356
|
-
"args": {
|
|
357
|
-
|
|
358
|
-
"description": "Path to a resource file",
|
|
359
|
-
"name": "resourceFile",
|
|
360
|
-
"required": true
|
|
361
|
-
},
|
|
362
|
-
"localDirectory": {
|
|
363
|
-
"description": "Path to save downloaded file",
|
|
364
|
-
"name": "localDirectory",
|
|
365
|
-
"required": true
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
"description": "Download file or directory described in resource file",
|
|
390
|
+
"args": {},
|
|
391
|
+
"description": "Create a new asset.",
|
|
369
392
|
"examples": [
|
|
370
|
-
"<%= 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"
|
|
371
396
|
],
|
|
372
397
|
"flags": {
|
|
373
398
|
"json": {
|
|
@@ -395,145 +420,230 @@
|
|
|
395
420
|
"allowNo": true,
|
|
396
421
|
"type": "boolean"
|
|
397
422
|
},
|
|
398
|
-
"
|
|
399
|
-
"
|
|
400
|
-
"
|
|
401
|
-
"
|
|
423
|
+
"fromFile": {
|
|
424
|
+
"char": "f",
|
|
425
|
+
"description": "Path to a JSON file that contains asset definition.",
|
|
426
|
+
"name": "fromFile",
|
|
402
427
|
"hasDynamicHelp": false,
|
|
403
428
|
"multiple": false,
|
|
404
429
|
"type": "option"
|
|
405
|
-
}
|
|
406
|
-
},
|
|
407
|
-
"hasDynamicHelp": false,
|
|
408
|
-
"hiddenAliases": [],
|
|
409
|
-
"id": "files:download",
|
|
410
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
411
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
412
|
-
"pluginType": "core",
|
|
413
|
-
"strict": true,
|
|
414
|
-
"enableJsonFlag": true,
|
|
415
|
-
"authenticate": true,
|
|
416
|
-
"help": "Download and decrypt a file from the remote storage to <localPath> using resource file <resourcePath>",
|
|
417
|
-
"isESM": true,
|
|
418
|
-
"relativePath": [
|
|
419
|
-
"dist",
|
|
420
|
-
"commands",
|
|
421
|
-
"files",
|
|
422
|
-
"download.js"
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
"files:upload": {
|
|
426
|
-
"aliases": [],
|
|
427
|
-
"args": {
|
|
428
|
-
"path": {
|
|
429
|
-
"description": "file or directory to upload",
|
|
430
|
-
"name": "path",
|
|
431
|
-
"required": true
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
"description": "Upload file or directory to remote storage",
|
|
435
|
-
"examples": [
|
|
436
|
-
"<%= config.bin %> <%= command.id %> ./file.txt"
|
|
437
|
-
],
|
|
438
|
-
"flags": {
|
|
439
|
-
"json": {
|
|
440
|
-
"description": "Format output as json.",
|
|
441
|
-
"helpGroup": "GLOBAL",
|
|
442
|
-
"name": "json",
|
|
443
|
-
"allowNo": false,
|
|
444
|
-
"type": "boolean"
|
|
445
430
|
},
|
|
446
|
-
"
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
"name": "
|
|
450
|
-
"required": false,
|
|
451
|
-
"summary": "Specify config file.",
|
|
431
|
+
"name": {
|
|
432
|
+
"char": "n",
|
|
433
|
+
"description": "Asset name",
|
|
434
|
+
"name": "name",
|
|
452
435
|
"hasDynamicHelp": false,
|
|
453
436
|
"multiple": false,
|
|
454
437
|
"type": "option"
|
|
455
438
|
},
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
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"
|
|
463
451
|
},
|
|
464
|
-
"
|
|
465
|
-
"
|
|
466
|
-
"
|
|
467
|
-
"
|
|
452
|
+
"sourceType": {
|
|
453
|
+
"char": "s",
|
|
454
|
+
"description": "Source type",
|
|
455
|
+
"name": "sourceType",
|
|
468
456
|
"hasDynamicHelp": false,
|
|
469
457
|
"multiple": false,
|
|
458
|
+
"options": [
|
|
459
|
+
"storj",
|
|
460
|
+
"s3",
|
|
461
|
+
"dockerhub",
|
|
462
|
+
"github",
|
|
463
|
+
"google-docs"
|
|
464
|
+
],
|
|
470
465
|
"type": "option"
|
|
471
466
|
},
|
|
472
|
-
"
|
|
473
|
-
"description": "
|
|
474
|
-
"name": "
|
|
475
|
-
"default": 1,
|
|
467
|
+
"tag": {
|
|
468
|
+
"description": "Asset tag",
|
|
469
|
+
"name": "tag",
|
|
476
470
|
"hasDynamicHelp": false,
|
|
477
471
|
"multiple": false,
|
|
478
472
|
"type": "option"
|
|
479
473
|
},
|
|
480
|
-
"
|
|
481
|
-
"description": "
|
|
482
|
-
"name": "
|
|
483
|
-
"required": false,
|
|
474
|
+
"hash": {
|
|
475
|
+
"description": "Asset hash",
|
|
476
|
+
"name": "hash",
|
|
484
477
|
"hasDynamicHelp": false,
|
|
485
478
|
"multiple": false,
|
|
486
479
|
"type": "option"
|
|
487
480
|
},
|
|
488
|
-
"
|
|
489
|
-
"description": "
|
|
490
|
-
"name": "
|
|
491
|
-
"required": false,
|
|
492
|
-
"default": "resource.json",
|
|
481
|
+
"size": {
|
|
482
|
+
"description": "Asset size in bytes",
|
|
483
|
+
"name": "size",
|
|
493
484
|
"hasDynamicHelp": false,
|
|
494
485
|
"multiple": false,
|
|
495
486
|
"type": "option"
|
|
496
487
|
},
|
|
497
|
-
"
|
|
498
|
-
"description": "
|
|
499
|
-
"name": "
|
|
500
|
-
"
|
|
501
|
-
"
|
|
502
|
-
"type": "
|
|
488
|
+
"storjBucket": {
|
|
489
|
+
"description": "Storj bucket",
|
|
490
|
+
"name": "storjBucket",
|
|
491
|
+
"hasDynamicHelp": false,
|
|
492
|
+
"multiple": false,
|
|
493
|
+
"type": "option"
|
|
503
494
|
},
|
|
504
|
-
"
|
|
505
|
-
"description": "
|
|
506
|
-
"name": "
|
|
507
|
-
"
|
|
508
|
-
"
|
|
509
|
-
"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"
|
|
510
620
|
}
|
|
511
621
|
},
|
|
512
622
|
"hasDynamicHelp": false,
|
|
513
623
|
"hiddenAliases": [],
|
|
514
|
-
"id": "
|
|
624
|
+
"id": "assets:create",
|
|
515
625
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
516
626
|
"pluginName": "@super-protocol/sp-cli",
|
|
517
627
|
"pluginType": "core",
|
|
518
628
|
"strict": true,
|
|
629
|
+
"summary": "Asset management",
|
|
519
630
|
"enableJsonFlag": true,
|
|
520
|
-
"authenticate":
|
|
631
|
+
"authenticate": false,
|
|
521
632
|
"isESM": true,
|
|
522
633
|
"relativePath": [
|
|
523
634
|
"dist",
|
|
524
635
|
"commands",
|
|
525
|
-
"
|
|
526
|
-
"
|
|
636
|
+
"assets",
|
|
637
|
+
"create.js"
|
|
527
638
|
]
|
|
528
639
|
},
|
|
529
|
-
"
|
|
640
|
+
"assets:delete": {
|
|
530
641
|
"aliases": [],
|
|
531
642
|
"args": {},
|
|
532
|
-
"description": "
|
|
643
|
+
"description": "Delete an asset.",
|
|
533
644
|
"examples": [
|
|
534
|
-
"<%= config.bin %>
|
|
535
|
-
"<%= config.bin %>
|
|
536
|
-
"<%= 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"
|
|
537
647
|
],
|
|
538
648
|
"flags": {
|
|
539
649
|
"json": {
|
|
@@ -561,45 +671,55 @@
|
|
|
561
671
|
"allowNo": true,
|
|
562
672
|
"type": "boolean"
|
|
563
673
|
},
|
|
564
|
-
"
|
|
565
|
-
"aliases": [
|
|
566
|
-
"fromFile"
|
|
567
|
-
],
|
|
674
|
+
"force": {
|
|
568
675
|
"char": "f",
|
|
569
|
-
"description": "
|
|
570
|
-
"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",
|
|
571
685
|
"hasDynamicHelp": false,
|
|
572
686
|
"multiple": false,
|
|
573
687
|
"type": "option"
|
|
574
688
|
},
|
|
575
|
-
"
|
|
576
|
-
"
|
|
577
|
-
"
|
|
578
|
-
"
|
|
579
|
-
"
|
|
689
|
+
"name": {
|
|
690
|
+
"char": "n",
|
|
691
|
+
"description": "Asset name to delete",
|
|
692
|
+
"name": "name",
|
|
693
|
+
"hasDynamicHelp": false,
|
|
694
|
+
"multiple": false,
|
|
695
|
+
"type": "option"
|
|
580
696
|
}
|
|
581
697
|
},
|
|
582
698
|
"hasDynamicHelp": false,
|
|
583
699
|
"hiddenAliases": [],
|
|
584
|
-
"id": "
|
|
700
|
+
"id": "assets:delete",
|
|
585
701
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
586
702
|
"pluginName": "@super-protocol/sp-cli",
|
|
587
703
|
"pluginType": "core",
|
|
588
704
|
"strict": true,
|
|
705
|
+
"summary": "Asset management",
|
|
706
|
+
"enableJsonFlag": true,
|
|
707
|
+
"authenticate": false,
|
|
589
708
|
"isESM": true,
|
|
590
709
|
"relativePath": [
|
|
591
710
|
"dist",
|
|
592
711
|
"commands",
|
|
593
|
-
"
|
|
594
|
-
"
|
|
712
|
+
"assets",
|
|
713
|
+
"delete.js"
|
|
595
714
|
]
|
|
596
715
|
},
|
|
597
|
-
"
|
|
716
|
+
"assets:get": {
|
|
598
717
|
"aliases": [],
|
|
599
718
|
"args": {},
|
|
600
|
-
"description": "
|
|
719
|
+
"description": "Get information about an asset.",
|
|
601
720
|
"examples": [
|
|
602
|
-
"<%= config.bin %>
|
|
721
|
+
"<%= config.bin %> assets get --id 11111111-1111-1111-1111-111111111111",
|
|
722
|
+
"<%= config.bin %> assets get --name \"dataset-v1\""
|
|
603
723
|
],
|
|
604
724
|
"flags": {
|
|
605
725
|
"json": {
|
|
@@ -626,29 +746,48 @@
|
|
|
626
746
|
"summary": "Force or disable interactive mode (use --no-tty to disable).",
|
|
627
747
|
"allowNo": true,
|
|
628
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"
|
|
629
765
|
}
|
|
630
766
|
},
|
|
631
767
|
"hasDynamicHelp": false,
|
|
632
768
|
"hiddenAliases": [],
|
|
633
|
-
"id": "
|
|
769
|
+
"id": "assets:get",
|
|
634
770
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
635
771
|
"pluginName": "@super-protocol/sp-cli",
|
|
636
772
|
"pluginType": "core",
|
|
637
773
|
"strict": true,
|
|
774
|
+
"summary": "Asset management",
|
|
775
|
+
"enableJsonFlag": true,
|
|
776
|
+
"authenticate": false,
|
|
638
777
|
"isESM": true,
|
|
639
778
|
"relativePath": [
|
|
640
779
|
"dist",
|
|
641
780
|
"commands",
|
|
642
|
-
"
|
|
643
|
-
"
|
|
781
|
+
"assets",
|
|
782
|
+
"get.js"
|
|
644
783
|
]
|
|
645
784
|
},
|
|
646
|
-
"
|
|
785
|
+
"assets:list": {
|
|
647
786
|
"aliases": [],
|
|
648
787
|
"args": {},
|
|
649
|
-
"description": "
|
|
788
|
+
"description": "List assets for the current user.",
|
|
650
789
|
"examples": [
|
|
651
|
-
"<%= config.bin %>
|
|
790
|
+
"<%= config.bin %> assets list"
|
|
652
791
|
],
|
|
653
792
|
"flags": {
|
|
654
793
|
"json": {
|
|
@@ -679,26 +818,31 @@
|
|
|
679
818
|
},
|
|
680
819
|
"hasDynamicHelp": false,
|
|
681
820
|
"hiddenAliases": [],
|
|
682
|
-
"id": "
|
|
821
|
+
"id": "assets:list",
|
|
683
822
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
684
823
|
"pluginName": "@super-protocol/sp-cli",
|
|
685
824
|
"pluginType": "core",
|
|
686
825
|
"strict": true,
|
|
826
|
+
"summary": "Asset management",
|
|
827
|
+
"enableJsonFlag": true,
|
|
828
|
+
"authenticate": false,
|
|
687
829
|
"isESM": true,
|
|
688
830
|
"relativePath": [
|
|
689
831
|
"dist",
|
|
690
832
|
"commands",
|
|
691
|
-
"
|
|
692
|
-
"
|
|
833
|
+
"assets",
|
|
834
|
+
"list.js"
|
|
693
835
|
]
|
|
694
836
|
},
|
|
695
|
-
"
|
|
837
|
+
"assets:update": {
|
|
696
838
|
"aliases": [],
|
|
697
839
|
"args": {},
|
|
698
|
-
"description": "Update
|
|
840
|
+
"description": "Update an existing asset.",
|
|
699
841
|
"examples": [
|
|
700
|
-
"<%= config.bin %>
|
|
701
|
-
"<%= 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"
|
|
702
846
|
],
|
|
703
847
|
"flags": {
|
|
704
848
|
"json": {
|
|
@@ -728,7 +872,7 @@
|
|
|
728
872
|
},
|
|
729
873
|
"fromFile": {
|
|
730
874
|
"char": "f",
|
|
731
|
-
"description": "Path to a JSON file that contains
|
|
875
|
+
"description": "Path to a JSON file that contains asset update definition.",
|
|
732
876
|
"name": "fromFile",
|
|
733
877
|
"hasDynamicHelp": false,
|
|
734
878
|
"multiple": false,
|
|
@@ -736,108 +880,228 @@
|
|
|
736
880
|
},
|
|
737
881
|
"id": {
|
|
738
882
|
"char": "i",
|
|
739
|
-
"description": "
|
|
883
|
+
"description": "Asset ID to update",
|
|
740
884
|
"name": "id",
|
|
741
885
|
"hasDynamicHelp": false,
|
|
742
886
|
"multiple": false,
|
|
743
887
|
"type": "option"
|
|
744
|
-
}
|
|
745
|
-
},
|
|
746
|
-
"hasDynamicHelp": false,
|
|
747
|
-
"hiddenAliases": [],
|
|
748
|
-
"id": "storage:update",
|
|
749
|
-
"pluginAlias": "@super-protocol/sp-cli",
|
|
750
|
-
"pluginName": "@super-protocol/sp-cli",
|
|
751
|
-
"pluginType": "core",
|
|
752
|
-
"strict": true,
|
|
753
|
-
"isESM": true,
|
|
754
|
-
"relativePath": [
|
|
755
|
-
"dist",
|
|
756
|
-
"commands",
|
|
757
|
-
"storage",
|
|
758
|
-
"update.js"
|
|
759
|
-
]
|
|
760
|
-
},
|
|
761
|
-
"workflows:extend-lease": {
|
|
762
|
-
"aliases": [],
|
|
763
|
-
"args": {
|
|
764
|
-
"orderId": {
|
|
765
|
-
"description": "Order ID",
|
|
766
|
-
"name": "orderId",
|
|
767
|
-
"required": true
|
|
768
|
-
}
|
|
769
|
-
},
|
|
770
|
-
"description": "Replenish deposit for a workflow to extend its lease time",
|
|
771
|
-
"examples": [
|
|
772
|
-
"<%= config.bin %> <%= command.id %> <orderId> --sppi 1.5",
|
|
773
|
-
"<%= config.bin %> <%= command.id %> <orderId> --minutes 120",
|
|
774
|
-
"<%= config.bin %> <%= command.id %> <orderId> --sppi 2 --yes"
|
|
775
|
-
],
|
|
776
|
-
"flags": {
|
|
777
|
-
"json": {
|
|
778
|
-
"description": "Format output as json.",
|
|
779
|
-
"helpGroup": "GLOBAL",
|
|
780
|
-
"name": "json",
|
|
781
|
-
"allowNo": false,
|
|
782
|
-
"type": "boolean"
|
|
783
888
|
},
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"name": "
|
|
788
|
-
"required": false,
|
|
789
|
-
"summary": "Specify config file.",
|
|
889
|
+
"name": {
|
|
890
|
+
"char": "n",
|
|
891
|
+
"description": "Asset name to update",
|
|
892
|
+
"name": "name",
|
|
790
893
|
"hasDynamicHelp": false,
|
|
791
894
|
"multiple": false,
|
|
792
895
|
"type": "option"
|
|
793
896
|
},
|
|
794
|
-
"
|
|
795
|
-
"
|
|
796
|
-
"name": "
|
|
797
|
-
"
|
|
798
|
-
"
|
|
799
|
-
"
|
|
800
|
-
"type": "boolean"
|
|
897
|
+
"newName": {
|
|
898
|
+
"description": "New asset name",
|
|
899
|
+
"name": "newName",
|
|
900
|
+
"hasDynamicHelp": false,
|
|
901
|
+
"multiple": false,
|
|
902
|
+
"type": "option"
|
|
801
903
|
},
|
|
802
|
-
"
|
|
803
|
-
"
|
|
804
|
-
"
|
|
904
|
+
"type": {
|
|
905
|
+
"char": "t",
|
|
906
|
+
"description": "New asset type",
|
|
907
|
+
"name": "type",
|
|
805
908
|
"hasDynamicHelp": false,
|
|
806
909
|
"multiple": false,
|
|
910
|
+
"options": [
|
|
911
|
+
"data",
|
|
912
|
+
"image",
|
|
913
|
+
"output"
|
|
914
|
+
],
|
|
807
915
|
"type": "option"
|
|
808
916
|
},
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
917
|
+
"sourceType": {
|
|
918
|
+
"char": "s",
|
|
919
|
+
"description": "New source type",
|
|
920
|
+
"name": "sourceType",
|
|
812
921
|
"hasDynamicHelp": false,
|
|
813
922
|
"multiple": false,
|
|
923
|
+
"options": [
|
|
924
|
+
"storj",
|
|
925
|
+
"s3",
|
|
926
|
+
"dockerhub",
|
|
927
|
+
"github",
|
|
928
|
+
"google-docs"
|
|
929
|
+
],
|
|
814
930
|
"type": "option"
|
|
815
931
|
},
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"
|
|
819
|
-
"
|
|
820
|
-
"
|
|
821
|
-
"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"
|
|
822
1085
|
}
|
|
823
1086
|
},
|
|
824
1087
|
"hasDynamicHelp": false,
|
|
825
1088
|
"hiddenAliases": [],
|
|
826
|
-
"id": "
|
|
1089
|
+
"id": "assets:update",
|
|
827
1090
|
"pluginAlias": "@super-protocol/sp-cli",
|
|
828
1091
|
"pluginName": "@super-protocol/sp-cli",
|
|
829
1092
|
"pluginType": "core",
|
|
830
1093
|
"strict": true,
|
|
1094
|
+
"summary": "Asset management",
|
|
831
1095
|
"enableJsonFlag": true,
|
|
832
|
-
"authenticate":
|
|
1096
|
+
"authenticate": false,
|
|
833
1097
|
"isESM": true,
|
|
834
1098
|
"relativePath": [
|
|
835
1099
|
"dist",
|
|
836
1100
|
"commands",
|
|
837
|
-
"
|
|
838
|
-
"
|
|
1101
|
+
"assets",
|
|
1102
|
+
"update.js"
|
|
839
1103
|
]
|
|
840
1104
|
}
|
|
841
1105
|
},
|
|
842
|
-
"version": "0.0.
|
|
1106
|
+
"version": "0.0.10-beta"
|
|
843
1107
|
}
|