@eudiplo/cli 10.1.0-main.cdfd658 → 10.1.0-main.d337e12
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.map +1 -1
- package/dist/commands/config/portability/action.js +25 -1
- package/dist/commands/config/portability/action.js.map +1 -1
- package/dist/commands/config/portability/folder-bundle.d.ts +3 -1
- package/dist/commands/config/portability/folder-bundle.d.ts.map +1 -1
- package/dist/commands/config/portability/folder-bundle.js +18 -7
- package/dist/commands/config/portability/folder-bundle.js.map +1 -1
- package/dist/commands/config/portability/migrations.d.ts +4 -0
- package/dist/commands/config/portability/migrations.d.ts.map +1 -1
- package/dist/commands/config/portability/migrations.js +6 -2
- package/dist/commands/config/portability/migrations.js.map +1 -1
- package/dist/commands/config/validate/action.d.ts.map +1 -1
- package/dist/commands/config/validate/action.js +6 -2
- package/dist/commands/config/validate/action.js.map +1 -1
- package/dist/commands/config/validate/validator.d.ts +17 -1
- package/dist/commands/config/validate/validator.d.ts.map +1 -1
- package/dist/commands/config/validate/validator.js +101 -15
- package/dist/commands/config/validate/validator.js.map +1 -1
- package/dist/index.js +1428 -220
- package/dist/services/backend-checks.d.ts +10 -1
- package/dist/services/backend-checks.d.ts.map +1 -1
- package/dist/services/backend-checks.js +38 -1
- package/dist/services/backend-checks.js.map +1 -1
- package/dist/services/diagnostics.js +1 -1
- package/dist/services/diagnostics.js.map +1 -1
- package/package.json +1 -1
- package/templates/demo-config/clients/presentation-test.json +1 -2
- package/templates/demo-config/clients/test.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 +1 -1
- package/templates/schemas/ClientConfigFile.schema.json +138 -1
- package/templates/schemas/CreateClientDto.schema.json +4 -1
- package/templates/schemas/CreateTenantDto.schema.json +5 -2
- package/templates/schemas/PresentationConfigCreateDto.schema.json +4 -0
- package/templates/schemas/PresentationConfigFile.schema.json +797 -1
- package/templates/schemas/UpdateClientDto.schema.json +4 -1
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"properties": {
|
|
10
10
|
"$schema": {
|
|
11
11
|
"type": "string",
|
|
12
|
-
"const": "https://eudiplo.dev/schemas/
|
|
12
|
+
"const": "https://eudiplo.dev/schemas/v6/PresentationConfigFile.schema.json"
|
|
13
13
|
},
|
|
14
14
|
"metadata": {
|
|
15
15
|
"type": "object",
|
|
@@ -3118,6 +3118,802 @@
|
|
|
3118
3118
|
"title": "PresentationConfigCreateDto"
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3124
|
+
"$id": "https://eudiplo.dev/schemas/v5/PresentationConfigFile.schema.json",
|
|
3125
|
+
"title": "PresentationConfigFile",
|
|
3126
|
+
"type": "object",
|
|
3127
|
+
"properties": {
|
|
3128
|
+
"$schema": {
|
|
3129
|
+
"type": "string",
|
|
3130
|
+
"const": "https://eudiplo.dev/schemas/v5/PresentationConfigFile.schema.json"
|
|
3131
|
+
},
|
|
3132
|
+
"metadata": {
|
|
3133
|
+
"type": "object",
|
|
3134
|
+
"properties": {
|
|
3135
|
+
"generation": {
|
|
3136
|
+
"type": "integer",
|
|
3137
|
+
"minimum": 1,
|
|
3138
|
+
"description": "Monotonically increasing configuration generation."
|
|
3139
|
+
},
|
|
3140
|
+
"ownership": {
|
|
3141
|
+
"type": "string",
|
|
3142
|
+
"enum": [
|
|
3143
|
+
"unmanaged",
|
|
3144
|
+
"file-managed"
|
|
3145
|
+
],
|
|
3146
|
+
"description": "Requested ownership recorded when the document is applied."
|
|
3147
|
+
}
|
|
3148
|
+
},
|
|
3149
|
+
"additionalProperties": false
|
|
3150
|
+
},
|
|
3151
|
+
"spec": {
|
|
3152
|
+
"allOf": [
|
|
3153
|
+
{
|
|
3154
|
+
"$ref": "#/$defs/PresentationConfigCreateDto"
|
|
3155
|
+
},
|
|
3156
|
+
{
|
|
3157
|
+
"type": "object",
|
|
3158
|
+
"required": [
|
|
3159
|
+
"id"
|
|
3160
|
+
],
|
|
3161
|
+
"properties": {
|
|
3162
|
+
"id": {
|
|
3163
|
+
"type": "string",
|
|
3164
|
+
"minLength": 1
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
]
|
|
3169
|
+
}
|
|
3170
|
+
},
|
|
3171
|
+
"required": [
|
|
3172
|
+
"$schema",
|
|
3173
|
+
"spec"
|
|
3174
|
+
],
|
|
3175
|
+
"additionalProperties": false,
|
|
3176
|
+
"$defs": {
|
|
3177
|
+
"PresentationConfigCreateDto": {
|
|
3178
|
+
"type": "object",
|
|
3179
|
+
"properties": {
|
|
3180
|
+
"id": {
|
|
3181
|
+
"type": "string",
|
|
3182
|
+
"minLength": 1,
|
|
3183
|
+
"description": "Presentation configuration identifier."
|
|
3184
|
+
},
|
|
3185
|
+
"description": {
|
|
3186
|
+
"description": "Optional presentation configuration description.",
|
|
3187
|
+
"type": [
|
|
3188
|
+
"string",
|
|
3189
|
+
"null"
|
|
3190
|
+
]
|
|
3191
|
+
},
|
|
3192
|
+
"lifeTime": {
|
|
3193
|
+
"description": "Presentation request lifetime in seconds.",
|
|
3194
|
+
"type": "integer",
|
|
3195
|
+
"minimum": 1,
|
|
3196
|
+
"maximum": 9007199254740991
|
|
3197
|
+
},
|
|
3198
|
+
"skewSeconds": {
|
|
3199
|
+
"description": "Clock skew tolerance in seconds.",
|
|
3200
|
+
"type": "integer",
|
|
3201
|
+
"minimum": 0,
|
|
3202
|
+
"maximum": 9007199254740991
|
|
3203
|
+
},
|
|
3204
|
+
"statusCheckMode": {
|
|
3205
|
+
"description": "Revocation/status check mode.",
|
|
3206
|
+
"type": "string",
|
|
3207
|
+
"enum": [
|
|
3208
|
+
"strict",
|
|
3209
|
+
"best_effort",
|
|
3210
|
+
"disabled"
|
|
3211
|
+
]
|
|
3212
|
+
},
|
|
3213
|
+
"dcql_query": {
|
|
3214
|
+
"type": "object",
|
|
3215
|
+
"properties": {
|
|
3216
|
+
"credentials": {
|
|
3217
|
+
"minItems": 1,
|
|
3218
|
+
"type": "array",
|
|
3219
|
+
"items": {
|
|
3220
|
+
"oneOf": [
|
|
3221
|
+
{
|
|
3222
|
+
"type": "object",
|
|
3223
|
+
"properties": {
|
|
3224
|
+
"id": {
|
|
3225
|
+
"type": "string",
|
|
3226
|
+
"minLength": 1,
|
|
3227
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
3228
|
+
"description": "Credential query identifier."
|
|
3229
|
+
},
|
|
3230
|
+
"multiple": {
|
|
3231
|
+
"description": "Allow multiple matching credentials.",
|
|
3232
|
+
"type": "boolean"
|
|
3233
|
+
},
|
|
3234
|
+
"claim_sets": {
|
|
3235
|
+
"description": "Optional claim set constraints.",
|
|
3236
|
+
"type": "array",
|
|
3237
|
+
"items": {
|
|
3238
|
+
"type": "array",
|
|
3239
|
+
"items": {
|
|
3240
|
+
"type": "string"
|
|
3241
|
+
}
|
|
3242
|
+
}
|
|
3243
|
+
},
|
|
3244
|
+
"trusted_authorities": {
|
|
3245
|
+
"description": "Optional trusted authority constraints.",
|
|
3246
|
+
"type": "array",
|
|
3247
|
+
"items": {
|
|
3248
|
+
"oneOf": [
|
|
3249
|
+
{
|
|
3250
|
+
"type": "object",
|
|
3251
|
+
"properties": {
|
|
3252
|
+
"type": {
|
|
3253
|
+
"type": "string",
|
|
3254
|
+
"const": "etsi_tl",
|
|
3255
|
+
"description": "Trusted authority type discriminator for ETSI trust lists."
|
|
3256
|
+
},
|
|
3257
|
+
"values": {
|
|
3258
|
+
"type": "array",
|
|
3259
|
+
"items": {
|
|
3260
|
+
"anyOf": [
|
|
3261
|
+
{
|
|
3262
|
+
"type": "object",
|
|
3263
|
+
"properties": {
|
|
3264
|
+
"format": {
|
|
3265
|
+
"description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
|
|
3266
|
+
"type": "string",
|
|
3267
|
+
"const": "lote"
|
|
3268
|
+
},
|
|
3269
|
+
"trustListId": {
|
|
3270
|
+
"description": "Optional trust list id reference.",
|
|
3271
|
+
"type": "string"
|
|
3272
|
+
},
|
|
3273
|
+
"url": {
|
|
3274
|
+
"description": "Optional trust list URL reference.",
|
|
3275
|
+
"anyOf": [
|
|
3276
|
+
{
|
|
3277
|
+
"type": "string",
|
|
3278
|
+
"format": "uri"
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
"type": "string",
|
|
3282
|
+
"pattern": "^<TENANT_URL>(?:\\/.*)?$"
|
|
3283
|
+
}
|
|
3284
|
+
]
|
|
3285
|
+
},
|
|
3286
|
+
"verifierKey": {
|
|
3287
|
+
"description": "Optional verifier key material.",
|
|
3288
|
+
"type": "object",
|
|
3289
|
+
"propertyNames": {
|
|
3290
|
+
"type": "string"
|
|
3291
|
+
},
|
|
3292
|
+
"additionalProperties": {}
|
|
3293
|
+
},
|
|
3294
|
+
"verifierX509Der": {
|
|
3295
|
+
"description": "Optional verifier certificate in DER/base64 form.",
|
|
3296
|
+
"type": "string"
|
|
3297
|
+
}
|
|
3298
|
+
},
|
|
3299
|
+
"additionalProperties": false
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"type": "object",
|
|
3303
|
+
"properties": {
|
|
3304
|
+
"format": {
|
|
3305
|
+
"type": "string",
|
|
3306
|
+
"const": "trusted-list",
|
|
3307
|
+
"description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
|
|
3308
|
+
},
|
|
3309
|
+
"url": {
|
|
3310
|
+
"anyOf": [
|
|
3311
|
+
{
|
|
3312
|
+
"type": "string",
|
|
3313
|
+
"format": "uri"
|
|
3314
|
+
},
|
|
3315
|
+
{
|
|
3316
|
+
"type": "string",
|
|
3317
|
+
"pattern": "^<TENANT_URL>(?:\\/.*)?$"
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3320
|
+
"description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
|
|
3321
|
+
},
|
|
3322
|
+
"signingCertificates": {
|
|
3323
|
+
"minItems": 1,
|
|
3324
|
+
"type": "array",
|
|
3325
|
+
"items": {
|
|
3326
|
+
"type": "string",
|
|
3327
|
+
"minLength": 1,
|
|
3328
|
+
"pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
|
|
3329
|
+
},
|
|
3330
|
+
"description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
|
|
3331
|
+
},
|
|
3332
|
+
"schemeTerritories": {
|
|
3333
|
+
"description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
|
|
3334
|
+
"minItems": 1,
|
|
3335
|
+
"type": "array",
|
|
3336
|
+
"items": {
|
|
3337
|
+
"type": "string",
|
|
3338
|
+
"minLength": 1
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
},
|
|
3342
|
+
"required": [
|
|
3343
|
+
"format",
|
|
3344
|
+
"url",
|
|
3345
|
+
"signingCertificates"
|
|
3346
|
+
],
|
|
3347
|
+
"additionalProperties": false
|
|
3348
|
+
}
|
|
3349
|
+
],
|
|
3350
|
+
"description": "Reference to a trust list used for authority verification."
|
|
3351
|
+
},
|
|
3352
|
+
"description": "Trust list references for ETSI TL verification."
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3355
|
+
"required": [
|
|
3356
|
+
"type",
|
|
3357
|
+
"values"
|
|
3358
|
+
],
|
|
3359
|
+
"additionalProperties": false
|
|
3360
|
+
},
|
|
3361
|
+
{
|
|
3362
|
+
"type": "object",
|
|
3363
|
+
"properties": {
|
|
3364
|
+
"type": {
|
|
3365
|
+
"type": "string",
|
|
3366
|
+
"const": "openid_federation",
|
|
3367
|
+
"description": "Trusted authority type discriminator for OpenID Federation."
|
|
3368
|
+
},
|
|
3369
|
+
"values": {
|
|
3370
|
+
"type": "array",
|
|
3371
|
+
"items": {
|
|
3372
|
+
"type": "string"
|
|
3373
|
+
},
|
|
3374
|
+
"description": "OpenID Federation authority identifiers."
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
"required": [
|
|
3378
|
+
"type",
|
|
3379
|
+
"values"
|
|
3380
|
+
],
|
|
3381
|
+
"additionalProperties": false
|
|
3382
|
+
}
|
|
3383
|
+
]
|
|
3384
|
+
}
|
|
3385
|
+
},
|
|
3386
|
+
"format": {
|
|
3387
|
+
"type": "string",
|
|
3388
|
+
"const": "dc+sd-jwt",
|
|
3389
|
+
"description": "Credential format discriminator."
|
|
3390
|
+
},
|
|
3391
|
+
"meta": {
|
|
3392
|
+
"type": "object",
|
|
3393
|
+
"properties": {
|
|
3394
|
+
"vct_values": {
|
|
3395
|
+
"minItems": 1,
|
|
3396
|
+
"type": "array",
|
|
3397
|
+
"items": {
|
|
3398
|
+
"type": "string"
|
|
3399
|
+
},
|
|
3400
|
+
"description": "Accepted VCT values."
|
|
3401
|
+
}
|
|
3402
|
+
},
|
|
3403
|
+
"required": [
|
|
3404
|
+
"vct_values"
|
|
3405
|
+
],
|
|
3406
|
+
"additionalProperties": false
|
|
3407
|
+
},
|
|
3408
|
+
"claims": {
|
|
3409
|
+
"description": "Optional claim-level constraints.",
|
|
3410
|
+
"type": "array",
|
|
3411
|
+
"items": {
|
|
3412
|
+
"type": "object",
|
|
3413
|
+
"properties": {
|
|
3414
|
+
"id": {
|
|
3415
|
+
"description": "Optional claim query id.",
|
|
3416
|
+
"type": "string"
|
|
3417
|
+
},
|
|
3418
|
+
"path": {
|
|
3419
|
+
"type": "array",
|
|
3420
|
+
"items": {
|
|
3421
|
+
"type": [
|
|
3422
|
+
"string",
|
|
3423
|
+
"number"
|
|
3424
|
+
]
|
|
3425
|
+
},
|
|
3426
|
+
"description": "Path to the claim value in presented credentials."
|
|
3427
|
+
},
|
|
3428
|
+
"values": {
|
|
3429
|
+
"description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
|
|
3430
|
+
"minItems": 1,
|
|
3431
|
+
"type": "array",
|
|
3432
|
+
"items": {
|
|
3433
|
+
"anyOf": [
|
|
3434
|
+
{
|
|
3435
|
+
"type": "string"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"type": "integer",
|
|
3439
|
+
"minimum": -9007199254740991,
|
|
3440
|
+
"maximum": 9007199254740991
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"type": "boolean"
|
|
3444
|
+
}
|
|
3445
|
+
]
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
},
|
|
3449
|
+
"required": [
|
|
3450
|
+
"path"
|
|
3451
|
+
],
|
|
3452
|
+
"additionalProperties": false
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
},
|
|
3456
|
+
"required": [
|
|
3457
|
+
"id",
|
|
3458
|
+
"format",
|
|
3459
|
+
"meta"
|
|
3460
|
+
],
|
|
3461
|
+
"additionalProperties": false
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"type": "object",
|
|
3465
|
+
"properties": {
|
|
3466
|
+
"id": {
|
|
3467
|
+
"type": "string",
|
|
3468
|
+
"minLength": 1,
|
|
3469
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
3470
|
+
"description": "Credential query identifier."
|
|
3471
|
+
},
|
|
3472
|
+
"multiple": {
|
|
3473
|
+
"description": "Allow multiple matching credentials.",
|
|
3474
|
+
"type": "boolean"
|
|
3475
|
+
},
|
|
3476
|
+
"claim_sets": {
|
|
3477
|
+
"description": "Optional claim set constraints.",
|
|
3478
|
+
"type": "array",
|
|
3479
|
+
"items": {
|
|
3480
|
+
"type": "array",
|
|
3481
|
+
"items": {
|
|
3482
|
+
"type": "string"
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
},
|
|
3486
|
+
"trusted_authorities": {
|
|
3487
|
+
"description": "Optional trusted authority constraints.",
|
|
3488
|
+
"type": "array",
|
|
3489
|
+
"items": {
|
|
3490
|
+
"oneOf": [
|
|
3491
|
+
{
|
|
3492
|
+
"type": "object",
|
|
3493
|
+
"properties": {
|
|
3494
|
+
"type": {
|
|
3495
|
+
"type": "string",
|
|
3496
|
+
"const": "etsi_tl",
|
|
3497
|
+
"description": "Trusted authority type discriminator for ETSI trust lists."
|
|
3498
|
+
},
|
|
3499
|
+
"values": {
|
|
3500
|
+
"type": "array",
|
|
3501
|
+
"items": {
|
|
3502
|
+
"anyOf": [
|
|
3503
|
+
{
|
|
3504
|
+
"type": "object",
|
|
3505
|
+
"properties": {
|
|
3506
|
+
"format": {
|
|
3507
|
+
"description": "Format of the list: a List of Trusted Entities (ETSI TS 119 602) as JWT. Default.",
|
|
3508
|
+
"type": "string",
|
|
3509
|
+
"const": "lote"
|
|
3510
|
+
},
|
|
3511
|
+
"trustListId": {
|
|
3512
|
+
"description": "Optional trust list id reference.",
|
|
3513
|
+
"type": "string"
|
|
3514
|
+
},
|
|
3515
|
+
"url": {
|
|
3516
|
+
"description": "Optional trust list URL reference.",
|
|
3517
|
+
"anyOf": [
|
|
3518
|
+
{
|
|
3519
|
+
"type": "string",
|
|
3520
|
+
"format": "uri"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"type": "string",
|
|
3524
|
+
"pattern": "^<TENANT_URL>(?:\\/.*)?$"
|
|
3525
|
+
}
|
|
3526
|
+
]
|
|
3527
|
+
},
|
|
3528
|
+
"verifierKey": {
|
|
3529
|
+
"description": "Optional verifier key material.",
|
|
3530
|
+
"type": "object",
|
|
3531
|
+
"propertyNames": {
|
|
3532
|
+
"type": "string"
|
|
3533
|
+
},
|
|
3534
|
+
"additionalProperties": {}
|
|
3535
|
+
},
|
|
3536
|
+
"verifierX509Der": {
|
|
3537
|
+
"description": "Optional verifier certificate in DER/base64 form.",
|
|
3538
|
+
"type": "string"
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
"additionalProperties": false
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
"type": "object",
|
|
3545
|
+
"properties": {
|
|
3546
|
+
"format": {
|
|
3547
|
+
"type": "string",
|
|
3548
|
+
"const": "trusted-list",
|
|
3549
|
+
"description": "Format of the list: an ETSI TS 119 612 Trusted List or list of trusted lists as XML."
|
|
3550
|
+
},
|
|
3551
|
+
"url": {
|
|
3552
|
+
"anyOf": [
|
|
3553
|
+
{
|
|
3554
|
+
"type": "string",
|
|
3555
|
+
"format": "uri"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"type": "string",
|
|
3559
|
+
"pattern": "^<TENANT_URL>(?:\\/.*)?$"
|
|
3560
|
+
}
|
|
3561
|
+
],
|
|
3562
|
+
"description": "URL of the Trusted List, or of a list of trusted lists (LOTL) whose national lists are followed."
|
|
3563
|
+
},
|
|
3564
|
+
"signingCertificates": {
|
|
3565
|
+
"minItems": 1,
|
|
3566
|
+
"type": "array",
|
|
3567
|
+
"items": {
|
|
3568
|
+
"type": "string",
|
|
3569
|
+
"minLength": 1,
|
|
3570
|
+
"pattern": "^[A-Za-z0-9+/\\s]+={0,2}$"
|
|
3571
|
+
},
|
|
3572
|
+
"description": "Base64 DER certificates one of which must have signed the list: for a list of trusted lists, the signing certificates its operator publishes; for a national list, its scheme operator certificates."
|
|
3573
|
+
},
|
|
3574
|
+
"schemeTerritories": {
|
|
3575
|
+
"description": "For a list of trusted lists: the SchemeTerritory values of the national lists to follow, such as DE. All when absent.",
|
|
3576
|
+
"minItems": 1,
|
|
3577
|
+
"type": "array",
|
|
3578
|
+
"items": {
|
|
3579
|
+
"type": "string",
|
|
3580
|
+
"minLength": 1
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
},
|
|
3584
|
+
"required": [
|
|
3585
|
+
"format",
|
|
3586
|
+
"url",
|
|
3587
|
+
"signingCertificates"
|
|
3588
|
+
],
|
|
3589
|
+
"additionalProperties": false
|
|
3590
|
+
}
|
|
3591
|
+
],
|
|
3592
|
+
"description": "Reference to a trust list used for authority verification."
|
|
3593
|
+
},
|
|
3594
|
+
"description": "Trust list references for ETSI TL verification."
|
|
3595
|
+
}
|
|
3596
|
+
},
|
|
3597
|
+
"required": [
|
|
3598
|
+
"type",
|
|
3599
|
+
"values"
|
|
3600
|
+
],
|
|
3601
|
+
"additionalProperties": false
|
|
3602
|
+
},
|
|
3603
|
+
{
|
|
3604
|
+
"type": "object",
|
|
3605
|
+
"properties": {
|
|
3606
|
+
"type": {
|
|
3607
|
+
"type": "string",
|
|
3608
|
+
"const": "openid_federation",
|
|
3609
|
+
"description": "Trusted authority type discriminator for OpenID Federation."
|
|
3610
|
+
},
|
|
3611
|
+
"values": {
|
|
3612
|
+
"type": "array",
|
|
3613
|
+
"items": {
|
|
3614
|
+
"type": "string"
|
|
3615
|
+
},
|
|
3616
|
+
"description": "OpenID Federation authority identifiers."
|
|
3617
|
+
}
|
|
3618
|
+
},
|
|
3619
|
+
"required": [
|
|
3620
|
+
"type",
|
|
3621
|
+
"values"
|
|
3622
|
+
],
|
|
3623
|
+
"additionalProperties": false
|
|
3624
|
+
}
|
|
3625
|
+
]
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
"format": {
|
|
3629
|
+
"type": "string",
|
|
3630
|
+
"const": "mso_mdoc",
|
|
3631
|
+
"description": "Credential format discriminator."
|
|
3632
|
+
},
|
|
3633
|
+
"meta": {
|
|
3634
|
+
"type": "object",
|
|
3635
|
+
"properties": {
|
|
3636
|
+
"doctype_value": {
|
|
3637
|
+
"type": "string",
|
|
3638
|
+
"minLength": 1,
|
|
3639
|
+
"description": "Expected mDoc doctype value."
|
|
3640
|
+
}
|
|
3641
|
+
},
|
|
3642
|
+
"required": [
|
|
3643
|
+
"doctype_value"
|
|
3644
|
+
],
|
|
3645
|
+
"additionalProperties": false
|
|
3646
|
+
},
|
|
3647
|
+
"claims": {
|
|
3648
|
+
"description": "Optional mDoc claim-level constraints.",
|
|
3649
|
+
"type": "array",
|
|
3650
|
+
"items": {
|
|
3651
|
+
"type": "object",
|
|
3652
|
+
"properties": {
|
|
3653
|
+
"id": {
|
|
3654
|
+
"description": "Optional claim query id.",
|
|
3655
|
+
"type": "string"
|
|
3656
|
+
},
|
|
3657
|
+
"path": {
|
|
3658
|
+
"type": "array",
|
|
3659
|
+
"items": {
|
|
3660
|
+
"type": [
|
|
3661
|
+
"string",
|
|
3662
|
+
"number"
|
|
3663
|
+
]
|
|
3664
|
+
},
|
|
3665
|
+
"description": "Path to the claim value in presented credentials."
|
|
3666
|
+
},
|
|
3667
|
+
"values": {
|
|
3668
|
+
"description": "Optional allowed values for the claim. A disclosed value must equal one of them in type and value.",
|
|
3669
|
+
"minItems": 1,
|
|
3670
|
+
"type": "array",
|
|
3671
|
+
"items": {
|
|
3672
|
+
"anyOf": [
|
|
3673
|
+
{
|
|
3674
|
+
"type": "string"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"type": "integer",
|
|
3678
|
+
"minimum": -9007199254740991,
|
|
3679
|
+
"maximum": 9007199254740991
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"type": "boolean"
|
|
3683
|
+
}
|
|
3684
|
+
]
|
|
3685
|
+
}
|
|
3686
|
+
},
|
|
3687
|
+
"intent_to_retain": {
|
|
3688
|
+
"description": "Whether relying party intends to retain the claim.",
|
|
3689
|
+
"type": "boolean"
|
|
3690
|
+
}
|
|
3691
|
+
},
|
|
3692
|
+
"required": [
|
|
3693
|
+
"path"
|
|
3694
|
+
],
|
|
3695
|
+
"additionalProperties": false
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
},
|
|
3699
|
+
"required": [
|
|
3700
|
+
"id",
|
|
3701
|
+
"format",
|
|
3702
|
+
"meta"
|
|
3703
|
+
],
|
|
3704
|
+
"additionalProperties": false
|
|
3705
|
+
}
|
|
3706
|
+
]
|
|
3707
|
+
},
|
|
3708
|
+
"description": "Credential queries requested by the verifier."
|
|
3709
|
+
},
|
|
3710
|
+
"credential_sets": {
|
|
3711
|
+
"description": "Optional higher-level credential set requirements.",
|
|
3712
|
+
"type": "array",
|
|
3713
|
+
"items": {
|
|
3714
|
+
"type": "object",
|
|
3715
|
+
"properties": {
|
|
3716
|
+
"options": {
|
|
3717
|
+
"minItems": 1,
|
|
3718
|
+
"type": "array",
|
|
3719
|
+
"items": {
|
|
3720
|
+
"minItems": 1,
|
|
3721
|
+
"type": "array",
|
|
3722
|
+
"items": {
|
|
3723
|
+
"type": "string"
|
|
3724
|
+
}
|
|
3725
|
+
},
|
|
3726
|
+
"description": "Alternative credential query id combinations."
|
|
3727
|
+
},
|
|
3728
|
+
"required": {
|
|
3729
|
+
"description": "Whether this credential set is mandatory.",
|
|
3730
|
+
"type": "boolean"
|
|
3731
|
+
}
|
|
3732
|
+
},
|
|
3733
|
+
"required": [
|
|
3734
|
+
"options"
|
|
3735
|
+
],
|
|
3736
|
+
"additionalProperties": false
|
|
3737
|
+
}
|
|
3738
|
+
}
|
|
3739
|
+
},
|
|
3740
|
+
"required": [
|
|
3741
|
+
"credentials"
|
|
3742
|
+
],
|
|
3743
|
+
"additionalProperties": false,
|
|
3744
|
+
"description": "DCQL query defining requested credentials and claims."
|
|
3745
|
+
},
|
|
3746
|
+
"transaction_data": {
|
|
3747
|
+
"description": "Optional transaction data descriptors.",
|
|
3748
|
+
"anyOf": [
|
|
3749
|
+
{
|
|
3750
|
+
"type": "array",
|
|
3751
|
+
"items": {
|
|
3752
|
+
"type": "object",
|
|
3753
|
+
"properties": {
|
|
3754
|
+
"type": {
|
|
3755
|
+
"type": "string",
|
|
3756
|
+
"description": "Transaction data type identifier."
|
|
3757
|
+
},
|
|
3758
|
+
"credential_ids": {
|
|
3759
|
+
"type": "array",
|
|
3760
|
+
"items": {
|
|
3761
|
+
"type": "string"
|
|
3762
|
+
},
|
|
3763
|
+
"description": "Credential query ids this transaction data applies to."
|
|
3764
|
+
},
|
|
3765
|
+
"payload": {
|
|
3766
|
+
"description": "Transaction details. Required for TS12 SCA transaction data."
|
|
3767
|
+
}
|
|
3768
|
+
},
|
|
3769
|
+
"required": [
|
|
3770
|
+
"type",
|
|
3771
|
+
"credential_ids"
|
|
3772
|
+
],
|
|
3773
|
+
"additionalProperties": {}
|
|
3774
|
+
}
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"type": "null"
|
|
3778
|
+
}
|
|
3779
|
+
]
|
|
3780
|
+
},
|
|
3781
|
+
"registration_cert": {
|
|
3782
|
+
"description": "Registration certificate from a registrar, with the purpose and privacy policy it is requested with.",
|
|
3783
|
+
"anyOf": [
|
|
3784
|
+
{
|
|
3785
|
+
"type": "object",
|
|
3786
|
+
"properties": {
|
|
3787
|
+
"jwt": {
|
|
3788
|
+
"description": "Registration certificate JWT issued by a registrar. Attached to every request object as is; it must be valid and authorize every credential the DCQL query requests.",
|
|
3789
|
+
"type": "string",
|
|
3790
|
+
"minLength": 1
|
|
3791
|
+
},
|
|
3792
|
+
"purpose": {
|
|
3793
|
+
"description": "Why the data is requested (GDPR purpose), one text per language. Used when a certificate is requested from a registrar.",
|
|
3794
|
+
"type": "array",
|
|
3795
|
+
"items": {
|
|
3796
|
+
"type": "object",
|
|
3797
|
+
"properties": {
|
|
3798
|
+
"lang": {
|
|
3799
|
+
"type": "string",
|
|
3800
|
+
"minLength": 1,
|
|
3801
|
+
"description": "Language tag of the text, such as en or pt-BR. The EUDI Hub takes two-letter codes only."
|
|
3802
|
+
},
|
|
3803
|
+
"content": {
|
|
3804
|
+
"type": "string",
|
|
3805
|
+
"minLength": 1,
|
|
3806
|
+
"description": "The purpose in that language."
|
|
3807
|
+
}
|
|
3808
|
+
},
|
|
3809
|
+
"required": [
|
|
3810
|
+
"lang",
|
|
3811
|
+
"content"
|
|
3812
|
+
],
|
|
3813
|
+
"additionalProperties": false
|
|
3814
|
+
}
|
|
3815
|
+
},
|
|
3816
|
+
"privacy_policy": {
|
|
3817
|
+
"description": "URL of the privacy policy that applies to this request. Used when a certificate is requested from a registrar.",
|
|
3818
|
+
"type": "string",
|
|
3819
|
+
"minLength": 1
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"additionalProperties": false
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"type": "null"
|
|
3826
|
+
}
|
|
3827
|
+
]
|
|
3828
|
+
},
|
|
3829
|
+
"webhookEndpointId": {
|
|
3830
|
+
"description": "Optional webhook endpoint id for presentation callbacks.",
|
|
3831
|
+
"type": [
|
|
3832
|
+
"string",
|
|
3833
|
+
"null"
|
|
3834
|
+
]
|
|
3835
|
+
},
|
|
3836
|
+
"attached": {
|
|
3837
|
+
"description": "Optional attachments included with presentation requests.",
|
|
3838
|
+
"anyOf": [
|
|
3839
|
+
{
|
|
3840
|
+
"type": "array",
|
|
3841
|
+
"items": {
|
|
3842
|
+
"type": "object",
|
|
3843
|
+
"properties": {
|
|
3844
|
+
"format": {
|
|
3845
|
+
"type": "string",
|
|
3846
|
+
"description": "Attachment format identifier."
|
|
3847
|
+
},
|
|
3848
|
+
"data": {
|
|
3849
|
+
"description": "Attachment payload."
|
|
3850
|
+
},
|
|
3851
|
+
"credential_ids": {
|
|
3852
|
+
"description": "Optional credential query ids bound to this attachment.",
|
|
3853
|
+
"type": "array",
|
|
3854
|
+
"items": {
|
|
3855
|
+
"type": "string"
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
},
|
|
3859
|
+
"required": [
|
|
3860
|
+
"format",
|
|
3861
|
+
"data"
|
|
3862
|
+
],
|
|
3863
|
+
"additionalProperties": false
|
|
3864
|
+
}
|
|
3865
|
+
},
|
|
3866
|
+
{
|
|
3867
|
+
"type": "null"
|
|
3868
|
+
}
|
|
3869
|
+
]
|
|
3870
|
+
},
|
|
3871
|
+
"redirectUri": {
|
|
3872
|
+
"description": "Optional redirect URI after presentation completion.",
|
|
3873
|
+
"type": [
|
|
3874
|
+
"string",
|
|
3875
|
+
"null"
|
|
3876
|
+
]
|
|
3877
|
+
},
|
|
3878
|
+
"accessKeyChainId": {
|
|
3879
|
+
"description": "Optional key chain id for access token/auth operations.",
|
|
3880
|
+
"type": [
|
|
3881
|
+
"string",
|
|
3882
|
+
"null"
|
|
3883
|
+
]
|
|
3884
|
+
},
|
|
3885
|
+
"allowedOrigins": {
|
|
3886
|
+
"description": "Origins (http(s)://host[:port]) of the web pages allowed to request this presentation over the Digital Credentials API. When set, dc-api and iso-18013-7 offers are refused for any other expected_origin, and an offer without expected_origin uses the only listed origin. Unset: any expected_origin is accepted. Not used for uri requests.",
|
|
3887
|
+
"anyOf": [
|
|
3888
|
+
{
|
|
3889
|
+
"maxItems": 100,
|
|
3890
|
+
"type": "array",
|
|
3891
|
+
"items": {
|
|
3892
|
+
"type": "string",
|
|
3893
|
+
"pattern": "^(?:https:\\/\\/(?:[a-z0-9.-]+|\\[[0-9a-f:.]+\\])(?::(?:[1-9]|[1-9][0-9]|[1-35-9][0-9]{2}|4[0-35-9][0-9]|44[0-24-9]|[1-9][0-9]{3,4}))?|http:\\/\\/(?:[a-z0-9.-]+|\\[[0-9a-f:.]+\\])(?::(?:[1-9]|[1-79][0-9]|8[1-9]|[1-9][0-9]{2,4}))?)$"
|
|
3894
|
+
}
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
"type": "null"
|
|
3898
|
+
}
|
|
3899
|
+
]
|
|
3900
|
+
},
|
|
3901
|
+
"readerAuth": {
|
|
3902
|
+
"description": "Whether reader authentication is required for mDoc requests.",
|
|
3903
|
+
"type": [
|
|
3904
|
+
"boolean",
|
|
3905
|
+
"null"
|
|
3906
|
+
]
|
|
3907
|
+
}
|
|
3908
|
+
},
|
|
3909
|
+
"required": [
|
|
3910
|
+
"id",
|
|
3911
|
+
"dcql_query"
|
|
3912
|
+
],
|
|
3913
|
+
"additionalProperties": false,
|
|
3914
|
+
"title": "PresentationConfigCreateDto"
|
|
3915
|
+
}
|
|
3916
|
+
}
|
|
3121
3917
|
}
|
|
3122
3918
|
]
|
|
3123
3919
|
}
|