@eudiplo/cli 9.1.0-main.db0db97 → 9.1.0-main.de3d6a5

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 (30) hide show
  1. package/dist/commands/config/portability/migrations.spec.js +3 -2
  2. package/dist/commands/config/portability/migrations.spec.js.map +1 -1
  3. package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
  4. package/dist/commands/config/portability/upgrade.js +6 -2
  5. package/dist/commands/config/portability/upgrade.js.map +1 -1
  6. package/dist/index.js +5064 -1754
  7. package/dist/services/diagnostics.js +1 -1
  8. package/dist/services/diagnostics.js.map +1 -1
  9. package/package.json +1 -1
  10. package/templates/demo-config/clients/presentation-test.json +1 -1
  11. package/templates/demo-config/clients/test.json +7 -2
  12. package/templates/demo-config/key-chains/attestation.json +2 -1
  13. package/templates/demo-config/key-chains/status-list.json +2 -1
  14. package/templates/docker-compose.yml +2 -2
  15. package/templates/schemas/ClientConfigFile.schema.json +134 -1
  16. package/templates/schemas/CreateClientDto.schema.json +5 -1
  17. package/templates/schemas/CreateTenantDto.schema.json +6 -2
  18. package/templates/schemas/CredentialConfigCreate.schema.json +6 -5
  19. package/templates/schemas/CredentialConfigFile.schema.json +796 -1
  20. package/templates/schemas/IssuanceConfig.schema.json +43 -0
  21. package/templates/schemas/IssuanceConfigFile.schema.json +696 -1
  22. package/templates/schemas/KeyChainConfigFile.schema.json +136 -119
  23. package/templates/schemas/KeyChainCreateDto.schema.json +10 -1
  24. package/templates/schemas/KeyChainImportDto.schema.json +8 -0
  25. package/templates/schemas/KmsConfigDto.schema.json +186 -0
  26. package/templates/schemas/KmsConfigFile.schema.json +1026 -1
  27. package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
  28. package/templates/schemas/TenantConfigFile.schema.json +4 -129
  29. package/templates/schemas/UpdateClientDto.schema.json +5 -1
  30. package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
@@ -7,7 +7,7 @@
7
7
  "description": "Enable or disable automatic key rotation."
8
8
  },
9
9
  "intervalDays": {
10
- "description": "Rotation interval in days.",
10
+ "description": "Rotation interval in days. Required when `enabled` is true.",
11
11
  "type": "number",
12
12
  "minimum": 1,
13
13
  "maximum": 3650
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "anyOf": [
3
+ "$id": "./TenantConfigFile.schema.json",
4
+ "title": "TenantConfigFile",
5
+ "description": "Configuration file identified by its $schema URL.",
6
+ "oneOf": [
4
7
  {
5
8
  "type": "object",
6
9
  "properties": {
@@ -214,133 +217,5 @@
214
217
  "additionalProperties": false,
215
218
  "description": "Payload used when importing tenant metadata from config files."
216
219
  }
217
- ],
218
- "$id": "./TenantConfigFile.schema.json",
219
- "title": "TenantConfigFile",
220
- "description": "Configuration file identified by its $schema URL.",
221
- "oneOf": [
222
- {
223
- "type": "object",
224
- "properties": {
225
- "$schema": {
226
- "type": "string",
227
- "const": "https://eudiplo.dev/schemas/v1/TenantConfigFile.schema.json"
228
- },
229
- "metadata": {
230
- "type": "object",
231
- "properties": {
232
- "generation": {
233
- "type": "integer",
234
- "minimum": 1,
235
- "maximum": 9007199254740991
236
- },
237
- "ownership": {
238
- "type": "string",
239
- "enum": [
240
- "unmanaged",
241
- "file-managed"
242
- ]
243
- }
244
- },
245
- "additionalProperties": false
246
- },
247
- "spec": {
248
- "type": "object",
249
- "properties": {
250
- "name": {
251
- "default": "EUDIPLO",
252
- "description": "Display name of the tenant.",
253
- "type": "string",
254
- "minLength": 1
255
- },
256
- "description": {
257
- "description": "Optional tenant description.",
258
- "type": "string",
259
- "minLength": 1
260
- },
261
- "sessionConfig": {
262
- "description": "Optional tenant-specific session storage configuration.",
263
- "type": "object",
264
- "properties": {
265
- "ttlSeconds": {
266
- "description": "Session time-to-live in seconds.",
267
- "type": "integer",
268
- "minimum": 60,
269
- "maximum": 9007199254740991
270
- },
271
- "cleanupMode": {
272
- "description": "Whether to fully delete or anonymize expired sessions.",
273
- "type": "string",
274
- "enum": [
275
- "full",
276
- "anonymize"
277
- ]
278
- }
279
- },
280
- "additionalProperties": false
281
- },
282
- "statusListConfig": {
283
- "description": "Optional tenant-specific status list defaults.",
284
- "type": "object",
285
- "properties": {
286
- "capacity": {
287
- "description": "Default status list capacity.",
288
- "type": "integer",
289
- "minimum": 100,
290
- "maximum": 9007199254740991
291
- },
292
- "bits": {
293
- "description": "Bits-per-status setting (1, 2, 4, or 8).",
294
- "anyOf": [
295
- {
296
- "type": "number",
297
- "const": 1
298
- },
299
- {
300
- "type": "number",
301
- "const": 2
302
- },
303
- {
304
- "type": "number",
305
- "const": 4
306
- },
307
- {
308
- "type": "number",
309
- "const": 8
310
- }
311
- ]
312
- },
313
- "ttl": {
314
- "description": "JWT TTL for status list tokens in seconds.",
315
- "type": "integer",
316
- "minimum": 60,
317
- "maximum": 9007199254740991
318
- },
319
- "immediateUpdate": {
320
- "description": "Regenerate status list JWTs immediately after status updates.",
321
- "type": "boolean"
322
- },
323
- "enableAggregation": {
324
- "description": "Include aggregation_uri in generated status list JWTs.",
325
- "type": "boolean"
326
- }
327
- },
328
- "additionalProperties": false
329
- }
330
- },
331
- "required": [
332
- "name"
333
- ],
334
- "additionalProperties": false,
335
- "description": "Payload used when importing tenant metadata from config files."
336
- }
337
- },
338
- "required": [
339
- "$schema",
340
- "metadata",
341
- "spec"
342
- ],
343
- "additionalProperties": false
344
- }
345
220
  ]
346
221
  }
@@ -22,7 +22,11 @@
22
22
  "users:manage",
23
23
  "tenants:manage",
24
24
  "tenant:admin",
25
- "registrar:manage"
25
+ "registrar:manage",
26
+ "audit:read",
27
+ "sessions:read",
28
+ "credentials:status",
29
+ "keys:manage"
26
30
  ]
27
31
  }
28
32
  },
@@ -3,7 +3,7 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "capacity": {
6
- "description": "Capacity override. Set null to reset to defaults.",
6
+ "description": "Capacity override. Omit or set null to follow STATUS_CAPACITY.",
7
7
  "anyOf": [
8
8
  {
9
9
  "type": "integer",
@@ -16,7 +16,7 @@
16
16
  ]
17
17
  },
18
18
  "bits": {
19
- "description": "Bits-per-status override. Set null to reset to defaults.",
19
+ "description": "Bits-per-status override. Omit or set null to follow STATUS_BITS.",
20
20
  "anyOf": [
21
21
  {
22
22
  "anyOf": [
@@ -44,7 +44,7 @@
44
44
  ]
45
45
  },
46
46
  "ttl": {
47
- "description": "JWT TTL override in seconds. Set null to reset.",
47
+ "description": "JWT TTL override in seconds. Omit or set null to follow STATUS_TTL.",
48
48
  "anyOf": [
49
49
  {
50
50
  "type": "integer",
@@ -57,14 +57,14 @@
57
57
  ]
58
58
  },
59
59
  "immediateUpdate": {
60
- "description": "Immediate regeneration toggle. Set null to reset.",
60
+ "description": "Immediate regeneration toggle. Omit or set null to follow STATUS_IMMEDIATE_UPDATE.",
61
61
  "type": [
62
62
  "boolean",
63
63
  "null"
64
64
  ]
65
65
  },
66
66
  "enableAggregation": {
67
- "description": "Aggregation URI toggle. Set null to reset.",
67
+ "description": "Aggregation URI toggle. Omit or set null to follow STATUS_ENABLE_AGGREGATION.",
68
68
  "type": [
69
69
  "boolean",
70
70
  "null"