@eudiplo/cli 9.1.0-main.892d49e → 9.1.0-main.8be8b4e

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 (96) 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 +5 -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/tenant/action.d.ts.map +1 -1
  9. package/dist/commands/config/tenant/action.js +3 -2
  10. package/dist/commands/config/tenant/action.js.map +1 -1
  11. package/dist/commands/config/validate/action.d.ts.map +1 -1
  12. package/dist/commands/config/validate/action.js +2 -1
  13. package/dist/commands/config/validate/action.js.map +1 -1
  14. package/dist/commands/config/validate/registry.json +21 -0
  15. package/dist/commands/init/action.d.ts.map +1 -1
  16. package/dist/commands/init/action.js +1 -11
  17. package/dist/commands/init/action.js.map +1 -1
  18. package/dist/commands/instance/action.d.ts +2 -0
  19. package/dist/commands/instance/action.d.ts.map +1 -1
  20. package/dist/commands/instance/action.js +68 -12
  21. package/dist/commands/instance/action.js.map +1 -1
  22. package/dist/commands/instance/index.d.ts.map +1 -1
  23. package/dist/commands/instance/index.js +21 -3
  24. package/dist/commands/instance/index.js.map +1 -1
  25. package/dist/commands/open/action.d.ts.map +1 -1
  26. package/dist/commands/open/action.js +13 -2
  27. package/dist/commands/open/action.js.map +1 -1
  28. package/dist/commands/status/action.d.ts.map +1 -1
  29. package/dist/commands/status/action.js +2 -1
  30. package/dist/commands/status/action.js.map +1 -1
  31. package/dist/index.js +21395 -5631
  32. package/dist/services/api-auth.d.ts.map +1 -1
  33. package/dist/services/api-auth.js +3 -2
  34. package/dist/services/api-auth.js.map +1 -1
  35. package/dist/services/browser.d.ts.map +1 -1
  36. package/dist/services/browser.js +3 -2
  37. package/dist/services/browser.js.map +1 -1
  38. package/dist/services/cli-config.d.ts +41 -1
  39. package/dist/services/cli-config.d.ts.map +1 -1
  40. package/dist/services/cli-config.js +217 -29
  41. package/dist/services/cli-config.js.map +1 -1
  42. package/dist/services/compose-project.d.ts +6 -0
  43. package/dist/services/compose-project.d.ts.map +1 -1
  44. package/dist/services/compose-project.js +13 -2
  45. package/dist/services/compose-project.js.map +1 -1
  46. package/dist/services/diagnostics.d.ts.map +1 -1
  47. package/dist/services/diagnostics.js +9 -8
  48. package/dist/services/diagnostics.js.map +1 -1
  49. package/dist/services/instance-selection.d.ts.map +1 -1
  50. package/dist/services/instance-selection.js +2 -5
  51. package/dist/services/instance-selection.js.map +1 -1
  52. package/dist/services/url.d.ts +21 -0
  53. package/dist/services/url.d.ts.map +1 -0
  54. package/dist/services/url.js +61 -0
  55. package/dist/services/url.js.map +1 -0
  56. package/package.json +6 -5
  57. package/templates/demo-config/clients/presentation-test.json +1 -1
  58. package/templates/demo-config/clients/test.json +7 -2
  59. package/templates/demo-config/info.json +1 -1
  60. package/templates/demo-config/issuance/credentials/citizen.json +1 -1
  61. package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
  62. package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
  63. package/templates/demo-config/issuance/credentials/pid.json +1 -1
  64. package/templates/demo-config/issuance/issuance.json +1 -1
  65. package/templates/demo-config/key-chains/access.json +1 -1
  66. package/templates/demo-config/key-chains/attestation.json +3 -2
  67. package/templates/demo-config/key-chains/status-list.json +6 -5
  68. package/templates/demo-config/key-chains/trust-list.json +1 -1
  69. package/templates/demo-config/presentation/age-over-18.json +1 -1
  70. package/templates/demo-config/presentation/pid.json +1 -1
  71. package/templates/docker-compose.yml +2 -2
  72. package/templates/schemas/ClientConfigFile.schema.json +134 -1
  73. package/templates/schemas/CreateClientDto.schema.json +5 -1
  74. package/templates/schemas/CreateFederationTrustAnchorDto.schema.json +82 -0
  75. package/templates/schemas/CreateRegistrarConfigDto.schema.json +29 -0
  76. package/templates/schemas/CreateTenantDto.schema.json +8 -4
  77. package/templates/schemas/CredentialConfigCreate.schema.json +242 -11
  78. package/templates/schemas/CredentialConfigFile.schema.json +1592 -1
  79. package/templates/schemas/FederationTrustAnchorConfigFile.schema.json +60 -0
  80. package/templates/schemas/IssuanceConfig.schema.json +122 -9
  81. package/templates/schemas/IssuanceConfigFile.schema.json +2247 -1
  82. package/templates/schemas/KeyChainConfigFile.schema.json +875 -119
  83. package/templates/schemas/KeyChainCreateDto.schema.json +12 -1
  84. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +123 -0
  85. package/templates/schemas/KeyChainImportDto.schema.json +10 -0
  86. package/templates/schemas/KmsConfigDto.schema.json +186 -0
  87. package/templates/schemas/KmsConfigFile.schema.json +1026 -1
  88. package/templates/schemas/PresentationConfigCreateDto.schema.json +16 -0
  89. package/templates/schemas/PresentationConfigFile.schema.json +746 -1
  90. package/templates/schemas/RegistrarConfigFile.schema.json +101 -1
  91. package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
  92. package/templates/schemas/TenantConfigFile.schema.json +334 -64
  93. package/templates/schemas/UpdateClientDto.schema.json +5 -1
  94. package/templates/schemas/UpdateFederationTrustAnchorDto.schema.json +70 -0
  95. package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
  96. package/templates/schemas.manifest.json +4 -0
@@ -0,0 +1,60 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "./FederationTrustAnchorConfigFile.schema.json",
4
+ "title": "FederationTrustAnchorConfigFile",
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/FederationTrustAnchorConfigFile.schema.json"
13
+ },
14
+ "metadata": {
15
+ "type": "object",
16
+ "properties": {
17
+ "generation": {
18
+ "type": "integer",
19
+ "minimum": 1,
20
+ "description": "Monotonically increasing configuration generation."
21
+ },
22
+ "ownership": {
23
+ "type": "string",
24
+ "enum": [
25
+ "unmanaged",
26
+ "file-managed"
27
+ ],
28
+ "description": "Requested ownership recorded when the document is applied."
29
+ }
30
+ },
31
+ "additionalProperties": false
32
+ },
33
+ "spec": {
34
+ "allOf": [
35
+ {
36
+ "$ref": "./CreateFederationTrustAnchorDto.schema.json"
37
+ },
38
+ {
39
+ "type": "object",
40
+ "required": [
41
+ "id"
42
+ ],
43
+ "properties": {
44
+ "id": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ }
48
+ }
49
+ }
50
+ ]
51
+ }
52
+ },
53
+ "required": [
54
+ "$schema",
55
+ "spec"
56
+ ],
57
+ "additionalProperties": false
58
+ }
59
+ ]
60
+ }
@@ -52,10 +52,21 @@
52
52
  "additionalProperties": false
53
53
  }
54
54
  },
55
- "signingKeyId": {
56
- "description": "Default signing key chain id for credential issuance.",
57
- "type": "string",
58
- "minLength": 1
55
+ "walletAttestationStatusCheckMode": {
56
+ "description": "Default status check mode for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
57
+ "anyOf": [
58
+ {
59
+ "type": "string",
60
+ "enum": [
61
+ "strict",
62
+ "best_effort",
63
+ "disabled"
64
+ ]
65
+ },
66
+ {
67
+ "type": "null"
68
+ }
69
+ ]
59
70
  },
60
71
  "authorizationServers": {
61
72
  "minItems": 1,
@@ -149,7 +160,7 @@
149
160
  "minimum": 60
150
161
  },
151
162
  "signingKeyId": {
152
- "description": "Optional key chain id used to sign issued tokens.",
163
+ "description": "ID of a key chain with usage type \"authorizationServer\" that signs the issued access tokens. Without it, the tenant's authorization server key chain signs them.",
153
164
  "type": "string",
154
165
  "minLength": 1
155
166
  },
@@ -209,6 +220,15 @@
209
220
  "additionalProperties": false
210
221
  }
211
222
  },
223
+ "walletAttestationStatusCheckMode": {
224
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
225
+ "type": "string",
226
+ "enum": [
227
+ "strict",
228
+ "best_effort",
229
+ "disabled"
230
+ ]
231
+ },
212
232
  "label": {
213
233
  "description": "Optional display label for UI selection.",
214
234
  "type": "string"
@@ -282,7 +302,7 @@
282
302
  "minimum": 60
283
303
  },
284
304
  "signingKeyId": {
285
- "description": "Optional key chain id used to sign issued tokens.",
305
+ "description": "ID of a key chain with usage type \"authorizationServer\" that signs the issued access tokens. Without it, the tenant's authorization server key chain signs them.",
286
306
  "type": "string",
287
307
  "minLength": 1
288
308
  },
@@ -342,6 +362,15 @@
342
362
  "additionalProperties": false
343
363
  }
344
364
  },
365
+ "walletAttestationStatusCheckMode": {
366
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
367
+ "type": "string",
368
+ "enum": [
369
+ "strict",
370
+ "best_effort",
371
+ "disabled"
372
+ ]
373
+ },
345
374
  "label": {
346
375
  "description": "Optional display label for UI selection.",
347
376
  "type": "string"
@@ -381,7 +410,7 @@
381
410
  "minimum": 60
382
411
  },
383
412
  "signingKeyId": {
384
- "description": "Optional key chain id used to sign issued tokens.",
413
+ "description": "ID of a key chain with usage type \"authorizationServer\" that signs the issued access tokens. Without it, the tenant's authorization server key chain signs them.",
385
414
  "type": "string",
386
415
  "minLength": 1
387
416
  },
@@ -441,6 +470,15 @@
441
470
  "additionalProperties": false
442
471
  }
443
472
  },
473
+ "walletAttestationStatusCheckMode": {
474
+ "description": "Status check mode for wallet attestations at this authorization server. Omit to inherit the issuance default.",
475
+ "type": "string",
476
+ "enum": [
477
+ "strict",
478
+ "best_effort",
479
+ "disabled"
480
+ ]
481
+ },
444
482
  "label": {
445
483
  "description": "Optional display label for UI selection.",
446
484
  "type": "string"
@@ -485,8 +523,9 @@
485
523
  ]
486
524
  },
487
525
  "entityId": {
488
- "description": "Optional local federation entity id.",
489
- "type": "string"
526
+ "description": "Entity Identifier of the tenant's federation entity, usually {PUBLIC_URL}/issuers/{tenantId}: an https URL with a host and without query or fragment (OpenID Federation 1.0 Section 1.2). http is accepted only when OUTBOUND_URL_ALLOW_HTTP is true.",
527
+ "type": "string",
528
+ "pattern": "^(https?:\\/\\/[^\\s?#]+)?$"
490
529
  },
491
530
  "enforceSigningPolicy": {
492
531
  "description": "Enforce strict signing policy checks.",
@@ -521,6 +560,80 @@
521
560
  "additionalProperties": false
522
561
  },
523
562
  "description": "Federation trust anchors."
563
+ },
564
+ "entityTypes": {
565
+ "description": "Roles the entity configuration publishes metadata for. Defaults to openid_credential_issuer.",
566
+ "minItems": 1,
567
+ "type": "array",
568
+ "items": {
569
+ "type": "string",
570
+ "enum": [
571
+ "openid_credential_issuer",
572
+ "openid_credential_verifier"
573
+ ]
574
+ }
575
+ },
576
+ "authorityHints": {
577
+ "description": "authority_hints of the entity configuration: the superiors that issue a subordinate statement about this entity. Defaults to the trust anchor entity ids.",
578
+ "type": "array",
579
+ "items": {
580
+ "type": "string",
581
+ "format": "uri"
582
+ }
583
+ },
584
+ "entityKeyChainId": {
585
+ "description": "Key chain with usage type 'federation' that signs the entity configuration. Without it, a federation key chain of the tenant is used; set it when the tenant has several.",
586
+ "type": "string",
587
+ "minLength": 1
588
+ },
589
+ "entityConfigurationLifetimeSeconds": {
590
+ "description": "Lifetime (exp - iat) of the entity configuration in seconds. Defaults to 86400.",
591
+ "type": "integer",
592
+ "minimum": 60,
593
+ "maximum": 31536000
594
+ },
595
+ "trustMarks": {
596
+ "description": "Trust mark JWTs issued to this entity, published in the entity configuration.",
597
+ "type": "array",
598
+ "items": {
599
+ "type": "string",
600
+ "minLength": 1
601
+ }
602
+ },
603
+ "entityMetadata": {
604
+ "description": "Informational federation_entity metadata of the entity configuration.",
605
+ "type": "object",
606
+ "properties": {
607
+ "organization_name": {
608
+ "type": "string",
609
+ "minLength": 1
610
+ },
611
+ "contacts": {
612
+ "minItems": 1,
613
+ "type": "array",
614
+ "items": {
615
+ "type": "string",
616
+ "minLength": 1
617
+ }
618
+ },
619
+ "logo_uri": {
620
+ "type": "string",
621
+ "format": "uri"
622
+ },
623
+ "policy_uri": {
624
+ "type": "string",
625
+ "format": "uri"
626
+ },
627
+ "homepage_uri": {
628
+ "type": "string",
629
+ "format": "uri"
630
+ }
631
+ },
632
+ "additionalProperties": false
633
+ },
634
+ "includeTrustChain": {
635
+ "description": "Add the trust chain of this entity as trust_chain header to federation SD-JWT VCs and OID4VP request objects.",
636
+ "type": "boolean"
524
637
  }
525
638
  },
526
639
  "required": [