@eudiplo/cli 9.1.0-main.96e66fb → 9.1.0-main.992b1e0

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 (102) 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/config/validate/validator.d.ts.map +1 -1
  16. package/dist/commands/config/validate/validator.js +26 -3
  17. package/dist/commands/config/validate/validator.js.map +1 -1
  18. package/dist/commands/init/action.d.ts.map +1 -1
  19. package/dist/commands/init/action.js +1 -11
  20. package/dist/commands/init/action.js.map +1 -1
  21. package/dist/commands/instance/action.d.ts +2 -0
  22. package/dist/commands/instance/action.d.ts.map +1 -1
  23. package/dist/commands/instance/action.js +68 -12
  24. package/dist/commands/instance/action.js.map +1 -1
  25. package/dist/commands/instance/index.d.ts.map +1 -1
  26. package/dist/commands/instance/index.js +21 -3
  27. package/dist/commands/instance/index.js.map +1 -1
  28. package/dist/commands/open/action.d.ts.map +1 -1
  29. package/dist/commands/open/action.js +13 -2
  30. package/dist/commands/open/action.js.map +1 -1
  31. package/dist/commands/status/action.d.ts.map +1 -1
  32. package/dist/commands/status/action.js +2 -1
  33. package/dist/commands/status/action.js.map +1 -1
  34. package/dist/index.js +22585 -5563
  35. package/dist/services/api-auth.d.ts.map +1 -1
  36. package/dist/services/api-auth.js +3 -2
  37. package/dist/services/api-auth.js.map +1 -1
  38. package/dist/services/browser.d.ts.map +1 -1
  39. package/dist/services/browser.js +3 -2
  40. package/dist/services/browser.js.map +1 -1
  41. package/dist/services/cli-config.d.ts +41 -1
  42. package/dist/services/cli-config.d.ts.map +1 -1
  43. package/dist/services/cli-config.js +217 -29
  44. package/dist/services/cli-config.js.map +1 -1
  45. package/dist/services/compose-project.d.ts +6 -0
  46. package/dist/services/compose-project.d.ts.map +1 -1
  47. package/dist/services/compose-project.js +13 -2
  48. package/dist/services/compose-project.js.map +1 -1
  49. package/dist/services/diagnostics.d.ts.map +1 -1
  50. package/dist/services/diagnostics.js +9 -8
  51. package/dist/services/diagnostics.js.map +1 -1
  52. package/dist/services/instance-selection.d.ts.map +1 -1
  53. package/dist/services/instance-selection.js +2 -5
  54. package/dist/services/instance-selection.js.map +1 -1
  55. package/dist/services/url.d.ts +21 -0
  56. package/dist/services/url.d.ts.map +1 -0
  57. package/dist/services/url.js +61 -0
  58. package/dist/services/url.js.map +1 -0
  59. package/package.json +6 -5
  60. package/templates/demo-config/clients/presentation-test.json +1 -1
  61. package/templates/demo-config/clients/test.json +7 -2
  62. package/templates/demo-config/info.json +1 -1
  63. package/templates/demo-config/issuance/credentials/citizen.json +1 -1
  64. package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
  65. package/templates/demo-config/issuance/credentials/pid-mdoc.json +1 -1
  66. package/templates/demo-config/issuance/credentials/pid.json +1 -1
  67. package/templates/demo-config/issuance/issuance.json +1 -1
  68. package/templates/demo-config/key-chains/access.json +1 -1
  69. package/templates/demo-config/key-chains/attestation.json +3 -2
  70. package/templates/demo-config/key-chains/status-list.json +6 -5
  71. package/templates/demo-config/key-chains/trust-list.json +1 -1
  72. package/templates/demo-config/presentation/age-over-18.json +1 -1
  73. package/templates/demo-config/presentation/pid.json +1 -1
  74. package/templates/demo-config/trust-lists/trustlist-580831bc-ef11-43f4-a3be-a2b6bf1b29a3-config.json +1 -1
  75. package/templates/docker-compose.yml +2 -2
  76. package/templates/schemas/ClientConfigFile.schema.json +134 -1
  77. package/templates/schemas/CreateClientDto.schema.json +5 -1
  78. package/templates/schemas/CreateFederationTrustAnchorDto.schema.json +82 -0
  79. package/templates/schemas/CreateRegistrarConfigDto.schema.json +29 -0
  80. package/templates/schemas/CreateTenantDto.schema.json +8 -4
  81. package/templates/schemas/CredentialConfigCreate.schema.json +246 -14
  82. package/templates/schemas/CredentialConfigFile.schema.json +1823 -1
  83. package/templates/schemas/FederationTrustAnchorConfigFile.schema.json +60 -0
  84. package/templates/schemas/IssuanceConfig.schema.json +122 -9
  85. package/templates/schemas/IssuanceConfigFile.schema.json +2247 -1
  86. package/templates/schemas/KeyChainConfigFile.schema.json +875 -119
  87. package/templates/schemas/KeyChainCreateDto.schema.json +12 -1
  88. package/templates/schemas/KeyChainDefaultsConfigFile.schema.json +123 -0
  89. package/templates/schemas/KeyChainImportDto.schema.json +10 -0
  90. package/templates/schemas/KmsConfigDto.schema.json +186 -0
  91. package/templates/schemas/KmsConfigFile.schema.json +1026 -1
  92. package/templates/schemas/PresentationConfigCreateDto.schema.json +16 -0
  93. package/templates/schemas/PresentationConfigFile.schema.json +746 -1
  94. package/templates/schemas/RegistrarConfigFile.schema.json +101 -1
  95. package/templates/schemas/RotationPolicyCreateDto.schema.json +1 -1
  96. package/templates/schemas/TenantConfigFile.schema.json +334 -64
  97. package/templates/schemas/TrustListConfigFile.schema.json +263 -1
  98. package/templates/schemas/TrustListCreateDto.schema.json +524 -16
  99. package/templates/schemas/UpdateClientDto.schema.json +5 -1
  100. package/templates/schemas/UpdateFederationTrustAnchorDto.schema.json +70 -0
  101. package/templates/schemas/UpdateStatusListConfigDto.schema.json +5 -5
  102. package/templates/schemas.manifest.json +4 -0
@@ -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
  }