@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,492 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "batchSize": {
6
+ "description": "Optional issuance batch size.",
7
+ "type": "integer",
8
+ "minimum": 1,
9
+ "maximum": 9007199254740991
10
+ },
11
+ "dPopRequired": {
12
+ "description": "Require DPoP proofs for issuance endpoints.",
13
+ "type": "boolean"
14
+ },
15
+ "walletAttestationRequired": {
16
+ "description": "Require wallet attestation in issuance flows.",
17
+ "type": "boolean"
18
+ },
19
+ "walletProviderTrustLists": {
20
+ "description": "Optional wallet provider trust list references.",
21
+ "type": "array",
22
+ "items": {
23
+ "type": "object",
24
+ "properties": {
25
+ "url": {
26
+ "type": "string",
27
+ "format": "uri",
28
+ "description": "URL of the wallet provider trust list."
29
+ },
30
+ "verifierKey": {
31
+ "description": "Optional verifier key material used for trust list verification.",
32
+ "type": "object",
33
+ "propertyNames": {
34
+ "type": "string"
35
+ },
36
+ "additionalProperties": {}
37
+ },
38
+ "verifierX509Der": {
39
+ "description": "Optional verifier certificate in DER/base64 form.",
40
+ "type": "string"
41
+ }
42
+ },
43
+ "required": [
44
+ "url"
45
+ ],
46
+ "additionalProperties": false
47
+ }
48
+ },
49
+ "signingKeyId": {
50
+ "description": "Default signing key chain id for credential issuance.",
51
+ "type": "string",
52
+ "minLength": 1
53
+ },
54
+ "authorizationServers": {
55
+ "minItems": 1,
56
+ "type": "array",
57
+ "items": {
58
+ "oneOf": [
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "type": {
63
+ "type": "string",
64
+ "const": "external",
65
+ "description": "Use an externally managed authorization server."
66
+ },
67
+ "id": {
68
+ "type": "string",
69
+ "minLength": 1,
70
+ "description": "Authorization server identifier."
71
+ },
72
+ "issuer": {
73
+ "type": "string",
74
+ "format": "uri",
75
+ "description": "Issuer URL for the external authorization server."
76
+ },
77
+ "label": {
78
+ "description": "Optional display label for UI selection.",
79
+ "type": "string"
80
+ },
81
+ "enabled": {
82
+ "description": "Whether this authorization server entry is enabled.",
83
+ "type": "boolean"
84
+ }
85
+ },
86
+ "required": [
87
+ "type",
88
+ "id",
89
+ "issuer"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "type": {
97
+ "type": "string",
98
+ "const": "oid4vp",
99
+ "description": "Use OID4VP-based authorization server chaining."
100
+ },
101
+ "id": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "description": "Authorization server identifier."
105
+ },
106
+ "presentationConfigId": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "description": "Presentation configuration id used during authorization."
110
+ },
111
+ "immediateWalletRedirect": {
112
+ "description": "Redirect wallets immediately after authorization response creation.",
113
+ "type": "boolean"
114
+ },
115
+ "token": {
116
+ "description": "Optional token issuance settings.",
117
+ "type": "object",
118
+ "properties": {
119
+ "lifetimeSeconds": {
120
+ "description": "Access token lifetime in seconds.",
121
+ "type": "number",
122
+ "minimum": 60
123
+ },
124
+ "signingKeyId": {
125
+ "description": "Optional key chain id used to sign issued tokens.",
126
+ "type": "string",
127
+ "minLength": 1
128
+ },
129
+ "refreshTokenEnabled": {
130
+ "description": "Enable issuing refresh tokens.",
131
+ "type": "boolean"
132
+ },
133
+ "refreshTokenExpiresInSeconds": {
134
+ "description": "Refresh token lifetime in seconds.",
135
+ "type": "number",
136
+ "minimum": 60
137
+ }
138
+ },
139
+ "additionalProperties": false
140
+ },
141
+ "requireDPoP": {
142
+ "description": "Require DPoP proofs for token/credential requests.",
143
+ "type": "boolean"
144
+ },
145
+ "label": {
146
+ "description": "Optional display label for UI selection.",
147
+ "type": "string"
148
+ },
149
+ "enabled": {
150
+ "description": "Whether this authorization server entry is enabled.",
151
+ "type": "boolean"
152
+ }
153
+ },
154
+ "required": [
155
+ "type",
156
+ "id",
157
+ "presentationConfigId"
158
+ ],
159
+ "additionalProperties": false
160
+ },
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "type": {
165
+ "type": "string",
166
+ "const": "chained",
167
+ "description": "Use upstream OIDC as authorization source."
168
+ },
169
+ "id": {
170
+ "type": "string",
171
+ "minLength": 1,
172
+ "description": "Authorization server identifier."
173
+ },
174
+ "upstream": {
175
+ "type": "object",
176
+ "properties": {
177
+ "issuer": {
178
+ "type": "string",
179
+ "format": "uri",
180
+ "description": "Upstream OIDC issuer URL."
181
+ },
182
+ "clientId": {
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "description": "Client id for upstream OIDC authentication."
186
+ },
187
+ "clientSecret": {
188
+ "description": "Optional client secret for upstream OIDC authentication.",
189
+ "type": "string",
190
+ "minLength": 1
191
+ },
192
+ "scopes": {
193
+ "description": "Optional scopes requested from the upstream issuer.",
194
+ "type": "array",
195
+ "items": {
196
+ "type": "string",
197
+ "minLength": 1
198
+ }
199
+ }
200
+ },
201
+ "required": [
202
+ "issuer",
203
+ "clientId"
204
+ ],
205
+ "additionalProperties": false,
206
+ "description": "Upstream OIDC connection settings."
207
+ },
208
+ "token": {
209
+ "description": "Optional token issuance settings.",
210
+ "type": "object",
211
+ "properties": {
212
+ "lifetimeSeconds": {
213
+ "description": "Access token lifetime in seconds.",
214
+ "type": "number",
215
+ "minimum": 60
216
+ },
217
+ "signingKeyId": {
218
+ "description": "Optional key chain id used to sign issued tokens.",
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "refreshTokenEnabled": {
223
+ "description": "Enable issuing refresh tokens.",
224
+ "type": "boolean"
225
+ },
226
+ "refreshTokenExpiresInSeconds": {
227
+ "description": "Refresh token lifetime in seconds.",
228
+ "type": "number",
229
+ "minimum": 60
230
+ }
231
+ },
232
+ "additionalProperties": false
233
+ },
234
+ "requireDPoP": {
235
+ "description": "Require DPoP proofs for token/credential requests.",
236
+ "type": "boolean"
237
+ },
238
+ "label": {
239
+ "description": "Optional display label for UI selection.",
240
+ "type": "string"
241
+ },
242
+ "enabled": {
243
+ "description": "Whether this authorization server entry is enabled.",
244
+ "type": "boolean"
245
+ }
246
+ },
247
+ "required": [
248
+ "type",
249
+ "id",
250
+ "upstream"
251
+ ],
252
+ "additionalProperties": false
253
+ },
254
+ {
255
+ "type": "object",
256
+ "properties": {
257
+ "type": {
258
+ "type": "string",
259
+ "const": "built-in",
260
+ "description": "Use EUDIPLO built-in authorization server."
261
+ },
262
+ "id": {
263
+ "type": "string",
264
+ "minLength": 1,
265
+ "description": "Authorization server identifier."
266
+ },
267
+ "token": {
268
+ "description": "Optional token issuance settings.",
269
+ "type": "object",
270
+ "properties": {
271
+ "lifetimeSeconds": {
272
+ "description": "Access token lifetime in seconds.",
273
+ "type": "number",
274
+ "minimum": 60
275
+ },
276
+ "signingKeyId": {
277
+ "description": "Optional key chain id used to sign issued tokens.",
278
+ "type": "string",
279
+ "minLength": 1
280
+ },
281
+ "refreshTokenEnabled": {
282
+ "description": "Enable issuing refresh tokens.",
283
+ "type": "boolean"
284
+ },
285
+ "refreshTokenExpiresInSeconds": {
286
+ "description": "Refresh token lifetime in seconds.",
287
+ "type": "number",
288
+ "minimum": 60
289
+ }
290
+ },
291
+ "additionalProperties": false
292
+ },
293
+ "requireDPoP": {
294
+ "description": "Require DPoP proofs for token/credential requests.",
295
+ "type": "boolean"
296
+ },
297
+ "label": {
298
+ "description": "Optional display label for UI selection.",
299
+ "type": "string"
300
+ },
301
+ "enabled": {
302
+ "description": "Whether this authorization server entry is enabled.",
303
+ "type": "boolean"
304
+ }
305
+ },
306
+ "required": [
307
+ "type",
308
+ "id"
309
+ ],
310
+ "additionalProperties": false
311
+ }
312
+ ],
313
+ "description": "Supported authorization server configurations."
314
+ },
315
+ "description": "Configured authorization server entries."
316
+ },
317
+ "federation": {
318
+ "description": "Optional OpenID Federation settings.",
319
+ "anyOf": [
320
+ {
321
+ "type": "object",
322
+ "properties": {
323
+ "role": {
324
+ "description": "Federation role for this issuer.",
325
+ "type": "string",
326
+ "enum": [
327
+ "trust_anchor",
328
+ "intermediate",
329
+ "leaf"
330
+ ]
331
+ },
332
+ "mode": {
333
+ "description": "Federation operation mode.",
334
+ "type": "string",
335
+ "enum": [
336
+ "federation-only",
337
+ "hybrid"
338
+ ]
339
+ },
340
+ "entityId": {
341
+ "description": "Optional local federation entity id.",
342
+ "type": "string"
343
+ },
344
+ "enforceSigningPolicy": {
345
+ "description": "Enforce strict signing policy checks.",
346
+ "type": "boolean"
347
+ },
348
+ "cacheTtlSeconds": {
349
+ "description": "Cache time-to-live for federation metadata in seconds.",
350
+ "type": "integer",
351
+ "minimum": 1,
352
+ "maximum": 9007199254740991
353
+ },
354
+ "trustAnchors": {
355
+ "type": "array",
356
+ "items": {
357
+ "type": "object",
358
+ "properties": {
359
+ "entityId": {
360
+ "type": "string",
361
+ "minLength": 1,
362
+ "description": "Federation trust anchor entity id."
363
+ },
364
+ "entityConfigurationUri": {
365
+ "type": "string",
366
+ "format": "uri",
367
+ "description": "Entity configuration URI for the trust anchor."
368
+ }
369
+ },
370
+ "required": [
371
+ "entityId",
372
+ "entityConfigurationUri"
373
+ ],
374
+ "additionalProperties": false
375
+ },
376
+ "description": "Federation trust anchors."
377
+ }
378
+ },
379
+ "required": [
380
+ "trustAnchors"
381
+ ],
382
+ "additionalProperties": false
383
+ },
384
+ {
385
+ "type": "null"
386
+ }
387
+ ]
388
+ },
389
+ "registrationCertificate": {
390
+ "description": "Optional registration certificate settings.",
391
+ "anyOf": [
392
+ {
393
+ "type": "object",
394
+ "properties": {
395
+ "enabled": {
396
+ "description": "Enable issuer registration certificate support.",
397
+ "type": "boolean"
398
+ },
399
+ "mode": {
400
+ "description": "How registration certificate data is provided.",
401
+ "type": "string",
402
+ "enum": [
403
+ "import",
404
+ "generate"
405
+ ]
406
+ },
407
+ "jwt": {
408
+ "description": "Optional registration certificate JWT when using import mode.",
409
+ "type": "string"
410
+ },
411
+ "privacyPolicy": {
412
+ "description": "Optional privacy policy URI.",
413
+ "type": "string"
414
+ },
415
+ "supportUri": {
416
+ "description": "Optional support URI.",
417
+ "type": "string"
418
+ }
419
+ },
420
+ "additionalProperties": false
421
+ },
422
+ {
423
+ "type": "null"
424
+ }
425
+ ]
426
+ },
427
+ "display": {
428
+ "description": "Localized issuer metadata shown to wallets.",
429
+ "type": "array",
430
+ "items": {
431
+ "type": "object",
432
+ "properties": {
433
+ "name": {
434
+ "description": "Issuer display name.",
435
+ "type": "string"
436
+ },
437
+ "locale": {
438
+ "description": "Locale tag for this display entry.",
439
+ "type": "string"
440
+ },
441
+ "logo": {
442
+ "description": "Optional issuer logo metadata.",
443
+ "type": "object",
444
+ "properties": {
445
+ "uri": {
446
+ "type": "string",
447
+ "minLength": 1,
448
+ "description": "Logo URI."
449
+ },
450
+ "alt_text": {
451
+ "description": "Optional localized alternative text.",
452
+ "type": "string"
453
+ }
454
+ },
455
+ "required": [
456
+ "uri"
457
+ ],
458
+ "additionalProperties": {}
459
+ }
460
+ },
461
+ "additionalProperties": {}
462
+ }
463
+ },
464
+ "credentialResponseEncryption": {
465
+ "description": "Enable encrypted credential responses.",
466
+ "type": "boolean"
467
+ },
468
+ "credentialRequestEncryption": {
469
+ "description": "Require encrypted credential requests.",
470
+ "type": "boolean"
471
+ },
472
+ "txCodeMaxAttempts": {
473
+ "description": "Maximum verification attempts for transaction codes. Null resets to defaults.",
474
+ "anyOf": [
475
+ {
476
+ "type": "integer",
477
+ "minimum": 1,
478
+ "maximum": 9007199254740991
479
+ },
480
+ {
481
+ "type": "null"
482
+ }
483
+ ]
484
+ }
485
+ },
486
+ "required": [
487
+ "authorizationServers"
488
+ ],
489
+ "additionalProperties": false,
490
+ "$id": "./IssuanceConfig.schema.json",
491
+ "title": "IssuanceConfig"
492
+ }
@@ -0,0 +1,111 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "description": "Optional key chain id. If omitted, one is generated.",
7
+ "type": "string"
8
+ },
9
+ "key": {
10
+ "type": "object",
11
+ "properties": {
12
+ "kty": {
13
+ "type": "string",
14
+ "description": "Key type (for example EC)."
15
+ },
16
+ "x": {
17
+ "type": "string",
18
+ "description": "Elliptic curve public x coordinate."
19
+ },
20
+ "y": {
21
+ "type": "string",
22
+ "description": "Elliptic curve public y coordinate."
23
+ },
24
+ "crv": {
25
+ "type": "string",
26
+ "description": "Elliptic curve name."
27
+ },
28
+ "d": {
29
+ "type": "string",
30
+ "description": "Private key value."
31
+ },
32
+ "alg": {
33
+ "description": "Optional algorithm hint.",
34
+ "type": "string"
35
+ },
36
+ "kid": {
37
+ "description": "Optional key identifier.",
38
+ "type": "string"
39
+ }
40
+ },
41
+ "required": [
42
+ "kty",
43
+ "x",
44
+ "y",
45
+ "crv",
46
+ "d"
47
+ ],
48
+ "additionalProperties": false,
49
+ "description": "Private key material in JWK format."
50
+ },
51
+ "description": {
52
+ "description": "Optional key chain description.",
53
+ "type": "string"
54
+ },
55
+ "usageType": {
56
+ "type": "string",
57
+ "enum": [
58
+ "access",
59
+ "attestation",
60
+ "trustList",
61
+ "statusList",
62
+ "encrypt"
63
+ ],
64
+ "description": "Key usage category for the imported key chain."
65
+ },
66
+ "crt": {
67
+ "description": "Optional certificate chain values in PEM or base64 DER.",
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "kmsProvider": {
74
+ "description": "Optional KMS provider id.",
75
+ "type": "string"
76
+ },
77
+ "rotationPolicy": {
78
+ "description": "Optional rotation policy for imported key chains.",
79
+ "type": "object",
80
+ "properties": {
81
+ "enabled": {
82
+ "type": "boolean",
83
+ "description": "Enable automatic rotation for imported key chains."
84
+ },
85
+ "intervalDays": {
86
+ "description": "Rotation interval in days.",
87
+ "type": "number",
88
+ "minimum": 1,
89
+ "maximum": 3650
90
+ },
91
+ "certValidityDays": {
92
+ "description": "Certificate validity period in days.",
93
+ "type": "number",
94
+ "minimum": 1,
95
+ "maximum": 3650
96
+ }
97
+ },
98
+ "required": [
99
+ "enabled"
100
+ ],
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "required": [
105
+ "key",
106
+ "usageType"
107
+ ],
108
+ "additionalProperties": false,
109
+ "$id": "./KeyChainImportDto.schema.json",
110
+ "title": "KeyChainImportDto"
111
+ }