@sphereon/ssi-sdk-ext.identifier-resolution 0.24.1-unstable.93 → 0.25.0

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 (48) hide show
  1. package/dist/agent/IdentifierResolution.d.ts +4 -0
  2. package/dist/agent/IdentifierResolution.d.ts.map +1 -1
  3. package/dist/agent/IdentifierResolution.js +25 -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 +85 -6
  12. package/dist/functions/externalIdentifierFunctions.js.map +1 -1
  13. package/dist/functions/index.d.ts +1 -11
  14. package/dist/functions/index.d.ts.map +1 -1
  15. package/dist/functions/index.js +1 -36
  16. package/dist/functions/index.js.map +1 -1
  17. package/dist/functions/managedIdentifierFunctions.d.ts +17 -3
  18. package/dist/functions/managedIdentifierFunctions.d.ts.map +1 -1
  19. package/dist/functions/managedIdentifierFunctions.js +134 -12
  20. package/dist/functions/managedIdentifierFunctions.js.map +1 -1
  21. package/dist/tsdoc-metadata.json +1 -1
  22. package/dist/types/IIdentifierResolution.d.ts +12 -3
  23. package/dist/types/IIdentifierResolution.d.ts.map +1 -1
  24. package/dist/types/IIdentifierResolution.js +17 -0
  25. package/dist/types/IIdentifierResolution.js.map +1 -1
  26. package/dist/types/common.d.ts +3 -1
  27. package/dist/types/common.d.ts.map +1 -1
  28. package/dist/types/common.js +17 -10
  29. package/dist/types/common.js.map +1 -1
  30. package/dist/types/externalIdentifierTypes.d.ts +23 -6
  31. package/dist/types/externalIdentifierTypes.d.ts.map +1 -1
  32. package/dist/types/externalIdentifierTypes.js +11 -7
  33. package/dist/types/externalIdentifierTypes.js.map +1 -1
  34. package/dist/types/managedIdentifierTypes.d.ts +43 -15
  35. package/dist/types/managedIdentifierTypes.d.ts.map +1 -1
  36. package/dist/types/managedIdentifierTypes.js +24 -11
  37. package/dist/types/managedIdentifierTypes.js.map +1 -1
  38. package/package.json +12 -12
  39. package/plugin.schema.json +2555 -313
  40. package/src/agent/IdentifierResolution.ts +63 -10
  41. package/src/functions/LegacySupport.ts +54 -0
  42. package/src/functions/externalIdentifierFunctions.ts +95 -5
  43. package/src/functions/index.ts +1 -51
  44. package/src/functions/managedIdentifierFunctions.ts +162 -14
  45. package/src/types/IIdentifierResolution.ts +42 -2
  46. package/src/types/common.ts +10 -2
  47. package/src/types/externalIdentifierTypes.ts +54 -13
  48. 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,21 @@
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
+ ]
94
139
  }
95
140
  ]
96
141
  },
@@ -115,10 +160,34 @@
115
160
  "type": "object",
116
161
  "properties": {
117
162
  "kty": {
118
- "type": "string"
163
+ "anyOf": [
164
+ {
165
+ "$ref": "#/components/schemas/JwkKeyType"
166
+ },
167
+ {
168
+ "$ref": "#/components/schemas/JwkKeyTypeString"
169
+ }
170
+ ]
119
171
  },
120
172
  "crv": {
121
- "type": "string"
173
+ "anyOf": [
174
+ {
175
+ "$ref": "#/components/schemas/JoseCurve"
176
+ },
177
+ {
178
+ "$ref": "#/components/schemas/JoseCurveString"
179
+ }
180
+ ]
181
+ },
182
+ "alg": {
183
+ "anyOf": [
184
+ {
185
+ "$ref": "#/components/schemas/JoseSignatureAlgorithm"
186
+ },
187
+ {
188
+ "$ref": "#/components/schemas/JoseSignatureAlgorithmString"
189
+ }
190
+ ]
122
191
  },
123
192
  "x": {
124
193
  "type": "string"
@@ -150,7 +219,14 @@
150
219
  "key_ops": {
151
220
  "type": "array",
152
221
  "items": {
153
- "type": "string"
222
+ "anyOf": [
223
+ {
224
+ "$ref": "#/components/schemas/JoseKeyOperation"
225
+ },
226
+ {
227
+ "$ref": "#/components/schemas/JoseKeyOperationString"
228
+ }
229
+ ]
154
230
  }
155
231
  },
156
232
  "kid": {
@@ -203,6 +279,9 @@
203
279
  "x5u": {
204
280
  "type": "string",
205
281
  "description": "JWK \"x5u\" (X.509 URL) Parameter."
282
+ },
283
+ "iv": {
284
+ "type": "string"
206
285
  }
207
286
  },
208
287
  "additionalProperties": {},
@@ -210,148 +289,419 @@
210
289
  "kty"
211
290
  ]
212
291
  },
213
- "DIDDocumentSection": {
292
+ "JwkKeyType": {
214
293
  "type": "string",
215
294
  "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 }"
295
+ "EC",
296
+ "RSA",
297
+ "oct",
298
+ "OKP"
299
+ ]
226
300
  },
227
- "ExternalIdentifierResult": {
228
- "anyOf": [
229
- {
230
- "$ref": "#/components/schemas/ExternalIdentifierDidResult"
231
- },
232
- {
233
- "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
234
- }
301
+ "JwkKeyTypeString": {
302
+ "type": "string",
303
+ "enum": [
304
+ "EC",
305
+ "RSA",
306
+ "oct",
307
+ "OKP"
235
308
  ]
236
309
  },
237
- "ExternalIdentifierDidResult": {
310
+ "JoseCurve": {
311
+ "type": "string",
312
+ "enum": [
313
+ "P-256",
314
+ "P-384",
315
+ "P-521",
316
+ "X25519",
317
+ "X448",
318
+ "EdDSA",
319
+ "Ed25519",
320
+ "Ed448",
321
+ "secp256k1"
322
+ ]
323
+ },
324
+ "JoseCurveString": {
325
+ "type": "string",
326
+ "enum": [
327
+ "P-256",
328
+ "P-384",
329
+ "P-521",
330
+ "X25519",
331
+ "X448",
332
+ "EdDSA",
333
+ "Ed25519",
334
+ "Ed448",
335
+ "secp256k1"
336
+ ]
337
+ },
338
+ "JoseSignatureAlgorithm": {
339
+ "type": "string",
340
+ "enum": [
341
+ "RS256",
342
+ "RS384",
343
+ "RS512",
344
+ "ES256",
345
+ "ES256K",
346
+ "ES384",
347
+ "ES512",
348
+ "EdDSA",
349
+ "HS256",
350
+ "HS384",
351
+ "HS512",
352
+ "PS256",
353
+ "PS384",
354
+ "PS512",
355
+ "none"
356
+ ]
357
+ },
358
+ "JoseSignatureAlgorithmString": {
359
+ "type": "string",
360
+ "enum": [
361
+ "RS256",
362
+ "RS384",
363
+ "RS512",
364
+ "ES256",
365
+ "ES256K",
366
+ "ES384",
367
+ "ES512",
368
+ "EdDSA",
369
+ "HS256",
370
+ "HS384",
371
+ "HS512",
372
+ "PS256",
373
+ "PS384",
374
+ "PS512",
375
+ "none"
376
+ ]
377
+ },
378
+ "JoseKeyOperation": {
379
+ "type": "string",
380
+ "enum": [
381
+ "sign",
382
+ "verify",
383
+ "encrypt",
384
+ "decrypt",
385
+ "wrapKey",
386
+ "unwrapKey",
387
+ "deriveKey",
388
+ "deriveBits"
389
+ ]
390
+ },
391
+ "JoseKeyOperationString": {
392
+ "type": "string",
393
+ "enum": [
394
+ "sign",
395
+ "verify",
396
+ "encrypt",
397
+ "decrypt",
398
+ "wrapKey",
399
+ "unwrapKey",
400
+ "deriveKey",
401
+ "deriveBits"
402
+ ]
403
+ },
404
+ "ExternalIdentifierX5cOpts": {
238
405
  "type": "object",
239
406
  "properties": {
240
407
  "method": {
241
408
  "type": "string",
242
- "const": "did"
409
+ "const": "x5c"
243
410
  },
244
- "jwks": {
411
+ "identifier": {
412
+ "$ref": "#/components/schemas/ExternalIdentifierType"
413
+ },
414
+ "verify": {
415
+ "type": "boolean"
416
+ },
417
+ "verificationTime": {
418
+ "type": "string",
419
+ "format": "date-time"
420
+ },
421
+ "trustAnchors": {
245
422
  "type": "array",
246
423
  "items": {
247
- "$ref": "#/components/schemas/ExternalJwkInfo"
424
+ "type": "string"
248
425
  }
249
426
  },
250
- "did": {
251
- "type": "string"
427
+ "trustRootWhenNoAnchors": {
428
+ "type": "boolean"
252
429
  },
253
- "didDocument": {
254
- "$ref": "#/components/schemas/DIDDocument"
430
+ "allowSingleNoCAChainElement": {
431
+ "type": "boolean"
255
432
  },
256
- "didJwks": {
257
- "$ref": "#/components/schemas/DidDocumentJwks"
433
+ "blindlyTrustedAnchors": {
434
+ "type": "array",
435
+ "items": {
436
+ "type": "string"
437
+ }
258
438
  },
259
- "didResolutionResult": {
439
+ "client": {
260
440
  "type": "object",
261
441
  "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"
442
+ "clientId": {
443
+ "type": "string"
281
444
  },
282
- "didDocumentMetadata": {
283
- "$ref": "#/components/schemas/DIDDocumentMetadata"
445
+ "clientIdScheme": {
446
+ "$ref": "#/components/schemas/ClientIdScheme"
284
447
  }
285
448
  },
286
449
  "required": [
287
- "didResolutionMetadata",
288
- "didDocumentMetadata"
450
+ "clientId",
451
+ "clientIdScheme"
289
452
  ]
290
- },
291
- "didParsed": {
292
- "$ref": "#/components/schemas/IParsedDID"
293
453
  }
294
454
  },
295
455
  "required": [
296
- "did",
297
- "didParsed",
298
- "didResolutionResult",
299
- "jwks",
300
- "method"
456
+ "identifier"
301
457
  ]
302
458
  },
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"
459
+ "ClientIdScheme": {
460
+ "type": "string",
461
+ "enum": [
462
+ "x509_san_dns",
463
+ "x509_san_uri"
319
464
  ]
320
465
  },
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"
466
+ "DIDDocumentSection": {
467
+ "type": "string",
468
+ "enum": [
469
+ "verificationMethod",
470
+ "publicKey",
471
+ "service",
472
+ "authentication",
473
+ "assertionMethod",
474
+ "keyAgreement",
475
+ "capabilityInvocation",
476
+ "capabilityDelegation"
477
+ ],
478
+ "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 }"
479
+ },
480
+ "ExternalIdentifierResult": {
481
+ "anyOf": [
482
+ {
483
+ "type": "object",
484
+ "properties": {
485
+ "method": {
486
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
487
+ },
488
+ "jwks": {
489
+ "type": "array",
490
+ "items": {
491
+ "$ref": "#/components/schemas/ExternalJwkInfo"
333
492
  }
334
- ]
335
- }
336
- },
337
- "assertionMethod": {
338
- "type": "array",
339
- "items": {
340
- "anyOf": [
341
- {
342
- "type": "string"
493
+ },
494
+ "did": {
495
+ "type": "string"
496
+ },
497
+ "didDocument": {
498
+ "$ref": "#/components/schemas/DIDDocument"
499
+ },
500
+ "didJwks": {
501
+ "$ref": "#/components/schemas/DidDocumentJwks"
502
+ },
503
+ "didResolutionResult": {
504
+ "type": "object",
505
+ "properties": {
506
+ "@context": {
507
+ "anyOf": [
508
+ {
509
+ "type": "string",
510
+ "const": "https://w3id.org/did-resolution/v1"
511
+ },
512
+ {
513
+ "type": "string"
514
+ },
515
+ {
516
+ "type": "array",
517
+ "items": {
518
+ "type": "string"
519
+ }
520
+ }
521
+ ]
522
+ },
523
+ "didResolutionMetadata": {
524
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
525
+ },
526
+ "didDocumentMetadata": {
527
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
528
+ }
343
529
  },
344
- {
345
- "$ref": "#/components/schemas/VerificationMethod"
346
- }
347
- ]
348
- }
349
- },
350
- "keyAgreement": {
351
- "type": "array",
352
- "items": {
353
- "anyOf": [
354
- {
530
+ "required": [
531
+ "didResolutionMetadata",
532
+ "didDocumentMetadata"
533
+ ]
534
+ },
535
+ "didParsed": {
536
+ "$ref": "#/components/schemas/IParsedDID"
537
+ }
538
+ },
539
+ "required": [
540
+ "did",
541
+ "didParsed",
542
+ "didResolutionResult",
543
+ "jwks",
544
+ "method"
545
+ ]
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "method": {
551
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
552
+ },
553
+ "jwks": {
554
+ "type": "array",
555
+ "items": {
556
+ "$ref": "#/components/schemas/ExternalJwkInfo"
557
+ }
558
+ },
559
+ "x5c": {
560
+ "type": "array",
561
+ "items": {
562
+ "type": "string"
563
+ }
564
+ },
565
+ "issuerJWK": {
566
+ "$ref": "#/components/schemas/JWK"
567
+ },
568
+ "verificationResult": {
569
+ "$ref": "#/components/schemas/X509ValidationResult"
570
+ },
571
+ "certificates": {
572
+ "type": "array",
573
+ "items": {}
574
+ }
575
+ },
576
+ "required": [
577
+ "certificates",
578
+ "issuerJWK",
579
+ "jwks",
580
+ "method",
581
+ "x5c"
582
+ ]
583
+ },
584
+ {
585
+ "type": "object",
586
+ "properties": {
587
+ "method": {
588
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
589
+ },
590
+ "jwks": {
591
+ "type": "array",
592
+ "items": {
593
+ "$ref": "#/components/schemas/ExternalJwkInfo"
594
+ }
595
+ },
596
+ "jwk": {
597
+ "$ref": "#/components/schemas/JWK"
598
+ },
599
+ "x5c": {
600
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
601
+ }
602
+ },
603
+ "required": [
604
+ "jwk",
605
+ "jwks",
606
+ "method"
607
+ ]
608
+ },
609
+ {
610
+ "type": "object",
611
+ "properties": {
612
+ "method": {
613
+ "$ref": "#/components/schemas/ExternalIdentifierMethod"
614
+ },
615
+ "jwks": {
616
+ "type": "array",
617
+ "items": {
618
+ "$ref": "#/components/schemas/ExternalJwkInfo"
619
+ }
620
+ },
621
+ "coseKey": {
622
+ "$ref": "#/components/schemas/ICoseKeyJson"
623
+ },
624
+ "x5c": {
625
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
626
+ }
627
+ },
628
+ "required": [
629
+ "coseKey",
630
+ "jwks",
631
+ "method"
632
+ ]
633
+ }
634
+ ]
635
+ },
636
+ "ExternalIdentifierMethod": {
637
+ "type": "string",
638
+ "enum": [
639
+ "did",
640
+ "jwk",
641
+ "x5c",
642
+ "kid",
643
+ "cose_key",
644
+ "oidc-discovery",
645
+ "jwks-url",
646
+ "oid4vci-issuer"
647
+ ]
648
+ },
649
+ "ExternalJwkInfo": {
650
+ "type": "object",
651
+ "properties": {
652
+ "jwk": {
653
+ "$ref": "#/components/schemas/JWK"
654
+ },
655
+ "jwkThumbprint": {
656
+ "type": "string"
657
+ },
658
+ "kid": {
659
+ "type": "string"
660
+ },
661
+ "publicKeyHex": {
662
+ "type": "string"
663
+ }
664
+ },
665
+ "required": [
666
+ "jwk",
667
+ "jwkThumbprint",
668
+ "publicKeyHex"
669
+ ]
670
+ },
671
+ "DIDDocument": {
672
+ "type": "object",
673
+ "properties": {
674
+ "authentication": {
675
+ "type": "array",
676
+ "items": {
677
+ "anyOf": [
678
+ {
679
+ "type": "string"
680
+ },
681
+ {
682
+ "$ref": "#/components/schemas/VerificationMethod"
683
+ }
684
+ ]
685
+ }
686
+ },
687
+ "assertionMethod": {
688
+ "type": "array",
689
+ "items": {
690
+ "anyOf": [
691
+ {
692
+ "type": "string"
693
+ },
694
+ {
695
+ "$ref": "#/components/schemas/VerificationMethod"
696
+ }
697
+ ]
698
+ }
699
+ },
700
+ "keyAgreement": {
701
+ "type": "array",
702
+ "items": {
703
+ "anyOf": [
704
+ {
355
705
  "type": "string"
356
706
  },
357
707
  {
@@ -769,44 +1119,6 @@
769
1119
  "id"
770
1120
  ]
771
1121
  },
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
1122
  "X509ValidationResult": {
811
1123
  "type": "object",
812
1124
  "properties": {
@@ -826,8 +1138,23 @@
826
1138
  "certificateChain": {
827
1139
  "type": "array",
828
1140
  "items": {
829
- "$ref": "#/components/schemas/CertInfo"
1141
+ "$ref": "#/components/schemas/CertificateInfo"
830
1142
  }
1143
+ },
1144
+ "client": {
1145
+ "type": "object",
1146
+ "properties": {
1147
+ "clientId": {
1148
+ "type": "string"
1149
+ },
1150
+ "clientIdScheme": {
1151
+ "$ref": "#/components/schemas/ClientIdScheme"
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "clientId",
1156
+ "clientIdScheme"
1157
+ ]
831
1158
  }
832
1159
  },
833
1160
  "required": [
@@ -837,7 +1164,7 @@
837
1164
  "verificationTime"
838
1165
  ]
839
1166
  },
840
- "CertInfo": {
1167
+ "CertificateInfo": {
841
1168
  "type": "object",
842
1169
  "properties": {
843
1170
  "certificate": {},
@@ -866,10 +1193,17 @@
866
1193
  "properties": {
867
1194
  "dn": {
868
1195
  "$ref": "#/components/schemas/DNInfo"
1196
+ },
1197
+ "subjectAlternativeNames": {
1198
+ "type": "array",
1199
+ "items": {
1200
+ "$ref": "#/components/schemas/SubjectAlternativeName"
1201
+ }
869
1202
  }
870
1203
  },
871
1204
  "required": [
872
- "dn"
1205
+ "dn",
1206
+ "subjectAlternativeNames"
873
1207
  ]
874
1208
  }
875
1209
  },
@@ -898,75 +1232,1167 @@
898
1232
  "attributes"
899
1233
  ]
900
1234
  },
901
- "ExternalIdentifierDidOpts": {
1235
+ "SubjectAlternativeName": {
902
1236
  "type": "object",
903
1237
  "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"
1238
+ "value": {
1239
+ "type": "string"
922
1240
  },
923
- "resolverResolution": {
924
- "type": "boolean"
1241
+ "type": {
1242
+ "$ref": "#/components/schemas/SubjectAlternativeGeneralName"
925
1243
  }
926
1244
  },
927
1245
  "required": [
928
- "identifier"
1246
+ "value",
1247
+ "type"
929
1248
  ]
930
1249
  },
931
- "ExternalIdentifierX5cOpts": {
1250
+ "SubjectAlternativeGeneralName": {
1251
+ "type": "number",
1252
+ "enum": [
1253
+ 1,
1254
+ 2,
1255
+ 6,
1256
+ 7
1257
+ ],
1258
+ "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 }"
1259
+ },
1260
+ "ExternalIdentifierX5cResult": {
932
1261
  "type": "object",
933
1262
  "properties": {
934
1263
  "method": {
935
1264
  "type": "string",
936
1265
  "const": "x5c"
937
1266
  },
938
- "identifier": {
939
- "$ref": "#/components/schemas/ExternalIdentifierType"
940
- },
941
- "verify": {
942
- "type": "boolean"
943
- },
944
- "verificationTime": {
945
- "type": "string",
946
- "format": "date-time"
1267
+ "jwks": {
1268
+ "type": "array",
1269
+ "items": {
1270
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1271
+ }
947
1272
  },
948
- "trustAnchors": {
1273
+ "x5c": {
949
1274
  "type": "array",
950
1275
  "items": {
951
1276
  "type": "string"
952
1277
  }
1278
+ },
1279
+ "issuerJWK": {
1280
+ "$ref": "#/components/schemas/JWK"
1281
+ },
1282
+ "verificationResult": {
1283
+ "$ref": "#/components/schemas/X509ValidationResult"
1284
+ },
1285
+ "certificates": {
1286
+ "type": "array",
1287
+ "items": {}
953
1288
  }
954
1289
  },
955
1290
  "required": [
956
- "identifier"
1291
+ "certificates",
1292
+ "issuerJWK",
1293
+ "jwks",
1294
+ "method",
1295
+ "x5c"
957
1296
  ]
958
1297
  },
959
- "ManagedIdentifierOpts": {
960
- "anyOf": [
961
- {
962
- "type": "object",
963
- "properties": {
964
- "method": {
965
- "type": "string",
966
- "const": "jwk"
1298
+ "ICoseKeyJson": {
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "kty": {
1302
+ "$ref": "#/components/schemas/ICoseKeyType"
1303
+ },
1304
+ "kid": {
1305
+ "type": "string"
1306
+ },
1307
+ "alg": {
1308
+ "$ref": "#/components/schemas/ICoseSignatureAlgorithm"
1309
+ },
1310
+ "key_ops": {
1311
+ "type": "array",
1312
+ "items": {
1313
+ "$ref": "#/components/schemas/ICoseKeyOperation"
1314
+ }
1315
+ },
1316
+ "baseIV": {
1317
+ "type": "string"
1318
+ },
1319
+ "crv": {
1320
+ "$ref": "#/components/schemas/ICoseCurve"
1321
+ },
1322
+ "x": {
1323
+ "type": "string"
1324
+ },
1325
+ "y": {
1326
+ "type": "string"
1327
+ },
1328
+ "d": {
1329
+ "type": "string"
1330
+ },
1331
+ "x5chain": {
1332
+ "type": "array",
1333
+ "items": {
1334
+ "type": "string"
1335
+ }
1336
+ }
1337
+ },
1338
+ "required": [
1339
+ "kty"
1340
+ ],
1341
+ "additionalProperties": {},
1342
+ "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"
1343
+ },
1344
+ "ICoseKeyType": {
1345
+ "type": "number",
1346
+ "enum": [
1347
+ 1,
1348
+ 2,
1349
+ 3,
1350
+ 4,
1351
+ 0
1352
+ ]
1353
+ },
1354
+ "ICoseSignatureAlgorithm": {
1355
+ "type": "number",
1356
+ "enum": [
1357
+ -7,
1358
+ -47,
1359
+ -35,
1360
+ -36,
1361
+ -8,
1362
+ 4,
1363
+ 5,
1364
+ 6,
1365
+ 7,
1366
+ -37,
1367
+ -38,
1368
+ -39
1369
+ ]
1370
+ },
1371
+ "ICoseKeyOperation": {
1372
+ "type": "number",
1373
+ "enum": [
1374
+ 1,
1375
+ 2,
1376
+ 3,
1377
+ 4,
1378
+ 5,
1379
+ 6,
1380
+ 7,
1381
+ 8,
1382
+ 9,
1383
+ 10
1384
+ ]
1385
+ },
1386
+ "ICoseCurve": {
1387
+ "type": "number",
1388
+ "enum": [
1389
+ 1,
1390
+ 2,
1391
+ 3,
1392
+ 4,
1393
+ 5,
1394
+ 6,
1395
+ 7,
1396
+ -1
1397
+ ]
1398
+ },
1399
+ "ExternalIdentifierCoseKeyOpts": {
1400
+ "type": "object",
1401
+ "properties": {
1402
+ "method": {
1403
+ "type": "string",
1404
+ "const": "cose_key"
1405
+ },
1406
+ "identifier": {
1407
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1408
+ }
1409
+ },
1410
+ "required": [
1411
+ "identifier"
1412
+ ]
1413
+ },
1414
+ "ExternalIdentifierCoseKeyResult": {
1415
+ "type": "object",
1416
+ "properties": {
1417
+ "method": {
1418
+ "type": "string",
1419
+ "const": "cose_key"
1420
+ },
1421
+ "jwks": {
1422
+ "type": "array",
1423
+ "items": {
1424
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1425
+ }
1426
+ },
1427
+ "coseKey": {
1428
+ "$ref": "#/components/schemas/ICoseKeyJson"
1429
+ },
1430
+ "x5c": {
1431
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
1432
+ }
1433
+ },
1434
+ "required": [
1435
+ "coseKey",
1436
+ "jwks",
1437
+ "method"
1438
+ ]
1439
+ },
1440
+ "ExternalIdentifierDidOpts": {
1441
+ "type": "object",
1442
+ "properties": {
1443
+ "method": {
1444
+ "type": "string",
1445
+ "const": "did"
1446
+ },
1447
+ "identifier": {
1448
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1449
+ },
1450
+ "noVerificationMethodFallback": {
1451
+ "type": "boolean"
1452
+ },
1453
+ "vmRelationship": {
1454
+ "$ref": "#/components/schemas/DIDDocumentSection"
1455
+ },
1456
+ "localResolution": {
1457
+ "type": "boolean"
1458
+ },
1459
+ "uniresolverResolution": {
1460
+ "type": "boolean"
1461
+ },
1462
+ "resolverResolution": {
1463
+ "type": "boolean"
1464
+ }
1465
+ },
1466
+ "required": [
1467
+ "identifier"
1468
+ ]
1469
+ },
1470
+ "ExternalIdentifierDidResult": {
1471
+ "type": "object",
1472
+ "properties": {
1473
+ "method": {
1474
+ "type": "string",
1475
+ "const": "did"
1476
+ },
1477
+ "jwks": {
1478
+ "type": "array",
1479
+ "items": {
1480
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1481
+ }
1482
+ },
1483
+ "did": {
1484
+ "type": "string"
1485
+ },
1486
+ "didDocument": {
1487
+ "$ref": "#/components/schemas/DIDDocument"
1488
+ },
1489
+ "didJwks": {
1490
+ "$ref": "#/components/schemas/DidDocumentJwks"
1491
+ },
1492
+ "didResolutionResult": {
1493
+ "type": "object",
1494
+ "properties": {
1495
+ "@context": {
1496
+ "anyOf": [
1497
+ {
1498
+ "type": "string",
1499
+ "const": "https://w3id.org/did-resolution/v1"
1500
+ },
1501
+ {
1502
+ "type": "string"
1503
+ },
1504
+ {
1505
+ "type": "array",
1506
+ "items": {
1507
+ "type": "string"
1508
+ }
1509
+ }
1510
+ ]
1511
+ },
1512
+ "didResolutionMetadata": {
1513
+ "$ref": "#/components/schemas/DIDResolutionMetadata"
1514
+ },
1515
+ "didDocumentMetadata": {
1516
+ "$ref": "#/components/schemas/DIDDocumentMetadata"
1517
+ }
1518
+ },
1519
+ "required": [
1520
+ "didResolutionMetadata",
1521
+ "didDocumentMetadata"
1522
+ ]
1523
+ },
1524
+ "didParsed": {
1525
+ "$ref": "#/components/schemas/IParsedDID"
1526
+ }
1527
+ },
1528
+ "required": [
1529
+ "did",
1530
+ "didParsed",
1531
+ "didResolutionResult",
1532
+ "jwks",
1533
+ "method"
1534
+ ]
1535
+ },
1536
+ "ExternalIdentifierJwkOpts": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "method": {
1540
+ "type": "string",
1541
+ "const": "jwk"
1542
+ },
1543
+ "identifier": {
1544
+ "$ref": "#/components/schemas/ExternalIdentifierType"
1545
+ },
1546
+ "x5c": {
1547
+ "$ref": "#/components/schemas/ExternalIdentifierX5cOpts"
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "identifier"
1552
+ ]
1553
+ },
1554
+ "ExternalIdentifierJwkResult": {
1555
+ "type": "object",
1556
+ "properties": {
1557
+ "method": {
1558
+ "type": "string",
1559
+ "const": "jwk"
1560
+ },
1561
+ "jwks": {
1562
+ "type": "array",
1563
+ "items": {
1564
+ "$ref": "#/components/schemas/ExternalJwkInfo"
1565
+ }
1566
+ },
1567
+ "jwk": {
1568
+ "$ref": "#/components/schemas/JWK"
1569
+ },
1570
+ "x5c": {
1571
+ "$ref": "#/components/schemas/ExternalIdentifierX5cResult"
1572
+ }
1573
+ },
1574
+ "required": [
1575
+ "jwk",
1576
+ "jwks",
1577
+ "method"
1578
+ ]
1579
+ },
1580
+ "ManagedIdentifierOptsOrResult": {
1581
+ "anyOf": [
1582
+ {
1583
+ "type": "object",
1584
+ "properties": {
1585
+ "lazyDisabled": {
1586
+ "type": "boolean"
1587
+ },
1588
+ "jwk": {
1589
+ "$ref": "#/components/schemas/JWK"
1590
+ },
1591
+ "jwkThumbprint": {
1592
+ "type": "string"
1593
+ },
1594
+ "kmsKeyRef": {
1595
+ "type": "string"
1596
+ },
1597
+ "method": {
1598
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1599
+ },
1600
+ "opts": {
1601
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1602
+ },
1603
+ "key": {
1604
+ "$ref": "#/components/schemas/IKey"
1605
+ },
1606
+ "kid": {
1607
+ "type": "string"
1608
+ },
1609
+ "issuer": {
1610
+ "type": "string"
1611
+ },
1612
+ "clientId": {
1613
+ "type": "string"
1614
+ },
1615
+ "clientIdScheme": {
1616
+ "anyOf": [
1617
+ {
1618
+ "$ref": "#/components/schemas/ClientIdScheme"
1619
+ },
1620
+ {
1621
+ "type": "string",
1622
+ "const": "did"
1623
+ },
1624
+ {
1625
+ "type": "string"
1626
+ }
1627
+ ]
1628
+ },
1629
+ "identifier": {
1630
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1631
+ },
1632
+ "x5c": {
1633
+ "type": "array",
1634
+ "items": {
1635
+ "type": "string"
1636
+ }
1637
+ },
1638
+ "certificate": {}
1639
+ },
1640
+ "required": [
1641
+ "certificate",
1642
+ "identifier",
1643
+ "jwk",
1644
+ "jwkThumbprint",
1645
+ "key",
1646
+ "kmsKeyRef",
1647
+ "method",
1648
+ "opts",
1649
+ "x5c"
1650
+ ]
1651
+ },
1652
+ {
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "lazyDisabled": {
1656
+ "type": "boolean"
1657
+ },
1658
+ "jwk": {
1659
+ "$ref": "#/components/schemas/JWK"
1660
+ },
1661
+ "jwkThumbprint": {
1662
+ "type": "string"
1663
+ },
1664
+ "kmsKeyRef": {
1665
+ "type": "string"
1666
+ },
1667
+ "method": {
1668
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1669
+ },
1670
+ "opts": {
1671
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1672
+ },
1673
+ "key": {
1674
+ "$ref": "#/components/schemas/IKey"
1675
+ },
1676
+ "kid": {
1677
+ "type": "string"
1678
+ },
1679
+ "issuer": {
1680
+ "type": "string"
1681
+ },
1682
+ "clientId": {
1683
+ "type": "string"
1684
+ },
1685
+ "clientIdScheme": {
1686
+ "anyOf": [
1687
+ {
1688
+ "$ref": "#/components/schemas/ClientIdScheme"
1689
+ },
1690
+ {
1691
+ "type": "string",
1692
+ "const": "did"
1693
+ },
1694
+ {
1695
+ "type": "string"
1696
+ }
1697
+ ]
1698
+ },
1699
+ "identifier": {
1700
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1701
+ },
1702
+ "did": {
1703
+ "type": "string"
1704
+ },
1705
+ "keys": {
1706
+ "type": "array",
1707
+ "items": {
1708
+ "$ref": "#/components/schemas/IKey"
1709
+ }
1710
+ },
1711
+ "verificationMethodSection": {
1712
+ "$ref": "#/components/schemas/DIDDocumentSection"
1713
+ },
1714
+ "controllerKeyId": {
1715
+ "type": "string"
1716
+ }
1717
+ },
1718
+ "required": [
1719
+ "did",
1720
+ "identifier",
1721
+ "issuer",
1722
+ "jwk",
1723
+ "jwkThumbprint",
1724
+ "key",
1725
+ "keys",
1726
+ "kid",
1727
+ "kmsKeyRef",
1728
+ "method",
1729
+ "opts"
1730
+ ]
1731
+ },
1732
+ {
1733
+ "type": "object",
1734
+ "properties": {
1735
+ "lazyDisabled": {
1736
+ "type": "boolean"
1737
+ },
1738
+ "jwk": {
1739
+ "$ref": "#/components/schemas/JWK"
1740
+ },
1741
+ "jwkThumbprint": {
1742
+ "type": "string"
1743
+ },
1744
+ "kmsKeyRef": {
1745
+ "type": "string"
1746
+ },
1747
+ "method": {
1748
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1749
+ },
1750
+ "opts": {
1751
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1752
+ },
1753
+ "key": {
1754
+ "$ref": "#/components/schemas/IKey"
1755
+ },
1756
+ "kid": {
1757
+ "type": "string"
1758
+ },
1759
+ "issuer": {
1760
+ "type": "string"
1761
+ },
1762
+ "clientId": {
1763
+ "type": "string"
1764
+ },
1765
+ "clientIdScheme": {
1766
+ "anyOf": [
1767
+ {
1768
+ "$ref": "#/components/schemas/ClientIdScheme"
1769
+ },
1770
+ {
1771
+ "type": "string",
1772
+ "const": "did"
1773
+ },
1774
+ {
1775
+ "type": "string"
1776
+ }
1777
+ ]
1778
+ },
1779
+ "identifier": {
1780
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1781
+ }
1782
+ },
1783
+ "required": [
1784
+ "identifier",
1785
+ "jwk",
1786
+ "jwkThumbprint",
1787
+ "key",
1788
+ "kmsKeyRef",
1789
+ "method",
1790
+ "opts"
1791
+ ]
1792
+ },
1793
+ {
1794
+ "type": "object",
1795
+ "properties": {
1796
+ "lazyDisabled": {
1797
+ "type": "boolean"
1798
+ },
1799
+ "jwk": {
1800
+ "$ref": "#/components/schemas/JWK"
1801
+ },
1802
+ "jwkThumbprint": {
1803
+ "type": "string"
1804
+ },
1805
+ "kmsKeyRef": {
1806
+ "type": "string"
1807
+ },
1808
+ "method": {
1809
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1810
+ },
1811
+ "opts": {
1812
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1813
+ },
1814
+ "key": {
1815
+ "$ref": "#/components/schemas/IKey"
1816
+ },
1817
+ "kid": {
1818
+ "type": "string"
1819
+ },
1820
+ "issuer": {
1821
+ "type": "string"
1822
+ },
1823
+ "clientId": {
1824
+ "type": "string"
1825
+ },
1826
+ "clientIdScheme": {
1827
+ "anyOf": [
1828
+ {
1829
+ "$ref": "#/components/schemas/ClientIdScheme"
1830
+ },
1831
+ {
1832
+ "type": "string",
1833
+ "const": "did"
1834
+ },
1835
+ {
1836
+ "type": "string"
1837
+ }
1838
+ ]
1839
+ },
1840
+ "identifier": {
1841
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1842
+ }
1843
+ },
1844
+ "required": [
1845
+ "identifier",
1846
+ "jwk",
1847
+ "jwkThumbprint",
1848
+ "key",
1849
+ "kid",
1850
+ "kmsKeyRef",
1851
+ "method",
1852
+ "opts"
1853
+ ]
1854
+ },
1855
+ {
1856
+ "type": "object",
1857
+ "properties": {
1858
+ "lazyDisabled": {
1859
+ "type": "boolean"
1860
+ },
1861
+ "jwk": {
1862
+ "$ref": "#/components/schemas/JWK"
1863
+ },
1864
+ "jwkThumbprint": {
1865
+ "type": "string"
1866
+ },
1867
+ "kmsKeyRef": {
1868
+ "type": "string"
1869
+ },
1870
+ "method": {
1871
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1872
+ },
1873
+ "opts": {
1874
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1875
+ },
1876
+ "key": {
1877
+ "$ref": "#/components/schemas/IKey"
1878
+ },
1879
+ "kid": {
1880
+ "type": "string"
1881
+ },
1882
+ "issuer": {
1883
+ "type": "string"
1884
+ },
1885
+ "clientId": {
1886
+ "type": "string"
1887
+ },
1888
+ "clientIdScheme": {
1889
+ "anyOf": [
1890
+ {
1891
+ "$ref": "#/components/schemas/ClientIdScheme"
1892
+ },
1893
+ {
1894
+ "type": "string",
1895
+ "const": "did"
1896
+ },
1897
+ {
1898
+ "type": "string"
1899
+ }
1900
+ ]
1901
+ },
1902
+ "identifier": {
1903
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1904
+ }
1905
+ },
1906
+ "required": [
1907
+ "identifier",
1908
+ "jwk",
1909
+ "jwkThumbprint",
1910
+ "key",
1911
+ "kmsKeyRef",
1912
+ "method",
1913
+ "opts"
1914
+ ]
1915
+ },
1916
+ {
1917
+ "type": "object",
1918
+ "properties": {
1919
+ "lazyDisabled": {
1920
+ "type": "boolean"
1921
+ },
1922
+ "jwk": {
1923
+ "$ref": "#/components/schemas/JWK"
1924
+ },
1925
+ "jwkThumbprint": {
1926
+ "type": "string"
1927
+ },
1928
+ "kmsKeyRef": {
1929
+ "type": "string"
1930
+ },
1931
+ "method": {
1932
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1933
+ },
1934
+ "opts": {
1935
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
1936
+ },
1937
+ "key": {
1938
+ "$ref": "#/components/schemas/IKey"
1939
+ },
1940
+ "kid": {
1941
+ "type": "string"
1942
+ },
1943
+ "issuer": {
1944
+ "type": "string"
1945
+ },
1946
+ "clientId": {
1947
+ "type": "string"
1948
+ },
1949
+ "clientIdScheme": {
1950
+ "anyOf": [
1951
+ {
1952
+ "$ref": "#/components/schemas/ClientIdScheme"
1953
+ },
1954
+ {
1955
+ "type": "string",
1956
+ "const": "did"
1957
+ },
1958
+ {
1959
+ "type": "string"
1960
+ }
1961
+ ]
1962
+ },
1963
+ "identifier": {
1964
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1965
+ }
1966
+ },
1967
+ "required": [
1968
+ "identifier",
1969
+ "jwk",
1970
+ "jwkThumbprint",
1971
+ "key",
1972
+ "kmsKeyRef",
1973
+ "method",
1974
+ "opts"
1975
+ ]
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
+ },
2038
+ {
2039
+ "type": "object",
2040
+ "properties": {
2041
+ "lazyDisabled": {
2042
+ "type": "boolean"
2043
+ },
2044
+ "method": {
2045
+ "type": "string",
2046
+ "const": "jwk"
2047
+ },
2048
+ "identifier": {
2049
+ "$ref": "#/components/schemas/JWK"
2050
+ },
2051
+ "kmsKeyRef": {
2052
+ "type": "string"
2053
+ },
2054
+ "issuer": {
2055
+ "type": "string"
2056
+ },
2057
+ "kid": {
2058
+ "type": "string"
2059
+ },
2060
+ "clientId": {
2061
+ "type": "string"
2062
+ },
2063
+ "clientIdScheme": {
2064
+ "anyOf": [
2065
+ {
2066
+ "$ref": "#/components/schemas/ClientIdScheme"
2067
+ },
2068
+ {
2069
+ "type": "string",
2070
+ "const": "did"
2071
+ },
2072
+ {
2073
+ "type": "string"
2074
+ }
2075
+ ]
2076
+ }
2077
+ },
2078
+ "required": [
2079
+ "identifier"
2080
+ ]
2081
+ },
2082
+ {
2083
+ "type": "object",
2084
+ "properties": {
2085
+ "lazyDisabled": {
2086
+ "type": "boolean"
2087
+ },
2088
+ "method": {
2089
+ "type": "string",
2090
+ "const": "x5c"
2091
+ },
2092
+ "identifier": {
2093
+ "type": "array",
2094
+ "items": {
2095
+ "type": "string"
2096
+ }
2097
+ },
2098
+ "kmsKeyRef": {
2099
+ "type": "string"
2100
+ },
2101
+ "issuer": {
2102
+ "type": "string"
2103
+ },
2104
+ "kid": {
2105
+ "type": "string"
2106
+ },
2107
+ "clientId": {
2108
+ "type": "string"
2109
+ },
2110
+ "clientIdScheme": {
2111
+ "anyOf": [
2112
+ {
2113
+ "$ref": "#/components/schemas/ClientIdScheme"
2114
+ },
2115
+ {
2116
+ "type": "string",
2117
+ "const": "did"
2118
+ },
2119
+ {
2120
+ "type": "string"
2121
+ }
2122
+ ]
2123
+ }
2124
+ },
2125
+ "required": [
2126
+ "identifier"
2127
+ ]
2128
+ },
2129
+ {
2130
+ "type": "object",
2131
+ "properties": {
2132
+ "lazyDisabled": {
2133
+ "type": "boolean"
2134
+ },
2135
+ "method": {
2136
+ "type": "string",
2137
+ "const": "did"
2138
+ },
2139
+ "identifier": {
2140
+ "anyOf": [
2141
+ {
2142
+ "$ref": "#/components/schemas/IIdentifier"
2143
+ },
2144
+ {
2145
+ "type": "string"
2146
+ }
2147
+ ]
2148
+ },
2149
+ "kmsKeyRef": {
2150
+ "type": "string"
2151
+ },
2152
+ "issuer": {
2153
+ "type": "string"
2154
+ },
2155
+ "kid": {
2156
+ "type": "string"
2157
+ },
2158
+ "clientId": {
2159
+ "type": "string"
2160
+ },
2161
+ "clientIdScheme": {
2162
+ "anyOf": [
2163
+ {
2164
+ "$ref": "#/components/schemas/ClientIdScheme"
2165
+ },
2166
+ {
2167
+ "type": "string",
2168
+ "const": "did"
2169
+ },
2170
+ {
2171
+ "type": "string"
2172
+ }
2173
+ ]
2174
+ },
2175
+ "keyType": {
2176
+ "$ref": "#/components/schemas/TKeyType"
2177
+ },
2178
+ "offlineWhenNoDIDRegistered": {
2179
+ "type": "boolean"
2180
+ },
2181
+ "noVerificationMethodFallback": {
2182
+ "type": "boolean"
2183
+ },
2184
+ "controllerKey": {
2185
+ "type": "boolean"
2186
+ },
2187
+ "vmRelationship": {
2188
+ "$ref": "#/components/schemas/DIDDocumentSection"
2189
+ }
2190
+ },
2191
+ "required": [
2192
+ "identifier"
2193
+ ]
2194
+ },
2195
+ {
2196
+ "type": "object",
2197
+ "properties": {
2198
+ "lazyDisabled": {
2199
+ "type": "boolean"
2200
+ },
2201
+ "method": {
2202
+ "type": "string",
2203
+ "const": "kid"
2204
+ },
2205
+ "identifier": {
2206
+ "type": "string"
2207
+ },
2208
+ "kmsKeyRef": {
2209
+ "type": "string"
2210
+ },
2211
+ "issuer": {
2212
+ "type": "string"
2213
+ },
2214
+ "kid": {
2215
+ "type": "string"
2216
+ },
2217
+ "clientId": {
2218
+ "type": "string"
2219
+ },
2220
+ "clientIdScheme": {
2221
+ "anyOf": [
2222
+ {
2223
+ "$ref": "#/components/schemas/ClientIdScheme"
2224
+ },
2225
+ {
2226
+ "type": "string",
2227
+ "const": "did"
2228
+ },
2229
+ {
2230
+ "type": "string"
2231
+ }
2232
+ ]
2233
+ }
2234
+ },
2235
+ "required": [
2236
+ "identifier"
2237
+ ]
2238
+ },
2239
+ {
2240
+ "type": "object",
2241
+ "properties": {
2242
+ "lazyDisabled": {
2243
+ "type": "boolean"
2244
+ },
2245
+ "method": {
2246
+ "type": "string",
2247
+ "const": "key"
2248
+ },
2249
+ "identifier": {
2250
+ "$ref": "#/components/schemas/IKey"
2251
+ },
2252
+ "kmsKeyRef": {
2253
+ "type": "string"
2254
+ },
2255
+ "issuer": {
2256
+ "type": "string"
2257
+ },
2258
+ "kid": {
2259
+ "type": "string"
2260
+ },
2261
+ "clientId": {
2262
+ "type": "string"
2263
+ },
2264
+ "clientIdScheme": {
2265
+ "anyOf": [
2266
+ {
2267
+ "$ref": "#/components/schemas/ClientIdScheme"
2268
+ },
2269
+ {
2270
+ "type": "string",
2271
+ "const": "did"
2272
+ },
2273
+ {
2274
+ "type": "string"
2275
+ }
2276
+ ]
2277
+ }
2278
+ },
2279
+ "required": [
2280
+ "identifier"
2281
+ ]
2282
+ },
2283
+ {
2284
+ "type": "object",
2285
+ "properties": {
2286
+ "lazyDisabled": {
2287
+ "type": "boolean"
2288
+ },
2289
+ "method": {
2290
+ "type": "string",
2291
+ "const": "cose_key"
967
2292
  },
968
2293
  "identifier": {
969
- "$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"
2339
+ },
2340
+ "kmsKeyRef": {
2341
+ "type": "string"
2342
+ },
2343
+ "issuer": {
2344
+ "type": "string"
2345
+ },
2346
+ "kid": {
2347
+ "type": "string"
2348
+ },
2349
+ "clientId": {
2350
+ "type": "string"
2351
+ },
2352
+ "clientIdScheme": {
2353
+ "anyOf": [
2354
+ {
2355
+ "$ref": "#/components/schemas/ClientIdScheme"
2356
+ },
2357
+ {
2358
+ "type": "string",
2359
+ "const": "did"
2360
+ },
2361
+ {
2362
+ "type": "string"
2363
+ }
2364
+ ]
2365
+ }
2366
+ },
2367
+ "required": [
2368
+ "identifier"
2369
+ ]
2370
+ }
2371
+ ]
2372
+ },
2373
+ "ManagedIdentifierMethod": {
2374
+ "type": "string",
2375
+ "enum": [
2376
+ "did",
2377
+ "jwk",
2378
+ "x5c",
2379
+ "kid",
2380
+ "key",
2381
+ "cose_key",
2382
+ "oid4vci-issuer"
2383
+ ]
2384
+ },
2385
+ "ManagedIdentifierOpts": {
2386
+ "anyOf": [
2387
+ {
2388
+ "type": "object",
2389
+ "properties": {
2390
+ "method": {
2391
+ "type": "string",
2392
+ "const": "jwk"
2393
+ },
2394
+ "identifier": {
2395
+ "$ref": "#/components/schemas/JWK"
970
2396
  },
971
2397
  "kmsKeyRef": {
972
2398
  "type": "string"
@@ -976,6 +2402,23 @@
976
2402
  },
977
2403
  "kid": {
978
2404
  "type": "string"
2405
+ },
2406
+ "clientId": {
2407
+ "type": "string"
2408
+ },
2409
+ "clientIdScheme": {
2410
+ "anyOf": [
2411
+ {
2412
+ "$ref": "#/components/schemas/ClientIdScheme"
2413
+ },
2414
+ {
2415
+ "type": "string",
2416
+ "const": "did"
2417
+ },
2418
+ {
2419
+ "type": "string"
2420
+ }
2421
+ ]
979
2422
  }
980
2423
  },
981
2424
  "required": [
@@ -990,7 +2433,10 @@
990
2433
  "const": "x5c"
991
2434
  },
992
2435
  "identifier": {
993
- "$ref": "#/components/schemas/ManagedIdentifierType"
2436
+ "type": "array",
2437
+ "items": {
2438
+ "type": "string"
2439
+ }
994
2440
  },
995
2441
  "kmsKeyRef": {
996
2442
  "type": "string"
@@ -1000,6 +2446,23 @@
1000
2446
  },
1001
2447
  "kid": {
1002
2448
  "type": "string"
2449
+ },
2450
+ "clientId": {
2451
+ "type": "string"
2452
+ },
2453
+ "clientIdScheme": {
2454
+ "anyOf": [
2455
+ {
2456
+ "$ref": "#/components/schemas/ClientIdScheme"
2457
+ },
2458
+ {
2459
+ "type": "string",
2460
+ "const": "did"
2461
+ },
2462
+ {
2463
+ "type": "string"
2464
+ }
2465
+ ]
1003
2466
  }
1004
2467
  },
1005
2468
  "required": [
@@ -1014,7 +2477,14 @@
1014
2477
  "const": "did"
1015
2478
  },
1016
2479
  "identifier": {
1017
- "$ref": "#/components/schemas/ManagedIdentifierType"
2480
+ "anyOf": [
2481
+ {
2482
+ "$ref": "#/components/schemas/IIdentifier"
2483
+ },
2484
+ {
2485
+ "type": "string"
2486
+ }
2487
+ ]
1018
2488
  },
1019
2489
  "kmsKeyRef": {
1020
2490
  "type": "string"
@@ -1025,6 +2495,23 @@
1025
2495
  "kid": {
1026
2496
  "type": "string"
1027
2497
  },
2498
+ "clientId": {
2499
+ "type": "string"
2500
+ },
2501
+ "clientIdScheme": {
2502
+ "anyOf": [
2503
+ {
2504
+ "$ref": "#/components/schemas/ClientIdScheme"
2505
+ },
2506
+ {
2507
+ "type": "string",
2508
+ "const": "did"
2509
+ },
2510
+ {
2511
+ "type": "string"
2512
+ }
2513
+ ]
2514
+ },
1028
2515
  "keyType": {
1029
2516
  "$ref": "#/components/schemas/TKeyType"
1030
2517
  },
@@ -1053,7 +2540,7 @@
1053
2540
  "const": "kid"
1054
2541
  },
1055
2542
  "identifier": {
1056
- "$ref": "#/components/schemas/ManagedIdentifierType"
2543
+ "type": "string"
1057
2544
  },
1058
2545
  "kmsKeyRef": {
1059
2546
  "type": "string"
@@ -1063,6 +2550,23 @@
1063
2550
  },
1064
2551
  "kid": {
1065
2552
  "type": "string"
2553
+ },
2554
+ "clientId": {
2555
+ "type": "string"
2556
+ },
2557
+ "clientIdScheme": {
2558
+ "anyOf": [
2559
+ {
2560
+ "$ref": "#/components/schemas/ClientIdScheme"
2561
+ },
2562
+ {
2563
+ "type": "string",
2564
+ "const": "did"
2565
+ },
2566
+ {
2567
+ "type": "string"
2568
+ }
2569
+ ]
1066
2570
  }
1067
2571
  },
1068
2572
  "required": [
@@ -1077,7 +2581,7 @@
1077
2581
  "const": "key"
1078
2582
  },
1079
2583
  "identifier": {
1080
- "$ref": "#/components/schemas/ManagedIdentifierType"
2584
+ "$ref": "#/components/schemas/IKey"
1081
2585
  },
1082
2586
  "kmsKeyRef": {
1083
2587
  "type": "string"
@@ -1087,36 +2591,112 @@
1087
2591
  },
1088
2592
  "kid": {
1089
2593
  "type": "string"
2594
+ },
2595
+ "clientId": {
2596
+ "type": "string"
2597
+ },
2598
+ "clientIdScheme": {
2599
+ "anyOf": [
2600
+ {
2601
+ "$ref": "#/components/schemas/ClientIdScheme"
2602
+ },
2603
+ {
2604
+ "type": "string",
2605
+ "const": "did"
2606
+ },
2607
+ {
2608
+ "type": "string"
2609
+ }
2610
+ ]
1090
2611
  }
1091
2612
  },
1092
2613
  "required": [
1093
2614
  "identifier"
1094
2615
  ]
1095
- }
1096
- ]
1097
- },
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
2616
  },
1112
2617
  {
1113
- "$ref": "#/components/schemas/JWK"
2618
+ "type": "object",
2619
+ "properties": {
2620
+ "method": {
2621
+ "type": "string",
2622
+ "const": "cose_key"
2623
+ },
2624
+ "identifier": {
2625
+ "$ref": "#/components/schemas/ICoseKeyJson"
2626
+ },
2627
+ "kmsKeyRef": {
2628
+ "type": "string"
2629
+ },
2630
+ "issuer": {
2631
+ "type": "string"
2632
+ },
2633
+ "kid": {
2634
+ "type": "string"
2635
+ },
2636
+ "clientId": {
2637
+ "type": "string"
2638
+ },
2639
+ "clientIdScheme": {
2640
+ "anyOf": [
2641
+ {
2642
+ "$ref": "#/components/schemas/ClientIdScheme"
2643
+ },
2644
+ {
2645
+ "type": "string",
2646
+ "const": "did"
2647
+ },
2648
+ {
2649
+ "type": "string"
2650
+ }
2651
+ ]
2652
+ }
2653
+ },
2654
+ "required": [
2655
+ "identifier"
2656
+ ]
1114
2657
  },
1115
2658
  {
1116
- "$ref": "#/components/schemas/IKey"
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
+ ]
1117
2698
  }
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"
2699
+ ]
1120
2700
  },
1121
2701
  "IIdentifier": {
1122
2702
  "type": "object",
@@ -1276,6 +2856,32 @@
1276
2856
  ],
1277
2857
  "description": "Represents a service endpoint URL or a map of URLs"
1278
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
+ },
1279
2885
  "ManagedIdentifierResult": {
1280
2886
  "anyOf": [
1281
2887
  {
@@ -1305,6 +2911,26 @@
1305
2911
  "issuer": {
1306
2912
  "type": "string"
1307
2913
  },
2914
+ "clientId": {
2915
+ "type": "string"
2916
+ },
2917
+ "clientIdScheme": {
2918
+ "anyOf": [
2919
+ {
2920
+ "$ref": "#/components/schemas/ClientIdScheme"
2921
+ },
2922
+ {
2923
+ "type": "string",
2924
+ "const": "did"
2925
+ },
2926
+ {
2927
+ "type": "string"
2928
+ }
2929
+ ]
2930
+ },
2931
+ "identifier": {
2932
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2933
+ },
1308
2934
  "x5c": {
1309
2935
  "type": "array",
1310
2936
  "items": {
@@ -1315,6 +2941,7 @@
1315
2941
  },
1316
2942
  "required": [
1317
2943
  "certificate",
2944
+ "identifier",
1318
2945
  "jwk",
1319
2946
  "jwkThumbprint",
1320
2947
  "key",
@@ -1351,8 +2978,25 @@
1351
2978
  "issuer": {
1352
2979
  "type": "string"
1353
2980
  },
2981
+ "clientId": {
2982
+ "type": "string"
2983
+ },
2984
+ "clientIdScheme": {
2985
+ "anyOf": [
2986
+ {
2987
+ "$ref": "#/components/schemas/ClientIdScheme"
2988
+ },
2989
+ {
2990
+ "type": "string",
2991
+ "const": "did"
2992
+ },
2993
+ {
2994
+ "type": "string"
2995
+ }
2996
+ ]
2997
+ },
1354
2998
  "identifier": {
1355
- "$ref": "#/components/schemas/IIdentifier"
2999
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1356
3000
  },
1357
3001
  "did": {
1358
3002
  "type": "string"
@@ -1410,9 +3054,205 @@
1410
3054
  },
1411
3055
  "issuer": {
1412
3056
  "type": "string"
3057
+ },
3058
+ "clientId": {
3059
+ "type": "string"
3060
+ },
3061
+ "clientIdScheme": {
3062
+ "anyOf": [
3063
+ {
3064
+ "$ref": "#/components/schemas/ClientIdScheme"
3065
+ },
3066
+ {
3067
+ "type": "string",
3068
+ "const": "did"
3069
+ },
3070
+ {
3071
+ "type": "string"
3072
+ }
3073
+ ]
3074
+ },
3075
+ "identifier": {
3076
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3077
+ }
3078
+ },
3079
+ "required": [
3080
+ "identifier",
3081
+ "jwk",
3082
+ "jwkThumbprint",
3083
+ "key",
3084
+ "kmsKeyRef",
3085
+ "method",
3086
+ "opts"
3087
+ ]
3088
+ },
3089
+ {
3090
+ "type": "object",
3091
+ "properties": {
3092
+ "jwk": {
3093
+ "$ref": "#/components/schemas/JWK"
3094
+ },
3095
+ "jwkThumbprint": {
3096
+ "type": "string"
3097
+ },
3098
+ "kmsKeyRef": {
3099
+ "type": "string"
3100
+ },
3101
+ "method": {
3102
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3103
+ },
3104
+ "opts": {
3105
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3106
+ },
3107
+ "key": {
3108
+ "$ref": "#/components/schemas/IKey"
3109
+ },
3110
+ "kid": {
3111
+ "type": "string"
3112
+ },
3113
+ "issuer": {
3114
+ "type": "string"
3115
+ },
3116
+ "clientId": {
3117
+ "type": "string"
3118
+ },
3119
+ "clientIdScheme": {
3120
+ "anyOf": [
3121
+ {
3122
+ "$ref": "#/components/schemas/ClientIdScheme"
3123
+ },
3124
+ {
3125
+ "type": "string",
3126
+ "const": "did"
3127
+ },
3128
+ {
3129
+ "type": "string"
3130
+ }
3131
+ ]
3132
+ },
3133
+ "identifier": {
3134
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3135
+ }
3136
+ },
3137
+ "required": [
3138
+ "identifier",
3139
+ "jwk",
3140
+ "jwkThumbprint",
3141
+ "key",
3142
+ "kid",
3143
+ "kmsKeyRef",
3144
+ "method",
3145
+ "opts"
3146
+ ]
3147
+ },
3148
+ {
3149
+ "type": "object",
3150
+ "properties": {
3151
+ "jwk": {
3152
+ "$ref": "#/components/schemas/JWK"
3153
+ },
3154
+ "jwkThumbprint": {
3155
+ "type": "string"
3156
+ },
3157
+ "kmsKeyRef": {
3158
+ "type": "string"
3159
+ },
3160
+ "method": {
3161
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3162
+ },
3163
+ "opts": {
3164
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3165
+ },
3166
+ "key": {
3167
+ "$ref": "#/components/schemas/IKey"
3168
+ },
3169
+ "kid": {
3170
+ "type": "string"
3171
+ },
3172
+ "issuer": {
3173
+ "type": "string"
3174
+ },
3175
+ "clientId": {
3176
+ "type": "string"
3177
+ },
3178
+ "clientIdScheme": {
3179
+ "anyOf": [
3180
+ {
3181
+ "$ref": "#/components/schemas/ClientIdScheme"
3182
+ },
3183
+ {
3184
+ "type": "string",
3185
+ "const": "did"
3186
+ },
3187
+ {
3188
+ "type": "string"
3189
+ }
3190
+ ]
3191
+ },
3192
+ "identifier": {
3193
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3194
+ }
3195
+ },
3196
+ "required": [
3197
+ "identifier",
3198
+ "jwk",
3199
+ "jwkThumbprint",
3200
+ "key",
3201
+ "kmsKeyRef",
3202
+ "method",
3203
+ "opts"
3204
+ ]
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"
1413
3252
  }
1414
3253
  },
1415
3254
  "required": [
3255
+ "identifier",
1416
3256
  "jwk",
1417
3257
  "jwkThumbprint",
1418
3258
  "key",
@@ -1447,94 +3287,290 @@
1447
3287
  },
1448
3288
  "issuer": {
1449
3289
  "type": "string"
3290
+ },
3291
+ "clientId": {
3292
+ "type": "string"
3293
+ },
3294
+ "clientIdScheme": {
3295
+ "anyOf": [
3296
+ {
3297
+ "$ref": "#/components/schemas/ClientIdScheme"
3298
+ },
3299
+ {
3300
+ "type": "string",
3301
+ "const": "did"
3302
+ },
3303
+ {
3304
+ "type": "string"
3305
+ }
3306
+ ]
3307
+ },
3308
+ "identifier": {
3309
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1450
3310
  }
1451
3311
  },
1452
3312
  "required": [
1453
- "issuer",
3313
+ "identifier",
1454
3314
  "jwk",
1455
3315
  "jwkThumbprint",
1456
3316
  "key",
1457
- "kid",
1458
3317
  "kmsKeyRef",
1459
3318
  "method",
1460
3319
  "opts"
1461
3320
  ]
3321
+ }
3322
+ ]
3323
+ },
3324
+ "ManagedIdentifierCoseKeyOpts": {
3325
+ "type": "object",
3326
+ "properties": {
3327
+ "method": {
3328
+ "type": "string",
3329
+ "const": "cose_key"
1462
3330
  },
1463
- {
1464
- "type": "object",
1465
- "properties": {
1466
- "jwk": {
1467
- "$ref": "#/components/schemas/JWK"
3331
+ "identifier": {
3332
+ "$ref": "#/components/schemas/ICoseKeyJson"
3333
+ },
3334
+ "kmsKeyRef": {
3335
+ "type": "string"
3336
+ },
3337
+ "issuer": {
3338
+ "type": "string"
3339
+ },
3340
+ "kid": {
3341
+ "type": "string"
3342
+ },
3343
+ "clientId": {
3344
+ "type": "string"
3345
+ },
3346
+ "clientIdScheme": {
3347
+ "anyOf": [
3348
+ {
3349
+ "$ref": "#/components/schemas/ClientIdScheme"
1468
3350
  },
1469
- "jwkThumbprint": {
1470
- "type": "string"
3351
+ {
3352
+ "type": "string",
3353
+ "const": "did"
1471
3354
  },
1472
- "kmsKeyRef": {
3355
+ {
1473
3356
  "type": "string"
3357
+ }
3358
+ ]
3359
+ }
3360
+ },
3361
+ "required": [
3362
+ "identifier"
3363
+ ]
3364
+ },
3365
+ "ManagedIdentifierCoseKeyResult": {
3366
+ "type": "object",
3367
+ "properties": {
3368
+ "jwk": {
3369
+ "$ref": "#/components/schemas/JWK"
3370
+ },
3371
+ "jwkThumbprint": {
3372
+ "type": "string"
3373
+ },
3374
+ "kmsKeyRef": {
3375
+ "type": "string"
3376
+ },
3377
+ "method": {
3378
+ "type": "string",
3379
+ "const": "cose_key"
3380
+ },
3381
+ "opts": {
3382
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3383
+ },
3384
+ "key": {
3385
+ "$ref": "#/components/schemas/IKey"
3386
+ },
3387
+ "kid": {
3388
+ "type": "string"
3389
+ },
3390
+ "issuer": {
3391
+ "type": "string"
3392
+ },
3393
+ "clientId": {
3394
+ "type": "string"
3395
+ },
3396
+ "clientIdScheme": {
3397
+ "anyOf": [
3398
+ {
3399
+ "$ref": "#/components/schemas/ClientIdScheme"
1474
3400
  },
1475
- "method": {
1476
- "$ref": "#/components/schemas/ManagedIdentifierMethod"
1477
- },
1478
- "opts": {
1479
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
3401
+ {
3402
+ "type": "string",
3403
+ "const": "did"
1480
3404
  },
1481
- "key": {
1482
- "$ref": "#/components/schemas/IKey"
3405
+ {
3406
+ "type": "string"
3407
+ }
3408
+ ]
3409
+ },
3410
+ "identifier": {
3411
+ "$ref": "#/components/schemas/ICoseKeyJson"
3412
+ }
3413
+ },
3414
+ "required": [
3415
+ "identifier",
3416
+ "jwk",
3417
+ "jwkThumbprint",
3418
+ "key",
3419
+ "kmsKeyRef",
3420
+ "method",
3421
+ "opts"
3422
+ ]
3423
+ },
3424
+ "ManagedIdentifierDidOpts": {
3425
+ "type": "object",
3426
+ "properties": {
3427
+ "method": {
3428
+ "type": "string",
3429
+ "const": "did"
3430
+ },
3431
+ "identifier": {
3432
+ "anyOf": [
3433
+ {
3434
+ "$ref": "#/components/schemas/IIdentifier"
1483
3435
  },
1484
- "kid": {
3436
+ {
1485
3437
  "type": "string"
3438
+ }
3439
+ ]
3440
+ },
3441
+ "keyType": {
3442
+ "$ref": "#/components/schemas/TKeyType"
3443
+ },
3444
+ "offlineWhenNoDIDRegistered": {
3445
+ "type": "boolean"
3446
+ },
3447
+ "noVerificationMethodFallback": {
3448
+ "type": "boolean"
3449
+ },
3450
+ "controllerKey": {
3451
+ "type": "boolean"
3452
+ },
3453
+ "vmRelationship": {
3454
+ "$ref": "#/components/schemas/DIDDocumentSection"
3455
+ },
3456
+ "kmsKeyRef": {
3457
+ "type": "string"
3458
+ },
3459
+ "issuer": {
3460
+ "type": "string"
3461
+ },
3462
+ "kid": {
3463
+ "type": "string"
3464
+ },
3465
+ "clientId": {
3466
+ "type": "string"
3467
+ },
3468
+ "clientIdScheme": {
3469
+ "anyOf": [
3470
+ {
3471
+ "$ref": "#/components/schemas/ClientIdScheme"
1486
3472
  },
1487
- "issuer": {
3473
+ {
3474
+ "type": "string",
3475
+ "const": "did"
3476
+ },
3477
+ {
1488
3478
  "type": "string"
1489
3479
  }
1490
- },
1491
- "required": [
1492
- "issuer",
1493
- "jwk",
1494
- "jwkThumbprint",
1495
- "key",
1496
- "kid",
1497
- "kmsKeyRef",
1498
- "method",
1499
- "opts"
1500
3480
  ]
1501
3481
  }
3482
+ },
3483
+ "required": [
3484
+ "identifier"
1502
3485
  ]
1503
3486
  },
1504
- "ManagedIdentifierMethod": {
1505
- "type": "string",
1506
- "enum": [
3487
+ "ManagedIdentifierDidResult": {
3488
+ "type": "object",
3489
+ "properties": {
3490
+ "jwk": {
3491
+ "$ref": "#/components/schemas/JWK"
3492
+ },
3493
+ "jwkThumbprint": {
3494
+ "type": "string"
3495
+ },
3496
+ "kmsKeyRef": {
3497
+ "type": "string"
3498
+ },
3499
+ "method": {
3500
+ "type": "string",
3501
+ "const": "did"
3502
+ },
3503
+ "opts": {
3504
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3505
+ },
3506
+ "key": {
3507
+ "$ref": "#/components/schemas/IKey"
3508
+ },
3509
+ "kid": {
3510
+ "type": "string"
3511
+ },
3512
+ "issuer": {
3513
+ "type": "string"
3514
+ },
3515
+ "clientId": {
3516
+ "type": "string"
3517
+ },
3518
+ "clientIdScheme": {
3519
+ "anyOf": [
3520
+ {
3521
+ "$ref": "#/components/schemas/ClientIdScheme"
3522
+ },
3523
+ {
3524
+ "type": "string",
3525
+ "const": "did"
3526
+ },
3527
+ {
3528
+ "type": "string"
3529
+ }
3530
+ ]
3531
+ },
3532
+ "identifier": {
3533
+ "$ref": "#/components/schemas/IIdentifier"
3534
+ },
3535
+ "did": {
3536
+ "type": "string"
3537
+ },
3538
+ "keys": {
3539
+ "type": "array",
3540
+ "items": {
3541
+ "$ref": "#/components/schemas/IKey"
3542
+ }
3543
+ },
3544
+ "verificationMethodSection": {
3545
+ "$ref": "#/components/schemas/DIDDocumentSection"
3546
+ },
3547
+ "controllerKeyId": {
3548
+ "type": "string"
3549
+ }
3550
+ },
3551
+ "required": [
1507
3552
  "did",
3553
+ "identifier",
3554
+ "issuer",
1508
3555
  "jwk",
1509
- "x5c",
3556
+ "jwkThumbprint",
3557
+ "key",
3558
+ "keys",
1510
3559
  "kid",
1511
- "key"
3560
+ "kmsKeyRef",
3561
+ "method",
3562
+ "opts"
1512
3563
  ]
1513
3564
  },
1514
- "ManagedIdentifierDidOpts": {
3565
+ "ManagedIdentifierJwkOpts": {
1515
3566
  "type": "object",
1516
3567
  "properties": {
1517
3568
  "method": {
1518
3569
  "type": "string",
1519
- "const": "did"
3570
+ "const": "jwk"
1520
3571
  },
1521
3572
  "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"
3573
+ "$ref": "#/components/schemas/JWK"
1538
3574
  },
1539
3575
  "kmsKeyRef": {
1540
3576
  "type": "string"
@@ -1544,13 +3580,30 @@
1544
3580
  },
1545
3581
  "kid": {
1546
3582
  "type": "string"
3583
+ },
3584
+ "clientId": {
3585
+ "type": "string"
3586
+ },
3587
+ "clientIdScheme": {
3588
+ "anyOf": [
3589
+ {
3590
+ "$ref": "#/components/schemas/ClientIdScheme"
3591
+ },
3592
+ {
3593
+ "type": "string",
3594
+ "const": "did"
3595
+ },
3596
+ {
3597
+ "type": "string"
3598
+ }
3599
+ ]
1547
3600
  }
1548
3601
  },
1549
3602
  "required": [
1550
3603
  "identifier"
1551
3604
  ]
1552
3605
  },
1553
- "ManagedIdentifierDidResult": {
3606
+ "ManagedIdentifierJwkResult": {
1554
3607
  "type": "object",
1555
3608
  "properties": {
1556
3609
  "jwk": {
@@ -1564,7 +3617,7 @@
1564
3617
  },
1565
3618
  "method": {
1566
3619
  "type": "string",
1567
- "const": "did"
3620
+ "const": "jwk"
1568
3621
  },
1569
3622
  "opts": {
1570
3623
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1578,48 +3631,46 @@
1578
3631
  "issuer": {
1579
3632
  "type": "string"
1580
3633
  },
1581
- "identifier": {
1582
- "$ref": "#/components/schemas/IIdentifier"
1583
- },
1584
- "did": {
3634
+ "clientId": {
1585
3635
  "type": "string"
1586
3636
  },
1587
- "keys": {
1588
- "type": "array",
1589
- "items": {
1590
- "$ref": "#/components/schemas/IKey"
1591
- }
1592
- },
1593
- "verificationMethodSection": {
1594
- "$ref": "#/components/schemas/DIDDocumentSection"
3637
+ "clientIdScheme": {
3638
+ "anyOf": [
3639
+ {
3640
+ "$ref": "#/components/schemas/ClientIdScheme"
3641
+ },
3642
+ {
3643
+ "type": "string",
3644
+ "const": "did"
3645
+ },
3646
+ {
3647
+ "type": "string"
3648
+ }
3649
+ ]
1595
3650
  },
1596
- "controllerKeyId": {
1597
- "type": "string"
3651
+ "identifier": {
3652
+ "$ref": "#/components/schemas/JWK"
1598
3653
  }
1599
3654
  },
1600
3655
  "required": [
1601
- "did",
1602
3656
  "identifier",
1603
- "issuer",
1604
3657
  "jwk",
1605
3658
  "jwkThumbprint",
1606
3659
  "key",
1607
- "keys",
1608
- "kid",
1609
3660
  "kmsKeyRef",
1610
3661
  "method",
1611
3662
  "opts"
1612
3663
  ]
1613
3664
  },
1614
- "ManagedIdentifierJwkOpts": {
3665
+ "ManagedIdentifierKeyOpts": {
1615
3666
  "type": "object",
1616
3667
  "properties": {
1617
3668
  "method": {
1618
3669
  "type": "string",
1619
- "const": "jwk"
3670
+ "const": "key"
1620
3671
  },
1621
3672
  "identifier": {
1622
- "$ref": "#/components/schemas/ManagedIdentifierType"
3673
+ "$ref": "#/components/schemas/IKey"
1623
3674
  },
1624
3675
  "kmsKeyRef": {
1625
3676
  "type": "string"
@@ -1629,13 +3680,30 @@
1629
3680
  },
1630
3681
  "kid": {
1631
3682
  "type": "string"
3683
+ },
3684
+ "clientId": {
3685
+ "type": "string"
3686
+ },
3687
+ "clientIdScheme": {
3688
+ "anyOf": [
3689
+ {
3690
+ "$ref": "#/components/schemas/ClientIdScheme"
3691
+ },
3692
+ {
3693
+ "type": "string",
3694
+ "const": "did"
3695
+ },
3696
+ {
3697
+ "type": "string"
3698
+ }
3699
+ ]
1632
3700
  }
1633
3701
  },
1634
3702
  "required": [
1635
3703
  "identifier"
1636
3704
  ]
1637
3705
  },
1638
- "ManagedIdentifierJwkResult": {
3706
+ "ManagedIdentifierKeyResult": {
1639
3707
  "type": "object",
1640
3708
  "properties": {
1641
3709
  "jwk": {
@@ -1649,7 +3717,7 @@
1649
3717
  },
1650
3718
  "method": {
1651
3719
  "type": "string",
1652
- "const": "jwk"
3720
+ "const": "key"
1653
3721
  },
1654
3722
  "opts": {
1655
3723
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1662,9 +3730,30 @@
1662
3730
  },
1663
3731
  "issuer": {
1664
3732
  "type": "string"
3733
+ },
3734
+ "clientId": {
3735
+ "type": "string"
3736
+ },
3737
+ "clientIdScheme": {
3738
+ "anyOf": [
3739
+ {
3740
+ "$ref": "#/components/schemas/ClientIdScheme"
3741
+ },
3742
+ {
3743
+ "type": "string",
3744
+ "const": "did"
3745
+ },
3746
+ {
3747
+ "type": "string"
3748
+ }
3749
+ ]
3750
+ },
3751
+ "identifier": {
3752
+ "$ref": "#/components/schemas/IKey"
1665
3753
  }
1666
3754
  },
1667
3755
  "required": [
3756
+ "identifier",
1668
3757
  "jwk",
1669
3758
  "jwkThumbprint",
1670
3759
  "key",
@@ -1673,15 +3762,15 @@
1673
3762
  "opts"
1674
3763
  ]
1675
3764
  },
1676
- "ManagedIdentifierKeyOpts": {
3765
+ "ManagedIdentifierKidOpts": {
1677
3766
  "type": "object",
1678
3767
  "properties": {
1679
3768
  "method": {
1680
3769
  "type": "string",
1681
- "const": "key"
3770
+ "const": "kid"
1682
3771
  },
1683
3772
  "identifier": {
1684
- "$ref": "#/components/schemas/ManagedIdentifierType"
3773
+ "type": "string"
1685
3774
  },
1686
3775
  "kmsKeyRef": {
1687
3776
  "type": "string"
@@ -1691,13 +3780,30 @@
1691
3780
  },
1692
3781
  "kid": {
1693
3782
  "type": "string"
3783
+ },
3784
+ "clientId": {
3785
+ "type": "string"
3786
+ },
3787
+ "clientIdScheme": {
3788
+ "anyOf": [
3789
+ {
3790
+ "$ref": "#/components/schemas/ClientIdScheme"
3791
+ },
3792
+ {
3793
+ "type": "string",
3794
+ "const": "did"
3795
+ },
3796
+ {
3797
+ "type": "string"
3798
+ }
3799
+ ]
1694
3800
  }
1695
3801
  },
1696
3802
  "required": [
1697
3803
  "identifier"
1698
3804
  ]
1699
3805
  },
1700
- "ManagedIdentifierKeyResult": {
3806
+ "ManagedIdentifierKidResult": {
1701
3807
  "type": "object",
1702
3808
  "properties": {
1703
3809
  "jwk": {
@@ -1711,7 +3817,7 @@
1711
3817
  },
1712
3818
  "method": {
1713
3819
  "type": "string",
1714
- "const": "key"
3820
+ "const": "kid"
1715
3821
  },
1716
3822
  "opts": {
1717
3823
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1724,10 +3830,30 @@
1724
3830
  },
1725
3831
  "issuer": {
1726
3832
  "type": "string"
3833
+ },
3834
+ "clientId": {
3835
+ "type": "string"
3836
+ },
3837
+ "clientIdScheme": {
3838
+ "anyOf": [
3839
+ {
3840
+ "$ref": "#/components/schemas/ClientIdScheme"
3841
+ },
3842
+ {
3843
+ "type": "string",
3844
+ "const": "did"
3845
+ },
3846
+ {
3847
+ "type": "string"
3848
+ }
3849
+ ]
3850
+ },
3851
+ "identifier": {
3852
+ "type": "string"
1727
3853
  }
1728
3854
  },
1729
3855
  "required": [
1730
- "issuer",
3856
+ "identifier",
1731
3857
  "jwk",
1732
3858
  "jwkThumbprint",
1733
3859
  "key",
@@ -1737,15 +3863,15 @@
1737
3863
  "opts"
1738
3864
  ]
1739
3865
  },
1740
- "ManagedIdentifierKidOpts": {
3866
+ "ManagedIdentifierOID4VCIssuerOpts": {
1741
3867
  "type": "object",
1742
3868
  "properties": {
1743
3869
  "method": {
1744
3870
  "type": "string",
1745
- "const": "kid"
3871
+ "const": "oid4vci-issuer"
1746
3872
  },
1747
3873
  "identifier": {
1748
- "$ref": "#/components/schemas/ManagedIdentifierType"
3874
+ "type": "string"
1749
3875
  },
1750
3876
  "kmsKeyRef": {
1751
3877
  "type": "string"
@@ -1755,13 +3881,30 @@
1755
3881
  },
1756
3882
  "kid": {
1757
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
+ ]
1758
3901
  }
1759
3902
  },
1760
3903
  "required": [
1761
3904
  "identifier"
1762
3905
  ]
1763
3906
  },
1764
- "ManagedIdentifierKidResult": {
3907
+ "ManagedIdentifierOID4VCIssuerResult": {
1765
3908
  "type": "object",
1766
3909
  "properties": {
1767
3910
  "jwk": {
@@ -1775,7 +3918,7 @@
1775
3918
  },
1776
3919
  "method": {
1777
3920
  "type": "string",
1778
- "const": "kid"
3921
+ "const": "oid4vci-issuer"
1779
3922
  },
1780
3923
  "opts": {
1781
3924
  "$ref": "#/components/schemas/ManagedIdentifierOpts"
@@ -1788,14 +3931,33 @@
1788
3931
  },
1789
3932
  "issuer": {
1790
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"
1791
3954
  }
1792
3955
  },
1793
3956
  "required": [
1794
- "issuer",
3957
+ "identifier",
1795
3958
  "jwk",
1796
3959
  "jwkThumbprint",
1797
3960
  "key",
1798
- "kid",
1799
3961
  "kmsKeyRef",
1800
3962
  "method",
1801
3963
  "opts"
@@ -1809,7 +3971,10 @@
1809
3971
  "const": "x5c"
1810
3972
  },
1811
3973
  "identifier": {
1812
- "$ref": "#/components/schemas/ManagedIdentifierType"
3974
+ "type": "array",
3975
+ "items": {
3976
+ "type": "string"
3977
+ }
1813
3978
  },
1814
3979
  "kmsKeyRef": {
1815
3980
  "type": "string"
@@ -1819,6 +3984,23 @@
1819
3984
  },
1820
3985
  "kid": {
1821
3986
  "type": "string"
3987
+ },
3988
+ "clientId": {
3989
+ "type": "string"
3990
+ },
3991
+ "clientIdScheme": {
3992
+ "anyOf": [
3993
+ {
3994
+ "$ref": "#/components/schemas/ClientIdScheme"
3995
+ },
3996
+ {
3997
+ "type": "string",
3998
+ "const": "did"
3999
+ },
4000
+ {
4001
+ "type": "string"
4002
+ }
4003
+ ]
1822
4004
  }
1823
4005
  },
1824
4006
  "required": [
@@ -1853,6 +4035,29 @@
1853
4035
  "issuer": {
1854
4036
  "type": "string"
1855
4037
  },
4038
+ "clientId": {
4039
+ "type": "string"
4040
+ },
4041
+ "clientIdScheme": {
4042
+ "anyOf": [
4043
+ {
4044
+ "$ref": "#/components/schemas/ClientIdScheme"
4045
+ },
4046
+ {
4047
+ "type": "string",
4048
+ "const": "did"
4049
+ },
4050
+ {
4051
+ "type": "string"
4052
+ }
4053
+ ]
4054
+ },
4055
+ "identifier": {
4056
+ "type": "array",
4057
+ "items": {
4058
+ "type": "string"
4059
+ }
4060
+ },
1856
4061
  "x5c": {
1857
4062
  "type": "array",
1858
4063
  "items": {
@@ -1863,6 +4068,7 @@
1863
4068
  },
1864
4069
  "required": [
1865
4070
  "certificate",
4071
+ "identifier",
1866
4072
  "jwk",
1867
4073
  "jwkThumbprint",
1868
4074
  "key",
@@ -1883,6 +4089,15 @@
1883
4089
  "$ref": "#/components/schemas/ExternalIdentifierResult"
1884
4090
  }
1885
4091
  },
4092
+ "identifierExternalResolveByCoseKey": {
4093
+ "description": "",
4094
+ "arguments": {
4095
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyOpts"
4096
+ },
4097
+ "returnType": {
4098
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyResult"
4099
+ }
4100
+ },
1886
4101
  "identifierExternalResolveByDid": {
1887
4102
  "description": "",
1888
4103
  "arguments": {
@@ -1892,6 +4107,15 @@
1892
4107
  "$ref": "#/components/schemas/ExternalIdentifierDidResult"
1893
4108
  }
1894
4109
  },
4110
+ "identifierExternalResolveByJwk": {
4111
+ "description": "",
4112
+ "arguments": {
4113
+ "$ref": "#/components/schemas/ExternalIdentifierJwkOpts"
4114
+ },
4115
+ "returnType": {
4116
+ "$ref": "#/components/schemas/ExternalIdentifierJwkResult"
4117
+ }
4118
+ },
1895
4119
  "identifierExternalResolveByX5c": {
1896
4120
  "description": "",
1897
4121
  "arguments": {
@@ -1904,12 +4128,21 @@
1904
4128
  "identifierManagedGet": {
1905
4129
  "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
4130
  "arguments": {
1907
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
4131
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
1908
4132
  },
1909
4133
  "returnType": {
1910
4134
  "$ref": "#/components/schemas/ManagedIdentifierResult"
1911
4135
  }
1912
4136
  },
4137
+ "identifierManagedGetByCoseKey": {
4138
+ "description": "",
4139
+ "arguments": {
4140
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyOpts"
4141
+ },
4142
+ "returnType": {
4143
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyResult"
4144
+ }
4145
+ },
1913
4146
  "identifierManagedGetByDid": {
1914
4147
  "description": "",
1915
4148
  "arguments": {
@@ -1946,6 +4179,15 @@
1946
4179
  "$ref": "#/components/schemas/ManagedIdentifierKidResult"
1947
4180
  }
1948
4181
  },
4182
+ "identifierManagedGetByOID4VCIssuer": {
4183
+ "description": "",
4184
+ "arguments": {
4185
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerOpts"
4186
+ },
4187
+ "returnType": {
4188
+ "$ref": "#/components/schemas/ManagedIdentifierOID4VCIssuerResult"
4189
+ }
4190
+ },
1949
4191
  "identifierManagedGetByX5c": {
1950
4192
  "description": "",
1951
4193
  "arguments": {