@sphereon/ssi-sdk-ext.jwt-service 0.24.1-unstable.130 → 0.24.1-unstable.133

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.
@@ -906,12 +906,12 @@
906
906
  ]
907
907
  },
908
908
  "protectedHeader": {
909
- "$ref": "#/components/schemas/JwtHeader"
909
+ "$ref": "#/components/schemas/JwsHeader"
910
910
  },
911
911
  "payload": {
912
912
  "anyOf": [
913
913
  {
914
- "$ref": "#/components/schemas/JwtPayload"
914
+ "$ref": "#/components/schemas/JwsPayload"
915
915
  },
916
916
  {
917
917
  "type": "object",
@@ -1857,7 +1857,7 @@
1857
1857
  ],
1858
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"
1859
1859
  },
1860
- "JwtHeader": {
1860
+ "JwsHeader": {
1861
1861
  "type": "object",
1862
1862
  "properties": {
1863
1863
  "typ": {
@@ -1881,7 +1881,7 @@
1881
1881
  },
1882
1882
  "additionalProperties": {}
1883
1883
  },
1884
- "JwtPayload": {
1884
+ "JwsPayload": {
1885
1885
  "type": "object",
1886
1886
  "additionalProperties": {},
1887
1887
  "properties": {
@@ -1918,11 +1918,18 @@
1918
1918
  }
1919
1919
  }
1920
1920
  },
1921
- "JwsCompactResult": {
1921
+ "JwtCompactResult": {
1922
1922
  "type": "object",
1923
1923
  "properties": {
1924
1924
  "jwt": {
1925
- "$ref": "#/components/schemas/JwsCompact"
1925
+ "anyOf": [
1926
+ {
1927
+ "$ref": "#/components/schemas/JwsCompact"
1928
+ },
1929
+ {
1930
+ "$ref": "#/components/schemas/JweCompact"
1931
+ }
1932
+ ]
1926
1933
  }
1927
1934
  },
1928
1935
  "required": [
@@ -1932,6 +1939,9 @@
1932
1939
  "JwsCompact": {
1933
1940
  "type": "string"
1934
1941
  },
1942
+ "JweCompact": {
1943
+ "type": "string"
1944
+ },
1935
1945
  "CreateJwsFlattenedArgs": {
1936
1946
  "$ref": "#/components/schemas/CreateJwsJsonArgs"
1937
1947
  },
@@ -1939,7 +1949,7 @@
1939
1949
  "type": "object",
1940
1950
  "properties": {
1941
1951
  "unprotectedHeader": {
1942
- "$ref": "#/components/schemas/JwtHeader"
1952
+ "$ref": "#/components/schemas/JwsHeader"
1943
1953
  },
1944
1954
  "existingSignatures": {
1945
1955
  "type": "array",
@@ -2845,12 +2855,12 @@
2845
2855
  ]
2846
2856
  },
2847
2857
  "protectedHeader": {
2848
- "$ref": "#/components/schemas/JwtHeader"
2858
+ "$ref": "#/components/schemas/JwsHeader"
2849
2859
  },
2850
2860
  "payload": {
2851
2861
  "anyOf": [
2852
2862
  {
2853
- "$ref": "#/components/schemas/JwtPayload"
2863
+ "$ref": "#/components/schemas/JwsPayload"
2854
2864
  },
2855
2865
  {
2856
2866
  "type": "object",
@@ -2914,7 +2924,7 @@
2914
2924
  "type": "string"
2915
2925
  },
2916
2926
  "header": {
2917
- "$ref": "#/components/schemas/JwtHeader"
2927
+ "$ref": "#/components/schemas/JwsHeader"
2918
2928
  },
2919
2929
  "signature": {
2920
2930
  "type": "string"
@@ -2935,7 +2945,7 @@
2935
2945
  "type": "string"
2936
2946
  },
2937
2947
  "header": {
2938
- "$ref": "#/components/schemas/JwtHeader"
2948
+ "$ref": "#/components/schemas/JwsHeader"
2939
2949
  },
2940
2950
  "signature": {
2941
2951
  "type": "string"
@@ -2965,106 +2975,29 @@
2965
2975
  "signatures"
2966
2976
  ]
2967
2977
  },
2968
- "PreparedJwsObject": {
2969
- "type": "object",
2970
- "properties": {
2971
- "jws": {
2972
- "$ref": "#/components/schemas/PreparedJws"
2973
- },
2974
- "b64": {
2975
- "type": "object",
2976
- "properties": {
2977
- "payload": {
2978
- "type": "string"
2979
- },
2980
- "protectedHeader": {
2981
- "type": "string"
2982
- }
2983
- },
2984
- "required": [
2985
- "payload",
2986
- "protectedHeader"
2987
- ]
2988
- },
2989
- "identifier": {
2990
- "$ref": "#/components/schemas/ManagedIdentifierResult"
2991
- }
2992
- },
2993
- "required": [
2994
- "jws",
2995
- "b64",
2996
- "identifier"
2997
- ]
2998
- },
2999
- "PreparedJws": {
2978
+ "DecryptJweCompactJwtArgs": {
3000
2979
  "type": "object",
3001
2980
  "properties": {
3002
- "protectedHeader": {
3003
- "$ref": "#/components/schemas/JwtHeader"
3004
- },
3005
- "payload": {
3006
- "type": "object",
3007
- "properties": {
3008
- "BYTES_PER_ELEMENT": {
3009
- "type": "number"
3010
- },
3011
- "buffer": {
3012
- "anyOf": [
3013
- {
3014
- "type": "object",
3015
- "properties": {
3016
- "byteLength": {
3017
- "type": "number"
3018
- }
3019
- },
3020
- "required": [
3021
- "byteLength"
3022
- ]
3023
- },
3024
- {}
3025
- ]
3026
- },
3027
- "byteLength": {
3028
- "type": "number"
3029
- },
3030
- "byteOffset": {
3031
- "type": "number"
3032
- },
3033
- "length": {
3034
- "type": "number"
3035
- }
3036
- },
3037
- "required": [
3038
- "BYTES_PER_ELEMENT",
3039
- "buffer",
3040
- "byteLength",
3041
- "byteOffset",
3042
- "length"
3043
- ],
3044
- "additionalProperties": {
3045
- "type": "number"
3046
- }
3047
- },
3048
- "unprotectedHeader": {
3049
- "$ref": "#/components/schemas/JwtHeader"
2981
+ "jwe": {
2982
+ "$ref": "#/components/schemas/JweCompact"
3050
2983
  },
3051
- "existingSignatures": {
3052
- "type": "array",
3053
- "items": {
3054
- "$ref": "#/components/schemas/JwsJsonSignature"
3055
- }
2984
+ "idOpts": {
2985
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
3056
2986
  }
3057
2987
  },
3058
2988
  "required": [
3059
- "protectedHeader",
3060
- "payload"
2989
+ "jwe",
2990
+ "idOpts"
3061
2991
  ]
3062
2992
  },
3063
- "ManagedIdentifierResult": {
2993
+ "ManagedIdentifierOptsOrResult": {
3064
2994
  "anyOf": [
3065
2995
  {
3066
2996
  "type": "object",
3067
2997
  "properties": {
2998
+ "lazyDisabled": {
2999
+ "type": "boolean"
3000
+ },
3068
3001
  "jwk": {
3069
3002
  "$ref": "#/components/schemas/JWK"
3070
3003
  },
@@ -3132,6 +3065,9 @@
3132
3065
  {
3133
3066
  "type": "object",
3134
3067
  "properties": {
3068
+ "lazyDisabled": {
3069
+ "type": "boolean"
3070
+ },
3135
3071
  "jwk": {
3136
3072
  "$ref": "#/components/schemas/JWK"
3137
3073
  },
@@ -3209,6 +3145,9 @@
3209
3145
  {
3210
3146
  "type": "object",
3211
3147
  "properties": {
3148
+ "lazyDisabled": {
3149
+ "type": "boolean"
3150
+ },
3212
3151
  "jwk": {
3213
3152
  "$ref": "#/components/schemas/JWK"
3214
3153
  },
@@ -3267,6 +3206,9 @@
3267
3206
  {
3268
3207
  "type": "object",
3269
3208
  "properties": {
3209
+ "lazyDisabled": {
3210
+ "type": "boolean"
3211
+ },
3270
3212
  "jwk": {
3271
3213
  "$ref": "#/components/schemas/JWK"
3272
3214
  },
@@ -3326,6 +3268,9 @@
3326
3268
  {
3327
3269
  "type": "object",
3328
3270
  "properties": {
3271
+ "lazyDisabled": {
3272
+ "type": "boolean"
3273
+ },
3329
3274
  "jwk": {
3330
3275
  "$ref": "#/components/schemas/JWK"
3331
3276
  },
@@ -3384,6 +3329,9 @@
3384
3329
  {
3385
3330
  "type": "object",
3386
3331
  "properties": {
3332
+ "lazyDisabled": {
3333
+ "type": "boolean"
3334
+ },
3387
3335
  "jwk": {
3388
3336
  "$ref": "#/components/schemas/JWK"
3389
3337
  },
@@ -3442,6 +3390,9 @@
3442
3390
  {
3443
3391
  "type": "object",
3444
3392
  "properties": {
3393
+ "lazyDisabled": {
3394
+ "type": "boolean"
3395
+ },
3445
3396
  "jwk": {
3446
3397
  "$ref": "#/components/schemas/JWK"
3447
3398
  },
@@ -3496,525 +3447,592 @@
3496
3447
  "method",
3497
3448
  "opts"
3498
3449
  ]
3499
- }
3500
- ]
3501
- },
3502
- "VerifyJwsArgs": {
3503
- "type": "object",
3504
- "properties": {
3505
- "jws": {
3506
- "$ref": "#/components/schemas/Jws"
3507
- },
3508
- "jwk": {
3509
- "$ref": "#/components/schemas/JWK"
3510
3450
  },
3511
- "opts": {
3451
+ {
3512
3452
  "type": "object",
3513
3453
  "properties": {
3514
- "x5c": {
3515
- "type": "object",
3516
- "properties": {
3517
- "trustRootWhenNoAnchors": {
3518
- "type": "boolean"
3519
- },
3520
- "allowSingleNoCAChainElement": {
3521
- "type": "boolean"
3522
- },
3523
- "blindlyTrustedAnchors": {
3524
- "allOf": [
3525
- {
3526
- "type": "array",
3527
- "items": {
3528
- "type": "string"
3529
- }
3530
- },
3531
- {
3532
- "type": "object",
3533
- "properties": {}
3534
- }
3535
- ]
3536
- },
3537
- "client": {
3538
- "type": "object",
3539
- "properties": {
3540
- "clientId": {
3541
- "type": "string"
3542
- },
3543
- "clientIdScheme": {
3544
- "$ref": "#/components/schemas/ClientIdScheme"
3545
- }
3546
- },
3547
- "required": [
3548
- "clientId",
3549
- "clientIdScheme"
3550
- ]
3551
- },
3552
- "method": {
3553
- "type": "object",
3554
- "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"
3555
3480
  },
3556
- "verify": {
3557
- "type": "boolean"
3481
+ {
3482
+ "type": "string",
3483
+ "const": "did"
3558
3484
  },
3559
- "verificationTime": {
3485
+ {
3560
3486
  "type": "string"
3561
- },
3562
- "trustAnchors": {
3563
- "allOf": [
3564
- {
3565
- "type": "array",
3566
- "items": {
3567
- "type": "string"
3568
- }
3569
- },
3570
- {
3571
- "type": "object",
3572
- "properties": {}
3573
- }
3574
- ]
3575
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"
3576
3509
  }
3577
3510
  },
3578
- "did": {
3579
- "type": "object",
3580
- "properties": {
3581
- "method": {
3582
- "type": "object",
3583
- "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"
3584
3527
  },
3585
- "noVerificationMethodFallback": {
3586
- "type": "boolean"
3528
+ {
3529
+ "type": "string",
3530
+ "const": "did"
3587
3531
  },
3588
- "vmRelationship": {
3589
- "anyOf": [
3590
- {
3591
- "type": "object",
3592
- "properties": {}
3593
- },
3594
- {
3595
- "type": "object",
3596
- "properties": {}
3597
- },
3598
- {
3599
- "type": "object",
3600
- "properties": {}
3601
- },
3602
- {
3603
- "type": "object",
3604
- "properties": {}
3605
- },
3606
- {
3607
- "type": "object",
3608
- "properties": {}
3609
- },
3610
- {
3611
- "type": "object",
3612
- "properties": {}
3613
- },
3614
- {
3615
- "type": "object",
3616
- "properties": {}
3617
- },
3618
- {
3619
- "type": "object",
3620
- "properties": {}
3621
- }
3622
- ]
3623
- },
3624
- "localResolution": {
3625
- "type": "boolean"
3626
- },
3627
- "uniresolverResolution": {
3628
- "type": "boolean"
3629
- },
3630
- "resolverResolution": {
3631
- "type": "boolean"
3532
+ {
3533
+ "type": "string"
3632
3534
  }
3633
- }
3535
+ ]
3634
3536
  }
3635
- }
3636
- }
3637
- },
3638
- "required": [
3639
- "jws"
3640
- ]
3641
- },
3642
- "Jws": {
3643
- "anyOf": [
3644
- {
3645
- "$ref": "#/components/schemas/JwsCompact"
3646
- },
3647
- {
3648
- "$ref": "#/components/schemas/JwsJsonFlattened"
3649
- },
3650
- {
3651
- "$ref": "#/components/schemas/JwsJsonGeneral"
3652
- }
3653
- ]
3654
- },
3655
- "IJwsValidationResult": {
3656
- "type": "object",
3657
- "properties": {
3658
- "jws": {
3659
- "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
3660
- },
3661
- "name": {
3662
- "type": "string",
3663
- "description": "The name of the validation or its subsystem. Mainly used for information purposes. Not assumed to be unique"
3664
- },
3665
- "error": {
3666
- "type": "boolean",
3667
- "description": "Whether the validation was successful or not"
3668
- },
3669
- "critical": {
3670
- "type": "boolean",
3671
- "description": "Whether an error can be ignored or not (up to processing logic)"
3672
- },
3673
- "message": {
3674
- "type": "string",
3675
- "description": "Any status/info message about the validation"
3676
- },
3677
- "verificationTime": {
3678
- "type": "string",
3679
- "format": "date-time",
3680
- "description": "The date and time of the validation"
3681
- }
3682
- },
3683
- "required": [
3684
- "critical",
3685
- "error",
3686
- "jws",
3687
- "message",
3688
- "name",
3689
- "verificationTime"
3690
- ]
3691
- },
3692
- "JwsJsonGeneralWithIdentifiers": {
3693
- "type": "object",
3694
- "properties": {
3695
- "payload": {
3696
- "type": "string"
3697
- },
3698
- "signatures": {
3699
- "type": "array",
3700
- "items": {
3701
- "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
3702
- }
3703
- }
3704
- },
3705
- "required": [
3706
- "payload",
3707
- "signatures"
3708
- ]
3709
- },
3710
- "JwsJsonSignatureWithIdentifier": {
3711
- "type": "object",
3712
- "properties": {
3713
- "protected": {
3714
- "type": "string"
3715
- },
3716
- "header": {
3717
- "$ref": "#/components/schemas/JwtHeader"
3718
- },
3719
- "signature": {
3720
- "type": "string"
3537
+ },
3538
+ "required": [
3539
+ "identifier"
3540
+ ]
3721
3541
  },
3722
- "identifier": {
3723
- "$ref": "#/components/schemas/ExternalIdentifierResult"
3724
- }
3725
- },
3726
- "required": [
3727
- "identifier",
3728
- "protected",
3729
- "signature"
3730
- ]
3731
- },
3732
- "ExternalIdentifierResult": {
3733
- "anyOf": [
3734
3542
  {
3735
3543
  "type": "object",
3736
3544
  "properties": {
3545
+ "lazyDisabled": {
3546
+ "type": "boolean"
3547
+ },
3737
3548
  "method": {
3738
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3549
+ "type": "string",
3550
+ "const": "did"
3739
3551
  },
3740
- "jwks": {
3741
- "type": "array",
3742
- "items": {
3743
- "$ref": "#/components/schemas/ExternalJwkInfo"
3744
- }
3552
+ "identifier": {
3553
+ "anyOf": [
3554
+ {
3555
+ "$ref": "#/components/schemas/IIdentifier"
3556
+ },
3557
+ {
3558
+ "type": "string"
3559
+ }
3560
+ ]
3745
3561
  },
3746
- "did": {
3562
+ "kmsKeyRef": {
3747
3563
  "type": "string"
3748
3564
  },
3749
- "didDocument": {
3750
- "$ref": "#/components/schemas/DIDDocument"
3565
+ "issuer": {
3566
+ "type": "string"
3751
3567
  },
3752
- "didJwks": {
3753
- "$ref": "#/components/schemas/DidDocumentJwks"
3568
+ "kid": {
3569
+ "type": "string"
3754
3570
  },
3755
- "didResolutionResult": {
3756
- "type": "object",
3757
- "properties": {
3758
- "@context": {
3759
- "anyOf": [
3760
- {
3761
- "type": "string",
3762
- "const": "https://w3id.org/did-resolution/v1"
3763
- },
3764
- {
3765
- "type": "string"
3766
- },
3767
- {
3768
- "type": "array",
3769
- "items": {
3770
- "type": "string"
3771
- }
3772
- }
3773
- ]
3571
+ "clientId": {
3572
+ "type": "string"
3573
+ },
3574
+ "clientIdScheme": {
3575
+ "anyOf": [
3576
+ {
3577
+ "$ref": "#/components/schemas/ClientIdScheme"
3774
3578
  },
3775
- "didResolutionMetadata": {
3776
- "$ref": "#/components/schemas/DIDResolutionMetadata"
3579
+ {
3580
+ "type": "string",
3581
+ "const": "did"
3777
3582
  },
3778
- "didDocumentMetadata": {
3779
- "$ref": "#/components/schemas/DIDDocumentMetadata"
3583
+ {
3584
+ "type": "string"
3780
3585
  }
3781
- },
3782
- "required": [
3783
- "didResolutionMetadata",
3784
- "didDocumentMetadata"
3785
3586
  ]
3786
3587
  },
3787
- "didParsed": {
3788
- "$ref": "#/components/schemas/IParsedDID"
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"
3789
3602
  }
3790
3603
  },
3791
3604
  "required": [
3792
- "did",
3793
- "didParsed",
3794
- "didResolutionResult",
3795
- "jwks",
3796
- "method"
3605
+ "identifier"
3797
3606
  ]
3798
3607
  },
3799
3608
  {
3800
3609
  "type": "object",
3801
3610
  "properties": {
3611
+ "lazyDisabled": {
3612
+ "type": "boolean"
3613
+ },
3802
3614
  "method": {
3803
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3615
+ "type": "string",
3616
+ "const": "kid"
3804
3617
  },
3805
- "jwks": {
3806
- "type": "array",
3807
- "items": {
3808
- "$ref": "#/components/schemas/ExternalJwkInfo"
3809
- }
3618
+ "identifier": {
3619
+ "type": "string"
3810
3620
  },
3811
- "x5c": {
3812
- "type": "array",
3813
- "items": {
3814
- "type": "string"
3815
- }
3621
+ "kmsKeyRef": {
3622
+ "type": "string"
3816
3623
  },
3817
- "issuerJWK": {
3818
- "$ref": "#/components/schemas/JWK"
3624
+ "issuer": {
3625
+ "type": "string"
3819
3626
  },
3820
- "verificationResult": {
3821
- "$ref": "#/components/schemas/X509ValidationResult"
3627
+ "kid": {
3628
+ "type": "string"
3822
3629
  },
3823
- "certificates": {
3824
- "type": "array",
3825
- "items": {}
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
+ ]
3826
3646
  }
3827
3647
  },
3828
3648
  "required": [
3829
- "certificates",
3830
- "issuerJWK",
3831
- "jwks",
3832
- "method",
3833
- "x5c"
3649
+ "identifier"
3834
3650
  ]
3835
3651
  },
3836
3652
  {
3837
3653
  "type": "object",
3838
3654
  "properties": {
3655
+ "lazyDisabled": {
3656
+ "type": "boolean"
3657
+ },
3839
3658
  "method": {
3840
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3659
+ "type": "string",
3660
+ "const": "key"
3841
3661
  },
3842
- "jwks": {
3843
- "type": "array",
3844
- "items": {
3845
- "$ref": "#/components/schemas/ExternalJwkInfo"
3846
- }
3662
+ "identifier": {
3663
+ "$ref": "#/components/schemas/IKey"
3847
3664
  },
3848
- "jwk": {
3849
- "$ref": "#/components/schemas/JWK"
3665
+ "kmsKeyRef": {
3666
+ "type": "string"
3850
3667
  },
3851
- "x5c": {
3852
- "$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
+ ]
3853
3690
  }
3854
3691
  },
3855
3692
  "required": [
3856
- "jwk",
3857
- "jwks",
3858
- "method"
3693
+ "identifier"
3859
3694
  ]
3860
3695
  },
3861
3696
  {
3862
3697
  "type": "object",
3863
3698
  "properties": {
3864
- "method": {
3865
- "$ref": "#/components/schemas/ExternalIdentifierMethod"
3699
+ "lazyDisabled": {
3700
+ "type": "boolean"
3866
3701
  },
3867
- "jwks": {
3868
- "type": "array",
3869
- "items": {
3870
- "$ref": "#/components/schemas/ExternalJwkInfo"
3871
- }
3702
+ "method": {
3703
+ "type": "string",
3704
+ "const": "cose_key"
3872
3705
  },
3873
- "coseKey": {
3706
+ "identifier": {
3874
3707
  "$ref": "#/components/schemas/ICoseKeyJson"
3875
3708
  },
3876
- "x5c": {
3877
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
3709
+ "kmsKeyRef": {
3710
+ "type": "string"
3711
+ },
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
+ ]
3878
3734
  }
3879
3735
  },
3880
3736
  "required": [
3881
- "coseKey",
3882
- "jwks",
3883
- "method"
3737
+ "identifier"
3738
+ ]
3739
+ },
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
+ }
3779
+ },
3780
+ "required": [
3781
+ "identifier"
3884
3782
  ]
3885
3783
  }
3886
3784
  ]
3887
3785
  },
3888
- "ExternalIdentifierMethod": {
3889
- "type": "string",
3890
- "enum": [
3891
- "did",
3892
- "jwk",
3893
- "x5c",
3894
- "kid",
3895
- "cose_key",
3896
- "oidc-discovery",
3897
- "jwks-url",
3898
- "oid4vci-issuer"
3899
- ]
3900
- },
3901
- "ExternalJwkInfo": {
3786
+ "EncryptJweCompactJwtArgs": {
3902
3787
  "type": "object",
3903
3788
  "properties": {
3904
- "jwk": {
3905
- "$ref": "#/components/schemas/JWK"
3906
- },
3907
- "jwkThumbprint": {
3908
- "type": "string"
3789
+ "payload": {
3790
+ "$ref": "#/components/schemas/JwsPayload"
3909
3791
  },
3910
- "kid": {
3911
- "type": "string"
3792
+ "protectedHeader": {
3793
+ "$ref": "#/components/schemas/JweProtectedHeader"
3912
3794
  },
3913
- "publicKeyHex": {
3914
- "type": "string"
3915
- }
3916
- },
3917
- "required": [
3918
- "jwk",
3919
- "jwkThumbprint",
3920
- "publicKeyHex"
3921
- ]
3922
- },
3923
- "DIDDocument": {
3924
- "type": "object",
3925
- "properties": {
3926
- "authentication": {
3927
- "type": "array",
3928
- "items": {
3929
- "anyOf": [
3930
- {
3931
- "type": "string"
3932
- },
3933
- {
3934
- "$ref": "#/components/schemas/VerificationMethod"
3935
- }
3936
- ]
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"
3937
3836
  }
3938
3837
  },
3939
- "assertionMethod": {
3940
- "type": "array",
3941
- "items": {
3942
- "anyOf": [
3943
- {
3944
- "type": "string"
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
+ }
3945
3899
  },
3946
- {
3947
- "$ref": "#/components/schemas/VerificationMethod"
3948
- }
3949
- ]
3950
- }
3951
- },
3952
- "keyAgreement": {
3953
- "type": "array",
3954
- "items": {
3955
- "anyOf": [
3956
- {
3957
- "type": "string"
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
+ }
3958
3939
  },
3959
- {
3960
- "$ref": "#/components/schemas/VerificationMethod"
3961
- }
3962
- ]
3963
- }
3964
- },
3965
- "capabilityInvocation": {
3966
- "type": "array",
3967
- "items": {
3968
- "anyOf": [
3969
- {
3970
- "type": "string"
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
+ }
3971
3969
  },
3972
- {
3973
- "$ref": "#/components/schemas/VerificationMethod"
3974
- }
3975
- ]
3976
- }
3977
- },
3978
- "capabilityDelegation": {
3979
- "type": "array",
3980
- "items": {
3981
- "anyOf": [
3982
- {
3983
- "type": "string"
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
+ }
3984
3997
  },
3985
- {
3986
- "$ref": "#/components/schemas/VerificationMethod"
3987
- }
3988
- ]
3989
- }
3998
+ "required": [
3999
+ "coseKey",
4000
+ "jwks",
4001
+ "method"
4002
+ ]
4003
+ }
4004
+ ]
3990
4005
  },
3991
- "@context": {
4006
+ "alg": {
4007
+ "$ref": "#/components/schemas/JweAlg"
4008
+ },
4009
+ "enc": {
4010
+ "$ref": "#/components/schemas/JweEnc"
4011
+ },
4012
+ "apu": {
4013
+ "type": "string"
4014
+ },
4015
+ "apv": {
4016
+ "type": "string"
4017
+ },
4018
+ "expirationTime": {
3992
4019
  "anyOf": [
3993
4020
  {
3994
- "type": "string",
3995
- "const": "https://www.w3.org/ns/did/v1"
4021
+ "type": "number"
3996
4022
  },
3997
4023
  {
3998
4024
  "type": "string"
3999
4025
  },
4000
4026
  {
4001
- "type": "array",
4002
- "items": {
4003
- "type": "string"
4004
- }
4027
+ "type": "string",
4028
+ "format": "date-time"
4005
4029
  }
4006
4030
  ]
4007
4031
  },
4008
- "id": {
4032
+ "issuer": {
4009
4033
  "type": "string"
4010
4034
  },
4011
- "alsoKnownAs": {
4012
- "type": "array",
4013
- "items": {
4014
- "type": "string"
4015
- }
4016
- },
4017
- "controller": {
4035
+ "audience": {
4018
4036
  "anyOf": [
4019
4037
  {
4020
4038
  "type": "string"
@@ -4026,525 +4044,1764 @@
4026
4044
  }
4027
4045
  }
4028
4046
  ]
4029
- },
4030
- "verificationMethod": {
4031
- "type": "array",
4032
- "items": {
4033
- "$ref": "#/components/schemas/VerificationMethod"
4034
- }
4035
- },
4036
- "service": {
4037
- "type": "array",
4038
- "items": {
4039
- "$ref": "#/components/schemas/Service"
4040
- }
4041
- },
4042
- "publicKey": {
4043
- "type": "array",
4044
- "items": {
4045
- "$ref": "#/components/schemas/VerificationMethod"
4046
- },
4047
- "deprecated": true
4048
4047
  }
4049
4048
  },
4050
4049
  "required": [
4051
- "id"
4052
- ],
4053
- "description": "Represents a DID document."
4050
+ "payload",
4051
+ "recipientKey"
4052
+ ]
4054
4053
  },
4055
- "VerificationMethod": {
4054
+ "JweProtectedHeader": {
4056
4055
  "type": "object",
4057
4056
  "properties": {
4058
- "id": {
4059
- "type": "string"
4060
- },
4061
- "type": {
4062
- "type": "string"
4063
- },
4064
- "controller": {
4065
- "type": "string"
4066
- },
4067
- "publicKeyBase58": {
4057
+ "alg": {
4068
4058
  "type": "string"
4069
4059
  },
4070
- "publicKeyBase64": {
4060
+ "enc": {
4071
4061
  "type": "string"
4072
4062
  },
4073
- "publicKeyJwk": {
4074
- "$ref": "#/components/schemas/JsonWebKey"
4075
- },
4076
- "publicKeyHex": {
4063
+ "jku": {
4077
4064
  "type": "string"
4078
4065
  },
4079
- "publicKeyMultibase": {
4080
- "type": "string"
4066
+ "jwk": {
4067
+ "$ref": "#/components/schemas/BaseJWK"
4081
4068
  },
4082
- "blockchainAccountId": {
4083
- "type": "string"
4069
+ "epk": {
4070
+ "$ref": "#/components/schemas/EphemeralPublicKey"
4084
4071
  },
4085
- "ethereumAddress": {
4072
+ "x5u": {
4086
4073
  "type": "string"
4087
4074
  },
4088
- "conditionOr": {
4089
- "type": "array",
4090
- "items": {
4091
- "$ref": "#/components/schemas/VerificationMethod"
4092
- }
4093
- },
4094
- "conditionAnd": {
4095
- "type": "array",
4096
- "items": {
4097
- "$ref": "#/components/schemas/VerificationMethod"
4098
- }
4099
- },
4100
- "threshold": {
4101
- "type": "number"
4102
- },
4103
- "conditionThreshold": {
4104
- "type": "array",
4105
- "items": {
4106
- "$ref": "#/components/schemas/VerificationMethod"
4107
- }
4108
- },
4109
- "conditionWeightedThreshold": {
4075
+ "x5c": {
4110
4076
  "type": "array",
4111
4077
  "items": {
4112
- "$ref": "#/components/schemas/ConditionWeightedThreshold"
4078
+ "type": "string"
4113
4079
  }
4114
4080
  },
4115
- "conditionDelegated": {
4081
+ "x5t": {
4116
4082
  "type": "string"
4117
4083
  },
4118
- "relationshipParent": {
4119
- "type": "array",
4120
- "items": {
4121
- "type": "string"
4122
- }
4084
+ "cty": {
4085
+ "type": "string"
4123
4086
  },
4124
- "relationshipChild": {
4087
+ "crit": {
4125
4088
  "type": "array",
4126
4089
  "items": {
4127
4090
  "type": "string"
4128
4091
  }
4129
4092
  },
4130
- "relationshipSibling": {
4131
- "type": "array",
4132
- "items": {
4133
- "type": "string"
4134
- }
4093
+ "typ": {},
4094
+ "kid": {},
4095
+ "zip": {
4096
+ "type": "string"
4135
4097
  }
4136
- },
4137
- "required": [
4138
- "id",
4139
- "type",
4140
- "controller"
4141
- ],
4142
- "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
+ }
4143
4099
  },
4144
- "JsonWebKey": {
4100
+ "BaseJWK": {
4145
4101
  "type": "object",
4146
4102
  "properties": {
4147
- "alg": {
4148
- "type": "string"
4103
+ "kty": {
4104
+ "anyOf": [
4105
+ {
4106
+ "$ref": "#/components/schemas/JwkKeyType"
4107
+ },
4108
+ {
4109
+ "$ref": "#/components/schemas/JwkKeyTypeString"
4110
+ }
4111
+ ]
4149
4112
  },
4150
4113
  "crv": {
4151
- "type": "string"
4152
- },
4153
- "e": {
4154
- "type": "string"
4114
+ "anyOf": [
4115
+ {
4116
+ "$ref": "#/components/schemas/JoseCurve"
4117
+ },
4118
+ {
4119
+ "$ref": "#/components/schemas/JoseCurveString"
4120
+ }
4121
+ ]
4155
4122
  },
4156
- "ext": {
4157
- "type": "boolean"
4123
+ "alg": {
4124
+ "anyOf": [
4125
+ {
4126
+ "$ref": "#/components/schemas/JoseSignatureAlgorithm"
4127
+ },
4128
+ {
4129
+ "$ref": "#/components/schemas/JoseSignatureAlgorithmString"
4130
+ }
4131
+ ]
4158
4132
  },
4159
- "key_ops": {
4160
- "type": "array",
4161
- "items": {
4162
- "type": "string"
4163
- }
4133
+ "x": {
4134
+ "type": "string"
4164
4135
  },
4165
- "kid": {
4136
+ "y": {
4166
4137
  "type": "string"
4167
4138
  },
4168
- "kty": {
4139
+ "e": {
4169
4140
  "type": "string"
4170
4141
  },
4171
4142
  "n": {
4172
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
+ ]
4173
4163
  },
4174
- "use": {
4175
- "type": "string"
4164
+ "crv": {
4165
+ "anyOf": [
4166
+ {
4167
+ "$ref": "#/components/schemas/JoseCurve"
4168
+ },
4169
+ {
4170
+ "$ref": "#/components/schemas/JoseCurveString"
4171
+ }
4172
+ ]
4176
4173
  },
4177
4174
  "x": {
4178
4175
  "type": "string"
4179
4176
  },
4180
4177
  "y": {
4181
4178
  "type": "string"
4179
+ },
4180
+ "e": {
4181
+ "type": "string"
4182
+ },
4183
+ "n": {
4184
+ "type": "string"
4182
4185
  }
4183
4186
  },
4184
4187
  "required": [
4185
4188
  "kty"
4186
4189
  ],
4187
- "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"
4188
4191
  },
4189
- "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": {
4190
4206
  "type": "object",
4191
4207
  "properties": {
4192
- "condition": {
4193
- "$ref": "#/components/schemas/VerificationMethod"
4208
+ "jwk": {
4209
+ "$ref": "#/components/schemas/JWK"
4194
4210
  },
4195
- "weight": {
4196
- "type": "number"
4211
+ "jwkThumbprint": {
4212
+ "type": "string"
4213
+ },
4214
+ "kid": {
4215
+ "type": "string"
4216
+ },
4217
+ "publicKeyHex": {
4218
+ "type": "string"
4197
4219
  }
4198
4220
  },
4199
4221
  "required": [
4200
- "condition",
4201
- "weight"
4222
+ "jwk",
4223
+ "jwkThumbprint",
4224
+ "publicKeyHex"
4202
4225
  ]
4203
4226
  },
4204
- "Service": {
4227
+ "DIDDocument": {
4205
4228
  "type": "object",
4206
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
+ },
4207
4312
  "id": {
4208
4313
  "type": "string"
4209
4314
  },
4210
- "type": {
4211
- "type": "string"
4315
+ "alsoKnownAs": {
4316
+ "type": "array",
4317
+ "items": {
4318
+ "type": "string"
4319
+ }
4212
4320
  },
4213
- "serviceEndpoint": {
4321
+ "controller": {
4214
4322
  "anyOf": [
4215
4323
  {
4216
- "$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
+ }
4217
5496
  },
4218
- {
4219
- "type": "array",
4220
- "items": {
4221
- "$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
+ }
4222
5552
  }
4223
5553
  }
4224
- ]
5554
+ }
4225
5555
  }
4226
5556
  },
4227
5557
  "required": [
4228
- "id",
4229
- "type",
4230
- "serviceEndpoint"
4231
- ],
4232
- "description": "Represents a Service entry in a {@link https://www.w3.org/TR/did-core/#did-document-properties | DID document } ."
5558
+ "jws"
5559
+ ]
4233
5560
  },
4234
- "ServiceEndpoint": {
5561
+ "Jws": {
4235
5562
  "anyOf": [
4236
5563
  {
4237
- "type": "string"
5564
+ "$ref": "#/components/schemas/JwsCompact"
4238
5565
  },
4239
5566
  {
4240
- "type": "object"
5567
+ "$ref": "#/components/schemas/JwsJsonFlattened"
5568
+ },
5569
+ {
5570
+ "$ref": "#/components/schemas/JwsJsonGeneral"
4241
5571
  }
4242
- ],
4243
- "description": "Represents an endpoint of a Service entry in a DID document."
5572
+ ]
4244
5573
  },
4245
- "DidDocumentJwks": {
5574
+ "IJwsValidationResult": {
4246
5575
  "type": "object",
4247
5576
  "properties": {
4248
- "verificationMethod": {
4249
- "type": "array",
4250
- "items": {
4251
- "$ref": "#/components/schemas/JWK"
4252
- }
5577
+ "jws": {
5578
+ "$ref": "#/components/schemas/JwsJsonGeneralWithIdentifiers"
4253
5579
  },
4254
- "authentication": {
4255
- "type": "array",
4256
- "items": {
4257
- "$ref": "#/components/schemas/JWK"
4258
- }
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"
4259
5583
  },
4260
- "assertionMethod": {
4261
- "type": "array",
4262
- "items": {
4263
- "$ref": "#/components/schemas/JWK"
4264
- }
5584
+ "error": {
5585
+ "type": "boolean",
5586
+ "description": "Whether the validation was successful or not"
4265
5587
  },
4266
- "keyAgreement": {
4267
- "type": "array",
4268
- "items": {
4269
- "$ref": "#/components/schemas/JWK"
4270
- }
5588
+ "critical": {
5589
+ "type": "boolean",
5590
+ "description": "Whether an error can be ignored or not (up to processing logic)"
4271
5591
  },
4272
- "capabilityInvocation": {
4273
- "type": "array",
4274
- "items": {
4275
- "$ref": "#/components/schemas/JWK"
4276
- }
5592
+ "message": {
5593
+ "type": "string",
5594
+ "description": "Any status/info message about the validation"
4277
5595
  },
4278
- "capabilityDelegation": {
4279
- "type": "array",
4280
- "items": {
4281
- "$ref": "#/components/schemas/JWK"
4282
- }
5596
+ "verificationTime": {
5597
+ "type": "string",
5598
+ "format": "date-time",
5599
+ "description": "The date and time of the validation"
4283
5600
  }
4284
5601
  },
4285
5602
  "required": [
4286
- "verificationMethod",
4287
- "authentication",
4288
- "assertionMethod",
4289
- "keyAgreement",
4290
- "capabilityInvocation",
4291
- "capabilityDelegation"
5603
+ "critical",
5604
+ "error",
5605
+ "jws",
5606
+ "message",
5607
+ "name",
5608
+ "verificationTime"
4292
5609
  ]
4293
5610
  },
4294
- "DIDResolutionMetadata": {
4295
- "type": "object",
4296
- "properties": {
4297
- "contentType": {
4298
- "type": "string"
4299
- },
4300
- "error": {
4301
- "type": "string"
4302
- }
4303
- },
4304
- "description": "Encapsulates the resolution metadata resulting from a {@link Resolvable.resolve } operation."
4305
- },
4306
- "DIDDocumentMetadata": {
5611
+ "JwsJsonGeneralWithIdentifiers": {
4307
5612
  "type": "object",
4308
5613
  "properties": {
4309
- "created": {
4310
- "type": "string"
4311
- },
4312
- "updated": {
4313
- "type": "string"
4314
- },
4315
- "deactivated": {
4316
- "type": "boolean"
4317
- },
4318
- "versionId": {
4319
- "type": "string"
4320
- },
4321
- "nextUpdate": {
4322
- "type": "string"
4323
- },
4324
- "nextVersionId": {
4325
- "type": "string"
4326
- },
4327
- "equivalentId": {
5614
+ "payload": {
4328
5615
  "type": "string"
4329
5616
  },
4330
- "canonicalId": {
4331
- "type": "string"
5617
+ "signatures": {
5618
+ "type": "array",
5619
+ "items": {
5620
+ "$ref": "#/components/schemas/JwsJsonSignatureWithIdentifier"
5621
+ }
4332
5622
  }
4333
5623
  },
4334
- "description": "Represents metadata about the DID document resulting from a {@link Resolvable.resolve } operation."
5624
+ "required": [
5625
+ "payload",
5626
+ "signatures"
5627
+ ]
4335
5628
  },
4336
- "IParsedDID": {
5629
+ "JwsJsonSignatureWithIdentifier": {
4337
5630
  "type": "object",
4338
5631
  "properties": {
4339
- "did": {
4340
- "type": "string"
4341
- },
4342
- "didUrl": {
4343
- "type": "string"
4344
- },
4345
- "method": {
4346
- "type": "string"
4347
- },
4348
- "id": {
4349
- "type": "string"
4350
- },
4351
- "path": {
5632
+ "protected": {
4352
5633
  "type": "string"
4353
5634
  },
4354
- "fragment": {
4355
- "type": "string"
5635
+ "header": {
5636
+ "$ref": "#/components/schemas/JwsHeader"
4356
5637
  },
4357
- "query": {
5638
+ "signature": {
4358
5639
  "type": "string"
4359
5640
  },
4360
- "params": {
4361
- "type": "object",
4362
- "additionalProperties": {
4363
- "type": "string"
4364
- }
5641
+ "identifier": {
5642
+ "$ref": "#/components/schemas/ExternalIdentifierResult"
4365
5643
  }
4366
5644
  },
4367
5645
  "required": [
4368
- "did",
4369
- "didUrl",
4370
- "method",
4371
- "id"
5646
+ "identifier",
5647
+ "protected",
5648
+ "signature"
4372
5649
  ]
4373
5650
  },
4374
- "X509ValidationResult": {
4375
- "type": "object",
4376
- "properties": {
4377
- "error": {
4378
- "type": "boolean"
4379
- },
4380
- "critical": {
4381
- "type": "boolean"
4382
- },
4383
- "message": {
4384
- "type": "string"
4385
- },
4386
- "verificationTime": {
4387
- "type": "string",
4388
- "format": "date-time"
4389
- },
4390
- "certificateChain": {
4391
- "type": "array",
4392
- "items": {
4393
- "$ref": "#/components/schemas/CertificateInfo"
4394
- }
4395
- },
4396
- "client": {
5651
+ "ExternalIdentifierResult": {
5652
+ "anyOf": [
5653
+ {
4397
5654
  "type": "object",
4398
5655
  "properties": {
4399
- "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": {
4400
5666
  "type": "string"
4401
5667
  },
4402
- "clientIdScheme": {
4403
- "$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"
4404
5708
  }
4405
5709
  },
4406
5710
  "required": [
4407
- "clientId",
4408
- "clientIdScheme"
5711
+ "did",
5712
+ "didParsed",
5713
+ "didResolutionResult",
5714
+ "jwks",
5715
+ "method"
4409
5716
  ]
4410
- }
4411
- },
4412
- "required": [
4413
- "error",
4414
- "critical",
4415
- "message",
4416
- "verificationTime"
4417
- ]
4418
- },
4419
- "CertificateInfo": {
4420
- "type": "object",
4421
- "properties": {
4422
- "certificate": {},
4423
- "notBefore": {
4424
- "type": "string",
4425
- "format": "date-time"
4426
- },
4427
- "notAfter": {
4428
- "type": "string",
4429
- "format": "date-time"
4430
5717
  },
4431
- "publicKeyJWK": {},
4432
- "issuer": {
5718
+ {
4433
5719
  "type": "object",
4434
5720
  "properties": {
4435
- "dn": {
4436
- "$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": {}
4437
5745
  }
4438
5746
  },
4439
5747
  "required": [
4440
- "dn"
5748
+ "certificates",
5749
+ "issuerJWK",
5750
+ "jwks",
5751
+ "method",
5752
+ "x5c"
4441
5753
  ]
4442
5754
  },
4443
- "subject": {
5755
+ {
4444
5756
  "type": "object",
4445
5757
  "properties": {
4446
- "dn": {
4447
- "$ref": "#/components/schemas/DNInfo"
5758
+ "method": {
5759
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
4448
5760
  },
4449
- "subjectAlternativeNames": {
5761
+ "jwks": {
4450
5762
  "type": "array",
4451
5763
  "items": {
4452
- "$ref": "#/components/schemas/SubjectAlternativeName"
5764
+ "$ref": "#/components/schemas/ExternalJwkInfo"
4453
5765
  }
5766
+ },
5767
+ "jwk": {
5768
+ "$ref": "#/components/schemas/JWK"
5769
+ },
5770
+ "x5c": {
5771
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
4454
5772
  }
4455
5773
  },
4456
5774
  "required": [
4457
- "dn",
4458
- "subjectAlternativeNames"
5775
+ "jwk",
5776
+ "jwks",
5777
+ "method"
4459
5778
  ]
4460
- }
4461
- },
4462
- "required": [
4463
- "notBefore",
4464
- "notAfter",
4465
- "issuer",
4466
- "subject"
4467
- ]
4468
- },
4469
- "DNInfo": {
4470
- "type": "object",
4471
- "properties": {
4472
- "DN": {
4473
- "type": "string"
4474
5779
  },
4475
- "attributes": {
5780
+ {
4476
5781
  "type": "object",
4477
- "additionalProperties": {
4478
- "type": "string"
4479
- }
4480
- }
4481
- },
4482
- "required": [
4483
- "DN",
4484
- "attributes"
4485
- ]
4486
- },
4487
- "SubjectAlternativeName": {
4488
- "type": "object",
4489
- "properties": {
4490
- "value": {
4491
- "type": "string"
4492
- },
4493
- "type": {
4494
- "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
4495
- }
4496
- },
4497
- "required": [
4498
- "value",
4499
- "type"
4500
- ]
4501
- },
4502
- "SubjectAlternativeGeneralName": {
4503
- "type": "number",
4504
- "enum": [
4505
- 1,
4506
- 2,
4507
- 6,
4508
- 7
4509
- ],
4510
- "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 }"
4511
- },
4512
- "ExternalIdentifierX5cResult": {
4513
- "type": "object",
4514
- "properties": {
4515
- "method": {
4516
- "type": "string",
4517
- "const": "x5c"
4518
- },
4519
- "jwks": {
4520
- "type": "array",
4521
- "items": {
4522
- "$ref": "#/components/schemas/ExternalJwkInfo"
4523
- }
4524
- },
4525
- "x5c": {
4526
- "type": "array",
4527
- "items": {
4528
- "type": "string"
4529
- }
4530
- },
4531
- "issuerJWK": {
4532
- "$ref": "#/components/schemas/JWK"
4533
- },
4534
- "verificationResult": {
4535
- "$ref": "#/components/schemas/X509ValidationResult"
4536
- },
4537
- "certificates": {
4538
- "type": "array",
4539
- "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
+ ]
4540
5804
  }
4541
- },
4542
- "required": [
4543
- "certificates",
4544
- "issuerJWK",
4545
- "jwks",
4546
- "method",
4547
- "x5c"
4548
5805
  ]
4549
5806
  }
4550
5807
  },
@@ -4555,7 +5812,7 @@
4555
5812
  "$ref": "#/components/schemas/CreateJwsCompactArgs"
4556
5813
  },
4557
5814
  "returnType": {
4558
- "$ref": "#/components/schemas/JwsCompactResult"
5815
+ "$ref": "#/components/schemas/JwtCompactResult"
4559
5816
  }
4560
5817
  },
4561
5818
  "jwtCreateJwsJsonFlattenedSignature": {
@@ -4576,6 +5833,24 @@
4576
5833
  "$ref": "#/components/schemas/JwsJsonGeneral"
4577
5834
  }
4578
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
+ },
4579
5854
  "jwtPrepareJws": {
4580
5855
  "description": "",
4581
5856
  "arguments": {