pontus-x_cli 1.2.7 → 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.
- package/README.md +131 -43
- package/dist/commands/access.js +17 -2
- package/dist/commands/access.js.map +1 -1
- package/dist/commands/change-currency.d.ts +13 -0
- package/dist/commands/change-currency.js +69 -0
- package/dist/commands/change-currency.js.map +1 -0
- package/dist/commands/change-price.js +7 -5
- package/dist/commands/change-price.js.map +1 -1
- package/dist/commands/compute-results.d.ts +1 -1
- package/dist/commands/compute-results.js +5 -6
- package/dist/commands/compute-results.js.map +1 -1
- package/dist/commands/compute-status.d.ts +1 -1
- package/dist/commands/compute-status.js +12 -8
- package/dist/commands/compute-status.js.map +1 -1
- package/dist/commands/compute.d.ts +3 -3
- package/dist/commands/compute.js +70 -52
- package/dist/commands/compute.js.map +1 -1
- package/dist/commands/edit-additional-metadata.d.ts +1 -1
- package/dist/commands/edit-additional-metadata.js +16 -11
- package/dist/commands/edit-additional-metadata.js.map +1 -1
- package/dist/commands/edit-algo.js +12 -4
- package/dist/commands/edit-algo.js.map +1 -1
- package/dist/commands/edit-asset-allowed.d.ts +1 -1
- package/dist/commands/edit-asset-allowed.js +73 -43
- package/dist/commands/edit-asset-allowed.js.map +1 -1
- package/dist/commands/edit-asset-url.js +13 -5
- package/dist/commands/edit-asset-url.js.map +1 -1
- package/dist/commands/edit-compute-network.d.ts +14 -0
- package/dist/commands/edit-compute-network.js +78 -0
- package/dist/commands/edit-compute-network.js.map +1 -0
- package/dist/commands/edit-keywords.d.ts +13 -0
- package/dist/commands/edit-keywords.js +57 -0
- package/dist/commands/edit-keywords.js.map +1 -0
- package/dist/commands/edit-trusted-algos.d.ts +1 -1
- package/dist/commands/edit-trusted-algos.js +53 -45
- package/dist/commands/edit-trusted-algos.js.map +1 -1
- package/dist/commands/edit-trusted-publishers.js +13 -5
- package/dist/commands/edit-trusted-publishers.js.map +1 -1
- package/dist/commands/generate-asset-credentials.js +1 -1
- package/dist/commands/generate-asset-credentials.js.map +1 -1
- package/dist/commands/generate-manifest.d.ts +3 -3
- package/dist/commands/generate-manifest.js +20 -20
- package/dist/commands/generate-manifest.js.map +1 -1
- package/dist/commands/generate-private-keys.d.ts +2 -2
- package/dist/commands/generate-private-keys.js +26 -26
- package/dist/commands/generate-private-keys.js.map +1 -1
- package/dist/commands/get.js +2 -2
- package/dist/commands/get.js.map +1 -1
- package/dist/commands/publish.d.ts +2 -1
- package/dist/commands/publish.js +54 -7
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/render.js +46 -27
- package/dist/commands/render.js.map +1 -1
- package/dist/commands/revoke.js +11 -5
- package/dist/commands/revoke.js.map +1 -1
- package/dist/commands/self-description.js +8 -3
- package/dist/commands/self-description.js.map +1 -1
- package/dist/config.d.ts +17 -14
- package/dist/config.js +75 -49
- package/dist/config.js.map +1 -1
- package/dist/lib/aquarius.js +95 -27
- package/dist/lib/aquarius.js.map +1 -1
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js +35 -20
- package/dist/lib/gaia-x_compliance/generate-credentials/index.js.map +1 -1
- package/dist/lib/spec.d.ts +3 -3
- package/dist/lib/spec.js +66 -30
- package/dist/lib/spec.js.map +1 -1
- package/dist/scripts/patch-nautilus.cjs +15 -0
- package/dist/scripts/patch-nautilus.cjs.map +1 -0
- package/dist/scripts/patch-nautilus.d.cts +1 -0
- package/dist/types/manifest-schema.json +2 -8
- package/dist/types/schema.json +467 -62
- package/dist/utils/asset.d.ts +2 -2
- package/dist/utils/asset.js +23 -23
- package/dist/utils/asset.js.map +1 -1
- package/dist/utils/connection.d.ts +2 -1
- package/dist/utils/connection.js +84 -4
- package/dist/utils/connection.js.map +1 -1
- package/dist/utils/login.d.ts +2 -2
- package/dist/utils/login.js +13 -13
- package/dist/utils/login.js.map +1 -1
- package/oclif.manifest.json +169 -15
- package/package.json +6 -6
package/dist/types/schema.json
CHANGED
|
@@ -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,22 +63,137 @@
|
|
|
27
63
|
"type": "boolean"
|
|
28
64
|
},
|
|
29
65
|
"type": {
|
|
30
|
-
"enum": [
|
|
66
|
+
"enum": [
|
|
67
|
+
"text",
|
|
68
|
+
"number",
|
|
69
|
+
"boolean",
|
|
70
|
+
"select"
|
|
71
|
+
],
|
|
31
72
|
"type": "string"
|
|
32
73
|
}
|
|
33
74
|
},
|
|
34
|
-
"required": [
|
|
75
|
+
"required": [
|
|
76
|
+
"name",
|
|
77
|
+
"type",
|
|
78
|
+
"label",
|
|
79
|
+
"required",
|
|
80
|
+
"description",
|
|
81
|
+
"default"
|
|
82
|
+
],
|
|
35
83
|
"type": "object"
|
|
36
84
|
},
|
|
85
|
+
"FileObjectType": {
|
|
86
|
+
"enum": [
|
|
87
|
+
"url",
|
|
88
|
+
"ipfs",
|
|
89
|
+
"arweave",
|
|
90
|
+
"s3",
|
|
91
|
+
"ftp"
|
|
92
|
+
],
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
37
95
|
"FileTypes": {
|
|
38
|
-
"
|
|
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
|
+
],
|
|
39
105
|
"type": "string"
|
|
40
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
|
+
},
|
|
41
192
|
"MetadataConfig": {
|
|
42
193
|
"additionalProperties": false,
|
|
43
194
|
"properties": {
|
|
44
195
|
"additionalInformation": {
|
|
45
|
-
"
|
|
196
|
+
"type": "object"
|
|
46
197
|
},
|
|
47
198
|
"algorithm": {
|
|
48
199
|
"additionalProperties": false,
|
|
@@ -57,7 +208,6 @@
|
|
|
57
208
|
"additionalProperties": false,
|
|
58
209
|
"properties": {
|
|
59
210
|
"checksum": {
|
|
60
|
-
"description": "Checksum of the Docker image.",
|
|
61
211
|
"type": "string"
|
|
62
212
|
},
|
|
63
213
|
"consumerParameters": {
|
|
@@ -67,75 +217,82 @@
|
|
|
67
217
|
"type": "array"
|
|
68
218
|
},
|
|
69
219
|
"entrypoint": {
|
|
70
|
-
"description": "The command to execute, or script to run inside the Docker image.",
|
|
71
220
|
"type": "string"
|
|
72
221
|
},
|
|
73
222
|
"image": {
|
|
74
|
-
"description": "Name of the Docker image.",
|
|
75
223
|
"type": "string"
|
|
76
224
|
},
|
|
77
225
|
"tag": {
|
|
78
|
-
"description": "Tag of the Docker image.",
|
|
79
226
|
"type": "string"
|
|
80
227
|
}
|
|
81
228
|
},
|
|
82
|
-
"required": [
|
|
229
|
+
"required": [
|
|
230
|
+
"checksum",
|
|
231
|
+
"entrypoint",
|
|
232
|
+
"image",
|
|
233
|
+
"tag"
|
|
234
|
+
],
|
|
83
235
|
"type": "object"
|
|
84
236
|
},
|
|
85
237
|
"language": {
|
|
86
|
-
"description": "Programming language used to implement the software.",
|
|
87
|
-
"type": "string"
|
|
88
|
-
},
|
|
89
|
-
"rawcode": {
|
|
90
|
-
"description": "Rawcode",
|
|
91
238
|
"type": "string"
|
|
92
239
|
},
|
|
93
240
|
"version": {
|
|
94
|
-
"description": "Version of the software preferably in SemVer notation.",
|
|
95
241
|
"type": "string"
|
|
96
242
|
}
|
|
97
243
|
},
|
|
98
|
-
"required": [
|
|
244
|
+
"required": [
|
|
245
|
+
"container"
|
|
246
|
+
],
|
|
99
247
|
"type": "object"
|
|
100
248
|
},
|
|
249
|
+
"attachments": {
|
|
250
|
+
"items": {
|
|
251
|
+
"$ref": "#/definitions/RemoteObject"
|
|
252
|
+
},
|
|
253
|
+
"type": "array"
|
|
254
|
+
},
|
|
101
255
|
"author": {
|
|
102
256
|
"type": "string"
|
|
103
257
|
},
|
|
104
258
|
"categories": {
|
|
105
|
-
"description": "Array of categories associated to the asset. Note: recommended to use tags instead of this.",
|
|
106
259
|
"items": {
|
|
107
260
|
"type": "string"
|
|
108
261
|
},
|
|
109
262
|
"type": "array"
|
|
110
263
|
},
|
|
111
|
-
"contentLanguage": {
|
|
112
|
-
"description": "The language of the content. Use one of the language codes from the IETF BCP 47 standard",
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
264
|
"copyrightHolder": {
|
|
116
|
-
"description": "The party holding the legal copyright. Empty by default.",
|
|
117
265
|
"type": "string"
|
|
118
266
|
},
|
|
119
267
|
"description": {
|
|
120
|
-
"description": "Details of what the resource is.",
|
|
121
268
|
"type": "string"
|
|
122
269
|
},
|
|
123
270
|
"did": {
|
|
124
271
|
"type": "string"
|
|
125
272
|
},
|
|
273
|
+
"displayTitle": {
|
|
274
|
+
"$ref": "#/definitions/LanguageValueObject"
|
|
275
|
+
},
|
|
126
276
|
"license": {
|
|
127
|
-
"description": "Short name referencing the license of the asset. If it’s not specified, the following value will be added: “No License Specified”.",
|
|
128
277
|
"type": "string"
|
|
129
278
|
},
|
|
130
279
|
"links": {
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
+
]
|
|
136
294
|
},
|
|
137
295
|
"name": {
|
|
138
|
-
"description": "Descriptive name or title of the asset.",
|
|
139
296
|
"type": "string"
|
|
140
297
|
},
|
|
141
298
|
"network": {
|
|
@@ -144,20 +301,24 @@
|
|
|
144
301
|
"owner": {
|
|
145
302
|
"type": "string"
|
|
146
303
|
},
|
|
304
|
+
"providedBy": {
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
147
307
|
"tags": {
|
|
148
|
-
"description": "Array of keywords or tags used to describe this content. Empty by default.",
|
|
149
308
|
"items": {
|
|
150
309
|
"type": "string"
|
|
151
310
|
},
|
|
152
311
|
"type": "array"
|
|
153
312
|
},
|
|
154
313
|
"type": {
|
|
155
|
-
"description": "Asset type. Includes \"dataset\" (e.g. csv file), \"algorithm\" (e.g. Python script). Each type needs a different subset of metadata attributes.",
|
|
156
|
-
"enum": ["dataset", "algorithm"],
|
|
157
314
|
"type": "string"
|
|
158
315
|
}
|
|
159
316
|
},
|
|
160
|
-
"required": [
|
|
317
|
+
"required": [
|
|
318
|
+
"description",
|
|
319
|
+
"name",
|
|
320
|
+
"type"
|
|
321
|
+
],
|
|
161
322
|
"type": "object"
|
|
162
323
|
},
|
|
163
324
|
"NftCreateDataWithoutOwner": {
|
|
@@ -179,7 +340,13 @@
|
|
|
179
340
|
"type": "boolean"
|
|
180
341
|
}
|
|
181
342
|
},
|
|
182
|
-
"required": [
|
|
343
|
+
"required": [
|
|
344
|
+
"name",
|
|
345
|
+
"symbol",
|
|
346
|
+
"templateIndex",
|
|
347
|
+
"tokenURI",
|
|
348
|
+
"transferable"
|
|
349
|
+
],
|
|
183
350
|
"type": "object"
|
|
184
351
|
},
|
|
185
352
|
"Options": {
|
|
@@ -192,7 +359,37 @@
|
|
|
192
359
|
"type": "string"
|
|
193
360
|
}
|
|
194
361
|
},
|
|
195
|
-
"required": [
|
|
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
|
+
],
|
|
196
393
|
"type": "object"
|
|
197
394
|
},
|
|
198
395
|
"PublishConfig": {
|
|
@@ -244,7 +441,10 @@
|
|
|
244
441
|
"type": "string"
|
|
245
442
|
}
|
|
246
443
|
},
|
|
247
|
-
"required": [
|
|
444
|
+
"required": [
|
|
445
|
+
"name",
|
|
446
|
+
"symbol"
|
|
447
|
+
],
|
|
248
448
|
"type": "object"
|
|
249
449
|
},
|
|
250
450
|
"fileType": {
|
|
@@ -252,7 +452,14 @@
|
|
|
252
452
|
},
|
|
253
453
|
"files": {
|
|
254
454
|
"items": {
|
|
255
|
-
"
|
|
455
|
+
"anyOf": [
|
|
456
|
+
{
|
|
457
|
+
"$ref": "#/definitions/ServiceFileType%3CFileTypes%3E"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"$ref": "#/definitions/UrlFileObject"
|
|
461
|
+
}
|
|
462
|
+
]
|
|
256
463
|
},
|
|
257
464
|
"type": "array"
|
|
258
465
|
},
|
|
@@ -263,15 +470,24 @@
|
|
|
263
470
|
"type": "number"
|
|
264
471
|
},
|
|
265
472
|
"currency": {
|
|
266
|
-
"enum": [
|
|
473
|
+
"enum": [
|
|
474
|
+
"EURAU",
|
|
475
|
+
"EUROe",
|
|
476
|
+
"OCEAN"
|
|
477
|
+
],
|
|
267
478
|
"type": "string"
|
|
268
479
|
},
|
|
269
480
|
"type": {
|
|
270
|
-
"enum": [
|
|
481
|
+
"enum": [
|
|
482
|
+
"fixed",
|
|
483
|
+
"free"
|
|
484
|
+
],
|
|
271
485
|
"type": "string"
|
|
272
486
|
}
|
|
273
487
|
},
|
|
274
|
-
"required": [
|
|
488
|
+
"required": [
|
|
489
|
+
"type"
|
|
490
|
+
],
|
|
275
491
|
"type": "object"
|
|
276
492
|
},
|
|
277
493
|
"serviceEndpoint": {
|
|
@@ -284,7 +500,15 @@
|
|
|
284
500
|
"type": "number"
|
|
285
501
|
}
|
|
286
502
|
},
|
|
287
|
-
"required": [
|
|
503
|
+
"required": [
|
|
504
|
+
"datatoken",
|
|
505
|
+
"files",
|
|
506
|
+
"fileType",
|
|
507
|
+
"pricing",
|
|
508
|
+
"serviceEndpoint",
|
|
509
|
+
"serviceType",
|
|
510
|
+
"timeout"
|
|
511
|
+
],
|
|
288
512
|
"type": "object"
|
|
289
513
|
},
|
|
290
514
|
"trustOwnerAlgorithms": {
|
|
@@ -303,18 +527,191 @@
|
|
|
303
527
|
"type": "array"
|
|
304
528
|
}
|
|
305
529
|
},
|
|
306
|
-
"required": [
|
|
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
|
+
],
|
|
307
645
|
"type": "object"
|
|
308
646
|
},
|
|
309
|
-
"
|
|
310
|
-
"
|
|
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."
|
|
311
704
|
},
|
|
312
705
|
"ServiceTypes": {
|
|
313
|
-
"enum": [
|
|
706
|
+
"enum": [
|
|
707
|
+
"access",
|
|
708
|
+
"compute"
|
|
709
|
+
],
|
|
314
710
|
"type": "string"
|
|
315
711
|
},
|
|
316
712
|
"TrustedAlgorithmAsset": {
|
|
317
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]`.",
|
|
318
715
|
"properties": {
|
|
319
716
|
"did": {
|
|
320
717
|
"type": "string"
|
|
@@ -326,37 +723,45 @@
|
|
|
326
723
|
"type": "array"
|
|
327
724
|
}
|
|
328
725
|
},
|
|
329
|
-
"required": [
|
|
726
|
+
"required": [
|
|
727
|
+
"did"
|
|
728
|
+
],
|
|
330
729
|
"type": "object"
|
|
331
730
|
},
|
|
332
|
-
"
|
|
731
|
+
"UrlFileObject": {
|
|
333
732
|
"additionalProperties": false,
|
|
334
733
|
"properties": {
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"type": "string"
|
|
338
|
-
},
|
|
339
|
-
"description": "Headers key value pairs associated with the asset GET request",
|
|
340
|
-
"type": "object"
|
|
734
|
+
"encryptMethod": {
|
|
735
|
+
"$ref": "#/definitions/EncryptMethod"
|
|
341
736
|
},
|
|
342
|
-
"
|
|
343
|
-
"
|
|
344
|
-
|
|
737
|
+
"encryptedBy": {
|
|
738
|
+
"type": "string"
|
|
739
|
+
},
|
|
740
|
+
"headers": {
|
|
741
|
+
"$ref": "#/definitions/HeadersObject"
|
|
345
742
|
},
|
|
346
743
|
"method": {
|
|
347
|
-
"description": "HTTP method used",
|
|
348
744
|
"type": "string"
|
|
349
745
|
},
|
|
350
746
|
"type": {
|
|
351
|
-
"
|
|
352
|
-
|
|
747
|
+
"anyOf": [
|
|
748
|
+
{
|
|
749
|
+
"$ref": "#/definitions/FileObjectType"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "string"
|
|
753
|
+
}
|
|
754
|
+
]
|
|
353
755
|
},
|
|
354
756
|
"url": {
|
|
355
|
-
"description": "File URL.",
|
|
356
757
|
"type": "string"
|
|
357
758
|
}
|
|
358
759
|
},
|
|
359
|
-
"required": [
|
|
760
|
+
"required": [
|
|
761
|
+
"method",
|
|
762
|
+
"type",
|
|
763
|
+
"url"
|
|
764
|
+
],
|
|
360
765
|
"type": "object"
|
|
361
766
|
}
|
|
362
767
|
}
|