pontus-x_cli 1.2.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +131 -43
  2. package/dist/commands/access.js +17 -2
  3. package/dist/commands/access.js.map +1 -1
  4. package/dist/commands/change-currency.d.ts +13 -0
  5. package/dist/commands/change-currency.js +69 -0
  6. package/dist/commands/change-currency.js.map +1 -0
  7. package/dist/commands/change-price.js +7 -5
  8. package/dist/commands/change-price.js.map +1 -1
  9. package/dist/commands/compute-results.d.ts +1 -1
  10. package/dist/commands/compute-results.js +5 -6
  11. package/dist/commands/compute-results.js.map +1 -1
  12. package/dist/commands/compute-status.d.ts +1 -1
  13. package/dist/commands/compute-status.js +12 -8
  14. package/dist/commands/compute-status.js.map +1 -1
  15. package/dist/commands/compute.d.ts +2 -2
  16. package/dist/commands/compute.js +27 -15
  17. package/dist/commands/compute.js.map +1 -1
  18. package/dist/commands/edit-additional-metadata.d.ts +1 -1
  19. package/dist/commands/edit-additional-metadata.js +16 -11
  20. package/dist/commands/edit-additional-metadata.js.map +1 -1
  21. package/dist/commands/edit-algo.js +12 -4
  22. package/dist/commands/edit-algo.js.map +1 -1
  23. package/dist/commands/edit-asset-allowed.js +32 -6
  24. package/dist/commands/edit-asset-allowed.js.map +1 -1
  25. package/dist/commands/edit-asset-url.js +13 -5
  26. package/dist/commands/edit-asset-url.js.map +1 -1
  27. package/dist/commands/edit-compute-network.d.ts +14 -0
  28. package/dist/commands/edit-compute-network.js +78 -0
  29. package/dist/commands/edit-compute-network.js.map +1 -0
  30. package/dist/commands/edit-keywords.d.ts +13 -0
  31. package/dist/commands/edit-keywords.js +57 -0
  32. package/dist/commands/edit-keywords.js.map +1 -0
  33. package/dist/commands/edit-trusted-algos.js +19 -11
  34. package/dist/commands/edit-trusted-algos.js.map +1 -1
  35. package/dist/commands/edit-trusted-publishers.js +13 -5
  36. package/dist/commands/edit-trusted-publishers.js.map +1 -1
  37. package/dist/commands/generate-asset-credentials.js +1 -1
  38. package/dist/commands/generate-asset-credentials.js.map +1 -1
  39. package/dist/commands/get.js +2 -2
  40. package/dist/commands/get.js.map +1 -1
  41. package/dist/commands/publish.d.ts +2 -1
  42. package/dist/commands/publish.js +54 -7
  43. package/dist/commands/publish.js.map +1 -1
  44. package/dist/commands/render.js +46 -27
  45. package/dist/commands/render.js.map +1 -1
  46. package/dist/commands/revoke.js +11 -5
  47. package/dist/commands/revoke.js.map +1 -1
  48. package/dist/commands/self-description.js +8 -3
  49. package/dist/commands/self-description.js.map +1 -1
  50. package/dist/config.d.ts +16 -13
  51. package/dist/config.js +27 -1
  52. package/dist/config.js.map +1 -1
  53. package/dist/lib/aquarius.js +70 -5
  54. package/dist/lib/aquarius.js.map +1 -1
  55. package/dist/lib/gaia-x_compliance/generate-credentials/index.js +35 -20
  56. package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -1
  57. package/dist/lib/spec.js +36 -5
  58. package/dist/lib/spec.js.map +1 -1
  59. package/dist/scripts/patch-nautilus.cjs +15 -0
  60. package/dist/scripts/patch-nautilus.cjs.map +1 -0
  61. package/dist/scripts/patch-nautilus.d.cts +1 -0
  62. package/dist/types/schema.json +443 -59
  63. package/dist/utils/connection.d.ts +2 -1
  64. package/dist/utils/connection.js +84 -4
  65. package/dist/utils/connection.js.map +1 -1
  66. package/oclif.manifest.json +169 -15
  67. package/package.json +6 -6
@@ -2,6 +2,42 @@
2
2
  "$ref": "#/definitions/PublishConfig",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "definitions": {
5
+ "ArweaveFileObject": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "encryptMethod": {
9
+ "$ref": "#/definitions/EncryptMethod"
10
+ },
11
+ "encryptedBy": {
12
+ "type": "string"
13
+ },
14
+ "transactionId": {
15
+ "type": "string"
16
+ },
17
+ "type": {
18
+ "anyOf": [
19
+ {
20
+ "$ref": "#/definitions/FileObjectType"
21
+ },
22
+ {
23
+ "type": "string"
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ "required": [
29
+ "transactionId",
30
+ "type"
31
+ ],
32
+ "type": "object"
33
+ },
34
+ "EncryptMethod": {
35
+ "enum": [
36
+ "AES",
37
+ "ECIES"
38
+ ],
39
+ "type": "string"
40
+ },
5
41
  "ExtendedConsumerParameter": {
6
42
  "additionalProperties": false,
7
43
  "properties": {
@@ -27,7 +63,12 @@
27
63
  "type": "boolean"
28
64
  },
29
65
  "type": {
30
- "enum": ["text", "number", "boolean", "select"],
66
+ "enum": [
67
+ "text",
68
+ "number",
69
+ "boolean",
70
+ "select"
71
+ ],
31
72
  "type": "string"
32
73
  }
33
74
  },
@@ -41,15 +82,118 @@
41
82
  ],
42
83
  "type": "object"
43
84
  },
85
+ "FileObjectType": {
86
+ "enum": [
87
+ "url",
88
+ "ipfs",
89
+ "arweave",
90
+ "s3",
91
+ "ftp"
92
+ ],
93
+ "type": "string"
94
+ },
44
95
  "FileTypes": {
45
- "enum": ["url", "graphql", "arweave", "ipfs", "smartcontract"],
96
+ "description": "Storage backends ocean-node can read.\n\nTwo v1 types are gone because ocean-node no longer implements them: `graphql` and `smartcontract`. Three are new: `s3`, `ftp` and the node's own persistent storage.",
97
+ "enum": [
98
+ "url",
99
+ "ipfs",
100
+ "arweave",
101
+ "s3",
102
+ "ftp",
103
+ "nodePersistentStorage"
104
+ ],
46
105
  "type": "string"
47
106
  },
107
+ "FtpFileObject": {
108
+ "additionalProperties": false,
109
+ "properties": {
110
+ "encryptMethod": {
111
+ "$ref": "#/definitions/EncryptMethod"
112
+ },
113
+ "encryptedBy": {
114
+ "type": "string"
115
+ },
116
+ "type": {
117
+ "anyOf": [
118
+ {
119
+ "$ref": "#/definitions/FileObjectType"
120
+ },
121
+ {
122
+ "type": "string"
123
+ }
124
+ ]
125
+ },
126
+ "url": {
127
+ "description": "Full FTP or FTPS URL: ftp://[user:password@]host[:port]/path or ftps://...",
128
+ "type": "string"
129
+ }
130
+ },
131
+ "required": [
132
+ "type",
133
+ "url"
134
+ ],
135
+ "type": "object"
136
+ },
137
+ "HeadersObject": {
138
+ "additionalProperties": {
139
+ "type": "string"
140
+ },
141
+ "type": "object"
142
+ },
143
+ "IpfsFileObject": {
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "encryptMethod": {
147
+ "$ref": "#/definitions/EncryptMethod"
148
+ },
149
+ "encryptedBy": {
150
+ "type": "string"
151
+ },
152
+ "hash": {
153
+ "type": "string"
154
+ },
155
+ "type": {
156
+ "anyOf": [
157
+ {
158
+ "$ref": "#/definitions/FileObjectType"
159
+ },
160
+ {
161
+ "type": "string"
162
+ }
163
+ ]
164
+ }
165
+ },
166
+ "required": [
167
+ "hash",
168
+ "type"
169
+ ],
170
+ "type": "object"
171
+ },
172
+ "LanguageValueObject": {
173
+ "additionalProperties": false,
174
+ "properties": {
175
+ "@direction": {
176
+ "type": "string"
177
+ },
178
+ "@language": {
179
+ "type": "string"
180
+ },
181
+ "@value": {
182
+ "type": "string"
183
+ }
184
+ },
185
+ "required": [
186
+ "@value",
187
+ "@language",
188
+ "@direction"
189
+ ],
190
+ "type": "object"
191
+ },
48
192
  "MetadataConfig": {
49
193
  "additionalProperties": false,
50
194
  "properties": {
51
195
  "additionalInformation": {
52
- "description": "Stores additional information, this is customizable by publisher"
196
+ "type": "object"
53
197
  },
54
198
  "algorithm": {
55
199
  "additionalProperties": false,
@@ -64,7 +208,6 @@
64
208
  "additionalProperties": false,
65
209
  "properties": {
66
210
  "checksum": {
67
- "description": "Checksum of the Docker image.",
68
211
  "type": "string"
69
212
  },
70
213
  "consumerParameters": {
@@ -74,75 +217,82 @@
74
217
  "type": "array"
75
218
  },
76
219
  "entrypoint": {
77
- "description": "The command to execute, or script to run inside the Docker image.",
78
220
  "type": "string"
79
221
  },
80
222
  "image": {
81
- "description": "Name of the Docker image.",
82
223
  "type": "string"
83
224
  },
84
225
  "tag": {
85
- "description": "Tag of the Docker image.",
86
226
  "type": "string"
87
227
  }
88
228
  },
89
- "required": ["checksum", "entrypoint", "image", "tag"],
229
+ "required": [
230
+ "checksum",
231
+ "entrypoint",
232
+ "image",
233
+ "tag"
234
+ ],
90
235
  "type": "object"
91
236
  },
92
237
  "language": {
93
- "description": "Programming language used to implement the software.",
94
- "type": "string"
95
- },
96
- "rawcode": {
97
- "description": "Rawcode",
98
238
  "type": "string"
99
239
  },
100
240
  "version": {
101
- "description": "Version of the software preferably in SemVer notation.",
102
241
  "type": "string"
103
242
  }
104
243
  },
105
- "required": ["container"],
244
+ "required": [
245
+ "container"
246
+ ],
106
247
  "type": "object"
107
248
  },
249
+ "attachments": {
250
+ "items": {
251
+ "$ref": "#/definitions/RemoteObject"
252
+ },
253
+ "type": "array"
254
+ },
108
255
  "author": {
109
256
  "type": "string"
110
257
  },
111
258
  "categories": {
112
- "description": "Array of categories associated to the asset. Note: recommended to use tags instead of this.",
113
259
  "items": {
114
260
  "type": "string"
115
261
  },
116
262
  "type": "array"
117
263
  },
118
- "contentLanguage": {
119
- "description": "The language of the content. Use one of the language codes from the IETF BCP 47 standard",
120
- "type": "string"
121
- },
122
264
  "copyrightHolder": {
123
- "description": "The party holding the legal copyright. Empty by default.",
124
265
  "type": "string"
125
266
  },
126
267
  "description": {
127
- "description": "Details of what the resource is.",
128
268
  "type": "string"
129
269
  },
130
270
  "did": {
131
271
  "type": "string"
132
272
  },
273
+ "displayTitle": {
274
+ "$ref": "#/definitions/LanguageValueObject"
275
+ },
133
276
  "license": {
134
- "description": "Short name referencing the license of the asset. If it’s not specified, the following value will be added: “No License Specified”.",
135
277
  "type": "string"
136
278
  },
137
279
  "links": {
138
- "description": "Mapping of URL strings for data samples, or links to find out more information. Links may be to either a URL or another asset.",
139
- "items": {
140
- "type": "string"
141
- },
142
- "type": "array"
280
+ "anyOf": [
281
+ {
282
+ "items": {
283
+ "type": "string"
284
+ },
285
+ "type": "array"
286
+ },
287
+ {
288
+ "additionalProperties": {
289
+ "type": "string"
290
+ },
291
+ "type": "object"
292
+ }
293
+ ]
143
294
  },
144
295
  "name": {
145
- "description": "Descriptive name or title of the asset.",
146
296
  "type": "string"
147
297
  },
148
298
  "network": {
@@ -151,20 +301,24 @@
151
301
  "owner": {
152
302
  "type": "string"
153
303
  },
304
+ "providedBy": {
305
+ "type": "string"
306
+ },
154
307
  "tags": {
155
- "description": "Array of keywords or tags used to describe this content. Empty by default.",
156
308
  "items": {
157
309
  "type": "string"
158
310
  },
159
311
  "type": "array"
160
312
  },
161
313
  "type": {
162
- "description": "Asset type. Includes \"dataset\" (e.g. csv file), \"algorithm\" (e.g. Python script). Each type needs a different subset of metadata attributes.",
163
- "enum": ["dataset", "algorithm"],
164
314
  "type": "string"
165
315
  }
166
316
  },
167
- "required": ["description", "license", "name", "type"],
317
+ "required": [
318
+ "description",
319
+ "name",
320
+ "type"
321
+ ],
168
322
  "type": "object"
169
323
  },
170
324
  "NftCreateDataWithoutOwner": {
@@ -205,7 +359,37 @@
205
359
  "type": "string"
206
360
  }
207
361
  },
208
- "required": ["key", "value"],
362
+ "required": [
363
+ "key",
364
+ "value"
365
+ ],
366
+ "type": "object"
367
+ },
368
+ "PersistentStorageObject": {
369
+ "additionalProperties": false,
370
+ "properties": {
371
+ "bucketId": {
372
+ "type": "string"
373
+ },
374
+ "encryptMethod": {
375
+ "$ref": "#/definitions/EncryptMethod"
376
+ },
377
+ "encryptedBy": {
378
+ "type": "string"
379
+ },
380
+ "fileName": {
381
+ "type": "string"
382
+ },
383
+ "type": {
384
+ "const": "nodePersistentStorage",
385
+ "type": "string"
386
+ }
387
+ },
388
+ "required": [
389
+ "bucketId",
390
+ "fileName",
391
+ "type"
392
+ ],
209
393
  "type": "object"
210
394
  },
211
395
  "PublishConfig": {
@@ -257,7 +441,10 @@
257
441
  "type": "string"
258
442
  }
259
443
  },
260
- "required": ["name", "symbol"],
444
+ "required": [
445
+ "name",
446
+ "symbol"
447
+ ],
261
448
  "type": "object"
262
449
  },
263
450
  "fileType": {
@@ -265,7 +452,14 @@
265
452
  },
266
453
  "files": {
267
454
  "items": {
268
- "$ref": "#/definitions/ServiceFileType"
455
+ "anyOf": [
456
+ {
457
+ "$ref": "#/definitions/ServiceFileType%3CFileTypes%3E"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/UrlFileObject"
461
+ }
462
+ ]
269
463
  },
270
464
  "type": "array"
271
465
  },
@@ -276,15 +470,24 @@
276
470
  "type": "number"
277
471
  },
278
472
  "currency": {
279
- "enum": ["EURAU", "EUROe", "OCEAN"],
473
+ "enum": [
474
+ "EURAU",
475
+ "EUROe",
476
+ "OCEAN"
477
+ ],
280
478
  "type": "string"
281
479
  },
282
480
  "type": {
283
- "enum": ["fixed", "free"],
481
+ "enum": [
482
+ "fixed",
483
+ "free"
484
+ ],
284
485
  "type": "string"
285
486
  }
286
487
  },
287
- "required": ["type"],
488
+ "required": [
489
+ "type"
490
+ ],
288
491
  "type": "object"
289
492
  },
290
493
  "serviceEndpoint": {
@@ -324,18 +527,191 @@
324
527
  "type": "array"
325
528
  }
326
529
  },
327
- "required": ["metadata", "nftData", "service"],
530
+ "required": [
531
+ "metadata",
532
+ "nftData",
533
+ "service"
534
+ ],
535
+ "type": "object"
536
+ },
537
+ "RemoteObject": {
538
+ "additionalProperties": false,
539
+ "properties": {
540
+ "additionalInformation": {
541
+ "additionalProperties": {
542
+ "type": [
543
+ "string",
544
+ "number",
545
+ "boolean"
546
+ ]
547
+ },
548
+ "type": "object"
549
+ },
550
+ "description": {
551
+ "$ref": "#/definitions/LanguageValueObject"
552
+ },
553
+ "displayName": {
554
+ "$ref": "#/definitions/LanguageValueObject"
555
+ },
556
+ "fileType": {
557
+ "type": "string"
558
+ },
559
+ "mirrors": {
560
+ "items": {
561
+ "$ref": "#/definitions/RemoteSource"
562
+ },
563
+ "type": "array"
564
+ },
565
+ "name": {
566
+ "type": "string"
567
+ },
568
+ "sha256": {
569
+ "type": "string"
570
+ }
571
+ },
572
+ "required": [
573
+ "name",
574
+ "fileType",
575
+ "sha256",
576
+ "mirrors"
577
+ ],
578
+ "type": "object"
579
+ },
580
+ "RemoteSource": {
581
+ "additionalProperties": false,
582
+ "properties": {
583
+ "headers": {
584
+ "anyOf": [
585
+ {
586
+ "type": "string"
587
+ },
588
+ {
589
+ "additionalProperties": {
590
+ "type": [
591
+ "string",
592
+ "number",
593
+ "boolean"
594
+ ]
595
+ },
596
+ "type": "object"
597
+ }
598
+ ]
599
+ },
600
+ "ipfsCid": {
601
+ "type": "string"
602
+ },
603
+ "method": {
604
+ "type": "string"
605
+ },
606
+ "type": {
607
+ "type": "string"
608
+ },
609
+ "url": {
610
+ "type": "string"
611
+ }
612
+ },
613
+ "required": [
614
+ "type"
615
+ ],
616
+ "type": "object"
617
+ },
618
+ "S3FileObject": {
619
+ "additionalProperties": false,
620
+ "properties": {
621
+ "encryptMethod": {
622
+ "$ref": "#/definitions/EncryptMethod"
623
+ },
624
+ "encryptedBy": {
625
+ "type": "string"
626
+ },
627
+ "s3Access": {
628
+ "$ref": "#/definitions/S3Object"
629
+ },
630
+ "type": {
631
+ "anyOf": [
632
+ {
633
+ "$ref": "#/definitions/FileObjectType"
634
+ },
635
+ {
636
+ "type": "string"
637
+ }
638
+ ]
639
+ }
640
+ },
641
+ "required": [
642
+ "s3Access",
643
+ "type"
644
+ ],
328
645
  "type": "object"
329
646
  },
330
- "ServiceFileType": {
331
- "$ref": "#/definitions/UrlFile"
647
+ "S3Object": {
648
+ "additionalProperties": false,
649
+ "properties": {
650
+ "accessKeyId": {
651
+ "type": "string"
652
+ },
653
+ "bucket": {
654
+ "type": "string"
655
+ },
656
+ "endpoint": {
657
+ "type": "string"
658
+ },
659
+ "forcePathStyle": {
660
+ "description": "If true, use path-style addressing (e.g. endpoint/bucket/key). Required for some S3-compatible services (e.g. MinIO). Default false (virtual-host style, e.g. bucket.endpoint/key).",
661
+ "type": "boolean"
662
+ },
663
+ "objectKey": {
664
+ "type": "string"
665
+ },
666
+ "region": {
667
+ "type": "string"
668
+ },
669
+ "secretAccessKey": {
670
+ "type": "string"
671
+ }
672
+ },
673
+ "required": [
674
+ "endpoint",
675
+ "objectKey",
676
+ "bucket",
677
+ "accessKeyId",
678
+ "secretAccessKey"
679
+ ],
680
+ "type": "object"
681
+ },
682
+ "ServiceFileType<FileTypes>": {
683
+ "anyOf": [
684
+ {
685
+ "$ref": "#/definitions/IpfsFileObject"
686
+ },
687
+ {
688
+ "$ref": "#/definitions/ArweaveFileObject"
689
+ },
690
+ {
691
+ "$ref": "#/definitions/S3FileObject"
692
+ },
693
+ {
694
+ "$ref": "#/definitions/FtpFileObject"
695
+ },
696
+ {
697
+ "$ref": "#/definitions/PersistentStorageObject"
698
+ },
699
+ {
700
+ "$ref": "#/definitions/UrlFileObject"
701
+ }
702
+ ],
703
+ "description": "Maps a `FileTypes` member onto the ocean.js storage object it needs."
332
704
  },
333
705
  "ServiceTypes": {
334
- "enum": ["access", "compute"],
706
+ "enum": [
707
+ "access",
708
+ "compute"
709
+ ],
335
710
  "type": "string"
336
711
  },
337
712
  "TrustedAlgorithmAsset": {
338
713
  "additionalProperties": false,
714
+ "description": "An algorithm to trust, by DID and (now that v5 requires it) by service.\n\nDDO v5's `PublisherTrustedAlgorithms` carries a required `serviceId`, so nautilus finally resolves one entry per (did, serviceId) pair instead of assuming `services[0]`.",
339
715
  "properties": {
340
716
  "did": {
341
717
  "type": "string"
@@ -347,37 +723,45 @@
347
723
  "type": "array"
348
724
  }
349
725
  },
350
- "required": ["did"],
726
+ "required": [
727
+ "did"
728
+ ],
351
729
  "type": "object"
352
730
  },
353
- "UrlFile": {
731
+ "UrlFileObject": {
354
732
  "additionalProperties": false,
355
733
  "properties": {
356
- "headers": {
357
- "additionalProperties": {
358
- "type": "string"
359
- },
360
- "description": "Headers key value pairs associated with the asset GET request",
361
- "type": "object"
734
+ "encryptMethod": {
735
+ "$ref": "#/definitions/EncryptMethod"
362
736
  },
363
- "index": {
364
- "description": "File index.",
365
- "type": "number"
737
+ "encryptedBy": {
738
+ "type": "string"
739
+ },
740
+ "headers": {
741
+ "$ref": "#/definitions/HeadersObject"
366
742
  },
367
743
  "method": {
368
- "description": "HTTP method used",
369
744
  "type": "string"
370
745
  },
371
746
  "type": {
372
- "const": "url",
373
- "type": "string"
747
+ "anyOf": [
748
+ {
749
+ "$ref": "#/definitions/FileObjectType"
750
+ },
751
+ {
752
+ "type": "string"
753
+ }
754
+ ]
374
755
  },
375
756
  "url": {
376
- "description": "File URL.",
377
757
  "type": "string"
378
758
  }
379
759
  },
380
- "required": ["type", "url", "method"],
760
+ "required": [
761
+ "method",
762
+ "type",
763
+ "url"
764
+ ],
381
765
  "type": "object"
382
766
  }
383
767
  }
@@ -1,4 +1,4 @@
1
- import { Nautilus } from "@deltadao/nautilus";
1
+ import { Nautilus, type RemoteStore } from "@deltadao/nautilus";
2
2
  import { Wallet } from "ethers";
3
3
  import { type FixedRatePricingConfigGenerator, type NetworkConfig } from "../config";
4
4
  export declare class Connection {
@@ -8,6 +8,7 @@ export declare class Connection {
8
8
  pricingConfig: {
9
9
  [p: string]: FixedRatePricingConfigGenerator;
10
10
  };
11
+ remoteStore?: RemoteStore | undefined;
11
12
  private constructor();
12
13
  static connect(envOverrides?: Record<string, string>): Promise<Connection>;
13
14
  }