@eudiplo/cli 9.1.0-main.a78cbb4 → 9.1.0-main.ab5c9f8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eudiplo/cli",
3
- "version": "9.1.0-main.a78cbb4",
3
+ "version": "9.1.0-main.ab5c9f8",
4
4
  "description": "Deployment-aware command line tools for EUDIPLO",
5
5
  "private": false,
6
6
  "type": "module",
@@ -60,11 +60,11 @@
60
60
  "jsonc-parser": "^3.3.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@biomejs/biome": "2.6.3",
63
+ "@biomejs/biome": "2.6.4",
64
64
  "@types/node": "^26.6.5",
65
65
  "esbuild": "^0.28.2",
66
66
  "tsx": "^4.23.15",
67
67
  "typescript": "^7.0.2",
68
- "vitest": "5.0.5"
68
+ "vitest": "5.1.0"
69
69
  }
70
70
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json",
2
+ "$schema": "https://eudiplo.dev/schemas/v2/TrustListConfigFile.schema.json",
3
3
  "metadata": {
4
4
  "generation": 1
5
5
  },
@@ -14,7 +14,9 @@
14
14
  "revocationKeyChainId": "dbb65456-c358-46c1-bb5b-c777ef72c1d4",
15
15
  "info": {
16
16
  "name": "PID Provider",
17
- "locale": "en"
17
+ "locale": "en",
18
+ "contactUri": "info@example.com",
19
+ "website": "https://example.com/"
18
20
  }
19
21
  }
20
22
  ]
@@ -19,7 +19,7 @@
19
19
  "minLength": 1
20
20
  },
21
21
  "roles": {
22
- "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, no admin client is created.",
22
+ "description": "Roles of the tenant's admin client `<id>-admin`, which also gets clients:manage. They are all that client can grant, unless they include tenant:admin. Without roles, or with an empty list, no admin client is created.",
23
23
  "type": "array",
24
24
  "items": {
25
25
  "type": "string",
@@ -211,7 +211,7 @@
211
211
  ]
212
212
  },
213
213
  "webhookEndpointId": {
214
- "description": "Not used for notifications: they go to the webhook endpoint of the offer.",
214
+ "description": "Receives the wallet unit revocation webhook (revokeWithWalletUnit). Not used for notifications: they go to the webhook endpoint of the offer.",
215
215
  "type": [
216
216
  "string",
217
217
  "null"
@@ -304,6 +304,10 @@
304
304
  }
305
305
  ]
306
306
  },
307
+ "revokeWithWalletUnit": {
308
+ "description": "Revoke issued credentials when the wallet unit attestation (the key attestation of the proof) they were bound to is revoked. Requires statusManagement and config.keyAttestationsRequired.",
309
+ "type": "boolean"
310
+ },
307
311
  "iaeActions": {
308
312
  "description": "Interactive authorization steps (a presentation or a web flow) that the wallet completes, in order, before the credential is issued.",
309
313
  "anyOf": [
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "walletAttestationStatusCheckMode": {
56
- "description": "Default status check mode for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
56
+ "description": "Status check mode for key attestations at the credential endpoint, and default for wallet attestations at managed authorization servers: strict, best_effort (default) or disabled.",
57
57
  "anyOf": [
58
58
  {
59
59
  "type": "string",
@@ -675,6 +675,15 @@
675
675
  "supportUri": {
676
676
  "description": "Optional support URI.",
677
677
  "type": "string"
678
+ },
679
+ "renewal": {
680
+ "description": "When a generated certificate is renewed. onCredentialConfigChange (default): in the background after a credential or issuance configuration changes, and when issuer metadata is built. onMetadataRequest: only when issuer metadata is built. manual: only with Regenerate now. In every mode a missing or expired certificate is requested when issuer metadata is built.",
681
+ "type": "string",
682
+ "enum": [
683
+ "onCredentialConfigChange",
684
+ "onMetadataRequest",
685
+ "manual"
686
+ ]
678
687
  }
679
688
  },
680
689
  "additionalProperties": false
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "$schema": {
11
11
  "type": "string",
12
- "const": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json"
12
+ "const": "https://eudiplo.dev/schemas/v2/TrustListConfigFile.schema.json"
13
13
  },
14
14
  "metadata": {
15
15
  "type": "object",
@@ -55,6 +55,268 @@
55
55
  "spec"
56
56
  ],
57
57
  "additionalProperties": false
58
+ },
59
+ {
60
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
61
+ "$id": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json",
62
+ "title": "TrustListConfigFile",
63
+ "type": "object",
64
+ "properties": {
65
+ "$schema": {
66
+ "type": "string",
67
+ "const": "https://eudiplo.dev/schemas/v1/TrustListConfigFile.schema.json"
68
+ },
69
+ "metadata": {
70
+ "type": "object",
71
+ "properties": {
72
+ "generation": {
73
+ "type": "integer",
74
+ "minimum": 1,
75
+ "description": "Monotonically increasing configuration generation."
76
+ },
77
+ "ownership": {
78
+ "type": "string",
79
+ "enum": [
80
+ "unmanaged",
81
+ "file-managed"
82
+ ],
83
+ "description": "Requested ownership recorded when the document is applied."
84
+ }
85
+ },
86
+ "additionalProperties": false
87
+ },
88
+ "spec": {
89
+ "allOf": [
90
+ {
91
+ "$ref": "#/$defs/TrustListCreateDto"
92
+ },
93
+ {
94
+ "type": "object",
95
+ "required": [
96
+ "id"
97
+ ],
98
+ "properties": {
99
+ "id": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ }
103
+ }
104
+ }
105
+ ]
106
+ }
107
+ },
108
+ "required": [
109
+ "$schema",
110
+ "spec"
111
+ ],
112
+ "additionalProperties": false,
113
+ "$defs": {
114
+ "TrustListCreateDto": {
115
+ "type": "object",
116
+ "properties": {
117
+ "id": {
118
+ "description": "Optional trust list id. If omitted, one may be generated.",
119
+ "type": "string",
120
+ "minLength": 1
121
+ },
122
+ "description": {
123
+ "description": "Optional trust list description.",
124
+ "type": "string"
125
+ },
126
+ "keyChainId": {
127
+ "description": "Optional key chain id used to sign trust list payloads.",
128
+ "type": "string",
129
+ "minLength": 1
130
+ },
131
+ "entities": {
132
+ "minItems": 1,
133
+ "type": "array",
134
+ "items": {
135
+ "oneOf": [
136
+ {
137
+ "type": "object",
138
+ "properties": {
139
+ "type": {
140
+ "type": "string",
141
+ "const": "internal",
142
+ "description": "Use locally managed key chains for trust material."
143
+ },
144
+ "issuerKeyChainId": {
145
+ "type": "string",
146
+ "minLength": 1,
147
+ "description": "Key chain id for issuer certificate material."
148
+ },
149
+ "revocationKeyChainId": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "description": "Key chain id for revocation/status list certificate material."
153
+ },
154
+ "providerType": {
155
+ "description": "Provider role; defaults to attestation-provider.",
156
+ "type": "string",
157
+ "enum": [
158
+ "attestation-provider",
159
+ "wallet-provider"
160
+ ]
161
+ },
162
+ "info": {
163
+ "type": "object",
164
+ "properties": {
165
+ "name": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "description": "Display name of the trusted entity."
169
+ },
170
+ "lang": {
171
+ "description": "Optional language tag for entity info.",
172
+ "type": "string"
173
+ },
174
+ "locale": {
175
+ "description": "Optional locale identifier.",
176
+ "type": "string"
177
+ },
178
+ "uri": {
179
+ "description": "Optional entity URI.",
180
+ "type": "string"
181
+ },
182
+ "country": {
183
+ "description": "Optional country name or code.",
184
+ "type": "string"
185
+ },
186
+ "locality": {
187
+ "description": "Optional locality or city.",
188
+ "type": "string"
189
+ },
190
+ "postalCode": {
191
+ "description": "Optional postal code.",
192
+ "type": "string"
193
+ },
194
+ "streetAddress": {
195
+ "description": "Optional street address.",
196
+ "type": "string"
197
+ },
198
+ "contactUri": {
199
+ "description": "Optional contact URI for the entity.",
200
+ "type": "string"
201
+ }
202
+ },
203
+ "required": [
204
+ "name"
205
+ ],
206
+ "additionalProperties": false,
207
+ "description": "Entity metadata."
208
+ }
209
+ },
210
+ "required": [
211
+ "type",
212
+ "issuerKeyChainId",
213
+ "revocationKeyChainId",
214
+ "info"
215
+ ],
216
+ "additionalProperties": false
217
+ },
218
+ {
219
+ "type": "object",
220
+ "properties": {
221
+ "type": {
222
+ "type": "string",
223
+ "const": "external",
224
+ "description": "Provide external PEM certificates directly."
225
+ },
226
+ "issuerCertPem": {
227
+ "type": "string",
228
+ "minLength": 1,
229
+ "description": "Issuer certificate in PEM format."
230
+ },
231
+ "revocationCertPem": {
232
+ "type": "string",
233
+ "minLength": 1,
234
+ "description": "Revocation/status certificate in PEM format."
235
+ },
236
+ "providerType": {
237
+ "description": "Provider role; defaults to attestation-provider.",
238
+ "type": "string",
239
+ "enum": [
240
+ "attestation-provider",
241
+ "wallet-provider"
242
+ ]
243
+ },
244
+ "info": {
245
+ "type": "object",
246
+ "properties": {
247
+ "name": {
248
+ "type": "string",
249
+ "minLength": 1,
250
+ "description": "Display name of the trusted entity."
251
+ },
252
+ "lang": {
253
+ "description": "Optional language tag for entity info.",
254
+ "type": "string"
255
+ },
256
+ "locale": {
257
+ "description": "Optional locale identifier.",
258
+ "type": "string"
259
+ },
260
+ "uri": {
261
+ "description": "Optional entity URI.",
262
+ "type": "string"
263
+ },
264
+ "country": {
265
+ "description": "Optional country name or code.",
266
+ "type": "string"
267
+ },
268
+ "locality": {
269
+ "description": "Optional locality or city.",
270
+ "type": "string"
271
+ },
272
+ "postalCode": {
273
+ "description": "Optional postal code.",
274
+ "type": "string"
275
+ },
276
+ "streetAddress": {
277
+ "description": "Optional street address.",
278
+ "type": "string"
279
+ },
280
+ "contactUri": {
281
+ "description": "Optional contact URI for the entity.",
282
+ "type": "string"
283
+ }
284
+ },
285
+ "required": [
286
+ "name"
287
+ ],
288
+ "additionalProperties": false,
289
+ "description": "Entity metadata."
290
+ }
291
+ },
292
+ "required": [
293
+ "type",
294
+ "issuerCertPem",
295
+ "revocationCertPem",
296
+ "info"
297
+ ],
298
+ "additionalProperties": false
299
+ }
300
+ ]
301
+ },
302
+ "description": "One or more entities included in this trust list."
303
+ },
304
+ "data": {
305
+ "description": "Optional additional custom payload data.",
306
+ "type": "object",
307
+ "propertyNames": {
308
+ "type": "string"
309
+ },
310
+ "additionalProperties": {}
311
+ }
312
+ },
313
+ "required": [
314
+ "entities"
315
+ ],
316
+ "additionalProperties": false,
317
+ "title": "TrustListCreateDto"
318
+ }
319
+ }
58
320
  }
59
321
  ]
60
322
  }