@eudiplo/cli 9.1.0-main.da7321e → 9.1.0-main.ddf7f67

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 (41) hide show
  1. package/dist/commands/config/portability/migrations.spec.js +2 -1
  2. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  3. package/dist/commands/config/tenant/action.d.ts.map +1 -1
  4. package/dist/commands/config/tenant/action.js +3 -2
  5. package/dist/commands/config/tenant/action.js.map +1 -1
  6. package/dist/commands/config/validate/validator.d.ts.map +1 -1
  7. package/dist/commands/config/validate/validator.js +26 -3
  8. package/dist/commands/config/validate/validator.js.map +1 -1
  9. package/dist/index.js +5722 -1205
  10. package/dist/services/compose-project.d.ts +6 -0
  11. package/dist/services/compose-project.d.ts.map +1 -1
  12. package/dist/services/compose-project.js +13 -2
  13. package/dist/services/compose-project.js.map +1 -1
  14. package/package.json +3 -3
  15. package/templates/demo-config/info.json +1 -1
  16. package/templates/demo-config/issuance/credentials/citizen.json +1 -1
  17. package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
  18. package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
  19. package/templates/demo-config/issuance/credentials/pid.json +1 -1
  20. package/templates/demo-config/issuance/issuance.json +1 -1
  21. package/templates/demo-config/key-chains/access.json +1 -1
  22. package/templates/demo-config/key-chains/attestation.json +1 -1
  23. package/templates/demo-config/key-chains/status-list.json +1 -1
  24. package/templates/demo-config/key-chains/trust-list.json +1 -1
  25. package/templates/demo-config/presentation/age-over-18.json +1 -1
  26. package/templates/demo-config/presentation/pid.json +1 -1
  27. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +4 -2
  28. package/templates/docker-compose.yml +2 -2
  29. package/templates/schemas/CreateTenantDto.schema.json +3 -3
  30. package/templates/schemas/CredentialConfigCreate.schema.json +15 -9
  31. package/templates/schemas/CredentialConfigFile.schema.json +1027 -1
  32. package/templates/schemas/IssuanceConfig.schema.json +13 -9
  33. package/templates/schemas/IssuanceConfigFile.schema.json +814 -1
  34. package/templates/schemas/KeyChainConfigFile.schema.json +371 -1
  35. package/templates/schemas/KeyChainCreateDto.schema.json +1 -0
  36. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +58 -0
  37. package/templates/schemas/KeyChainImportDto.schema.json +1 -0
  38. package/templates/schemas/PresentationConfigCreateDto.schema.json +16 -0
  39. package/templates/schemas/PresentationConfigFile.schema.json +746 -1
  40. package/templates/schemas/TrustListConfigFile.schema.json +263 -1
  41. package/templates/schemas/TrustListCreateDto.schema.json +556 -22
@@ -27,7 +27,7 @@
27
27
  "type": {
28
28
  "type": "string",
29
29
  "const": "internal",
30
- "description": "Use locally managed key chains for trust material."
30
+ "description": "`internal` references key chains of this tenant; `external` carries the certificates directly, as PEM or Base64 DER."
31
31
  },
32
32
  "issuerKeyChainId": {
33
33
  "type": "string",
@@ -56,20 +56,274 @@
56
56
  "description": "Display name of the trusted entity."
57
57
  },
58
58
  "lang": {
59
- "description": "Optional language tag for entity info.",
60
- "type": "string"
59
+ "description": "Optional language of the entity's name, postal address, contact and information URI: an IETF RFC 5646 language tag in lower case, for example en or de-at (ETSI TS 119 602 clause 6.1.4). Defaults to en. With another language, the list publishes these texts in that language and again under en with the same text, since every list supports English (clause 6.1.4); service names are published in English only.",
60
+ "type": "string",
61
+ "pattern": "^(?:(?:[a-z]{2,3}(?:-[a-z]{3}){0,3}|[a-z]{4,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|[0-9]{3}))?(?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?)$"
61
62
  },
62
63
  "locale": {
63
64
  "description": "Optional locale identifier.",
64
65
  "type": "string"
65
66
  },
66
67
  "uri": {
67
- "description": "Optional entity URI.",
68
- "type": "string"
68
+ "description": "Optional absolute URI where relying parties find information about the entity, published as TEInformationURI. Write it as a URL parser serializes it, for example https://example.com/about with spaces percent-encoded.",
69
+ "type": "string",
70
+ "format": "uri"
69
71
  },
70
72
  "country": {
71
- "description": "Optional country name or code.",
72
- "type": "string"
73
+ "description": "Optional country of the postal address: an ISO 3166-1 alpha-2 code in capital letters, with \"UK\" for the United Kingdom, \"EL\" for Greece and \"EU\" for the European Union (ETSI TS 119 602 clause 6.1.5). Defaults to EU.",
74
+ "type": "string",
75
+ "enum": [
76
+ "AD",
77
+ "AE",
78
+ "AF",
79
+ "AG",
80
+ "AI",
81
+ "AL",
82
+ "AM",
83
+ "AO",
84
+ "AQ",
85
+ "AR",
86
+ "AS",
87
+ "AT",
88
+ "AU",
89
+ "AW",
90
+ "AX",
91
+ "AZ",
92
+ "BA",
93
+ "BB",
94
+ "BD",
95
+ "BE",
96
+ "BF",
97
+ "BG",
98
+ "BH",
99
+ "BI",
100
+ "BJ",
101
+ "BL",
102
+ "BM",
103
+ "BN",
104
+ "BO",
105
+ "BQ",
106
+ "BR",
107
+ "BS",
108
+ "BT",
109
+ "BV",
110
+ "BW",
111
+ "BY",
112
+ "BZ",
113
+ "CA",
114
+ "CC",
115
+ "CD",
116
+ "CF",
117
+ "CG",
118
+ "CH",
119
+ "CI",
120
+ "CK",
121
+ "CL",
122
+ "CM",
123
+ "CN",
124
+ "CO",
125
+ "CR",
126
+ "CU",
127
+ "CV",
128
+ "CW",
129
+ "CX",
130
+ "CY",
131
+ "CZ",
132
+ "DE",
133
+ "DJ",
134
+ "DK",
135
+ "DM",
136
+ "DO",
137
+ "DZ",
138
+ "EC",
139
+ "EE",
140
+ "EG",
141
+ "EH",
142
+ "EL",
143
+ "ER",
144
+ "ES",
145
+ "ET",
146
+ "EU",
147
+ "FI",
148
+ "FJ",
149
+ "FK",
150
+ "FM",
151
+ "FO",
152
+ "FR",
153
+ "GA",
154
+ "GD",
155
+ "GE",
156
+ "GF",
157
+ "GG",
158
+ "GH",
159
+ "GI",
160
+ "GL",
161
+ "GM",
162
+ "GN",
163
+ "GP",
164
+ "GQ",
165
+ "GS",
166
+ "GT",
167
+ "GU",
168
+ "GW",
169
+ "GY",
170
+ "HK",
171
+ "HM",
172
+ "HN",
173
+ "HR",
174
+ "HT",
175
+ "HU",
176
+ "ID",
177
+ "IE",
178
+ "IL",
179
+ "IM",
180
+ "IN",
181
+ "IO",
182
+ "IQ",
183
+ "IR",
184
+ "IS",
185
+ "IT",
186
+ "JE",
187
+ "JM",
188
+ "JO",
189
+ "JP",
190
+ "KE",
191
+ "KG",
192
+ "KH",
193
+ "KI",
194
+ "KM",
195
+ "KN",
196
+ "KP",
197
+ "KR",
198
+ "KW",
199
+ "KY",
200
+ "KZ",
201
+ "LA",
202
+ "LB",
203
+ "LC",
204
+ "LI",
205
+ "LK",
206
+ "LR",
207
+ "LS",
208
+ "LT",
209
+ "LU",
210
+ "LV",
211
+ "LY",
212
+ "MA",
213
+ "MC",
214
+ "MD",
215
+ "ME",
216
+ "MF",
217
+ "MG",
218
+ "MH",
219
+ "MK",
220
+ "ML",
221
+ "MM",
222
+ "MN",
223
+ "MO",
224
+ "MP",
225
+ "MQ",
226
+ "MR",
227
+ "MS",
228
+ "MT",
229
+ "MU",
230
+ "MV",
231
+ "MW",
232
+ "MX",
233
+ "MY",
234
+ "MZ",
235
+ "NA",
236
+ "NC",
237
+ "NE",
238
+ "NF",
239
+ "NG",
240
+ "NI",
241
+ "NL",
242
+ "NO",
243
+ "NP",
244
+ "NR",
245
+ "NU",
246
+ "NZ",
247
+ "OM",
248
+ "PA",
249
+ "PE",
250
+ "PF",
251
+ "PG",
252
+ "PH",
253
+ "PK",
254
+ "PL",
255
+ "PM",
256
+ "PN",
257
+ "PR",
258
+ "PS",
259
+ "PT",
260
+ "PW",
261
+ "PY",
262
+ "QA",
263
+ "RE",
264
+ "RO",
265
+ "RS",
266
+ "RU",
267
+ "RW",
268
+ "SA",
269
+ "SB",
270
+ "SC",
271
+ "SD",
272
+ "SE",
273
+ "SG",
274
+ "SH",
275
+ "SI",
276
+ "SJ",
277
+ "SK",
278
+ "SL",
279
+ "SM",
280
+ "SN",
281
+ "SO",
282
+ "SR",
283
+ "SS",
284
+ "ST",
285
+ "SV",
286
+ "SX",
287
+ "SY",
288
+ "SZ",
289
+ "TC",
290
+ "TD",
291
+ "TF",
292
+ "TG",
293
+ "TH",
294
+ "TJ",
295
+ "TK",
296
+ "TL",
297
+ "TM",
298
+ "TN",
299
+ "TO",
300
+ "TR",
301
+ "TT",
302
+ "TV",
303
+ "TW",
304
+ "TZ",
305
+ "UA",
306
+ "UG",
307
+ "UK",
308
+ "UM",
309
+ "US",
310
+ "UY",
311
+ "UZ",
312
+ "VA",
313
+ "VC",
314
+ "VE",
315
+ "VG",
316
+ "VI",
317
+ "VN",
318
+ "VU",
319
+ "WF",
320
+ "WS",
321
+ "YE",
322
+ "YT",
323
+ "ZA",
324
+ "ZM",
325
+ "ZW"
326
+ ]
73
327
  },
74
328
  "locality": {
75
329
  "description": "Optional locality or city.",
@@ -84,12 +338,25 @@
84
338
  "type": "string"
85
339
  },
86
340
  "contactUri": {
87
- "description": "Optional contact URI for the entity.",
88
- "type": "string"
341
+ "type": "string",
342
+ "pattern": "^(?:mailto:)?[A-Za-z0-9!$'*+_~-]+(?:\\.[A-Za-z0-9!$'*+_~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$",
343
+ "description": "E-mail address of the entity, for example info@example.com or mailto:info@example.com, published as a mailto: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Use ASCII characters; write an internationalized domain in its xn-- form."
344
+ },
345
+ "website": {
346
+ "type": "string",
347
+ "pattern": "^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$",
348
+ "description": "Web site of the entity, an absolute http or https URI published in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Write it as a URL parser serializes it, for example https://example.com/."
349
+ },
350
+ "phone": {
351
+ "description": "Optional telephone number of the entity in international form, for example +49-30-1234567 or tel:+49-30-1234567, published as a tel: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2).",
352
+ "type": "string",
353
+ "pattern": "^(?:tel:)?\\+(?:[0-9][().-]?){2,14}[0-9]$"
89
354
  }
90
355
  },
91
356
  "required": [
92
- "name"
357
+ "name",
358
+ "contactUri",
359
+ "website"
93
360
  ],
94
361
  "additionalProperties": false,
95
362
  "description": "Entity metadata."
@@ -109,17 +376,17 @@
109
376
  "type": {
110
377
  "type": "string",
111
378
  "const": "external",
112
- "description": "Provide external PEM certificates directly."
379
+ "description": "`internal` references key chains of this tenant; `external` carries the certificates directly, as PEM or Base64 DER."
113
380
  },
114
381
  "issuerCertPem": {
115
382
  "type": "string",
116
383
  "minLength": 1,
117
- "description": "Issuer certificate in PEM format."
384
+ "description": "Issuer certificate as PEM or Base64 DER."
118
385
  },
119
386
  "revocationCertPem": {
120
387
  "type": "string",
121
388
  "minLength": 1,
122
- "description": "Revocation/status certificate in PEM format."
389
+ "description": "Revocation/status certificate as PEM or Base64 DER."
123
390
  },
124
391
  "providerType": {
125
392
  "description": "Provider role; defaults to attestation-provider.",
@@ -138,20 +405,274 @@
138
405
  "description": "Display name of the trusted entity."
139
406
  },
140
407
  "lang": {
141
- "description": "Optional language tag for entity info.",
142
- "type": "string"
408
+ "description": "Optional language of the entity's name, postal address, contact and information URI: an IETF RFC 5646 language tag in lower case, for example en or de-at (ETSI TS 119 602 clause 6.1.4). Defaults to en. With another language, the list publishes these texts in that language and again under en with the same text, since every list supports English (clause 6.1.4); service names are published in English only.",
409
+ "type": "string",
410
+ "pattern": "^(?:(?:[a-z]{2,3}(?:-[a-z]{3}){0,3}|[a-z]{4,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|[0-9]{3}))?(?:-(?:[a-z0-9]{5,8}|[0-9][a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?)$"
143
411
  },
144
412
  "locale": {
145
413
  "description": "Optional locale identifier.",
146
414
  "type": "string"
147
415
  },
148
416
  "uri": {
149
- "description": "Optional entity URI.",
150
- "type": "string"
417
+ "description": "Optional absolute URI where relying parties find information about the entity, published as TEInformationURI. Write it as a URL parser serializes it, for example https://example.com/about with spaces percent-encoded.",
418
+ "type": "string",
419
+ "format": "uri"
151
420
  },
152
421
  "country": {
153
- "description": "Optional country name or code.",
154
- "type": "string"
422
+ "description": "Optional country of the postal address: an ISO 3166-1 alpha-2 code in capital letters, with \"UK\" for the United Kingdom, \"EL\" for Greece and \"EU\" for the European Union (ETSI TS 119 602 clause 6.1.5). Defaults to EU.",
423
+ "type": "string",
424
+ "enum": [
425
+ "AD",
426
+ "AE",
427
+ "AF",
428
+ "AG",
429
+ "AI",
430
+ "AL",
431
+ "AM",
432
+ "AO",
433
+ "AQ",
434
+ "AR",
435
+ "AS",
436
+ "AT",
437
+ "AU",
438
+ "AW",
439
+ "AX",
440
+ "AZ",
441
+ "BA",
442
+ "BB",
443
+ "BD",
444
+ "BE",
445
+ "BF",
446
+ "BG",
447
+ "BH",
448
+ "BI",
449
+ "BJ",
450
+ "BL",
451
+ "BM",
452
+ "BN",
453
+ "BO",
454
+ "BQ",
455
+ "BR",
456
+ "BS",
457
+ "BT",
458
+ "BV",
459
+ "BW",
460
+ "BY",
461
+ "BZ",
462
+ "CA",
463
+ "CC",
464
+ "CD",
465
+ "CF",
466
+ "CG",
467
+ "CH",
468
+ "CI",
469
+ "CK",
470
+ "CL",
471
+ "CM",
472
+ "CN",
473
+ "CO",
474
+ "CR",
475
+ "CU",
476
+ "CV",
477
+ "CW",
478
+ "CX",
479
+ "CY",
480
+ "CZ",
481
+ "DE",
482
+ "DJ",
483
+ "DK",
484
+ "DM",
485
+ "DO",
486
+ "DZ",
487
+ "EC",
488
+ "EE",
489
+ "EG",
490
+ "EH",
491
+ "EL",
492
+ "ER",
493
+ "ES",
494
+ "ET",
495
+ "EU",
496
+ "FI",
497
+ "FJ",
498
+ "FK",
499
+ "FM",
500
+ "FO",
501
+ "FR",
502
+ "GA",
503
+ "GD",
504
+ "GE",
505
+ "GF",
506
+ "GG",
507
+ "GH",
508
+ "GI",
509
+ "GL",
510
+ "GM",
511
+ "GN",
512
+ "GP",
513
+ "GQ",
514
+ "GS",
515
+ "GT",
516
+ "GU",
517
+ "GW",
518
+ "GY",
519
+ "HK",
520
+ "HM",
521
+ "HN",
522
+ "HR",
523
+ "HT",
524
+ "HU",
525
+ "ID",
526
+ "IE",
527
+ "IL",
528
+ "IM",
529
+ "IN",
530
+ "IO",
531
+ "IQ",
532
+ "IR",
533
+ "IS",
534
+ "IT",
535
+ "JE",
536
+ "JM",
537
+ "JO",
538
+ "JP",
539
+ "KE",
540
+ "KG",
541
+ "KH",
542
+ "KI",
543
+ "KM",
544
+ "KN",
545
+ "KP",
546
+ "KR",
547
+ "KW",
548
+ "KY",
549
+ "KZ",
550
+ "LA",
551
+ "LB",
552
+ "LC",
553
+ "LI",
554
+ "LK",
555
+ "LR",
556
+ "LS",
557
+ "LT",
558
+ "LU",
559
+ "LV",
560
+ "LY",
561
+ "MA",
562
+ "MC",
563
+ "MD",
564
+ "ME",
565
+ "MF",
566
+ "MG",
567
+ "MH",
568
+ "MK",
569
+ "ML",
570
+ "MM",
571
+ "MN",
572
+ "MO",
573
+ "MP",
574
+ "MQ",
575
+ "MR",
576
+ "MS",
577
+ "MT",
578
+ "MU",
579
+ "MV",
580
+ "MW",
581
+ "MX",
582
+ "MY",
583
+ "MZ",
584
+ "NA",
585
+ "NC",
586
+ "NE",
587
+ "NF",
588
+ "NG",
589
+ "NI",
590
+ "NL",
591
+ "NO",
592
+ "NP",
593
+ "NR",
594
+ "NU",
595
+ "NZ",
596
+ "OM",
597
+ "PA",
598
+ "PE",
599
+ "PF",
600
+ "PG",
601
+ "PH",
602
+ "PK",
603
+ "PL",
604
+ "PM",
605
+ "PN",
606
+ "PR",
607
+ "PS",
608
+ "PT",
609
+ "PW",
610
+ "PY",
611
+ "QA",
612
+ "RE",
613
+ "RO",
614
+ "RS",
615
+ "RU",
616
+ "RW",
617
+ "SA",
618
+ "SB",
619
+ "SC",
620
+ "SD",
621
+ "SE",
622
+ "SG",
623
+ "SH",
624
+ "SI",
625
+ "SJ",
626
+ "SK",
627
+ "SL",
628
+ "SM",
629
+ "SN",
630
+ "SO",
631
+ "SR",
632
+ "SS",
633
+ "ST",
634
+ "SV",
635
+ "SX",
636
+ "SY",
637
+ "SZ",
638
+ "TC",
639
+ "TD",
640
+ "TF",
641
+ "TG",
642
+ "TH",
643
+ "TJ",
644
+ "TK",
645
+ "TL",
646
+ "TM",
647
+ "TN",
648
+ "TO",
649
+ "TR",
650
+ "TT",
651
+ "TV",
652
+ "TW",
653
+ "TZ",
654
+ "UA",
655
+ "UG",
656
+ "UK",
657
+ "UM",
658
+ "US",
659
+ "UY",
660
+ "UZ",
661
+ "VA",
662
+ "VC",
663
+ "VE",
664
+ "VG",
665
+ "VI",
666
+ "VN",
667
+ "VU",
668
+ "WF",
669
+ "WS",
670
+ "YE",
671
+ "YT",
672
+ "ZA",
673
+ "ZM",
674
+ "ZW"
675
+ ]
155
676
  },
156
677
  "locality": {
157
678
  "description": "Optional locality or city.",
@@ -166,12 +687,25 @@
166
687
  "type": "string"
167
688
  },
168
689
  "contactUri": {
169
- "description": "Optional contact URI for the entity.",
170
- "type": "string"
690
+ "type": "string",
691
+ "pattern": "^(?:mailto:)?[A-Za-z0-9!$'*+_~-]+(?:\\.[A-Za-z0-9!$'*+_~-]+)*@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$",
692
+ "description": "E-mail address of the entity, for example info@example.com or mailto:info@example.com, published as a mailto: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Use ASCII characters; write an internationalized domain in its xn-- form."
693
+ },
694
+ "website": {
695
+ "type": "string",
696
+ "pattern": "^https?:\\/\\/[^\\s/?#]+(?:[/?#]\\S*)?$",
697
+ "description": "Web site of the entity, an absolute http or https URI published in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2). Write it as a URL parser serializes it, for example https://example.com/."
698
+ },
699
+ "phone": {
700
+ "description": "Optional telephone number of the entity in international form, for example +49-30-1234567 or tel:+49-30-1234567, published as a tel: URI in TEElectronicAddress (ETSI TS 119 602 clause 6.5.3.2).",
701
+ "type": "string",
702
+ "pattern": "^(?:tel:)?\\+(?:[0-9][().-]?){2,14}[0-9]$"
171
703
  }
172
704
  },
173
705
  "required": [
174
- "name"
706
+ "name",
707
+ "contactUri",
708
+ "website"
175
709
  ],
176
710
  "additionalProperties": false,
177
711
  "description": "Entity metadata."