@eudiplo/cli 7.6.1-main.8bbb627 → 7.6.1-main.c7b1bd8
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/config/portability/action.d.ts +1 -1
- package/dist/commands/config/portability/action.d.ts.map +1 -1
- package/dist/commands/config/portability/action.js +49 -95
- package/dist/commands/config/portability/action.js.map +1 -1
- package/dist/commands/config/portability/index.d.ts.map +1 -1
- package/dist/commands/config/portability/index.js +37 -5
- package/dist/commands/config/portability/index.js.map +1 -1
- package/dist/commands/config/portability/migrations.d.ts +3 -21
- package/dist/commands/config/portability/migrations.d.ts.map +1 -1
- package/dist/commands/config/portability/migrations.js +4 -92
- package/dist/commands/config/portability/migrations.js.map +1 -1
- package/dist/commands/config/portability/migrations.spec.js +12 -14
- package/dist/commands/config/portability/migrations.spec.js.map +1 -1
- package/dist/commands/config/portability/upgrade.d.ts +3 -0
- package/dist/commands/config/portability/upgrade.d.ts.map +1 -0
- package/dist/commands/config/portability/upgrade.js +199 -0
- package/dist/commands/config/portability/upgrade.js.map +1 -0
- package/dist/commands/config/tenant/action.js +3 -4
- package/dist/commands/config/tenant/action.js.map +1 -1
- package/dist/commands/config/validate/validator.d.ts.map +1 -1
- package/dist/commands/config/validate/validator.js +50 -30
- package/dist/commands/config/validate/validator.js.map +1 -1
- package/package.json +2 -1
- package/templates/demo-config/attribute-providers/claims-provider.json +8 -2
- package/templates/demo-config/clients/presentation-test.json +8 -2
- package/templates/demo-config/clients/test.json +12 -6
- package/templates/demo-config/info.json +7 -1
- package/templates/demo-config/issuance/credentials/citizen.json +43 -37
- package/templates/demo-config/issuance/credentials/pid-key.json +371 -365
- package/templates/demo-config/issuance/credentials/pid-mdoc.json +444 -438
- package/templates/demo-config/issuance/credentials/pid.json +472 -466
- package/templates/demo-config/issuance/issuance.json +1 -3
- package/templates/demo-config/issuance/status-lists/pid.json +12 -6
- package/templates/demo-config/key-chains/access.json +2 -4
- package/templates/demo-config/key-chains/attestation.json +2 -4
- package/templates/demo-config/key-chains/status-list.json +1 -3
- package/templates/demo-config/key-chains/trust-list.json +1 -3
- package/templates/demo-config/presentation/age-over-18.json +20 -7
- package/templates/demo-config/presentation/pid.json +1 -3
- package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +96 -90
- package/templates/demo-config/webhook-endpoints/notification.json +8 -2
- package/templates/schemas/AttributeProviderConfigFile.schema.json +38 -15
- package/templates/schemas/ClientConfigFile.schema.json +38 -15
- package/templates/schemas/CredentialConfigFile.schema.json +38 -15
- package/templates/schemas/IssuanceConfigFile.schema.json +24 -12
- package/templates/schemas/KeyChainConfigFile.schema.json +373 -19
- package/templates/schemas/KmsConfigFile.schema.json +21 -14
- package/templates/schemas/PresentationConfigFile.schema.json +41 -13
- package/templates/schemas/RegistrarConfigFile.schema.json +21 -14
- package/templates/schemas/StatusListConfigFile.schema.json +38 -15
- package/templates/schemas/TenantConfigFile.schema.json +136 -20
- package/templates/schemas/TrustListConfigFile.schema.json +38 -15
- package/templates/schemas/WebhookEndpointConfigFile.schema.json +38 -15
|
@@ -1,6 +1,129 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"anyOf": [
|
|
4
|
+
{
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$schema": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "https://eudiplo.dev/schemas/v1/TenantConfigFile.schema.json"
|
|
10
|
+
},
|
|
11
|
+
"metadata": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"generation": {
|
|
15
|
+
"type": "integer",
|
|
16
|
+
"minimum": 1,
|
|
17
|
+
"maximum": 9007199254740991
|
|
18
|
+
},
|
|
19
|
+
"ownership": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"unmanaged",
|
|
23
|
+
"file-managed"
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"additionalProperties": false
|
|
28
|
+
},
|
|
29
|
+
"spec": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"name": {
|
|
33
|
+
"default": "EUDIPLO",
|
|
34
|
+
"description": "Display name of the tenant.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"description": {
|
|
39
|
+
"description": "Optional tenant description.",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1
|
|
42
|
+
},
|
|
43
|
+
"sessionConfig": {
|
|
44
|
+
"description": "Optional tenant-specific session storage configuration.",
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"ttlSeconds": {
|
|
48
|
+
"description": "Session time-to-live in seconds.",
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"minimum": 60,
|
|
51
|
+
"maximum": 9007199254740991
|
|
52
|
+
},
|
|
53
|
+
"cleanupMode": {
|
|
54
|
+
"description": "Whether to fully delete or anonymize expired sessions.",
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"full",
|
|
58
|
+
"anonymize"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"additionalProperties": false
|
|
63
|
+
},
|
|
64
|
+
"statusListConfig": {
|
|
65
|
+
"description": "Optional tenant-specific status list defaults.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"properties": {
|
|
68
|
+
"capacity": {
|
|
69
|
+
"description": "Default status list capacity.",
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"minimum": 100,
|
|
72
|
+
"maximum": 9007199254740991
|
|
73
|
+
},
|
|
74
|
+
"bits": {
|
|
75
|
+
"description": "Bits-per-status setting (1, 2, 4, or 8).",
|
|
76
|
+
"anyOf": [
|
|
77
|
+
{
|
|
78
|
+
"type": "number",
|
|
79
|
+
"const": 1
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "number",
|
|
83
|
+
"const": 2
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "number",
|
|
87
|
+
"const": 4
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "number",
|
|
91
|
+
"const": 8
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"ttl": {
|
|
96
|
+
"description": "JWT TTL for status list tokens in seconds.",
|
|
97
|
+
"type": "integer",
|
|
98
|
+
"minimum": 60,
|
|
99
|
+
"maximum": 9007199254740991
|
|
100
|
+
},
|
|
101
|
+
"immediateUpdate": {
|
|
102
|
+
"description": "Regenerate status list JWTs immediately after status updates.",
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"enableAggregation": {
|
|
106
|
+
"description": "Include aggregation_uri in generated status list JWTs.",
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"additionalProperties": false
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"name"
|
|
115
|
+
],
|
|
116
|
+
"additionalProperties": false,
|
|
117
|
+
"description": "Payload used when importing tenant metadata from config files."
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"required": [
|
|
121
|
+
"$schema",
|
|
122
|
+
"metadata",
|
|
123
|
+
"spec"
|
|
124
|
+
],
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
},
|
|
4
127
|
{
|
|
5
128
|
"type": "object",
|
|
6
129
|
"properties": {
|
|
@@ -90,27 +213,26 @@
|
|
|
90
213
|
],
|
|
91
214
|
"additionalProperties": false,
|
|
92
215
|
"description": "Payload used when importing tenant metadata from config files."
|
|
93
|
-
}
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"$id": "./TenantConfigFile.schema.json",
|
|
219
|
+
"title": "TenantConfigFile",
|
|
220
|
+
"description": "Configuration file identified by its $schema URL.",
|
|
221
|
+
"oneOf": [
|
|
94
222
|
{
|
|
95
223
|
"type": "object",
|
|
96
224
|
"properties": {
|
|
97
|
-
"
|
|
98
|
-
"type": "string",
|
|
99
|
-
"const": "eudiplo.io/tenant/v1"
|
|
100
|
-
},
|
|
101
|
-
"kind": {
|
|
225
|
+
"$schema": {
|
|
102
226
|
"type": "string",
|
|
103
|
-
"const": "
|
|
227
|
+
"const": "https://eudiplo.dev/schemas/v1/TenantConfigFile.schema.json"
|
|
104
228
|
},
|
|
105
229
|
"metadata": {
|
|
106
230
|
"type": "object",
|
|
107
231
|
"properties": {
|
|
108
|
-
"id": {
|
|
109
|
-
"type": "string",
|
|
110
|
-
"minLength": 1
|
|
111
|
-
},
|
|
112
232
|
"generation": {
|
|
113
|
-
"type": "
|
|
233
|
+
"type": "integer",
|
|
234
|
+
"minimum": 1,
|
|
235
|
+
"maximum": 9007199254740991
|
|
114
236
|
},
|
|
115
237
|
"ownership": {
|
|
116
238
|
"type": "string",
|
|
@@ -120,9 +242,6 @@
|
|
|
120
242
|
]
|
|
121
243
|
}
|
|
122
244
|
},
|
|
123
|
-
"required": [
|
|
124
|
-
"id"
|
|
125
|
-
],
|
|
126
245
|
"additionalProperties": false
|
|
127
246
|
},
|
|
128
247
|
"spec": {
|
|
@@ -217,14 +336,11 @@
|
|
|
217
336
|
}
|
|
218
337
|
},
|
|
219
338
|
"required": [
|
|
220
|
-
"
|
|
221
|
-
"kind",
|
|
339
|
+
"$schema",
|
|
222
340
|
"metadata",
|
|
223
341
|
"spec"
|
|
224
342
|
],
|
|
225
343
|
"additionalProperties": false
|
|
226
344
|
}
|
|
227
|
-
]
|
|
228
|
-
"$id": "./TenantConfigFile.schema.json",
|
|
229
|
-
"title": "TenantConfigFile"
|
|
345
|
+
]
|
|
230
346
|
}
|
|
@@ -2,33 +2,56 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "./TrustListConfigFile.schema.json",
|
|
4
4
|
"title": "TrustListConfigFile",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Configuration file identified by its $schema URL.",
|
|
6
6
|
"oneOf": [
|
|
7
|
-
{
|
|
8
|
-
"$ref": "./TrustListCreateDto.schema.json"
|
|
9
|
-
},
|
|
10
7
|
{
|
|
11
8
|
"type": "object",
|
|
12
9
|
"properties": {
|
|
13
|
-
"
|
|
14
|
-
"type": "string",
|
|
15
|
-
"const": "eudiplo.io/trust-list/v1"
|
|
16
|
-
},
|
|
17
|
-
"kind": {
|
|
10
|
+
"$schema": {
|
|
18
11
|
"type": "string",
|
|
19
|
-
"const": "
|
|
12
|
+
"const": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json"
|
|
20
13
|
},
|
|
21
14
|
"metadata": {
|
|
22
|
-
"
|
|
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
|
|
23
32
|
},
|
|
24
33
|
"spec": {
|
|
25
|
-
"
|
|
34
|
+
"allOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "./TrustListCreateDto.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
|
+
]
|
|
26
51
|
}
|
|
27
52
|
},
|
|
28
53
|
"required": [
|
|
29
|
-
"
|
|
30
|
-
"kind",
|
|
31
|
-
"metadata",
|
|
54
|
+
"$schema",
|
|
32
55
|
"spec"
|
|
33
56
|
],
|
|
34
57
|
"additionalProperties": false
|
|
@@ -2,33 +2,56 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "./WebhookEndpointConfigFile.schema.json",
|
|
4
4
|
"title": "WebhookEndpointConfigFile",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Configuration file identified by its $schema URL.",
|
|
6
6
|
"oneOf": [
|
|
7
|
-
{
|
|
8
|
-
"$ref": "./CreateWebhookEndpointDto.schema.json"
|
|
9
|
-
},
|
|
10
7
|
{
|
|
11
8
|
"type": "object",
|
|
12
9
|
"properties": {
|
|
13
|
-
"
|
|
14
|
-
"type": "string",
|
|
15
|
-
"const": "eudiplo.io/webhook-endpoint/v1"
|
|
16
|
-
},
|
|
17
|
-
"kind": {
|
|
10
|
+
"$schema": {
|
|
18
11
|
"type": "string",
|
|
19
|
-
"const": "
|
|
12
|
+
"const": "https://eudiplo.dev/schemas/v1/WebhookEndpointConfigFile.schema.json"
|
|
20
13
|
},
|
|
21
14
|
"metadata": {
|
|
22
|
-
"
|
|
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
|
|
23
32
|
},
|
|
24
33
|
"spec": {
|
|
25
|
-
"
|
|
34
|
+
"allOf": [
|
|
35
|
+
{
|
|
36
|
+
"$ref": "./CreateWebhookEndpointDto.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
|
+
]
|
|
26
51
|
}
|
|
27
52
|
},
|
|
28
53
|
"required": [
|
|
29
|
-
"
|
|
30
|
-
"kind",
|
|
31
|
-
"metadata",
|
|
54
|
+
"$schema",
|
|
32
55
|
"spec"
|
|
33
56
|
],
|
|
34
57
|
"additionalProperties": false
|