@eudiplo/cli 9.1.0-main.9c22e4d → 9.1.0-main.9ef2054

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 (71) hide show
  1. package/dist/commands/config/index.d.ts.map +1 -1
  2. package/dist/commands/config/index.js +1 -1
  3. package/dist/commands/config/index.js.map +1 -1
  4. package/dist/commands/config/portability/action.d.ts.map +1 -1
  5. package/dist/commands/config/portability/action.js +129 -13
  6. package/dist/commands/config/portability/action.js.map +1 -1
  7. package/dist/commands/config/portability/folder-bundle.d.ts +60 -0
  8. package/dist/commands/config/portability/folder-bundle.d.ts.map +1 -0
  9. package/dist/commands/config/portability/folder-bundle.js +270 -0
  10. package/dist/commands/config/portability/folder-bundle.js.map +1 -0
  11. package/dist/commands/config/portability/folder-export.d.ts +22 -0
  12. package/dist/commands/config/portability/folder-export.d.ts.map +1 -0
  13. package/dist/commands/config/portability/folder-export.js +146 -0
  14. package/dist/commands/config/portability/folder-export.js.map +1 -0
  15. package/dist/commands/config/portability/index.d.ts.map +1 -1
  16. package/dist/commands/config/portability/index.js +8 -4
  17. package/dist/commands/config/portability/index.js.map +1 -1
  18. package/dist/commands/config/portability/migrations.spec.js +3 -2
  19. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  20. package/dist/commands/config/portability/upgrade.d.ts +2 -0
  21. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  22. package/dist/commands/config/portability/upgrade.js +45 -11
  23. package/dist/commands/config/portability/upgrade.js.map +1 -1
  24. package/dist/commands/config/validate/registry.d.ts +3 -0
  25. package/dist/commands/config/validate/registry.d.ts.map +1 -1
  26. package/dist/commands/config/validate/registry.js +5 -0
  27. package/dist/commands/config/validate/registry.js.map +1 -1
  28. package/dist/commands/config/validate/registry.json +0 -11
  29. package/dist/commands/config/validate/report.d.ts +4 -0
  30. package/dist/commands/config/validate/report.d.ts.map +1 -1
  31. package/dist/commands/config/validate/report.js +7 -0
  32. package/dist/commands/config/validate/report.js.map +1 -1
  33. package/dist/commands/config/validate/types.d.ts +6 -0
  34. package/dist/commands/config/validate/types.d.ts.map +1 -1
  35. package/dist/commands/config/validate/validator.d.ts +10 -1
  36. package/dist/commands/config/validate/validator.d.ts.map +1 -1
  37. package/dist/commands/config/validate/validator.js +27 -16
  38. package/dist/commands/config/validate/validator.js.map +1 -1
  39. package/dist/commands/init/action.js +1 -1
  40. package/dist/commands/init/action.js.map +1 -1
  41. package/dist/commands/status/action.js +1 -1
  42. package/dist/commands/status/action.js.map +1 -1
  43. package/dist/commands/version/action.d.ts.map +1 -1
  44. package/dist/commands/version/action.js.map +1 -1
  45. package/dist/index.js +16123 -13728
  46. package/dist/runtime.js +1 -1
  47. package/dist/runtime.js.map +1 -1
  48. package/dist/services/cli-config.d.ts.map +1 -1
  49. package/dist/services/cli-config.js +1 -1
  50. package/dist/services/cli-config.js.map +1 -1
  51. package/dist/services/deployment-drivers.d.ts.map +1 -1
  52. package/dist/services/deployment-drivers.js +3 -3
  53. package/dist/services/deployment-drivers.js.map +1 -1
  54. package/dist/services/diagnostics.d.ts.map +1 -1
  55. package/dist/services/diagnostics.js +1 -1
  56. package/dist/services/diagnostics.js.map +1 -1
  57. package/package.json +5 -5
  58. package/templates/demo-config/issuance/issuance.json +1 -1
  59. package/templates/demo-config/presentation/age-over-18.json +1 -1
  60. package/templates/demo-config/presentation/pid.json +1 -1
  61. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +3 -1
  62. package/templates/schemas/CredentialConfigCreate.schema.json +5 -1
  63. package/templates/schemas/DCQL.schema.json +168 -52
  64. package/templates/schemas/IssuanceConfig.schema.json +4 -12
  65. package/templates/schemas/IssuanceConfigFile.schema.json +818 -1
  66. package/templates/schemas/PresentationConfigCreateDto.schema.json +198 -163
  67. package/templates/schemas/PresentationConfigFile.schema.json +878 -1
  68. package/templates/schemas/TrustListCreateDto.schema.json +32 -6
  69. package/templates/schemas.manifest.json +0 -2
  70. package/templates/schemas/CreateRegistrarConfigDto.schema.json +0 -90
  71. package/templates/schemas/RegistrarConfigFile.schema.json +0 -144
@@ -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
  }
@@ -488,67 +604,44 @@
488
604
  ]
489
605
  },
490
606
  "registration_cert": {
491
- "description": "Optional registration certificate request settings.",
607
+ "description": "Registration certificate from a registrar, with the purpose and privacy policy it is requested with.",
492
608
  "anyOf": [
493
609
  {
494
610
  "type": "object",
495
611
  "properties": {
496
- "id": {
497
- "type": "string"
612
+ "jwt": {
613
+ "description": "Registration certificate JWT issued by a registrar. Attached to every request object as is; it must be valid and authorize every credential the DCQL query requests.",
614
+ "type": "string",
615
+ "minLength": 1
498
616
  },
499
- "body": {
500
- "type": "object",
501
- "properties": {
502
- "privacy_policy": {
503
- "type": "string"
504
- },
505
- "support_uri": {
506
- "type": "string"
507
- },
508
- "intermediary": {
509
- "type": "string"
510
- },
511
- "purpose": {
512
- "type": "array",
513
- "items": {
514
- "type": "object",
515
- "properties": {
516
- "lang": {
517
- "type": "string"
518
- },
519
- "content": {
520
- "type": "string"
521
- }
522
- },
523
- "required": [
524
- "lang",
525
- "content"
526
- ],
527
- "additionalProperties": false
528
- }
529
- },
530
- "credentials": {
531
- "type": "array",
532
- "items": {
533
- "type": "object",
534
- "propertyNames": {
535
- "type": "string"
536
- },
537
- "additionalProperties": {}
538
- }
539
- },
540
- "provides_attestations": {
541
- "type": "array",
542
- "items": {
617
+ "purpose": {
618
+ "description": "Why the data is requested (GDPR purpose), one text per language. Used when a certificate is requested from a registrar.",
619
+ "type": "array",
620
+ "items": {
621
+ "type": "object",
622
+ "properties": {
623
+ "lang": {
624
+ "type": "string",
625
+ "minLength": 1,
626
+ "description": "Language tag of the text, such as en or pt-BR. The EUDI Hub takes two-letter codes only."
627
+ },
628
+ "content": {
543
629
  "type": "string",
544
- "minLength": 1
630
+ "minLength": 1,
631
+ "description": "The purpose in that language."
545
632
  }
546
- }
547
- },
548
- "additionalProperties": false
633
+ },
634
+ "required": [
635
+ "lang",
636
+ "content"
637
+ ],
638
+ "additionalProperties": false
639
+ }
549
640
  },
550
- "jwt": {
551
- "type": "string"
641
+ "privacy_policy": {
642
+ "description": "URL of the privacy policy that applies to this request. Used when a certificate is requested from a registrar.",
643
+ "type": "string",
644
+ "minLength": 1
552
645
  }
553
646
  },
554
647
  "additionalProperties": false
@@ -558,64 +651,6 @@
558
651
  }
559
652
  ]
560
653
  },
561
- "registrationCertImportJwt": {
562
- "description": "Optional imported registration certificate JWT.",
563
- "type": [
564
- "string",
565
- "null"
566
- ]
567
- },
568
- "registrationCertImportId": {
569
- "description": "Optional registrar-side registration certificate id.",
570
- "type": [
571
- "string",
572
- "null"
573
- ]
574
- },
575
- "registrationCertBodyPrivacyPolicy": {
576
- "description": "Optional registration certificate privacy policy URI.",
577
- "type": [
578
- "string",
579
- "null"
580
- ]
581
- },
582
- "registrationCertBodySupportUri": {
583
- "description": "Optional registration certificate support URI.",
584
- "type": [
585
- "string",
586
- "null"
587
- ]
588
- },
589
- "registrationCertBodyIntermediary": {
590
- "description": "Optional registration certificate intermediary.",
591
- "type": [
592
- "string",
593
- "null"
594
- ]
595
- },
596
- "registrationCertBodyPurpose": {
597
- "description": "Optional registration certificate purpose entries.",
598
- "anyOf": [
599
- {
600
- "type": "array",
601
- "items": {
602
- "type": "object",
603
- "properties": {
604
- "lang": {
605
- "type": "string"
606
- },
607
- "content": {
608
- "type": "string"
609
- }
610
- },
611
- "additionalProperties": false
612
- }
613
- },
614
- {
615
- "type": "null"
616
- }
617
- ]
618
- },
619
654
  "webhookEndpointId": {
620
655
  "description": "Optional webhook endpoint id for presentation callbacks.",
621
656
  "type": [