@sphereon/ssi-sdk-ext.jwt-service 0.24.1-unstable.124 → 0.24.1-unstable.132

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.
@@ -444,6 +444,73 @@
444
444
  "opts"
445
445
  ]
446
446
  },
447
+ {
448
+ "type": "object",
449
+ "properties": {
450
+ "noIssPayloadUpdate": {
451
+ "type": "boolean"
452
+ },
453
+ "noIdentifierInHeader": {
454
+ "type": "boolean"
455
+ },
456
+ "lazyDisabled": {
457
+ "type": "boolean"
458
+ },
459
+ "jwk": {
460
+ "$ref": "#/components/schemas/JWK"
461
+ },
462
+ "jwkThumbprint": {
463
+ "type": "string"
464
+ },
465
+ "kmsKeyRef": {
466
+ "type": "string"
467
+ },
468
+ "method": {
469
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
470
+ },
471
+ "opts": {
472
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
473
+ },
474
+ "key": {
475
+ "$ref": "#/components/schemas/IKey"
476
+ },
477
+ "kid": {
478
+ "type": "string"
479
+ },
480
+ "issuer": {
481
+ "type": "string"
482
+ },
483
+ "clientId": {
484
+ "type": "string"
485
+ },
486
+ "clientIdScheme": {
487
+ "anyOf": [
488
+ {
489
+ "$ref": "#/components/schemas/ClientIdScheme"
490
+ },
491
+ {
492
+ "type": "string",
493
+ "const": "did"
494
+ },
495
+ {
496
+ "type": "string"
497
+ }
498
+ ]
499
+ },
500
+ "identifier": {
501
+ "$ref": "#/components/schemas/ManagedIdentifierType"
502
+ }
503
+ },
504
+ "required": [
505
+ "identifier",
506
+ "jwk",
507
+ "jwkThumbprint",
508
+ "key",
509
+ "kmsKeyRef",
510
+ "method",
511
+ "opts"
512
+ ]
513
+ },
447
514
  {
448
515
  "type": "object",
449
516
  "properties": {
@@ -768,6 +835,56 @@
768
835
  "required": [
769
836
  "identifier"
770
837
  ]
838
+ },
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "noIssPayloadUpdate": {
843
+ "type": "boolean"
844
+ },
845
+ "noIdentifierInHeader": {
846
+ "type": "boolean"
847
+ },
848
+ "lazyDisabled": {
849
+ "type": "boolean"
850
+ },
851
+ "method": {
852
+ "type": "string",
853
+ "const": "oid4vci-issuer"
854
+ },
855
+ "identifier": {
856
+ "type": "string"
857
+ },
858
+ "kmsKeyRef": {
859
+ "type": "string"
860
+ },
861
+ "issuer": {
862
+ "type": "string"
863
+ },
864
+ "kid": {
865
+ "type": "string"
866
+ },
867
+ "clientId": {
868
+ "type": "string"
869
+ },
870
+ "clientIdScheme": {
871
+ "anyOf": [
872
+ {
873
+ "$ref": "#/components/schemas/ClientIdScheme"
874
+ },
875
+ {
876
+ "type": "string",
877
+ "const": "did"
878
+ },
879
+ {
880
+ "type": "string"
881
+ }
882
+ ]
883
+ }
884
+ },
885
+ "required": [
886
+ "identifier"
887
+ ]
771
888
  }
772
889
  ]
773
890
  },
@@ -789,12 +906,12 @@
789
906
  ]
790
907
  },
791
908
  "protectedHeader": {
792
- "$ref": "#/components/schemas/JwtHeader"
909
+ "$ref": "#/components/schemas/JwsHeader"
793
910
  },
794
911
  "payload": {
795
912
  "anyOf": [
796
913
  {
797
- "$ref": "#/components/schemas/JwtPayload"
914
+ "$ref": "#/components/schemas/JwsPayload"
798
915
  },
799
916
  {
800
917
  "type": "object",
@@ -1114,7 +1231,8 @@
1114
1231
  "x5c",
1115
1232
  "kid",
1116
1233
  "key",
1117
- "cose_key"
1234
+ "cose_key",
1235
+ "oid4vci-issuer"
1118
1236
  ]
1119
1237
  },
1120
1238
  "ManagedIdentifierOpts": {
@@ -1389,6 +1507,47 @@
1389
1507
  "required": [
1390
1508
  "identifier"
1391
1509
  ]
1510
+ },
1511
+ {
1512
+ "type": "object",
1513
+ "properties": {
1514
+ "method": {
1515
+ "type": "string",
1516
+ "const": "oid4vci-issuer"
1517
+ },
1518
+ "identifier": {
1519
+ "type": "string"
1520
+ },
1521
+ "kmsKeyRef": {
1522
+ "type": "string"
1523
+ },
1524
+ "issuer": {
1525
+ "type": "string"
1526
+ },
1527
+ "kid": {
1528
+ "type": "string"
1529
+ },
1530
+ "clientId": {
1531
+ "type": "string"
1532
+ },
1533
+ "clientIdScheme": {
1534
+ "anyOf": [
1535
+ {
1536
+ "$ref": "#/components/schemas/ClientIdScheme"
1537
+ },
1538
+ {
1539
+ "type": "string",
1540
+ "const": "did"
1541
+ },
1542
+ {
1543
+ "type": "string"
1544
+ }
1545
+ ]
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "identifier"
1550
+ ]
1392
1551
  }
1393
1552
  ]
1394
1553
  },
@@ -1698,7 +1857,7 @@
1698
1857
  ],
1699
1858
  "description": "Use whenever we need to pass in an identifier. We can pass in kids, DIDs, IIdentifier objects and x5chains\n\nThe functions below can be used to check the type, and they also provide the proper 'runtime' types"
1700
1859
  },
1701
- "JwtHeader": {
1860
+ "JwsHeader": {
1702
1861
  "type": "object",
1703
1862
  "properties": {
1704
1863
  "typ": {
@@ -1722,7 +1881,7 @@
1722
1881
  },
1723
1882
  "additionalProperties": {}
1724
1883
  },
1725
- "JwtPayload": {
1884
+ "JwsPayload": {
1726
1885
  "type": "object",
1727
1886
  "additionalProperties": {},
1728
1887
  "properties": {
@@ -1759,11 +1918,18 @@
1759
1918
  }
1760
1919
  }
1761
1920
  },
1762
- "JwsCompactResult": {
1921
+ "JwtCompactResult": {
1763
1922
  "type": "object",
1764
1923
  "properties": {
1765
1924
  "jwt": {
1766
- "$ref": "#/components/schemas/JwsCompact"
1925
+ "anyOf": [
1926
+ {
1927
+ "$ref": "#/components/schemas/JwsCompact"
1928
+ },
1929
+ {
1930
+ "$ref": "#/components/schemas/JweCompact"
1931
+ }
1932
+ ]
1767
1933
  }
1768
1934
  },
1769
1935
  "required": [
@@ -1773,6 +1939,9 @@
1773
1939
  "JwsCompact": {
1774
1940
  "type": "string"
1775
1941
  },
1942
+ "JweCompact": {
1943
+ "type": "string"
1944
+ },
1776
1945
  "CreateJwsFlattenedArgs": {
1777
1946
  "$ref": "#/components/schemas/CreateJwsJsonArgs"
1778
1947
  },
@@ -1780,7 +1949,7 @@
1780
1949
  "type": "object",
1781
1950
  "properties": {
1782
1951
  "unprotectedHeader": {
1783
- "$ref": "#/components/schemas/JwtHeader"
1952
+ "$ref": "#/components/schemas/JwsHeader"
1784
1953
  },
1785
1954
  "existingSignatures": {
1786
1955
  "type": "array",
@@ -2224,6 +2393,73 @@
2224
2393
  "opts"
2225
2394
  ]
2226
2395
  },
2396
+ {
2397
+ "type": "object",
2398
+ "properties": {
2399
+ "noIssPayloadUpdate": {
2400
+ "type": "boolean"
2401
+ },
2402
+ "noIdentifierInHeader": {
2403
+ "type": "boolean"
2404
+ },
2405
+ "lazyDisabled": {
2406
+ "type": "boolean"
2407
+ },
2408
+ "jwk": {
2409
+ "$ref": "#/components/schemas/JWK"
2410
+ },
2411
+ "jwkThumbprint": {
2412
+ "type": "string"
2413
+ },
2414
+ "kmsKeyRef": {
2415
+ "type": "string"
2416
+ },
2417
+ "method": {
2418
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
2419
+ },
2420
+ "opts": {
2421
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
2422
+ },
2423
+ "key": {
2424
+ "$ref": "#/components/schemas/IKey"
2425
+ },
2426
+ "kid": {
2427
+ "type": "string"
2428
+ },
2429
+ "issuer": {
2430
+ "type": "string"
2431
+ },
2432
+ "clientId": {
2433
+ "type": "string"
2434
+ },
2435
+ "clientIdScheme": {
2436
+ "anyOf": [
2437
+ {
2438
+ "$ref": "#/components/schemas/ClientIdScheme"
2439
+ },
2440
+ {
2441
+ "type": "string",
2442
+ "const": "did"
2443
+ },
2444
+ {
2445
+ "type": "string"
2446
+ }
2447
+ ]
2448
+ },
2449
+ "identifier": {
2450
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2451
+ }
2452
+ },
2453
+ "required": [
2454
+ "identifier",
2455
+ "jwk",
2456
+ "jwkThumbprint",
2457
+ "key",
2458
+ "kmsKeyRef",
2459
+ "method",
2460
+ "opts"
2461
+ ]
2462
+ },
2227
2463
  {
2228
2464
  "type": "object",
2229
2465
  "properties": {
@@ -2548,33 +2784,83 @@
2548
2784
  "required": [
2549
2785
  "identifier"
2550
2786
  ]
2551
- }
2552
- ]
2553
- },
2554
- "clientId": {
2555
- "type": "string"
2556
- },
2557
- "clientIdScheme": {
2558
- "anyOf": [
2559
- {
2560
- "$ref": "#/components/schemas/ClientIdScheme"
2561
- },
2562
- {
2563
- "type": "string",
2564
- "const": "did"
2565
2787
  },
2566
2788
  {
2567
- "type": "string"
2568
- }
2569
- ]
2570
- },
2571
- "protectedHeader": {
2572
- "$ref": "#/components/schemas/JwtHeader"
2573
- },
2574
- "payload": {
2575
- "anyOf": [
2789
+ "type": "object",
2790
+ "properties": {
2791
+ "noIssPayloadUpdate": {
2792
+ "type": "boolean"
2793
+ },
2794
+ "noIdentifierInHeader": {
2795
+ "type": "boolean"
2796
+ },
2797
+ "lazyDisabled": {
2798
+ "type": "boolean"
2799
+ },
2800
+ "method": {
2801
+ "type": "string",
2802
+ "const": "oid4vci-issuer"
2803
+ },
2804
+ "identifier": {
2805
+ "type": "string"
2806
+ },
2807
+ "kmsKeyRef": {
2808
+ "type": "string"
2809
+ },
2810
+ "issuer": {
2811
+ "type": "string"
2812
+ },
2813
+ "kid": {
2814
+ "type": "string"
2815
+ },
2816
+ "clientId": {
2817
+ "type": "string"
2818
+ },
2819
+ "clientIdScheme": {
2820
+ "anyOf": [
2821
+ {
2822
+ "$ref": "#/components/schemas/ClientIdScheme"
2823
+ },
2824
+ {
2825
+ "type": "string",
2826
+ "const": "did"
2827
+ },
2828
+ {
2829
+ "type": "string"
2830
+ }
2831
+ ]
2832
+ }
2833
+ },
2834
+ "required": [
2835
+ "identifier"
2836
+ ]
2837
+ }
2838
+ ]
2839
+ },
2840
+ "clientId": {
2841
+ "type": "string"
2842
+ },
2843
+ "clientIdScheme": {
2844
+ "anyOf": [
2845
+ {
2846
+ "$ref": "#/components/schemas/ClientIdScheme"
2847
+ },
2848
+ {
2849
+ "type": "string",
2850
+ "const": "did"
2851
+ },
2852
+ {
2853
+ "type": "string"
2854
+ }
2855
+ ]
2856
+ },
2857
+ "protectedHeader": {
2858
+ "$ref": "#/components/schemas/JwsHeader"
2859
+ },
2860
+ "payload": {
2861
+ "anyOf": [
2576
2862
  {
2577
- "$ref": "#/components/schemas/JwtPayload"
2863
+ "$ref": "#/components/schemas/JwsPayload"
2578
2864
  },
2579
2865
  {
2580
2866
  "type": "object",
@@ -2638,7 +2924,7 @@
2638
2924
  "type": "string"
2639
2925
  },
2640
2926
  "header": {
2641
- "$ref": "#/components/schemas/JwtHeader"
2927
+ "$ref": "#/components/schemas/JwsHeader"
2642
2928
  },
2643
2929
  "signature": {
2644
2930
  "type": "string"
@@ -2659,7 +2945,7 @@
2659
2945
  "type": "string"
2660
2946
  },
2661
2947
  "header": {
2662
- "$ref": "#/components/schemas/JwtHeader"
2948
+ "$ref": "#/components/schemas/JwsHeader"
2663
2949
  },
2664
2950
  "signature": {
2665
2951
  "type": "string"
@@ -2689,106 +2975,29 @@
2689
2975
  "signatures"
2690
2976
  ]
2691
2977
  },
2692
- "PreparedJwsObject": {
2693
- "type": "object",
2694
- "properties": {
2695
- "jws": {
2696
- "$ref": "#/components/schemas/PreparedJws"
2697
- },
2698
- "b64": {
2699
- "type": "object",
2700
- "properties": {
2701
- "payload": {
2702
- "type": "string"
2703
- },
2704
- "protectedHeader": {
2705
- "type": "string"
2706
- }
2707
- },
2708
- "required": [
2709
- "payload",
2710
- "protectedHeader"
2711
- ]
2712
- },
2713
- "identifier": {
2714
- "$ref": "#/components/schemas/ManagedIdentifierResult"
2715
- }
2716
- },
2717
- "required": [
2718
- "jws",
2719
- "b64",
2720
- "identifier"
2721
- ]
2722
- },
2723
- "PreparedJws": {
2978
+ "DecryptJweCompactJwtArgs": {
2724
2979
  "type": "object",
2725
2980
  "properties": {
2726
- "protectedHeader": {
2727
- "$ref": "#/components/schemas/JwtHeader"
2728
- },
2729
- "payload": {
2730
- "type": "object",
2731
- "properties": {
2732
- "BYTES_PER_ELEMENT": {
2733
- "type": "number"
2734
- },
2735
- "buffer": {
2736
- "anyOf": [
2737
- {
2738
- "type": "object",
2739
- "properties": {
2740
- "byteLength": {
2741
- "type": "number"
2742
- }
2743
- },
2744
- "required": [
2745
- "byteLength"
2746
- ]
2747
- },
2748
- {}
2749
- ]
2750
- },
2751
- "byteLength": {
2752
- "type": "number"
2753
- },
2754
- "byteOffset": {
2755
- "type": "number"
2756
- },
2757
- "length": {
2758
- "type": "number"
2759
- }
2760
- },
2761
- "required": [
2762
- "BYTES_PER_ELEMENT",
2763
- "buffer",
2764
- "byteLength",
2765
- "byteOffset",
2766
- "length"
2767
- ],
2768
- "additionalProperties": {
2769
- "type": "number"
2770
- }
2771
- },
2772
- "unprotectedHeader": {
2773
- "$ref": "#/components/schemas/JwtHeader"
2981
+ "jwe": {
2982
+ "$ref": "#/components/schemas/JweCompact"
2774
2983
  },
2775
- "existingSignatures": {
2776
- "type": "array",
2777
- "items": {
2778
- "$ref": "#/components/schemas/JwsJsonSignature"
2779
- }
2984
+ "idOpts": {
2985
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
2780
2986
  }
2781
2987
  },
2782
2988
  "required": [
2783
- "protectedHeader",
2784
- "payload"
2989
+ "jwe",
2990
+ "idOpts"
2785
2991
  ]
2786
2992
  },
2787
- "ManagedIdentifierResult": {
2993
+ "ManagedIdentifierOptsOrResult": {
2788
2994
  "anyOf": [
2789
2995
  {
2790
2996
  "type": "object",
2791
2997
  "properties": {
2998
+ "lazyDisabled": {
2999
+ "type": "boolean"
3000
+ },
2792
3001
  "jwk": {
2793
3002
  "$ref": "#/components/schemas/JWK"
2794
3003
  },
@@ -2856,6 +3065,9 @@
2856
3065
  {
2857
3066
  "type": "object",
2858
3067
  "properties": {
3068
+ "lazyDisabled": {
3069
+ "type": "boolean"
3070
+ },
2859
3071
  "jwk": {
2860
3072
  "$ref": "#/components/schemas/JWK"
2861
3073
  },
@@ -2933,6 +3145,9 @@
2933
3145
  {
2934
3146
  "type": "object",
2935
3147
  "properties": {
3148
+ "lazyDisabled": {
3149
+ "type": "boolean"
3150
+ },
2936
3151
  "jwk": {
2937
3152
  "$ref": "#/components/schemas/JWK"
2938
3153
  },
@@ -2991,6 +3206,9 @@
2991
3206
  {
2992
3207
  "type": "object",
2993
3208
  "properties": {
3209
+ "lazyDisabled": {
3210
+ "type": "boolean"
3211
+ },
2994
3212
  "jwk": {
2995
3213
  "$ref": "#/components/schemas/JWK"
2996
3214
  },
@@ -3050,6 +3268,9 @@
3050
3268
  {
3051
3269
  "type": "object",
3052
3270
  "properties": {
3271
+ "lazyDisabled": {
3272
+ "type": "boolean"
3273
+ },
3053
3274
  "jwk": {
3054
3275
  "$ref": "#/components/schemas/JWK"
3055
3276
  },
@@ -3108,6 +3329,9 @@
3108
3329
  {
3109
3330
  "type": "object",
3110
3331
  "properties": {
3332
+ "lazyDisabled": {
3333
+ "type": "boolean"
3334
+ },
3111
3335
  "jwk": {
3112
3336
  "$ref": "#/components/schemas/JWK"
3113
3337
  },
@@ -3162,1055 +3386,2422 @@
3162
3386
  "method",
3163
3387
  "opts"
3164
3388
  ]
3165
- }
3166
- ]
3167
- },
3168
- "VerifyJwsArgs": {
3169
- "type": "object",
3170
- "properties": {
3171
- "jws": {
3172
- "$ref": "#/components/schemas/Jws"
3173
- },
3174
- "jwk": {
3175
- "$ref": "#/components/schemas/JWK"
3176
3389
  },
3177
- "opts": {
3390
+ {
3178
3391
  "type": "object",
3179
3392
  "properties": {
3180
- "x5c": {
3181
- "type": "object",
3182
- "properties": {
3183
- "trustRootWhenNoAnchors": {
3184
- "type": "boolean"
3185
- },
3186
- "allowSingleNoCAChainElement": {
3187
- "type": "boolean"
3188
- },
3189
- "blindlyTrustedAnchors": {
3190
- "allOf": [
3191
- {
3192
- "type": "array",
3193
- "items": {
3194
- "type": "string"
3195
- }
3196
- },
3197
- {
3198
- "type": "object",
3199
- "properties": {}
3200
- }
3201
- ]
3393
+ "lazyDisabled": {
3394
+ "type": "boolean"
3395
+ },
3396
+ "jwk": {
3397
+ "$ref": "#/components/schemas/JWK"
3398
+ },
3399
+ "jwkThumbprint": {
3400
+ "type": "string"
3401
+ },
3402
+ "kmsKeyRef": {
3403
+ "type": "string"
3404
+ },
3405
+ "method": {
3406
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3407
+ },
3408
+ "opts": {
3409
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3410
+ },
3411
+ "key": {
3412
+ "$ref": "#/components/schemas/IKey"
3413
+ },
3414
+ "kid": {
3415
+ "type": "string"
3416
+ },
3417
+ "issuer": {
3418
+ "type": "string"
3419
+ },
3420
+ "clientId": {
3421
+ "type": "string"
3422
+ },
3423
+ "clientIdScheme": {
3424
+ "anyOf": [
3425
+ {
3426
+ "$ref": "#/components/schemas/ClientIdScheme"
3202
3427
  },
3203
- "client": {
3204
- "type": "object",
3205
- "properties": {
3206
- "clientId": {
3207
- "type": "string"
3208
- },
3209
- "clientIdScheme": {
3210
- "$ref": "#/components/schemas/ClientIdScheme"
3211
- }
3212
- },
3213
- "required": [
3214
- "clientId",
3215
- "clientIdScheme"
3216
- ]
3428
+ {
3429
+ "type": "string",
3430
+ "const": "did"
3217
3431
  },
3218
- "method": {
3219
- "type": "object",
3220
- "properties": {}
3221
- },
3222
- "verify": {
3223
- "type": "boolean"
3224
- },
3225
- "verificationTime": {
3432
+ {
3226
3433
  "type": "string"
3227
- },
3228
- "trustAnchors": {
3229
- "allOf": [
3230
- {
3231
- "type": "array",
3232
- "items": {
3233
- "type": "string"
3234
- }
3235
- },
3236
- {
3237
- "type": "object",
3238
- "properties": {}
3239
- }
3240
- ]
3241
3434
  }
3242
- }
3435
+ ]
3243
3436
  },
3244
- "did": {
3245
- "type": "object",
3246
- "properties": {
3247
- "method": {
3248
- "type": "object",
3249
- "properties": {}
3250
- },
3251
- "noVerificationMethodFallback": {
3252
- "type": "boolean"
3253
- },
3254
- "vmRelationship": {
3255
- "anyOf": [
3256
- {
3257
- "type": "object",
3258
- "properties": {}
3259
- },
3260
- {
3261
- "type": "object",
3262
- "properties": {}
3263
- },
3264
- {
3265
- "type": "object",
3266
- "properties": {}
3267
- },
3268
- {
3269
- "type": "object",
3270
- "properties": {}
3271
- },
3272
- {
3273
- "type": "object",
3274
- "properties": {}
3275
- },
3276
- {
3277
- "type": "object",
3278
- "properties": {}
3279
- },
3280
- {
3281
- "type": "object",
3282
- "properties": {}
3283
- },
3284
- {
3285
- "type": "object",
3286
- "properties": {}
3287
- }
3288
- ]
3289
- },
3290
- "localResolution": {
3291
- "type": "boolean"
3292
- },
3293
- "uniresolverResolution": {
3294
- "type": "boolean"
3295
- },
3296
- "resolverResolution": {
3297
- "type": "boolean"
3298
- }
3299
- }
3437
+ "identifier": {
3438
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3300
3439
  }
3301
- }
3302
- }
3303
- },
3304
- "required": [
3305
- "jws"
3306
- ]
3307
- },
3308
- "Jws": {
3309
- "anyOf": [
3310
- {
3311
- "$ref": "#/components/schemas/JwsCompact"
3312
- },
3313
- {
3314
- "$ref": "#/components/schemas/JwsJsonFlattened"
3315
- },
3316
- {
3317
- "$ref": "#/components/schemas/JwsJsonGeneral"
3318
- }
3319
- ]
3320
- },
3321
- "IJwsValidationResult": {
3322
- "type": "object",
3323
- "properties": {
3324
- "jws": {
3325
- "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
3326
- },
3327
- "name": {
3328
- "type": "string",
3329
- "description": "The name of the validation or its subsystem. Mainly used for information purposes. Not assumed to be unique"
3330
- },
3331
- "error": {
3332
- "type": "boolean",
3333
- "description": "Whether the validation was successful or not"
3334
- },
3335
- "critical": {
3336
- "type": "boolean",
3337
- "description": "Whether an error can be ignored or not (up to processing logic)"
3338
- },
3339
- "message": {
3340
- "type": "string",
3341
- "description": "Any status/info message about the validation"
3342
- },
3343
- "verificationTime": {
3344
- "type": "string",
3345
- "format": "date-time",
3346
- "description": "The date and time of the validation"
3347
- }
3348
- },
3349
- "required": [
3350
- "critical",
3351
- "error",
3352
- "jws",
3353
- "message",
3354
- "name",
3355
- "verificationTime"
3356
- ]
3357
- },
3358
- "JwsJsonGeneralWithIdentifiers": {
3359
- "type": "object",
3360
- "properties": {
3361
- "payload": {
3362
- "type": "string"
3363
- },
3364
- "signatures": {
3365
- "type": "array",
3366
- "items": {
3367
- "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
3368
- }
3369
- }
3370
- },
3371
- "required": [
3372
- "payload",
3373
- "signatures"
3374
- ]
3375
- },
3376
- "JwsJsonSignatureWithIdentifier": {
3377
- "type": "object",
3378
- "properties": {
3379
- "protected": {
3380
- "type": "string"
3381
- },
3382
- "header": {
3383
- "$ref": "#/components/schemas/JwtHeader"
3384
- },
3385
- "signature": {
3386
- "type": "string"
3440
+ },
3441
+ "required": [
3442
+ "identifier",
3443
+ "jwk",
3444
+ "jwkThumbprint",
3445
+ "key",
3446
+ "kmsKeyRef",
3447
+ "method",
3448
+ "opts"
3449
+ ]
3387
3450
  },
3388
- "identifier": {
3389
- "$ref": "#/components/schemas/ExternalIdentifierResult"
3390
- }
3391
- },
3392
- "required": [
3393
- "identifier",
3394
- "protected",
3395
- "signature"
3396
- ]
3397
- },
3398
- "ExternalIdentifierResult": {
3399
- "anyOf": [
3400
3451
  {
3401
3452
  "type": "object",
3402
3453
  "properties": {
3454
+ "lazyDisabled": {
3455
+ "type": "boolean"
3456
+ },
3403
3457
  "method": {
3404
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3458
+ "type": "string",
3459
+ "const": "jwk"
3405
3460
  },
3406
- "jwks": {
3407
- "type": "array",
3408
- "items": {
3409
- "$ref": "#/components/schemas/ExternalJwkInfo"
3410
- }
3461
+ "identifier": {
3462
+ "$ref": "#/components/schemas/JWK"
3411
3463
  },
3412
- "did": {
3464
+ "kmsKeyRef": {
3413
3465
  "type": "string"
3414
3466
  },
3415
- "didDocument": {
3416
- "$ref": "#/components/schemas/DIDDocument"
3467
+ "issuer": {
3468
+ "type": "string"
3417
3469
  },
3418
- "didJwks": {
3419
- "$ref": "#/components/schemas/DidDocumentJwks"
3470
+ "kid": {
3471
+ "type": "string"
3420
3472
  },
3421
- "didResolutionResult": {
3422
- "type": "object",
3423
- "properties": {
3424
- "@context": {
3425
- "anyOf": [
3426
- {
3427
- "type": "string",
3428
- "const": "https://w3id.org/did-resolution/v1"
3429
- },
3430
- {
3431
- "type": "string"
3432
- },
3433
- {
3434
- "type": "array",
3435
- "items": {
3436
- "type": "string"
3437
- }
3438
- }
3439
- ]
3473
+ "clientId": {
3474
+ "type": "string"
3475
+ },
3476
+ "clientIdScheme": {
3477
+ "anyOf": [
3478
+ {
3479
+ "$ref": "#/components/schemas/ClientIdScheme"
3440
3480
  },
3441
- "didResolutionMetadata": {
3442
- "$ref": "#/components/schemas/DIDResolutionMetadata"
3481
+ {
3482
+ "type": "string",
3483
+ "const": "did"
3443
3484
  },
3444
- "didDocumentMetadata": {
3445
- "$ref": "#/components/schemas/DIDDocumentMetadata"
3485
+ {
3486
+ "type": "string"
3446
3487
  }
3447
- },
3448
- "required": [
3449
- "didResolutionMetadata",
3450
- "didDocumentMetadata"
3451
3488
  ]
3452
- },
3453
- "didParsed": {
3454
- "$ref": "#/components/schemas/IParsedDID"
3455
3489
  }
3456
3490
  },
3457
3491
  "required": [
3458
- "did",
3459
- "didParsed",
3460
- "didResolutionResult",
3461
- "jwks",
3462
- "method"
3492
+ "identifier"
3463
3493
  ]
3464
3494
  },
3465
3495
  {
3466
3496
  "type": "object",
3467
3497
  "properties": {
3468
- "method": {
3469
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3498
+ "lazyDisabled": {
3499
+ "type": "boolean"
3470
3500
  },
3471
- "jwks": {
3472
- "type": "array",
3473
- "items": {
3474
- "$ref": "#/components/schemas/ExternalJwkInfo"
3475
- }
3501
+ "method": {
3502
+ "type": "string",
3503
+ "const": "x5c"
3476
3504
  },
3477
- "x5c": {
3505
+ "identifier": {
3478
3506
  "type": "array",
3479
3507
  "items": {
3480
3508
  "type": "string"
3481
3509
  }
3482
3510
  },
3483
- "issuerJWK": {
3484
- "$ref": "#/components/schemas/JWK"
3511
+ "kmsKeyRef": {
3512
+ "type": "string"
3485
3513
  },
3486
- "verificationResult": {
3487
- "$ref": "#/components/schemas/X509ValidationResult"
3514
+ "issuer": {
3515
+ "type": "string"
3488
3516
  },
3489
- "certificates": {
3490
- "type": "array",
3491
- "items": {}
3517
+ "kid": {
3518
+ "type": "string"
3519
+ },
3520
+ "clientId": {
3521
+ "type": "string"
3522
+ },
3523
+ "clientIdScheme": {
3524
+ "anyOf": [
3525
+ {
3526
+ "$ref": "#/components/schemas/ClientIdScheme"
3527
+ },
3528
+ {
3529
+ "type": "string",
3530
+ "const": "did"
3531
+ },
3532
+ {
3533
+ "type": "string"
3534
+ }
3535
+ ]
3492
3536
  }
3493
3537
  },
3494
3538
  "required": [
3495
- "certificates",
3496
- "issuerJWK",
3497
- "jwks",
3498
- "method",
3499
- "x5c"
3539
+ "identifier"
3500
3540
  ]
3501
3541
  },
3502
3542
  {
3503
3543
  "type": "object",
3504
3544
  "properties": {
3545
+ "lazyDisabled": {
3546
+ "type": "boolean"
3547
+ },
3505
3548
  "method": {
3506
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3549
+ "type": "string",
3550
+ "const": "did"
3507
3551
  },
3508
- "jwks": {
3509
- "type": "array",
3510
- "items": {
3511
- "$ref": "#/components/schemas/ExternalJwkInfo"
3512
- }
3552
+ "identifier": {
3553
+ "anyOf": [
3554
+ {
3555
+ "$ref": "#/components/schemas/IIdentifier"
3556
+ },
3557
+ {
3558
+ "type": "string"
3559
+ }
3560
+ ]
3513
3561
  },
3514
- "jwk": {
3515
- "$ref": "#/components/schemas/JWK"
3562
+ "kmsKeyRef": {
3563
+ "type": "string"
3516
3564
  },
3517
- "x5c": {
3518
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
3565
+ "issuer": {
3566
+ "type": "string"
3567
+ },
3568
+ "kid": {
3569
+ "type": "string"
3570
+ },
3571
+ "clientId": {
3572
+ "type": "string"
3573
+ },
3574
+ "clientIdScheme": {
3575
+ "anyOf": [
3576
+ {
3577
+ "$ref": "#/components/schemas/ClientIdScheme"
3578
+ },
3579
+ {
3580
+ "type": "string",
3581
+ "const": "did"
3582
+ },
3583
+ {
3584
+ "type": "string"
3585
+ }
3586
+ ]
3587
+ },
3588
+ "keyType": {
3589
+ "$ref": "#/components/schemas/TKeyType"
3590
+ },
3591
+ "offlineWhenNoDIDRegistered": {
3592
+ "type": "boolean"
3593
+ },
3594
+ "noVerificationMethodFallback": {
3595
+ "type": "boolean"
3596
+ },
3597
+ "controllerKey": {
3598
+ "type": "boolean"
3599
+ },
3600
+ "vmRelationship": {
3601
+ "$ref": "#/components/schemas/DIDDocumentSection"
3519
3602
  }
3520
3603
  },
3521
3604
  "required": [
3522
- "jwk",
3523
- "jwks",
3524
- "method"
3605
+ "identifier"
3525
3606
  ]
3526
3607
  },
3527
3608
  {
3528
3609
  "type": "object",
3529
3610
  "properties": {
3611
+ "lazyDisabled": {
3612
+ "type": "boolean"
3613
+ },
3530
3614
  "method": {
3531
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3615
+ "type": "string",
3616
+ "const": "kid"
3532
3617
  },
3533
- "jwks": {
3534
- "type": "array",
3535
- "items": {
3536
- "$ref": "#/components/schemas/ExternalJwkInfo"
3537
- }
3618
+ "identifier": {
3619
+ "type": "string"
3538
3620
  },
3539
- "coseKey": {
3540
- "$ref": "#/components/schemas/ICoseKeyJson"
3621
+ "kmsKeyRef": {
3622
+ "type": "string"
3541
3623
  },
3542
- "x5c": {
3543
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
3624
+ "issuer": {
3625
+ "type": "string"
3626
+ },
3627
+ "kid": {
3628
+ "type": "string"
3629
+ },
3630
+ "clientId": {
3631
+ "type": "string"
3632
+ },
3633
+ "clientIdScheme": {
3634
+ "anyOf": [
3635
+ {
3636
+ "$ref": "#/components/schemas/ClientIdScheme"
3637
+ },
3638
+ {
3639
+ "type": "string",
3640
+ "const": "did"
3641
+ },
3642
+ {
3643
+ "type": "string"
3644
+ }
3645
+ ]
3544
3646
  }
3545
3647
  },
3546
3648
  "required": [
3547
- "coseKey",
3548
- "jwks",
3549
- "method"
3649
+ "identifier"
3550
3650
  ]
3551
- }
3552
- ]
3553
- },
3554
- "ExternalIdentifierMethod": {
3555
- "type": "string",
3556
- "enum": [
3557
- "did",
3558
- "jwk",
3559
- "x5c",
3560
- "kid",
3561
- "cose_key",
3562
- "oidc-discovery",
3563
- "jwks-url",
3564
- "oid4vci-issuer"
3565
- ]
3566
- },
3567
- "ExternalJwkInfo": {
3568
- "type": "object",
3569
- "properties": {
3570
- "jwk": {
3571
- "$ref": "#/components/schemas/JWK"
3572
- },
3573
- "jwkThumbprint": {
3574
- "type": "string"
3575
- },
3576
- "kid": {
3577
- "type": "string"
3578
3651
  },
3579
- "publicKeyHex": {
3580
- "type": "string"
3581
- }
3582
- },
3583
- "required": [
3584
- "jwk",
3585
- "jwkThumbprint",
3586
- "publicKeyHex"
3587
- ]
3588
- },
3589
- "DIDDocument": {
3590
- "type": "object",
3591
- "properties": {
3592
- "authentication": {
3593
- "type": "array",
3594
- "items": {
3595
- "anyOf": [
3596
- {
3597
- "type": "string"
3598
- },
3599
- {
3600
- "$ref": "#/components/schemas/VerificationMethod"
3601
- }
3602
- ]
3603
- }
3652
+ {
3653
+ "type": "object",
3654
+ "properties": {
3655
+ "lazyDisabled": {
3656
+ "type": "boolean"
3657
+ },
3658
+ "method": {
3659
+ "type": "string",
3660
+ "const": "key"
3661
+ },
3662
+ "identifier": {
3663
+ "$ref": "#/components/schemas/IKey"
3664
+ },
3665
+ "kmsKeyRef": {
3666
+ "type": "string"
3667
+ },
3668
+ "issuer": {
3669
+ "type": "string"
3670
+ },
3671
+ "kid": {
3672
+ "type": "string"
3673
+ },
3674
+ "clientId": {
3675
+ "type": "string"
3676
+ },
3677
+ "clientIdScheme": {
3678
+ "anyOf": [
3679
+ {
3680
+ "$ref": "#/components/schemas/ClientIdScheme"
3681
+ },
3682
+ {
3683
+ "type": "string",
3684
+ "const": "did"
3685
+ },
3686
+ {
3687
+ "type": "string"
3688
+ }
3689
+ ]
3690
+ }
3691
+ },
3692
+ "required": [
3693
+ "identifier"
3694
+ ]
3604
3695
  },
3605
- "assertionMethod": {
3606
- "type": "array",
3607
- "items": {
3608
- "anyOf": [
3609
- {
3610
- "type": "string"
3611
- },
3612
- {
3613
- "$ref": "#/components/schemas/VerificationMethod"
3614
- }
3615
- ]
3616
- }
3617
- },
3618
- "keyAgreement": {
3619
- "type": "array",
3620
- "items": {
3621
- "anyOf": [
3622
- {
3623
- "type": "string"
3624
- },
3625
- {
3626
- "$ref": "#/components/schemas/VerificationMethod"
3627
- }
3628
- ]
3629
- }
3630
- },
3631
- "capabilityInvocation": {
3632
- "type": "array",
3633
- "items": {
3634
- "anyOf": [
3635
- {
3636
- "type": "string"
3637
- },
3638
- {
3639
- "$ref": "#/components/schemas/VerificationMethod"
3640
- }
3641
- ]
3642
- }
3643
- },
3644
- "capabilityDelegation": {
3645
- "type": "array",
3646
- "items": {
3647
- "anyOf": [
3648
- {
3649
- "type": "string"
3650
- },
3651
- {
3652
- "$ref": "#/components/schemas/VerificationMethod"
3653
- }
3654
- ]
3655
- }
3656
- },
3657
- "@context": {
3658
- "anyOf": [
3659
- {
3696
+ {
3697
+ "type": "object",
3698
+ "properties": {
3699
+ "lazyDisabled": {
3700
+ "type": "boolean"
3701
+ },
3702
+ "method": {
3660
3703
  "type": "string",
3661
- "const": "https://www.w3.org/ns/did/v1"
3704
+ "const": "cose_key"
3662
3705
  },
3663
- {
3706
+ "identifier": {
3707
+ "$ref": "#/components/schemas/ICoseKeyJson"
3708
+ },
3709
+ "kmsKeyRef": {
3664
3710
  "type": "string"
3665
3711
  },
3666
- {
3667
- "type": "array",
3668
- "items": {
3669
- "type": "string"
3670
- }
3712
+ "issuer": {
3713
+ "type": "string"
3714
+ },
3715
+ "kid": {
3716
+ "type": "string"
3717
+ },
3718
+ "clientId": {
3719
+ "type": "string"
3720
+ },
3721
+ "clientIdScheme": {
3722
+ "anyOf": [
3723
+ {
3724
+ "$ref": "#/components/schemas/ClientIdScheme"
3725
+ },
3726
+ {
3727
+ "type": "string",
3728
+ "const": "did"
3729
+ },
3730
+ {
3731
+ "type": "string"
3732
+ }
3733
+ ]
3671
3734
  }
3735
+ },
3736
+ "required": [
3737
+ "identifier"
3672
3738
  ]
3673
3739
  },
3674
- "id": {
3675
- "type": "string"
3676
- },
3677
- "alsoKnownAs": {
3678
- "type": "array",
3679
- "items": {
3680
- "type": "string"
3681
- }
3682
- },
3683
- "controller": {
3684
- "anyOf": [
3685
- {
3740
+ {
3741
+ "type": "object",
3742
+ "properties": {
3743
+ "lazyDisabled": {
3744
+ "type": "boolean"
3745
+ },
3746
+ "method": {
3747
+ "type": "string",
3748
+ "const": "oid4vci-issuer"
3749
+ },
3750
+ "identifier": {
3686
3751
  "type": "string"
3687
3752
  },
3688
- {
3689
- "type": "array",
3690
- "items": {
3691
- "type": "string"
3692
- }
3753
+ "kmsKeyRef": {
3754
+ "type": "string"
3755
+ },
3756
+ "issuer": {
3757
+ "type": "string"
3758
+ },
3759
+ "kid": {
3760
+ "type": "string"
3761
+ },
3762
+ "clientId": {
3763
+ "type": "string"
3764
+ },
3765
+ "clientIdScheme": {
3766
+ "anyOf": [
3767
+ {
3768
+ "$ref": "#/components/schemas/ClientIdScheme"
3769
+ },
3770
+ {
3771
+ "type": "string",
3772
+ "const": "did"
3773
+ },
3774
+ {
3775
+ "type": "string"
3776
+ }
3777
+ ]
3693
3778
  }
3694
- ]
3695
- },
3696
- "verificationMethod": {
3697
- "type": "array",
3698
- "items": {
3699
- "$ref": "#/components/schemas/VerificationMethod"
3700
- }
3701
- },
3702
- "service": {
3703
- "type": "array",
3704
- "items": {
3705
- "$ref": "#/components/schemas/Service"
3706
- }
3707
- },
3708
- "publicKey": {
3709
- "type": "array",
3710
- "items": {
3711
- "$ref": "#/components/schemas/VerificationMethod"
3712
3779
  },
3713
- "deprecated": true
3780
+ "required": [
3781
+ "identifier"
3782
+ ]
3714
3783
  }
3715
- },
3716
- "required": [
3717
- "id"
3718
- ],
3719
- "description": "Represents a DID document."
3784
+ ]
3720
3785
  },
3721
- "VerificationMethod": {
3786
+ "EncryptJweCompactJwtArgs": {
3722
3787
  "type": "object",
3723
3788
  "properties": {
3724
- "id": {
3725
- "type": "string"
3726
- },
3727
- "type": {
3728
- "type": "string"
3729
- },
3730
- "controller": {
3731
- "type": "string"
3732
- },
3733
- "publicKeyBase58": {
3734
- "type": "string"
3735
- },
3736
- "publicKeyBase64": {
3737
- "type": "string"
3738
- },
3739
- "publicKeyJwk": {
3740
- "$ref": "#/components/schemas/JsonWebKey"
3741
- },
3742
- "publicKeyHex": {
3743
- "type": "string"
3744
- },
3745
- "publicKeyMultibase": {
3746
- "type": "string"
3747
- },
3748
- "blockchainAccountId": {
3749
- "type": "string"
3789
+ "payload": {
3790
+ "$ref": "#/components/schemas/JwsPayload"
3750
3791
  },
3751
- "ethereumAddress": {
3752
- "type": "string"
3792
+ "protectedHeader": {
3793
+ "$ref": "#/components/schemas/JweProtectedHeader"
3753
3794
  },
3754
- "conditionOr": {
3755
- "type": "array",
3756
- "items": {
3757
- "$ref": "#/components/schemas/VerificationMethod"
3795
+ "aad": {
3796
+ "type": "object",
3797
+ "properties": {
3798
+ "BYTES_PER_ELEMENT": {
3799
+ "type": "number"
3800
+ },
3801
+ "buffer": {
3802
+ "anyOf": [
3803
+ {
3804
+ "type": "object",
3805
+ "properties": {
3806
+ "byteLength": {
3807
+ "type": "number"
3808
+ }
3809
+ },
3810
+ "required": [
3811
+ "byteLength"
3812
+ ]
3813
+ },
3814
+ {}
3815
+ ]
3816
+ },
3817
+ "byteLength": {
3818
+ "type": "number"
3819
+ },
3820
+ "byteOffset": {
3821
+ "type": "number"
3822
+ },
3823
+ "length": {
3824
+ "type": "number"
3825
+ }
3826
+ },
3827
+ "required": [
3828
+ "BYTES_PER_ELEMENT",
3829
+ "buffer",
3830
+ "byteLength",
3831
+ "byteOffset",
3832
+ "length"
3833
+ ],
3834
+ "additionalProperties": {
3835
+ "type": "number"
3758
3836
  }
3759
3837
  },
3760
- "conditionAnd": {
3761
- "type": "array",
3762
- "items": {
3763
- "$ref": "#/components/schemas/VerificationMethod"
3764
- }
3838
+ "recipientKey": {
3839
+ "anyOf": [
3840
+ {
3841
+ "type": "object",
3842
+ "properties": {
3843
+ "kid": {
3844
+ "type": "string"
3845
+ },
3846
+ "method": {
3847
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
3848
+ },
3849
+ "jwks": {
3850
+ "type": "array",
3851
+ "items": {
3852
+ "$ref": "#/components/schemas/ExternalJwkInfo"
3853
+ }
3854
+ },
3855
+ "did": {
3856
+ "type": "string"
3857
+ },
3858
+ "didDocument": {
3859
+ "$ref": "#/components/schemas/DIDDocument"
3860
+ },
3861
+ "didJwks": {
3862
+ "$ref": "#/components/schemas/DidDocumentJwks"
3863
+ },
3864
+ "didResolutionResult": {
3865
+ "type": "object",
3866
+ "properties": {
3867
+ "@context": {
3868
+ "anyOf": [
3869
+ {
3870
+ "type": "string",
3871
+ "const": "https://w3id.org/did-resolution/v1"
3872
+ },
3873
+ {
3874
+ "type": "string"
3875
+ },
3876
+ {
3877
+ "type": "array",
3878
+ "items": {
3879
+ "type": "string"
3880
+ }
3881
+ }
3882
+ ]
3883
+ },
3884
+ "didResolutionMetadata": {
3885
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
3886
+ },
3887
+ "didDocumentMetadata": {
3888
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
3889
+ }
3890
+ },
3891
+ "required": [
3892
+ "didResolutionMetadata",
3893
+ "didDocumentMetadata"
3894
+ ]
3895
+ },
3896
+ "didParsed": {
3897
+ "$ref": "#/components/schemas/IParsedDID"
3898
+ }
3899
+ },
3900
+ "required": [
3901
+ "did",
3902
+ "didParsed",
3903
+ "didResolutionResult",
3904
+ "jwks",
3905
+ "method"
3906
+ ]
3907
+ },
3908
+ {
3909
+ "type": "object",
3910
+ "properties": {
3911
+ "kid": {
3912
+ "type": "string"
3913
+ },
3914
+ "method": {
3915
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
3916
+ },
3917
+ "jwks": {
3918
+ "type": "array",
3919
+ "items": {
3920
+ "$ref": "#/components/schemas/ExternalJwkInfo"
3921
+ }
3922
+ },
3923
+ "x5c": {
3924
+ "type": "array",
3925
+ "items": {
3926
+ "type": "string"
3927
+ }
3928
+ },
3929
+ "issuerJWK": {
3930
+ "$ref": "#/components/schemas/JWK"
3931
+ },
3932
+ "verificationResult": {
3933
+ "$ref": "#/components/schemas/X509ValidationResult"
3934
+ },
3935
+ "certificates": {
3936
+ "type": "array",
3937
+ "items": {}
3938
+ }
3939
+ },
3940
+ "required": [
3941
+ "certificates",
3942
+ "issuerJWK",
3943
+ "jwks",
3944
+ "method",
3945
+ "x5c"
3946
+ ]
3947
+ },
3948
+ {
3949
+ "type": "object",
3950
+ "properties": {
3951
+ "kid": {
3952
+ "type": "string"
3953
+ },
3954
+ "method": {
3955
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
3956
+ },
3957
+ "jwks": {
3958
+ "type": "array",
3959
+ "items": {
3960
+ "$ref": "#/components/schemas/ExternalJwkInfo"
3961
+ }
3962
+ },
3963
+ "jwk": {
3964
+ "$ref": "#/components/schemas/JWK"
3965
+ },
3966
+ "x5c": {
3967
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
3968
+ }
3969
+ },
3970
+ "required": [
3971
+ "jwk",
3972
+ "jwks",
3973
+ "method"
3974
+ ]
3975
+ },
3976
+ {
3977
+ "type": "object",
3978
+ "properties": {
3979
+ "kid": {
3980
+ "type": "string"
3981
+ },
3982
+ "method": {
3983
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
3984
+ },
3985
+ "jwks": {
3986
+ "type": "array",
3987
+ "items": {
3988
+ "$ref": "#/components/schemas/ExternalJwkInfo"
3989
+ }
3990
+ },
3991
+ "coseKey": {
3992
+ "$ref": "#/components/schemas/ICoseKeyJson"
3993
+ },
3994
+ "x5c": {
3995
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
3996
+ }
3997
+ },
3998
+ "required": [
3999
+ "coseKey",
4000
+ "jwks",
4001
+ "method"
4002
+ ]
4003
+ }
4004
+ ]
3765
4005
  },
3766
- "threshold": {
3767
- "type": "number"
4006
+ "alg": {
4007
+ "$ref": "#/components/schemas/JweAlg"
3768
4008
  },
3769
- "conditionThreshold": {
3770
- "type": "array",
3771
- "items": {
3772
- "$ref": "#/components/schemas/VerificationMethod"
3773
- }
4009
+ "enc": {
4010
+ "$ref": "#/components/schemas/JweEnc"
3774
4011
  },
3775
- "conditionWeightedThreshold": {
3776
- "type": "array",
3777
- "items": {
3778
- "$ref": "#/components/schemas/ConditionWeightedThreshold"
3779
- }
4012
+ "apu": {
4013
+ "type": "string"
3780
4014
  },
3781
- "conditionDelegated": {
4015
+ "apv": {
3782
4016
  "type": "string"
3783
4017
  },
3784
- "relationshipParent": {
3785
- "type": "array",
3786
- "items": {
3787
- "type": "string"
3788
- }
4018
+ "expirationTime": {
4019
+ "anyOf": [
4020
+ {
4021
+ "type": "number"
4022
+ },
4023
+ {
4024
+ "type": "string"
4025
+ },
4026
+ {
4027
+ "type": "string",
4028
+ "format": "date-time"
4029
+ }
4030
+ ]
3789
4031
  },
3790
- "relationshipChild": {
3791
- "type": "array",
3792
- "items": {
3793
- "type": "string"
3794
- }
4032
+ "issuer": {
4033
+ "type": "string"
3795
4034
  },
3796
- "relationshipSibling": {
3797
- "type": "array",
3798
- "items": {
3799
- "type": "string"
3800
- }
4035
+ "audience": {
4036
+ "anyOf": [
4037
+ {
4038
+ "type": "string"
4039
+ },
4040
+ {
4041
+ "type": "array",
4042
+ "items": {
4043
+ "type": "string"
4044
+ }
4045
+ }
4046
+ ]
3801
4047
  }
3802
4048
  },
3803
4049
  "required": [
3804
- "id",
3805
- "type",
3806
- "controller"
3807
- ],
3808
- "description": "Represents the properties of a Verification Method listed in a DID document.\n\nThis data type includes public key representations that are no longer present in the spec but are still used by several DID methods / resolvers and kept for backward compatibility."
4050
+ "payload",
4051
+ "recipientKey"
4052
+ ]
3809
4053
  },
3810
- "JsonWebKey": {
4054
+ "JweProtectedHeader": {
3811
4055
  "type": "object",
3812
4056
  "properties": {
3813
4057
  "alg": {
3814
4058
  "type": "string"
3815
4059
  },
3816
- "crv": {
4060
+ "enc": {
3817
4061
  "type": "string"
3818
4062
  },
3819
- "e": {
4063
+ "jku": {
3820
4064
  "type": "string"
3821
4065
  },
3822
- "ext": {
3823
- "type": "boolean"
4066
+ "jwk": {
4067
+ "$ref": "#/components/schemas/BaseJWK"
3824
4068
  },
3825
- "key_ops": {
4069
+ "epk": {
4070
+ "$ref": "#/components/schemas/EphemeralPublicKey"
4071
+ },
4072
+ "x5u": {
4073
+ "type": "string"
4074
+ },
4075
+ "x5c": {
3826
4076
  "type": "array",
3827
4077
  "items": {
3828
4078
  "type": "string"
3829
4079
  }
3830
4080
  },
3831
- "kid": {
4081
+ "x5t": {
3832
4082
  "type": "string"
3833
4083
  },
3834
- "kty": {
4084
+ "cty": {
3835
4085
  "type": "string"
3836
4086
  },
3837
- "n": {
3838
- "type": "string"
4087
+ "crit": {
4088
+ "type": "array",
4089
+ "items": {
4090
+ "type": "string"
4091
+ }
3839
4092
  },
3840
- "use": {
4093
+ "typ": {},
4094
+ "kid": {},
4095
+ "zip": {
3841
4096
  "type": "string"
4097
+ }
4098
+ }
4099
+ },
4100
+ "BaseJWK": {
4101
+ "type": "object",
4102
+ "properties": {
4103
+ "kty": {
4104
+ "anyOf": [
4105
+ {
4106
+ "$ref": "#/components/schemas/JwkKeyType"
4107
+ },
4108
+ {
4109
+ "$ref": "#/components/schemas/JwkKeyTypeString"
4110
+ }
4111
+ ]
4112
+ },
4113
+ "crv": {
4114
+ "anyOf": [
4115
+ {
4116
+ "$ref": "#/components/schemas/JoseCurve"
4117
+ },
4118
+ {
4119
+ "$ref": "#/components/schemas/JoseCurveString"
4120
+ }
4121
+ ]
4122
+ },
4123
+ "alg": {
4124
+ "anyOf": [
4125
+ {
4126
+ "$ref": "#/components/schemas/JoseSignatureAlgorithm"
4127
+ },
4128
+ {
4129
+ "$ref": "#/components/schemas/JoseSignatureAlgorithmString"
4130
+ }
4131
+ ]
3842
4132
  },
3843
4133
  "x": {
3844
4134
  "type": "string"
3845
4135
  },
3846
4136
  "y": {
3847
4137
  "type": "string"
4138
+ },
4139
+ "e": {
4140
+ "type": "string"
4141
+ },
4142
+ "n": {
4143
+ "type": "string"
3848
4144
  }
3849
4145
  },
3850
4146
  "required": [
3851
4147
  "kty"
3852
4148
  ],
3853
- "description": "Encapsulates a JSON web key type that includes only the public properties that can be used in DID documents.\n\nThe private properties are intentionally omitted to discourage the use (and accidental disclosure) of private keys in DID documents."
3854
- },
3855
- "ConditionWeightedThreshold": {
3856
- "type": "object",
3857
- "properties": {
3858
- "condition": {
3859
- "$ref": "#/components/schemas/VerificationMethod"
3860
- },
3861
- "weight": {
3862
- "type": "number"
3863
- }
3864
- },
3865
- "required": [
3866
- "condition",
3867
- "weight"
3868
- ]
4149
+ "description": "Conversion functions to Cose available for TS in our"
3869
4150
  },
3870
- "Service": {
4151
+ "EphemeralPublicKey": {
3871
4152
  "type": "object",
3872
4153
  "properties": {
3873
- "id": {
3874
- "type": "string"
3875
- },
3876
- "type": {
3877
- "type": "string"
3878
- },
3879
- "serviceEndpoint": {
4154
+ "kty": {
3880
4155
  "anyOf": [
3881
4156
  {
3882
- "$ref": "#/components/schemas/ServiceEndpoint"
4157
+ "$ref": "#/components/schemas/JwkKeyType"
4158
+ },
4159
+ {
4160
+ "$ref": "#/components/schemas/JwkKeyTypeString"
4161
+ }
4162
+ ]
4163
+ },
4164
+ "crv": {
4165
+ "anyOf": [
4166
+ {
4167
+ "$ref": "#/components/schemas/JoseCurve"
4168
+ },
4169
+ {
4170
+ "$ref": "#/components/schemas/JoseCurveString"
4171
+ }
4172
+ ]
4173
+ },
4174
+ "x": {
4175
+ "type": "string"
4176
+ },
4177
+ "y": {
4178
+ "type": "string"
4179
+ },
4180
+ "e": {
4181
+ "type": "string"
4182
+ },
4183
+ "n": {
4184
+ "type": "string"
4185
+ }
4186
+ },
4187
+ "required": [
4188
+ "kty"
4189
+ ],
4190
+ "description": "The JWK representation of an ephemeral public key. See https://www.rfc-editor.org/rfc/rfc7518.html#section-6"
4191
+ },
4192
+ "ExternalIdentifierMethod": {
4193
+ "type": "string",
4194
+ "enum": [
4195
+ "did",
4196
+ "jwk",
4197
+ "x5c",
4198
+ "kid",
4199
+ "cose_key",
4200
+ "oidc-discovery",
4201
+ "jwks-url",
4202
+ "oid4vci-issuer"
4203
+ ]
4204
+ },
4205
+ "ExternalJwkInfo": {
4206
+ "type": "object",
4207
+ "properties": {
4208
+ "jwk": {
4209
+ "$ref": "#/components/schemas/JWK"
4210
+ },
4211
+ "jwkThumbprint": {
4212
+ "type": "string"
4213
+ },
4214
+ "kid": {
4215
+ "type": "string"
4216
+ },
4217
+ "publicKeyHex": {
4218
+ "type": "string"
4219
+ }
4220
+ },
4221
+ "required": [
4222
+ "jwk",
4223
+ "jwkThumbprint",
4224
+ "publicKeyHex"
4225
+ ]
4226
+ },
4227
+ "DIDDocument": {
4228
+ "type": "object",
4229
+ "properties": {
4230
+ "authentication": {
4231
+ "type": "array",
4232
+ "items": {
4233
+ "anyOf": [
4234
+ {
4235
+ "type": "string"
4236
+ },
4237
+ {
4238
+ "$ref": "#/components/schemas/VerificationMethod"
4239
+ }
4240
+ ]
4241
+ }
4242
+ },
4243
+ "assertionMethod": {
4244
+ "type": "array",
4245
+ "items": {
4246
+ "anyOf": [
4247
+ {
4248
+ "type": "string"
4249
+ },
4250
+ {
4251
+ "$ref": "#/components/schemas/VerificationMethod"
4252
+ }
4253
+ ]
4254
+ }
4255
+ },
4256
+ "keyAgreement": {
4257
+ "type": "array",
4258
+ "items": {
4259
+ "anyOf": [
4260
+ {
4261
+ "type": "string"
4262
+ },
4263
+ {
4264
+ "$ref": "#/components/schemas/VerificationMethod"
4265
+ }
4266
+ ]
4267
+ }
4268
+ },
4269
+ "capabilityInvocation": {
4270
+ "type": "array",
4271
+ "items": {
4272
+ "anyOf": [
4273
+ {
4274
+ "type": "string"
4275
+ },
4276
+ {
4277
+ "$ref": "#/components/schemas/VerificationMethod"
4278
+ }
4279
+ ]
4280
+ }
4281
+ },
4282
+ "capabilityDelegation": {
4283
+ "type": "array",
4284
+ "items": {
4285
+ "anyOf": [
4286
+ {
4287
+ "type": "string"
4288
+ },
4289
+ {
4290
+ "$ref": "#/components/schemas/VerificationMethod"
4291
+ }
4292
+ ]
4293
+ }
4294
+ },
4295
+ "@context": {
4296
+ "anyOf": [
4297
+ {
4298
+ "type": "string",
4299
+ "const": "https://www.w3.org/ns/did/v1"
4300
+ },
4301
+ {
4302
+ "type": "string"
4303
+ },
4304
+ {
4305
+ "type": "array",
4306
+ "items": {
4307
+ "type": "string"
4308
+ }
4309
+ }
4310
+ ]
4311
+ },
4312
+ "id": {
4313
+ "type": "string"
4314
+ },
4315
+ "alsoKnownAs": {
4316
+ "type": "array",
4317
+ "items": {
4318
+ "type": "string"
4319
+ }
4320
+ },
4321
+ "controller": {
4322
+ "anyOf": [
4323
+ {
4324
+ "type": "string"
4325
+ },
4326
+ {
4327
+ "type": "array",
4328
+ "items": {
4329
+ "type": "string"
4330
+ }
4331
+ }
4332
+ ]
4333
+ },
4334
+ "verificationMethod": {
4335
+ "type": "array",
4336
+ "items": {
4337
+ "$ref": "#/components/schemas/VerificationMethod"
4338
+ }
4339
+ },
4340
+ "service": {
4341
+ "type": "array",
4342
+ "items": {
4343
+ "$ref": "#/components/schemas/Service"
4344
+ }
4345
+ },
4346
+ "publicKey": {
4347
+ "type": "array",
4348
+ "items": {
4349
+ "$ref": "#/components/schemas/VerificationMethod"
4350
+ },
4351
+ "deprecated": true
4352
+ }
4353
+ },
4354
+ "required": [
4355
+ "id"
4356
+ ],
4357
+ "description": "Represents a DID document."
4358
+ },
4359
+ "VerificationMethod": {
4360
+ "type": "object",
4361
+ "properties": {
4362
+ "id": {
4363
+ "type": "string"
4364
+ },
4365
+ "type": {
4366
+ "type": "string"
4367
+ },
4368
+ "controller": {
4369
+ "type": "string"
4370
+ },
4371
+ "publicKeyBase58": {
4372
+ "type": "string"
4373
+ },
4374
+ "publicKeyBase64": {
4375
+ "type": "string"
4376
+ },
4377
+ "publicKeyJwk": {
4378
+ "$ref": "#/components/schemas/JsonWebKey"
4379
+ },
4380
+ "publicKeyHex": {
4381
+ "type": "string"
4382
+ },
4383
+ "publicKeyMultibase": {
4384
+ "type": "string"
4385
+ },
4386
+ "blockchainAccountId": {
4387
+ "type": "string"
4388
+ },
4389
+ "ethereumAddress": {
4390
+ "type": "string"
4391
+ },
4392
+ "conditionOr": {
4393
+ "type": "array",
4394
+ "items": {
4395
+ "$ref": "#/components/schemas/VerificationMethod"
4396
+ }
4397
+ },
4398
+ "conditionAnd": {
4399
+ "type": "array",
4400
+ "items": {
4401
+ "$ref": "#/components/schemas/VerificationMethod"
4402
+ }
4403
+ },
4404
+ "threshold": {
4405
+ "type": "number"
4406
+ },
4407
+ "conditionThreshold": {
4408
+ "type": "array",
4409
+ "items": {
4410
+ "$ref": "#/components/schemas/VerificationMethod"
4411
+ }
4412
+ },
4413
+ "conditionWeightedThreshold": {
4414
+ "type": "array",
4415
+ "items": {
4416
+ "$ref": "#/components/schemas/ConditionWeightedThreshold"
4417
+ }
4418
+ },
4419
+ "conditionDelegated": {
4420
+ "type": "string"
4421
+ },
4422
+ "relationshipParent": {
4423
+ "type": "array",
4424
+ "items": {
4425
+ "type": "string"
4426
+ }
4427
+ },
4428
+ "relationshipChild": {
4429
+ "type": "array",
4430
+ "items": {
4431
+ "type": "string"
4432
+ }
4433
+ },
4434
+ "relationshipSibling": {
4435
+ "type": "array",
4436
+ "items": {
4437
+ "type": "string"
4438
+ }
4439
+ }
4440
+ },
4441
+ "required": [
4442
+ "id",
4443
+ "type",
4444
+ "controller"
4445
+ ],
4446
+ "description": "Represents the properties of a Verification Method listed in a DID document.\n\nThis data type includes public key representations that are no longer present in the spec but are still used by several DID methods / resolvers and kept for backward compatibility."
4447
+ },
4448
+ "JsonWebKey": {
4449
+ "type": "object",
4450
+ "properties": {
4451
+ "alg": {
4452
+ "type": "string"
4453
+ },
4454
+ "crv": {
4455
+ "type": "string"
4456
+ },
4457
+ "e": {
4458
+ "type": "string"
4459
+ },
4460
+ "ext": {
4461
+ "type": "boolean"
4462
+ },
4463
+ "key_ops": {
4464
+ "type": "array",
4465
+ "items": {
4466
+ "type": "string"
4467
+ }
4468
+ },
4469
+ "kid": {
4470
+ "type": "string"
4471
+ },
4472
+ "kty": {
4473
+ "type": "string"
4474
+ },
4475
+ "n": {
4476
+ "type": "string"
4477
+ },
4478
+ "use": {
4479
+ "type": "string"
4480
+ },
4481
+ "x": {
4482
+ "type": "string"
4483
+ },
4484
+ "y": {
4485
+ "type": "string"
4486
+ }
4487
+ },
4488
+ "required": [
4489
+ "kty"
4490
+ ],
4491
+ "description": "Encapsulates a JSON web key type that includes only the public properties that can be used in DID documents.\n\nThe private properties are intentionally omitted to discourage the use (and accidental disclosure) of private keys in DID documents."
4492
+ },
4493
+ "ConditionWeightedThreshold": {
4494
+ "type": "object",
4495
+ "properties": {
4496
+ "condition": {
4497
+ "$ref": "#/components/schemas/VerificationMethod"
4498
+ },
4499
+ "weight": {
4500
+ "type": "number"
4501
+ }
4502
+ },
4503
+ "required": [
4504
+ "condition",
4505
+ "weight"
4506
+ ]
4507
+ },
4508
+ "Service": {
4509
+ "type": "object",
4510
+ "properties": {
4511
+ "id": {
4512
+ "type": "string"
4513
+ },
4514
+ "type": {
4515
+ "type": "string"
4516
+ },
4517
+ "serviceEndpoint": {
4518
+ "anyOf": [
4519
+ {
4520
+ "$ref": "#/components/schemas/ServiceEndpoint"
4521
+ },
4522
+ {
4523
+ "type": "array",
4524
+ "items": {
4525
+ "$ref": "#/components/schemas/ServiceEndpoint"
4526
+ }
4527
+ }
4528
+ ]
4529
+ }
4530
+ },
4531
+ "required": [
4532
+ "id",
4533
+ "type",
4534
+ "serviceEndpoint"
4535
+ ],
4536
+ "description": "Represents a Service entry in a {@link https://www.w3.org/TR/did-core/#did-document-properties | DID document } ."
4537
+ },
4538
+ "ServiceEndpoint": {
4539
+ "anyOf": [
4540
+ {
4541
+ "type": "string"
4542
+ },
4543
+ {
4544
+ "type": "object"
4545
+ }
4546
+ ],
4547
+ "description": "Represents an endpoint of a Service entry in a DID document."
4548
+ },
4549
+ "DidDocumentJwks": {
4550
+ "type": "object",
4551
+ "properties": {
4552
+ "verificationMethod": {
4553
+ "type": "array",
4554
+ "items": {
4555
+ "$ref": "#/components/schemas/JWK"
4556
+ }
4557
+ },
4558
+ "authentication": {
4559
+ "type": "array",
4560
+ "items": {
4561
+ "$ref": "#/components/schemas/JWK"
4562
+ }
4563
+ },
4564
+ "assertionMethod": {
4565
+ "type": "array",
4566
+ "items": {
4567
+ "$ref": "#/components/schemas/JWK"
4568
+ }
4569
+ },
4570
+ "keyAgreement": {
4571
+ "type": "array",
4572
+ "items": {
4573
+ "$ref": "#/components/schemas/JWK"
4574
+ }
4575
+ },
4576
+ "capabilityInvocation": {
4577
+ "type": "array",
4578
+ "items": {
4579
+ "$ref": "#/components/schemas/JWK"
4580
+ }
4581
+ },
4582
+ "capabilityDelegation": {
4583
+ "type": "array",
4584
+ "items": {
4585
+ "$ref": "#/components/schemas/JWK"
4586
+ }
4587
+ }
4588
+ },
4589
+ "required": [
4590
+ "verificationMethod",
4591
+ "authentication",
4592
+ "assertionMethod",
4593
+ "keyAgreement",
4594
+ "capabilityInvocation",
4595
+ "capabilityDelegation"
4596
+ ]
4597
+ },
4598
+ "DIDResolutionMetadata": {
4599
+ "type": "object",
4600
+ "properties": {
4601
+ "contentType": {
4602
+ "type": "string"
4603
+ },
4604
+ "error": {
4605
+ "type": "string"
4606
+ }
4607
+ },
4608
+ "description": "Encapsulates the resolution metadata resulting from a {@link Resolvable.resolve } operation."
4609
+ },
4610
+ "DIDDocumentMetadata": {
4611
+ "type": "object",
4612
+ "properties": {
4613
+ "created": {
4614
+ "type": "string"
4615
+ },
4616
+ "updated": {
4617
+ "type": "string"
4618
+ },
4619
+ "deactivated": {
4620
+ "type": "boolean"
4621
+ },
4622
+ "versionId": {
4623
+ "type": "string"
4624
+ },
4625
+ "nextUpdate": {
4626
+ "type": "string"
4627
+ },
4628
+ "nextVersionId": {
4629
+ "type": "string"
4630
+ },
4631
+ "equivalentId": {
4632
+ "type": "string"
4633
+ },
4634
+ "canonicalId": {
4635
+ "type": "string"
4636
+ }
4637
+ },
4638
+ "description": "Represents metadata about the DID document resulting from a {@link Resolvable.resolve } operation."
4639
+ },
4640
+ "IParsedDID": {
4641
+ "type": "object",
4642
+ "properties": {
4643
+ "did": {
4644
+ "type": "string"
4645
+ },
4646
+ "didUrl": {
4647
+ "type": "string"
4648
+ },
4649
+ "method": {
4650
+ "type": "string"
4651
+ },
4652
+ "id": {
4653
+ "type": "string"
4654
+ },
4655
+ "path": {
4656
+ "type": "string"
4657
+ },
4658
+ "fragment": {
4659
+ "type": "string"
4660
+ },
4661
+ "query": {
4662
+ "type": "string"
4663
+ },
4664
+ "params": {
4665
+ "type": "object",
4666
+ "additionalProperties": {
4667
+ "type": "string"
4668
+ }
4669
+ }
4670
+ },
4671
+ "required": [
4672
+ "did",
4673
+ "didUrl",
4674
+ "method",
4675
+ "id"
4676
+ ]
4677
+ },
4678
+ "X509ValidationResult": {
4679
+ "type": "object",
4680
+ "properties": {
4681
+ "error": {
4682
+ "type": "boolean"
4683
+ },
4684
+ "critical": {
4685
+ "type": "boolean"
4686
+ },
4687
+ "message": {
4688
+ "type": "string"
4689
+ },
4690
+ "verificationTime": {
4691
+ "type": "string",
4692
+ "format": "date-time"
4693
+ },
4694
+ "certificateChain": {
4695
+ "type": "array",
4696
+ "items": {
4697
+ "$ref": "#/components/schemas/CertificateInfo"
4698
+ }
4699
+ },
4700
+ "client": {
4701
+ "type": "object",
4702
+ "properties": {
4703
+ "clientId": {
4704
+ "type": "string"
4705
+ },
4706
+ "clientIdScheme": {
4707
+ "$ref": "#/components/schemas/ClientIdScheme"
4708
+ }
4709
+ },
4710
+ "required": [
4711
+ "clientId",
4712
+ "clientIdScheme"
4713
+ ]
4714
+ }
4715
+ },
4716
+ "required": [
4717
+ "error",
4718
+ "critical",
4719
+ "message",
4720
+ "verificationTime"
4721
+ ]
4722
+ },
4723
+ "CertificateInfo": {
4724
+ "type": "object",
4725
+ "properties": {
4726
+ "certificate": {},
4727
+ "notBefore": {
4728
+ "type": "string",
4729
+ "format": "date-time"
4730
+ },
4731
+ "notAfter": {
4732
+ "type": "string",
4733
+ "format": "date-time"
4734
+ },
4735
+ "publicKeyJWK": {},
4736
+ "issuer": {
4737
+ "type": "object",
4738
+ "properties": {
4739
+ "dn": {
4740
+ "$ref": "#/components/schemas/DNInfo"
4741
+ }
4742
+ },
4743
+ "required": [
4744
+ "dn"
4745
+ ]
4746
+ },
4747
+ "subject": {
4748
+ "type": "object",
4749
+ "properties": {
4750
+ "dn": {
4751
+ "$ref": "#/components/schemas/DNInfo"
4752
+ },
4753
+ "subjectAlternativeNames": {
4754
+ "type": "array",
4755
+ "items": {
4756
+ "$ref": "#/components/schemas/SubjectAlternativeName"
4757
+ }
4758
+ }
4759
+ },
4760
+ "required": [
4761
+ "dn",
4762
+ "subjectAlternativeNames"
4763
+ ]
4764
+ }
4765
+ },
4766
+ "required": [
4767
+ "notBefore",
4768
+ "notAfter",
4769
+ "issuer",
4770
+ "subject"
4771
+ ]
4772
+ },
4773
+ "DNInfo": {
4774
+ "type": "object",
4775
+ "properties": {
4776
+ "DN": {
4777
+ "type": "string"
4778
+ },
4779
+ "attributes": {
4780
+ "type": "object",
4781
+ "additionalProperties": {
4782
+ "type": "string"
4783
+ }
4784
+ }
4785
+ },
4786
+ "required": [
4787
+ "DN",
4788
+ "attributes"
4789
+ ]
4790
+ },
4791
+ "SubjectAlternativeName": {
4792
+ "type": "object",
4793
+ "properties": {
4794
+ "value": {
4795
+ "type": "string"
4796
+ },
4797
+ "type": {
4798
+ "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
4799
+ }
4800
+ },
4801
+ "required": [
4802
+ "value",
4803
+ "type"
4804
+ ]
4805
+ },
4806
+ "SubjectAlternativeGeneralName": {
4807
+ "type": "number",
4808
+ "enum": [
4809
+ 1,
4810
+ 2,
4811
+ 6,
4812
+ 7
4813
+ ],
4814
+ "description": "otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER }"
4815
+ },
4816
+ "ExternalIdentifierX5cResult": {
4817
+ "type": "object",
4818
+ "properties": {
4819
+ "method": {
4820
+ "type": "string",
4821
+ "const": "x5c"
4822
+ },
4823
+ "jwks": {
4824
+ "type": "array",
4825
+ "items": {
4826
+ "$ref": "#/components/schemas/ExternalJwkInfo"
4827
+ }
4828
+ },
4829
+ "x5c": {
4830
+ "type": "array",
4831
+ "items": {
4832
+ "type": "string"
4833
+ }
4834
+ },
4835
+ "issuerJWK": {
4836
+ "$ref": "#/components/schemas/JWK"
4837
+ },
4838
+ "verificationResult": {
4839
+ "$ref": "#/components/schemas/X509ValidationResult"
4840
+ },
4841
+ "certificates": {
4842
+ "type": "array",
4843
+ "items": {}
4844
+ }
4845
+ },
4846
+ "required": [
4847
+ "certificates",
4848
+ "issuerJWK",
4849
+ "jwks",
4850
+ "method",
4851
+ "x5c"
4852
+ ]
4853
+ },
4854
+ "JweAlg": {
4855
+ "type": "string",
4856
+ "enum": [
4857
+ "RSA1_5",
4858
+ "RSA-OAEP",
4859
+ "RSA-OAEP-256",
4860
+ "A128KW",
4861
+ "A192KW",
4862
+ "A256KW",
4863
+ "dir",
4864
+ "ECDH-ES",
4865
+ "ECDH-ES+A128KW",
4866
+ "ECDH-ES+A192KW",
4867
+ "ECDH-ES+A256KW",
4868
+ "A128GCMKW",
4869
+ "A192GCMKW",
4870
+ "A256GCMKW",
4871
+ "PBES2-HS256+A128KW",
4872
+ "PBES2-HS384+A192KW",
4873
+ "PBES2-HS512+A256KW"
4874
+ ]
4875
+ },
4876
+ "JweEnc": {
4877
+ "type": "string",
4878
+ "enum": [
4879
+ "A128CBC-HS256",
4880
+ "A192CBC-HS384",
4881
+ "A256CBC-HS512",
4882
+ "A128GCM",
4883
+ "A192GCM",
4884
+ "A256GCM"
4885
+ ]
4886
+ },
4887
+ "PreparedJwsObject": {
4888
+ "type": "object",
4889
+ "properties": {
4890
+ "jws": {
4891
+ "$ref": "#/components/schemas/PreparedJws"
4892
+ },
4893
+ "b64": {
4894
+ "type": "object",
4895
+ "properties": {
4896
+ "payload": {
4897
+ "type": "string"
4898
+ },
4899
+ "protectedHeader": {
4900
+ "type": "string"
4901
+ }
4902
+ },
4903
+ "required": [
4904
+ "payload",
4905
+ "protectedHeader"
4906
+ ]
4907
+ },
4908
+ "identifier": {
4909
+ "$ref": "#/components/schemas/ManagedIdentifierResult"
4910
+ }
4911
+ },
4912
+ "required": [
4913
+ "jws",
4914
+ "b64",
4915
+ "identifier"
4916
+ ]
4917
+ },
4918
+ "PreparedJws": {
4919
+ "type": "object",
4920
+ "properties": {
4921
+ "protectedHeader": {
4922
+ "$ref": "#/components/schemas/JwsHeader"
4923
+ },
4924
+ "payload": {
4925
+ "type": "object",
4926
+ "properties": {
4927
+ "BYTES_PER_ELEMENT": {
4928
+ "type": "number"
4929
+ },
4930
+ "buffer": {
4931
+ "anyOf": [
4932
+ {
4933
+ "type": "object",
4934
+ "properties": {
4935
+ "byteLength": {
4936
+ "type": "number"
4937
+ }
4938
+ },
4939
+ "required": [
4940
+ "byteLength"
4941
+ ]
4942
+ },
4943
+ {}
4944
+ ]
4945
+ },
4946
+ "byteLength": {
4947
+ "type": "number"
4948
+ },
4949
+ "byteOffset": {
4950
+ "type": "number"
4951
+ },
4952
+ "length": {
4953
+ "type": "number"
4954
+ }
4955
+ },
4956
+ "required": [
4957
+ "BYTES_PER_ELEMENT",
4958
+ "buffer",
4959
+ "byteLength",
4960
+ "byteOffset",
4961
+ "length"
4962
+ ],
4963
+ "additionalProperties": {
4964
+ "type": "number"
4965
+ }
4966
+ },
4967
+ "unprotectedHeader": {
4968
+ "$ref": "#/components/schemas/JwsHeader"
4969
+ },
4970
+ "existingSignatures": {
4971
+ "type": "array",
4972
+ "items": {
4973
+ "$ref": "#/components/schemas/JwsJsonSignature"
4974
+ }
4975
+ }
4976
+ },
4977
+ "required": [
4978
+ "protectedHeader",
4979
+ "payload"
4980
+ ]
4981
+ },
4982
+ "ManagedIdentifierResult": {
4983
+ "anyOf": [
4984
+ {
4985
+ "type": "object",
4986
+ "properties": {
4987
+ "jwk": {
4988
+ "$ref": "#/components/schemas/JWK"
4989
+ },
4990
+ "jwkThumbprint": {
4991
+ "type": "string"
4992
+ },
4993
+ "kmsKeyRef": {
4994
+ "type": "string"
4995
+ },
4996
+ "method": {
4997
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
4998
+ },
4999
+ "opts": {
5000
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5001
+ },
5002
+ "key": {
5003
+ "$ref": "#/components/schemas/IKey"
5004
+ },
5005
+ "kid": {
5006
+ "type": "string"
5007
+ },
5008
+ "issuer": {
5009
+ "type": "string"
5010
+ },
5011
+ "clientId": {
5012
+ "type": "string"
5013
+ },
5014
+ "clientIdScheme": {
5015
+ "anyOf": [
5016
+ {
5017
+ "$ref": "#/components/schemas/ClientIdScheme"
5018
+ },
5019
+ {
5020
+ "type": "string",
5021
+ "const": "did"
5022
+ },
5023
+ {
5024
+ "type": "string"
5025
+ }
5026
+ ]
5027
+ },
5028
+ "identifier": {
5029
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5030
+ },
5031
+ "x5c": {
5032
+ "type": "array",
5033
+ "items": {
5034
+ "type": "string"
5035
+ }
5036
+ },
5037
+ "certificate": {}
5038
+ },
5039
+ "required": [
5040
+ "certificate",
5041
+ "identifier",
5042
+ "jwk",
5043
+ "jwkThumbprint",
5044
+ "key",
5045
+ "kmsKeyRef",
5046
+ "method",
5047
+ "opts",
5048
+ "x5c"
5049
+ ]
5050
+ },
5051
+ {
5052
+ "type": "object",
5053
+ "properties": {
5054
+ "jwk": {
5055
+ "$ref": "#/components/schemas/JWK"
5056
+ },
5057
+ "jwkThumbprint": {
5058
+ "type": "string"
5059
+ },
5060
+ "kmsKeyRef": {
5061
+ "type": "string"
5062
+ },
5063
+ "method": {
5064
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5065
+ },
5066
+ "opts": {
5067
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5068
+ },
5069
+ "key": {
5070
+ "$ref": "#/components/schemas/IKey"
5071
+ },
5072
+ "kid": {
5073
+ "type": "string"
5074
+ },
5075
+ "issuer": {
5076
+ "type": "string"
5077
+ },
5078
+ "clientId": {
5079
+ "type": "string"
5080
+ },
5081
+ "clientIdScheme": {
5082
+ "anyOf": [
5083
+ {
5084
+ "$ref": "#/components/schemas/ClientIdScheme"
5085
+ },
5086
+ {
5087
+ "type": "string",
5088
+ "const": "did"
5089
+ },
5090
+ {
5091
+ "type": "string"
5092
+ }
5093
+ ]
5094
+ },
5095
+ "identifier": {
5096
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5097
+ },
5098
+ "did": {
5099
+ "type": "string"
5100
+ },
5101
+ "keys": {
5102
+ "type": "array",
5103
+ "items": {
5104
+ "$ref": "#/components/schemas/IKey"
5105
+ }
5106
+ },
5107
+ "verificationMethodSection": {
5108
+ "$ref": "#/components/schemas/DIDDocumentSection"
5109
+ },
5110
+ "controllerKeyId": {
5111
+ "type": "string"
5112
+ }
5113
+ },
5114
+ "required": [
5115
+ "did",
5116
+ "identifier",
5117
+ "issuer",
5118
+ "jwk",
5119
+ "jwkThumbprint",
5120
+ "key",
5121
+ "keys",
5122
+ "kid",
5123
+ "kmsKeyRef",
5124
+ "method",
5125
+ "opts"
5126
+ ]
5127
+ },
5128
+ {
5129
+ "type": "object",
5130
+ "properties": {
5131
+ "jwk": {
5132
+ "$ref": "#/components/schemas/JWK"
5133
+ },
5134
+ "jwkThumbprint": {
5135
+ "type": "string"
5136
+ },
5137
+ "kmsKeyRef": {
5138
+ "type": "string"
5139
+ },
5140
+ "method": {
5141
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5142
+ },
5143
+ "opts": {
5144
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5145
+ },
5146
+ "key": {
5147
+ "$ref": "#/components/schemas/IKey"
5148
+ },
5149
+ "kid": {
5150
+ "type": "string"
5151
+ },
5152
+ "issuer": {
5153
+ "type": "string"
5154
+ },
5155
+ "clientId": {
5156
+ "type": "string"
5157
+ },
5158
+ "clientIdScheme": {
5159
+ "anyOf": [
5160
+ {
5161
+ "$ref": "#/components/schemas/ClientIdScheme"
5162
+ },
5163
+ {
5164
+ "type": "string",
5165
+ "const": "did"
5166
+ },
5167
+ {
5168
+ "type": "string"
5169
+ }
5170
+ ]
5171
+ },
5172
+ "identifier": {
5173
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5174
+ }
5175
+ },
5176
+ "required": [
5177
+ "identifier",
5178
+ "jwk",
5179
+ "jwkThumbprint",
5180
+ "key",
5181
+ "kmsKeyRef",
5182
+ "method",
5183
+ "opts"
5184
+ ]
5185
+ },
5186
+ {
5187
+ "type": "object",
5188
+ "properties": {
5189
+ "jwk": {
5190
+ "$ref": "#/components/schemas/JWK"
5191
+ },
5192
+ "jwkThumbprint": {
5193
+ "type": "string"
5194
+ },
5195
+ "kmsKeyRef": {
5196
+ "type": "string"
5197
+ },
5198
+ "method": {
5199
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5200
+ },
5201
+ "opts": {
5202
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5203
+ },
5204
+ "key": {
5205
+ "$ref": "#/components/schemas/IKey"
5206
+ },
5207
+ "kid": {
5208
+ "type": "string"
5209
+ },
5210
+ "issuer": {
5211
+ "type": "string"
5212
+ },
5213
+ "clientId": {
5214
+ "type": "string"
5215
+ },
5216
+ "clientIdScheme": {
5217
+ "anyOf": [
5218
+ {
5219
+ "$ref": "#/components/schemas/ClientIdScheme"
5220
+ },
5221
+ {
5222
+ "type": "string",
5223
+ "const": "did"
5224
+ },
5225
+ {
5226
+ "type": "string"
5227
+ }
5228
+ ]
5229
+ },
5230
+ "identifier": {
5231
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5232
+ }
5233
+ },
5234
+ "required": [
5235
+ "identifier",
5236
+ "jwk",
5237
+ "jwkThumbprint",
5238
+ "key",
5239
+ "kid",
5240
+ "kmsKeyRef",
5241
+ "method",
5242
+ "opts"
5243
+ ]
5244
+ },
5245
+ {
5246
+ "type": "object",
5247
+ "properties": {
5248
+ "jwk": {
5249
+ "$ref": "#/components/schemas/JWK"
5250
+ },
5251
+ "jwkThumbprint": {
5252
+ "type": "string"
5253
+ },
5254
+ "kmsKeyRef": {
5255
+ "type": "string"
5256
+ },
5257
+ "method": {
5258
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5259
+ },
5260
+ "opts": {
5261
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5262
+ },
5263
+ "key": {
5264
+ "$ref": "#/components/schemas/IKey"
5265
+ },
5266
+ "kid": {
5267
+ "type": "string"
5268
+ },
5269
+ "issuer": {
5270
+ "type": "string"
5271
+ },
5272
+ "clientId": {
5273
+ "type": "string"
5274
+ },
5275
+ "clientIdScheme": {
5276
+ "anyOf": [
5277
+ {
5278
+ "$ref": "#/components/schemas/ClientIdScheme"
5279
+ },
5280
+ {
5281
+ "type": "string",
5282
+ "const": "did"
5283
+ },
5284
+ {
5285
+ "type": "string"
5286
+ }
5287
+ ]
5288
+ },
5289
+ "identifier": {
5290
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5291
+ }
5292
+ },
5293
+ "required": [
5294
+ "identifier",
5295
+ "jwk",
5296
+ "jwkThumbprint",
5297
+ "key",
5298
+ "kmsKeyRef",
5299
+ "method",
5300
+ "opts"
5301
+ ]
5302
+ },
5303
+ {
5304
+ "type": "object",
5305
+ "properties": {
5306
+ "jwk": {
5307
+ "$ref": "#/components/schemas/JWK"
5308
+ },
5309
+ "jwkThumbprint": {
5310
+ "type": "string"
5311
+ },
5312
+ "kmsKeyRef": {
5313
+ "type": "string"
5314
+ },
5315
+ "method": {
5316
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5317
+ },
5318
+ "opts": {
5319
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5320
+ },
5321
+ "key": {
5322
+ "$ref": "#/components/schemas/IKey"
5323
+ },
5324
+ "kid": {
5325
+ "type": "string"
5326
+ },
5327
+ "issuer": {
5328
+ "type": "string"
5329
+ },
5330
+ "clientId": {
5331
+ "type": "string"
5332
+ },
5333
+ "clientIdScheme": {
5334
+ "anyOf": [
5335
+ {
5336
+ "$ref": "#/components/schemas/ClientIdScheme"
5337
+ },
5338
+ {
5339
+ "type": "string",
5340
+ "const": "did"
5341
+ },
5342
+ {
5343
+ "type": "string"
5344
+ }
5345
+ ]
5346
+ },
5347
+ "identifier": {
5348
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5349
+ }
5350
+ },
5351
+ "required": [
5352
+ "identifier",
5353
+ "jwk",
5354
+ "jwkThumbprint",
5355
+ "key",
5356
+ "kmsKeyRef",
5357
+ "method",
5358
+ "opts"
5359
+ ]
5360
+ },
5361
+ {
5362
+ "type": "object",
5363
+ "properties": {
5364
+ "jwk": {
5365
+ "$ref": "#/components/schemas/JWK"
5366
+ },
5367
+ "jwkThumbprint": {
5368
+ "type": "string"
5369
+ },
5370
+ "kmsKeyRef": {
5371
+ "type": "string"
5372
+ },
5373
+ "method": {
5374
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
5375
+ },
5376
+ "opts": {
5377
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
5378
+ },
5379
+ "key": {
5380
+ "$ref": "#/components/schemas/IKey"
5381
+ },
5382
+ "kid": {
5383
+ "type": "string"
5384
+ },
5385
+ "issuer": {
5386
+ "type": "string"
5387
+ },
5388
+ "clientId": {
5389
+ "type": "string"
5390
+ },
5391
+ "clientIdScheme": {
5392
+ "anyOf": [
5393
+ {
5394
+ "$ref": "#/components/schemas/ClientIdScheme"
5395
+ },
5396
+ {
5397
+ "type": "string",
5398
+ "const": "did"
5399
+ },
5400
+ {
5401
+ "type": "string"
5402
+ }
5403
+ ]
5404
+ },
5405
+ "identifier": {
5406
+ "$ref": "#/components/schemas/ManagedIdentifierType"
5407
+ }
5408
+ },
5409
+ "required": [
5410
+ "identifier",
5411
+ "jwk",
5412
+ "jwkThumbprint",
5413
+ "key",
5414
+ "kmsKeyRef",
5415
+ "method",
5416
+ "opts"
5417
+ ]
5418
+ }
5419
+ ]
5420
+ },
5421
+ "VerifyJwsArgs": {
5422
+ "type": "object",
5423
+ "properties": {
5424
+ "jws": {
5425
+ "$ref": "#/components/schemas/Jws"
5426
+ },
5427
+ "jwk": {
5428
+ "$ref": "#/components/schemas/JWK"
5429
+ },
5430
+ "opts": {
5431
+ "type": "object",
5432
+ "properties": {
5433
+ "x5c": {
5434
+ "type": "object",
5435
+ "properties": {
5436
+ "trustRootWhenNoAnchors": {
5437
+ "type": "boolean"
5438
+ },
5439
+ "allowSingleNoCAChainElement": {
5440
+ "type": "boolean"
5441
+ },
5442
+ "blindlyTrustedAnchors": {
5443
+ "allOf": [
5444
+ {
5445
+ "type": "array",
5446
+ "items": {
5447
+ "type": "string"
5448
+ }
5449
+ },
5450
+ {
5451
+ "type": "object",
5452
+ "properties": {}
5453
+ }
5454
+ ]
5455
+ },
5456
+ "client": {
5457
+ "type": "object",
5458
+ "properties": {
5459
+ "clientId": {
5460
+ "type": "string"
5461
+ },
5462
+ "clientIdScheme": {
5463
+ "$ref": "#/components/schemas/ClientIdScheme"
5464
+ }
5465
+ },
5466
+ "required": [
5467
+ "clientId",
5468
+ "clientIdScheme"
5469
+ ]
5470
+ },
5471
+ "method": {
5472
+ "type": "object",
5473
+ "properties": {}
5474
+ },
5475
+ "verify": {
5476
+ "type": "boolean"
5477
+ },
5478
+ "verificationTime": {
5479
+ "type": "string"
5480
+ },
5481
+ "trustAnchors": {
5482
+ "allOf": [
5483
+ {
5484
+ "type": "array",
5485
+ "items": {
5486
+ "type": "string"
5487
+ }
5488
+ },
5489
+ {
5490
+ "type": "object",
5491
+ "properties": {}
5492
+ }
5493
+ ]
5494
+ }
5495
+ }
3883
5496
  },
3884
- {
3885
- "type": "array",
3886
- "items": {
3887
- "$ref": "#/components/schemas/ServiceEndpoint"
5497
+ "did": {
5498
+ "type": "object",
5499
+ "properties": {
5500
+ "method": {
5501
+ "type": "object",
5502
+ "properties": {}
5503
+ },
5504
+ "noVerificationMethodFallback": {
5505
+ "type": "boolean"
5506
+ },
5507
+ "vmRelationship": {
5508
+ "anyOf": [
5509
+ {
5510
+ "type": "object",
5511
+ "properties": {}
5512
+ },
5513
+ {
5514
+ "type": "object",
5515
+ "properties": {}
5516
+ },
5517
+ {
5518
+ "type": "object",
5519
+ "properties": {}
5520
+ },
5521
+ {
5522
+ "type": "object",
5523
+ "properties": {}
5524
+ },
5525
+ {
5526
+ "type": "object",
5527
+ "properties": {}
5528
+ },
5529
+ {
5530
+ "type": "object",
5531
+ "properties": {}
5532
+ },
5533
+ {
5534
+ "type": "object",
5535
+ "properties": {}
5536
+ },
5537
+ {
5538
+ "type": "object",
5539
+ "properties": {}
5540
+ }
5541
+ ]
5542
+ },
5543
+ "localResolution": {
5544
+ "type": "boolean"
5545
+ },
5546
+ "uniresolverResolution": {
5547
+ "type": "boolean"
5548
+ },
5549
+ "resolverResolution": {
5550
+ "type": "boolean"
5551
+ }
3888
5552
  }
3889
5553
  }
3890
- ]
5554
+ }
3891
5555
  }
3892
5556
  },
3893
5557
  "required": [
3894
- "id",
3895
- "type",
3896
- "serviceEndpoint"
3897
- ],
3898
- "description": "Represents a Service entry in a {@link https://www.w3.org/TR/did-core/#did-document-properties | DID document } ."
5558
+ "jws"
5559
+ ]
3899
5560
  },
3900
- "ServiceEndpoint": {
5561
+ "Jws": {
3901
5562
  "anyOf": [
3902
5563
  {
3903
- "type": "string"
5564
+ "$ref": "#/components/schemas/JwsCompact"
3904
5565
  },
3905
5566
  {
3906
- "type": "object"
5567
+ "$ref": "#/components/schemas/JwsJsonFlattened"
5568
+ },
5569
+ {
5570
+ "$ref": "#/components/schemas/JwsJsonGeneral"
3907
5571
  }
3908
- ],
3909
- "description": "Represents an endpoint of a Service entry in a DID document."
5572
+ ]
3910
5573
  },
3911
- "DidDocumentJwks": {
5574
+ "IJwsValidationResult": {
3912
5575
  "type": "object",
3913
5576
  "properties": {
3914
- "verificationMethod": {
3915
- "type": "array",
3916
- "items": {
3917
- "$ref": "#/components/schemas/JWK"
3918
- }
5577
+ "jws": {
5578
+ "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
3919
5579
  },
3920
- "authentication": {
3921
- "type": "array",
3922
- "items": {
3923
- "$ref": "#/components/schemas/JWK"
3924
- }
5580
+ "name": {
5581
+ "type": "string",
5582
+ "description": "The name of the validation or its subsystem. Mainly used for information purposes. Not assumed to be unique"
3925
5583
  },
3926
- "assertionMethod": {
3927
- "type": "array",
3928
- "items": {
3929
- "$ref": "#/components/schemas/JWK"
3930
- }
5584
+ "error": {
5585
+ "type": "boolean",
5586
+ "description": "Whether the validation was successful or not"
3931
5587
  },
3932
- "keyAgreement": {
3933
- "type": "array",
3934
- "items": {
3935
- "$ref": "#/components/schemas/JWK"
3936
- }
5588
+ "critical": {
5589
+ "type": "boolean",
5590
+ "description": "Whether an error can be ignored or not (up to processing logic)"
3937
5591
  },
3938
- "capabilityInvocation": {
3939
- "type": "array",
3940
- "items": {
3941
- "$ref": "#/components/schemas/JWK"
3942
- }
5592
+ "message": {
5593
+ "type": "string",
5594
+ "description": "Any status/info message about the validation"
3943
5595
  },
3944
- "capabilityDelegation": {
3945
- "type": "array",
3946
- "items": {
3947
- "$ref": "#/components/schemas/JWK"
3948
- }
5596
+ "verificationTime": {
5597
+ "type": "string",
5598
+ "format": "date-time",
5599
+ "description": "The date and time of the validation"
3949
5600
  }
3950
5601
  },
3951
5602
  "required": [
3952
- "verificationMethod",
3953
- "authentication",
3954
- "assertionMethod",
3955
- "keyAgreement",
3956
- "capabilityInvocation",
3957
- "capabilityDelegation"
5603
+ "critical",
5604
+ "error",
5605
+ "jws",
5606
+ "message",
5607
+ "name",
5608
+ "verificationTime"
3958
5609
  ]
3959
5610
  },
3960
- "DIDResolutionMetadata": {
3961
- "type": "object",
3962
- "properties": {
3963
- "contentType": {
3964
- "type": "string"
3965
- },
3966
- "error": {
3967
- "type": "string"
3968
- }
3969
- },
3970
- "description": "Encapsulates the resolution metadata resulting from a {@link Resolvable.resolve } operation."
3971
- },
3972
- "DIDDocumentMetadata": {
5611
+ "JwsJsonGeneralWithIdentifiers": {
3973
5612
  "type": "object",
3974
5613
  "properties": {
3975
- "created": {
3976
- "type": "string"
3977
- },
3978
- "updated": {
3979
- "type": "string"
3980
- },
3981
- "deactivated": {
3982
- "type": "boolean"
3983
- },
3984
- "versionId": {
3985
- "type": "string"
3986
- },
3987
- "nextUpdate": {
3988
- "type": "string"
3989
- },
3990
- "nextVersionId": {
3991
- "type": "string"
3992
- },
3993
- "equivalentId": {
5614
+ "payload": {
3994
5615
  "type": "string"
3995
5616
  },
3996
- "canonicalId": {
3997
- "type": "string"
5617
+ "signatures": {
5618
+ "type": "array",
5619
+ "items": {
5620
+ "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
5621
+ }
3998
5622
  }
3999
5623
  },
4000
- "description": "Represents metadata about the DID document resulting from a {@link Resolvable.resolve } operation."
5624
+ "required": [
5625
+ "payload",
5626
+ "signatures"
5627
+ ]
4001
5628
  },
4002
- "IParsedDID": {
5629
+ "JwsJsonSignatureWithIdentifier": {
4003
5630
  "type": "object",
4004
5631
  "properties": {
4005
- "did": {
4006
- "type": "string"
4007
- },
4008
- "didUrl": {
4009
- "type": "string"
4010
- },
4011
- "method": {
4012
- "type": "string"
4013
- },
4014
- "id": {
4015
- "type": "string"
4016
- },
4017
- "path": {
5632
+ "protected": {
4018
5633
  "type": "string"
4019
5634
  },
4020
- "fragment": {
4021
- "type": "string"
5635
+ "header": {
5636
+ "$ref": "#/components/schemas/JwsHeader"
4022
5637
  },
4023
- "query": {
5638
+ "signature": {
4024
5639
  "type": "string"
4025
5640
  },
4026
- "params": {
4027
- "type": "object",
4028
- "additionalProperties": {
4029
- "type": "string"
4030
- }
5641
+ "identifier": {
5642
+ "$ref": "#/components/schemas/ExternalIdentifierResult"
4031
5643
  }
4032
5644
  },
4033
5645
  "required": [
4034
- "did",
4035
- "didUrl",
4036
- "method",
4037
- "id"
5646
+ "identifier",
5647
+ "protected",
5648
+ "signature"
4038
5649
  ]
4039
5650
  },
4040
- "X509ValidationResult": {
4041
- "type": "object",
4042
- "properties": {
4043
- "error": {
4044
- "type": "boolean"
4045
- },
4046
- "critical": {
4047
- "type": "boolean"
4048
- },
4049
- "message": {
4050
- "type": "string"
4051
- },
4052
- "verificationTime": {
4053
- "type": "string",
4054
- "format": "date-time"
4055
- },
4056
- "certificateChain": {
4057
- "type": "array",
4058
- "items": {
4059
- "$ref": "#/components/schemas/CertificateInfo"
4060
- }
4061
- },
4062
- "client": {
5651
+ "ExternalIdentifierResult": {
5652
+ "anyOf": [
5653
+ {
4063
5654
  "type": "object",
4064
5655
  "properties": {
4065
- "clientId": {
5656
+ "method": {
5657
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
5658
+ },
5659
+ "jwks": {
5660
+ "type": "array",
5661
+ "items": {
5662
+ "$ref": "#/components/schemas/ExternalJwkInfo"
5663
+ }
5664
+ },
5665
+ "did": {
4066
5666
  "type": "string"
4067
5667
  },
4068
- "clientIdScheme": {
4069
- "$ref": "#/components/schemas/ClientIdScheme"
5668
+ "didDocument": {
5669
+ "$ref": "#/components/schemas/DIDDocument"
5670
+ },
5671
+ "didJwks": {
5672
+ "$ref": "#/components/schemas/DidDocumentJwks"
5673
+ },
5674
+ "didResolutionResult": {
5675
+ "type": "object",
5676
+ "properties": {
5677
+ "@context": {
5678
+ "anyOf": [
5679
+ {
5680
+ "type": "string",
5681
+ "const": "https://w3id.org/did-resolution/v1"
5682
+ },
5683
+ {
5684
+ "type": "string"
5685
+ },
5686
+ {
5687
+ "type": "array",
5688
+ "items": {
5689
+ "type": "string"
5690
+ }
5691
+ }
5692
+ ]
5693
+ },
5694
+ "didResolutionMetadata": {
5695
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
5696
+ },
5697
+ "didDocumentMetadata": {
5698
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
5699
+ }
5700
+ },
5701
+ "required": [
5702
+ "didResolutionMetadata",
5703
+ "didDocumentMetadata"
5704
+ ]
5705
+ },
5706
+ "didParsed": {
5707
+ "$ref": "#/components/schemas/IParsedDID"
4070
5708
  }
4071
5709
  },
4072
5710
  "required": [
4073
- "clientId",
4074
- "clientIdScheme"
5711
+ "did",
5712
+ "didParsed",
5713
+ "didResolutionResult",
5714
+ "jwks",
5715
+ "method"
4075
5716
  ]
4076
- }
4077
- },
4078
- "required": [
4079
- "error",
4080
- "critical",
4081
- "message",
4082
- "verificationTime"
4083
- ]
4084
- },
4085
- "CertificateInfo": {
4086
- "type": "object",
4087
- "properties": {
4088
- "certificate": {},
4089
- "notBefore": {
4090
- "type": "string",
4091
- "format": "date-time"
4092
- },
4093
- "notAfter": {
4094
- "type": "string",
4095
- "format": "date-time"
4096
5717
  },
4097
- "publicKeyJWK": {},
4098
- "issuer": {
5718
+ {
4099
5719
  "type": "object",
4100
5720
  "properties": {
4101
- "dn": {
4102
- "$ref": "#/components/schemas/DNInfo"
5721
+ "method": {
5722
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
5723
+ },
5724
+ "jwks": {
5725
+ "type": "array",
5726
+ "items": {
5727
+ "$ref": "#/components/schemas/ExternalJwkInfo"
5728
+ }
5729
+ },
5730
+ "x5c": {
5731
+ "type": "array",
5732
+ "items": {
5733
+ "type": "string"
5734
+ }
5735
+ },
5736
+ "issuerJWK": {
5737
+ "$ref": "#/components/schemas/JWK"
5738
+ },
5739
+ "verificationResult": {
5740
+ "$ref": "#/components/schemas/X509ValidationResult"
5741
+ },
5742
+ "certificates": {
5743
+ "type": "array",
5744
+ "items": {}
4103
5745
  }
4104
5746
  },
4105
5747
  "required": [
4106
- "dn"
5748
+ "certificates",
5749
+ "issuerJWK",
5750
+ "jwks",
5751
+ "method",
5752
+ "x5c"
4107
5753
  ]
4108
5754
  },
4109
- "subject": {
5755
+ {
4110
5756
  "type": "object",
4111
5757
  "properties": {
4112
- "dn": {
4113
- "$ref": "#/components/schemas/DNInfo"
5758
+ "method": {
5759
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
4114
5760
  },
4115
- "subjectAlternativeNames": {
5761
+ "jwks": {
4116
5762
  "type": "array",
4117
5763
  "items": {
4118
- "$ref": "#/components/schemas/SubjectAlternativeName"
5764
+ "$ref": "#/components/schemas/ExternalJwkInfo"
4119
5765
  }
5766
+ },
5767
+ "jwk": {
5768
+ "$ref": "#/components/schemas/JWK"
5769
+ },
5770
+ "x5c": {
5771
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
4120
5772
  }
4121
5773
  },
4122
5774
  "required": [
4123
- "dn",
4124
- "subjectAlternativeNames"
5775
+ "jwk",
5776
+ "jwks",
5777
+ "method"
4125
5778
  ]
4126
- }
4127
- },
4128
- "required": [
4129
- "notBefore",
4130
- "notAfter",
4131
- "issuer",
4132
- "subject"
4133
- ]
4134
- },
4135
- "DNInfo": {
4136
- "type": "object",
4137
- "properties": {
4138
- "DN": {
4139
- "type": "string"
4140
5779
  },
4141
- "attributes": {
5780
+ {
4142
5781
  "type": "object",
4143
- "additionalProperties": {
4144
- "type": "string"
4145
- }
4146
- }
4147
- },
4148
- "required": [
4149
- "DN",
4150
- "attributes"
4151
- ]
4152
- },
4153
- "SubjectAlternativeName": {
4154
- "type": "object",
4155
- "properties": {
4156
- "value": {
4157
- "type": "string"
4158
- },
4159
- "type": {
4160
- "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
4161
- }
4162
- },
4163
- "required": [
4164
- "value",
4165
- "type"
4166
- ]
4167
- },
4168
- "SubjectAlternativeGeneralName": {
4169
- "type": "number",
4170
- "enum": [
4171
- 1,
4172
- 2,
4173
- 6,
4174
- 7
4175
- ],
4176
- "description": "otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER }"
4177
- },
4178
- "ExternalIdentifierX5cResult": {
4179
- "type": "object",
4180
- "properties": {
4181
- "method": {
4182
- "type": "string",
4183
- "const": "x5c"
4184
- },
4185
- "jwks": {
4186
- "type": "array",
4187
- "items": {
4188
- "$ref": "#/components/schemas/ExternalJwkInfo"
4189
- }
4190
- },
4191
- "x5c": {
4192
- "type": "array",
4193
- "items": {
4194
- "type": "string"
4195
- }
4196
- },
4197
- "issuerJWK": {
4198
- "$ref": "#/components/schemas/JWK"
4199
- },
4200
- "verificationResult": {
4201
- "$ref": "#/components/schemas/X509ValidationResult"
4202
- },
4203
- "certificates": {
4204
- "type": "array",
4205
- "items": {}
5782
+ "properties": {
5783
+ "method": {
5784
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
5785
+ },
5786
+ "jwks": {
5787
+ "type": "array",
5788
+ "items": {
5789
+ "$ref": "#/components/schemas/ExternalJwkInfo"
5790
+ }
5791
+ },
5792
+ "coseKey": {
5793
+ "$ref": "#/components/schemas/ICoseKeyJson"
5794
+ },
5795
+ "x5c": {
5796
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
5797
+ }
5798
+ },
5799
+ "required": [
5800
+ "coseKey",
5801
+ "jwks",
5802
+ "method"
5803
+ ]
4206
5804
  }
4207
- },
4208
- "required": [
4209
- "certificates",
4210
- "issuerJWK",
4211
- "jwks",
4212
- "method",
4213
- "x5c"
4214
5805
  ]
4215
5806
  }
4216
5807
  },
@@ -4221,7 +5812,7 @@
4221
5812
  "$ref": "#/components/schemas/CreateJwsCompactArgs"
4222
5813
  },
4223
5814
  "returnType": {
4224
- "$ref": "#/components/schemas/JwsCompactResult"
5815
+ "$ref": "#/components/schemas/JwtCompactResult"
4225
5816
  }
4226
5817
  },
4227
5818
  "jwtCreateJwsJsonFlattenedSignature": {
@@ -4242,6 +5833,24 @@
4242
5833
  "$ref": "#/components/schemas/JwsJsonGeneral"
4243
5834
  }
4244
5835
  },
5836
+ "jwtDecryptJweCompactJwt": {
5837
+ "description": "",
5838
+ "arguments": {
5839
+ "$ref": "#/components/schemas/DecryptJweCompactJwtArgs"
5840
+ },
5841
+ "returnType": {
5842
+ "$ref": "#/components/schemas/JwtCompactResult"
5843
+ }
5844
+ },
5845
+ "jwtEncryptJweCompactJwt": {
5846
+ "description": "",
5847
+ "arguments": {
5848
+ "$ref": "#/components/schemas/EncryptJweCompactJwtArgs"
5849
+ },
5850
+ "returnType": {
5851
+ "$ref": "#/components/schemas/JwtCompactResult"
5852
+ }
5853
+ },
4245
5854
  "jwtPrepareJws": {
4246
5855
  "description": "",
4247
5856
  "arguments": {