pontus-x_cli 0.0.7 → 1.0.1

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.
Files changed (105) hide show
  1. package/README.md +559 -157
  2. package/bin/dev.js +7 -0
  3. package/bin/run.js +8 -0
  4. package/dist/commands/access.d.ts +9 -0
  5. package/dist/commands/access.js +23 -0
  6. package/dist/commands/access.js.map +1 -0
  7. package/dist/commands/change-price.d.ts +13 -0
  8. package/dist/commands/change-price.js +49 -0
  9. package/dist/commands/change-price.js.map +1 -0
  10. package/dist/commands/check-participant-compliance.d.ts +10 -0
  11. package/dist/commands/check-participant-compliance.js +54 -0
  12. package/dist/commands/check-participant-compliance.js.map +1 -0
  13. package/dist/commands/compute-results.d.ts +12 -0
  14. package/dist/commands/compute-results.js +40 -0
  15. package/dist/commands/compute-results.js.map +1 -0
  16. package/dist/commands/compute-status.d.ts +12 -0
  17. package/dist/commands/compute-status.js +40 -0
  18. package/dist/commands/compute-status.js.map +1 -0
  19. package/dist/commands/compute.d.ts +14 -0
  20. package/dist/commands/compute.js +66 -0
  21. package/dist/commands/compute.js.map +1 -0
  22. package/dist/commands/edit-algo.d.ts +16 -0
  23. package/dist/commands/edit-algo.js +51 -0
  24. package/dist/commands/edit-algo.js.map +1 -0
  25. package/dist/commands/edit-asset-url.d.ts +13 -0
  26. package/dist/commands/edit-asset-url.js +55 -0
  27. package/dist/commands/edit-asset-url.js.map +1 -0
  28. package/dist/commands/edit-trusted-algos.d.ts +13 -0
  29. package/dist/commands/edit-trusted-algos.js +54 -0
  30. package/dist/commands/edit-trusted-algos.js.map +1 -0
  31. package/dist/commands/export-private-key.d.ts +11 -0
  32. package/dist/commands/export-private-key.js +67 -0
  33. package/dist/commands/export-private-key.js.map +1 -0
  34. package/dist/commands/generate-asset-credentials.d.ts +15 -0
  35. package/dist/commands/generate-asset-credentials.js +59 -0
  36. package/dist/commands/generate-asset-credentials.js.map +1 -0
  37. package/dist/commands/generate-did-web.d.ts +10 -0
  38. package/dist/commands/generate-did-web.js +39 -0
  39. package/dist/commands/generate-did-web.js.map +1 -0
  40. package/dist/commands/generate-participant-credentials.d.ts +12 -0
  41. package/dist/commands/generate-participant-credentials.js +51 -0
  42. package/dist/commands/generate-participant-credentials.js.map +1 -0
  43. package/dist/commands/get.d.ts +9 -0
  44. package/dist/commands/get.js +23 -0
  45. package/dist/commands/get.js.map +1 -0
  46. package/dist/commands/login.d.ts +14 -0
  47. package/dist/commands/login.js +51 -0
  48. package/dist/commands/login.js.map +1 -0
  49. package/dist/commands/logout.d.ts +6 -0
  50. package/dist/commands/logout.js +24 -0
  51. package/dist/commands/logout.js.map +1 -0
  52. package/dist/commands/publish.d.ts +15 -0
  53. package/dist/commands/publish.js +107 -0
  54. package/dist/commands/publish.js.map +1 -0
  55. package/dist/commands/revoke.d.ts +12 -0
  56. package/dist/commands/revoke.js +50 -0
  57. package/dist/commands/revoke.js.map +1 -0
  58. package/dist/commands/self-description.d.ts +13 -0
  59. package/dist/commands/self-description.js +53 -0
  60. package/dist/commands/self-description.js.map +1 -0
  61. package/dist/config.d.ts +48 -0
  62. package/dist/config.js +106 -117
  63. package/dist/config.js.map +1 -1
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.js +3 -444
  66. package/dist/index.js.map +1 -1
  67. package/dist/lib/gaia-x_compliance/generate-credentials/index.d.ts +1 -0
  68. package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/index.js +55 -105
  69. package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -0
  70. package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/participant.hbs +5 -1
  71. package/dist/lib/publishFromFile.d.ts +2 -0
  72. package/dist/lib/publishFromFile.js +143 -0
  73. package/dist/lib/publishFromFile.js.map +1 -0
  74. package/dist/types/schema.d.ts +2 -0
  75. package/dist/types/schema.js +8 -0
  76. package/dist/types/schema.js.map +1 -0
  77. package/dist/types/schema.json +474 -0
  78. package/dist/utils/connection.d.ts +13 -0
  79. package/dist/utils/connection.js +11 -19
  80. package/dist/utils/connection.js.map +1 -1
  81. package/oclif.manifest.json +830 -0
  82. package/package.json +72 -40
  83. package/dist/aquarius-query/index.js +0 -30
  84. package/dist/aquarius-query/index.js.map +0 -1
  85. package/dist/export-key-as-json/index.js +0 -27
  86. package/dist/export-key-as-json/index.js.map +0 -1
  87. package/dist/gaia-x_compliance/generate-credentials/index.js.map +0 -1
  88. package/dist/gaia-x_compliance/generate-did-web/index.js +0 -14
  89. package/dist/gaia-x_compliance/generate-did-web/index.js.map +0 -1
  90. package/dist/publish/samples/algo/index.js +0 -62
  91. package/dist/publish/samples/algo/index.js.map +0 -1
  92. package/dist/publish/samples/basic-predictor/index.js +0 -83
  93. package/dist/publish/samples/basic-predictor/index.js.map +0 -1
  94. package/dist/publish/samples/data/index.js +0 -55
  95. package/dist/publish/samples/data/index.js.map +0 -1
  96. package/dist/utils/index.js +0 -20
  97. package/dist/utils/index.js.map +0 -1
  98. package/dist/utils/package-version.js +0 -22
  99. package/dist/utils/package-version.js.map +0 -1
  100. package/dist/utils/publish-script-runner.js +0 -60
  101. package/dist/utils/publish-script-runner.js.map +0 -1
  102. /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/dataset.hbs +0 -0
  103. /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/lrn-request.hbs +0 -0
  104. /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/service.hbs +0 -0
  105. /package/dist/{gaia-x_compliance → lib/gaia-x_compliance}/generate-credentials/templates/tandc.hbs +0 -0
@@ -0,0 +1,830 @@
1
+ {
2
+ "commands": {
3
+ "access": {
4
+ "aliases": [],
5
+ "args": {
6
+ "did": {
7
+ "description": "DID of the asset",
8
+ "name": "did",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Access an asset that can be downloaded given its DID",
13
+ "examples": [
14
+ "<%= config.bin %> <%= command.id %> did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686"
15
+ ],
16
+ "flags": {},
17
+ "hasDynamicHelp": false,
18
+ "hiddenAliases": [],
19
+ "id": "access",
20
+ "pluginAlias": "pontus-x_cli",
21
+ "pluginName": "pontus-x_cli",
22
+ "pluginType": "core",
23
+ "strict": true,
24
+ "enableJsonFlag": false,
25
+ "isESM": false,
26
+ "relativePath": [
27
+ "dist",
28
+ "commands",
29
+ "access.js"
30
+ ]
31
+ },
32
+ "change-price": {
33
+ "aliases": [],
34
+ "args": {
35
+ "did": {
36
+ "description": "DID of the asset",
37
+ "name": "did",
38
+ "required": true
39
+ },
40
+ "newPrice": {
41
+ "description": "New price for the asset",
42
+ "name": "newPrice",
43
+ "required": true
44
+ }
45
+ },
46
+ "description": "Change the price keeping the existing currency for an asset with the given DID",
47
+ "examples": [
48
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a 10"
49
+ ],
50
+ "flags": {
51
+ "yes": {
52
+ "char": "y",
53
+ "description": "Automatic yes to prompts",
54
+ "name": "yes",
55
+ "required": false,
56
+ "allowNo": false,
57
+ "type": "boolean"
58
+ }
59
+ },
60
+ "hasDynamicHelp": false,
61
+ "hiddenAliases": [],
62
+ "id": "change-price",
63
+ "pluginAlias": "pontus-x_cli",
64
+ "pluginName": "pontus-x_cli",
65
+ "pluginType": "core",
66
+ "strict": true,
67
+ "enableJsonFlag": false,
68
+ "isESM": false,
69
+ "relativePath": [
70
+ "dist",
71
+ "commands",
72
+ "change-price.js"
73
+ ]
74
+ },
75
+ "check-participant-compliance": {
76
+ "aliases": [],
77
+ "args": {},
78
+ "description": "Use Gaia-X Compliance to check a participant Verifiable Presentation",
79
+ "examples": [
80
+ "<%= config.bin %> <%= command.id %> -p ./CEP.data.json --vp ./CEP.vp.json"
81
+ ],
82
+ "flags": {
83
+ "participant": {
84
+ "char": "p",
85
+ "description": "Path to the JSON file including the required participant data",
86
+ "name": "participant",
87
+ "required": true,
88
+ "hasDynamicHelp": false,
89
+ "multiple": false,
90
+ "type": "option"
91
+ },
92
+ "vp": {
93
+ "description": "Path to the participant Verifiable Presentation file",
94
+ "name": "vp",
95
+ "required": true,
96
+ "hasDynamicHelp": false,
97
+ "multiple": false,
98
+ "type": "option"
99
+ }
100
+ },
101
+ "hasDynamicHelp": false,
102
+ "hiddenAliases": [],
103
+ "id": "check-participant-compliance",
104
+ "pluginAlias": "pontus-x_cli",
105
+ "pluginName": "pontus-x_cli",
106
+ "pluginType": "core",
107
+ "strict": true,
108
+ "enableJsonFlag": false,
109
+ "isESM": false,
110
+ "relativePath": [
111
+ "dist",
112
+ "commands",
113
+ "check-participant-compliance.js"
114
+ ]
115
+ },
116
+ "compute-results": {
117
+ "aliases": [],
118
+ "args": {
119
+ "jobId": {
120
+ "description": "Compute job ID",
121
+ "name": "jobId",
122
+ "required": true
123
+ }
124
+ },
125
+ "description": "Get the compute job results.",
126
+ "examples": [
127
+ "<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat"
128
+ ],
129
+ "flags": {
130
+ "provider": {
131
+ "char": "p",
132
+ "description": "The Provider URL",
133
+ "name": "provider",
134
+ "required": true,
135
+ "default": "https://provider.agrospai.udl.cat",
136
+ "hasDynamicHelp": false,
137
+ "multiple": false,
138
+ "type": "option"
139
+ }
140
+ },
141
+ "hasDynamicHelp": false,
142
+ "hiddenAliases": [],
143
+ "id": "compute-results",
144
+ "pluginAlias": "pontus-x_cli",
145
+ "pluginName": "pontus-x_cli",
146
+ "pluginType": "core",
147
+ "strict": true,
148
+ "enableJsonFlag": false,
149
+ "isESM": false,
150
+ "relativePath": [
151
+ "dist",
152
+ "commands",
153
+ "compute-results.js"
154
+ ]
155
+ },
156
+ "compute-status": {
157
+ "aliases": [],
158
+ "args": {
159
+ "jobId": {
160
+ "description": "Compute job ID",
161
+ "name": "jobId",
162
+ "required": true
163
+ }
164
+ },
165
+ "description": "Check compute job status.",
166
+ "examples": [
167
+ "<%= config.bin %> <%= command.id %> 215bae450c8f40f59bfc5d1ccada3931 -p https://provider.agrospai.udl.cat"
168
+ ],
169
+ "flags": {
170
+ "provider": {
171
+ "char": "p",
172
+ "description": "The Provider URL",
173
+ "name": "provider",
174
+ "required": true,
175
+ "default": "https://provider.agrospai.udl.cat",
176
+ "hasDynamicHelp": false,
177
+ "multiple": false,
178
+ "type": "option"
179
+ }
180
+ },
181
+ "hasDynamicHelp": false,
182
+ "hiddenAliases": [],
183
+ "id": "compute-status",
184
+ "pluginAlias": "pontus-x_cli",
185
+ "pluginName": "pontus-x_cli",
186
+ "pluginType": "core",
187
+ "strict": true,
188
+ "enableJsonFlag": false,
189
+ "isESM": false,
190
+ "relativePath": [
191
+ "dist",
192
+ "commands",
193
+ "compute-status.js"
194
+ ]
195
+ },
196
+ "compute": {
197
+ "aliases": [],
198
+ "args": {
199
+ "algo": {
200
+ "description": "Algorithm DID",
201
+ "name": "algo",
202
+ "required": true
203
+ }
204
+ },
205
+ "description": "Compute the algorithm on one or more datasets.",
206
+ "examples": [
207
+ "<%= config.bin %> <%= command.id %> did:op:34e2ff9baf030318b13ff3940ab0885bb11fee49a8597123392983f5a0db8a35 -d did:op:d8a36ff74d36e54ce245d27689330fc39debb2fdfeac09d4a08b24b68cf5053d"
208
+ ],
209
+ "flags": {
210
+ "datasets": {
211
+ "char": "d",
212
+ "description": "Dataset DIDs",
213
+ "name": "datasets",
214
+ "required": true,
215
+ "hasDynamicHelp": false,
216
+ "multiple": true,
217
+ "type": "option"
218
+ },
219
+ "yes": {
220
+ "char": "y",
221
+ "description": "Automatic yes to prompts",
222
+ "name": "yes",
223
+ "required": false,
224
+ "allowNo": false,
225
+ "type": "boolean"
226
+ }
227
+ },
228
+ "hasDynamicHelp": false,
229
+ "hiddenAliases": [],
230
+ "id": "compute",
231
+ "pluginAlias": "pontus-x_cli",
232
+ "pluginName": "pontus-x_cli",
233
+ "pluginType": "core",
234
+ "strict": true,
235
+ "enableJsonFlag": false,
236
+ "isESM": false,
237
+ "relativePath": [
238
+ "dist",
239
+ "commands",
240
+ "compute.js"
241
+ ]
242
+ },
243
+ "edit-algo": {
244
+ "aliases": [],
245
+ "args": {
246
+ "did": {
247
+ "description": "Algorithm DID",
248
+ "name": "did",
249
+ "required": true
250
+ },
251
+ "image": {
252
+ "description": "Container image",
253
+ "name": "image",
254
+ "required": true
255
+ },
256
+ "tag": {
257
+ "description": "Container tag",
258
+ "name": "tag",
259
+ "required": true
260
+ },
261
+ "checksum": {
262
+ "description": "Image checksum",
263
+ "name": "checksum",
264
+ "required": true
265
+ },
266
+ "entrypoint": {
267
+ "description": "Algorithm entrypoint",
268
+ "name": "entrypoint",
269
+ "required": true
270
+ }
271
+ },
272
+ "description": "Change the container metadata for a given algorithm DID",
273
+ "examples": [
274
+ "<%= config.bin %> <%= command.id %> did:op:dcdb747f8feff3122c6d6c0f45a339a6e09415e721f98f61cc2c1d62ab35a21f rogargon/pandas-profiling 4.16 sha256:81dca5439f07dff4d56097546a9fce7335be3de8e2622dc105c64e54376f86b5 \"python /algorithm/src/main.py\""
275
+ ],
276
+ "flags": {
277
+ "yes": {
278
+ "char": "y",
279
+ "description": "Skip confirmation prompt",
280
+ "name": "yes",
281
+ "required": false,
282
+ "allowNo": false,
283
+ "type": "boolean"
284
+ }
285
+ },
286
+ "hasDynamicHelp": false,
287
+ "hiddenAliases": [],
288
+ "id": "edit-algo",
289
+ "pluginAlias": "pontus-x_cli",
290
+ "pluginName": "pontus-x_cli",
291
+ "pluginType": "core",
292
+ "strict": true,
293
+ "enableJsonFlag": false,
294
+ "isESM": false,
295
+ "relativePath": [
296
+ "dist",
297
+ "commands",
298
+ "edit-algo.js"
299
+ ]
300
+ },
301
+ "edit-asset-url": {
302
+ "aliases": [],
303
+ "args": {
304
+ "did": {
305
+ "description": "DID of the asset",
306
+ "name": "did",
307
+ "required": true
308
+ },
309
+ "url": {
310
+ "description": "New URL for the asset",
311
+ "name": "url",
312
+ "required": true
313
+ }
314
+ },
315
+ "description": "Change the URL of an asset DID",
316
+ "examples": [
317
+ "<%= config.bin %> <%= command.id %> did:op:af3e93c4f18903f91b108e7204b8a752e7605f4547ed507212bd6aca63af5686 https://raw.githubusercontent.com/plotly/datasets/refs/heads/master/titanic.csv"
318
+ ],
319
+ "flags": {
320
+ "yes": {
321
+ "char": "y",
322
+ "description": "Automatic yes to prompts",
323
+ "name": "yes",
324
+ "required": false,
325
+ "allowNo": false,
326
+ "type": "boolean"
327
+ }
328
+ },
329
+ "hasDynamicHelp": false,
330
+ "hiddenAliases": [],
331
+ "id": "edit-asset-url",
332
+ "pluginAlias": "pontus-x_cli",
333
+ "pluginName": "pontus-x_cli",
334
+ "pluginType": "core",
335
+ "strict": true,
336
+ "enableJsonFlag": false,
337
+ "isESM": false,
338
+ "relativePath": [
339
+ "dist",
340
+ "commands",
341
+ "edit-asset-url.js"
342
+ ]
343
+ },
344
+ "edit-trusted-algos": {
345
+ "aliases": [],
346
+ "args": {
347
+ "did": {
348
+ "description": "DID of the asset",
349
+ "name": "did",
350
+ "required": true
351
+ }
352
+ },
353
+ "description": "Overwrite the trusted algorithms for a data asset to the provided algorithm DIDs",
354
+ "examples": [
355
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a --algos did:op:8f9994d01975cadd0196a2f7f811ed850e5d02a7223e7c5a31faaebe7371c81a did:op:0b970c95211cb8ef4574383386376646081bb7eb949b2a75e1e2171ea25949a7"
356
+ ],
357
+ "flags": {
358
+ "algos": {
359
+ "description": "Algorithm DIDs",
360
+ "name": "algos",
361
+ "required": true,
362
+ "hasDynamicHelp": false,
363
+ "multiple": true,
364
+ "type": "option"
365
+ },
366
+ "yes": {
367
+ "char": "y",
368
+ "description": "Skip confirmation prompt",
369
+ "name": "yes",
370
+ "allowNo": false,
371
+ "type": "boolean"
372
+ }
373
+ },
374
+ "hasDynamicHelp": false,
375
+ "hiddenAliases": [],
376
+ "id": "edit-trusted-algos",
377
+ "pluginAlias": "pontus-x_cli",
378
+ "pluginName": "pontus-x_cli",
379
+ "pluginType": "core",
380
+ "strict": true,
381
+ "enableJsonFlag": false,
382
+ "isESM": false,
383
+ "relativePath": [
384
+ "dist",
385
+ "commands",
386
+ "edit-trusted-algos.js"
387
+ ]
388
+ },
389
+ "export-private-key": {
390
+ "aliases": [],
391
+ "args": {},
392
+ "description": "Export your private key as a JSON file, to use later with the login command or for Pontus-X portals automation",
393
+ "examples": [
394
+ "<%= config.bin %> <%= command.id %>"
395
+ ],
396
+ "flags": {
397
+ "password": {
398
+ "char": "p",
399
+ "description": "Password to encrypt the private key file",
400
+ "name": "password",
401
+ "required": false,
402
+ "hasDynamicHelp": false,
403
+ "multiple": false,
404
+ "type": "option"
405
+ },
406
+ "privateKey": {
407
+ "char": "k",
408
+ "description": "Your private key",
409
+ "name": "privateKey",
410
+ "required": false,
411
+ "hasDynamicHelp": false,
412
+ "multiple": false,
413
+ "type": "option"
414
+ },
415
+ "filepath": {
416
+ "char": "f",
417
+ "description": "File path to save the encrypted private key (default is <address>.json)",
418
+ "name": "filepath",
419
+ "required": false,
420
+ "hasDynamicHelp": false,
421
+ "multiple": false,
422
+ "type": "option"
423
+ }
424
+ },
425
+ "hasDynamicHelp": false,
426
+ "hiddenAliases": [],
427
+ "id": "export-private-key",
428
+ "pluginAlias": "pontus-x_cli",
429
+ "pluginName": "pontus-x_cli",
430
+ "pluginType": "core",
431
+ "strict": true,
432
+ "enableJsonFlag": false,
433
+ "isESM": false,
434
+ "relativePath": [
435
+ "dist",
436
+ "commands",
437
+ "export-private-key.js"
438
+ ]
439
+ },
440
+ "generate-asset-credentials": {
441
+ "aliases": [],
442
+ "args": {
443
+ "did": {
444
+ "description": "DID of the asset",
445
+ "name": "did",
446
+ "required": true
447
+ }
448
+ },
449
+ "description": "Generate the Gaia-X credentials for the input DID asset, including its verifiable presentation",
450
+ "examples": [
451
+ "<%= config.bin %> <%= command.id %> -p ./CEP.data.json -d ./did.json -c certificate.key did:op:01f8bc1e797a854dc718bd7a802acb07c5fc39f706b03dd454bceb66be6828c6"
452
+ ],
453
+ "flags": {
454
+ "certificate": {
455
+ "char": "c",
456
+ "description": "Path to the certificate.key file",
457
+ "name": "certificate",
458
+ "required": true,
459
+ "hasDynamicHelp": false,
460
+ "multiple": false,
461
+ "type": "option"
462
+ },
463
+ "didjson": {
464
+ "char": "d",
465
+ "description": "Path to the did.json file",
466
+ "name": "didjson",
467
+ "required": true,
468
+ "hasDynamicHelp": false,
469
+ "multiple": false,
470
+ "type": "option"
471
+ },
472
+ "participant": {
473
+ "char": "p",
474
+ "description": "Path to the JSON file including the required participant data",
475
+ "name": "participant",
476
+ "required": true,
477
+ "hasDynamicHelp": false,
478
+ "multiple": false,
479
+ "type": "option"
480
+ },
481
+ "password": {
482
+ "char": "w",
483
+ "description": "Password for the private key file (if not provided, it will be asked interactively)",
484
+ "name": "password",
485
+ "required": false,
486
+ "hasDynamicHelp": false,
487
+ "multiple": false,
488
+ "type": "option"
489
+ }
490
+ },
491
+ "hasDynamicHelp": false,
492
+ "hiddenAliases": [],
493
+ "id": "generate-asset-credentials",
494
+ "pluginAlias": "pontus-x_cli",
495
+ "pluginName": "pontus-x_cli",
496
+ "pluginType": "core",
497
+ "strict": true,
498
+ "enableJsonFlag": false,
499
+ "isESM": false,
500
+ "relativePath": [
501
+ "dist",
502
+ "commands",
503
+ "generate-asset-credentials.js"
504
+ ]
505
+ },
506
+ "generate-did-web": {
507
+ "aliases": [],
508
+ "args": {},
509
+ "description": "Generate a did.json to set up a DID-Web source to publish Gaia-X complaint credentials",
510
+ "examples": [
511
+ "<%= config.bin %> <%= command.id %> -d <https://compliance.agrospai.udl.cat> -c certificate-chain.crt"
512
+ ],
513
+ "flags": {
514
+ "certificate": {
515
+ "char": "c",
516
+ "description": "Path to the file with the certificate chain for the DID domain URL",
517
+ "name": "certificate",
518
+ "required": true,
519
+ "hasDynamicHelp": false,
520
+ "multiple": false,
521
+ "type": "option"
522
+ },
523
+ "domain": {
524
+ "char": "d",
525
+ "description": "URL where the DID-Web document will be hosted",
526
+ "name": "domain",
527
+ "required": true,
528
+ "hasDynamicHelp": false,
529
+ "multiple": false,
530
+ "type": "option"
531
+ }
532
+ },
533
+ "hasDynamicHelp": false,
534
+ "hiddenAliases": [],
535
+ "id": "generate-did-web",
536
+ "pluginAlias": "pontus-x_cli",
537
+ "pluginName": "pontus-x_cli",
538
+ "pluginType": "core",
539
+ "strict": true,
540
+ "enableJsonFlag": false,
541
+ "isESM": false,
542
+ "relativePath": [
543
+ "dist",
544
+ "commands",
545
+ "generate-did-web.js"
546
+ ]
547
+ },
548
+ "generate-participant-credentials": {
549
+ "aliases": [],
550
+ "args": {},
551
+ "description": "Generate the Gaia-X credentials for the participant including their verifiable presentation",
552
+ "examples": [
553
+ "<%= config.bin %> <%= command.id %> -p ./CEP.data.json -d ./did.json -c certificate.key"
554
+ ],
555
+ "flags": {
556
+ "certificate": {
557
+ "char": "c",
558
+ "description": "Path to the certificate.key file",
559
+ "name": "certificate",
560
+ "required": true,
561
+ "hasDynamicHelp": false,
562
+ "multiple": false,
563
+ "type": "option"
564
+ },
565
+ "didjson": {
566
+ "char": "d",
567
+ "description": "Path to the did.json file",
568
+ "name": "didjson",
569
+ "required": true,
570
+ "hasDynamicHelp": false,
571
+ "multiple": false,
572
+ "type": "option"
573
+ },
574
+ "participant": {
575
+ "char": "p",
576
+ "description": "Path to the JSON file including the required participant data",
577
+ "name": "participant",
578
+ "required": true,
579
+ "hasDynamicHelp": false,
580
+ "multiple": false,
581
+ "type": "option"
582
+ },
583
+ "password": {
584
+ "char": "w",
585
+ "description": "Password for the private key file (if not provided, it will be asked interactively)",
586
+ "name": "password",
587
+ "required": false,
588
+ "hasDynamicHelp": false,
589
+ "multiple": false,
590
+ "type": "option"
591
+ }
592
+ },
593
+ "hasDynamicHelp": false,
594
+ "hiddenAliases": [],
595
+ "id": "generate-participant-credentials",
596
+ "pluginAlias": "pontus-x_cli",
597
+ "pluginName": "pontus-x_cli",
598
+ "pluginType": "core",
599
+ "strict": true,
600
+ "enableJsonFlag": false,
601
+ "isESM": false,
602
+ "relativePath": [
603
+ "dist",
604
+ "commands",
605
+ "generate-participant-credentials.js"
606
+ ]
607
+ },
608
+ "get": {
609
+ "aliases": [],
610
+ "args": {
611
+ "did": {
612
+ "description": "DID of the asset",
613
+ "name": "did",
614
+ "required": true
615
+ }
616
+ },
617
+ "description": "Get the available metadata to the asset with the given DID",
618
+ "examples": [
619
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a"
620
+ ],
621
+ "flags": {},
622
+ "hasDynamicHelp": false,
623
+ "hiddenAliases": [],
624
+ "id": "get",
625
+ "pluginAlias": "pontus-x_cli",
626
+ "pluginName": "pontus-x_cli",
627
+ "pluginType": "core",
628
+ "strict": true,
629
+ "enableJsonFlag": false,
630
+ "isESM": false,
631
+ "relativePath": [
632
+ "dist",
633
+ "commands",
634
+ "get.js"
635
+ ]
636
+ },
637
+ "login": {
638
+ "aliases": [],
639
+ "args": {
640
+ "keyFile": {
641
+ "description": "Path to the keyFile.json",
642
+ "name": "keyFile",
643
+ "required": true
644
+ }
645
+ },
646
+ "description": "Login to retrieve your private key from a JSON key store and store it in .env",
647
+ "examples": [
648
+ "<%= config.bin %> <%= command.id %> d999baae98ac5246568fd726be8832c49626867d.json"
649
+ ],
650
+ "flags": {
651
+ "password": {
652
+ "char": "p",
653
+ "description": "Password to decrypt the key file",
654
+ "env": "PASSWORD",
655
+ "name": "password",
656
+ "required": false,
657
+ "hasDynamicHelp": false,
658
+ "multiple": false,
659
+ "type": "option"
660
+ }
661
+ },
662
+ "hasDynamicHelp": false,
663
+ "hiddenAliases": [],
664
+ "id": "login",
665
+ "pluginAlias": "pontus-x_cli",
666
+ "pluginName": "pontus-x_cli",
667
+ "pluginType": "core",
668
+ "strict": true,
669
+ "enableJsonFlag": false,
670
+ "isESM": false,
671
+ "relativePath": [
672
+ "dist",
673
+ "commands",
674
+ "login.js"
675
+ ]
676
+ },
677
+ "logout": {
678
+ "aliases": [],
679
+ "args": {},
680
+ "description": "Logout to remove your private key from .env file",
681
+ "examples": [
682
+ "<%= config.bin %> <%= command.id %>"
683
+ ],
684
+ "flags": {},
685
+ "hasDynamicHelp": false,
686
+ "hiddenAliases": [],
687
+ "id": "logout",
688
+ "pluginAlias": "pontus-x_cli",
689
+ "pluginName": "pontus-x_cli",
690
+ "pluginType": "core",
691
+ "strict": true,
692
+ "enableJsonFlag": false,
693
+ "isESM": false,
694
+ "relativePath": [
695
+ "dist",
696
+ "commands",
697
+ "logout.js"
698
+ ]
699
+ },
700
+ "publish": {
701
+ "aliases": [],
702
+ "args": {
703
+ "path": {
704
+ "description": "Path to the JSON/YAML or TS file describing the asset to publish",
705
+ "name": "path",
706
+ "required": true
707
+ }
708
+ },
709
+ "description": "Publish the asset as instructed in the provided script folder.",
710
+ "examples": [
711
+ "<%= config.bin %> <%= command.id %> samples/publish/algo/spec.json",
712
+ "<%= config.bin %> <%= command.id %> samples/publish/algo/spec.yaml",
713
+ "<%= config.bin %> <%= command.id %> samples/publish/algo/index.ts"
714
+ ],
715
+ "flags": {
716
+ "dry-run": {
717
+ "description": "Dry run the publishing process",
718
+ "name": "dry-run",
719
+ "allowNo": false,
720
+ "type": "boolean"
721
+ },
722
+ "provider": {
723
+ "char": "p",
724
+ "description": "The Provider URL",
725
+ "name": "provider",
726
+ "required": true,
727
+ "default": "https://provider.agrospai.udl.cat",
728
+ "hasDynamicHelp": false,
729
+ "multiple": false,
730
+ "type": "option"
731
+ }
732
+ },
733
+ "hasDynamicHelp": false,
734
+ "hiddenAliases": [],
735
+ "id": "publish",
736
+ "pluginAlias": "pontus-x_cli",
737
+ "pluginName": "pontus-x_cli",
738
+ "pluginType": "core",
739
+ "strict": true,
740
+ "enableJsonFlag": false,
741
+ "isESM": false,
742
+ "relativePath": [
743
+ "dist",
744
+ "commands",
745
+ "publish.js"
746
+ ]
747
+ },
748
+ "revoke": {
749
+ "aliases": [],
750
+ "args": {
751
+ "dids": {
752
+ "description": "DIDs to revoke",
753
+ "name": "dids",
754
+ "required": true
755
+ }
756
+ },
757
+ "description": "Publisher revocation of one or more owned DIDs",
758
+ "examples": [
759
+ "<%= config.bin %> <%= command.id %> did:op:ffeee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7a did:op:abcee8c8f19328985ef6743b08e61ef89d5141027fd47612e32e7900cacd2b7b"
760
+ ],
761
+ "flags": {
762
+ "yes": {
763
+ "char": "y",
764
+ "description": "Skip confirmation prompt",
765
+ "name": "yes",
766
+ "required": false,
767
+ "allowNo": false,
768
+ "type": "boolean"
769
+ }
770
+ },
771
+ "hasDynamicHelp": false,
772
+ "hiddenAliases": [],
773
+ "id": "revoke",
774
+ "pluginAlias": "pontus-x_cli",
775
+ "pluginName": "pontus-x_cli",
776
+ "pluginType": "core",
777
+ "strict": true,
778
+ "enableJsonFlag": false,
779
+ "isESM": false,
780
+ "relativePath": [
781
+ "dist",
782
+ "commands",
783
+ "revoke.js"
784
+ ]
785
+ },
786
+ "self-description": {
787
+ "aliases": [],
788
+ "args": {
789
+ "did": {
790
+ "description": "DID of the asset",
791
+ "name": "did",
792
+ "required": true
793
+ },
794
+ "sdurl": {
795
+ "description": "URL of the Self-Description",
796
+ "name": "sdurl",
797
+ "required": true
798
+ }
799
+ },
800
+ "description": "Associate Gaia-X Self-Description to the asset with the given DID",
801
+ "examples": [
802
+ "<%= config.bin %> <%= command.id %> did:op:d22954f2cbf6a85c897ce605c275cc786e099592cc59e3b7dd66b93e784bed8c https://example.com/self-description.json"
803
+ ],
804
+ "flags": {
805
+ "yes": {
806
+ "char": "y",
807
+ "description": "Skip confirmation prompt",
808
+ "name": "yes",
809
+ "allowNo": false,
810
+ "type": "boolean"
811
+ }
812
+ },
813
+ "hasDynamicHelp": false,
814
+ "hiddenAliases": [],
815
+ "id": "self-description",
816
+ "pluginAlias": "pontus-x_cli",
817
+ "pluginName": "pontus-x_cli",
818
+ "pluginType": "core",
819
+ "strict": true,
820
+ "enableJsonFlag": false,
821
+ "isESM": false,
822
+ "relativePath": [
823
+ "dist",
824
+ "commands",
825
+ "self-description.js"
826
+ ]
827
+ }
828
+ },
829
+ "version": "1.0.1"
830
+ }