@sphereon/ssi-sdk-ext.identifier-resolution 0.24.1-unstable.93 → 0.25.1-feature.SDK.41.oidf.support.11

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 (54) hide show
  1. package/dist/agent/IdentifierResolution.d.ts +5 -0
  2. package/dist/agent/IdentifierResolution.d.ts.map +1 -1
  3. package/dist/agent/IdentifierResolution.js +31 -1
  4. package/dist/agent/IdentifierResolution.js.map +1 -1
  5. package/dist/functions/LegacySupport.d.ts +12 -0
  6. package/dist/functions/LegacySupport.d.ts.map +1 -0
  7. package/dist/functions/LegacySupport.js +39 -0
  8. package/dist/functions/LegacySupport.js.map +1 -0
  9. package/dist/functions/externalIdentifierFunctions.d.ts +17 -1
  10. package/dist/functions/externalIdentifierFunctions.d.ts.map +1 -1
  11. package/dist/functions/externalIdentifierFunctions.js +89 -6
  12. package/dist/functions/externalIdentifierFunctions.js.map +1 -1
  13. package/dist/functions/externalOIDFIdentifier.d.ts +19 -0
  14. package/dist/functions/externalOIDFIdentifier.d.ts.map +1 -0
  15. package/dist/functions/externalOIDFIdentifier.js +84 -0
  16. package/dist/functions/externalOIDFIdentifier.js.map +1 -0
  17. package/dist/functions/index.d.ts +2 -11
  18. package/dist/functions/index.d.ts.map +1 -1
  19. package/dist/functions/index.js +2 -36
  20. package/dist/functions/index.js.map +1 -1
  21. package/dist/functions/managedIdentifierFunctions.d.ts +17 -3
  22. package/dist/functions/managedIdentifierFunctions.d.ts.map +1 -1
  23. package/dist/functions/managedIdentifierFunctions.js +134 -12
  24. package/dist/functions/managedIdentifierFunctions.js.map +1 -1
  25. package/dist/tsdoc-metadata.json +1 -1
  26. package/dist/types/IIdentifierResolution.d.ts +14 -3
  27. package/dist/types/IIdentifierResolution.d.ts.map +1 -1
  28. package/dist/types/IIdentifierResolution.js +18 -0
  29. package/dist/types/IIdentifierResolution.js.map +1 -1
  30. package/dist/types/common.d.ts +4 -1
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +21 -10
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/externalIdentifierTypes.d.ts +38 -6
  35. package/dist/types/externalIdentifierTypes.d.ts.map +1 -1
  36. package/dist/types/externalIdentifierTypes.js +16 -7
  37. package/dist/types/externalIdentifierTypes.js.map +1 -1
  38. package/dist/types/managedIdentifierTypes.d.ts +43 -15
  39. package/dist/types/managedIdentifierTypes.d.ts.map +1 -1
  40. package/dist/types/managedIdentifierTypes.js +24 -11
  41. package/dist/types/managedIdentifierTypes.js.map +1 -1
  42. package/package.json +13 -12
  43. package/plugin.schema.json +2652 -281
  44. package/src/agent/IdentifierResolution.ts +71 -11
  45. package/src/functions/LegacySupport.ts +54 -0
  46. package/src/functions/externalIdentifierFunctions.ts +101 -6
  47. package/src/functions/externalOIDFIdentifier.ts +95 -0
  48. package/src/functions/index.ts +2 -51
  49. package/src/functions/managedIdentifierFunctions.ts +162 -14
  50. package/src/types/IIdentifierResolution.ts +47 -3
  51. package/src/types/IJwtService.d.ts +226 -0
  52. package/src/types/common.ts +14 -2
  53. package/src/types/externalIdentifierTypes.ts +76 -12
  54. package/src/types/managedIdentifierTypes.ts +78 -16
@@ -13,6 +13,9 @@
13
13
  },
14
14
  "identifier": {
15
15
  "$ref": "#/components/schemas/ExternalIdentifierType"
16
+ },
17
+ "x5c": {
18
+ "$ref": "#/components/schemas/ExternalIdentifierX5cOpts"
16
19
  }
17
20
  },
18
21
  "required": [
@@ -41,6 +44,33 @@
41
44
  "items": {
42
45
  "type": "string"
43
46
  }
47
+ },
48
+ "trustRootWhenNoAnchors": {
49
+ "type": "boolean"
50
+ },
51
+ "allowSingleNoCAChainElement": {
52
+ "type": "boolean"
53
+ },
54
+ "blindlyTrustedAnchors": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "client": {
61
+ "type": "object",
62
+ "properties": {
63
+ "clientId": {
64
+ "type": "string"
65
+ },
66
+ "clientIdScheme": {
67
+ "$ref": "#/components/schemas/ClientIdScheme"
68
+ }
69
+ },
70
+ "required": [
71
+ "clientId",
72
+ "clientIdScheme"
73
+ ]
44
74
  }
45
75
  },
46
76
  "required": [
@@ -91,6 +121,42 @@
91
121
  "required": [
92
122
  "identifier"
93
123
  ]
124
+ },
125
+ {
126
+ "type": "object",
127
+ "properties": {
128
+ "method": {
129
+ "type": "string",
130
+ "const": "cose_key"
131
+ },
132
+ "identifier": {
133
+ "$ref": "#/components/schemas/ExternalIdentifierType"
134
+ }
135
+ },
136
+ "required": [
137
+ "identifier"
138
+ ]
139
+ },
140
+ {
141
+ "type": "object",
142
+ "properties": {
143
+ "method": {
144
+ "type": "string",
145
+ "const": "entity_id"
146
+ },
147
+ "identifier": {
148
+ "$ref": "#/components/schemas/ExternalIdentifierType"
149
+ },
150
+ "trustAnchors": {
151
+ "type": "array",
152
+ "items": {
153
+ "type": "string"
154
+ }
155
+ }
156
+ },
157
+ "required": [
158
+ "identifier"
159
+ ]
94
160
  }
95
161
  ]
96
162
  },
@@ -115,10 +181,34 @@
115
181
  "type": "object",
116
182
  "properties": {
117
183
  "kty": {
118
- "type": "string"
184
+ "anyOf": [
185
+ {
186
+ "$ref": "#/components/schemas/JwkKeyType"
187
+ },
188
+ {
189
+ "$ref": "#/components/schemas/JwkKeyTypeString"
190
+ }
191
+ ]
119
192
  },
120
193
  "crv": {
121
- "type": "string"
194
+ "anyOf": [
195
+ {
196
+ "$ref": "#/components/schemas/JoseCurve"
197
+ },
198
+ {
199
+ "$ref": "#/components/schemas/JoseCurveString"
200
+ }
201
+ ]
202
+ },
203
+ "alg": {
204
+ "anyOf": [
205
+ {
206
+ "$ref": "#/components/schemas/JoseSignatureAlgorithm"
207
+ },
208
+ {
209
+ "$ref": "#/components/schemas/JoseSignatureAlgorithmString"
210
+ }
211
+ ]
122
212
  },
123
213
  "x": {
124
214
  "type": "string"
@@ -150,7 +240,14 @@
150
240
  "key_ops": {
151
241
  "type": "array",
152
242
  "items": {
153
- "type": "string"
243
+ "anyOf": [
244
+ {
245
+ "$ref": "#/components/schemas/JoseKeyOperation"
246
+ },
247
+ {
248
+ "$ref": "#/components/schemas/JoseKeyOperationString"
249
+ }
250
+ ]
154
251
  }
155
252
  },
156
253
  "kid": {
@@ -203,6 +300,9 @@
203
300
  "x5u": {
204
301
  "type": "string",
205
302
  "description": "JWK \"x5u\" (X.509 URL) Parameter."
303
+ },
304
+ "iv": {
305
+ "type": "string"
206
306
  }
207
307
  },
208
308
  "additionalProperties": {},
@@ -210,136 +310,443 @@
210
310
  "kty"
211
311
  ]
212
312
  },
213
- "DIDDocumentSection": {
313
+ "JwkKeyType": {
214
314
  "type": "string",
215
315
  "enum": [
216
- "verificationMethod",
217
- "publicKey",
218
- "service",
219
- "authentication",
220
- "assertionMethod",
221
- "keyAgreement",
222
- "capabilityInvocation",
223
- "capabilityDelegation"
224
- ],
225
- "description": "Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\n\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }"
316
+ "EC",
317
+ "RSA",
318
+ "oct",
319
+ "OKP"
320
+ ]
226
321
  },
227
- "ExternalIdentifierResult": {
228
- "anyOf": [
229
- {
230
- "$ref": "#/components/schemas/ExternalIdentifierDidResult"
231
- },
232
- {
233
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
234
- }
322
+ "JwkKeyTypeString": {
323
+ "type": "string",
324
+ "enum": [
325
+ "EC",
326
+ "RSA",
327
+ "oct",
328
+ "OKP"
235
329
  ]
236
330
  },
237
- "ExternalIdentifierDidResult": {
331
+ "JoseCurve": {
332
+ "type": "string",
333
+ "enum": [
334
+ "P-256",
335
+ "P-384",
336
+ "P-521",
337
+ "X25519",
338
+ "X448",
339
+ "EdDSA",
340
+ "Ed25519",
341
+ "Ed448",
342
+ "secp256k1"
343
+ ]
344
+ },
345
+ "JoseCurveString": {
346
+ "type": "string",
347
+ "enum": [
348
+ "P-256",
349
+ "P-384",
350
+ "P-521",
351
+ "X25519",
352
+ "X448",
353
+ "EdDSA",
354
+ "Ed25519",
355
+ "Ed448",
356
+ "secp256k1"
357
+ ]
358
+ },
359
+ "JoseSignatureAlgorithm": {
360
+ "type": "string",
361
+ "enum": [
362
+ "RS256",
363
+ "RS384",
364
+ "RS512",
365
+ "ES256",
366
+ "ES256K",
367
+ "ES384",
368
+ "ES512",
369
+ "EdDSA",
370
+ "HS256",
371
+ "HS384",
372
+ "HS512",
373
+ "PS256",
374
+ "PS384",
375
+ "PS512",
376
+ "none"
377
+ ]
378
+ },
379
+ "JoseSignatureAlgorithmString": {
380
+ "type": "string",
381
+ "enum": [
382
+ "RS256",
383
+ "RS384",
384
+ "RS512",
385
+ "ES256",
386
+ "ES256K",
387
+ "ES384",
388
+ "ES512",
389
+ "EdDSA",
390
+ "HS256",
391
+ "HS384",
392
+ "HS512",
393
+ "PS256",
394
+ "PS384",
395
+ "PS512",
396
+ "none"
397
+ ]
398
+ },
399
+ "JoseKeyOperation": {
400
+ "type": "string",
401
+ "enum": [
402
+ "sign",
403
+ "verify",
404
+ "encrypt",
405
+ "decrypt",
406
+ "wrapKey",
407
+ "unwrapKey",
408
+ "deriveKey",
409
+ "deriveBits"
410
+ ]
411
+ },
412
+ "JoseKeyOperationString": {
413
+ "type": "string",
414
+ "enum": [
415
+ "sign",
416
+ "verify",
417
+ "encrypt",
418
+ "decrypt",
419
+ "wrapKey",
420
+ "unwrapKey",
421
+ "deriveKey",
422
+ "deriveBits"
423
+ ]
424
+ },
425
+ "ExternalIdentifierX5cOpts": {
238
426
  "type": "object",
239
427
  "properties": {
240
428
  "method": {
241
429
  "type": "string",
242
- "const": "did"
430
+ "const": "x5c"
243
431
  },
244
- "jwks": {
432
+ "identifier": {
433
+ "$ref": "#/components/schemas/ExternalIdentifierType"
434
+ },
435
+ "verify": {
436
+ "type": "boolean"
437
+ },
438
+ "verificationTime": {
439
+ "type": "string",
440
+ "format": "date-time"
441
+ },
442
+ "trustAnchors": {
245
443
  "type": "array",
246
444
  "items": {
247
- "$ref": "#/components/schemas/ExternalJwkInfo"
445
+ "type": "string"
248
446
  }
249
447
  },
250
- "did": {
251
- "type": "string"
448
+ "trustRootWhenNoAnchors": {
449
+ "type": "boolean"
252
450
  },
253
- "didDocument": {
254
- "$ref": "#/components/schemas/DIDDocument"
451
+ "allowSingleNoCAChainElement": {
452
+ "type": "boolean"
255
453
  },
256
- "didJwks": {
257
- "$ref": "#/components/schemas/DidDocumentJwks"
454
+ "blindlyTrustedAnchors": {
455
+ "type": "array",
456
+ "items": {
457
+ "type": "string"
458
+ }
258
459
  },
259
- "didResolutionResult": {
460
+ "client": {
260
461
  "type": "object",
261
462
  "properties": {
262
- "@context": {
263
- "anyOf": [
264
- {
265
- "type": "string",
266
- "const": "https://w3id.org/did-resolution/v1"
267
- },
268
- {
269
- "type": "string"
270
- },
271
- {
272
- "type": "array",
273
- "items": {
274
- "type": "string"
275
- }
276
- }
277
- ]
278
- },
279
- "didResolutionMetadata": {
280
- "$ref": "#/components/schemas/DIDResolutionMetadata"
463
+ "clientId": {
464
+ "type": "string"
281
465
  },
282
- "didDocumentMetadata": {
283
- "$ref": "#/components/schemas/DIDDocumentMetadata"
466
+ "clientIdScheme": {
467
+ "$ref": "#/components/schemas/ClientIdScheme"
284
468
  }
285
469
  },
286
470
  "required": [
287
- "didResolutionMetadata",
288
- "didDocumentMetadata"
471
+ "clientId",
472
+ "clientIdScheme"
289
473
  ]
290
- },
291
- "didParsed": {
292
- "$ref": "#/components/schemas/IParsedDID"
293
474
  }
294
475
  },
295
476
  "required": [
296
- "did",
297
- "didParsed",
298
- "didResolutionResult",
299
- "jwks",
300
- "method"
477
+ "identifier"
301
478
  ]
302
479
  },
303
- "ExternalJwkInfo": {
304
- "type": "object",
305
- "properties": {
306
- "jwk": {
307
- "$ref": "#/components/schemas/JWK"
308
- },
309
- "jwkThumbprint": {
310
- "type": "string"
311
- },
312
- "kid": {
313
- "type": "string"
314
- }
315
- },
316
- "required": [
317
- "jwk",
318
- "jwkThumbprint"
480
+ "ClientIdScheme": {
481
+ "type": "string",
482
+ "enum": [
483
+ "x509_san_dns",
484
+ "x509_san_uri"
319
485
  ]
320
486
  },
321
- "DIDDocument": {
322
- "type": "object",
323
- "properties": {
324
- "authentication": {
325
- "type": "array",
326
- "items": {
327
- "anyOf": [
328
- {
329
- "type": "string"
330
- },
331
- {
332
- "$ref": "#/components/schemas/VerificationMethod"
487
+ "DIDDocumentSection": {
488
+ "type": "string",
489
+ "enum": [
490
+ "verificationMethod",
491
+ "publicKey",
492
+ "service",
493
+ "authentication",
494
+ "assertionMethod",
495
+ "keyAgreement",
496
+ "capabilityInvocation",
497
+ "capabilityDelegation"
498
+ ],
499
+ "description": "Refers to a section of a DID document. Either the list of verification methods or services or one of the verification relationships.\n\nSee {@link https://www.w3.org/TR/did-core/#verification-relationships | verification relationships }"
500
+ },
501
+ "ExternalIdentifierResult": {
502
+ "anyOf": [
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "method": {
507
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
508
+ },
509
+ "jwks": {
510
+ "type": "array",
511
+ "items": {
512
+ "$ref": "#/components/schemas/ExternalJwkInfo"
333
513
  }
334
- ]
335
- }
336
- },
337
- "assertionMethod": {
338
- "type": "array",
339
- "items": {
340
- "anyOf": [
341
- {
342
- "type": "string"
514
+ },
515
+ "did": {
516
+ "type": "string"
517
+ },
518
+ "didDocument": {
519
+ "$ref": "#/components/schemas/DIDDocument"
520
+ },
521
+ "didJwks": {
522
+ "$ref": "#/components/schemas/DidDocumentJwks"
523
+ },
524
+ "didResolutionResult": {
525
+ "type": "object",
526
+ "properties": {
527
+ "@context": {
528
+ "anyOf": [
529
+ {
530
+ "type": "string",
531
+ "const": "https://w3id.org/did-resolution/v1"
532
+ },
533
+ {
534
+ "type": "string"
535
+ },
536
+ {
537
+ "type": "array",
538
+ "items": {
539
+ "type": "string"
540
+ }
541
+ }
542
+ ]
543
+ },
544
+ "didResolutionMetadata": {
545
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
546
+ },
547
+ "didDocumentMetadata": {
548
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
549
+ }
550
+ },
551
+ "required": [
552
+ "didResolutionMetadata",
553
+ "didDocumentMetadata"
554
+ ]
555
+ },
556
+ "didParsed": {
557
+ "$ref": "#/components/schemas/IParsedDID"
558
+ }
559
+ },
560
+ "required": [
561
+ "did",
562
+ "didParsed",
563
+ "didResolutionResult",
564
+ "jwks",
565
+ "method"
566
+ ]
567
+ },
568
+ {
569
+ "type": "object",
570
+ "properties": {
571
+ "method": {
572
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
573
+ },
574
+ "jwks": {
575
+ "type": "array",
576
+ "items": {
577
+ "$ref": "#/components/schemas/ExternalJwkInfo"
578
+ }
579
+ },
580
+ "x5c": {
581
+ "type": "array",
582
+ "items": {
583
+ "type": "string"
584
+ }
585
+ },
586
+ "issuerJWK": {
587
+ "$ref": "#/components/schemas/JWK"
588
+ },
589
+ "verificationResult": {
590
+ "$ref": "#/components/schemas/X509ValidationResult"
591
+ },
592
+ "certificates": {
593
+ "type": "array",
594
+ "items": {}
595
+ }
596
+ },
597
+ "required": [
598
+ "certificates",
599
+ "issuerJWK",
600
+ "jwks",
601
+ "method",
602
+ "x5c"
603
+ ]
604
+ },
605
+ {
606
+ "type": "object",
607
+ "properties": {
608
+ "method": {
609
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
610
+ },
611
+ "jwks": {
612
+ "type": "array",
613
+ "items": {
614
+ "$ref": "#/components/schemas/ExternalJwkInfo"
615
+ }
616
+ },
617
+ "jwk": {
618
+ "$ref": "#/components/schemas/JWK"
619
+ },
620
+ "x5c": {
621
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
622
+ }
623
+ },
624
+ "required": [
625
+ "jwk",
626
+ "jwks",
627
+ "method"
628
+ ]
629
+ },
630
+ {
631
+ "type": "object",
632
+ "properties": {
633
+ "method": {
634
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
635
+ },
636
+ "jwks": {
637
+ "type": "array",
638
+ "items": {
639
+ "$ref": "#/components/schemas/ExternalJwkInfo"
640
+ }
641
+ },
642
+ "trustedAnchors": {
643
+ "type": "object",
644
+ "additionalProperties": {
645
+ "$ref": "#/components/schemas/PublicKeyHex"
646
+ }
647
+ },
648
+ "errorList": {
649
+ "type": "object",
650
+ "additionalProperties": {
651
+ "$ref": "#/components/schemas/ErrorMessage"
652
+ }
653
+ },
654
+ "trustEstablished": {
655
+ "type": "boolean"
656
+ }
657
+ },
658
+ "required": [
659
+ "jwks",
660
+ "method",
661
+ "trustEstablished",
662
+ "trustedAnchors"
663
+ ]
664
+ },
665
+ {
666
+ "type": "object",
667
+ "properties": {
668
+ "method": {
669
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
670
+ },
671
+ "jwks": {
672
+ "type": "array",
673
+ "items": {
674
+ "$ref": "#/components/schemas/ExternalJwkInfo"
675
+ }
676
+ },
677
+ "coseKey": {
678
+ "$ref": "#/components/schemas/ICoseKeyJson"
679
+ },
680
+ "x5c": {
681
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
682
+ }
683
+ },
684
+ "required": [
685
+ "coseKey",
686
+ "jwks",
687
+ "method"
688
+ ]
689
+ }
690
+ ]
691
+ },
692
+ "ExternalIdentifierMethod": {
693
+ "type": "string",
694
+ "enum": [
695
+ "did",
696
+ "jwk",
697
+ "x5c",
698
+ "kid",
699
+ "cose_key",
700
+ "oidc-discovery",
701
+ "jwks-url",
702
+ "oid4vci-issuer",
703
+ "entity_id"
704
+ ]
705
+ },
706
+ "ExternalJwkInfo": {
707
+ "type": "object",
708
+ "properties": {
709
+ "jwk": {
710
+ "$ref": "#/components/schemas/JWK"
711
+ },
712
+ "jwkThumbprint": {
713
+ "type": "string"
714
+ },
715
+ "kid": {
716
+ "type": "string"
717
+ },
718
+ "publicKeyHex": {
719
+ "type": "string"
720
+ }
721
+ },
722
+ "required": [
723
+ "jwk",
724
+ "jwkThumbprint",
725
+ "publicKeyHex"
726
+ ]
727
+ },
728
+ "DIDDocument": {
729
+ "type": "object",
730
+ "properties": {
731
+ "authentication": {
732
+ "type": "array",
733
+ "items": {
734
+ "anyOf": [
735
+ {
736
+ "type": "string"
737
+ },
738
+ {
739
+ "$ref": "#/components/schemas/VerificationMethod"
740
+ }
741
+ ]
742
+ }
743
+ },
744
+ "assertionMethod": {
745
+ "type": "array",
746
+ "items": {
747
+ "anyOf": [
748
+ {
749
+ "type": "string"
343
750
  },
344
751
  {
345
752
  "$ref": "#/components/schemas/VerificationMethod"
@@ -769,44 +1176,6 @@
769
1176
  "id"
770
1177
  ]
771
1178
  },
772
- "ExternalIdentifierX5cResult": {
773
- "type": "object",
774
- "properties": {
775
- "method": {
776
- "type": "string",
777
- "const": "x5c"
778
- },
779
- "jwks": {
780
- "type": "array",
781
- "items": {
782
- "$ref": "#/components/schemas/ExternalJwkInfo"
783
- }
784
- },
785
- "x5c": {
786
- "type": "array",
787
- "items": {
788
- "type": "string"
789
- }
790
- },
791
- "issuerJWK": {
792
- "$ref": "#/components/schemas/JWK"
793
- },
794
- "verificationResult": {
795
- "$ref": "#/components/schemas/X509ValidationResult"
796
- },
797
- "certificates": {
798
- "type": "array",
799
- "items": {}
800
- }
801
- },
802
- "required": [
803
- "certificates",
804
- "issuerJWK",
805
- "jwks",
806
- "method",
807
- "x5c"
808
- ]
809
- },
810
1179
  "X509ValidationResult": {
811
1180
  "type": "object",
812
1181
  "properties": {
@@ -826,8 +1195,23 @@
826
1195
  "certificateChain": {
827
1196
  "type": "array",
828
1197
  "items": {
829
- "$ref": "#/components/schemas/CertInfo"
1198
+ "$ref": "#/components/schemas/CertificateInfo"
830
1199
  }
1200
+ },
1201
+ "client": {
1202
+ "type": "object",
1203
+ "properties": {
1204
+ "clientId": {
1205
+ "type": "string"
1206
+ },
1207
+ "clientIdScheme": {
1208
+ "$ref": "#/components/schemas/ClientIdScheme"
1209
+ }
1210
+ },
1211
+ "required": [
1212
+ "clientId",
1213
+ "clientIdScheme"
1214
+ ]
831
1215
  }
832
1216
  },
833
1217
  "required": [
@@ -837,7 +1221,7 @@
837
1221
  "verificationTime"
838
1222
  ]
839
1223
  },
840
- "CertInfo": {
1224
+ "CertificateInfo": {
841
1225
  "type": "object",
842
1226
  "properties": {
843
1227
  "certificate": {},
@@ -866,10 +1250,17 @@
866
1250
  "properties": {
867
1251
  "dn": {
868
1252
  "$ref": "#/components/schemas/DNInfo"
1253
+ },
1254
+ "subjectAlternativeNames": {
1255
+ "type": "array",
1256
+ "items": {
1257
+ "$ref": "#/components/schemas/SubjectAlternativeName"
1258
+ }
869
1259
  }
870
1260
  },
871
1261
  "required": [
872
- "dn"
1262
+ "dn",
1263
+ "subjectAlternativeNames"
873
1264
  ]
874
1265
  }
875
1266
  },
@@ -898,64 +1289,1219 @@
898
1289
  "attributes"
899
1290
  ]
900
1291
  },
901
- "ExternalIdentifierDidOpts": {
1292
+ "SubjectAlternativeName": {
902
1293
  "type": "object",
903
1294
  "properties": {
904
- "method": {
905
- "type": "string",
906
- "const": "did"
907
- },
908
- "identifier": {
909
- "$ref": "#/components/schemas/ExternalIdentifierType"
910
- },
911
- "noVerificationMethodFallback": {
912
- "type": "boolean"
913
- },
914
- "vmRelationship": {
915
- "$ref": "#/components/schemas/DIDDocumentSection"
916
- },
917
- "localResolution": {
918
- "type": "boolean"
919
- },
920
- "uniresolverResolution": {
921
- "type": "boolean"
1295
+ "value": {
1296
+ "type": "string"
922
1297
  },
923
- "resolverResolution": {
924
- "type": "boolean"
1298
+ "type": {
1299
+ "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
925
1300
  }
926
1301
  },
927
1302
  "required": [
928
- "identifier"
1303
+ "value",
1304
+ "type"
929
1305
  ]
930
1306
  },
931
- "ExternalIdentifierX5cOpts": {
1307
+ "SubjectAlternativeGeneralName": {
1308
+ "type": "number",
1309
+ "enum": [
1310
+ 1,
1311
+ 2,
1312
+ 6,
1313
+ 7
1314
+ ],
1315
+ "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 }"
1316
+ },
1317
+ "ExternalIdentifierX5cResult": {
932
1318
  "type": "object",
933
1319
  "properties": {
934
1320
  "method": {
935
1321
  "type": "string",
936
1322
  "const": "x5c"
937
1323
  },
938
- "identifier": {
939
- "$ref": "#/components/schemas/ExternalIdentifierType"
940
- },
941
- "verify": {
942
- "type": "boolean"
943
- },
944
- "verificationTime": {
945
- "type": "string",
946
- "format": "date-time"
1324
+ "jwks": {
1325
+ "type": "array",
1326
+ "items": {
1327
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1328
+ }
947
1329
  },
948
- "trustAnchors": {
1330
+ "x5c": {
949
1331
  "type": "array",
950
1332
  "items": {
951
1333
  "type": "string"
952
1334
  }
953
- }
954
- },
955
- "required": [
956
- "identifier"
957
- ]
958
- },
1335
+ },
1336
+ "issuerJWK": {
1337
+ "$ref": "#/components/schemas/JWK"
1338
+ },
1339
+ "verificationResult": {
1340
+ "$ref": "#/components/schemas/X509ValidationResult"
1341
+ },
1342
+ "certificates": {
1343
+ "type": "array",
1344
+ "items": {}
1345
+ }
1346
+ },
1347
+ "required": [
1348
+ "certificates",
1349
+ "issuerJWK",
1350
+ "jwks",
1351
+ "method",
1352
+ "x5c"
1353
+ ]
1354
+ },
1355
+ "PublicKeyHex": {
1356
+ "type": "string"
1357
+ },
1358
+ "ErrorMessage": {
1359
+ "type": "string"
1360
+ },
1361
+ "ICoseKeyJson": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "kty": {
1365
+ "$ref": "#/components/schemas/ICoseKeyType"
1366
+ },
1367
+ "kid": {
1368
+ "type": "string"
1369
+ },
1370
+ "alg": {
1371
+ "$ref": "#/components/schemas/ICoseSignatureAlgorithm"
1372
+ },
1373
+ "key_ops": {
1374
+ "type": "array",
1375
+ "items": {
1376
+ "$ref": "#/components/schemas/ICoseKeyOperation"
1377
+ }
1378
+ },
1379
+ "baseIV": {
1380
+ "type": "string"
1381
+ },
1382
+ "crv": {
1383
+ "$ref": "#/components/schemas/ICoseCurve"
1384
+ },
1385
+ "x": {
1386
+ "type": "string"
1387
+ },
1388
+ "y": {
1389
+ "type": "string"
1390
+ },
1391
+ "d": {
1392
+ "type": "string"
1393
+ },
1394
+ "x5chain": {
1395
+ "type": "array",
1396
+ "items": {
1397
+ "type": "string"
1398
+ }
1399
+ }
1400
+ },
1401
+ "required": [
1402
+ "kty"
1403
+ ],
1404
+ "additionalProperties": {},
1405
+ "description": "See our mdl-mdoc and crypto library for more information https://github.com/Sphereon-Opensource/mdoc-cbor-crypto-multiplatform\n\nConversion functions are available in above library. Conversion functions are also available for TS in our"
1406
+ },
1407
+ "ICoseKeyType": {
1408
+ "type": "number",
1409
+ "enum": [
1410
+ 1,
1411
+ 2,
1412
+ 3,
1413
+ 4,
1414
+ 0
1415
+ ]
1416
+ },
1417
+ "ICoseSignatureAlgorithm": {
1418
+ "type": "number",
1419
+ "enum": [
1420
+ -7,
1421
+ -47,
1422
+ -35,
1423
+ -36,
1424
+ -8,
1425
+ 4,
1426
+ 5,
1427
+ 6,
1428
+ 7,
1429
+ -37,
1430
+ -38,
1431
+ -39
1432
+ ]
1433
+ },
1434
+ "ICoseKeyOperation": {
1435
+ "type": "number",
1436
+ "enum": [
1437
+ 1,
1438
+ 2,
1439
+ 3,
1440
+ 4,
1441
+ 5,
1442
+ 6,
1443
+ 7,
1444
+ 8,
1445
+ 9,
1446
+ 10
1447
+ ]
1448
+ },
1449
+ "ICoseCurve": {
1450
+ "type": "number",
1451
+ "enum": [
1452
+ 1,
1453
+ 2,
1454
+ 3,
1455
+ 4,
1456
+ 5,
1457
+ 6,
1458
+ 7,
1459
+ -1
1460
+ ]
1461
+ },
1462
+ "ExternalIdentifierCoseKeyOpts": {
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "method": {
1466
+ "type": "string",
1467
+ "const": "cose_key"
1468
+ },
1469
+ "identifier": {
1470
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "identifier"
1475
+ ]
1476
+ },
1477
+ "ExternalIdentifierCoseKeyResult": {
1478
+ "type": "object",
1479
+ "properties": {
1480
+ "method": {
1481
+ "type": "string",
1482
+ "const": "cose_key"
1483
+ },
1484
+ "jwks": {
1485
+ "type": "array",
1486
+ "items": {
1487
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1488
+ }
1489
+ },
1490
+ "coseKey": {
1491
+ "$ref": "#/components/schemas/ICoseKeyJson"
1492
+ },
1493
+ "x5c": {
1494
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
1495
+ }
1496
+ },
1497
+ "required": [
1498
+ "coseKey",
1499
+ "jwks",
1500
+ "method"
1501
+ ]
1502
+ },
1503
+ "ExternalIdentifierDidOpts": {
1504
+ "type": "object",
1505
+ "properties": {
1506
+ "method": {
1507
+ "type": "string",
1508
+ "const": "did"
1509
+ },
1510
+ "identifier": {
1511
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1512
+ },
1513
+ "noVerificationMethodFallback": {
1514
+ "type": "boolean"
1515
+ },
1516
+ "vmRelationship": {
1517
+ "$ref": "#/components/schemas/DIDDocumentSection"
1518
+ },
1519
+ "localResolution": {
1520
+ "type": "boolean"
1521
+ },
1522
+ "uniresolverResolution": {
1523
+ "type": "boolean"
1524
+ },
1525
+ "resolverResolution": {
1526
+ "type": "boolean"
1527
+ }
1528
+ },
1529
+ "required": [
1530
+ "identifier"
1531
+ ]
1532
+ },
1533
+ "ExternalIdentifierDidResult": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "method": {
1537
+ "type": "string",
1538
+ "const": "did"
1539
+ },
1540
+ "jwks": {
1541
+ "type": "array",
1542
+ "items": {
1543
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1544
+ }
1545
+ },
1546
+ "did": {
1547
+ "type": "string"
1548
+ },
1549
+ "didDocument": {
1550
+ "$ref": "#/components/schemas/DIDDocument"
1551
+ },
1552
+ "didJwks": {
1553
+ "$ref": "#/components/schemas/DidDocumentJwks"
1554
+ },
1555
+ "didResolutionResult": {
1556
+ "type": "object",
1557
+ "properties": {
1558
+ "@context": {
1559
+ "anyOf": [
1560
+ {
1561
+ "type": "string",
1562
+ "const": "https://w3id.org/did-resolution/v1"
1563
+ },
1564
+ {
1565
+ "type": "string"
1566
+ },
1567
+ {
1568
+ "type": "array",
1569
+ "items": {
1570
+ "type": "string"
1571
+ }
1572
+ }
1573
+ ]
1574
+ },
1575
+ "didResolutionMetadata": {
1576
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
1577
+ },
1578
+ "didDocumentMetadata": {
1579
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
1580
+ }
1581
+ },
1582
+ "required": [
1583
+ "didResolutionMetadata",
1584
+ "didDocumentMetadata"
1585
+ ]
1586
+ },
1587
+ "didParsed": {
1588
+ "$ref": "#/components/schemas/IParsedDID"
1589
+ }
1590
+ },
1591
+ "required": [
1592
+ "did",
1593
+ "didParsed",
1594
+ "didResolutionResult",
1595
+ "jwks",
1596
+ "method"
1597
+ ]
1598
+ },
1599
+ "ExternalIdentifierJwkOpts": {
1600
+ "type": "object",
1601
+ "properties": {
1602
+ "method": {
1603
+ "type": "string",
1604
+ "const": "jwk"
1605
+ },
1606
+ "identifier": {
1607
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1608
+ },
1609
+ "x5c": {
1610
+ "$ref": "#/components/schemas/ExternalIdentifierX5cOpts"
1611
+ }
1612
+ },
1613
+ "required": [
1614
+ "identifier"
1615
+ ]
1616
+ },
1617
+ "ExternalIdentifierJwkResult": {
1618
+ "type": "object",
1619
+ "properties": {
1620
+ "method": {
1621
+ "type": "string",
1622
+ "const": "jwk"
1623
+ },
1624
+ "jwks": {
1625
+ "type": "array",
1626
+ "items": {
1627
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1628
+ }
1629
+ },
1630
+ "jwk": {
1631
+ "$ref": "#/components/schemas/JWK"
1632
+ },
1633
+ "x5c": {
1634
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
1635
+ }
1636
+ },
1637
+ "required": [
1638
+ "jwk",
1639
+ "jwks",
1640
+ "method"
1641
+ ]
1642
+ },
1643
+ "ExternalIdentifierOIDFEntityIdOpts": {
1644
+ "type": "object",
1645
+ "properties": {
1646
+ "method": {
1647
+ "type": "string",
1648
+ "const": "entity_id"
1649
+ },
1650
+ "identifier": {
1651
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1652
+ },
1653
+ "trustAnchors": {
1654
+ "type": "array",
1655
+ "items": {
1656
+ "type": "string"
1657
+ }
1658
+ }
1659
+ },
1660
+ "required": [
1661
+ "identifier"
1662
+ ]
1663
+ },
1664
+ "ExternalIdentifierOIDFEntityIdResult": {
1665
+ "type": "object",
1666
+ "properties": {
1667
+ "method": {
1668
+ "type": "string",
1669
+ "const": "entity_id"
1670
+ },
1671
+ "jwks": {
1672
+ "type": "array",
1673
+ "items": {
1674
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1675
+ }
1676
+ },
1677
+ "trustedAnchors": {
1678
+ "type": "object",
1679
+ "additionalProperties": {
1680
+ "$ref": "#/components/schemas/PublicKeyHex"
1681
+ }
1682
+ },
1683
+ "errorList": {
1684
+ "type": "object",
1685
+ "additionalProperties": {
1686
+ "$ref": "#/components/schemas/ErrorMessage"
1687
+ }
1688
+ },
1689
+ "trustEstablished": {
1690
+ "type": "boolean"
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "jwks",
1695
+ "method",
1696
+ "trustEstablished",
1697
+ "trustedAnchors"
1698
+ ]
1699
+ },
1700
+ "ManagedIdentifierOptsOrResult": {
1701
+ "anyOf": [
1702
+ {
1703
+ "type": "object",
1704
+ "properties": {
1705
+ "lazyDisabled": {
1706
+ "type": "boolean"
1707
+ },
1708
+ "jwk": {
1709
+ "$ref": "#/components/schemas/JWK"
1710
+ },
1711
+ "jwkThumbprint": {
1712
+ "type": "string"
1713
+ },
1714
+ "kmsKeyRef": {
1715
+ "type": "string"
1716
+ },
1717
+ "method": {
1718
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1719
+ },
1720
+ "opts": {
1721
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1722
+ },
1723
+ "key": {
1724
+ "$ref": "#/components/schemas/IKey"
1725
+ },
1726
+ "kid": {
1727
+ "type": "string"
1728
+ },
1729
+ "issuer": {
1730
+ "type": "string"
1731
+ },
1732
+ "clientId": {
1733
+ "type": "string"
1734
+ },
1735
+ "clientIdScheme": {
1736
+ "anyOf": [
1737
+ {
1738
+ "$ref": "#/components/schemas/ClientIdScheme"
1739
+ },
1740
+ {
1741
+ "type": "string",
1742
+ "const": "did"
1743
+ },
1744
+ {
1745
+ "type": "string"
1746
+ }
1747
+ ]
1748
+ },
1749
+ "identifier": {
1750
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1751
+ },
1752
+ "x5c": {
1753
+ "type": "array",
1754
+ "items": {
1755
+ "type": "string"
1756
+ }
1757
+ },
1758
+ "certificate": {}
1759
+ },
1760
+ "required": [
1761
+ "certificate",
1762
+ "identifier",
1763
+ "jwk",
1764
+ "jwkThumbprint",
1765
+ "key",
1766
+ "kmsKeyRef",
1767
+ "method",
1768
+ "opts",
1769
+ "x5c"
1770
+ ]
1771
+ },
1772
+ {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "lazyDisabled": {
1776
+ "type": "boolean"
1777
+ },
1778
+ "jwk": {
1779
+ "$ref": "#/components/schemas/JWK"
1780
+ },
1781
+ "jwkThumbprint": {
1782
+ "type": "string"
1783
+ },
1784
+ "kmsKeyRef": {
1785
+ "type": "string"
1786
+ },
1787
+ "method": {
1788
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1789
+ },
1790
+ "opts": {
1791
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1792
+ },
1793
+ "key": {
1794
+ "$ref": "#/components/schemas/IKey"
1795
+ },
1796
+ "kid": {
1797
+ "type": "string"
1798
+ },
1799
+ "issuer": {
1800
+ "type": "string"
1801
+ },
1802
+ "clientId": {
1803
+ "type": "string"
1804
+ },
1805
+ "clientIdScheme": {
1806
+ "anyOf": [
1807
+ {
1808
+ "$ref": "#/components/schemas/ClientIdScheme"
1809
+ },
1810
+ {
1811
+ "type": "string",
1812
+ "const": "did"
1813
+ },
1814
+ {
1815
+ "type": "string"
1816
+ }
1817
+ ]
1818
+ },
1819
+ "identifier": {
1820
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1821
+ },
1822
+ "did": {
1823
+ "type": "string"
1824
+ },
1825
+ "keys": {
1826
+ "type": "array",
1827
+ "items": {
1828
+ "$ref": "#/components/schemas/IKey"
1829
+ }
1830
+ },
1831
+ "verificationMethodSection": {
1832
+ "$ref": "#/components/schemas/DIDDocumentSection"
1833
+ },
1834
+ "controllerKeyId": {
1835
+ "type": "string"
1836
+ }
1837
+ },
1838
+ "required": [
1839
+ "did",
1840
+ "identifier",
1841
+ "issuer",
1842
+ "jwk",
1843
+ "jwkThumbprint",
1844
+ "key",
1845
+ "keys",
1846
+ "kid",
1847
+ "kmsKeyRef",
1848
+ "method",
1849
+ "opts"
1850
+ ]
1851
+ },
1852
+ {
1853
+ "type": "object",
1854
+ "properties": {
1855
+ "lazyDisabled": {
1856
+ "type": "boolean"
1857
+ },
1858
+ "jwk": {
1859
+ "$ref": "#/components/schemas/JWK"
1860
+ },
1861
+ "jwkThumbprint": {
1862
+ "type": "string"
1863
+ },
1864
+ "kmsKeyRef": {
1865
+ "type": "string"
1866
+ },
1867
+ "method": {
1868
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1869
+ },
1870
+ "opts": {
1871
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1872
+ },
1873
+ "key": {
1874
+ "$ref": "#/components/schemas/IKey"
1875
+ },
1876
+ "kid": {
1877
+ "type": "string"
1878
+ },
1879
+ "issuer": {
1880
+ "type": "string"
1881
+ },
1882
+ "clientId": {
1883
+ "type": "string"
1884
+ },
1885
+ "clientIdScheme": {
1886
+ "anyOf": [
1887
+ {
1888
+ "$ref": "#/components/schemas/ClientIdScheme"
1889
+ },
1890
+ {
1891
+ "type": "string",
1892
+ "const": "did"
1893
+ },
1894
+ {
1895
+ "type": "string"
1896
+ }
1897
+ ]
1898
+ },
1899
+ "identifier": {
1900
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1901
+ }
1902
+ },
1903
+ "required": [
1904
+ "identifier",
1905
+ "jwk",
1906
+ "jwkThumbprint",
1907
+ "key",
1908
+ "kmsKeyRef",
1909
+ "method",
1910
+ "opts"
1911
+ ]
1912
+ },
1913
+ {
1914
+ "type": "object",
1915
+ "properties": {
1916
+ "lazyDisabled": {
1917
+ "type": "boolean"
1918
+ },
1919
+ "jwk": {
1920
+ "$ref": "#/components/schemas/JWK"
1921
+ },
1922
+ "jwkThumbprint": {
1923
+ "type": "string"
1924
+ },
1925
+ "kmsKeyRef": {
1926
+ "type": "string"
1927
+ },
1928
+ "method": {
1929
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1930
+ },
1931
+ "opts": {
1932
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1933
+ },
1934
+ "key": {
1935
+ "$ref": "#/components/schemas/IKey"
1936
+ },
1937
+ "kid": {
1938
+ "type": "string"
1939
+ },
1940
+ "issuer": {
1941
+ "type": "string"
1942
+ },
1943
+ "clientId": {
1944
+ "type": "string"
1945
+ },
1946
+ "clientIdScheme": {
1947
+ "anyOf": [
1948
+ {
1949
+ "$ref": "#/components/schemas/ClientIdScheme"
1950
+ },
1951
+ {
1952
+ "type": "string",
1953
+ "const": "did"
1954
+ },
1955
+ {
1956
+ "type": "string"
1957
+ }
1958
+ ]
1959
+ },
1960
+ "identifier": {
1961
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1962
+ }
1963
+ },
1964
+ "required": [
1965
+ "identifier",
1966
+ "jwk",
1967
+ "jwkThumbprint",
1968
+ "key",
1969
+ "kid",
1970
+ "kmsKeyRef",
1971
+ "method",
1972
+ "opts"
1973
+ ]
1974
+ },
1975
+ {
1976
+ "type": "object",
1977
+ "properties": {
1978
+ "lazyDisabled": {
1979
+ "type": "boolean"
1980
+ },
1981
+ "jwk": {
1982
+ "$ref": "#/components/schemas/JWK"
1983
+ },
1984
+ "jwkThumbprint": {
1985
+ "type": "string"
1986
+ },
1987
+ "kmsKeyRef": {
1988
+ "type": "string"
1989
+ },
1990
+ "method": {
1991
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1992
+ },
1993
+ "opts": {
1994
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1995
+ },
1996
+ "key": {
1997
+ "$ref": "#/components/schemas/IKey"
1998
+ },
1999
+ "kid": {
2000
+ "type": "string"
2001
+ },
2002
+ "issuer": {
2003
+ "type": "string"
2004
+ },
2005
+ "clientId": {
2006
+ "type": "string"
2007
+ },
2008
+ "clientIdScheme": {
2009
+ "anyOf": [
2010
+ {
2011
+ "$ref": "#/components/schemas/ClientIdScheme"
2012
+ },
2013
+ {
2014
+ "type": "string",
2015
+ "const": "did"
2016
+ },
2017
+ {
2018
+ "type": "string"
2019
+ }
2020
+ ]
2021
+ },
2022
+ "identifier": {
2023
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2024
+ }
2025
+ },
2026
+ "required": [
2027
+ "identifier",
2028
+ "jwk",
2029
+ "jwkThumbprint",
2030
+ "key",
2031
+ "kmsKeyRef",
2032
+ "method",
2033
+ "opts"
2034
+ ]
2035
+ },
2036
+ {
2037
+ "type": "object",
2038
+ "properties": {
2039
+ "lazyDisabled": {
2040
+ "type": "boolean"
2041
+ },
2042
+ "jwk": {
2043
+ "$ref": "#/components/schemas/JWK"
2044
+ },
2045
+ "jwkThumbprint": {
2046
+ "type": "string"
2047
+ },
2048
+ "kmsKeyRef": {
2049
+ "type": "string"
2050
+ },
2051
+ "method": {
2052
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
2053
+ },
2054
+ "opts": {
2055
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
2056
+ },
2057
+ "key": {
2058
+ "$ref": "#/components/schemas/IKey"
2059
+ },
2060
+ "kid": {
2061
+ "type": "string"
2062
+ },
2063
+ "issuer": {
2064
+ "type": "string"
2065
+ },
2066
+ "clientId": {
2067
+ "type": "string"
2068
+ },
2069
+ "clientIdScheme": {
2070
+ "anyOf": [
2071
+ {
2072
+ "$ref": "#/components/schemas/ClientIdScheme"
2073
+ },
2074
+ {
2075
+ "type": "string",
2076
+ "const": "did"
2077
+ },
2078
+ {
2079
+ "type": "string"
2080
+ }
2081
+ ]
2082
+ },
2083
+ "identifier": {
2084
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2085
+ }
2086
+ },
2087
+ "required": [
2088
+ "identifier",
2089
+ "jwk",
2090
+ "jwkThumbprint",
2091
+ "key",
2092
+ "kmsKeyRef",
2093
+ "method",
2094
+ "opts"
2095
+ ]
2096
+ },
2097
+ {
2098
+ "type": "object",
2099
+ "properties": {
2100
+ "lazyDisabled": {
2101
+ "type": "boolean"
2102
+ },
2103
+ "jwk": {
2104
+ "$ref": "#/components/schemas/JWK"
2105
+ },
2106
+ "jwkThumbprint": {
2107
+ "type": "string"
2108
+ },
2109
+ "kmsKeyRef": {
2110
+ "type": "string"
2111
+ },
2112
+ "method": {
2113
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
2114
+ },
2115
+ "opts": {
2116
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
2117
+ },
2118
+ "key": {
2119
+ "$ref": "#/components/schemas/IKey"
2120
+ },
2121
+ "kid": {
2122
+ "type": "string"
2123
+ },
2124
+ "issuer": {
2125
+ "type": "string"
2126
+ },
2127
+ "clientId": {
2128
+ "type": "string"
2129
+ },
2130
+ "clientIdScheme": {
2131
+ "anyOf": [
2132
+ {
2133
+ "$ref": "#/components/schemas/ClientIdScheme"
2134
+ },
2135
+ {
2136
+ "type": "string",
2137
+ "const": "did"
2138
+ },
2139
+ {
2140
+ "type": "string"
2141
+ }
2142
+ ]
2143
+ },
2144
+ "identifier": {
2145
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2146
+ }
2147
+ },
2148
+ "required": [
2149
+ "identifier",
2150
+ "jwk",
2151
+ "jwkThumbprint",
2152
+ "key",
2153
+ "kmsKeyRef",
2154
+ "method",
2155
+ "opts"
2156
+ ]
2157
+ },
2158
+ {
2159
+ "type": "object",
2160
+ "properties": {
2161
+ "lazyDisabled": {
2162
+ "type": "boolean"
2163
+ },
2164
+ "method": {
2165
+ "type": "string",
2166
+ "const": "jwk"
2167
+ },
2168
+ "identifier": {
2169
+ "$ref": "#/components/schemas/JWK"
2170
+ },
2171
+ "kmsKeyRef": {
2172
+ "type": "string"
2173
+ },
2174
+ "issuer": {
2175
+ "type": "string"
2176
+ },
2177
+ "kid": {
2178
+ "type": "string"
2179
+ },
2180
+ "clientId": {
2181
+ "type": "string"
2182
+ },
2183
+ "clientIdScheme": {
2184
+ "anyOf": [
2185
+ {
2186
+ "$ref": "#/components/schemas/ClientIdScheme"
2187
+ },
2188
+ {
2189
+ "type": "string",
2190
+ "const": "did"
2191
+ },
2192
+ {
2193
+ "type": "string"
2194
+ }
2195
+ ]
2196
+ }
2197
+ },
2198
+ "required": [
2199
+ "identifier"
2200
+ ]
2201
+ },
2202
+ {
2203
+ "type": "object",
2204
+ "properties": {
2205
+ "lazyDisabled": {
2206
+ "type": "boolean"
2207
+ },
2208
+ "method": {
2209
+ "type": "string",
2210
+ "const": "x5c"
2211
+ },
2212
+ "identifier": {
2213
+ "type": "array",
2214
+ "items": {
2215
+ "type": "string"
2216
+ }
2217
+ },
2218
+ "kmsKeyRef": {
2219
+ "type": "string"
2220
+ },
2221
+ "issuer": {
2222
+ "type": "string"
2223
+ },
2224
+ "kid": {
2225
+ "type": "string"
2226
+ },
2227
+ "clientId": {
2228
+ "type": "string"
2229
+ },
2230
+ "clientIdScheme": {
2231
+ "anyOf": [
2232
+ {
2233
+ "$ref": "#/components/schemas/ClientIdScheme"
2234
+ },
2235
+ {
2236
+ "type": "string",
2237
+ "const": "did"
2238
+ },
2239
+ {
2240
+ "type": "string"
2241
+ }
2242
+ ]
2243
+ }
2244
+ },
2245
+ "required": [
2246
+ "identifier"
2247
+ ]
2248
+ },
2249
+ {
2250
+ "type": "object",
2251
+ "properties": {
2252
+ "lazyDisabled": {
2253
+ "type": "boolean"
2254
+ },
2255
+ "method": {
2256
+ "type": "string",
2257
+ "const": "did"
2258
+ },
2259
+ "identifier": {
2260
+ "anyOf": [
2261
+ {
2262
+ "$ref": "#/components/schemas/IIdentifier"
2263
+ },
2264
+ {
2265
+ "type": "string"
2266
+ }
2267
+ ]
2268
+ },
2269
+ "kmsKeyRef": {
2270
+ "type": "string"
2271
+ },
2272
+ "issuer": {
2273
+ "type": "string"
2274
+ },
2275
+ "kid": {
2276
+ "type": "string"
2277
+ },
2278
+ "clientId": {
2279
+ "type": "string"
2280
+ },
2281
+ "clientIdScheme": {
2282
+ "anyOf": [
2283
+ {
2284
+ "$ref": "#/components/schemas/ClientIdScheme"
2285
+ },
2286
+ {
2287
+ "type": "string",
2288
+ "const": "did"
2289
+ },
2290
+ {
2291
+ "type": "string"
2292
+ }
2293
+ ]
2294
+ },
2295
+ "keyType": {
2296
+ "$ref": "#/components/schemas/TKeyType"
2297
+ },
2298
+ "offlineWhenNoDIDRegistered": {
2299
+ "type": "boolean"
2300
+ },
2301
+ "noVerificationMethodFallback": {
2302
+ "type": "boolean"
2303
+ },
2304
+ "controllerKey": {
2305
+ "type": "boolean"
2306
+ },
2307
+ "vmRelationship": {
2308
+ "$ref": "#/components/schemas/DIDDocumentSection"
2309
+ }
2310
+ },
2311
+ "required": [
2312
+ "identifier"
2313
+ ]
2314
+ },
2315
+ {
2316
+ "type": "object",
2317
+ "properties": {
2318
+ "lazyDisabled": {
2319
+ "type": "boolean"
2320
+ },
2321
+ "method": {
2322
+ "type": "string",
2323
+ "const": "kid"
2324
+ },
2325
+ "identifier": {
2326
+ "type": "string"
2327
+ },
2328
+ "kmsKeyRef": {
2329
+ "type": "string"
2330
+ },
2331
+ "issuer": {
2332
+ "type": "string"
2333
+ },
2334
+ "kid": {
2335
+ "type": "string"
2336
+ },
2337
+ "clientId": {
2338
+ "type": "string"
2339
+ },
2340
+ "clientIdScheme": {
2341
+ "anyOf": [
2342
+ {
2343
+ "$ref": "#/components/schemas/ClientIdScheme"
2344
+ },
2345
+ {
2346
+ "type": "string",
2347
+ "const": "did"
2348
+ },
2349
+ {
2350
+ "type": "string"
2351
+ }
2352
+ ]
2353
+ }
2354
+ },
2355
+ "required": [
2356
+ "identifier"
2357
+ ]
2358
+ },
2359
+ {
2360
+ "type": "object",
2361
+ "properties": {
2362
+ "lazyDisabled": {
2363
+ "type": "boolean"
2364
+ },
2365
+ "method": {
2366
+ "type": "string",
2367
+ "const": "key"
2368
+ },
2369
+ "identifier": {
2370
+ "$ref": "#/components/schemas/IKey"
2371
+ },
2372
+ "kmsKeyRef": {
2373
+ "type": "string"
2374
+ },
2375
+ "issuer": {
2376
+ "type": "string"
2377
+ },
2378
+ "kid": {
2379
+ "type": "string"
2380
+ },
2381
+ "clientId": {
2382
+ "type": "string"
2383
+ },
2384
+ "clientIdScheme": {
2385
+ "anyOf": [
2386
+ {
2387
+ "$ref": "#/components/schemas/ClientIdScheme"
2388
+ },
2389
+ {
2390
+ "type": "string",
2391
+ "const": "did"
2392
+ },
2393
+ {
2394
+ "type": "string"
2395
+ }
2396
+ ]
2397
+ }
2398
+ },
2399
+ "required": [
2400
+ "identifier"
2401
+ ]
2402
+ },
2403
+ {
2404
+ "type": "object",
2405
+ "properties": {
2406
+ "lazyDisabled": {
2407
+ "type": "boolean"
2408
+ },
2409
+ "method": {
2410
+ "type": "string",
2411
+ "const": "cose_key"
2412
+ },
2413
+ "identifier": {
2414
+ "$ref": "#/components/schemas/ICoseKeyJson"
2415
+ },
2416
+ "kmsKeyRef": {
2417
+ "type": "string"
2418
+ },
2419
+ "issuer": {
2420
+ "type": "string"
2421
+ },
2422
+ "kid": {
2423
+ "type": "string"
2424
+ },
2425
+ "clientId": {
2426
+ "type": "string"
2427
+ },
2428
+ "clientIdScheme": {
2429
+ "anyOf": [
2430
+ {
2431
+ "$ref": "#/components/schemas/ClientIdScheme"
2432
+ },
2433
+ {
2434
+ "type": "string",
2435
+ "const": "did"
2436
+ },
2437
+ {
2438
+ "type": "string"
2439
+ }
2440
+ ]
2441
+ }
2442
+ },
2443
+ "required": [
2444
+ "identifier"
2445
+ ]
2446
+ },
2447
+ {
2448
+ "type": "object",
2449
+ "properties": {
2450
+ "lazyDisabled": {
2451
+ "type": "boolean"
2452
+ },
2453
+ "method": {
2454
+ "type": "string",
2455
+ "const": "oid4vci-issuer"
2456
+ },
2457
+ "identifier": {
2458
+ "type": "string"
2459
+ },
2460
+ "kmsKeyRef": {
2461
+ "type": "string"
2462
+ },
2463
+ "issuer": {
2464
+ "type": "string"
2465
+ },
2466
+ "kid": {
2467
+ "type": "string"
2468
+ },
2469
+ "clientId": {
2470
+ "type": "string"
2471
+ },
2472
+ "clientIdScheme": {
2473
+ "anyOf": [
2474
+ {
2475
+ "$ref": "#/components/schemas/ClientIdScheme"
2476
+ },
2477
+ {
2478
+ "type": "string",
2479
+ "const": "did"
2480
+ },
2481
+ {
2482
+ "type": "string"
2483
+ }
2484
+ ]
2485
+ }
2486
+ },
2487
+ "required": [
2488
+ "identifier"
2489
+ ]
2490
+ }
2491
+ ]
2492
+ },
2493
+ "ManagedIdentifierMethod": {
2494
+ "type": "string",
2495
+ "enum": [
2496
+ "did",
2497
+ "jwk",
2498
+ "x5c",
2499
+ "kid",
2500
+ "key",
2501
+ "cose_key",
2502
+ "oid4vci-issuer"
2503
+ ]
2504
+ },
959
2505
  "ManagedIdentifierOpts": {
960
2506
  "anyOf": [
961
2507
  {
@@ -966,7 +2512,7 @@
966
2512
  "const": "jwk"
967
2513
  },
968
2514
  "identifier": {
969
- "$ref": "#/components/schemas/ManagedIdentifierType"
2515
+ "$ref": "#/components/schemas/JWK"
970
2516
  },
971
2517
  "kmsKeyRef": {
972
2518
  "type": "string"
@@ -976,6 +2522,23 @@
976
2522
  },
977
2523
  "kid": {
978
2524
  "type": "string"
2525
+ },
2526
+ "clientId": {
2527
+ "type": "string"
2528
+ },
2529
+ "clientIdScheme": {
2530
+ "anyOf": [
2531
+ {
2532
+ "$ref": "#/components/schemas/ClientIdScheme"
2533
+ },
2534
+ {
2535
+ "type": "string",
2536
+ "const": "did"
2537
+ },
2538
+ {
2539
+ "type": "string"
2540
+ }
2541
+ ]
979
2542
  }
980
2543
  },
981
2544
  "required": [
@@ -990,7 +2553,10 @@
990
2553
  "const": "x5c"
991
2554
  },
992
2555
  "identifier": {
993
- "$ref": "#/components/schemas/ManagedIdentifierType"
2556
+ "type": "array",
2557
+ "items": {
2558
+ "type": "string"
2559
+ }
994
2560
  },
995
2561
  "kmsKeyRef": {
996
2562
  "type": "string"
@@ -1000,6 +2566,23 @@
1000
2566
  },
1001
2567
  "kid": {
1002
2568
  "type": "string"
2569
+ },
2570
+ "clientId": {
2571
+ "type": "string"
2572
+ },
2573
+ "clientIdScheme": {
2574
+ "anyOf": [
2575
+ {
2576
+ "$ref": "#/components/schemas/ClientIdScheme"
2577
+ },
2578
+ {
2579
+ "type": "string",
2580
+ "const": "did"
2581
+ },
2582
+ {
2583
+ "type": "string"
2584
+ }
2585
+ ]
1003
2586
  }
1004
2587
  },
1005
2588
  "required": [
@@ -1014,7 +2597,14 @@
1014
2597
  "const": "did"
1015
2598
  },
1016
2599
  "identifier": {
1017
- "$ref": "#/components/schemas/ManagedIdentifierType"
2600
+ "anyOf": [
2601
+ {
2602
+ "$ref": "#/components/schemas/IIdentifier"
2603
+ },
2604
+ {
2605
+ "type": "string"
2606
+ }
2607
+ ]
1018
2608
  },
1019
2609
  "kmsKeyRef": {
1020
2610
  "type": "string"
@@ -1025,6 +2615,23 @@
1025
2615
  "kid": {
1026
2616
  "type": "string"
1027
2617
  },
2618
+ "clientId": {
2619
+ "type": "string"
2620
+ },
2621
+ "clientIdScheme": {
2622
+ "anyOf": [
2623
+ {
2624
+ "$ref": "#/components/schemas/ClientIdScheme"
2625
+ },
2626
+ {
2627
+ "type": "string",
2628
+ "const": "did"
2629
+ },
2630
+ {
2631
+ "type": "string"
2632
+ }
2633
+ ]
2634
+ },
1028
2635
  "keyType": {
1029
2636
  "$ref": "#/components/schemas/TKeyType"
1030
2637
  },
@@ -1050,10 +2657,92 @@
1050
2657
  "properties": {
1051
2658
  "method": {
1052
2659
  "type": "string",
1053
- "const": "kid"
2660
+ "const": "kid"
2661
+ },
2662
+ "identifier": {
2663
+ "type": "string"
2664
+ },
2665
+ "kmsKeyRef": {
2666
+ "type": "string"
2667
+ },
2668
+ "issuer": {
2669
+ "type": "string"
2670
+ },
2671
+ "kid": {
2672
+ "type": "string"
2673
+ },
2674
+ "clientId": {
2675
+ "type": "string"
2676
+ },
2677
+ "clientIdScheme": {
2678
+ "anyOf": [
2679
+ {
2680
+ "$ref": "#/components/schemas/ClientIdScheme"
2681
+ },
2682
+ {
2683
+ "type": "string",
2684
+ "const": "did"
2685
+ },
2686
+ {
2687
+ "type": "string"
2688
+ }
2689
+ ]
2690
+ }
2691
+ },
2692
+ "required": [
2693
+ "identifier"
2694
+ ]
2695
+ },
2696
+ {
2697
+ "type": "object",
2698
+ "properties": {
2699
+ "method": {
2700
+ "type": "string",
2701
+ "const": "key"
2702
+ },
2703
+ "identifier": {
2704
+ "$ref": "#/components/schemas/IKey"
2705
+ },
2706
+ "kmsKeyRef": {
2707
+ "type": "string"
2708
+ },
2709
+ "issuer": {
2710
+ "type": "string"
2711
+ },
2712
+ "kid": {
2713
+ "type": "string"
2714
+ },
2715
+ "clientId": {
2716
+ "type": "string"
2717
+ },
2718
+ "clientIdScheme": {
2719
+ "anyOf": [
2720
+ {
2721
+ "$ref": "#/components/schemas/ClientIdScheme"
2722
+ },
2723
+ {
2724
+ "type": "string",
2725
+ "const": "did"
2726
+ },
2727
+ {
2728
+ "type": "string"
2729
+ }
2730
+ ]
2731
+ }
2732
+ },
2733
+ "required": [
2734
+ "identifier"
2735
+ ]
2736
+ },
2737
+ {
2738
+ "type": "object",
2739
+ "properties": {
2740
+ "method": {
2741
+ "type": "string",
2742
+ "const": "cose_key"
1054
2743
  },
1055
2744
  "identifier": {
1056
- "$ref": "#/components/schemas/ManagedIdentifierType"
2745
+ "$ref": "#/components/schemas/ICoseKeyJson"
1057
2746
  },
1058
2747
  "kmsKeyRef": {
1059
2748
  "type": "string"
@@ -1063,6 +2752,23 @@
1063
2752
  },
1064
2753
  "kid": {
1065
2754
  "type": "string"
2755
+ },
2756
+ "clientId": {
2757
+ "type": "string"
2758
+ },
2759
+ "clientIdScheme": {
2760
+ "anyOf": [
2761
+ {
2762
+ "$ref": "#/components/schemas/ClientIdScheme"
2763
+ },
2764
+ {
2765
+ "type": "string",
2766
+ "const": "did"
2767
+ },
2768
+ {
2769
+ "type": "string"
2770
+ }
2771
+ ]
1066
2772
  }
1067
2773
  },
1068
2774
  "required": [
@@ -1074,10 +2780,10 @@
1074
2780
  "properties": {
1075
2781
  "method": {
1076
2782
  "type": "string",
1077
- "const": "key"
2783
+ "const": "oid4vci-issuer"
1078
2784
  },
1079
2785
  "identifier": {
1080
- "$ref": "#/components/schemas/ManagedIdentifierType"
2786
+ "type": "string"
1081
2787
  },
1082
2788
  "kmsKeyRef": {
1083
2789
  "type": "string"
@@ -1087,6 +2793,23 @@
1087
2793
  },
1088
2794
  "kid": {
1089
2795
  "type": "string"
2796
+ },
2797
+ "clientId": {
2798
+ "type": "string"
2799
+ },
2800
+ "clientIdScheme": {
2801
+ "anyOf": [
2802
+ {
2803
+ "$ref": "#/components/schemas/ClientIdScheme"
2804
+ },
2805
+ {
2806
+ "type": "string",
2807
+ "const": "did"
2808
+ },
2809
+ {
2810
+ "type": "string"
2811
+ }
2812
+ ]
1090
2813
  }
1091
2814
  },
1092
2815
  "required": [
@@ -1095,29 +2818,6 @@
1095
2818
  }
1096
2819
  ]
1097
2820
  },
1098
- "ManagedIdentifierType": {
1099
- "anyOf": [
1100
- {
1101
- "$ref": "#/components/schemas/IIdentifier"
1102
- },
1103
- {
1104
- "type": "string"
1105
- },
1106
- {
1107
- "type": "array",
1108
- "items": {
1109
- "type": "string"
1110
- }
1111
- },
1112
- {
1113
- "$ref": "#/components/schemas/JWK"
1114
- },
1115
- {
1116
- "$ref": "#/components/schemas/IKey"
1117
- }
1118
- ],
1119
- "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"
1120
- },
1121
2821
  "IIdentifier": {
1122
2822
  "type": "object",
1123
2823
  "properties": {
@@ -1276,6 +2976,32 @@
1276
2976
  ],
1277
2977
  "description": "Represents a service endpoint URL or a map of URLs"
1278
2978
  },
2979
+ "ManagedIdentifierType": {
2980
+ "anyOf": [
2981
+ {
2982
+ "$ref": "#/components/schemas/IIdentifier"
2983
+ },
2984
+ {
2985
+ "type": "string"
2986
+ },
2987
+ {
2988
+ "type": "array",
2989
+ "items": {
2990
+ "type": "string"
2991
+ }
2992
+ },
2993
+ {
2994
+ "$ref": "#/components/schemas/JWK"
2995
+ },
2996
+ {
2997
+ "$ref": "#/components/schemas/IKey"
2998
+ },
2999
+ {
3000
+ "$ref": "#/components/schemas/ICoseKeyJson"
3001
+ }
3002
+ ],
3003
+ "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"
3004
+ },
1279
3005
  "ManagedIdentifierResult": {
1280
3006
  "anyOf": [
1281
3007
  {
@@ -1305,6 +3031,26 @@
1305
3031
  "issuer": {
1306
3032
  "type": "string"
1307
3033
  },
3034
+ "clientId": {
3035
+ "type": "string"
3036
+ },
3037
+ "clientIdScheme": {
3038
+ "anyOf": [
3039
+ {
3040
+ "$ref": "#/components/schemas/ClientIdScheme"
3041
+ },
3042
+ {
3043
+ "type": "string",
3044
+ "const": "did"
3045
+ },
3046
+ {
3047
+ "type": "string"
3048
+ }
3049
+ ]
3050
+ },
3051
+ "identifier": {
3052
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3053
+ },
1308
3054
  "x5c": {
1309
3055
  "type": "array",
1310
3056
  "items": {
@@ -1315,6 +3061,7 @@
1315
3061
  },
1316
3062
  "required": [
1317
3063
  "certificate",
3064
+ "identifier",
1318
3065
  "jwk",
1319
3066
  "jwkThumbprint",
1320
3067
  "key",
@@ -1351,8 +3098,25 @@
1351
3098
  "issuer": {
1352
3099
  "type": "string"
1353
3100
  },
3101
+ "clientId": {
3102
+ "type": "string"
3103
+ },
3104
+ "clientIdScheme": {
3105
+ "anyOf": [
3106
+ {
3107
+ "$ref": "#/components/schemas/ClientIdScheme"
3108
+ },
3109
+ {
3110
+ "type": "string",
3111
+ "const": "did"
3112
+ },
3113
+ {
3114
+ "type": "string"
3115
+ }
3116
+ ]
3117
+ },
1354
3118
  "identifier": {
1355
- "$ref": "#/components/schemas/IIdentifier"
3119
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1356
3120
  },
1357
3121
  "did": {
1358
3122
  "type": "string"
@@ -1410,9 +3174,147 @@
1410
3174
  },
1411
3175
  "issuer": {
1412
3176
  "type": "string"
3177
+ },
3178
+ "clientId": {
3179
+ "type": "string"
3180
+ },
3181
+ "clientIdScheme": {
3182
+ "anyOf": [
3183
+ {
3184
+ "$ref": "#/components/schemas/ClientIdScheme"
3185
+ },
3186
+ {
3187
+ "type": "string",
3188
+ "const": "did"
3189
+ },
3190
+ {
3191
+ "type": "string"
3192
+ }
3193
+ ]
3194
+ },
3195
+ "identifier": {
3196
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3197
+ }
3198
+ },
3199
+ "required": [
3200
+ "identifier",
3201
+ "jwk",
3202
+ "jwkThumbprint",
3203
+ "key",
3204
+ "kmsKeyRef",
3205
+ "method",
3206
+ "opts"
3207
+ ]
3208
+ },
3209
+ {
3210
+ "type": "object",
3211
+ "properties": {
3212
+ "jwk": {
3213
+ "$ref": "#/components/schemas/JWK"
3214
+ },
3215
+ "jwkThumbprint": {
3216
+ "type": "string"
3217
+ },
3218
+ "kmsKeyRef": {
3219
+ "type": "string"
3220
+ },
3221
+ "method": {
3222
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3223
+ },
3224
+ "opts": {
3225
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3226
+ },
3227
+ "key": {
3228
+ "$ref": "#/components/schemas/IKey"
3229
+ },
3230
+ "kid": {
3231
+ "type": "string"
3232
+ },
3233
+ "issuer": {
3234
+ "type": "string"
3235
+ },
3236
+ "clientId": {
3237
+ "type": "string"
3238
+ },
3239
+ "clientIdScheme": {
3240
+ "anyOf": [
3241
+ {
3242
+ "$ref": "#/components/schemas/ClientIdScheme"
3243
+ },
3244
+ {
3245
+ "type": "string",
3246
+ "const": "did"
3247
+ },
3248
+ {
3249
+ "type": "string"
3250
+ }
3251
+ ]
3252
+ },
3253
+ "identifier": {
3254
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3255
+ }
3256
+ },
3257
+ "required": [
3258
+ "identifier",
3259
+ "jwk",
3260
+ "jwkThumbprint",
3261
+ "key",
3262
+ "kid",
3263
+ "kmsKeyRef",
3264
+ "method",
3265
+ "opts"
3266
+ ]
3267
+ },
3268
+ {
3269
+ "type": "object",
3270
+ "properties": {
3271
+ "jwk": {
3272
+ "$ref": "#/components/schemas/JWK"
3273
+ },
3274
+ "jwkThumbprint": {
3275
+ "type": "string"
3276
+ },
3277
+ "kmsKeyRef": {
3278
+ "type": "string"
3279
+ },
3280
+ "method": {
3281
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3282
+ },
3283
+ "opts": {
3284
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3285
+ },
3286
+ "key": {
3287
+ "$ref": "#/components/schemas/IKey"
3288
+ },
3289
+ "kid": {
3290
+ "type": "string"
3291
+ },
3292
+ "issuer": {
3293
+ "type": "string"
3294
+ },
3295
+ "clientId": {
3296
+ "type": "string"
3297
+ },
3298
+ "clientIdScheme": {
3299
+ "anyOf": [
3300
+ {
3301
+ "$ref": "#/components/schemas/ClientIdScheme"
3302
+ },
3303
+ {
3304
+ "type": "string",
3305
+ "const": "did"
3306
+ },
3307
+ {
3308
+ "type": "string"
3309
+ }
3310
+ ]
3311
+ },
3312
+ "identifier": {
3313
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1413
3314
  }
1414
3315
  },
1415
3316
  "required": [
3317
+ "identifier",
1416
3318
  "jwk",
1417
3319
  "jwkThumbprint",
1418
3320
  "key",
@@ -1445,16 +3347,35 @@
1445
3347
  "kid": {
1446
3348
  "type": "string"
1447
3349
  },
1448
- "issuer": {
1449
- "type": "string"
3350
+ "issuer": {
3351
+ "type": "string"
3352
+ },
3353
+ "clientId": {
3354
+ "type": "string"
3355
+ },
3356
+ "clientIdScheme": {
3357
+ "anyOf": [
3358
+ {
3359
+ "$ref": "#/components/schemas/ClientIdScheme"
3360
+ },
3361
+ {
3362
+ "type": "string",
3363
+ "const": "did"
3364
+ },
3365
+ {
3366
+ "type": "string"
3367
+ }
3368
+ ]
3369
+ },
3370
+ "identifier": {
3371
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1450
3372
  }
1451
3373
  },
1452
3374
  "required": [
1453
- "issuer",
3375
+ "identifier",
1454
3376
  "jwk",
1455
3377
  "jwkThumbprint",
1456
3378
  "key",
1457
- "kid",
1458
3379
  "kmsKeyRef",
1459
3380
  "method",
1460
3381
  "opts"
@@ -1486,14 +3407,33 @@
1486
3407
  },
1487
3408
  "issuer": {
1488
3409
  "type": "string"
3410
+ },
3411
+ "clientId": {
3412
+ "type": "string"
3413
+ },
3414
+ "clientIdScheme": {
3415
+ "anyOf": [
3416
+ {
3417
+ "$ref": "#/components/schemas/ClientIdScheme"
3418
+ },
3419
+ {
3420
+ "type": "string",
3421
+ "const": "did"
3422
+ },
3423
+ {
3424
+ "type": "string"
3425
+ }
3426
+ ]
3427
+ },
3428
+ "identifier": {
3429
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1489
3430
  }
1490
3431
  },
1491
3432
  "required": [
1492
- "issuer",
3433
+ "identifier",
1493
3434
  "jwk",
1494
3435
  "jwkThumbprint",
1495
3436
  "key",
1496
- "kid",
1497
3437
  "kmsKeyRef",
1498
3438
  "method",
1499
3439
  "opts"
@@ -1501,14 +3441,104 @@
1501
3441
  }
1502
3442
  ]
1503
3443
  },
1504
- "ManagedIdentifierMethod": {
1505
- "type": "string",
1506
- "enum": [
1507
- "did",
3444
+ "ManagedIdentifierCoseKeyOpts": {
3445
+ "type": "object",
3446
+ "properties": {
3447
+ "method": {
3448
+ "type": "string",
3449
+ "const": "cose_key"
3450
+ },
3451
+ "identifier": {
3452
+ "$ref": "#/components/schemas/ICoseKeyJson"
3453
+ },
3454
+ "kmsKeyRef": {
3455
+ "type": "string"
3456
+ },
3457
+ "issuer": {
3458
+ "type": "string"
3459
+ },
3460
+ "kid": {
3461
+ "type": "string"
3462
+ },
3463
+ "clientId": {
3464
+ "type": "string"
3465
+ },
3466
+ "clientIdScheme": {
3467
+ "anyOf": [
3468
+ {
3469
+ "$ref": "#/components/schemas/ClientIdScheme"
3470
+ },
3471
+ {
3472
+ "type": "string",
3473
+ "const": "did"
3474
+ },
3475
+ {
3476
+ "type": "string"
3477
+ }
3478
+ ]
3479
+ }
3480
+ },
3481
+ "required": [
3482
+ "identifier"
3483
+ ]
3484
+ },
3485
+ "ManagedIdentifierCoseKeyResult": {
3486
+ "type": "object",
3487
+ "properties": {
3488
+ "jwk": {
3489
+ "$ref": "#/components/schemas/JWK"
3490
+ },
3491
+ "jwkThumbprint": {
3492
+ "type": "string"
3493
+ },
3494
+ "kmsKeyRef": {
3495
+ "type": "string"
3496
+ },
3497
+ "method": {
3498
+ "type": "string",
3499
+ "const": "cose_key"
3500
+ },
3501
+ "opts": {
3502
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3503
+ },
3504
+ "key": {
3505
+ "$ref": "#/components/schemas/IKey"
3506
+ },
3507
+ "kid": {
3508
+ "type": "string"
3509
+ },
3510
+ "issuer": {
3511
+ "type": "string"
3512
+ },
3513
+ "clientId": {
3514
+ "type": "string"
3515
+ },
3516
+ "clientIdScheme": {
3517
+ "anyOf": [
3518
+ {
3519
+ "$ref": "#/components/schemas/ClientIdScheme"
3520
+ },
3521
+ {
3522
+ "type": "string",
3523
+ "const": "did"
3524
+ },
3525
+ {
3526
+ "type": "string"
3527
+ }
3528
+ ]
3529
+ },
3530
+ "identifier": {
3531
+ "$ref": "#/components/schemas/ICoseKeyJson"
3532
+ }
3533
+ },
3534
+ "required": [
3535
+ "identifier",
1508
3536
  "jwk",
1509
- "x5c",
1510
- "kid",
1511
- "key"
3537
+ "jwkThumbprint",
3538
+ "key",
3539
+ "kmsKeyRef",
3540
+ "method",
3541
+ "opts"
1512
3542
  ]
1513
3543
  },
1514
3544
  "ManagedIdentifierDidOpts": {
@@ -1519,22 +3549,148 @@
1519
3549
  "const": "did"
1520
3550
  },
1521
3551
  "identifier": {
1522
- "$ref": "#/components/schemas/ManagedIdentifierType"
1523
- },
1524
- "keyType": {
1525
- "$ref": "#/components/schemas/TKeyType"
1526
- },
1527
- "offlineWhenNoDIDRegistered": {
1528
- "type": "boolean"
1529
- },
1530
- "noVerificationMethodFallback": {
1531
- "type": "boolean"
1532
- },
1533
- "controllerKey": {
1534
- "type": "boolean"
1535
- },
1536
- "vmRelationship": {
1537
- "$ref": "#/components/schemas/DIDDocumentSection"
3552
+ "anyOf": [
3553
+ {
3554
+ "$ref": "#/components/schemas/IIdentifier"
3555
+ },
3556
+ {
3557
+ "type": "string"
3558
+ }
3559
+ ]
3560
+ },
3561
+ "keyType": {
3562
+ "$ref": "#/components/schemas/TKeyType"
3563
+ },
3564
+ "offlineWhenNoDIDRegistered": {
3565
+ "type": "boolean"
3566
+ },
3567
+ "noVerificationMethodFallback": {
3568
+ "type": "boolean"
3569
+ },
3570
+ "controllerKey": {
3571
+ "type": "boolean"
3572
+ },
3573
+ "vmRelationship": {
3574
+ "$ref": "#/components/schemas/DIDDocumentSection"
3575
+ },
3576
+ "kmsKeyRef": {
3577
+ "type": "string"
3578
+ },
3579
+ "issuer": {
3580
+ "type": "string"
3581
+ },
3582
+ "kid": {
3583
+ "type": "string"
3584
+ },
3585
+ "clientId": {
3586
+ "type": "string"
3587
+ },
3588
+ "clientIdScheme": {
3589
+ "anyOf": [
3590
+ {
3591
+ "$ref": "#/components/schemas/ClientIdScheme"
3592
+ },
3593
+ {
3594
+ "type": "string",
3595
+ "const": "did"
3596
+ },
3597
+ {
3598
+ "type": "string"
3599
+ }
3600
+ ]
3601
+ }
3602
+ },
3603
+ "required": [
3604
+ "identifier"
3605
+ ]
3606
+ },
3607
+ "ManagedIdentifierDidResult": {
3608
+ "type": "object",
3609
+ "properties": {
3610
+ "jwk": {
3611
+ "$ref": "#/components/schemas/JWK"
3612
+ },
3613
+ "jwkThumbprint": {
3614
+ "type": "string"
3615
+ },
3616
+ "kmsKeyRef": {
3617
+ "type": "string"
3618
+ },
3619
+ "method": {
3620
+ "type": "string",
3621
+ "const": "did"
3622
+ },
3623
+ "opts": {
3624
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3625
+ },
3626
+ "key": {
3627
+ "$ref": "#/components/schemas/IKey"
3628
+ },
3629
+ "kid": {
3630
+ "type": "string"
3631
+ },
3632
+ "issuer": {
3633
+ "type": "string"
3634
+ },
3635
+ "clientId": {
3636
+ "type": "string"
3637
+ },
3638
+ "clientIdScheme": {
3639
+ "anyOf": [
3640
+ {
3641
+ "$ref": "#/components/schemas/ClientIdScheme"
3642
+ },
3643
+ {
3644
+ "type": "string",
3645
+ "const": "did"
3646
+ },
3647
+ {
3648
+ "type": "string"
3649
+ }
3650
+ ]
3651
+ },
3652
+ "identifier": {
3653
+ "$ref": "#/components/schemas/IIdentifier"
3654
+ },
3655
+ "did": {
3656
+ "type": "string"
3657
+ },
3658
+ "keys": {
3659
+ "type": "array",
3660
+ "items": {
3661
+ "$ref": "#/components/schemas/IKey"
3662
+ }
3663
+ },
3664
+ "verificationMethodSection": {
3665
+ "$ref": "#/components/schemas/DIDDocumentSection"
3666
+ },
3667
+ "controllerKeyId": {
3668
+ "type": "string"
3669
+ }
3670
+ },
3671
+ "required": [
3672
+ "did",
3673
+ "identifier",
3674
+ "issuer",
3675
+ "jwk",
3676
+ "jwkThumbprint",
3677
+ "key",
3678
+ "keys",
3679
+ "kid",
3680
+ "kmsKeyRef",
3681
+ "method",
3682
+ "opts"
3683
+ ]
3684
+ },
3685
+ "ManagedIdentifierJwkOpts": {
3686
+ "type": "object",
3687
+ "properties": {
3688
+ "method": {
3689
+ "type": "string",
3690
+ "const": "jwk"
3691
+ },
3692
+ "identifier": {
3693
+ "$ref": "#/components/schemas/JWK"
1538
3694
  },
1539
3695
  "kmsKeyRef": {
1540
3696
  "type": "string"
@@ -1544,13 +3700,30 @@
1544
3700
  },
1545
3701
  "kid": {
1546
3702
  "type": "string"
3703
+ },
3704
+ "clientId": {
3705
+ "type": "string"
3706
+ },
3707
+ "clientIdScheme": {
3708
+ "anyOf": [
3709
+ {
3710
+ "$ref": "#/components/schemas/ClientIdScheme"
3711
+ },
3712
+ {
3713
+ "type": "string",
3714
+ "const": "did"
3715
+ },
3716
+ {
3717
+ "type": "string"
3718
+ }
3719
+ ]
1547
3720
  }
1548
3721
  },
1549
3722
  "required": [
1550
3723
  "identifier"
1551
3724
  ]
1552
3725
  },
1553
- "ManagedIdentifierDidResult": {
3726
+ "ManagedIdentifierJwkResult": {
1554
3727
  "type": "object",
1555
3728
  "properties": {
1556
3729
  "jwk": {
@@ -1564,7 +3737,7 @@
1564
3737
  },
1565
3738
  "method": {
1566
3739
  "type": "string",
1567
- "const": "did"
3740
+ "const": "jwk"
1568
3741
  },
1569
3742
  "opts": {
1570
3743
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1578,48 +3751,46 @@
1578
3751
  "issuer": {
1579
3752
  "type": "string"
1580
3753
  },
1581
- "identifier": {
1582
- "$ref": "#/components/schemas/IIdentifier"
1583
- },
1584
- "did": {
3754
+ "clientId": {
1585
3755
  "type": "string"
1586
3756
  },
1587
- "keys": {
1588
- "type": "array",
1589
- "items": {
1590
- "$ref": "#/components/schemas/IKey"
1591
- }
1592
- },
1593
- "verificationMethodSection": {
1594
- "$ref": "#/components/schemas/DIDDocumentSection"
3757
+ "clientIdScheme": {
3758
+ "anyOf": [
3759
+ {
3760
+ "$ref": "#/components/schemas/ClientIdScheme"
3761
+ },
3762
+ {
3763
+ "type": "string",
3764
+ "const": "did"
3765
+ },
3766
+ {
3767
+ "type": "string"
3768
+ }
3769
+ ]
1595
3770
  },
1596
- "controllerKeyId": {
1597
- "type": "string"
3771
+ "identifier": {
3772
+ "$ref": "#/components/schemas/JWK"
1598
3773
  }
1599
3774
  },
1600
3775
  "required": [
1601
- "did",
1602
3776
  "identifier",
1603
- "issuer",
1604
3777
  "jwk",
1605
3778
  "jwkThumbprint",
1606
3779
  "key",
1607
- "keys",
1608
- "kid",
1609
3780
  "kmsKeyRef",
1610
3781
  "method",
1611
3782
  "opts"
1612
3783
  ]
1613
3784
  },
1614
- "ManagedIdentifierJwkOpts": {
3785
+ "ManagedIdentifierKeyOpts": {
1615
3786
  "type": "object",
1616
3787
  "properties": {
1617
3788
  "method": {
1618
3789
  "type": "string",
1619
- "const": "jwk"
3790
+ "const": "key"
1620
3791
  },
1621
3792
  "identifier": {
1622
- "$ref": "#/components/schemas/ManagedIdentifierType"
3793
+ "$ref": "#/components/schemas/IKey"
1623
3794
  },
1624
3795
  "kmsKeyRef": {
1625
3796
  "type": "string"
@@ -1629,13 +3800,30 @@
1629
3800
  },
1630
3801
  "kid": {
1631
3802
  "type": "string"
3803
+ },
3804
+ "clientId": {
3805
+ "type": "string"
3806
+ },
3807
+ "clientIdScheme": {
3808
+ "anyOf": [
3809
+ {
3810
+ "$ref": "#/components/schemas/ClientIdScheme"
3811
+ },
3812
+ {
3813
+ "type": "string",
3814
+ "const": "did"
3815
+ },
3816
+ {
3817
+ "type": "string"
3818
+ }
3819
+ ]
1632
3820
  }
1633
3821
  },
1634
3822
  "required": [
1635
3823
  "identifier"
1636
3824
  ]
1637
3825
  },
1638
- "ManagedIdentifierJwkResult": {
3826
+ "ManagedIdentifierKeyResult": {
1639
3827
  "type": "object",
1640
3828
  "properties": {
1641
3829
  "jwk": {
@@ -1649,7 +3837,7 @@
1649
3837
  },
1650
3838
  "method": {
1651
3839
  "type": "string",
1652
- "const": "jwk"
3840
+ "const": "key"
1653
3841
  },
1654
3842
  "opts": {
1655
3843
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1662,9 +3850,30 @@
1662
3850
  },
1663
3851
  "issuer": {
1664
3852
  "type": "string"
3853
+ },
3854
+ "clientId": {
3855
+ "type": "string"
3856
+ },
3857
+ "clientIdScheme": {
3858
+ "anyOf": [
3859
+ {
3860
+ "$ref": "#/components/schemas/ClientIdScheme"
3861
+ },
3862
+ {
3863
+ "type": "string",
3864
+ "const": "did"
3865
+ },
3866
+ {
3867
+ "type": "string"
3868
+ }
3869
+ ]
3870
+ },
3871
+ "identifier": {
3872
+ "$ref": "#/components/schemas/IKey"
1665
3873
  }
1666
3874
  },
1667
3875
  "required": [
3876
+ "identifier",
1668
3877
  "jwk",
1669
3878
  "jwkThumbprint",
1670
3879
  "key",
@@ -1673,15 +3882,15 @@
1673
3882
  "opts"
1674
3883
  ]
1675
3884
  },
1676
- "ManagedIdentifierKeyOpts": {
3885
+ "ManagedIdentifierKidOpts": {
1677
3886
  "type": "object",
1678
3887
  "properties": {
1679
3888
  "method": {
1680
3889
  "type": "string",
1681
- "const": "key"
3890
+ "const": "kid"
1682
3891
  },
1683
3892
  "identifier": {
1684
- "$ref": "#/components/schemas/ManagedIdentifierType"
3893
+ "type": "string"
1685
3894
  },
1686
3895
  "kmsKeyRef": {
1687
3896
  "type": "string"
@@ -1691,13 +3900,30 @@
1691
3900
  },
1692
3901
  "kid": {
1693
3902
  "type": "string"
3903
+ },
3904
+ "clientId": {
3905
+ "type": "string"
3906
+ },
3907
+ "clientIdScheme": {
3908
+ "anyOf": [
3909
+ {
3910
+ "$ref": "#/components/schemas/ClientIdScheme"
3911
+ },
3912
+ {
3913
+ "type": "string",
3914
+ "const": "did"
3915
+ },
3916
+ {
3917
+ "type": "string"
3918
+ }
3919
+ ]
1694
3920
  }
1695
3921
  },
1696
3922
  "required": [
1697
3923
  "identifier"
1698
3924
  ]
1699
3925
  },
1700
- "ManagedIdentifierKeyResult": {
3926
+ "ManagedIdentifierKidResult": {
1701
3927
  "type": "object",
1702
3928
  "properties": {
1703
3929
  "jwk": {
@@ -1711,7 +3937,7 @@
1711
3937
  },
1712
3938
  "method": {
1713
3939
  "type": "string",
1714
- "const": "key"
3940
+ "const": "kid"
1715
3941
  },
1716
3942
  "opts": {
1717
3943
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1724,10 +3950,30 @@
1724
3950
  },
1725
3951
  "issuer": {
1726
3952
  "type": "string"
3953
+ },
3954
+ "clientId": {
3955
+ "type": "string"
3956
+ },
3957
+ "clientIdScheme": {
3958
+ "anyOf": [
3959
+ {
3960
+ "$ref": "#/components/schemas/ClientIdScheme"
3961
+ },
3962
+ {
3963
+ "type": "string",
3964
+ "const": "did"
3965
+ },
3966
+ {
3967
+ "type": "string"
3968
+ }
3969
+ ]
3970
+ },
3971
+ "identifier": {
3972
+ "type": "string"
1727
3973
  }
1728
3974
  },
1729
3975
  "required": [
1730
- "issuer",
3976
+ "identifier",
1731
3977
  "jwk",
1732
3978
  "jwkThumbprint",
1733
3979
  "key",
@@ -1737,15 +3983,15 @@
1737
3983
  "opts"
1738
3984
  ]
1739
3985
  },
1740
- "ManagedIdentifierKidOpts": {
3986
+ "ManagedIdentifierOID4VCIssuerOpts": {
1741
3987
  "type": "object",
1742
3988
  "properties": {
1743
3989
  "method": {
1744
3990
  "type": "string",
1745
- "const": "kid"
3991
+ "const": "oid4vci-issuer"
1746
3992
  },
1747
3993
  "identifier": {
1748
- "$ref": "#/components/schemas/ManagedIdentifierType"
3994
+ "type": "string"
1749
3995
  },
1750
3996
  "kmsKeyRef": {
1751
3997
  "type": "string"
@@ -1755,13 +4001,30 @@
1755
4001
  },
1756
4002
  "kid": {
1757
4003
  "type": "string"
4004
+ },
4005
+ "clientId": {
4006
+ "type": "string"
4007
+ },
4008
+ "clientIdScheme": {
4009
+ "anyOf": [
4010
+ {
4011
+ "$ref": "#/components/schemas/ClientIdScheme"
4012
+ },
4013
+ {
4014
+ "type": "string",
4015
+ "const": "did"
4016
+ },
4017
+ {
4018
+ "type": "string"
4019
+ }
4020
+ ]
1758
4021
  }
1759
4022
  },
1760
4023
  "required": [
1761
4024
  "identifier"
1762
4025
  ]
1763
4026
  },
1764
- "ManagedIdentifierKidResult": {
4027
+ "ManagedIdentifierOID4VCIssuerResult": {
1765
4028
  "type": "object",
1766
4029
  "properties": {
1767
4030
  "jwk": {
@@ -1775,7 +4038,7 @@
1775
4038
  },
1776
4039
  "method": {
1777
4040
  "type": "string",
1778
- "const": "kid"
4041
+ "const": "oid4vci-issuer"
1779
4042
  },
1780
4043
  "opts": {
1781
4044
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1788,14 +4051,33 @@
1788
4051
  },
1789
4052
  "issuer": {
1790
4053
  "type": "string"
4054
+ },
4055
+ "clientId": {
4056
+ "type": "string"
4057
+ },
4058
+ "clientIdScheme": {
4059
+ "anyOf": [
4060
+ {
4061
+ "$ref": "#/components/schemas/ClientIdScheme"
4062
+ },
4063
+ {
4064
+ "type": "string",
4065
+ "const": "did"
4066
+ },
4067
+ {
4068
+ "type": "string"
4069
+ }
4070
+ ]
4071
+ },
4072
+ "identifier": {
4073
+ "type": "string"
1791
4074
  }
1792
4075
  },
1793
4076
  "required": [
1794
- "issuer",
4077
+ "identifier",
1795
4078
  "jwk",
1796
4079
  "jwkThumbprint",
1797
4080
  "key",
1798
- "kid",
1799
4081
  "kmsKeyRef",
1800
4082
  "method",
1801
4083
  "opts"
@@ -1809,7 +4091,10 @@
1809
4091
  "const": "x5c"
1810
4092
  },
1811
4093
  "identifier": {
1812
- "$ref": "#/components/schemas/ManagedIdentifierType"
4094
+ "type": "array",
4095
+ "items": {
4096
+ "type": "string"
4097
+ }
1813
4098
  },
1814
4099
  "kmsKeyRef": {
1815
4100
  "type": "string"
@@ -1819,6 +4104,23 @@
1819
4104
  },
1820
4105
  "kid": {
1821
4106
  "type": "string"
4107
+ },
4108
+ "clientId": {
4109
+ "type": "string"
4110
+ },
4111
+ "clientIdScheme": {
4112
+ "anyOf": [
4113
+ {
4114
+ "$ref": "#/components/schemas/ClientIdScheme"
4115
+ },
4116
+ {
4117
+ "type": "string",
4118
+ "const": "did"
4119
+ },
4120
+ {
4121
+ "type": "string"
4122
+ }
4123
+ ]
1822
4124
  }
1823
4125
  },
1824
4126
  "required": [
@@ -1853,6 +4155,29 @@
1853
4155
  "issuer": {
1854
4156
  "type": "string"
1855
4157
  },
4158
+ "clientId": {
4159
+ "type": "string"
4160
+ },
4161
+ "clientIdScheme": {
4162
+ "anyOf": [
4163
+ {
4164
+ "$ref": "#/components/schemas/ClientIdScheme"
4165
+ },
4166
+ {
4167
+ "type": "string",
4168
+ "const": "did"
4169
+ },
4170
+ {
4171
+ "type": "string"
4172
+ }
4173
+ ]
4174
+ },
4175
+ "identifier": {
4176
+ "type": "array",
4177
+ "items": {
4178
+ "type": "string"
4179
+ }
4180
+ },
1856
4181
  "x5c": {
1857
4182
  "type": "array",
1858
4183
  "items": {
@@ -1863,6 +4188,7 @@
1863
4188
  },
1864
4189
  "required": [
1865
4190
  "certificate",
4191
+ "identifier",
1866
4192
  "jwk",
1867
4193
  "jwkThumbprint",
1868
4194
  "key",
@@ -1883,6 +4209,15 @@
1883
4209
  "$ref": "#/components/schemas/ExternalIdentifierResult"
1884
4210
  }
1885
4211
  },
4212
+ "identifierExternalResolveByCoseKey": {
4213
+ "description": "",
4214
+ "arguments": {
4215
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyOpts"
4216
+ },
4217
+ "returnType": {
4218
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyResult"
4219
+ }
4220
+ },
1886
4221
  "identifierExternalResolveByDid": {
1887
4222
  "description": "",
1888
4223
  "arguments": {
@@ -1892,6 +4227,24 @@
1892
4227
  "$ref": "#/components/schemas/ExternalIdentifierDidResult"
1893
4228
  }
1894
4229
  },
4230
+ "identifierExternalResolveByJwk": {
4231
+ "description": "",
4232
+ "arguments": {
4233
+ "$ref": "#/components/schemas/ExternalIdentifierJwkOpts"
4234
+ },
4235
+ "returnType": {
4236
+ "$ref": "#/components/schemas/ExternalIdentifierJwkResult"
4237
+ }
4238
+ },
4239
+ "identifierExternalResolveByOIDFEntityId": {
4240
+ "description": "",
4241
+ "arguments": {
4242
+ "$ref": "#/components/schemas/ExternalIdentifierOIDFEntityIdOpts"
4243
+ },
4244
+ "returnType": {
4245
+ "$ref": "#/components/schemas/ExternalIdentifierOIDFEntityIdResult"
4246
+ }
4247
+ },
1895
4248
  "identifierExternalResolveByX5c": {
1896
4249
  "description": "",
1897
4250
  "arguments": {
@@ -1904,12 +4257,21 @@
1904
4257
  "identifierManagedGet": {
1905
4258
  "description": "Main method for managed identifiers. We always go through this method (also the others) as we want to integrate a plugin for anomaly detection. Having a single method helps",
1906
4259
  "arguments": {
1907
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
4260
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
1908
4261
  },
1909
4262
  "returnType": {
1910
4263
  "$ref": "#/components/schemas/ManagedIdentifierResult"
1911
4264
  }
1912
4265
  },
4266
+ "identifierManagedGetByCoseKey": {
4267
+ "description": "",
4268
+ "arguments": {
4269
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyOpts"
4270
+ },
4271
+ "returnType": {
4272
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyResult"
4273
+ }
4274
+ },
1913
4275
  "identifierManagedGetByDid": {
1914
4276
  "description": "",
1915
4277
  "arguments": {
@@ -1946,6 +4308,15 @@
1946
4308
  "$ref": "#/components/schemas/ManagedIdentifierKidResult"
1947
4309
  }
1948
4310
  },
4311
+ "identifierManagedGetByOID4VCIssuer": {
4312
+ "description": "",
4313
+ "arguments": {
4314
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerOpts"
4315
+ },
4316
+ "returnType": {
4317
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerResult"
4318
+ }
4319
+ },
1949
4320
  "identifierManagedGetByX5c": {
1950
4321
  "description": "",
1951
4322
  "arguments": {