@sphereon/ssi-sdk-ext.jwt-service 0.24.1-next.111 → 0.24.1-next.148

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": {
@@ -461,7 +528,7 @@
461
528
  "const": "jwk"
462
529
  },
463
530
  "identifier": {
464
- "$ref": "#/components/schemas/ManagedIdentifierType"
531
+ "$ref": "#/components/schemas/JWK"
465
532
  },
466
533
  "kmsKeyRef": {
467
534
  "type": "string"
@@ -511,7 +578,10 @@
511
578
  "const": "x5c"
512
579
  },
513
580
  "identifier": {
514
- "$ref": "#/components/schemas/ManagedIdentifierType"
581
+ "type": "array",
582
+ "items": {
583
+ "type": "string"
584
+ }
515
585
  },
516
586
  "kmsKeyRef": {
517
587
  "type": "string"
@@ -561,7 +631,14 @@
561
631
  "const": "did"
562
632
  },
563
633
  "identifier": {
564
- "$ref": "#/components/schemas/ManagedIdentifierType"
634
+ "anyOf": [
635
+ {
636
+ "$ref": "#/components/schemas/IIdentifier"
637
+ },
638
+ {
639
+ "type": "string"
640
+ }
641
+ ]
565
642
  },
566
643
  "kmsKeyRef": {
567
644
  "type": "string"
@@ -626,7 +703,7 @@
626
703
  "const": "kid"
627
704
  },
628
705
  "identifier": {
629
- "$ref": "#/components/schemas/ManagedIdentifierType"
706
+ "type": "string"
630
707
  },
631
708
  "kmsKeyRef": {
632
709
  "type": "string"
@@ -676,7 +753,7 @@
676
753
  "const": "key"
677
754
  },
678
755
  "identifier": {
679
- "$ref": "#/components/schemas/ManagedIdentifierType"
756
+ "$ref": "#/components/schemas/IKey"
680
757
  },
681
758
  "kmsKeyRef": {
682
759
  "type": "string"
@@ -726,7 +803,57 @@
726
803
  "const": "cose_key"
727
804
  },
728
805
  "identifier": {
729
- "$ref": "#/components/schemas/ManagedIdentifierType"
806
+ "$ref": "#/components/schemas/ICoseKeyJson"
807
+ },
808
+ "kmsKeyRef": {
809
+ "type": "string"
810
+ },
811
+ "issuer": {
812
+ "type": "string"
813
+ },
814
+ "kid": {
815
+ "type": "string"
816
+ },
817
+ "clientId": {
818
+ "type": "string"
819
+ },
820
+ "clientIdScheme": {
821
+ "anyOf": [
822
+ {
823
+ "$ref": "#/components/schemas/ClientIdScheme"
824
+ },
825
+ {
826
+ "type": "string",
827
+ "const": "did"
828
+ },
829
+ {
830
+ "type": "string"
831
+ }
832
+ ]
833
+ }
834
+ },
835
+ "required": [
836
+ "identifier"
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"
730
857
  },
731
858
  "kmsKeyRef": {
732
859
  "type": "string"
@@ -779,12 +906,12 @@
779
906
  ]
780
907
  },
781
908
  "protectedHeader": {
782
- "$ref": "#/components/schemas/JwtHeader"
909
+ "$ref": "#/components/schemas/JwsHeader"
783
910
  },
784
911
  "payload": {
785
912
  "anyOf": [
786
913
  {
787
- "$ref": "#/components/schemas/JwtPayload"
914
+ "$ref": "#/components/schemas/JwsPayload"
788
915
  },
789
916
  {
790
917
  "type": "object",
@@ -1104,7 +1231,8 @@
1104
1231
  "x5c",
1105
1232
  "kid",
1106
1233
  "key",
1107
- "cose_key"
1234
+ "cose_key",
1235
+ "oid4vci-issuer"
1108
1236
  ]
1109
1237
  },
1110
1238
  "ManagedIdentifierOpts": {
@@ -1117,7 +1245,7 @@
1117
1245
  "const": "jwk"
1118
1246
  },
1119
1247
  "identifier": {
1120
- "$ref": "#/components/schemas/ManagedIdentifierType"
1248
+ "$ref": "#/components/schemas/JWK"
1121
1249
  },
1122
1250
  "kmsKeyRef": {
1123
1251
  "type": "string"
@@ -1158,7 +1286,10 @@
1158
1286
  "const": "x5c"
1159
1287
  },
1160
1288
  "identifier": {
1161
- "$ref": "#/components/schemas/ManagedIdentifierType"
1289
+ "type": "array",
1290
+ "items": {
1291
+ "type": "string"
1292
+ }
1162
1293
  },
1163
1294
  "kmsKeyRef": {
1164
1295
  "type": "string"
@@ -1199,7 +1330,14 @@
1199
1330
  "const": "did"
1200
1331
  },
1201
1332
  "identifier": {
1202
- "$ref": "#/components/schemas/ManagedIdentifierType"
1333
+ "anyOf": [
1334
+ {
1335
+ "$ref": "#/components/schemas/IIdentifier"
1336
+ },
1337
+ {
1338
+ "type": "string"
1339
+ }
1340
+ ]
1203
1341
  },
1204
1342
  "kmsKeyRef": {
1205
1343
  "type": "string"
@@ -1255,7 +1393,7 @@
1255
1393
  "const": "kid"
1256
1394
  },
1257
1395
  "identifier": {
1258
- "$ref": "#/components/schemas/ManagedIdentifierType"
1396
+ "type": "string"
1259
1397
  },
1260
1398
  "kmsKeyRef": {
1261
1399
  "type": "string"
@@ -1296,7 +1434,7 @@
1296
1434
  "const": "key"
1297
1435
  },
1298
1436
  "identifier": {
1299
- "$ref": "#/components/schemas/ManagedIdentifierType"
1437
+ "$ref": "#/components/schemas/IKey"
1300
1438
  },
1301
1439
  "kmsKeyRef": {
1302
1440
  "type": "string"
@@ -1337,7 +1475,7 @@
1337
1475
  "const": "cose_key"
1338
1476
  },
1339
1477
  "identifier": {
1340
- "$ref": "#/components/schemas/ManagedIdentifierType"
1478
+ "$ref": "#/components/schemas/ICoseKeyJson"
1341
1479
  },
1342
1480
  "kmsKeyRef": {
1343
1481
  "type": "string"
@@ -1369,34 +1507,56 @@
1369
1507
  "required": [
1370
1508
  "identifier"
1371
1509
  ]
1372
- }
1373
- ]
1374
- },
1375
- "ManagedIdentifierType": {
1376
- "anyOf": [
1377
- {
1378
- "$ref": "#/components/schemas/IIdentifier"
1379
- },
1380
- {
1381
- "type": "string"
1382
- },
1383
- {
1384
- "type": "array",
1385
- "items": {
1386
- "type": "string"
1387
- }
1388
- },
1389
- {
1390
- "$ref": "#/components/schemas/JWK"
1391
- },
1392
- {
1393
- "$ref": "#/components/schemas/IKey"
1394
1510
  },
1395
1511
  {
1396
- "$ref": "#/components/schemas/ICoseKeyJson"
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
+ ]
1397
1551
  }
1398
- ],
1399
- "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"
1552
+ ]
1553
+ },
1554
+ "ClientIdScheme": {
1555
+ "type": "string",
1556
+ "enum": [
1557
+ "x509_san_dns",
1558
+ "x509_san_uri"
1559
+ ]
1400
1560
  },
1401
1561
  "IIdentifier": {
1402
1562
  "type": "object",
@@ -1556,6 +1716,20 @@
1556
1716
  ],
1557
1717
  "description": "Represents a service endpoint URL or a map of URLs"
1558
1718
  },
1719
+ "DIDDocumentSection": {
1720
+ "type": "string",
1721
+ "enum": [
1722
+ "verificationMethod",
1723
+ "publicKey",
1724
+ "service",
1725
+ "authentication",
1726
+ "assertionMethod",
1727
+ "keyAgreement",
1728
+ "capabilityInvocation",
1729
+ "capabilityDelegation"
1730
+ ],
1731
+ "description": "Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\n\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }"
1732
+ },
1559
1733
  "ICoseKeyJson": {
1560
1734
  "type": "object",
1561
1735
  "properties": {
@@ -1657,28 +1831,33 @@
1657
1831
  -1
1658
1832
  ]
1659
1833
  },
1660
- "ClientIdScheme": {
1661
- "type": "string",
1662
- "enum": [
1663
- "x509_san_dns",
1664
- "x509_san_uri"
1665
- ]
1666
- },
1667
- "DIDDocumentSection": {
1668
- "type": "string",
1669
- "enum": [
1670
- "verificationMethod",
1671
- "publicKey",
1672
- "service",
1673
- "authentication",
1674
- "assertionMethod",
1675
- "keyAgreement",
1676
- "capabilityInvocation",
1677
- "capabilityDelegation"
1834
+ "ManagedIdentifierType": {
1835
+ "anyOf": [
1836
+ {
1837
+ "$ref": "#/components/schemas/IIdentifier"
1838
+ },
1839
+ {
1840
+ "type": "string"
1841
+ },
1842
+ {
1843
+ "type": "array",
1844
+ "items": {
1845
+ "type": "string"
1846
+ }
1847
+ },
1848
+ {
1849
+ "$ref": "#/components/schemas/JWK"
1850
+ },
1851
+ {
1852
+ "$ref": "#/components/schemas/IKey"
1853
+ },
1854
+ {
1855
+ "$ref": "#/components/schemas/ICoseKeyJson"
1856
+ }
1678
1857
  ],
1679
- "description": "Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\n\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }"
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"
1680
1859
  },
1681
- "JwtHeader": {
1860
+ "JwsHeader": {
1682
1861
  "type": "object",
1683
1862
  "properties": {
1684
1863
  "typ": {
@@ -1702,7 +1881,7 @@
1702
1881
  },
1703
1882
  "additionalProperties": {}
1704
1883
  },
1705
- "JwtPayload": {
1884
+ "JwsPayload": {
1706
1885
  "type": "object",
1707
1886
  "additionalProperties": {},
1708
1887
  "properties": {
@@ -1739,11 +1918,18 @@
1739
1918
  }
1740
1919
  }
1741
1920
  },
1742
- "JwsCompactResult": {
1921
+ "JwtCompactResult": {
1743
1922
  "type": "object",
1744
1923
  "properties": {
1745
1924
  "jwt": {
1746
- "$ref": "#/components/schemas/JwsCompact"
1925
+ "anyOf": [
1926
+ {
1927
+ "$ref": "#/components/schemas/JwsCompact"
1928
+ },
1929
+ {
1930
+ "$ref": "#/components/schemas/JweCompact"
1931
+ }
1932
+ ]
1747
1933
  }
1748
1934
  },
1749
1935
  "required": [
@@ -1753,6 +1939,9 @@
1753
1939
  "JwsCompact": {
1754
1940
  "type": "string"
1755
1941
  },
1942
+ "JweCompact": {
1943
+ "type": "string"
1944
+ },
1756
1945
  "CreateJwsFlattenedArgs": {
1757
1946
  "$ref": "#/components/schemas/CreateJwsJsonArgs"
1758
1947
  },
@@ -1760,7 +1949,7 @@
1760
1949
  "type": "object",
1761
1950
  "properties": {
1762
1951
  "unprotectedHeader": {
1763
- "$ref": "#/components/schemas/JwtHeader"
1952
+ "$ref": "#/components/schemas/JwsHeader"
1764
1953
  },
1765
1954
  "existingSignatures": {
1766
1955
  "type": "array",
@@ -2204,6 +2393,73 @@
2204
2393
  "opts"
2205
2394
  ]
2206
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
+ },
2207
2463
  {
2208
2464
  "type": "object",
2209
2465
  "properties": {
@@ -2221,7 +2477,7 @@
2221
2477
  "const": "jwk"
2222
2478
  },
2223
2479
  "identifier": {
2224
- "$ref": "#/components/schemas/ManagedIdentifierType"
2480
+ "$ref": "#/components/schemas/JWK"
2225
2481
  },
2226
2482
  "kmsKeyRef": {
2227
2483
  "type": "string"
@@ -2271,7 +2527,10 @@
2271
2527
  "const": "x5c"
2272
2528
  },
2273
2529
  "identifier": {
2274
- "$ref": "#/components/schemas/ManagedIdentifierType"
2530
+ "type": "array",
2531
+ "items": {
2532
+ "type": "string"
2533
+ }
2275
2534
  },
2276
2535
  "kmsKeyRef": {
2277
2536
  "type": "string"
@@ -2321,7 +2580,14 @@
2321
2580
  "const": "did"
2322
2581
  },
2323
2582
  "identifier": {
2324
- "$ref": "#/components/schemas/ManagedIdentifierType"
2583
+ "anyOf": [
2584
+ {
2585
+ "$ref": "#/components/schemas/IIdentifier"
2586
+ },
2587
+ {
2588
+ "type": "string"
2589
+ }
2590
+ ]
2325
2591
  },
2326
2592
  "kmsKeyRef": {
2327
2593
  "type": "string"
@@ -2386,7 +2652,7 @@
2386
2652
  "const": "kid"
2387
2653
  },
2388
2654
  "identifier": {
2389
- "$ref": "#/components/schemas/ManagedIdentifierType"
2655
+ "type": "string"
2390
2656
  },
2391
2657
  "kmsKeyRef": {
2392
2658
  "type": "string"
@@ -2436,7 +2702,7 @@
2436
2702
  "const": "key"
2437
2703
  },
2438
2704
  "identifier": {
2439
- "$ref": "#/components/schemas/ManagedIdentifierType"
2705
+ "$ref": "#/components/schemas/IKey"
2440
2706
  },
2441
2707
  "kmsKeyRef": {
2442
2708
  "type": "string"
@@ -2486,7 +2752,57 @@
2486
2752
  "const": "cose_key"
2487
2753
  },
2488
2754
  "identifier": {
2489
- "$ref": "#/components/schemas/ManagedIdentifierType"
2755
+ "$ref": "#/components/schemas/ICoseKeyJson"
2756
+ },
2757
+ "kmsKeyRef": {
2758
+ "type": "string"
2759
+ },
2760
+ "issuer": {
2761
+ "type": "string"
2762
+ },
2763
+ "kid": {
2764
+ "type": "string"
2765
+ },
2766
+ "clientId": {
2767
+ "type": "string"
2768
+ },
2769
+ "clientIdScheme": {
2770
+ "anyOf": [
2771
+ {
2772
+ "$ref": "#/components/schemas/ClientIdScheme"
2773
+ },
2774
+ {
2775
+ "type": "string",
2776
+ "const": "did"
2777
+ },
2778
+ {
2779
+ "type": "string"
2780
+ }
2781
+ ]
2782
+ }
2783
+ },
2784
+ "required": [
2785
+ "identifier"
2786
+ ]
2787
+ },
2788
+ {
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"
2490
2806
  },
2491
2807
  "kmsKeyRef": {
2492
2808
  "type": "string"
@@ -2539,12 +2855,12 @@
2539
2855
  ]
2540
2856
  },
2541
2857
  "protectedHeader": {
2542
- "$ref": "#/components/schemas/JwtHeader"
2858
+ "$ref": "#/components/schemas/JwsHeader"
2543
2859
  },
2544
2860
  "payload": {
2545
2861
  "anyOf": [
2546
2862
  {
2547
- "$ref": "#/components/schemas/JwtPayload"
2863
+ "$ref": "#/components/schemas/JwsPayload"
2548
2864
  },
2549
2865
  {
2550
2866
  "type": "object",
@@ -2608,7 +2924,7 @@
2608
2924
  "type": "string"
2609
2925
  },
2610
2926
  "header": {
2611
- "$ref": "#/components/schemas/JwtHeader"
2927
+ "$ref": "#/components/schemas/JwsHeader"
2612
2928
  },
2613
2929
  "signature": {
2614
2930
  "type": "string"
@@ -2629,7 +2945,7 @@
2629
2945
  "type": "string"
2630
2946
  },
2631
2947
  "header": {
2632
- "$ref": "#/components/schemas/JwtHeader"
2948
+ "$ref": "#/components/schemas/JwsHeader"
2633
2949
  },
2634
2950
  "signature": {
2635
2951
  "type": "string"
@@ -2659,114 +2975,37 @@
2659
2975
  "signatures"
2660
2976
  ]
2661
2977
  },
2662
- "PreparedJwsObject": {
2978
+ "DecryptJweCompactJwtArgs": {
2663
2979
  "type": "object",
2664
2980
  "properties": {
2665
- "jws": {
2666
- "$ref": "#/components/schemas/PreparedJws"
2667
- },
2668
- "b64": {
2669
- "type": "object",
2670
- "properties": {
2671
- "payload": {
2672
- "type": "string"
2673
- },
2674
- "protectedHeader": {
2675
- "type": "string"
2676
- }
2677
- },
2678
- "required": [
2679
- "payload",
2680
- "protectedHeader"
2681
- ]
2981
+ "jwe": {
2982
+ "$ref": "#/components/schemas/JweCompact"
2682
2983
  },
2683
- "identifier": {
2684
- "$ref": "#/components/schemas/ManagedIdentifierResult"
2984
+ "idOpts": {
2985
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
2685
2986
  }
2686
2987
  },
2687
2988
  "required": [
2688
- "jws",
2689
- "b64",
2690
- "identifier"
2989
+ "jwe",
2990
+ "idOpts"
2691
2991
  ]
2692
2992
  },
2693
- "PreparedJws": {
2694
- "type": "object",
2695
- "properties": {
2696
- "protectedHeader": {
2697
- "$ref": "#/components/schemas/JwtHeader"
2698
- },
2699
- "payload": {
2993
+ "ManagedIdentifierOptsOrResult": {
2994
+ "anyOf": [
2995
+ {
2700
2996
  "type": "object",
2701
2997
  "properties": {
2702
- "BYTES_PER_ELEMENT": {
2703
- "type": "number"
2998
+ "lazyDisabled": {
2999
+ "type": "boolean"
2704
3000
  },
2705
- "buffer": {
2706
- "anyOf": [
2707
- {
2708
- "type": "object",
2709
- "properties": {
2710
- "byteLength": {
2711
- "type": "number"
2712
- }
2713
- },
2714
- "required": [
2715
- "byteLength"
2716
- ]
2717
- },
2718
- {}
2719
- ]
3001
+ "jwk": {
3002
+ "$ref": "#/components/schemas/JWK"
2720
3003
  },
2721
- "byteLength": {
2722
- "type": "number"
3004
+ "jwkThumbprint": {
3005
+ "type": "string"
2723
3006
  },
2724
- "byteOffset": {
2725
- "type": "number"
2726
- },
2727
- "length": {
2728
- "type": "number"
2729
- }
2730
- },
2731
- "required": [
2732
- "BYTES_PER_ELEMENT",
2733
- "buffer",
2734
- "byteLength",
2735
- "byteOffset",
2736
- "length"
2737
- ],
2738
- "additionalProperties": {
2739
- "type": "number"
2740
- }
2741
- },
2742
- "unprotectedHeader": {
2743
- "$ref": "#/components/schemas/JwtHeader"
2744
- },
2745
- "existingSignatures": {
2746
- "type": "array",
2747
- "items": {
2748
- "$ref": "#/components/schemas/JwsJsonSignature"
2749
- }
2750
- }
2751
- },
2752
- "required": [
2753
- "protectedHeader",
2754
- "payload"
2755
- ]
2756
- },
2757
- "ManagedIdentifierResult": {
2758
- "anyOf": [
2759
- {
2760
- "type": "object",
2761
- "properties": {
2762
- "jwk": {
2763
- "$ref": "#/components/schemas/JWK"
2764
- },
2765
- "jwkThumbprint": {
2766
- "type": "string"
2767
- },
2768
- "kmsKeyRef": {
2769
- "type": "string"
3007
+ "kmsKeyRef": {
3008
+ "type": "string"
2770
3009
  },
2771
3010
  "method": {
2772
3011
  "$ref": "#/components/schemas/ManagedIdentifierMethod"
@@ -2826,6 +3065,9 @@
2826
3065
  {
2827
3066
  "type": "object",
2828
3067
  "properties": {
3068
+ "lazyDisabled": {
3069
+ "type": "boolean"
3070
+ },
2829
3071
  "jwk": {
2830
3072
  "$ref": "#/components/schemas/JWK"
2831
3073
  },
@@ -2903,6 +3145,9 @@
2903
3145
  {
2904
3146
  "type": "object",
2905
3147
  "properties": {
3148
+ "lazyDisabled": {
3149
+ "type": "boolean"
3150
+ },
2906
3151
  "jwk": {
2907
3152
  "$ref": "#/components/schemas/JWK"
2908
3153
  },
@@ -2961,6 +3206,9 @@
2961
3206
  {
2962
3207
  "type": "object",
2963
3208
  "properties": {
3209
+ "lazyDisabled": {
3210
+ "type": "boolean"
3211
+ },
2964
3212
  "jwk": {
2965
3213
  "$ref": "#/components/schemas/JWK"
2966
3214
  },
@@ -3020,6 +3268,9 @@
3020
3268
  {
3021
3269
  "type": "object",
3022
3270
  "properties": {
3271
+ "lazyDisabled": {
3272
+ "type": "boolean"
3273
+ },
3023
3274
  "jwk": {
3024
3275
  "$ref": "#/components/schemas/JWK"
3025
3276
  },
@@ -3078,6 +3329,9 @@
3078
3329
  {
3079
3330
  "type": "object",
3080
3331
  "properties": {
3332
+ "lazyDisabled": {
3333
+ "type": "boolean"
3334
+ },
3081
3335
  "jwk": {
3082
3336
  "$ref": "#/components/schemas/JWK"
3083
3337
  },
@@ -3132,1055 +3386,2422 @@
3132
3386
  "method",
3133
3387
  "opts"
3134
3388
  ]
3135
- }
3136
- ]
3137
- },
3138
- "VerifyJwsArgs": {
3139
- "type": "object",
3140
- "properties": {
3141
- "jws": {
3142
- "$ref": "#/components/schemas/Jws"
3143
3389
  },
3144
- "jwk": {
3145
- "$ref": "#/components/schemas/JWK"
3146
- },
3147
- "opts": {
3390
+ {
3148
3391
  "type": "object",
3149
3392
  "properties": {
3150
- "x5c": {
3151
- "type": "object",
3152
- "properties": {
3153
- "trustRootWhenNoAnchors": {
3154
- "type": "boolean"
3155
- },
3156
- "allowSingleNoCAChainElement": {
3157
- "type": "boolean"
3158
- },
3159
- "blindlyTrustedAnchors": {
3160
- "allOf": [
3161
- {
3162
- "type": "array",
3163
- "items": {
3164
- "type": "string"
3165
- }
3166
- },
3167
- {
3168
- "type": "object",
3169
- "properties": {}
3170
- }
3171
- ]
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"
3172
3427
  },
3173
- "client": {
3174
- "type": "object",
3175
- "properties": {
3176
- "clientId": {
3177
- "type": "string"
3178
- },
3179
- "clientIdScheme": {
3180
- "$ref": "#/components/schemas/ClientIdScheme"
3181
- }
3182
- },
3183
- "required": [
3184
- "clientId",
3185
- "clientIdScheme"
3186
- ]
3428
+ {
3429
+ "type": "string",
3430
+ "const": "did"
3187
3431
  },
3188
- "method": {
3189
- "type": "object",
3190
- "properties": {}
3432
+ {
3433
+ "type": "string"
3434
+ }
3435
+ ]
3436
+ },
3437
+ "identifier": {
3438
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3439
+ }
3440
+ },
3441
+ "required": [
3442
+ "identifier",
3443
+ "jwk",
3444
+ "jwkThumbprint",
3445
+ "key",
3446
+ "kmsKeyRef",
3447
+ "method",
3448
+ "opts"
3449
+ ]
3450
+ },
3451
+ {
3452
+ "type": "object",
3453
+ "properties": {
3454
+ "lazyDisabled": {
3455
+ "type": "boolean"
3456
+ },
3457
+ "method": {
3458
+ "type": "string",
3459
+ "const": "jwk"
3460
+ },
3461
+ "identifier": {
3462
+ "$ref": "#/components/schemas/JWK"
3463
+ },
3464
+ "kmsKeyRef": {
3465
+ "type": "string"
3466
+ },
3467
+ "issuer": {
3468
+ "type": "string"
3469
+ },
3470
+ "kid": {
3471
+ "type": "string"
3472
+ },
3473
+ "clientId": {
3474
+ "type": "string"
3475
+ },
3476
+ "clientIdScheme": {
3477
+ "anyOf": [
3478
+ {
3479
+ "$ref": "#/components/schemas/ClientIdScheme"
3191
3480
  },
3192
- "verify": {
3193
- "type": "boolean"
3481
+ {
3482
+ "type": "string",
3483
+ "const": "did"
3194
3484
  },
3195
- "verificationTime": {
3485
+ {
3196
3486
  "type": "string"
3197
- },
3198
- "trustAnchors": {
3199
- "allOf": [
3200
- {
3201
- "type": "array",
3202
- "items": {
3203
- "type": "string"
3204
- }
3205
- },
3206
- {
3207
- "type": "object",
3208
- "properties": {}
3209
- }
3210
- ]
3211
3487
  }
3488
+ ]
3489
+ }
3490
+ },
3491
+ "required": [
3492
+ "identifier"
3493
+ ]
3494
+ },
3495
+ {
3496
+ "type": "object",
3497
+ "properties": {
3498
+ "lazyDisabled": {
3499
+ "type": "boolean"
3500
+ },
3501
+ "method": {
3502
+ "type": "string",
3503
+ "const": "x5c"
3504
+ },
3505
+ "identifier": {
3506
+ "type": "array",
3507
+ "items": {
3508
+ "type": "string"
3212
3509
  }
3213
3510
  },
3214
- "did": {
3215
- "type": "object",
3216
- "properties": {
3217
- "method": {
3218
- "type": "object",
3219
- "properties": {}
3511
+ "kmsKeyRef": {
3512
+ "type": "string"
3513
+ },
3514
+ "issuer": {
3515
+ "type": "string"
3516
+ },
3517
+ "kid": {
3518
+ "type": "string"
3519
+ },
3520
+ "clientId": {
3521
+ "type": "string"
3522
+ },
3523
+ "clientIdScheme": {
3524
+ "anyOf": [
3525
+ {
3526
+ "$ref": "#/components/schemas/ClientIdScheme"
3220
3527
  },
3221
- "noVerificationMethodFallback": {
3222
- "type": "boolean"
3528
+ {
3529
+ "type": "string",
3530
+ "const": "did"
3223
3531
  },
3224
- "vmRelationship": {
3225
- "anyOf": [
3226
- {
3227
- "type": "object",
3228
- "properties": {}
3229
- },
3230
- {
3231
- "type": "object",
3232
- "properties": {}
3233
- },
3234
- {
3235
- "type": "object",
3236
- "properties": {}
3237
- },
3238
- {
3239
- "type": "object",
3240
- "properties": {}
3241
- },
3242
- {
3243
- "type": "object",
3244
- "properties": {}
3245
- },
3246
- {
3247
- "type": "object",
3248
- "properties": {}
3249
- },
3250
- {
3251
- "type": "object",
3252
- "properties": {}
3253
- },
3254
- {
3255
- "type": "object",
3256
- "properties": {}
3257
- }
3258
- ]
3259
- },
3260
- "localResolution": {
3261
- "type": "boolean"
3262
- },
3263
- "uniresolverResolution": {
3264
- "type": "boolean"
3265
- },
3266
- "resolverResolution": {
3267
- "type": "boolean"
3532
+ {
3533
+ "type": "string"
3268
3534
  }
3269
- }
3535
+ ]
3270
3536
  }
3271
- }
3272
- }
3273
- },
3274
- "required": [
3275
- "jws"
3276
- ]
3277
- },
3278
- "Jws": {
3279
- "anyOf": [
3280
- {
3281
- "$ref": "#/components/schemas/JwsCompact"
3282
- },
3283
- {
3284
- "$ref": "#/components/schemas/JwsJsonFlattened"
3285
- },
3286
- {
3287
- "$ref": "#/components/schemas/JwsJsonGeneral"
3288
- }
3289
- ]
3290
- },
3291
- "IJwsValidationResult": {
3292
- "type": "object",
3293
- "properties": {
3294
- "jws": {
3295
- "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
3296
- },
3297
- "name": {
3298
- "type": "string",
3299
- "description": "The name of the validation or its subsystem. Mainly used for information purposes. Not assumed to be unique"
3300
- },
3301
- "error": {
3302
- "type": "boolean",
3303
- "description": "Whether the validation was successful or not"
3304
- },
3305
- "critical": {
3306
- "type": "boolean",
3307
- "description": "Whether an error can be ignored or not (up to processing logic)"
3308
- },
3309
- "message": {
3310
- "type": "string",
3311
- "description": "Any status/info message about the validation"
3312
- },
3313
- "verificationTime": {
3314
- "type": "string",
3315
- "format": "date-time",
3316
- "description": "The date and time of the validation"
3317
- }
3318
- },
3319
- "required": [
3320
- "critical",
3321
- "error",
3322
- "jws",
3323
- "message",
3324
- "name",
3325
- "verificationTime"
3326
- ]
3327
- },
3328
- "JwsJsonGeneralWithIdentifiers": {
3329
- "type": "object",
3330
- "properties": {
3331
- "payload": {
3332
- "type": "string"
3333
- },
3334
- "signatures": {
3335
- "type": "array",
3336
- "items": {
3337
- "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
3338
- }
3339
- }
3340
- },
3341
- "required": [
3342
- "payload",
3343
- "signatures"
3344
- ]
3345
- },
3346
- "JwsJsonSignatureWithIdentifier": {
3347
- "type": "object",
3348
- "properties": {
3349
- "protected": {
3350
- "type": "string"
3351
- },
3352
- "header": {
3353
- "$ref": "#/components/schemas/JwtHeader"
3354
- },
3355
- "signature": {
3356
- "type": "string"
3537
+ },
3538
+ "required": [
3539
+ "identifier"
3540
+ ]
3357
3541
  },
3358
- "identifier": {
3359
- "$ref": "#/components/schemas/ExternalIdentifierResult"
3360
- }
3361
- },
3362
- "required": [
3363
- "identifier",
3364
- "protected",
3365
- "signature"
3366
- ]
3367
- },
3368
- "ExternalIdentifierResult": {
3369
- "anyOf": [
3370
3542
  {
3371
3543
  "type": "object",
3372
3544
  "properties": {
3545
+ "lazyDisabled": {
3546
+ "type": "boolean"
3547
+ },
3373
3548
  "method": {
3374
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3549
+ "type": "string",
3550
+ "const": "did"
3375
3551
  },
3376
- "jwks": {
3377
- "type": "array",
3378
- "items": {
3379
- "$ref": "#/components/schemas/ExternalJwkInfo"
3380
- }
3552
+ "identifier": {
3553
+ "anyOf": [
3554
+ {
3555
+ "$ref": "#/components/schemas/IIdentifier"
3556
+ },
3557
+ {
3558
+ "type": "string"
3559
+ }
3560
+ ]
3381
3561
  },
3382
- "did": {
3562
+ "kmsKeyRef": {
3383
3563
  "type": "string"
3384
3564
  },
3385
- "didDocument": {
3386
- "$ref": "#/components/schemas/DIDDocument"
3565
+ "issuer": {
3566
+ "type": "string"
3387
3567
  },
3388
- "didJwks": {
3389
- "$ref": "#/components/schemas/DidDocumentJwks"
3568
+ "kid": {
3569
+ "type": "string"
3390
3570
  },
3391
- "didResolutionResult": {
3392
- "type": "object",
3393
- "properties": {
3394
- "@context": {
3395
- "anyOf": [
3396
- {
3397
- "type": "string",
3398
- "const": "https://w3id.org/did-resolution/v1"
3399
- },
3400
- {
3401
- "type": "string"
3402
- },
3403
- {
3404
- "type": "array",
3405
- "items": {
3406
- "type": "string"
3407
- }
3408
- }
3409
- ]
3571
+ "clientId": {
3572
+ "type": "string"
3573
+ },
3574
+ "clientIdScheme": {
3575
+ "anyOf": [
3576
+ {
3577
+ "$ref": "#/components/schemas/ClientIdScheme"
3410
3578
  },
3411
- "didResolutionMetadata": {
3412
- "$ref": "#/components/schemas/DIDResolutionMetadata"
3579
+ {
3580
+ "type": "string",
3581
+ "const": "did"
3413
3582
  },
3414
- "didDocumentMetadata": {
3415
- "$ref": "#/components/schemas/DIDDocumentMetadata"
3583
+ {
3584
+ "type": "string"
3416
3585
  }
3417
- },
3418
- "required": [
3419
- "didResolutionMetadata",
3420
- "didDocumentMetadata"
3421
3586
  ]
3422
3587
  },
3423
- "didParsed": {
3424
- "$ref": "#/components/schemas/IParsedDID"
3425
- }
3426
- },
3427
- "required": [
3428
- "did",
3429
- "didParsed",
3430
- "didResolutionResult",
3431
- "jwks",
3432
- "method"
3433
- ]
3434
- },
3435
- {
3436
- "type": "object",
3437
- "properties": {
3438
- "method": {
3439
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3440
- },
3441
- "jwks": {
3442
- "type": "array",
3443
- "items": {
3444
- "$ref": "#/components/schemas/ExternalJwkInfo"
3445
- }
3588
+ "keyType": {
3589
+ "$ref": "#/components/schemas/TKeyType"
3446
3590
  },
3447
- "x5c": {
3448
- "type": "array",
3449
- "items": {
3450
- "type": "string"
3451
- }
3591
+ "offlineWhenNoDIDRegistered": {
3592
+ "type": "boolean"
3452
3593
  },
3453
- "issuerJWK": {
3454
- "$ref": "#/components/schemas/JWK"
3594
+ "noVerificationMethodFallback": {
3595
+ "type": "boolean"
3455
3596
  },
3456
- "verificationResult": {
3457
- "$ref": "#/components/schemas/X509ValidationResult"
3597
+ "controllerKey": {
3598
+ "type": "boolean"
3458
3599
  },
3459
- "certificates": {
3460
- "type": "array",
3461
- "items": {}
3600
+ "vmRelationship": {
3601
+ "$ref": "#/components/schemas/DIDDocumentSection"
3462
3602
  }
3463
3603
  },
3464
3604
  "required": [
3465
- "certificates",
3466
- "issuerJWK",
3467
- "jwks",
3468
- "method",
3469
- "x5c"
3605
+ "identifier"
3470
3606
  ]
3471
3607
  },
3472
3608
  {
3473
3609
  "type": "object",
3474
3610
  "properties": {
3611
+ "lazyDisabled": {
3612
+ "type": "boolean"
3613
+ },
3475
3614
  "method": {
3476
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3615
+ "type": "string",
3616
+ "const": "kid"
3477
3617
  },
3478
- "jwks": {
3479
- "type": "array",
3480
- "items": {
3481
- "$ref": "#/components/schemas/ExternalJwkInfo"
3482
- }
3618
+ "identifier": {
3619
+ "type": "string"
3483
3620
  },
3484
- "jwk": {
3485
- "$ref": "#/components/schemas/JWK"
3621
+ "kmsKeyRef": {
3622
+ "type": "string"
3486
3623
  },
3487
- "x5c": {
3488
- "$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
+ ]
3489
3646
  }
3490
3647
  },
3491
3648
  "required": [
3492
- "jwk",
3493
- "jwks",
3494
- "method"
3649
+ "identifier"
3495
3650
  ]
3496
3651
  },
3497
3652
  {
3498
3653
  "type": "object",
3499
3654
  "properties": {
3655
+ "lazyDisabled": {
3656
+ "type": "boolean"
3657
+ },
3500
3658
  "method": {
3501
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3659
+ "type": "string",
3660
+ "const": "key"
3502
3661
  },
3503
- "jwks": {
3504
- "type": "array",
3505
- "items": {
3506
- "$ref": "#/components/schemas/ExternalJwkInfo"
3507
- }
3662
+ "identifier": {
3663
+ "$ref": "#/components/schemas/IKey"
3508
3664
  },
3509
- "coseKey": {
3510
- "$ref": "#/components/schemas/ICoseKeyJson"
3665
+ "kmsKeyRef": {
3666
+ "type": "string"
3511
3667
  },
3512
- "x5c": {
3513
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
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
+ ]
3514
3690
  }
3515
3691
  },
3516
3692
  "required": [
3517
- "coseKey",
3518
- "jwks",
3519
- "method"
3693
+ "identifier"
3520
3694
  ]
3521
- }
3522
- ]
3523
- },
3524
- "ExternalIdentifierMethod": {
3525
- "type": "string",
3526
- "enum": [
3527
- "did",
3528
- "jwk",
3529
- "x5c",
3530
- "kid",
3531
- "cose_key",
3532
- "oidc-discovery",
3533
- "jwks-url",
3534
- "oid4vci-issuer"
3535
- ]
3536
- },
3537
- "ExternalJwkInfo": {
3538
- "type": "object",
3539
- "properties": {
3540
- "jwk": {
3541
- "$ref": "#/components/schemas/JWK"
3542
- },
3543
- "jwkThumbprint": {
3544
- "type": "string"
3545
- },
3546
- "kid": {
3547
- "type": "string"
3548
- },
3549
- "publicKeyHex": {
3550
- "type": "string"
3551
- }
3552
- },
3553
- "required": [
3554
- "jwk",
3555
- "jwkThumbprint",
3556
- "publicKeyHex"
3557
- ]
3558
- },
3559
- "DIDDocument": {
3560
- "type": "object",
3561
- "properties": {
3562
- "authentication": {
3563
- "type": "array",
3564
- "items": {
3565
- "anyOf": [
3566
- {
3567
- "type": "string"
3568
- },
3569
- {
3570
- "$ref": "#/components/schemas/VerificationMethod"
3571
- }
3572
- ]
3573
- }
3574
- },
3575
- "assertionMethod": {
3576
- "type": "array",
3577
- "items": {
3578
- "anyOf": [
3579
- {
3580
- "type": "string"
3581
- },
3582
- {
3583
- "$ref": "#/components/schemas/VerificationMethod"
3584
- }
3585
- ]
3586
- }
3587
- },
3588
- "keyAgreement": {
3589
- "type": "array",
3590
- "items": {
3591
- "anyOf": [
3592
- {
3593
- "type": "string"
3594
- },
3595
- {
3596
- "$ref": "#/components/schemas/VerificationMethod"
3597
- }
3598
- ]
3599
- }
3600
- },
3601
- "capabilityInvocation": {
3602
- "type": "array",
3603
- "items": {
3604
- "anyOf": [
3605
- {
3606
- "type": "string"
3607
- },
3608
- {
3609
- "$ref": "#/components/schemas/VerificationMethod"
3610
- }
3611
- ]
3612
- }
3613
- },
3614
- "capabilityDelegation": {
3615
- "type": "array",
3616
- "items": {
3617
- "anyOf": [
3618
- {
3619
- "type": "string"
3620
- },
3621
- {
3622
- "$ref": "#/components/schemas/VerificationMethod"
3623
- }
3624
- ]
3625
- }
3626
3695
  },
3627
- "@context": {
3628
- "anyOf": [
3629
- {
3696
+ {
3697
+ "type": "object",
3698
+ "properties": {
3699
+ "lazyDisabled": {
3700
+ "type": "boolean"
3701
+ },
3702
+ "method": {
3630
3703
  "type": "string",
3631
- "const": "https://www.w3.org/ns/did/v1"
3704
+ "const": "cose_key"
3632
3705
  },
3633
- {
3706
+ "identifier": {
3707
+ "$ref": "#/components/schemas/ICoseKeyJson"
3708
+ },
3709
+ "kmsKeyRef": {
3634
3710
  "type": "string"
3635
3711
  },
3636
- {
3637
- "type": "array",
3638
- "items": {
3639
- "type": "string"
3640
- }
3641
- }
3642
- ]
3643
- },
3644
- "id": {
3645
- "type": "string"
3646
- },
3647
- "alsoKnownAs": {
3648
- "type": "array",
3649
- "items": {
3650
- "type": "string"
3651
- }
3652
- },
3653
- "controller": {
3654
- "anyOf": [
3655
- {
3712
+ "issuer": {
3656
3713
  "type": "string"
3657
3714
  },
3658
- {
3659
- "type": "array",
3660
- "items": {
3661
- "type": "string"
3662
- }
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
+ ]
3663
3734
  }
3735
+ },
3736
+ "required": [
3737
+ "identifier"
3664
3738
  ]
3665
3739
  },
3666
- "verificationMethod": {
3667
- "type": "array",
3668
- "items": {
3669
- "$ref": "#/components/schemas/VerificationMethod"
3670
- }
3671
- },
3672
- "service": {
3673
- "type": "array",
3674
- "items": {
3675
- "$ref": "#/components/schemas/Service"
3676
- }
3677
- },
3678
- "publicKey": {
3679
- "type": "array",
3680
- "items": {
3681
- "$ref": "#/components/schemas/VerificationMethod"
3740
+ {
3741
+ "type": "object",
3742
+ "properties": {
3743
+ "lazyDisabled": {
3744
+ "type": "boolean"
3745
+ },
3746
+ "method": {
3747
+ "type": "string",
3748
+ "const": "oid4vci-issuer"
3749
+ },
3750
+ "identifier": {
3751
+ "type": "string"
3752
+ },
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
+ ]
3778
+ }
3682
3779
  },
3683
- "deprecated": true
3780
+ "required": [
3781
+ "identifier"
3782
+ ]
3684
3783
  }
3685
- },
3686
- "required": [
3687
- "id"
3688
- ],
3689
- "description": "Represents a DID document."
3784
+ ]
3690
3785
  },
3691
- "VerificationMethod": {
3786
+ "EncryptJweCompactJwtArgs": {
3692
3787
  "type": "object",
3693
3788
  "properties": {
3694
- "id": {
3695
- "type": "string"
3789
+ "payload": {
3790
+ "$ref": "#/components/schemas/JwsPayload"
3696
3791
  },
3697
- "type": {
3698
- "type": "string"
3792
+ "protectedHeader": {
3793
+ "$ref": "#/components/schemas/JweProtectedHeader"
3699
3794
  },
3700
- "controller": {
3701
- "type": "string"
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"
3836
+ }
3702
3837
  },
3703
- "publicKeyBase58": {
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
+ ]
4005
+ },
4006
+ "alg": {
4007
+ "$ref": "#/components/schemas/JweAlg"
4008
+ },
4009
+ "enc": {
4010
+ "$ref": "#/components/schemas/JweEnc"
4011
+ },
4012
+ "apu": {
3704
4013
  "type": "string"
3705
4014
  },
3706
- "publicKeyBase64": {
4015
+ "apv": {
3707
4016
  "type": "string"
3708
4017
  },
3709
- "publicKeyJwk": {
3710
- "$ref": "#/components/schemas/JsonWebKey"
4018
+ "expirationTime": {
4019
+ "anyOf": [
4020
+ {
4021
+ "type": "number"
4022
+ },
4023
+ {
4024
+ "type": "string"
4025
+ },
4026
+ {
4027
+ "type": "string",
4028
+ "format": "date-time"
4029
+ }
4030
+ ]
3711
4031
  },
3712
- "publicKeyHex": {
4032
+ "issuer": {
3713
4033
  "type": "string"
3714
4034
  },
3715
- "publicKeyMultibase": {
4035
+ "audience": {
4036
+ "anyOf": [
4037
+ {
4038
+ "type": "string"
4039
+ },
4040
+ {
4041
+ "type": "array",
4042
+ "items": {
4043
+ "type": "string"
4044
+ }
4045
+ }
4046
+ ]
4047
+ }
4048
+ },
4049
+ "required": [
4050
+ "payload",
4051
+ "recipientKey"
4052
+ ]
4053
+ },
4054
+ "JweProtectedHeader": {
4055
+ "type": "object",
4056
+ "properties": {
4057
+ "alg": {
3716
4058
  "type": "string"
3717
4059
  },
3718
- "blockchainAccountId": {
4060
+ "enc": {
3719
4061
  "type": "string"
3720
4062
  },
3721
- "ethereumAddress": {
4063
+ "jku": {
3722
4064
  "type": "string"
3723
4065
  },
3724
- "conditionOr": {
3725
- "type": "array",
3726
- "items": {
3727
- "$ref": "#/components/schemas/VerificationMethod"
3728
- }
3729
- },
3730
- "conditionAnd": {
3731
- "type": "array",
3732
- "items": {
3733
- "$ref": "#/components/schemas/VerificationMethod"
3734
- }
4066
+ "jwk": {
4067
+ "$ref": "#/components/schemas/BaseJWK"
3735
4068
  },
3736
- "threshold": {
3737
- "type": "number"
4069
+ "epk": {
4070
+ "$ref": "#/components/schemas/EphemeralPublicKey"
3738
4071
  },
3739
- "conditionThreshold": {
3740
- "type": "array",
3741
- "items": {
3742
- "$ref": "#/components/schemas/VerificationMethod"
3743
- }
4072
+ "x5u": {
4073
+ "type": "string"
3744
4074
  },
3745
- "conditionWeightedThreshold": {
4075
+ "x5c": {
3746
4076
  "type": "array",
3747
4077
  "items": {
3748
- "$ref": "#/components/schemas/ConditionWeightedThreshold"
4078
+ "type": "string"
3749
4079
  }
3750
4080
  },
3751
- "conditionDelegated": {
4081
+ "x5t": {
3752
4082
  "type": "string"
3753
4083
  },
3754
- "relationshipParent": {
3755
- "type": "array",
3756
- "items": {
3757
- "type": "string"
3758
- }
4084
+ "cty": {
4085
+ "type": "string"
3759
4086
  },
3760
- "relationshipChild": {
4087
+ "crit": {
3761
4088
  "type": "array",
3762
4089
  "items": {
3763
4090
  "type": "string"
3764
4091
  }
3765
4092
  },
3766
- "relationshipSibling": {
3767
- "type": "array",
3768
- "items": {
3769
- "type": "string"
3770
- }
4093
+ "typ": {},
4094
+ "kid": {},
4095
+ "zip": {
4096
+ "type": "string"
3771
4097
  }
3772
- },
3773
- "required": [
3774
- "id",
3775
- "type",
3776
- "controller"
3777
- ],
3778
- "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."
4098
+ }
3779
4099
  },
3780
- "JsonWebKey": {
4100
+ "BaseJWK": {
3781
4101
  "type": "object",
3782
4102
  "properties": {
3783
- "alg": {
3784
- "type": "string"
4103
+ "kty": {
4104
+ "anyOf": [
4105
+ {
4106
+ "$ref": "#/components/schemas/JwkKeyType"
4107
+ },
4108
+ {
4109
+ "$ref": "#/components/schemas/JwkKeyTypeString"
4110
+ }
4111
+ ]
3785
4112
  },
3786
4113
  "crv": {
3787
- "type": "string"
3788
- },
3789
- "e": {
3790
- "type": "string"
4114
+ "anyOf": [
4115
+ {
4116
+ "$ref": "#/components/schemas/JoseCurve"
4117
+ },
4118
+ {
4119
+ "$ref": "#/components/schemas/JoseCurveString"
4120
+ }
4121
+ ]
3791
4122
  },
3792
- "ext": {
3793
- "type": "boolean"
4123
+ "alg": {
4124
+ "anyOf": [
4125
+ {
4126
+ "$ref": "#/components/schemas/JoseSignatureAlgorithm"
4127
+ },
4128
+ {
4129
+ "$ref": "#/components/schemas/JoseSignatureAlgorithmString"
4130
+ }
4131
+ ]
3794
4132
  },
3795
- "key_ops": {
3796
- "type": "array",
3797
- "items": {
3798
- "type": "string"
3799
- }
4133
+ "x": {
4134
+ "type": "string"
3800
4135
  },
3801
- "kid": {
4136
+ "y": {
3802
4137
  "type": "string"
3803
4138
  },
3804
- "kty": {
4139
+ "e": {
3805
4140
  "type": "string"
3806
4141
  },
3807
4142
  "n": {
3808
4143
  "type": "string"
4144
+ }
4145
+ },
4146
+ "required": [
4147
+ "kty"
4148
+ ],
4149
+ "description": "Conversion functions to Cose available for TS in our"
4150
+ },
4151
+ "EphemeralPublicKey": {
4152
+ "type": "object",
4153
+ "properties": {
4154
+ "kty": {
4155
+ "anyOf": [
4156
+ {
4157
+ "$ref": "#/components/schemas/JwkKeyType"
4158
+ },
4159
+ {
4160
+ "$ref": "#/components/schemas/JwkKeyTypeString"
4161
+ }
4162
+ ]
3809
4163
  },
3810
- "use": {
3811
- "type": "string"
4164
+ "crv": {
4165
+ "anyOf": [
4166
+ {
4167
+ "$ref": "#/components/schemas/JoseCurve"
4168
+ },
4169
+ {
4170
+ "$ref": "#/components/schemas/JoseCurveString"
4171
+ }
4172
+ ]
3812
4173
  },
3813
4174
  "x": {
3814
4175
  "type": "string"
3815
4176
  },
3816
4177
  "y": {
3817
4178
  "type": "string"
4179
+ },
4180
+ "e": {
4181
+ "type": "string"
4182
+ },
4183
+ "n": {
4184
+ "type": "string"
3818
4185
  }
3819
4186
  },
3820
4187
  "required": [
3821
4188
  "kty"
3822
4189
  ],
3823
- "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."
4190
+ "description": "The JWK representation of an ephemeral public key. See https://www.rfc-editor.org/rfc/rfc7518.html#section-6"
3824
4191
  },
3825
- "ConditionWeightedThreshold": {
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": {
3826
4206
  "type": "object",
3827
4207
  "properties": {
3828
- "condition": {
3829
- "$ref": "#/components/schemas/VerificationMethod"
4208
+ "jwk": {
4209
+ "$ref": "#/components/schemas/JWK"
3830
4210
  },
3831
- "weight": {
3832
- "type": "number"
4211
+ "jwkThumbprint": {
4212
+ "type": "string"
4213
+ },
4214
+ "kid": {
4215
+ "type": "string"
4216
+ },
4217
+ "publicKeyHex": {
4218
+ "type": "string"
3833
4219
  }
3834
4220
  },
3835
4221
  "required": [
3836
- "condition",
3837
- "weight"
4222
+ "jwk",
4223
+ "jwkThumbprint",
4224
+ "publicKeyHex"
3838
4225
  ]
3839
4226
  },
3840
- "Service": {
4227
+ "DIDDocument": {
3841
4228
  "type": "object",
3842
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
+ },
3843
4312
  "id": {
3844
4313
  "type": "string"
3845
4314
  },
3846
- "type": {
3847
- "type": "string"
4315
+ "alsoKnownAs": {
4316
+ "type": "array",
4317
+ "items": {
4318
+ "type": "string"
4319
+ }
3848
4320
  },
3849
- "serviceEndpoint": {
4321
+ "controller": {
3850
4322
  "anyOf": [
3851
4323
  {
3852
- "$ref": "#/components/schemas/ServiceEndpoint"
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
+ }
3853
5496
  },
3854
- {
3855
- "type": "array",
3856
- "items": {
3857
- "$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
+ }
3858
5552
  }
3859
5553
  }
3860
- ]
5554
+ }
3861
5555
  }
3862
5556
  },
3863
5557
  "required": [
3864
- "id",
3865
- "type",
3866
- "serviceEndpoint"
3867
- ],
3868
- "description": "Represents a Service entry in a {@link https://www.w3.org/TR/did-core/#did-document-properties | DID document } ."
5558
+ "jws"
5559
+ ]
3869
5560
  },
3870
- "ServiceEndpoint": {
5561
+ "Jws": {
3871
5562
  "anyOf": [
3872
5563
  {
3873
- "type": "string"
5564
+ "$ref": "#/components/schemas/JwsCompact"
3874
5565
  },
3875
5566
  {
3876
- "type": "object"
5567
+ "$ref": "#/components/schemas/JwsJsonFlattened"
5568
+ },
5569
+ {
5570
+ "$ref": "#/components/schemas/JwsJsonGeneral"
3877
5571
  }
3878
- ],
3879
- "description": "Represents an endpoint of a Service entry in a DID document."
5572
+ ]
3880
5573
  },
3881
- "DidDocumentJwks": {
5574
+ "IJwsValidationResult": {
3882
5575
  "type": "object",
3883
5576
  "properties": {
3884
- "verificationMethod": {
3885
- "type": "array",
3886
- "items": {
3887
- "$ref": "#/components/schemas/JWK"
3888
- }
5577
+ "jws": {
5578
+ "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
3889
5579
  },
3890
- "authentication": {
3891
- "type": "array",
3892
- "items": {
3893
- "$ref": "#/components/schemas/JWK"
3894
- }
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"
3895
5583
  },
3896
- "assertionMethod": {
3897
- "type": "array",
3898
- "items": {
3899
- "$ref": "#/components/schemas/JWK"
3900
- }
5584
+ "error": {
5585
+ "type": "boolean",
5586
+ "description": "Whether the validation was successful or not"
3901
5587
  },
3902
- "keyAgreement": {
3903
- "type": "array",
3904
- "items": {
3905
- "$ref": "#/components/schemas/JWK"
3906
- }
5588
+ "critical": {
5589
+ "type": "boolean",
5590
+ "description": "Whether an error can be ignored or not (up to processing logic)"
3907
5591
  },
3908
- "capabilityInvocation": {
3909
- "type": "array",
3910
- "items": {
3911
- "$ref": "#/components/schemas/JWK"
3912
- }
5592
+ "message": {
5593
+ "type": "string",
5594
+ "description": "Any status/info message about the validation"
3913
5595
  },
3914
- "capabilityDelegation": {
3915
- "type": "array",
3916
- "items": {
3917
- "$ref": "#/components/schemas/JWK"
3918
- }
5596
+ "verificationTime": {
5597
+ "type": "string",
5598
+ "format": "date-time",
5599
+ "description": "The date and time of the validation"
3919
5600
  }
3920
5601
  },
3921
5602
  "required": [
3922
- "verificationMethod",
3923
- "authentication",
3924
- "assertionMethod",
3925
- "keyAgreement",
3926
- "capabilityInvocation",
3927
- "capabilityDelegation"
5603
+ "critical",
5604
+ "error",
5605
+ "jws",
5606
+ "message",
5607
+ "name",
5608
+ "verificationTime"
3928
5609
  ]
3929
5610
  },
3930
- "DIDResolutionMetadata": {
3931
- "type": "object",
3932
- "properties": {
3933
- "contentType": {
3934
- "type": "string"
3935
- },
3936
- "error": {
3937
- "type": "string"
3938
- }
3939
- },
3940
- "description": "Encapsulates the resolution metadata resulting from a {@link Resolvable.resolve } operation."
3941
- },
3942
- "DIDDocumentMetadata": {
5611
+ "JwsJsonGeneralWithIdentifiers": {
3943
5612
  "type": "object",
3944
5613
  "properties": {
3945
- "created": {
3946
- "type": "string"
3947
- },
3948
- "updated": {
3949
- "type": "string"
3950
- },
3951
- "deactivated": {
3952
- "type": "boolean"
3953
- },
3954
- "versionId": {
3955
- "type": "string"
3956
- },
3957
- "nextUpdate": {
3958
- "type": "string"
3959
- },
3960
- "nextVersionId": {
3961
- "type": "string"
3962
- },
3963
- "equivalentId": {
5614
+ "payload": {
3964
5615
  "type": "string"
3965
5616
  },
3966
- "canonicalId": {
3967
- "type": "string"
5617
+ "signatures": {
5618
+ "type": "array",
5619
+ "items": {
5620
+ "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
5621
+ }
3968
5622
  }
3969
5623
  },
3970
- "description": "Represents metadata about the DID document resulting from a {@link Resolvable.resolve } operation."
5624
+ "required": [
5625
+ "payload",
5626
+ "signatures"
5627
+ ]
3971
5628
  },
3972
- "IParsedDID": {
5629
+ "JwsJsonSignatureWithIdentifier": {
3973
5630
  "type": "object",
3974
5631
  "properties": {
3975
- "did": {
3976
- "type": "string"
3977
- },
3978
- "didUrl": {
3979
- "type": "string"
3980
- },
3981
- "method": {
3982
- "type": "string"
3983
- },
3984
- "id": {
3985
- "type": "string"
3986
- },
3987
- "path": {
5632
+ "protected": {
3988
5633
  "type": "string"
3989
5634
  },
3990
- "fragment": {
3991
- "type": "string"
5635
+ "header": {
5636
+ "$ref": "#/components/schemas/JwsHeader"
3992
5637
  },
3993
- "query": {
5638
+ "signature": {
3994
5639
  "type": "string"
3995
5640
  },
3996
- "params": {
3997
- "type": "object",
3998
- "additionalProperties": {
3999
- "type": "string"
4000
- }
5641
+ "identifier": {
5642
+ "$ref": "#/components/schemas/ExternalIdentifierResult"
4001
5643
  }
4002
5644
  },
4003
5645
  "required": [
4004
- "did",
4005
- "didUrl",
4006
- "method",
4007
- "id"
5646
+ "identifier",
5647
+ "protected",
5648
+ "signature"
4008
5649
  ]
4009
5650
  },
4010
- "X509ValidationResult": {
4011
- "type": "object",
4012
- "properties": {
4013
- "error": {
4014
- "type": "boolean"
4015
- },
4016
- "critical": {
4017
- "type": "boolean"
4018
- },
4019
- "message": {
4020
- "type": "string"
4021
- },
4022
- "verificationTime": {
4023
- "type": "string",
4024
- "format": "date-time"
4025
- },
4026
- "certificateChain": {
4027
- "type": "array",
4028
- "items": {
4029
- "$ref": "#/components/schemas/CertificateInfo"
4030
- }
4031
- },
4032
- "client": {
5651
+ "ExternalIdentifierResult": {
5652
+ "anyOf": [
5653
+ {
4033
5654
  "type": "object",
4034
5655
  "properties": {
4035
- "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": {
4036
5666
  "type": "string"
4037
5667
  },
4038
- "clientIdScheme": {
4039
- "$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"
4040
5708
  }
4041
5709
  },
4042
5710
  "required": [
4043
- "clientId",
4044
- "clientIdScheme"
5711
+ "did",
5712
+ "didParsed",
5713
+ "didResolutionResult",
5714
+ "jwks",
5715
+ "method"
4045
5716
  ]
4046
- }
4047
- },
4048
- "required": [
4049
- "error",
4050
- "critical",
4051
- "message",
4052
- "verificationTime"
4053
- ]
4054
- },
4055
- "CertificateInfo": {
4056
- "type": "object",
4057
- "properties": {
4058
- "certificate": {},
4059
- "notBefore": {
4060
- "type": "string",
4061
- "format": "date-time"
4062
- },
4063
- "notAfter": {
4064
- "type": "string",
4065
- "format": "date-time"
4066
5717
  },
4067
- "publicKeyJWK": {},
4068
- "issuer": {
5718
+ {
4069
5719
  "type": "object",
4070
5720
  "properties": {
4071
- "dn": {
4072
- "$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": {}
4073
5745
  }
4074
5746
  },
4075
5747
  "required": [
4076
- "dn"
5748
+ "certificates",
5749
+ "issuerJWK",
5750
+ "jwks",
5751
+ "method",
5752
+ "x5c"
4077
5753
  ]
4078
5754
  },
4079
- "subject": {
5755
+ {
4080
5756
  "type": "object",
4081
5757
  "properties": {
4082
- "dn": {
4083
- "$ref": "#/components/schemas/DNInfo"
5758
+ "method": {
5759
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
4084
5760
  },
4085
- "subjectAlternativeNames": {
5761
+ "jwks": {
4086
5762
  "type": "array",
4087
5763
  "items": {
4088
- "$ref": "#/components/schemas/SubjectAlternativeName"
5764
+ "$ref": "#/components/schemas/ExternalJwkInfo"
4089
5765
  }
5766
+ },
5767
+ "jwk": {
5768
+ "$ref": "#/components/schemas/JWK"
5769
+ },
5770
+ "x5c": {
5771
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
4090
5772
  }
4091
5773
  },
4092
5774
  "required": [
4093
- "dn",
4094
- "subjectAlternativeNames"
5775
+ "jwk",
5776
+ "jwks",
5777
+ "method"
4095
5778
  ]
4096
- }
4097
- },
4098
- "required": [
4099
- "notBefore",
4100
- "notAfter",
4101
- "issuer",
4102
- "subject"
4103
- ]
4104
- },
4105
- "DNInfo": {
4106
- "type": "object",
4107
- "properties": {
4108
- "DN": {
4109
- "type": "string"
4110
5779
  },
4111
- "attributes": {
5780
+ {
4112
5781
  "type": "object",
4113
- "additionalProperties": {
4114
- "type": "string"
4115
- }
4116
- }
4117
- },
4118
- "required": [
4119
- "DN",
4120
- "attributes"
4121
- ]
4122
- },
4123
- "SubjectAlternativeName": {
4124
- "type": "object",
4125
- "properties": {
4126
- "value": {
4127
- "type": "string"
4128
- },
4129
- "type": {
4130
- "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
4131
- }
4132
- },
4133
- "required": [
4134
- "value",
4135
- "type"
4136
- ]
4137
- },
4138
- "SubjectAlternativeGeneralName": {
4139
- "type": "number",
4140
- "enum": [
4141
- 1,
4142
- 2,
4143
- 6,
4144
- 7
4145
- ],
4146
- "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 }"
4147
- },
4148
- "ExternalIdentifierX5cResult": {
4149
- "type": "object",
4150
- "properties": {
4151
- "method": {
4152
- "type": "string",
4153
- "const": "x5c"
4154
- },
4155
- "jwks": {
4156
- "type": "array",
4157
- "items": {
4158
- "$ref": "#/components/schemas/ExternalJwkInfo"
4159
- }
4160
- },
4161
- "x5c": {
4162
- "type": "array",
4163
- "items": {
4164
- "type": "string"
4165
- }
4166
- },
4167
- "issuerJWK": {
4168
- "$ref": "#/components/schemas/JWK"
4169
- },
4170
- "verificationResult": {
4171
- "$ref": "#/components/schemas/X509ValidationResult"
4172
- },
4173
- "certificates": {
4174
- "type": "array",
4175
- "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
+ ]
4176
5804
  }
4177
- },
4178
- "required": [
4179
- "certificates",
4180
- "issuerJWK",
4181
- "jwks",
4182
- "method",
4183
- "x5c"
4184
5805
  ]
4185
5806
  }
4186
5807
  },
@@ -4191,7 +5812,7 @@
4191
5812
  "$ref": "#/components/schemas/CreateJwsCompactArgs"
4192
5813
  },
4193
5814
  "returnType": {
4194
- "$ref": "#/components/schemas/JwsCompactResult"
5815
+ "$ref": "#/components/schemas/JwtCompactResult"
4195
5816
  }
4196
5817
  },
4197
5818
  "jwtCreateJwsJsonFlattenedSignature": {
@@ -4212,6 +5833,24 @@
4212
5833
  "$ref": "#/components/schemas/JwsJsonGeneral"
4213
5834
  }
4214
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
+ },
4215
5854
  "jwtPrepareJws": {
4216
5855
  "description": "",
4217
5856
  "arguments": {