@eudiplo/cli 10.0.0-main.5aa24a2 → 10.0.0-main.9276e90

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.
@@ -9,7 +9,7 @@
9
9
  "properties": {
10
10
  "$schema": {
11
11
  "type": "string",
12
- "const": "https://eudiplo.dev/schemas/v4/CredentialConfigFile.schema.json"
12
+ "const": "https://eudiplo.dev/schemas/v5/CredentialConfigFile.schema.json"
13
13
  },
14
14
  "metadata": {
15
15
  "type": "object",
@@ -2672,6 +2672,1038 @@
2672
2672
  "title": "CredentialConfigCreate"
2673
2673
  }
2674
2674
  }
2675
+ },
2676
+ {
2677
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2678
+ "$id": "https://eudiplo.dev/schemas/v4/CredentialConfigFile.schema.json",
2679
+ "title": "CredentialConfigFile",
2680
+ "type": "object",
2681
+ "properties": {
2682
+ "$schema": {
2683
+ "type": "string",
2684
+ "const": "https://eudiplo.dev/schemas/v4/CredentialConfigFile.schema.json"
2685
+ },
2686
+ "metadata": {
2687
+ "type": "object",
2688
+ "properties": {
2689
+ "generation": {
2690
+ "type": "integer",
2691
+ "minimum": 1,
2692
+ "description": "Monotonically increasing configuration generation."
2693
+ },
2694
+ "ownership": {
2695
+ "type": "string",
2696
+ "enum": [
2697
+ "unmanaged",
2698
+ "file-managed"
2699
+ ],
2700
+ "description": "Requested ownership recorded when the document is applied."
2701
+ }
2702
+ },
2703
+ "additionalProperties": false
2704
+ },
2705
+ "spec": {
2706
+ "allOf": [
2707
+ {
2708
+ "$ref": "#/$defs/CredentialConfigCreate"
2709
+ },
2710
+ {
2711
+ "type": "object",
2712
+ "required": [
2713
+ "id"
2714
+ ],
2715
+ "properties": {
2716
+ "id": {
2717
+ "type": "string",
2718
+ "minLength": 1
2719
+ }
2720
+ }
2721
+ }
2722
+ ]
2723
+ }
2724
+ },
2725
+ "required": [
2726
+ "$schema",
2727
+ "spec"
2728
+ ],
2729
+ "additionalProperties": false,
2730
+ "$defs": {
2731
+ "CredentialConfigCreate": {
2732
+ "type": "object",
2733
+ "properties": {
2734
+ "id": {
2735
+ "type": "string",
2736
+ "minLength": 1,
2737
+ "description": "Credential configuration identifier."
2738
+ },
2739
+ "description": {
2740
+ "description": "Optional description for operators and tooling.",
2741
+ "type": [
2742
+ "string",
2743
+ "null"
2744
+ ]
2745
+ },
2746
+ "config": {
2747
+ "type": "object",
2748
+ "properties": {
2749
+ "format": {
2750
+ "type": "string",
2751
+ "enum": [
2752
+ "mso_mdoc",
2753
+ "dc+sd-jwt"
2754
+ ],
2755
+ "description": "Credential format emitted by this configuration."
2756
+ },
2757
+ "display": {
2758
+ "type": "array",
2759
+ "items": {
2760
+ "type": "object",
2761
+ "properties": {
2762
+ "locale": {
2763
+ "type": "string",
2764
+ "minLength": 1,
2765
+ "description": "Language tag of this entry, for example en-US. Each locale may appear once."
2766
+ },
2767
+ "name": {
2768
+ "type": "string",
2769
+ "minLength": 1,
2770
+ "description": "Credential name shown by wallets."
2771
+ },
2772
+ "description": {
2773
+ "description": "Optional description of the credential for this locale.",
2774
+ "type": "string"
2775
+ },
2776
+ "background_color": {
2777
+ "description": "Optional background color for card-style rendering, as a CSS Color Level 3 numerical value: #rgb, #rrggbb, transparent, or lowercase rgb(), rgba(), hsl() or hsla() with comma-separated values. Without it, wallets use their own.",
2778
+ "type": "string",
2779
+ "pattern": "^(?:#(?:[0-9a-fA-F]{3}){1,2}|rgb\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *\\)|rgb\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|rgba\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|rgba\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|hsl\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|hsla\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|transparent)$"
2780
+ },
2781
+ "text_color": {
2782
+ "description": "Optional text color for card-style rendering, as a CSS Color Level 3 numerical value: #rgb, #rrggbb, transparent, or lowercase rgb(), rgba(), hsl() or hsla() with comma-separated values. Without it, wallets use their own.",
2783
+ "type": "string",
2784
+ "pattern": "^(?:#(?:[0-9a-fA-F]{3}){1,2}|rgb\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *\\)|rgb\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|rgba\\( *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?\\d+ *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|rgba\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|hsl\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *\\)|hsla\\( *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+)% *, *[+-]?(?:\\d+(?:\\.\\d+)?|\\.\\d+) *\\)|transparent)$"
2785
+ },
2786
+ "background_image": {
2787
+ "description": "Optional background image.",
2788
+ "type": "object",
2789
+ "properties": {
2790
+ "uri": {
2791
+ "type": "string",
2792
+ "minLength": 1,
2793
+ "description": "Image URI."
2794
+ }
2795
+ },
2796
+ "required": [
2797
+ "uri"
2798
+ ],
2799
+ "additionalProperties": false
2800
+ },
2801
+ "logo": {
2802
+ "description": "Optional logo image.",
2803
+ "type": "object",
2804
+ "properties": {
2805
+ "uri": {
2806
+ "type": "string",
2807
+ "minLength": 1,
2808
+ "description": "Image URI."
2809
+ }
2810
+ },
2811
+ "required": [
2812
+ "uri"
2813
+ ],
2814
+ "additionalProperties": false
2815
+ }
2816
+ },
2817
+ "required": [
2818
+ "locale",
2819
+ "name"
2820
+ ],
2821
+ "additionalProperties": false
2822
+ },
2823
+ "description": "Display metadata shown by wallets, one entry per locale."
2824
+ },
2825
+ "scope": {
2826
+ "description": "Optional OAuth scope associated with this credential type.",
2827
+ "type": "string"
2828
+ },
2829
+ "docType": {
2830
+ "description": "Optional mDoc document type.",
2831
+ "type": "string"
2832
+ },
2833
+ "keyAttestationsRequired": {
2834
+ "description": "Optional key attestation requirements.",
2835
+ "type": "object",
2836
+ "properties": {
2837
+ "key_storage": {
2838
+ "description": "Required key storage attestations.",
2839
+ "type": "array",
2840
+ "items": {
2841
+ "type": "string"
2842
+ }
2843
+ },
2844
+ "user_authentication": {
2845
+ "description": "Required user authentication attestations.",
2846
+ "type": "array",
2847
+ "items": {
2848
+ "type": "string"
2849
+ }
2850
+ }
2851
+ },
2852
+ "additionalProperties": false
2853
+ },
2854
+ "proofTypesSupported": {
2855
+ "description": "Supported proof types for issuance requests.",
2856
+ "type": "array",
2857
+ "items": {
2858
+ "type": "string",
2859
+ "enum": [
2860
+ "jwt",
2861
+ "attestation"
2862
+ ]
2863
+ }
2864
+ },
2865
+ "credentialReusePolicy": {
2866
+ "description": "Optional PID/EAA reuse policy published in credential metadata.",
2867
+ "type": "object",
2868
+ "properties": {
2869
+ "id": {
2870
+ "type": "string",
2871
+ "minLength": 1
2872
+ },
2873
+ "options": {
2874
+ "type": "array",
2875
+ "items": {
2876
+ "type": "object",
2877
+ "properties": {
2878
+ "details": {
2879
+ "minItems": 1,
2880
+ "type": "array",
2881
+ "items": {
2882
+ "type": "string",
2883
+ "enum": [
2884
+ "once_only",
2885
+ "limited_time",
2886
+ "limited-time",
2887
+ "rotating-batch",
2888
+ "per-relying-party"
2889
+ ]
2890
+ }
2891
+ },
2892
+ "batch_size": {
2893
+ "type": "integer",
2894
+ "minimum": 2,
2895
+ "maximum": 9007199254740991
2896
+ },
2897
+ "reissue_trigger_unused": {
2898
+ "type": "integer",
2899
+ "minimum": 0,
2900
+ "maximum": 9007199254740991
2901
+ },
2902
+ "reissue_trigger_lifetime_left": {
2903
+ "type": "integer",
2904
+ "minimum": 0,
2905
+ "maximum": 9007199254740991
2906
+ }
2907
+ },
2908
+ "required": [
2909
+ "details"
2910
+ ],
2911
+ "additionalProperties": false
2912
+ }
2913
+ }
2914
+ },
2915
+ "required": [
2916
+ "id"
2917
+ ],
2918
+ "additionalProperties": false
2919
+ }
2920
+ },
2921
+ "required": [
2922
+ "format",
2923
+ "display"
2924
+ ],
2925
+ "additionalProperties": false,
2926
+ "description": "Issuer metadata-facing credential configuration."
2927
+ },
2928
+ "fields": {
2929
+ "type": "array",
2930
+ "items": {
2931
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/__schema0"
2932
+ },
2933
+ "description": "Claim field definitions for credential issuance."
2934
+ },
2935
+ "attributeProviderId": {
2936
+ "description": "Optional attribute provider id used to resolve claim values.",
2937
+ "type": [
2938
+ "string",
2939
+ "null"
2940
+ ]
2941
+ },
2942
+ "webhookEndpointId": {
2943
+ "description": "Receives the wallet unit revocation webhook (revokeWithWalletUnit). Not used for notifications: they go to the webhook endpoint of the offer.",
2944
+ "type": [
2945
+ "string",
2946
+ "null"
2947
+ ]
2948
+ },
2949
+ "vct": {
2950
+ "description": "Optional VCT value or structured VCT metadata.",
2951
+ "anyOf": [
2952
+ {
2953
+ "type": "string"
2954
+ },
2955
+ {
2956
+ "type": "object",
2957
+ "properties": {
2958
+ "vct": {
2959
+ "description": "VCT identifier.",
2960
+ "type": "string"
2961
+ },
2962
+ "name": {
2963
+ "description": "Human-readable VCT name.",
2964
+ "type": "string"
2965
+ },
2966
+ "description": {
2967
+ "description": "Optional VCT description.",
2968
+ "type": "string"
2969
+ },
2970
+ "extends": {
2971
+ "description": "Optional base VCT reference.",
2972
+ "type": "string"
2973
+ },
2974
+ "extends#integrity": {
2975
+ "description": "Integrity hash for the extends reference.",
2976
+ "type": "string"
2977
+ },
2978
+ "schema_uri": {
2979
+ "description": "Optional schema URI for the VCT.",
2980
+ "type": "string"
2981
+ },
2982
+ "schema_uri#integrity": {
2983
+ "description": "Integrity hash for schema_uri.",
2984
+ "type": "string"
2985
+ }
2986
+ },
2987
+ "additionalProperties": false
2988
+ },
2989
+ {
2990
+ "type": "null"
2991
+ }
2992
+ ]
2993
+ },
2994
+ "keyBinding": {
2995
+ "description": "Enable key binding requirements.",
2996
+ "type": "boolean"
2997
+ },
2998
+ "keyChainId": {
2999
+ "description": "Optional key chain id used for credential signing.",
3000
+ "type": "string",
3001
+ "minLength": 1
3002
+ },
3003
+ "statusManagement": {
3004
+ "description": "Enable status management for issued credentials.",
3005
+ "type": "boolean"
3006
+ },
3007
+ "activeCredentials": {
3008
+ "description": "Optional issuer-side policy limiting simultaneously active credentials per subject. Requires statusManagement.",
3009
+ "anyOf": [
3010
+ {
3011
+ "type": "object",
3012
+ "properties": {
3013
+ "enabled": {
3014
+ "type": "boolean",
3015
+ "description": "Ensure a subject has at most one active credential of this configuration."
3016
+ },
3017
+ "tracking": {
3018
+ "description": "How the subject's active credential set is tracked. Only 'internal' (pseudonymous, issuer-side) is currently supported.",
3019
+ "type": "string",
3020
+ "enum": [
3021
+ "internal"
3022
+ ]
3023
+ }
3024
+ },
3025
+ "required": [
3026
+ "enabled"
3027
+ ],
3028
+ "additionalProperties": false,
3029
+ "description": "Issuer-side policy limiting the number of simultaneously active credentials per subject."
3030
+ },
3031
+ {
3032
+ "type": "null"
3033
+ }
3034
+ ]
3035
+ },
3036
+ "revokeWithWalletUnit": {
3037
+ "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.",
3038
+ "type": "boolean"
3039
+ },
3040
+ "iaeActions": {
3041
+ "description": "Interactive authorization steps (a presentation or a web flow) that the wallet completes, in order, before the credential is issued.",
3042
+ "anyOf": [
3043
+ {
3044
+ "type": "array",
3045
+ "items": {
3046
+ "oneOf": [
3047
+ {
3048
+ "type": "object",
3049
+ "properties": {
3050
+ "type": {
3051
+ "type": "string",
3052
+ "const": "openid4vp_presentation",
3053
+ "description": "Trigger an OpenID4VP presentation action."
3054
+ },
3055
+ "label": {
3056
+ "description": "Optional UI label for the action.",
3057
+ "type": "string"
3058
+ },
3059
+ "presentationConfigId": {
3060
+ "type": "string",
3061
+ "minLength": 1,
3062
+ "description": "Presentation configuration id to execute."
3063
+ }
3064
+ },
3065
+ "required": [
3066
+ "type",
3067
+ "presentationConfigId"
3068
+ ],
3069
+ "additionalProperties": false
3070
+ },
3071
+ {
3072
+ "type": "object",
3073
+ "properties": {
3074
+ "type": {
3075
+ "type": "string",
3076
+ "const": "redirect_to_web",
3077
+ "description": "Trigger a redirect-to-web action."
3078
+ },
3079
+ "label": {
3080
+ "description": "Optional UI label for the action.",
3081
+ "type": "string"
3082
+ },
3083
+ "url": {
3084
+ "type": "string",
3085
+ "format": "uri",
3086
+ "description": "Destination URL for the redirect action."
3087
+ },
3088
+ "callbackUrl": {
3089
+ "description": "Optional callback URL after redirect completion.",
3090
+ "type": "string",
3091
+ "format": "uri"
3092
+ },
3093
+ "description": {
3094
+ "description": "Optional action description.",
3095
+ "type": "string"
3096
+ }
3097
+ },
3098
+ "required": [
3099
+ "type",
3100
+ "url"
3101
+ ],
3102
+ "additionalProperties": false
3103
+ }
3104
+ ],
3105
+ "description": "In-app experience action definitions."
3106
+ }
3107
+ },
3108
+ {
3109
+ "type": "null"
3110
+ }
3111
+ ]
3112
+ },
3113
+ "sdJwtTrustFormat": {
3114
+ "description": "Trust format used for SD-JWT verification metadata.",
3115
+ "anyOf": [
3116
+ {
3117
+ "type": "string",
3118
+ "enum": [
3119
+ "x5c",
3120
+ "federation"
3121
+ ]
3122
+ },
3123
+ {
3124
+ "type": "null"
3125
+ }
3126
+ ]
3127
+ },
3128
+ "lifeTime": {
3129
+ "description": "Credential lifetime in seconds.",
3130
+ "type": "integer",
3131
+ "minimum": 1,
3132
+ "maximum": 9007199254740991
3133
+ },
3134
+ "schemaMeta": {
3135
+ "description": "Optional schema metadata and trust bindings.",
3136
+ "anyOf": [
3137
+ {
3138
+ "type": "object",
3139
+ "properties": {
3140
+ "id": {
3141
+ "description": "Optional schema metadata identifier.",
3142
+ "type": "string"
3143
+ },
3144
+ "name": {
3145
+ "description": "Optional schema metadata name.",
3146
+ "type": "string"
3147
+ },
3148
+ "version": {
3149
+ "type": "string",
3150
+ "description": "Schema metadata version."
3151
+ },
3152
+ "rulebookURI": {
3153
+ "description": "Optional rulebook URI reference.",
3154
+ "type": "string"
3155
+ },
3156
+ "attestationLoS": {
3157
+ "type": "string",
3158
+ "enum": [
3159
+ "iso_18045_high",
3160
+ "iso_18045_moderate",
3161
+ "iso_18045_enhanced-basic",
3162
+ "iso_18045_basic"
3163
+ ],
3164
+ "description": "Assurance level for attestation requirements."
3165
+ },
3166
+ "bindingType": {
3167
+ "type": "string",
3168
+ "enum": [
3169
+ "claim",
3170
+ "key",
3171
+ "biometric",
3172
+ "none"
3173
+ ],
3174
+ "description": "Subject binding type."
3175
+ },
3176
+ "schemaURIs": {
3177
+ "description": "Optional schema URI entries.",
3178
+ "type": "array",
3179
+ "items": {
3180
+ "type": "object",
3181
+ "properties": {
3182
+ "credentialConfigId": {
3183
+ "description": "Optional credential configuration id this schema URI applies to.",
3184
+ "type": "string"
3185
+ },
3186
+ "format": {
3187
+ "description": "Optional credential format for this schema URI.",
3188
+ "type": "string"
3189
+ },
3190
+ "uri": {
3191
+ "description": "Schema URI reference.",
3192
+ "type": "string"
3193
+ },
3194
+ "meta": {
3195
+ "description": "Optional metadata attached to the schema URI.",
3196
+ "type": "object",
3197
+ "propertyNames": {
3198
+ "type": "string"
3199
+ },
3200
+ "additionalProperties": {}
3201
+ }
3202
+ },
3203
+ "additionalProperties": false
3204
+ }
3205
+ },
3206
+ "trustedAuthorities": {
3207
+ "description": "Optional trusted authority entries.",
3208
+ "type": "array",
3209
+ "items": {
3210
+ "type": "object",
3211
+ "properties": {
3212
+ "trustListId": {
3213
+ "description": "Optional trust list id.",
3214
+ "type": "string"
3215
+ },
3216
+ "frameworkType": {
3217
+ "description": "Trust framework type. `x509` takes a root certificate in `value` and no `verificationMethod`.",
3218
+ "type": "string",
3219
+ "enum": [
3220
+ "aki",
3221
+ "etsi_tl",
3222
+ "openid_federation",
3223
+ "x509"
3224
+ ]
3225
+ },
3226
+ "value": {
3227
+ "description": "Framework-specific authority value, for example the trust list URL for `etsi_tl` or the root certificate (base64 DER or PEM) for `x509`.",
3228
+ "type": "string"
3229
+ },
3230
+ "verificationMethod": {
3231
+ "description": "Verification method descriptor.",
3232
+ "anyOf": [
3233
+ {
3234
+ "type": "object",
3235
+ "propertyNames": {
3236
+ "type": "string"
3237
+ },
3238
+ "additionalProperties": {}
3239
+ },
3240
+ {
3241
+ "type": "string"
3242
+ }
3243
+ ]
3244
+ }
3245
+ },
3246
+ "additionalProperties": false
3247
+ }
3248
+ }
3249
+ },
3250
+ "required": [
3251
+ "version",
3252
+ "attestationLoS",
3253
+ "bindingType"
3254
+ ],
3255
+ "additionalProperties": false
3256
+ },
3257
+ {
3258
+ "type": "null"
3259
+ }
3260
+ ]
3261
+ },
3262
+ "embeddedDisclosurePolicy": {
3263
+ "description": "Optional embedded disclosure policy.",
3264
+ "anyOf": [
3265
+ {
3266
+ "oneOf": [
3267
+ {
3268
+ "type": "object",
3269
+ "properties": {
3270
+ "policy": {
3271
+ "type": "string",
3272
+ "const": "attestationBased",
3273
+ "description": "Attestation-based policy discriminator."
3274
+ },
3275
+ "values": {
3276
+ "type": "array",
3277
+ "items": {
3278
+ "type": "object",
3279
+ "properties": {
3280
+ "claims": {
3281
+ "description": "Claims constraints considered by policy evaluation.",
3282
+ "type": "array",
3283
+ "items": {}
3284
+ },
3285
+ "credentials": {
3286
+ "type": "array",
3287
+ "items": {},
3288
+ "description": "Credential constraints considered by policy evaluation."
3289
+ },
3290
+ "credential_sets": {
3291
+ "description": "Optional credential set constraints.",
3292
+ "type": "array",
3293
+ "items": {}
3294
+ }
3295
+ },
3296
+ "required": [
3297
+ "credentials"
3298
+ ],
3299
+ "additionalProperties": false
3300
+ },
3301
+ "description": "Attestation requirements used for policy enforcement."
3302
+ }
3303
+ },
3304
+ "required": [
3305
+ "policy",
3306
+ "values"
3307
+ ],
3308
+ "additionalProperties": false
3309
+ },
3310
+ {
3311
+ "type": "object",
3312
+ "properties": {
3313
+ "policy": {
3314
+ "type": "string",
3315
+ "const": "none",
3316
+ "description": "No disclosure policy enforcement."
3317
+ }
3318
+ },
3319
+ "required": [
3320
+ "policy"
3321
+ ],
3322
+ "additionalProperties": false
3323
+ },
3324
+ {
3325
+ "type": "object",
3326
+ "properties": {
3327
+ "policy": {
3328
+ "type": "string",
3329
+ "const": "allowList",
3330
+ "description": "Allow-list based policy discriminator."
3331
+ },
3332
+ "values": {
3333
+ "type": "array",
3334
+ "items": {
3335
+ "type": "string"
3336
+ },
3337
+ "description": "Allowed values for policy checks."
3338
+ }
3339
+ },
3340
+ "required": [
3341
+ "policy",
3342
+ "values"
3343
+ ],
3344
+ "additionalProperties": false
3345
+ },
3346
+ {
3347
+ "type": "object",
3348
+ "properties": {
3349
+ "policy": {
3350
+ "type": "string",
3351
+ "const": "rootOfTrust",
3352
+ "description": "Root-of-trust policy discriminator."
3353
+ },
3354
+ "values": {
3355
+ "type": "string",
3356
+ "description": "Root-of-trust identifier or reference."
3357
+ }
3358
+ },
3359
+ "required": [
3360
+ "policy",
3361
+ "values"
3362
+ ],
3363
+ "additionalProperties": false
3364
+ }
3365
+ ],
3366
+ "description": "Embedded disclosure policy configuration."
3367
+ },
3368
+ {
3369
+ "type": "null"
3370
+ }
3371
+ ]
3372
+ }
3373
+ },
3374
+ "required": [
3375
+ "id",
3376
+ "config",
3377
+ "fields"
3378
+ ],
3379
+ "additionalProperties": false,
3380
+ "description": "Payload for creating credential issuance configuration.",
3381
+ "$defs": {
3382
+ "__schema0": {
3383
+ "type": "object",
3384
+ "properties": {
3385
+ "path": {
3386
+ "type": "array",
3387
+ "items": {
3388
+ "type": [
3389
+ "string",
3390
+ "number",
3391
+ "null"
3392
+ ]
3393
+ },
3394
+ "description": "Path to this claim inside the credential payload."
3395
+ },
3396
+ "type": {
3397
+ "type": "string",
3398
+ "enum": [
3399
+ "string",
3400
+ "number",
3401
+ "integer",
3402
+ "boolean",
3403
+ "object",
3404
+ "array"
3405
+ ],
3406
+ "description": "Data type of the claim value."
3407
+ },
3408
+ "defaultValue": {
3409
+ "description": "Optional default value for this field."
3410
+ },
3411
+ "mandatory": {
3412
+ "description": "Whether the field is required at issuance time.",
3413
+ "type": "boolean"
3414
+ },
3415
+ "disclosable": {
3416
+ "description": "Whether the claim is selectively disclosable.",
3417
+ "type": "boolean"
3418
+ },
3419
+ "namespace": {
3420
+ "description": "Optional namespace for claim grouping.",
3421
+ "type": "string"
3422
+ },
3423
+ "display": {
3424
+ "description": "Localized display metadata for this field.",
3425
+ "type": "array",
3426
+ "items": {
3427
+ "type": "object",
3428
+ "properties": {
3429
+ "locale": {
3430
+ "type": "string",
3431
+ "minLength": 1,
3432
+ "description": "Locale tag for the display entry."
3433
+ },
3434
+ "name": {
3435
+ "type": "string",
3436
+ "minLength": 1,
3437
+ "description": "Human-readable field name."
3438
+ },
3439
+ "description": {
3440
+ "description": "Optional field description for this locale.",
3441
+ "type": "string"
3442
+ }
3443
+ },
3444
+ "required": [
3445
+ "locale",
3446
+ "name"
3447
+ ],
3448
+ "additionalProperties": false
3449
+ }
3450
+ },
3451
+ "constraints": {
3452
+ "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.",
3453
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3454
+ },
3455
+ "children": {
3456
+ "description": "Nested child claim definitions for object or array fields.",
3457
+ "type": "array",
3458
+ "items": {
3459
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/__schema0"
3460
+ }
3461
+ }
3462
+ },
3463
+ "required": [
3464
+ "path",
3465
+ "type"
3466
+ ],
3467
+ "additionalProperties": false
3468
+ },
3469
+ "ClaimConstraints": {
3470
+ "type": "object",
3471
+ "properties": {
3472
+ "type": {},
3473
+ "enum": {},
3474
+ "const": {},
3475
+ "multipleOf": {},
3476
+ "maximum": {},
3477
+ "exclusiveMaximum": {},
3478
+ "minimum": {},
3479
+ "exclusiveMinimum": {},
3480
+ "maxLength": {},
3481
+ "minLength": {},
3482
+ "pattern": {},
3483
+ "maxItems": {},
3484
+ "minItems": {},
3485
+ "uniqueItems": {},
3486
+ "maxContains": {},
3487
+ "minContains": {},
3488
+ "maxProperties": {},
3489
+ "minProperties": {},
3490
+ "required": {},
3491
+ "dependentRequired": {},
3492
+ "title": {},
3493
+ "description": {},
3494
+ "default": {},
3495
+ "examples": {},
3496
+ "deprecated": {},
3497
+ "readOnly": {},
3498
+ "writeOnly": {},
3499
+ "$comment": {},
3500
+ "items": {
3501
+ "anyOf": [
3502
+ {
3503
+ "type": "boolean"
3504
+ },
3505
+ {
3506
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3507
+ }
3508
+ ]
3509
+ },
3510
+ "contains": {
3511
+ "anyOf": [
3512
+ {
3513
+ "type": "boolean"
3514
+ },
3515
+ {
3516
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3517
+ }
3518
+ ]
3519
+ },
3520
+ "additionalProperties": {
3521
+ "anyOf": [
3522
+ {
3523
+ "type": "boolean"
3524
+ },
3525
+ {
3526
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3527
+ }
3528
+ ]
3529
+ },
3530
+ "propertyNames": {
3531
+ "anyOf": [
3532
+ {
3533
+ "type": "boolean"
3534
+ },
3535
+ {
3536
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3537
+ }
3538
+ ]
3539
+ },
3540
+ "not": {
3541
+ "anyOf": [
3542
+ {
3543
+ "type": "boolean"
3544
+ },
3545
+ {
3546
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3547
+ }
3548
+ ]
3549
+ },
3550
+ "if": {
3551
+ "anyOf": [
3552
+ {
3553
+ "type": "boolean"
3554
+ },
3555
+ {
3556
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3557
+ }
3558
+ ]
3559
+ },
3560
+ "then": {
3561
+ "anyOf": [
3562
+ {
3563
+ "type": "boolean"
3564
+ },
3565
+ {
3566
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3567
+ }
3568
+ ]
3569
+ },
3570
+ "else": {
3571
+ "anyOf": [
3572
+ {
3573
+ "type": "boolean"
3574
+ },
3575
+ {
3576
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3577
+ }
3578
+ ]
3579
+ },
3580
+ "unevaluatedItems": {
3581
+ "anyOf": [
3582
+ {
3583
+ "type": "boolean"
3584
+ },
3585
+ {
3586
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3587
+ }
3588
+ ]
3589
+ },
3590
+ "unevaluatedProperties": {
3591
+ "anyOf": [
3592
+ {
3593
+ "type": "boolean"
3594
+ },
3595
+ {
3596
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3597
+ }
3598
+ ]
3599
+ },
3600
+ "prefixItems": {
3601
+ "type": "array",
3602
+ "items": {
3603
+ "anyOf": [
3604
+ {
3605
+ "type": "boolean"
3606
+ },
3607
+ {
3608
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3609
+ }
3610
+ ]
3611
+ }
3612
+ },
3613
+ "allOf": {
3614
+ "type": "array",
3615
+ "items": {
3616
+ "anyOf": [
3617
+ {
3618
+ "type": "boolean"
3619
+ },
3620
+ {
3621
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3622
+ }
3623
+ ]
3624
+ }
3625
+ },
3626
+ "anyOf": {
3627
+ "type": "array",
3628
+ "items": {
3629
+ "anyOf": [
3630
+ {
3631
+ "type": "boolean"
3632
+ },
3633
+ {
3634
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3635
+ }
3636
+ ]
3637
+ }
3638
+ },
3639
+ "oneOf": {
3640
+ "type": "array",
3641
+ "items": {
3642
+ "anyOf": [
3643
+ {
3644
+ "type": "boolean"
3645
+ },
3646
+ {
3647
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3648
+ }
3649
+ ]
3650
+ }
3651
+ },
3652
+ "properties": {
3653
+ "type": "object",
3654
+ "propertyNames": {
3655
+ "type": "string"
3656
+ },
3657
+ "additionalProperties": {
3658
+ "anyOf": [
3659
+ {
3660
+ "type": "boolean"
3661
+ },
3662
+ {
3663
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3664
+ }
3665
+ ]
3666
+ }
3667
+ },
3668
+ "patternProperties": {
3669
+ "type": "object",
3670
+ "propertyNames": {
3671
+ "type": "string"
3672
+ },
3673
+ "additionalProperties": {
3674
+ "anyOf": [
3675
+ {
3676
+ "type": "boolean"
3677
+ },
3678
+ {
3679
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3680
+ }
3681
+ ]
3682
+ }
3683
+ },
3684
+ "dependentSchemas": {
3685
+ "type": "object",
3686
+ "propertyNames": {
3687
+ "type": "string"
3688
+ },
3689
+ "additionalProperties": {
3690
+ "anyOf": [
3691
+ {
3692
+ "type": "boolean"
3693
+ },
3694
+ {
3695
+ "$ref": "#/$defs/CredentialConfigCreate/$defs/ClaimConstraints"
3696
+ }
3697
+ ]
3698
+ }
3699
+ }
3700
+ },
3701
+ "additionalProperties": false
3702
+ }
3703
+ },
3704
+ "title": "CredentialConfigCreate"
3705
+ }
3706
+ }
2675
3707
  }
2676
3708
  ]
2677
3709
  }