@eudiplo/cli 9.1.0-main.64e24dc → 9.1.0-main.661ca1e
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.
- package/dist/commands/completion/action.js +3 -1
- package/dist/commands/completion/action.js.map +1 -1
- package/dist/commands/config/portability/migrations.spec.js +5 -2
- package/dist/commands/config/portability/migrations.spec.js.map +1 -1
- package/dist/commands/config/portability/upgrade.d.ts.map +1 -1
- package/dist/commands/config/portability/upgrade.js +7 -8
- package/dist/commands/config/portability/upgrade.js.map +1 -1
- package/dist/commands/config/tenant/action.d.ts.map +1 -1
- package/dist/commands/config/tenant/action.js +3 -2
- package/dist/commands/config/tenant/action.js.map +1 -1
- package/dist/commands/config/validate/action.d.ts.map +1 -1
- package/dist/commands/config/validate/action.js +2 -1
- package/dist/commands/config/validate/action.js.map +1 -1
- package/dist/commands/config/validate/registry.json +21 -0
- package/dist/commands/init/action.d.ts.map +1 -1
- package/dist/commands/init/action.js +1 -11
- package/dist/commands/init/action.js.map +1 -1
- package/dist/commands/instance/action.d.ts +2 -0
- package/dist/commands/instance/action.d.ts.map +1 -1
- package/dist/commands/instance/action.js +68 -12
- package/dist/commands/instance/action.js.map +1 -1
- package/dist/commands/instance/index.d.ts.map +1 -1
- package/dist/commands/instance/index.js +21 -3
- package/dist/commands/instance/index.js.map +1 -1
- package/dist/commands/open/action.d.ts.map +1 -1
- package/dist/commands/open/action.js +13 -2
- package/dist/commands/open/action.js.map +1 -1
- package/dist/commands/status/action.d.ts.map +1 -1
- package/dist/commands/status/action.js +2 -1
- package/dist/commands/status/action.js.map +1 -1
- package/dist/index.js +17918 -2960
- package/dist/services/api-auth.d.ts.map +1 -1
- package/dist/services/api-auth.js +3 -2
- package/dist/services/api-auth.js.map +1 -1
- package/dist/services/browser.d.ts.map +1 -1
- package/dist/services/browser.js +3 -2
- package/dist/services/browser.js.map +1 -1
- package/dist/services/cli-config.d.ts +41 -1
- package/dist/services/cli-config.d.ts.map +1 -1
- package/dist/services/cli-config.js +217 -29
- package/dist/services/cli-config.js.map +1 -1
- package/dist/services/compose-project.d.ts +6 -0
- package/dist/services/compose-project.d.ts.map +1 -1
- package/dist/services/compose-project.js +13 -2
- package/dist/services/compose-project.js.map +1 -1
- package/dist/services/diagnostics.d.ts.map +1 -1
- package/dist/services/diagnostics.js +9 -8
- package/dist/services/diagnostics.js.map +1 -1
- package/dist/services/instance-selection.d.ts.map +1 -1
- package/dist/services/instance-selection.js +2 -5
- package/dist/services/instance-selection.js.map +1 -1
- package/dist/services/url.d.ts +21 -0
- package/dist/services/url.d.ts.map +1 -0
- package/dist/services/url.js +61 -0
- package/dist/services/url.js.map +1 -0
- package/package.json +6 -5
- package/templates/demo-config/clients/presentation-test.json +1 -1
- package/templates/demo-config/clients/test.json +6 -2
- package/templates/demo-config/info.json +1 -1
- package/templates/demo-config/issuance/credentials/citizen.json +1 -1
- package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
- package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
- package/templates/demo-config/issuance/credentials/pid.json +1 -1
- package/templates/demo-config/issuance/issuance.json +1 -1
- package/templates/demo-config/key-chains/access.json +1 -1
- package/templates/demo-config/key-chains/attestation.json +3 -2
- package/templates/demo-config/key-chains/status-list.json +6 -5
- package/templates/demo-config/key-chains/trust-list.json +1 -1
- package/templates/demo-config/presentation/age-over-18.json +1 -1
- package/templates/demo-config/presentation/pid.json +1 -1
- package/templates/docker-compose.yml +2 -2
- package/templates/schemas/ClientConfigFile.schema.json +134 -1
- package/templates/schemas/CreateClientDto.schema.json +5 -1
- package/templates/schemas/CreateFederationTrustAnchorDto.schema.json +82 -0
- package/templates/schemas/CreateRegistrarConfigDto.schema.json +29 -0
- package/templates/schemas/CreateTenantDto.schema.json +7 -3
- package/templates/schemas/CredentialConfigCreate.schema.json +236 -6
- package/templates/schemas/CredentialConfigFile.schema.json +797 -1
- package/templates/schemas/FederationTrustAnchorConfigFile.schema.json +60 -0
- package/templates/schemas/IssuanceConfig.schema.json +122 -9
- package/templates/schemas/IssuanceConfigFile.schema.json +2247 -1
- package/templates/schemas/KeyChainConfigFile.schema.json +875 -119
- package/templates/schemas/KeyChainCreateDto.schema.json +12 -1
- package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +123 -0
- package/templates/schemas/KeyChainImportDto.schema.json +10 -0
- package/templates/schemas/KmsConfigDto.schema.json +186 -0
- package/templates/schemas/KmsConfigFile.schema.json +1026 -1
- package/templates/schemas/PresentationConfigCreateDto.schema.json +16 -0
- package/templates/schemas/PresentationConfigFile.schema.json +746 -1
- package/templates/schemas/RegistrarConfigFile.schema.json +101 -1
- package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
- package/templates/schemas/TenantConfigFile.schema.json +334 -64
- package/templates/schemas/UpdateClientDto.schema.json +5 -1
- package/templates/schemas/UpdateFederationTrustAnchorDto.schema.json +70 -0
- package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
- package/templates/schemas.manifest.json +4 -0
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
"maxLength": 255,
|
|
9
|
+
"pattern": "^[A-Za-z0-9._-]+$",
|
|
10
|
+
"description": "Unique identifier of the trust anchor in the tenant."
|
|
11
|
+
},
|
|
12
|
+
"entityId": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"maxLength": 2048,
|
|
16
|
+
"description": "Entity identifier of the trust anchor, exactly as configured in `federation.trustAnchors` and DCQL `openid_federation` values."
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "string",
|
|
22
|
+
"minLength": 1,
|
|
23
|
+
"maxLength": 1000
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"description": "Optional description of the trust anchor."
|
|
30
|
+
},
|
|
31
|
+
"jwks": {
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"keys": {
|
|
35
|
+
"minItems": 1,
|
|
36
|
+
"maxItems": 20,
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"kty": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": [
|
|
44
|
+
"EC",
|
|
45
|
+
"RSA",
|
|
46
|
+
"OKP"
|
|
47
|
+
],
|
|
48
|
+
"description": "Key type of the public federation key."
|
|
49
|
+
},
|
|
50
|
+
"kid": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"maxLength": 256,
|
|
54
|
+
"description": "Key ID. Federation statements name their signing key with `kid`."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"kty",
|
|
59
|
+
"kid"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": {},
|
|
62
|
+
"description": "Public federation key of the trust anchor as a JWK."
|
|
63
|
+
},
|
|
64
|
+
"description": "The trust anchor's federation keys."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"keys"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"description": "JWK set with the federation keys of the trust anchor, obtained out of band (OpenID Federation 1.0 Section 10.2)."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"id",
|
|
76
|
+
"entityId",
|
|
77
|
+
"jwks"
|
|
78
|
+
],
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"$id": "./CreateFederationTrustAnchorDto.schema.json",
|
|
81
|
+
"title": "CreateFederationTrustAnchorDto"
|
|
82
|
+
}
|
|
@@ -46,6 +46,35 @@
|
|
|
46
46
|
"type": "null"
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
|
+
},
|
|
50
|
+
"relyingPartyContact": {
|
|
51
|
+
"description": "Contact of the relying party, sent when EUDIPLO registers the relying party at the registrar. The registrar needs at least one contact value to issue access certificates. A relying party that is already registered keeps its contact.",
|
|
52
|
+
"anyOf": [
|
|
53
|
+
{
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"supportUri": {
|
|
57
|
+
"description": "https URL where the relying party can be contacted.",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": "uri"
|
|
60
|
+
},
|
|
61
|
+
"email": {
|
|
62
|
+
"description": "Email address of the relying party.",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"pattern": "^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$"
|
|
65
|
+
},
|
|
66
|
+
"phone": {
|
|
67
|
+
"description": "Phone number of the relying party.",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[+0-9()\\-\\s]{5,40}$"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "null"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
49
78
|
}
|
|
50
79
|
},
|
|
51
80
|
"required": [
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"properties": {
|
|
5
5
|
"id": {
|
|
6
6
|
"type": "string",
|
|
7
|
-
"
|
|
8
|
-
"description": "Unique tenant identifier."
|
|
7
|
+
"pattern": "^[a-z0-9][a-z0-9_-]{0,62}$",
|
|
8
|
+
"description": "Unique tenant identifier: lowercase letters, digits, `-` and `_`, starting with a letter or digit, at most 63 characters. It is also the name of the tenant's configuration folder."
|
|
9
9
|
},
|
|
10
10
|
"name": {
|
|
11
11
|
"default": "EUDIPLO",
|
|
@@ -32,7 +32,11 @@
|
|
|
32
32
|
"clients:manage",
|
|
33
33
|
"users:manage",
|
|
34
34
|
"registrar:manage",
|
|
35
|
-
"tenant:admin"
|
|
35
|
+
"tenant:admin",
|
|
36
|
+
"audit:read",
|
|
37
|
+
"sessions:read",
|
|
38
|
+
"credentials:status",
|
|
39
|
+
"keys:manage"
|
|
36
40
|
]
|
|
37
41
|
}
|
|
38
42
|
},
|
|
@@ -714,12 +714,8 @@
|
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
"constraints": {
|
|
717
|
-
"description": "Optional validation
|
|
718
|
-
"
|
|
719
|
-
"propertyNames": {
|
|
720
|
-
"type": "string"
|
|
721
|
-
},
|
|
722
|
-
"additionalProperties": {}
|
|
717
|
+
"description": "Optional JSON Schema 2020-12 validation keywords for the claim value. Only the JSON Schema keywords listed under Constraints in the claims documentation are accepted (validation keywords such as pattern, minLength or enum, subschemas such as items or properties, and annotations); other keys, such as format or $ref, are refused.",
|
|
718
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
723
719
|
},
|
|
724
720
|
"children": {
|
|
725
721
|
"description": "Nested child claim definitions for object or array fields.",
|
|
@@ -734,6 +730,240 @@
|
|
|
734
730
|
"type"
|
|
735
731
|
],
|
|
736
732
|
"additionalProperties": false
|
|
733
|
+
},
|
|
734
|
+
"ClaimConstraints": {
|
|
735
|
+
"type": "object",
|
|
736
|
+
"properties": {
|
|
737
|
+
"type": {},
|
|
738
|
+
"enum": {},
|
|
739
|
+
"const": {},
|
|
740
|
+
"multipleOf": {},
|
|
741
|
+
"maximum": {},
|
|
742
|
+
"exclusiveMaximum": {},
|
|
743
|
+
"minimum": {},
|
|
744
|
+
"exclusiveMinimum": {},
|
|
745
|
+
"maxLength": {},
|
|
746
|
+
"minLength": {},
|
|
747
|
+
"pattern": {},
|
|
748
|
+
"maxItems": {},
|
|
749
|
+
"minItems": {},
|
|
750
|
+
"uniqueItems": {},
|
|
751
|
+
"maxContains": {},
|
|
752
|
+
"minContains": {},
|
|
753
|
+
"maxProperties": {},
|
|
754
|
+
"minProperties": {},
|
|
755
|
+
"required": {},
|
|
756
|
+
"dependentRequired": {},
|
|
757
|
+
"title": {},
|
|
758
|
+
"description": {},
|
|
759
|
+
"default": {},
|
|
760
|
+
"examples": {},
|
|
761
|
+
"deprecated": {},
|
|
762
|
+
"readOnly": {},
|
|
763
|
+
"writeOnly": {},
|
|
764
|
+
"$comment": {},
|
|
765
|
+
"items": {
|
|
766
|
+
"anyOf": [
|
|
767
|
+
{
|
|
768
|
+
"type": "boolean"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
772
|
+
}
|
|
773
|
+
]
|
|
774
|
+
},
|
|
775
|
+
"contains": {
|
|
776
|
+
"anyOf": [
|
|
777
|
+
{
|
|
778
|
+
"type": "boolean"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
782
|
+
}
|
|
783
|
+
]
|
|
784
|
+
},
|
|
785
|
+
"additionalProperties": {
|
|
786
|
+
"anyOf": [
|
|
787
|
+
{
|
|
788
|
+
"type": "boolean"
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
792
|
+
}
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
"propertyNames": {
|
|
796
|
+
"anyOf": [
|
|
797
|
+
{
|
|
798
|
+
"type": "boolean"
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
802
|
+
}
|
|
803
|
+
]
|
|
804
|
+
},
|
|
805
|
+
"not": {
|
|
806
|
+
"anyOf": [
|
|
807
|
+
{
|
|
808
|
+
"type": "boolean"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
812
|
+
}
|
|
813
|
+
]
|
|
814
|
+
},
|
|
815
|
+
"if": {
|
|
816
|
+
"anyOf": [
|
|
817
|
+
{
|
|
818
|
+
"type": "boolean"
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
822
|
+
}
|
|
823
|
+
]
|
|
824
|
+
},
|
|
825
|
+
"then": {
|
|
826
|
+
"anyOf": [
|
|
827
|
+
{
|
|
828
|
+
"type": "boolean"
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
832
|
+
}
|
|
833
|
+
]
|
|
834
|
+
},
|
|
835
|
+
"else": {
|
|
836
|
+
"anyOf": [
|
|
837
|
+
{
|
|
838
|
+
"type": "boolean"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
842
|
+
}
|
|
843
|
+
]
|
|
844
|
+
},
|
|
845
|
+
"unevaluatedItems": {
|
|
846
|
+
"anyOf": [
|
|
847
|
+
{
|
|
848
|
+
"type": "boolean"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
852
|
+
}
|
|
853
|
+
]
|
|
854
|
+
},
|
|
855
|
+
"unevaluatedProperties": {
|
|
856
|
+
"anyOf": [
|
|
857
|
+
{
|
|
858
|
+
"type": "boolean"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
862
|
+
}
|
|
863
|
+
]
|
|
864
|
+
},
|
|
865
|
+
"prefixItems": {
|
|
866
|
+
"type": "array",
|
|
867
|
+
"items": {
|
|
868
|
+
"anyOf": [
|
|
869
|
+
{
|
|
870
|
+
"type": "boolean"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"allOf": {
|
|
879
|
+
"type": "array",
|
|
880
|
+
"items": {
|
|
881
|
+
"anyOf": [
|
|
882
|
+
{
|
|
883
|
+
"type": "boolean"
|
|
884
|
+
},
|
|
885
|
+
{
|
|
886
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
887
|
+
}
|
|
888
|
+
]
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"anyOf": {
|
|
892
|
+
"type": "array",
|
|
893
|
+
"items": {
|
|
894
|
+
"anyOf": [
|
|
895
|
+
{
|
|
896
|
+
"type": "boolean"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"oneOf": {
|
|
905
|
+
"type": "array",
|
|
906
|
+
"items": {
|
|
907
|
+
"anyOf": [
|
|
908
|
+
{
|
|
909
|
+
"type": "boolean"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
"properties": {
|
|
918
|
+
"type": "object",
|
|
919
|
+
"propertyNames": {
|
|
920
|
+
"type": "string"
|
|
921
|
+
},
|
|
922
|
+
"additionalProperties": {
|
|
923
|
+
"anyOf": [
|
|
924
|
+
{
|
|
925
|
+
"type": "boolean"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
929
|
+
}
|
|
930
|
+
]
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
"patternProperties": {
|
|
934
|
+
"type": "object",
|
|
935
|
+
"propertyNames": {
|
|
936
|
+
"type": "string"
|
|
937
|
+
},
|
|
938
|
+
"additionalProperties": {
|
|
939
|
+
"anyOf": [
|
|
940
|
+
{
|
|
941
|
+
"type": "boolean"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
945
|
+
}
|
|
946
|
+
]
|
|
947
|
+
}
|
|
948
|
+
},
|
|
949
|
+
"dependentSchemas": {
|
|
950
|
+
"type": "object",
|
|
951
|
+
"propertyNames": {
|
|
952
|
+
"type": "string"
|
|
953
|
+
},
|
|
954
|
+
"additionalProperties": {
|
|
955
|
+
"anyOf": [
|
|
956
|
+
{
|
|
957
|
+
"type": "boolean"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"$ref": "#/$defs/ClaimConstraints"
|
|
961
|
+
}
|
|
962
|
+
]
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
},
|
|
966
|
+
"additionalProperties": false
|
|
737
967
|
}
|
|
738
968
|
},
|
|
739
969
|
"$id": "./CredentialConfigCreate.schema.json",
|