@eudiplo/cli 9.1.0-main.c121f07 → 9.1.0-main.cd87b41

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 (77) hide show
  1. package/dist/commands/completion/action.js +3 -1
  2. package/dist/commands/completion/action.js.map +1 -1
  3. package/dist/commands/config/portability/migrations.spec.js +4 -2
  4. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  5. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  6. package/dist/commands/config/portability/upgrade.js +7 -8
  7. package/dist/commands/config/portability/upgrade.js.map +1 -1
  8. package/dist/commands/config/validate/action.d.ts.map +1 -1
  9. package/dist/commands/config/validate/action.js +2 -1
  10. package/dist/commands/config/validate/action.js.map +1 -1
  11. package/dist/commands/config/validate/registry.json +21 -0
  12. package/dist/commands/init/action.d.ts.map +1 -1
  13. package/dist/commands/init/action.js +1 -11
  14. package/dist/commands/init/action.js.map +1 -1
  15. package/dist/commands/instance/action.d.ts +2 -0
  16. package/dist/commands/instance/action.d.ts.map +1 -1
  17. package/dist/commands/instance/action.js +68 -12
  18. package/dist/commands/instance/action.js.map +1 -1
  19. package/dist/commands/instance/index.d.ts.map +1 -1
  20. package/dist/commands/instance/index.js +21 -3
  21. package/dist/commands/instance/index.js.map +1 -1
  22. package/dist/commands/open/action.d.ts.map +1 -1
  23. package/dist/commands/open/action.js +13 -2
  24. package/dist/commands/open/action.js.map +1 -1
  25. package/dist/commands/status/action.d.ts.map +1 -1
  26. package/dist/commands/status/action.js +2 -1
  27. package/dist/commands/status/action.js.map +1 -1
  28. package/dist/index.js +17843 -5289
  29. package/dist/services/api-auth.d.ts.map +1 -1
  30. package/dist/services/api-auth.js +3 -2
  31. package/dist/services/api-auth.js.map +1 -1
  32. package/dist/services/browser.d.ts.map +1 -1
  33. package/dist/services/browser.js +3 -2
  34. package/dist/services/browser.js.map +1 -1
  35. package/dist/services/cli-config.d.ts +41 -1
  36. package/dist/services/cli-config.d.ts.map +1 -1
  37. package/dist/services/cli-config.js +217 -29
  38. package/dist/services/cli-config.js.map +1 -1
  39. package/dist/services/diagnostics.d.ts.map +1 -1
  40. package/dist/services/diagnostics.js +9 -8
  41. package/dist/services/diagnostics.js.map +1 -1
  42. package/dist/services/instance-selection.d.ts.map +1 -1
  43. package/dist/services/instance-selection.js +2 -5
  44. package/dist/services/instance-selection.js.map +1 -1
  45. package/dist/services/url.d.ts +21 -0
  46. package/dist/services/url.d.ts.map +1 -0
  47. package/dist/services/url.js +61 -0
  48. package/dist/services/url.js.map +1 -0
  49. package/package.json +6 -5
  50. package/templates/demo-config/clients/presentation-test.json +1 -1
  51. package/templates/demo-config/clients/test.json +6 -2
  52. package/templates/demo-config/key-chains/attestation.json +2 -1
  53. package/templates/demo-config/key-chains/status-list.json +5 -4
  54. package/templates/docker-compose.yml +2 -2
  55. package/templates/schemas/ClientConfigFile.schema.json +134 -1
  56. package/templates/schemas/CreateClientDto.schema.json +5 -1
  57. package/templates/schemas/CreateFederationTrustAnchorDto.schema.json +82 -0
  58. package/templates/schemas/CreateRegistrarConfigDto.schema.json +29 -0
  59. package/templates/schemas/CreateTenantDto.schema.json +5 -1
  60. package/templates/schemas/CredentialConfigCreate.schema.json +236 -6
  61. package/templates/schemas/CredentialConfigFile.schema.json +797 -1
  62. package/templates/schemas/FederationTrustAnchorConfigFile.schema.json +60 -0
  63. package/templates/schemas/IssuanceConfig.schema.json +120 -2
  64. package/templates/schemas/IssuanceConfigFile.schema.json +1434 -1
  65. package/templates/schemas/KeyChainConfigFile.schema.json +505 -119
  66. package/templates/schemas/KeyChainCreateDto.schema.json +11 -1
  67. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +65 -0
  68. package/templates/schemas/KeyChainImportDto.schema.json +9 -0
  69. package/templates/schemas/KmsConfigDto.schema.json +186 -0
  70. package/templates/schemas/KmsConfigFile.schema.json +1026 -1
  71. package/templates/schemas/RegistrarConfigFile.schema.json +101 -1
  72. package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
  73. package/templates/schemas/TenantConfigFile.schema.json +334 -64
  74. package/templates/schemas/UpdateClientDto.schema.json +5 -1
  75. package/templates/schemas/UpdateFederationTrustAnchorDto.schema.json +70 -0
  76. package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
  77. package/templates/schemas.manifest.json +4 -0
@@ -0,0 +1,65 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "./KeyChainDefaultsConfigFile.schema.json",
4
+ "title": "KeyChainDefaultsConfigFile",
5
+ "description": "Configuration file identified by its $schema URL.",
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "$schema": {
11
+ "type": "string",
12
+ "const": "https://eudiplo.dev/schemas/v1/KeyChainDefaultsConfigFile.schema.json"
13
+ },
14
+ "metadata": {
15
+ "type": "object",
16
+ "properties": {
17
+ "generation": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "maximum": 9007199254740991
21
+ },
22
+ "ownership": {
23
+ "type": "string",
24
+ "enum": [
25
+ "unmanaged",
26
+ "file-managed"
27
+ ]
28
+ }
29
+ },
30
+ "additionalProperties": false
31
+ },
32
+ "spec": {
33
+ "type": "object",
34
+ "properties": {
35
+ "access": {
36
+ "description": "ID of the access key chain used where no configuration names one: presentation requests of configurations without accessKeyChainId and the signed issuer metadata. Without it, EUDIPLO picks one of the tenant's access key chains by rule.",
37
+ "type": "string",
38
+ "minLength": 1
39
+ }
40
+ },
41
+ "additionalProperties": false,
42
+ "description": "The tenant's key chain per usage type, used where no configuration names one. A usage type without an entry uses a key chain picked by rule."
43
+ }
44
+ },
45
+ "required": [
46
+ "$schema",
47
+ "metadata",
48
+ "spec"
49
+ ],
50
+ "additionalProperties": false
51
+ },
52
+ {
53
+ "type": "object",
54
+ "properties": {
55
+ "access": {
56
+ "description": "ID of the access key chain used where no configuration names one: presentation requests of configurations without accessKeyChainId and the signed issuer metadata. Without it, EUDIPLO picks one of the tenant's access key chains by rule.",
57
+ "type": "string",
58
+ "minLength": 1
59
+ }
60
+ },
61
+ "additionalProperties": false,
62
+ "description": "The tenant's key chain per usage type, used where no configuration names one. A usage type without an entry uses a key chain picked by rule."
63
+ }
64
+ ]
65
+ }
@@ -64,10 +64,19 @@
64
64
  "attestation",
65
65
  "trustList",
66
66
  "statusList",
67
+ "federation",
67
68
  "encrypt"
68
69
  ],
69
70
  "description": "Key usage category for the imported key chain."
70
71
  },
72
+ "type": {
73
+ "description": "Key chain type. `standalone`: `key` is the signing key and `crt` its chain, leaf first. `internalChain`: `key` is a CA key and the last `crt` entry its CA certificate (created if `crt` is omitted); the import generates a new signing key with a certificate issued by it. Without `type`, `key` is a CA key only if `rotationPolicy.enabled` is true and `crt` is not a single self-signed certificate that is not a CA.",
74
+ "type": "string",
75
+ "enum": [
76
+ "standalone",
77
+ "internalChain"
78
+ ]
79
+ },
71
80
  "crt": {
72
81
  "description": "Optional certificate chain values in PEM or base64 DER.",
73
82
  "type": "array",
@@ -64,6 +64,37 @@
64
64
  "pattern": "^\\$\\{([A-Z0-9_]+)\\}$"
65
65
  }
66
66
  ]
67
+ },
68
+ "algorithms": {
69
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
70
+ "examples": [
71
+ [
72
+ "ES256",
73
+ "ES384"
74
+ ]
75
+ ],
76
+ "minItems": 1,
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string",
80
+ "enum": [
81
+ "ES256",
82
+ "ES384",
83
+ "ES512"
84
+ ]
85
+ }
86
+ },
87
+ "defaultAlgorithm": {
88
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
89
+ "examples": [
90
+ "ES256"
91
+ ],
92
+ "type": "string",
93
+ "enum": [
94
+ "ES256",
95
+ "ES384",
96
+ "ES512"
97
+ ]
67
98
  }
68
99
  },
69
100
  "required": [
@@ -115,6 +146,37 @@
115
146
  }
116
147
  ]
117
148
  },
149
+ "algorithms": {
150
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
151
+ "examples": [
152
+ [
153
+ "ES256",
154
+ "ES384"
155
+ ]
156
+ ],
157
+ "minItems": 1,
158
+ "type": "array",
159
+ "items": {
160
+ "type": "string",
161
+ "enum": [
162
+ "ES256",
163
+ "ES384",
164
+ "ES512"
165
+ ]
166
+ }
167
+ },
168
+ "defaultAlgorithm": {
169
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
170
+ "examples": [
171
+ "ES256"
172
+ ],
173
+ "type": "string",
174
+ "enum": [
175
+ "ES256",
176
+ "ES384",
177
+ "ES512"
178
+ ]
179
+ },
118
180
  "vaultUrl": {
119
181
  "anyOf": [
120
182
  {
@@ -199,6 +261,37 @@
199
261
  }
200
262
  ]
201
263
  },
264
+ "algorithms": {
265
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
266
+ "examples": [
267
+ [
268
+ "ES256",
269
+ "ES384"
270
+ ]
271
+ ],
272
+ "minItems": 1,
273
+ "type": "array",
274
+ "items": {
275
+ "type": "string",
276
+ "enum": [
277
+ "ES256",
278
+ "ES384",
279
+ "ES512"
280
+ ]
281
+ }
282
+ },
283
+ "defaultAlgorithm": {
284
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
285
+ "examples": [
286
+ "ES256"
287
+ ],
288
+ "type": "string",
289
+ "enum": [
290
+ "ES256",
291
+ "ES384",
292
+ "ES512"
293
+ ]
294
+ },
202
295
  "region": {
203
296
  "anyOf": [
204
297
  {
@@ -298,6 +391,37 @@
298
391
  }
299
392
  ]
300
393
  },
394
+ "algorithms": {
395
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
396
+ "examples": [
397
+ [
398
+ "ES256",
399
+ "ES384"
400
+ ]
401
+ ],
402
+ "minItems": 1,
403
+ "type": "array",
404
+ "items": {
405
+ "type": "string",
406
+ "enum": [
407
+ "ES256",
408
+ "ES384",
409
+ "ES512"
410
+ ]
411
+ }
412
+ },
413
+ "defaultAlgorithm": {
414
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
415
+ "examples": [
416
+ "ES256"
417
+ ],
418
+ "type": "string",
419
+ "enum": [
420
+ "ES256",
421
+ "ES384",
422
+ "ES512"
423
+ ]
424
+ },
301
425
  "library": {
302
426
  "anyOf": [
303
427
  {
@@ -400,6 +524,37 @@
400
524
  }
401
525
  ]
402
526
  },
527
+ "algorithms": {
528
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
529
+ "examples": [
530
+ [
531
+ "ES256",
532
+ "ES384"
533
+ ]
534
+ ],
535
+ "minItems": 1,
536
+ "type": "array",
537
+ "items": {
538
+ "type": "string",
539
+ "enum": [
540
+ "ES256",
541
+ "ES384",
542
+ "ES512"
543
+ ]
544
+ }
545
+ },
546
+ "defaultAlgorithm": {
547
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
548
+ "examples": [
549
+ "ES256"
550
+ ],
551
+ "type": "string",
552
+ "enum": [
553
+ "ES256",
554
+ "ES384",
555
+ "ES512"
556
+ ]
557
+ },
403
558
  "baseUrl": {
404
559
  "anyOf": [
405
560
  {
@@ -713,6 +868,37 @@
713
868
  }
714
869
  ]
715
870
  },
871
+ "algorithms": {
872
+ "description": "Signing algorithms new key chains of this provider may use: ES256 (P-256), ES384 (P-384), ES512 (P-521). Defaults to all three for db, vault and aws-kms. For pkcs11, http and csc, whose backends may not support every curve, it defaults to defaultAlgorithm (ES256 unless set). Existing keys keep signing with their own algorithm.",
873
+ "examples": [
874
+ [
875
+ "ES256",
876
+ "ES384"
877
+ ]
878
+ ],
879
+ "minItems": 1,
880
+ "type": "array",
881
+ "items": {
882
+ "type": "string",
883
+ "enum": [
884
+ "ES256",
885
+ "ES384",
886
+ "ES512"
887
+ ]
888
+ }
889
+ },
890
+ "defaultAlgorithm": {
891
+ "description": "Algorithm used when a key chain is created without one. Must be in algorithms. Defaults to ES256 if allowed, otherwise the first entry of algorithms.",
892
+ "examples": [
893
+ "ES256"
894
+ ],
895
+ "type": "string",
896
+ "enum": [
897
+ "ES256",
898
+ "ES384",
899
+ "ES512"
900
+ ]
901
+ },
716
902
  "baseUrl": {
717
903
  "anyOf": [
718
904
  {