@sphereon/ssi-sdk-ext.identifier-resolution 0.24.1-next.112 → 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.
Files changed (35) hide show
  1. package/dist/agent/IdentifierResolution.d.ts +1 -0
  2. package/dist/agent/IdentifierResolution.d.ts.map +1 -1
  3. package/dist/agent/IdentifierResolution.js +7 -1
  4. package/dist/agent/IdentifierResolution.js.map +1 -1
  5. package/dist/functions/LegacySupport.js +1 -2
  6. package/dist/functions/LegacySupport.js.map +1 -1
  7. package/dist/functions/externalIdentifierFunctions.js +6 -7
  8. package/dist/functions/externalIdentifierFunctions.js.map +1 -1
  9. package/dist/functions/managedIdentifierFunctions.d.ts +2 -1
  10. package/dist/functions/managedIdentifierFunctions.d.ts.map +1 -1
  11. package/dist/functions/managedIdentifierFunctions.js +55 -13
  12. package/dist/functions/managedIdentifierFunctions.js.map +1 -1
  13. package/dist/tsdoc-metadata.json +1 -1
  14. package/dist/types/IIdentifierResolution.d.ts +2 -1
  15. package/dist/types/IIdentifierResolution.d.ts.map +1 -1
  16. package/dist/types/IIdentifierResolution.js +1 -0
  17. package/dist/types/IIdentifierResolution.js.map +1 -1
  18. package/dist/types/common.d.ts +1 -0
  19. package/dist/types/common.d.ts.map +1 -1
  20. package/dist/types/common.js +14 -11
  21. package/dist/types/common.js.map +1 -1
  22. package/dist/types/externalIdentifierTypes.js +7 -8
  23. package/dist/types/externalIdentifierTypes.js.map +1 -1
  24. package/dist/types/managedIdentifierTypes.d.ts +19 -10
  25. package/dist/types/managedIdentifierTypes.d.ts.map +1 -1
  26. package/dist/types/managedIdentifierTypes.js +20 -16
  27. package/dist/types/managedIdentifierTypes.js.map +1 -1
  28. package/package.json +12 -12
  29. package/plugin.schema.json +388 -44
  30. package/src/agent/IdentifierResolution.ts +21 -14
  31. package/src/functions/externalIdentifierFunctions.ts +1 -1
  32. package/src/functions/managedIdentifierFunctions.ts +50 -1
  33. package/src/types/IIdentifierResolution.ts +5 -0
  34. package/src/types/common.ts +5 -1
  35. package/src/types/managedIdentifierTypes.ts +38 -12
@@ -1974,6 +1974,67 @@
1974
1974
  "opts"
1975
1975
  ]
1976
1976
  },
1977
+ {
1978
+ "type": "object",
1979
+ "properties": {
1980
+ "lazyDisabled": {
1981
+ "type": "boolean"
1982
+ },
1983
+ "jwk": {
1984
+ "$ref": "#/components/schemas/JWK"
1985
+ },
1986
+ "jwkThumbprint": {
1987
+ "type": "string"
1988
+ },
1989
+ "kmsKeyRef": {
1990
+ "type": "string"
1991
+ },
1992
+ "method": {
1993
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1994
+ },
1995
+ "opts": {
1996
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1997
+ },
1998
+ "key": {
1999
+ "$ref": "#/components/schemas/IKey"
2000
+ },
2001
+ "kid": {
2002
+ "type": "string"
2003
+ },
2004
+ "issuer": {
2005
+ "type": "string"
2006
+ },
2007
+ "clientId": {
2008
+ "type": "string"
2009
+ },
2010
+ "clientIdScheme": {
2011
+ "anyOf": [
2012
+ {
2013
+ "$ref": "#/components/schemas/ClientIdScheme"
2014
+ },
2015
+ {
2016
+ "type": "string",
2017
+ "const": "did"
2018
+ },
2019
+ {
2020
+ "type": "string"
2021
+ }
2022
+ ]
2023
+ },
2024
+ "identifier": {
2025
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2026
+ }
2027
+ },
2028
+ "required": [
2029
+ "identifier",
2030
+ "jwk",
2031
+ "jwkThumbprint",
2032
+ "key",
2033
+ "kmsKeyRef",
2034
+ "method",
2035
+ "opts"
2036
+ ]
2037
+ },
1977
2038
  {
1978
2039
  "type": "object",
1979
2040
  "properties": {
@@ -1985,7 +2046,7 @@
1985
2046
  "const": "jwk"
1986
2047
  },
1987
2048
  "identifier": {
1988
- "$ref": "#/components/schemas/ManagedIdentifierType"
2049
+ "$ref": "#/components/schemas/JWK"
1989
2050
  },
1990
2051
  "kmsKeyRef": {
1991
2052
  "type": "string"
@@ -2029,7 +2090,10 @@
2029
2090
  "const": "x5c"
2030
2091
  },
2031
2092
  "identifier": {
2032
- "$ref": "#/components/schemas/ManagedIdentifierType"
2093
+ "type": "array",
2094
+ "items": {
2095
+ "type": "string"
2096
+ }
2033
2097
  },
2034
2098
  "kmsKeyRef": {
2035
2099
  "type": "string"
@@ -2073,7 +2137,14 @@
2073
2137
  "const": "did"
2074
2138
  },
2075
2139
  "identifier": {
2076
- "$ref": "#/components/schemas/ManagedIdentifierType"
2140
+ "anyOf": [
2141
+ {
2142
+ "$ref": "#/components/schemas/IIdentifier"
2143
+ },
2144
+ {
2145
+ "type": "string"
2146
+ }
2147
+ ]
2077
2148
  },
2078
2149
  "kmsKeyRef": {
2079
2150
  "type": "string"
@@ -2132,7 +2203,7 @@
2132
2203
  "const": "kid"
2133
2204
  },
2134
2205
  "identifier": {
2135
- "$ref": "#/components/schemas/ManagedIdentifierType"
2206
+ "type": "string"
2136
2207
  },
2137
2208
  "kmsKeyRef": {
2138
2209
  "type": "string"
@@ -2176,7 +2247,7 @@
2176
2247
  "const": "key"
2177
2248
  },
2178
2249
  "identifier": {
2179
- "$ref": "#/components/schemas/ManagedIdentifierType"
2250
+ "$ref": "#/components/schemas/IKey"
2180
2251
  },
2181
2252
  "kmsKeyRef": {
2182
2253
  "type": "string"
@@ -2220,7 +2291,51 @@
2220
2291
  "const": "cose_key"
2221
2292
  },
2222
2293
  "identifier": {
2223
- "$ref": "#/components/schemas/ManagedIdentifierType"
2294
+ "$ref": "#/components/schemas/ICoseKeyJson"
2295
+ },
2296
+ "kmsKeyRef": {
2297
+ "type": "string"
2298
+ },
2299
+ "issuer": {
2300
+ "type": "string"
2301
+ },
2302
+ "kid": {
2303
+ "type": "string"
2304
+ },
2305
+ "clientId": {
2306
+ "type": "string"
2307
+ },
2308
+ "clientIdScheme": {
2309
+ "anyOf": [
2310
+ {
2311
+ "$ref": "#/components/schemas/ClientIdScheme"
2312
+ },
2313
+ {
2314
+ "type": "string",
2315
+ "const": "did"
2316
+ },
2317
+ {
2318
+ "type": "string"
2319
+ }
2320
+ ]
2321
+ }
2322
+ },
2323
+ "required": [
2324
+ "identifier"
2325
+ ]
2326
+ },
2327
+ {
2328
+ "type": "object",
2329
+ "properties": {
2330
+ "lazyDisabled": {
2331
+ "type": "boolean"
2332
+ },
2333
+ "method": {
2334
+ "type": "string",
2335
+ "const": "oid4vci-issuer"
2336
+ },
2337
+ "identifier": {
2338
+ "type": "string"
2224
2339
  },
2225
2340
  "kmsKeyRef": {
2226
2341
  "type": "string"
@@ -2263,7 +2378,8 @@
2263
2378
  "x5c",
2264
2379
  "kid",
2265
2380
  "key",
2266
- "cose_key"
2381
+ "cose_key",
2382
+ "oid4vci-issuer"
2267
2383
  ]
2268
2384
  },
2269
2385
  "ManagedIdentifierOpts": {
@@ -2276,7 +2392,7 @@
2276
2392
  "const": "jwk"
2277
2393
  },
2278
2394
  "identifier": {
2279
- "$ref": "#/components/schemas/ManagedIdentifierType"
2395
+ "$ref": "#/components/schemas/JWK"
2280
2396
  },
2281
2397
  "kmsKeyRef": {
2282
2398
  "type": "string"
@@ -2317,7 +2433,10 @@
2317
2433
  "const": "x5c"
2318
2434
  },
2319
2435
  "identifier": {
2320
- "$ref": "#/components/schemas/ManagedIdentifierType"
2436
+ "type": "array",
2437
+ "items": {
2438
+ "type": "string"
2439
+ }
2321
2440
  },
2322
2441
  "kmsKeyRef": {
2323
2442
  "type": "string"
@@ -2358,7 +2477,14 @@
2358
2477
  "const": "did"
2359
2478
  },
2360
2479
  "identifier": {
2361
- "$ref": "#/components/schemas/ManagedIdentifierType"
2480
+ "anyOf": [
2481
+ {
2482
+ "$ref": "#/components/schemas/IIdentifier"
2483
+ },
2484
+ {
2485
+ "type": "string"
2486
+ }
2487
+ ]
2362
2488
  },
2363
2489
  "kmsKeyRef": {
2364
2490
  "type": "string"
@@ -2414,7 +2540,7 @@
2414
2540
  "const": "kid"
2415
2541
  },
2416
2542
  "identifier": {
2417
- "$ref": "#/components/schemas/ManagedIdentifierType"
2543
+ "type": "string"
2418
2544
  },
2419
2545
  "kmsKeyRef": {
2420
2546
  "type": "string"
@@ -2455,7 +2581,7 @@
2455
2581
  "const": "key"
2456
2582
  },
2457
2583
  "identifier": {
2458
- "$ref": "#/components/schemas/ManagedIdentifierType"
2584
+ "$ref": "#/components/schemas/IKey"
2459
2585
  },
2460
2586
  "kmsKeyRef": {
2461
2587
  "type": "string"
@@ -2496,7 +2622,7 @@
2496
2622
  "const": "cose_key"
2497
2623
  },
2498
2624
  "identifier": {
2499
- "$ref": "#/components/schemas/ManagedIdentifierType"
2625
+ "$ref": "#/components/schemas/ICoseKeyJson"
2500
2626
  },
2501
2627
  "kmsKeyRef": {
2502
2628
  "type": "string"
@@ -2528,34 +2654,49 @@
2528
2654
  "required": [
2529
2655
  "identifier"
2530
2656
  ]
2531
- }
2532
- ]
2533
- },
2534
- "ManagedIdentifierType": {
2535
- "anyOf": [
2536
- {
2537
- "$ref": "#/components/schemas/IIdentifier"
2538
2657
  },
2539
2658
  {
2540
- "type": "string"
2541
- },
2542
- {
2543
- "type": "array",
2544
- "items": {
2545
- "type": "string"
2546
- }
2547
- },
2548
- {
2549
- "$ref": "#/components/schemas/JWK"
2550
- },
2551
- {
2552
- "$ref": "#/components/schemas/IKey"
2553
- },
2554
- {
2555
- "$ref": "#/components/schemas/ICoseKeyJson"
2659
+ "type": "object",
2660
+ "properties": {
2661
+ "method": {
2662
+ "type": "string",
2663
+ "const": "oid4vci-issuer"
2664
+ },
2665
+ "identifier": {
2666
+ "type": "string"
2667
+ },
2668
+ "kmsKeyRef": {
2669
+ "type": "string"
2670
+ },
2671
+ "issuer": {
2672
+ "type": "string"
2673
+ },
2674
+ "kid": {
2675
+ "type": "string"
2676
+ },
2677
+ "clientId": {
2678
+ "type": "string"
2679
+ },
2680
+ "clientIdScheme": {
2681
+ "anyOf": [
2682
+ {
2683
+ "$ref": "#/components/schemas/ClientIdScheme"
2684
+ },
2685
+ {
2686
+ "type": "string",
2687
+ "const": "did"
2688
+ },
2689
+ {
2690
+ "type": "string"
2691
+ }
2692
+ ]
2693
+ }
2694
+ },
2695
+ "required": [
2696
+ "identifier"
2697
+ ]
2556
2698
  }
2557
- ],
2558
- "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"
2699
+ ]
2559
2700
  },
2560
2701
  "IIdentifier": {
2561
2702
  "type": "object",
@@ -2715,6 +2856,32 @@
2715
2856
  ],
2716
2857
  "description": "Represents a service endpoint URL or a map of URLs"
2717
2858
  },
2859
+ "ManagedIdentifierType": {
2860
+ "anyOf": [
2861
+ {
2862
+ "$ref": "#/components/schemas/IIdentifier"
2863
+ },
2864
+ {
2865
+ "type": "string"
2866
+ },
2867
+ {
2868
+ "type": "array",
2869
+ "items": {
2870
+ "type": "string"
2871
+ }
2872
+ },
2873
+ {
2874
+ "$ref": "#/components/schemas/JWK"
2875
+ },
2876
+ {
2877
+ "$ref": "#/components/schemas/IKey"
2878
+ },
2879
+ {
2880
+ "$ref": "#/components/schemas/ICoseKeyJson"
2881
+ }
2882
+ ],
2883
+ "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"
2884
+ },
2718
2885
  "ManagedIdentifierResult": {
2719
2886
  "anyOf": [
2720
2887
  {
@@ -3036,6 +3203,64 @@
3036
3203
  "opts"
3037
3204
  ]
3038
3205
  },
3206
+ {
3207
+ "type": "object",
3208
+ "properties": {
3209
+ "jwk": {
3210
+ "$ref": "#/components/schemas/JWK"
3211
+ },
3212
+ "jwkThumbprint": {
3213
+ "type": "string"
3214
+ },
3215
+ "kmsKeyRef": {
3216
+ "type": "string"
3217
+ },
3218
+ "method": {
3219
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3220
+ },
3221
+ "opts": {
3222
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3223
+ },
3224
+ "key": {
3225
+ "$ref": "#/components/schemas/IKey"
3226
+ },
3227
+ "kid": {
3228
+ "type": "string"
3229
+ },
3230
+ "issuer": {
3231
+ "type": "string"
3232
+ },
3233
+ "clientId": {
3234
+ "type": "string"
3235
+ },
3236
+ "clientIdScheme": {
3237
+ "anyOf": [
3238
+ {
3239
+ "$ref": "#/components/schemas/ClientIdScheme"
3240
+ },
3241
+ {
3242
+ "type": "string",
3243
+ "const": "did"
3244
+ },
3245
+ {
3246
+ "type": "string"
3247
+ }
3248
+ ]
3249
+ },
3250
+ "identifier": {
3251
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3252
+ }
3253
+ },
3254
+ "required": [
3255
+ "identifier",
3256
+ "jwk",
3257
+ "jwkThumbprint",
3258
+ "key",
3259
+ "kmsKeyRef",
3260
+ "method",
3261
+ "opts"
3262
+ ]
3263
+ },
3039
3264
  {
3040
3265
  "type": "object",
3041
3266
  "properties": {
@@ -3104,7 +3329,7 @@
3104
3329
  "const": "cose_key"
3105
3330
  },
3106
3331
  "identifier": {
3107
- "$ref": "#/components/schemas/ManagedIdentifierType"
3332
+ "$ref": "#/components/schemas/ICoseKeyJson"
3108
3333
  },
3109
3334
  "kmsKeyRef": {
3110
3335
  "type": "string"
@@ -3204,7 +3429,14 @@
3204
3429
  "const": "did"
3205
3430
  },
3206
3431
  "identifier": {
3207
- "$ref": "#/components/schemas/ManagedIdentifierType"
3432
+ "anyOf": [
3433
+ {
3434
+ "$ref": "#/components/schemas/IIdentifier"
3435
+ },
3436
+ {
3437
+ "type": "string"
3438
+ }
3439
+ ]
3208
3440
  },
3209
3441
  "keyType": {
3210
3442
  "$ref": "#/components/schemas/TKeyType"
@@ -3338,7 +3570,7 @@
3338
3570
  "const": "jwk"
3339
3571
  },
3340
3572
  "identifier": {
3341
- "$ref": "#/components/schemas/ManagedIdentifierType"
3573
+ "$ref": "#/components/schemas/JWK"
3342
3574
  },
3343
3575
  "kmsKeyRef": {
3344
3576
  "type": "string"
@@ -3438,7 +3670,7 @@
3438
3670
  "const": "key"
3439
3671
  },
3440
3672
  "identifier": {
3441
- "$ref": "#/components/schemas/ManagedIdentifierType"
3673
+ "$ref": "#/components/schemas/IKey"
3442
3674
  },
3443
3675
  "kmsKeyRef": {
3444
3676
  "type": "string"
@@ -3538,7 +3770,7 @@
3538
3770
  "const": "kid"
3539
3771
  },
3540
3772
  "identifier": {
3541
- "$ref": "#/components/schemas/ManagedIdentifierType"
3773
+ "type": "string"
3542
3774
  },
3543
3775
  "kmsKeyRef": {
3544
3776
  "type": "string"
@@ -3631,6 +3863,106 @@
3631
3863
  "opts"
3632
3864
  ]
3633
3865
  },
3866
+ "ManagedIdentifierOID4VCIssuerOpts": {
3867
+ "type": "object",
3868
+ "properties": {
3869
+ "method": {
3870
+ "type": "string",
3871
+ "const": "oid4vci-issuer"
3872
+ },
3873
+ "identifier": {
3874
+ "type": "string"
3875
+ },
3876
+ "kmsKeyRef": {
3877
+ "type": "string"
3878
+ },
3879
+ "issuer": {
3880
+ "type": "string"
3881
+ },
3882
+ "kid": {
3883
+ "type": "string"
3884
+ },
3885
+ "clientId": {
3886
+ "type": "string"
3887
+ },
3888
+ "clientIdScheme": {
3889
+ "anyOf": [
3890
+ {
3891
+ "$ref": "#/components/schemas/ClientIdScheme"
3892
+ },
3893
+ {
3894
+ "type": "string",
3895
+ "const": "did"
3896
+ },
3897
+ {
3898
+ "type": "string"
3899
+ }
3900
+ ]
3901
+ }
3902
+ },
3903
+ "required": [
3904
+ "identifier"
3905
+ ]
3906
+ },
3907
+ "ManagedIdentifierOID4VCIssuerResult": {
3908
+ "type": "object",
3909
+ "properties": {
3910
+ "jwk": {
3911
+ "$ref": "#/components/schemas/JWK"
3912
+ },
3913
+ "jwkThumbprint": {
3914
+ "type": "string"
3915
+ },
3916
+ "kmsKeyRef": {
3917
+ "type": "string"
3918
+ },
3919
+ "method": {
3920
+ "type": "string",
3921
+ "const": "oid4vci-issuer"
3922
+ },
3923
+ "opts": {
3924
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3925
+ },
3926
+ "key": {
3927
+ "$ref": "#/components/schemas/IKey"
3928
+ },
3929
+ "kid": {
3930
+ "type": "string"
3931
+ },
3932
+ "issuer": {
3933
+ "type": "string"
3934
+ },
3935
+ "clientId": {
3936
+ "type": "string"
3937
+ },
3938
+ "clientIdScheme": {
3939
+ "anyOf": [
3940
+ {
3941
+ "$ref": "#/components/schemas/ClientIdScheme"
3942
+ },
3943
+ {
3944
+ "type": "string",
3945
+ "const": "did"
3946
+ },
3947
+ {
3948
+ "type": "string"
3949
+ }
3950
+ ]
3951
+ },
3952
+ "identifier": {
3953
+ "type": "string"
3954
+ }
3955
+ },
3956
+ "required": [
3957
+ "identifier",
3958
+ "jwk",
3959
+ "jwkThumbprint",
3960
+ "key",
3961
+ "kmsKeyRef",
3962
+ "method",
3963
+ "opts"
3964
+ ]
3965
+ },
3634
3966
  "ManagedIdentifierX5cOpts": {
3635
3967
  "type": "object",
3636
3968
  "properties": {
@@ -3639,7 +3971,10 @@
3639
3971
  "const": "x5c"
3640
3972
  },
3641
3973
  "identifier": {
3642
- "$ref": "#/components/schemas/ManagedIdentifierType"
3974
+ "type": "array",
3975
+ "items": {
3976
+ "type": "string"
3977
+ }
3643
3978
  },
3644
3979
  "kmsKeyRef": {
3645
3980
  "type": "string"
@@ -3844,6 +4179,15 @@
3844
4179
  "$ref": "#/components/schemas/ManagedIdentifierKidResult"
3845
4180
  }
3846
4181
  },
4182
+ "identifierManagedGetByOID4VCIssuer": {
4183
+ "description": "",
4184
+ "arguments": {
4185
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerOpts"
4186
+ },
4187
+ "returnType": {
4188
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerResult"
4189
+ }
4190
+ },
3847
4191
  "identifierManagedGetByX5c": {
3848
4192
  "description": "",
3849
4193
  "arguments": {
@@ -1,16 +1,6 @@
1
1
  import { IAgentContext, IAgentPlugin, IDIDManager, IKeyManager } from '@veramo/core'
2
- import {
3
- ensureManagedIdentifierResult,
4
- ExternalIdentifierCoseKeyOpts,
5
- ExternalIdentifierCoseKeyResult,
6
- ExternalIdentifierJwkOpts,
7
- ExternalIdentifierJwkResult,
8
- ManagedIdentifierKeyOpts,
9
- ManagedIdentifierKeyResult,
10
- ManagedIdentifierOptsOrResult,
11
- schema,
12
- } from '..'
13
- import { resolveExternalIdentifier } from '../functions'
2
+ import { schema } from '..'
3
+ import { resolveExternalIdentifier, ensureManagedIdentifierResult } from '../functions'
14
4
  import {
15
5
  ExternalIdentifierDidOpts,
16
6
  ExternalIdentifierDidResult,
@@ -18,6 +8,10 @@ import {
18
8
  ExternalIdentifierResult,
19
9
  ExternalIdentifierX5cOpts,
20
10
  ExternalIdentifierX5cResult,
11
+ ExternalIdentifierCoseKeyOpts,
12
+ ExternalIdentifierCoseKeyResult,
13
+ ExternalIdentifierJwkOpts,
14
+ ExternalIdentifierJwkResult,
21
15
  IIdentifierResolution,
22
16
  ManagedIdentifierCoseKeyOpts,
23
17
  ManagedIdentifierCoseKeyResult,
@@ -30,6 +24,11 @@ import {
30
24
  ManagedIdentifierResult,
31
25
  ManagedIdentifierX5cOpts,
32
26
  ManagedIdentifierX5cResult,
27
+ ManagedIdentifierOID4VCIssuerResult,
28
+ ManagedIdentifierKeyOpts,
29
+ ManagedIdentifierKeyResult,
30
+ ManagedIdentifierOptsOrResult,
31
+ ManagedIdentifierOID4VCIssuerOpts
33
32
  } from '../types'
34
33
 
35
34
  /**
@@ -47,6 +46,7 @@ export class IdentifierResolution implements IAgentPlugin {
47
46
  identifierManagedGetByX5c: this.identifierGetManagedByX5c.bind(this),
48
47
  identifierManagedGetByKey: this.identifierGetManagedByKey.bind(this),
49
48
  identifierManagedGetByCoseKey: this.identifierGetManagedByCoseKey.bind(this),
49
+ identifierManagedGetByOID4VCIssuer: this.identifierGetManagedByOID4VCIssuer.bind(this),
50
50
 
51
51
  identifierExternalResolve: this.identifierResolveExternal.bind(this),
52
52
  identifierExternalResolveByDid: this.identifierExternalResolveByDid.bind(this),
@@ -106,9 +106,16 @@ export class IdentifierResolution implements IAgentPlugin {
106
106
  return (await this.identifierGetManaged({ ...args, method: 'cose_key' }, context)) as ManagedIdentifierCoseKeyResult
107
107
  }
108
108
 
109
+ private async identifierGetManagedByOID4VCIssuer(
110
+ args: ManagedIdentifierOID4VCIssuerOpts,
111
+ context: IAgentContext<IKeyManager & IIdentifierResolution>
112
+ ): Promise<ManagedIdentifierOID4VCIssuerResult> {
113
+ return (await this.identifierGetManaged({ ...args, method: 'oid4vci-issuer' }, context)) as ManagedIdentifierOID4VCIssuerResult
114
+ }
115
+
109
116
  private async identifierGetManagedByJwk(
110
- args: ManagedIdentifierJwkOpts,
111
- context: IAgentContext<IKeyManager & IIdentifierResolution>
117
+ args: ManagedIdentifierJwkOpts,
118
+ context: IAgentContext<IKeyManager & IIdentifierResolution>
112
119
  ): Promise<ManagedIdentifierJwkResult> {
113
120
  return (await this.identifierGetManaged({ ...args, method: 'jwk' }, context)) as ManagedIdentifierJwkResult
114
121
  }
@@ -71,7 +71,7 @@ export async function resolveExternalX5cIdentifier(
71
71
  const verify = opts.verify ?? true
72
72
  const x5c = opts.identifier.map((derOrPem) => (derOrPem.includes('CERTIFICATE') ? PEMToDer(derOrPem) : derOrPem))
73
73
  if (x5c.length === 0) {
74
- return Promise.reject('Empty certification chain is now allowed')
74
+ return Promise.reject('Empty certification chain is not allowed')
75
75
  }
76
76
  const certificates = x5c.map(pemOrDerToX509Certificate)
77
77