@eudiplo/cli 7.0.1 → 7.1.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 (44) hide show
  1. package/README.md +34 -3
  2. package/dist/config-validate/index.d.ts +4 -0
  3. package/dist/config-validate/index.d.ts.map +1 -0
  4. package/dist/config-validate/index.js +4 -0
  5. package/dist/config-validate/index.js.map +1 -0
  6. package/dist/config-validate/registry.d.ts +5 -0
  7. package/dist/config-validate/registry.d.ts.map +1 -0
  8. package/dist/config-validate/registry.js +8 -0
  9. package/dist/config-validate/registry.js.map +1 -0
  10. package/dist/config-validate/registry.json +138 -0
  11. package/dist/config-validate/report.d.ts +21 -0
  12. package/dist/config-validate/report.d.ts.map +1 -0
  13. package/dist/config-validate/report.js +78 -0
  14. package/dist/config-validate/report.js.map +1 -0
  15. package/dist/config-validate/schemas.d.ts +2 -0
  16. package/dist/config-validate/schemas.d.ts.map +1 -0
  17. package/dist/config-validate/schemas.js +24 -0
  18. package/dist/config-validate/schemas.js.map +1 -0
  19. package/dist/config-validate/types.d.ts +33 -0
  20. package/dist/config-validate/types.d.ts.map +1 -0
  21. package/dist/config-validate/types.js +2 -0
  22. package/dist/config-validate/types.js.map +1 -0
  23. package/dist/config-validate/validator.d.ts +4 -0
  24. package/dist/config-validate/validator.d.ts.map +1 -0
  25. package/dist/config-validate/validator.js +185 -0
  26. package/dist/config-validate/validator.js.map +1 -0
  27. package/dist/runtime.d.ts.map +1 -1
  28. package/dist/runtime.js +34 -1
  29. package/dist/runtime.js.map +1 -1
  30. package/package.json +5 -2
  31. package/templates/demo-config/issuance/status-lists/pid.json +1 -1
  32. package/templates/schemas/CreateAttributeProviderDto.schema.json +99 -0
  33. package/templates/schemas/CreateClientDto.schema.json +76 -0
  34. package/templates/schemas/CreateRegistrarConfigDto.schema.json +61 -0
  35. package/templates/schemas/CreateWebhookEndpointDto.schema.json +99 -0
  36. package/templates/schemas/CredentialConfigCreate.schema.json +673 -0
  37. package/templates/schemas/ImportTenantDto.schema.json +24 -0
  38. package/templates/schemas/IssuanceConfig.schema.json +492 -0
  39. package/templates/schemas/KeyChainImportDto.schema.json +111 -0
  40. package/templates/schemas/KmsConfigDto.schema.json +990 -0
  41. package/templates/schemas/PresentationConfigCreateDto.schema.json +627 -0
  42. package/templates/schemas/StatusListImportDto.schema.json +61 -0
  43. package/templates/schemas/TrustListCreateDto.schema.json +191 -0
  44. package/templates/schemas.manifest.json +14 -0
@@ -0,0 +1,627 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "description": "Presentation configuration identifier."
9
+ },
10
+ "description": {
11
+ "description": "Optional presentation configuration description.",
12
+ "anyOf": [
13
+ {
14
+ "type": "string"
15
+ },
16
+ {
17
+ "type": "null"
18
+ }
19
+ ]
20
+ },
21
+ "lifeTime": {
22
+ "description": "Presentation request lifetime in seconds.",
23
+ "type": "integer",
24
+ "minimum": 1,
25
+ "maximum": 9007199254740991
26
+ },
27
+ "skewSeconds": {
28
+ "description": "Clock skew tolerance in seconds.",
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "maximum": 9007199254740991
32
+ },
33
+ "statusCheckMode": {
34
+ "description": "Revocation/status check mode.",
35
+ "type": "string",
36
+ "enum": [
37
+ "strict",
38
+ "best_effort",
39
+ "disabled"
40
+ ]
41
+ },
42
+ "dcql_query": {
43
+ "type": "object",
44
+ "properties": {
45
+ "credentials": {
46
+ "minItems": 1,
47
+ "type": "array",
48
+ "items": {
49
+ "oneOf": [
50
+ {
51
+ "type": "object",
52
+ "properties": {
53
+ "id": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "pattern": "^[A-Za-z0-9_-]+$",
57
+ "description": "Credential query identifier."
58
+ },
59
+ "multiple": {
60
+ "description": "Allow multiple matching credentials.",
61
+ "type": "boolean"
62
+ },
63
+ "claim_sets": {
64
+ "description": "Optional claim set constraints.",
65
+ "type": "array",
66
+ "items": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string"
70
+ }
71
+ }
72
+ },
73
+ "trusted_authorities": {
74
+ "description": "Optional trusted authority constraints.",
75
+ "type": "array",
76
+ "items": {
77
+ "oneOf": [
78
+ {
79
+ "type": "object",
80
+ "properties": {
81
+ "type": {
82
+ "type": "string",
83
+ "const": "etsi_tl",
84
+ "description": "Trusted authority type discriminator for ETSI trust lists."
85
+ },
86
+ "values": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "object",
90
+ "properties": {
91
+ "trustListId": {
92
+ "description": "Optional trust list id reference.",
93
+ "type": "string"
94
+ },
95
+ "url": {
96
+ "description": "Optional trust list URL reference.",
97
+ "anyOf": [
98
+ {
99
+ "type": "string",
100
+ "format": "uri"
101
+ },
102
+ {
103
+ "type": "string",
104
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
105
+ }
106
+ ]
107
+ },
108
+ "verifierKey": {
109
+ "description": "Optional verifier key material.",
110
+ "type": "object",
111
+ "propertyNames": {
112
+ "type": "string"
113
+ },
114
+ "additionalProperties": {}
115
+ },
116
+ "verifierX509Der": {
117
+ "description": "Optional verifier certificate in DER/base64 form.",
118
+ "type": "string"
119
+ }
120
+ },
121
+ "additionalProperties": false
122
+ },
123
+ "description": "Trust list references for ETSI TL verification."
124
+ }
125
+ },
126
+ "required": [
127
+ "type",
128
+ "values"
129
+ ],
130
+ "additionalProperties": false
131
+ },
132
+ {
133
+ "type": "object",
134
+ "properties": {
135
+ "type": {
136
+ "type": "string",
137
+ "const": "openid_federation",
138
+ "description": "Trusted authority type discriminator for OpenID Federation."
139
+ },
140
+ "values": {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ },
145
+ "description": "OpenID Federation authority identifiers."
146
+ }
147
+ },
148
+ "required": [
149
+ "type",
150
+ "values"
151
+ ],
152
+ "additionalProperties": false
153
+ }
154
+ ]
155
+ }
156
+ },
157
+ "format": {
158
+ "type": "string",
159
+ "const": "dc+sd-jwt",
160
+ "description": "Credential format discriminator."
161
+ },
162
+ "meta": {
163
+ "type": "object",
164
+ "properties": {
165
+ "vct_values": {
166
+ "minItems": 1,
167
+ "type": "array",
168
+ "items": {
169
+ "type": "string"
170
+ },
171
+ "description": "Accepted VCT values."
172
+ }
173
+ },
174
+ "required": [
175
+ "vct_values"
176
+ ],
177
+ "additionalProperties": false
178
+ },
179
+ "claims": {
180
+ "description": "Optional claim-level constraints.",
181
+ "type": "array",
182
+ "items": {
183
+ "type": "object",
184
+ "properties": {
185
+ "id": {
186
+ "description": "Optional claim query id.",
187
+ "type": "string"
188
+ },
189
+ "path": {
190
+ "type": "array",
191
+ "items": {
192
+ "anyOf": [
193
+ {
194
+ "type": "string"
195
+ },
196
+ {
197
+ "type": "number"
198
+ }
199
+ ]
200
+ },
201
+ "description": "Path to the claim value in presented credentials."
202
+ },
203
+ "values": {
204
+ "description": "Optional allowed values for the claim.",
205
+ "type": "array",
206
+ "items": {
207
+ "type": "string"
208
+ }
209
+ }
210
+ },
211
+ "required": [
212
+ "path"
213
+ ],
214
+ "additionalProperties": false
215
+ }
216
+ }
217
+ },
218
+ "required": [
219
+ "id",
220
+ "format",
221
+ "meta"
222
+ ],
223
+ "additionalProperties": false
224
+ },
225
+ {
226
+ "type": "object",
227
+ "properties": {
228
+ "id": {
229
+ "type": "string",
230
+ "minLength": 1,
231
+ "pattern": "^[A-Za-z0-9_-]+$",
232
+ "description": "Credential query identifier."
233
+ },
234
+ "multiple": {
235
+ "description": "Allow multiple matching credentials.",
236
+ "type": "boolean"
237
+ },
238
+ "claim_sets": {
239
+ "description": "Optional claim set constraints.",
240
+ "type": "array",
241
+ "items": {
242
+ "type": "array",
243
+ "items": {
244
+ "type": "string"
245
+ }
246
+ }
247
+ },
248
+ "trusted_authorities": {
249
+ "description": "Optional trusted authority constraints.",
250
+ "type": "array",
251
+ "items": {
252
+ "oneOf": [
253
+ {
254
+ "type": "object",
255
+ "properties": {
256
+ "type": {
257
+ "type": "string",
258
+ "const": "etsi_tl",
259
+ "description": "Trusted authority type discriminator for ETSI trust lists."
260
+ },
261
+ "values": {
262
+ "type": "array",
263
+ "items": {
264
+ "type": "object",
265
+ "properties": {
266
+ "trustListId": {
267
+ "description": "Optional trust list id reference.",
268
+ "type": "string"
269
+ },
270
+ "url": {
271
+ "description": "Optional trust list URL reference.",
272
+ "anyOf": [
273
+ {
274
+ "type": "string",
275
+ "format": "uri"
276
+ },
277
+ {
278
+ "type": "string",
279
+ "pattern": "^<TENANT_URL>(?:\\/.*)?$"
280
+ }
281
+ ]
282
+ },
283
+ "verifierKey": {
284
+ "description": "Optional verifier key material.",
285
+ "type": "object",
286
+ "propertyNames": {
287
+ "type": "string"
288
+ },
289
+ "additionalProperties": {}
290
+ },
291
+ "verifierX509Der": {
292
+ "description": "Optional verifier certificate in DER/base64 form.",
293
+ "type": "string"
294
+ }
295
+ },
296
+ "additionalProperties": false
297
+ },
298
+ "description": "Trust list references for ETSI TL verification."
299
+ }
300
+ },
301
+ "required": [
302
+ "type",
303
+ "values"
304
+ ],
305
+ "additionalProperties": false
306
+ },
307
+ {
308
+ "type": "object",
309
+ "properties": {
310
+ "type": {
311
+ "type": "string",
312
+ "const": "openid_federation",
313
+ "description": "Trusted authority type discriminator for OpenID Federation."
314
+ },
315
+ "values": {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "string"
319
+ },
320
+ "description": "OpenID Federation authority identifiers."
321
+ }
322
+ },
323
+ "required": [
324
+ "type",
325
+ "values"
326
+ ],
327
+ "additionalProperties": false
328
+ }
329
+ ]
330
+ }
331
+ },
332
+ "format": {
333
+ "type": "string",
334
+ "const": "mso_mdoc",
335
+ "description": "Credential format discriminator."
336
+ },
337
+ "meta": {
338
+ "type": "object",
339
+ "properties": {
340
+ "doctype_value": {
341
+ "type": "string",
342
+ "minLength": 1,
343
+ "description": "Expected mDoc doctype value."
344
+ }
345
+ },
346
+ "required": [
347
+ "doctype_value"
348
+ ],
349
+ "additionalProperties": false
350
+ },
351
+ "claims": {
352
+ "description": "Optional mDoc claim-level constraints.",
353
+ "type": "array",
354
+ "items": {
355
+ "type": "object",
356
+ "properties": {
357
+ "id": {
358
+ "description": "Optional claim query id.",
359
+ "type": "string"
360
+ },
361
+ "path": {
362
+ "type": "array",
363
+ "items": {
364
+ "anyOf": [
365
+ {
366
+ "type": "string"
367
+ },
368
+ {
369
+ "type": "number"
370
+ }
371
+ ]
372
+ },
373
+ "description": "Path to the claim value in presented credentials."
374
+ },
375
+ "values": {
376
+ "description": "Optional allowed values for the claim.",
377
+ "type": "array",
378
+ "items": {
379
+ "type": "string"
380
+ }
381
+ },
382
+ "intent_to_retain": {
383
+ "description": "Whether relying party intends to retain the claim.",
384
+ "type": "boolean"
385
+ }
386
+ },
387
+ "required": [
388
+ "path"
389
+ ],
390
+ "additionalProperties": false
391
+ }
392
+ }
393
+ },
394
+ "required": [
395
+ "id",
396
+ "format",
397
+ "meta"
398
+ ],
399
+ "additionalProperties": false
400
+ }
401
+ ]
402
+ },
403
+ "description": "Credential queries requested by the verifier."
404
+ },
405
+ "credential_sets": {
406
+ "description": "Optional higher-level credential set requirements.",
407
+ "type": "array",
408
+ "items": {
409
+ "type": "object",
410
+ "properties": {
411
+ "options": {
412
+ "minItems": 1,
413
+ "type": "array",
414
+ "items": {
415
+ "minItems": 1,
416
+ "type": "array",
417
+ "items": {
418
+ "type": "string"
419
+ }
420
+ },
421
+ "description": "Alternative credential query id combinations."
422
+ },
423
+ "required": {
424
+ "description": "Whether this credential set is mandatory.",
425
+ "type": "boolean"
426
+ }
427
+ },
428
+ "required": [
429
+ "options"
430
+ ],
431
+ "additionalProperties": false
432
+ }
433
+ }
434
+ },
435
+ "required": [
436
+ "credentials"
437
+ ],
438
+ "additionalProperties": false,
439
+ "description": "DCQL query defining requested credentials and claims."
440
+ },
441
+ "transaction_data": {
442
+ "description": "Optional transaction data descriptors.",
443
+ "type": "array",
444
+ "items": {
445
+ "type": "object",
446
+ "properties": {
447
+ "type": {
448
+ "type": "string",
449
+ "description": "Transaction data type identifier."
450
+ },
451
+ "credential_ids": {
452
+ "type": "array",
453
+ "items": {
454
+ "type": "string"
455
+ },
456
+ "description": "Credential query ids this transaction data applies to."
457
+ }
458
+ },
459
+ "required": [
460
+ "type",
461
+ "credential_ids"
462
+ ],
463
+ "additionalProperties": {}
464
+ }
465
+ },
466
+ "registration_cert": {
467
+ "description": "Optional registration certificate request settings.",
468
+ "anyOf": [
469
+ {
470
+ "type": "object",
471
+ "properties": {
472
+ "id": {
473
+ "type": "string"
474
+ },
475
+ "body": {
476
+ "type": "object",
477
+ "properties": {
478
+ "privacy_policy": {
479
+ "type": "string"
480
+ },
481
+ "support_uri": {
482
+ "type": "string"
483
+ },
484
+ "intermediary": {
485
+ "type": "string"
486
+ },
487
+ "purpose": {
488
+ "type": "array",
489
+ "items": {
490
+ "type": "object",
491
+ "properties": {
492
+ "lang": {
493
+ "type": "string"
494
+ },
495
+ "content": {
496
+ "type": "string"
497
+ }
498
+ },
499
+ "required": [
500
+ "lang",
501
+ "content"
502
+ ],
503
+ "additionalProperties": false
504
+ }
505
+ },
506
+ "credentials": {
507
+ "type": "array",
508
+ "items": {
509
+ "type": "object",
510
+ "propertyNames": {
511
+ "type": "string"
512
+ },
513
+ "additionalProperties": {}
514
+ }
515
+ },
516
+ "provided_attestations": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "object",
520
+ "propertyNames": {
521
+ "type": "string"
522
+ },
523
+ "additionalProperties": {}
524
+ }
525
+ }
526
+ },
527
+ "additionalProperties": false
528
+ },
529
+ "jwt": {
530
+ "type": "string"
531
+ }
532
+ },
533
+ "additionalProperties": false
534
+ },
535
+ {
536
+ "type": "null"
537
+ }
538
+ ]
539
+ },
540
+ "webhookEndpointId": {
541
+ "description": "Optional webhook endpoint id for presentation callbacks.",
542
+ "anyOf": [
543
+ {
544
+ "type": "string"
545
+ },
546
+ {
547
+ "type": "null"
548
+ }
549
+ ]
550
+ },
551
+ "attached": {
552
+ "description": "Optional attachments included with presentation requests.",
553
+ "anyOf": [
554
+ {
555
+ "type": "array",
556
+ "items": {
557
+ "type": "object",
558
+ "properties": {
559
+ "format": {
560
+ "type": "string",
561
+ "description": "Attachment format identifier."
562
+ },
563
+ "data": {
564
+ "description": "Attachment payload."
565
+ },
566
+ "credential_ids": {
567
+ "description": "Optional credential query ids bound to this attachment.",
568
+ "type": "array",
569
+ "items": {
570
+ "type": "string"
571
+ }
572
+ }
573
+ },
574
+ "required": [
575
+ "format",
576
+ "data"
577
+ ],
578
+ "additionalProperties": false
579
+ }
580
+ },
581
+ {
582
+ "type": "null"
583
+ }
584
+ ]
585
+ },
586
+ "redirectUri": {
587
+ "description": "Optional redirect URI after presentation completion.",
588
+ "anyOf": [
589
+ {
590
+ "type": "string"
591
+ },
592
+ {
593
+ "type": "null"
594
+ }
595
+ ]
596
+ },
597
+ "accessKeyChainId": {
598
+ "description": "Optional key chain id for access token/auth operations.",
599
+ "anyOf": [
600
+ {
601
+ "type": "string"
602
+ },
603
+ {
604
+ "type": "null"
605
+ }
606
+ ]
607
+ },
608
+ "readerAuth": {
609
+ "description": "Whether reader authentication is required for mDoc requests.",
610
+ "anyOf": [
611
+ {
612
+ "type": "boolean"
613
+ },
614
+ {
615
+ "type": "null"
616
+ }
617
+ ]
618
+ }
619
+ },
620
+ "required": [
621
+ "id",
622
+ "dcql_query"
623
+ ],
624
+ "additionalProperties": false,
625
+ "$id": "./PresentationConfigCreateDto.schema.json",
626
+ "title": "PresentationConfigCreateDto"
627
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "type": "string",
7
+ "minLength": 1,
8
+ "description": "Status list identifier."
9
+ },
10
+ "credentialConfigurationId": {
11
+ "description": "Optional credential configuration binding. Null means shared list.",
12
+ "anyOf": [
13
+ {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ]
21
+ },
22
+ "keyChainId": {
23
+ "description": "Optional key chain used for signing this status list.",
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "capacity": {
28
+ "description": "Optional list capacity override.",
29
+ "type": "integer",
30
+ "minimum": 100,
31
+ "maximum": 9007199254740991
32
+ },
33
+ "bits": {
34
+ "description": "Optional bits-per-status override.",
35
+ "anyOf": [
36
+ {
37
+ "type": "number",
38
+ "const": 1
39
+ },
40
+ {
41
+ "type": "number",
42
+ "const": 2
43
+ },
44
+ {
45
+ "type": "number",
46
+ "const": 4
47
+ },
48
+ {
49
+ "type": "number",
50
+ "const": 8
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ "required": [
56
+ "id"
57
+ ],
58
+ "additionalProperties": false,
59
+ "$id": "./StatusListImportDto.schema.json",
60
+ "title": "StatusListImportDto"
61
+ }