@eudiplo/cli 9.1.0-main.a78cbb4 → 9.1.0-main.a8073f4

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 (38) hide show
  1. package/dist/commands/config/portability/action.d.ts.map +1 -1
  2. package/dist/commands/config/portability/action.js +126 -13
  3. package/dist/commands/config/portability/action.js.map +1 -1
  4. package/dist/commands/config/portability/folder-bundle.d.ts +60 -0
  5. package/dist/commands/config/portability/folder-bundle.d.ts.map +1 -0
  6. package/dist/commands/config/portability/folder-bundle.js +270 -0
  7. package/dist/commands/config/portability/folder-bundle.js.map +1 -0
  8. package/dist/commands/config/portability/folder-export.d.ts +22 -0
  9. package/dist/commands/config/portability/folder-export.d.ts.map +1 -0
  10. package/dist/commands/config/portability/folder-export.js +146 -0
  11. package/dist/commands/config/portability/folder-export.js.map +1 -0
  12. package/dist/commands/config/portability/index.d.ts.map +1 -1
  13. package/dist/commands/config/portability/index.js +8 -4
  14. package/dist/commands/config/portability/index.js.map +1 -1
  15. package/dist/commands/config/portability/upgrade.d.ts +2 -0
  16. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  17. package/dist/commands/config/portability/upgrade.js +4 -4
  18. package/dist/commands/config/portability/upgrade.js.map +1 -1
  19. package/dist/commands/config/validate/registry.d.ts +3 -0
  20. package/dist/commands/config/validate/registry.d.ts.map +1 -1
  21. package/dist/commands/config/validate/registry.js +5 -0
  22. package/dist/commands/config/validate/registry.js.map +1 -1
  23. package/dist/commands/config/validate/types.d.ts +4 -0
  24. package/dist/commands/config/validate/types.d.ts.map +1 -1
  25. package/dist/commands/config/validate/validator.d.ts +10 -1
  26. package/dist/commands/config/validate/validator.d.ts.map +1 -1
  27. package/dist/commands/config/validate/validator.js +24 -16
  28. package/dist/commands/config/validate/validator.js.map +1 -1
  29. package/dist/index.js +6833 -5243
  30. package/package.json +5 -5
  31. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +4 -2
  32. package/templates/schemas/CreateTenantDto.schema.json +1 -1
  33. package/templates/schemas/CredentialConfigCreate.schema.json +5 -1
  34. package/templates/schemas/DCQL.schema.json +168 -52
  35. package/templates/schemas/IssuanceConfig.schema.json +10 -1
  36. package/templates/schemas/PresentationConfigCreateDto.schema.json +168 -52
  37. package/templates/schemas/TrustListConfigFile.schema.json +263 -1
  38. package/templates/schemas/TrustListCreateDto.schema.json +556 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eudiplo/cli",
3
- "version": "9.1.0-main.a78cbb4",
3
+ "version": "9.1.0-main.a8073f4",
4
4
  "description": "Deployment-aware command line tools for EUDIPLO",
5
5
  "private": false,
6
6
  "type": "module",
@@ -55,16 +55,16 @@
55
55
  "dependencies": {
56
56
  "ajv": "^8.20.0",
57
57
  "ajv-formats": "^3.0.1",
58
- "commander": "^15.0.0",
58
+ "commander": "^15.1.0",
59
59
  "fflate": "^0.8.3",
60
60
  "jsonc-parser": "^3.3.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@biomejs/biome": "2.6.3",
64
- "@types/node": "^26.6.5",
63
+ "@biomejs/biome": "2.6.8",
64
+ "@types/node": "^26.6.6",
65
65
  "esbuild": "^0.28.2",
66
66
  "tsx": "^4.23.15",
67
67
  "typescript": "^7.0.2",
68
- "vitest": "5.0.5"
68
+ "vitest": "5.1.0"
69
69
  }
70
70
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json",
2
+ "$schema": "https://eudiplo.dev/schemas/v2/TrustListConfigFile.schema.json",
3
3
  "metadata": {
4
4
  "generation": 1
5
5
  },
@@ -14,7 +14,9 @@
14
14
  "revocationKeyChainId": "dbb65456-c358-46c1-bb5b-c777ef72c1d4",
15
15
  "info": {
16
16
  "name": "PID Provider",
17
- "locale": "en"
17
+ "locale": "en",
18
+ "contactUri": "info@example.com",
19
+ "website": "https://example.com/"
18
20
  }
19
21
  }
20
22
  ]
@@ -19,7 +19,7 @@
19
19
  "minLength": 1
20
20
  },
21
21
  "roles": {
22
- "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, no admin client is created.",
22
+ "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, or with an empty list, no admin client is created.",
23
23
  "type": "array",
24
24
  "items": {
25
25
  "type": "string",
@@ -211,7 +211,7 @@
211
211
  ]
212
212
  },
213
213
  "webhookEndpointId": {
214
- "description": "Not used for notifications: they go to the webhook endpoint of the offer.",
214
+ "description": "Receives the wallet unit revocation webhook (revokeWithWalletUnit). Not used for notifications: they go to the webhook endpoint of the offer.",
215
215
  "type": [
216
216
  "string",
217
217
  "null"
@@ -304,6 +304,10 @@
304
304
  }
305
305
  ]
306
306
  },
307
+ "revokeWithWalletUnit": {
308
+ "description": "Revoke issued credentials when the wallet unit attestation (the key attestation of the proof) they were bound to is revoked. Requires statusManagement and config.keyAttestationsRequired.",
309
+ "type": "boolean"
310
+ },
307
311
  "iaeActions": {
308
312
  "description": "Interactive authorization steps (a presentation or a web flow) that the wallet completes, in order, before the credential is issued.",
309
313
  "anyOf": [
@@ -46,39 +46,97 @@
46
46
  "values": {
47
47
  "type": "array",
48
48
  "items": {
49
- "type": "object",
50
- "properties": {
51
- "trustListId": {
52
- "description": "Optional trust list id reference.",
53
- "type": "string"
54
- },
55
- "url": {
56
- "description": "Optional trust list URL reference.",
57
- "anyOf": [
58
- {
49
+ "anyOf": [
50
+ {
51
+ "type": "object",
52
+ "properties": {
53
+ "format": {
54
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
59
55
  "type": "string",
60
- "format": "uri"
56
+ "const": "lote"
61
57
  },
62
- {
63
- "type": "string",
64
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
58
+ "trustListId": {
59
+ "description": "Optional trust list id reference.",
60
+ "type": "string"
61
+ },
62
+ "url": {
63
+ "description": "Optional trust list URL reference.",
64
+ "anyOf": [
65
+ {
66
+ "type": "string",
67
+ "format": "uri"
68
+ },
69
+ {
70
+ "type": "string",
71
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
72
+ }
73
+ ]
74
+ },
75
+ "verifierKey": {
76
+ "description": "Optional verifier key material.",
77
+ "type": "object",
78
+ "propertyNames": {
79
+ "type": "string"
80
+ },
81
+ "additionalProperties": {}
82
+ },
83
+ "verifierX509Der": {
84
+ "description": "Optional verifier certificate in DER/base64 form.",
85
+ "type": "string"
65
86
  }
66
- ]
87
+ },
88
+ "additionalProperties": false
67
89
  },
68
- "verifierKey": {
69
- "description": "Optional verifier key material.",
90
+ {
70
91
  "type": "object",
71
- "propertyNames": {
72
- "type": "string"
92
+ "properties": {
93
+ "format": {
94
+ "type": "string",
95
+ "const": "trusted-list",
96
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
97
+ },
98
+ "url": {
99
+ "anyOf": [
100
+ {
101
+ "type": "string",
102
+ "format": "uri"
103
+ },
104
+ {
105
+ "type": "string",
106
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
107
+ }
108
+ ],
109
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
110
+ },
111
+ "signingCertificates": {
112
+ "minItems": 1,
113
+ "type": "array",
114
+ "items": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
118
+ },
119
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
120
+ },
121
+ "schemeTerritories": {
122
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
123
+ "minItems": 1,
124
+ "type": "array",
125
+ "items": {
126
+ "type": "string",
127
+ "minLength": 1
128
+ }
129
+ }
73
130
  },
74
- "additionalProperties": {}
75
- },
76
- "verifierX509Der": {
77
- "description": "Optional verifier certificate in DER/base64 form.",
78
- "type": "string"
131
+ "required": [
132
+ "format",
133
+ "url",
134
+ "signingCertificates"
135
+ ],
136
+ "additionalProperties": false
79
137
  }
80
- },
81
- "additionalProperties": false
138
+ ],
139
+ "description": "Reference to a trust list used for authority verification."
82
140
  },
83
141
  "description": "Trust list references for ETSI TL verification."
84
142
  }
@@ -230,39 +288,97 @@
230
288
  "values": {
231
289
  "type": "array",
232
290
  "items": {
233
- "type": "object",
234
- "properties": {
235
- "trustListId": {
236
- "description": "Optional trust list id reference.",
237
- "type": "string"
238
- },
239
- "url": {
240
- "description": "Optional trust list URL reference.",
241
- "anyOf": [
242
- {
291
+ "anyOf": [
292
+ {
293
+ "type": "object",
294
+ "properties": {
295
+ "format": {
296
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
243
297
  "type": "string",
244
- "format": "uri"
298
+ "const": "lote"
245
299
  },
246
- {
247
- "type": "string",
248
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
300
+ "trustListId": {
301
+ "description": "Optional trust list id reference.",
302
+ "type": "string"
303
+ },
304
+ "url": {
305
+ "description": "Optional trust list URL reference.",
306
+ "anyOf": [
307
+ {
308
+ "type": "string",
309
+ "format": "uri"
310
+ },
311
+ {
312
+ "type": "string",
313
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
314
+ }
315
+ ]
316
+ },
317
+ "verifierKey": {
318
+ "description": "Optional verifier key material.",
319
+ "type": "object",
320
+ "propertyNames": {
321
+ "type": "string"
322
+ },
323
+ "additionalProperties": {}
324
+ },
325
+ "verifierX509Der": {
326
+ "description": "Optional verifier certificate in DER/base64 form.",
327
+ "type": "string"
249
328
  }
250
- ]
329
+ },
330
+ "additionalProperties": false
251
331
  },
252
- "verifierKey": {
253
- "description": "Optional verifier key material.",
332
+ {
254
333
  "type": "object",
255
- "propertyNames": {
256
- "type": "string"
334
+ "properties": {
335
+ "format": {
336
+ "type": "string",
337
+ "const": "trusted-list",
338
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
339
+ },
340
+ "url": {
341
+ "anyOf": [
342
+ {
343
+ "type": "string",
344
+ "format": "uri"
345
+ },
346
+ {
347
+ "type": "string",
348
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
349
+ }
350
+ ],
351
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
352
+ },
353
+ "signingCertificates": {
354
+ "minItems": 1,
355
+ "type": "array",
356
+ "items": {
357
+ "type": "string",
358
+ "minLength": 1,
359
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
360
+ },
361
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
362
+ },
363
+ "schemeTerritories": {
364
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
365
+ "minItems": 1,
366
+ "type": "array",
367
+ "items": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ }
371
+ }
257
372
  },
258
- "additionalProperties": {}
259
- },
260
- "verifierX509Der": {
261
- "description": "Optional verifier certificate in DER/base64 form.",
262
- "type": "string"
373
+ "required": [
374
+ "format",
375
+ "url",
376
+ "signingCertificates"
377
+ ],
378
+ "additionalProperties": false
263
379
  }
264
- },
265
- "additionalProperties": false
380
+ ],
381
+ "description": "Reference to a trust list used for authority verification."
266
382
  },
267
383
  "description": "Trust list references for ETSI TL verification."
268
384
  }
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "walletAttestationStatusCheckMode": {
56
- "description": "Default status check mode for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
56
+ "description": "Status check mode for key attestations at the credential endpoint, and default for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
57
57
  "anyOf": [
58
58
  {
59
59
  "type": "string",
@@ -675,6 +675,15 @@
675
675
  "supportUri": {
676
676
  "description": "Optional support URI.",
677
677
  "type": "string"
678
+ },
679
+ "renewal": {
680
+ "description": "When a generated certificate is renewed. onCredentialConfigChange (default): in the background after a credential or issuance configuration changes, and when issuer metadata is built. onMetadataRequest: only when issuer metadata is built. manual: only with Regenerate now. In every mode a missing or expired certificate is requested when issuer metadata is built.",
681
+ "type": "string",
682
+ "enum": [
683
+ "onCredentialConfigChange",
684
+ "onMetadataRequest",
685
+ "manual"
686
+ ]
678
687
  }
679
688
  },
680
689
  "additionalProperties": false
@@ -82,39 +82,97 @@
82
82
  "values": {
83
83
  "type": "array",
84
84
  "items": {
85
- "type": "object",
86
- "properties": {
87
- "trustListId": {
88
- "description": "Optional trust list id reference.",
89
- "type": "string"
90
- },
91
- "url": {
92
- "description": "Optional trust list URL reference.",
93
- "anyOf": [
94
- {
85
+ "anyOf": [
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "format": {
90
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
95
91
  "type": "string",
96
- "format": "uri"
92
+ "const": "lote"
97
93
  },
98
- {
99
- "type": "string",
100
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
94
+ "trustListId": {
95
+ "description": "Optional trust list id reference.",
96
+ "type": "string"
97
+ },
98
+ "url": {
99
+ "description": "Optional trust list URL reference.",
100
+ "anyOf": [
101
+ {
102
+ "type": "string",
103
+ "format": "uri"
104
+ },
105
+ {
106
+ "type": "string",
107
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
108
+ }
109
+ ]
110
+ },
111
+ "verifierKey": {
112
+ "description": "Optional verifier key material.",
113
+ "type": "object",
114
+ "propertyNames": {
115
+ "type": "string"
116
+ },
117
+ "additionalProperties": {}
118
+ },
119
+ "verifierX509Der": {
120
+ "description": "Optional verifier certificate in DER/base64 form.",
121
+ "type": "string"
101
122
  }
102
- ]
123
+ },
124
+ "additionalProperties": false
103
125
  },
104
- "verifierKey": {
105
- "description": "Optional verifier key material.",
126
+ {
106
127
  "type": "object",
107
- "propertyNames": {
108
- "type": "string"
128
+ "properties": {
129
+ "format": {
130
+ "type": "string",
131
+ "const": "trusted-list",
132
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
133
+ },
134
+ "url": {
135
+ "anyOf": [
136
+ {
137
+ "type": "string",
138
+ "format": "uri"
139
+ },
140
+ {
141
+ "type": "string",
142
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
143
+ }
144
+ ],
145
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
146
+ },
147
+ "signingCertificates": {
148
+ "minItems": 1,
149
+ "type": "array",
150
+ "items": {
151
+ "type": "string",
152
+ "minLength": 1,
153
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
154
+ },
155
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
156
+ },
157
+ "schemeTerritories": {
158
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
159
+ "minItems": 1,
160
+ "type": "array",
161
+ "items": {
162
+ "type": "string",
163
+ "minLength": 1
164
+ }
165
+ }
109
166
  },
110
- "additionalProperties": {}
111
- },
112
- "verifierX509Der": {
113
- "description": "Optional verifier certificate in DER/base64 form.",
114
- "type": "string"
167
+ "required": [
168
+ "format",
169
+ "url",
170
+ "signingCertificates"
171
+ ],
172
+ "additionalProperties": false
115
173
  }
116
- },
117
- "additionalProperties": false
174
+ ],
175
+ "description": "Reference to a trust list used for authority verification."
118
176
  },
119
177
  "description": "Trust list references for ETSI TL verification."
120
178
  }
@@ -266,39 +324,97 @@
266
324
  "values": {
267
325
  "type": "array",
268
326
  "items": {
269
- "type": "object",
270
- "properties": {
271
- "trustListId": {
272
- "description": "Optional trust list id reference.",
273
- "type": "string"
274
- },
275
- "url": {
276
- "description": "Optional trust list URL reference.",
277
- "anyOf": [
278
- {
327
+ "anyOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "format": {
332
+ "description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
279
333
  "type": "string",
280
- "format": "uri"
334
+ "const": "lote"
281
335
  },
282
- {
283
- "type": "string",
284
- "pattern": "^<TENANT_URL>(?:\\/.*)?$"
336
+ "trustListId": {
337
+ "description": "Optional trust list id reference.",
338
+ "type": "string"
339
+ },
340
+ "url": {
341
+ "description": "Optional trust list URL reference.",
342
+ "anyOf": [
343
+ {
344
+ "type": "string",
345
+ "format": "uri"
346
+ },
347
+ {
348
+ "type": "string",
349
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
350
+ }
351
+ ]
352
+ },
353
+ "verifierKey": {
354
+ "description": "Optional verifier key material.",
355
+ "type": "object",
356
+ "propertyNames": {
357
+ "type": "string"
358
+ },
359
+ "additionalProperties": {}
360
+ },
361
+ "verifierX509Der": {
362
+ "description": "Optional verifier certificate in DER/base64 form.",
363
+ "type": "string"
285
364
  }
286
- ]
365
+ },
366
+ "additionalProperties": false
287
367
  },
288
- "verifierKey": {
289
- "description": "Optional verifier key material.",
368
+ {
290
369
  "type": "object",
291
- "propertyNames": {
292
- "type": "string"
370
+ "properties": {
371
+ "format": {
372
+ "type": "string",
373
+ "const": "trusted-list",
374
+ "description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
375
+ },
376
+ "url": {
377
+ "anyOf": [
378
+ {
379
+ "type": "string",
380
+ "format": "uri"
381
+ },
382
+ {
383
+ "type": "string",
384
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
385
+ }
386
+ ],
387
+ "description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
388
+ },
389
+ "signingCertificates": {
390
+ "minItems": 1,
391
+ "type": "array",
392
+ "items": {
393
+ "type": "string",
394
+ "minLength": 1,
395
+ "pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
396
+ },
397
+ "description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
398
+ },
399
+ "schemeTerritories": {
400
+ "description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
401
+ "minItems": 1,
402
+ "type": "array",
403
+ "items": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ }
407
+ }
293
408
  },
294
- "additionalProperties": {}
295
- },
296
- "verifierX509Der": {
297
- "description": "Optional verifier certificate in DER/base64 form.",
298
- "type": "string"
409
+ "required": [
410
+ "format",
411
+ "url",
412
+ "signingCertificates"
413
+ ],
414
+ "additionalProperties": false
299
415
  }
300
- },
301
- "additionalProperties": false
416
+ ],
417
+ "description": "Reference to a trust list used for authority verification."
302
418
  },
303
419
  "description": "Trust list references for ETSI TL verification."
304
420
  }