@sphereon/ssi-sdk-ext.identifier-resolution 0.24.1-next.98 → 0.24.1-unstable.112

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 (41) hide show
  1. package/dist/agent/IdentifierResolution.d.ts +3 -1
  2. package/dist/agent/IdentifierResolution.d.ts.map +1 -1
  3. package/dist/agent/IdentifierResolution.js +19 -7
  4. package/dist/agent/IdentifierResolution.js.map +1 -1
  5. package/dist/functions/LegacySupport.d.ts.map +1 -1
  6. package/dist/functions/LegacySupport.js +5 -4
  7. package/dist/functions/LegacySupport.js.map +1 -1
  8. package/dist/functions/externalIdentifierFunctions.d.ts +17 -1
  9. package/dist/functions/externalIdentifierFunctions.d.ts.map +1 -1
  10. package/dist/functions/externalIdentifierFunctions.js +82 -2
  11. package/dist/functions/externalIdentifierFunctions.js.map +1 -1
  12. package/dist/functions/managedIdentifierFunctions.d.ts +16 -5
  13. package/dist/functions/managedIdentifierFunctions.d.ts.map +1 -1
  14. package/dist/functions/managedIdentifierFunctions.js +66 -6
  15. package/dist/functions/managedIdentifierFunctions.js.map +1 -1
  16. package/dist/types/IIdentifierResolution.d.ts +10 -12
  17. package/dist/types/IIdentifierResolution.d.ts.map +1 -1
  18. package/dist/types/IIdentifierResolution.js +3 -1
  19. package/dist/types/IIdentifierResolution.js.map +1 -1
  20. package/dist/types/common.d.ts +2 -1
  21. package/dist/types/common.d.ts.map +1 -1
  22. package/dist/types/common.js +5 -1
  23. package/dist/types/common.js.map +1 -1
  24. package/dist/types/externalIdentifierTypes.d.ts +23 -6
  25. package/dist/types/externalIdentifierTypes.d.ts.map +1 -1
  26. package/dist/types/externalIdentifierTypes.js +6 -1
  27. package/dist/types/externalIdentifierTypes.js.map +1 -1
  28. package/dist/types/managedIdentifierTypes.d.ts +29 -7
  29. package/dist/types/managedIdentifierTypes.d.ts.map +1 -1
  30. package/dist/types/managedIdentifierTypes.js +10 -1
  31. package/dist/types/managedIdentifierTypes.js.map +1 -1
  32. package/package.json +12 -12
  33. package/plugin.schema.json +2149 -264
  34. package/src/agent/IdentifierResolution.ts +56 -18
  35. package/src/functions/LegacySupport.ts +5 -1
  36. package/src/functions/externalIdentifierFunctions.ts +94 -4
  37. package/src/functions/managedIdentifierFunctions.ts +79 -10
  38. package/src/types/IIdentifierResolution.ts +22 -12
  39. package/src/types/common.ts +5 -1
  40. package/src/types/externalIdentifierTypes.ts +54 -13
  41. package/src/types/managedIdentifierTypes.ts +47 -8
@@ -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,144 +289,415 @@
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
- }
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
+ ]
349
546
  },
350
- "keyAgreement": {
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": {
351
701
  "type": "array",
352
702
  "items": {
353
703
  "anyOf": [
@@ -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,84 +1232,1077 @@
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"
967
- },
968
- "identifier": {
969
- "$ref": "#/components/schemas/ManagedIdentifierType"
970
- },
971
- "kmsKeyRef": {
972
- "type": "string"
973
- },
974
- "issuer": {
975
- "type": "string"
976
- },
977
- "kid": {
978
- "type": "string"
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
+ "method": {
1984
+ "type": "string",
1985
+ "const": "jwk"
1986
+ },
1987
+ "identifier": {
1988
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1989
+ },
1990
+ "kmsKeyRef": {
1991
+ "type": "string"
1992
+ },
1993
+ "issuer": {
1994
+ "type": "string"
1995
+ },
1996
+ "kid": {
1997
+ "type": "string"
1998
+ },
1999
+ "clientId": {
2000
+ "type": "string"
2001
+ },
2002
+ "clientIdScheme": {
2003
+ "anyOf": [
2004
+ {
2005
+ "$ref": "#/components/schemas/ClientIdScheme"
2006
+ },
2007
+ {
2008
+ "type": "string",
2009
+ "const": "did"
2010
+ },
2011
+ {
2012
+ "type": "string"
2013
+ }
2014
+ ]
2015
+ }
2016
+ },
2017
+ "required": [
2018
+ "identifier"
2019
+ ]
2020
+ },
2021
+ {
2022
+ "type": "object",
2023
+ "properties": {
2024
+ "lazyDisabled": {
2025
+ "type": "boolean"
2026
+ },
2027
+ "method": {
2028
+ "type": "string",
2029
+ "const": "x5c"
2030
+ },
2031
+ "identifier": {
2032
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2033
+ },
2034
+ "kmsKeyRef": {
2035
+ "type": "string"
2036
+ },
2037
+ "issuer": {
2038
+ "type": "string"
2039
+ },
2040
+ "kid": {
2041
+ "type": "string"
2042
+ },
2043
+ "clientId": {
2044
+ "type": "string"
2045
+ },
2046
+ "clientIdScheme": {
2047
+ "anyOf": [
2048
+ {
2049
+ "$ref": "#/components/schemas/ClientIdScheme"
2050
+ },
2051
+ {
2052
+ "type": "string",
2053
+ "const": "did"
2054
+ },
2055
+ {
2056
+ "type": "string"
2057
+ }
2058
+ ]
2059
+ }
2060
+ },
2061
+ "required": [
2062
+ "identifier"
2063
+ ]
2064
+ },
2065
+ {
2066
+ "type": "object",
2067
+ "properties": {
2068
+ "lazyDisabled": {
2069
+ "type": "boolean"
2070
+ },
2071
+ "method": {
2072
+ "type": "string",
2073
+ "const": "did"
2074
+ },
2075
+ "identifier": {
2076
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2077
+ },
2078
+ "kmsKeyRef": {
2079
+ "type": "string"
2080
+ },
2081
+ "issuer": {
2082
+ "type": "string"
2083
+ },
2084
+ "kid": {
2085
+ "type": "string"
2086
+ },
2087
+ "clientId": {
2088
+ "type": "string"
2089
+ },
2090
+ "clientIdScheme": {
2091
+ "anyOf": [
2092
+ {
2093
+ "$ref": "#/components/schemas/ClientIdScheme"
2094
+ },
2095
+ {
2096
+ "type": "string",
2097
+ "const": "did"
2098
+ },
2099
+ {
2100
+ "type": "string"
2101
+ }
2102
+ ]
2103
+ },
2104
+ "keyType": {
2105
+ "$ref": "#/components/schemas/TKeyType"
2106
+ },
2107
+ "offlineWhenNoDIDRegistered": {
2108
+ "type": "boolean"
2109
+ },
2110
+ "noVerificationMethodFallback": {
2111
+ "type": "boolean"
2112
+ },
2113
+ "controllerKey": {
2114
+ "type": "boolean"
2115
+ },
2116
+ "vmRelationship": {
2117
+ "$ref": "#/components/schemas/DIDDocumentSection"
2118
+ }
2119
+ },
2120
+ "required": [
2121
+ "identifier"
2122
+ ]
2123
+ },
2124
+ {
2125
+ "type": "object",
2126
+ "properties": {
2127
+ "lazyDisabled": {
2128
+ "type": "boolean"
2129
+ },
2130
+ "method": {
2131
+ "type": "string",
2132
+ "const": "kid"
2133
+ },
2134
+ "identifier": {
2135
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2136
+ },
2137
+ "kmsKeyRef": {
2138
+ "type": "string"
2139
+ },
2140
+ "issuer": {
2141
+ "type": "string"
2142
+ },
2143
+ "kid": {
2144
+ "type": "string"
2145
+ },
2146
+ "clientId": {
2147
+ "type": "string"
2148
+ },
2149
+ "clientIdScheme": {
2150
+ "anyOf": [
2151
+ {
2152
+ "$ref": "#/components/schemas/ClientIdScheme"
2153
+ },
2154
+ {
2155
+ "type": "string",
2156
+ "const": "did"
2157
+ },
2158
+ {
2159
+ "type": "string"
2160
+ }
2161
+ ]
2162
+ }
2163
+ },
2164
+ "required": [
2165
+ "identifier"
2166
+ ]
2167
+ },
2168
+ {
2169
+ "type": "object",
2170
+ "properties": {
2171
+ "lazyDisabled": {
2172
+ "type": "boolean"
2173
+ },
2174
+ "method": {
2175
+ "type": "string",
2176
+ "const": "key"
2177
+ },
2178
+ "identifier": {
2179
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2180
+ },
2181
+ "kmsKeyRef": {
2182
+ "type": "string"
2183
+ },
2184
+ "issuer": {
2185
+ "type": "string"
2186
+ },
2187
+ "kid": {
2188
+ "type": "string"
2189
+ },
2190
+ "clientId": {
2191
+ "type": "string"
2192
+ },
2193
+ "clientIdScheme": {
2194
+ "anyOf": [
2195
+ {
2196
+ "$ref": "#/components/schemas/ClientIdScheme"
2197
+ },
2198
+ {
2199
+ "type": "string",
2200
+ "const": "did"
2201
+ },
2202
+ {
2203
+ "type": "string"
2204
+ }
2205
+ ]
2206
+ }
2207
+ },
2208
+ "required": [
2209
+ "identifier"
2210
+ ]
2211
+ },
2212
+ {
2213
+ "type": "object",
2214
+ "properties": {
2215
+ "lazyDisabled": {
2216
+ "type": "boolean"
2217
+ },
2218
+ "method": {
2219
+ "type": "string",
2220
+ "const": "cose_key"
2221
+ },
2222
+ "identifier": {
2223
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2224
+ },
2225
+ "kmsKeyRef": {
2226
+ "type": "string"
2227
+ },
2228
+ "issuer": {
2229
+ "type": "string"
2230
+ },
2231
+ "kid": {
2232
+ "type": "string"
2233
+ },
2234
+ "clientId": {
2235
+ "type": "string"
2236
+ },
2237
+ "clientIdScheme": {
2238
+ "anyOf": [
2239
+ {
2240
+ "$ref": "#/components/schemas/ClientIdScheme"
2241
+ },
2242
+ {
2243
+ "type": "string",
2244
+ "const": "did"
2245
+ },
2246
+ {
2247
+ "type": "string"
2248
+ }
2249
+ ]
2250
+ }
2251
+ },
2252
+ "required": [
2253
+ "identifier"
2254
+ ]
2255
+ }
2256
+ ]
2257
+ },
2258
+ "ManagedIdentifierMethod": {
2259
+ "type": "string",
2260
+ "enum": [
2261
+ "did",
2262
+ "jwk",
2263
+ "x5c",
2264
+ "kid",
2265
+ "key",
2266
+ "cose_key"
2267
+ ]
2268
+ },
2269
+ "ManagedIdentifierOpts": {
2270
+ "anyOf": [
2271
+ {
2272
+ "type": "object",
2273
+ "properties": {
2274
+ "method": {
2275
+ "type": "string",
2276
+ "const": "jwk"
2277
+ },
2278
+ "identifier": {
2279
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2280
+ },
2281
+ "kmsKeyRef": {
2282
+ "type": "string"
2283
+ },
2284
+ "issuer": {
2285
+ "type": "string"
2286
+ },
2287
+ "kid": {
2288
+ "type": "string"
2289
+ },
2290
+ "clientId": {
2291
+ "type": "string"
2292
+ },
2293
+ "clientIdScheme": {
2294
+ "anyOf": [
2295
+ {
2296
+ "$ref": "#/components/schemas/ClientIdScheme"
2297
+ },
2298
+ {
2299
+ "type": "string",
2300
+ "const": "did"
2301
+ },
2302
+ {
2303
+ "type": "string"
2304
+ }
2305
+ ]
979
2306
  }
980
2307
  },
981
2308
  "required": [
@@ -1000,6 +2327,23 @@
1000
2327
  },
1001
2328
  "kid": {
1002
2329
  "type": "string"
2330
+ },
2331
+ "clientId": {
2332
+ "type": "string"
2333
+ },
2334
+ "clientIdScheme": {
2335
+ "anyOf": [
2336
+ {
2337
+ "$ref": "#/components/schemas/ClientIdScheme"
2338
+ },
2339
+ {
2340
+ "type": "string",
2341
+ "const": "did"
2342
+ },
2343
+ {
2344
+ "type": "string"
2345
+ }
2346
+ ]
1003
2347
  }
1004
2348
  },
1005
2349
  "required": [
@@ -1025,6 +2369,23 @@
1025
2369
  "kid": {
1026
2370
  "type": "string"
1027
2371
  },
2372
+ "clientId": {
2373
+ "type": "string"
2374
+ },
2375
+ "clientIdScheme": {
2376
+ "anyOf": [
2377
+ {
2378
+ "$ref": "#/components/schemas/ClientIdScheme"
2379
+ },
2380
+ {
2381
+ "type": "string",
2382
+ "const": "did"
2383
+ },
2384
+ {
2385
+ "type": "string"
2386
+ }
2387
+ ]
2388
+ },
1028
2389
  "keyType": {
1029
2390
  "$ref": "#/components/schemas/TKeyType"
1030
2391
  },
@@ -1063,6 +2424,64 @@
1063
2424
  },
1064
2425
  "kid": {
1065
2426
  "type": "string"
2427
+ },
2428
+ "clientId": {
2429
+ "type": "string"
2430
+ },
2431
+ "clientIdScheme": {
2432
+ "anyOf": [
2433
+ {
2434
+ "$ref": "#/components/schemas/ClientIdScheme"
2435
+ },
2436
+ {
2437
+ "type": "string",
2438
+ "const": "did"
2439
+ },
2440
+ {
2441
+ "type": "string"
2442
+ }
2443
+ ]
2444
+ }
2445
+ },
2446
+ "required": [
2447
+ "identifier"
2448
+ ]
2449
+ },
2450
+ {
2451
+ "type": "object",
2452
+ "properties": {
2453
+ "method": {
2454
+ "type": "string",
2455
+ "const": "key"
2456
+ },
2457
+ "identifier": {
2458
+ "$ref": "#/components/schemas/ManagedIdentifierType"
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
+ ]
1066
2485
  }
1067
2486
  },
1068
2487
  "required": [
@@ -1074,7 +2493,7 @@
1074
2493
  "properties": {
1075
2494
  "method": {
1076
2495
  "type": "string",
1077
- "const": "key"
2496
+ "const": "cose_key"
1078
2497
  },
1079
2498
  "identifier": {
1080
2499
  "$ref": "#/components/schemas/ManagedIdentifierType"
@@ -1087,6 +2506,23 @@
1087
2506
  },
1088
2507
  "kid": {
1089
2508
  "type": "string"
2509
+ },
2510
+ "clientId": {
2511
+ "type": "string"
2512
+ },
2513
+ "clientIdScheme": {
2514
+ "anyOf": [
2515
+ {
2516
+ "$ref": "#/components/schemas/ClientIdScheme"
2517
+ },
2518
+ {
2519
+ "type": "string",
2520
+ "const": "did"
2521
+ },
2522
+ {
2523
+ "type": "string"
2524
+ }
2525
+ ]
1090
2526
  }
1091
2527
  },
1092
2528
  "required": [
@@ -1114,6 +2550,9 @@
1114
2550
  },
1115
2551
  {
1116
2552
  "$ref": "#/components/schemas/IKey"
2553
+ },
2554
+ {
2555
+ "$ref": "#/components/schemas/ICoseKeyJson"
1117
2556
  }
1118
2557
  ],
1119
2558
  "description": "Use whenever we need to pass in an identifier. We can pass in kids, DIDs, IIdentifier objects and x5chains\n\nThe functions below can be used to check the type, and they also provide the proper 'runtime' types"
@@ -1305,6 +2744,26 @@
1305
2744
  "issuer": {
1306
2745
  "type": "string"
1307
2746
  },
2747
+ "clientId": {
2748
+ "type": "string"
2749
+ },
2750
+ "clientIdScheme": {
2751
+ "anyOf": [
2752
+ {
2753
+ "$ref": "#/components/schemas/ClientIdScheme"
2754
+ },
2755
+ {
2756
+ "type": "string",
2757
+ "const": "did"
2758
+ },
2759
+ {
2760
+ "type": "string"
2761
+ }
2762
+ ]
2763
+ },
2764
+ "identifier": {
2765
+ "$ref": "#/components/schemas/ManagedIdentifierType"
2766
+ },
1308
2767
  "x5c": {
1309
2768
  "type": "array",
1310
2769
  "items": {
@@ -1315,6 +2774,7 @@
1315
2774
  },
1316
2775
  "required": [
1317
2776
  "certificate",
2777
+ "identifier",
1318
2778
  "jwk",
1319
2779
  "jwkThumbprint",
1320
2780
  "key",
@@ -1351,8 +2811,25 @@
1351
2811
  "issuer": {
1352
2812
  "type": "string"
1353
2813
  },
2814
+ "clientId": {
2815
+ "type": "string"
2816
+ },
2817
+ "clientIdScheme": {
2818
+ "anyOf": [
2819
+ {
2820
+ "$ref": "#/components/schemas/ClientIdScheme"
2821
+ },
2822
+ {
2823
+ "type": "string",
2824
+ "const": "did"
2825
+ },
2826
+ {
2827
+ "type": "string"
2828
+ }
2829
+ ]
2830
+ },
1354
2831
  "identifier": {
1355
- "$ref": "#/components/schemas/IIdentifier"
2832
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1356
2833
  },
1357
2834
  "did": {
1358
2835
  "type": "string"
@@ -1410,9 +2887,30 @@
1410
2887
  },
1411
2888
  "issuer": {
1412
2889
  "type": "string"
2890
+ },
2891
+ "clientId": {
2892
+ "type": "string"
2893
+ },
2894
+ "clientIdScheme": {
2895
+ "anyOf": [
2896
+ {
2897
+ "$ref": "#/components/schemas/ClientIdScheme"
2898
+ },
2899
+ {
2900
+ "type": "string",
2901
+ "const": "did"
2902
+ },
2903
+ {
2904
+ "type": "string"
2905
+ }
2906
+ ]
2907
+ },
2908
+ "identifier": {
2909
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1413
2910
  }
1414
2911
  },
1415
2912
  "required": [
2913
+ "identifier",
1416
2914
  "jwk",
1417
2915
  "jwkThumbprint",
1418
2916
  "key",
@@ -1447,9 +2945,30 @@
1447
2945
  },
1448
2946
  "issuer": {
1449
2947
  "type": "string"
2948
+ },
2949
+ "clientId": {
2950
+ "type": "string"
2951
+ },
2952
+ "clientIdScheme": {
2953
+ "anyOf": [
2954
+ {
2955
+ "$ref": "#/components/schemas/ClientIdScheme"
2956
+ },
2957
+ {
2958
+ "type": "string",
2959
+ "const": "did"
2960
+ },
2961
+ {
2962
+ "type": "string"
2963
+ }
2964
+ ]
2965
+ },
2966
+ "identifier": {
2967
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1450
2968
  }
1451
2969
  },
1452
2970
  "required": [
2971
+ "identifier",
1453
2972
  "jwk",
1454
2973
  "jwkThumbprint",
1455
2974
  "key",
@@ -1459,53 +2978,222 @@
1459
2978
  "opts"
1460
2979
  ]
1461
2980
  },
1462
- {
1463
- "type": "object",
1464
- "properties": {
1465
- "jwk": {
1466
- "$ref": "#/components/schemas/JWK"
1467
- },
1468
- "jwkThumbprint": {
1469
- "type": "string"
1470
- },
1471
- "kmsKeyRef": {
1472
- "type": "string"
1473
- },
1474
- "method": {
1475
- "$ref": "#/components/schemas/ManagedIdentifierMethod"
1476
- },
1477
- "opts": {
1478
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
1479
- },
1480
- "key": {
1481
- "$ref": "#/components/schemas/IKey"
2981
+ {
2982
+ "type": "object",
2983
+ "properties": {
2984
+ "jwk": {
2985
+ "$ref": "#/components/schemas/JWK"
2986
+ },
2987
+ "jwkThumbprint": {
2988
+ "type": "string"
2989
+ },
2990
+ "kmsKeyRef": {
2991
+ "type": "string"
2992
+ },
2993
+ "method": {
2994
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
2995
+ },
2996
+ "opts": {
2997
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
2998
+ },
2999
+ "key": {
3000
+ "$ref": "#/components/schemas/IKey"
3001
+ },
3002
+ "kid": {
3003
+ "type": "string"
3004
+ },
3005
+ "issuer": {
3006
+ "type": "string"
3007
+ },
3008
+ "clientId": {
3009
+ "type": "string"
3010
+ },
3011
+ "clientIdScheme": {
3012
+ "anyOf": [
3013
+ {
3014
+ "$ref": "#/components/schemas/ClientIdScheme"
3015
+ },
3016
+ {
3017
+ "type": "string",
3018
+ "const": "did"
3019
+ },
3020
+ {
3021
+ "type": "string"
3022
+ }
3023
+ ]
3024
+ },
3025
+ "identifier": {
3026
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3027
+ }
3028
+ },
3029
+ "required": [
3030
+ "identifier",
3031
+ "jwk",
3032
+ "jwkThumbprint",
3033
+ "key",
3034
+ "kmsKeyRef",
3035
+ "method",
3036
+ "opts"
3037
+ ]
3038
+ },
3039
+ {
3040
+ "type": "object",
3041
+ "properties": {
3042
+ "jwk": {
3043
+ "$ref": "#/components/schemas/JWK"
3044
+ },
3045
+ "jwkThumbprint": {
3046
+ "type": "string"
3047
+ },
3048
+ "kmsKeyRef": {
3049
+ "type": "string"
3050
+ },
3051
+ "method": {
3052
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
3053
+ },
3054
+ "opts": {
3055
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3056
+ },
3057
+ "key": {
3058
+ "$ref": "#/components/schemas/IKey"
3059
+ },
3060
+ "kid": {
3061
+ "type": "string"
3062
+ },
3063
+ "issuer": {
3064
+ "type": "string"
3065
+ },
3066
+ "clientId": {
3067
+ "type": "string"
3068
+ },
3069
+ "clientIdScheme": {
3070
+ "anyOf": [
3071
+ {
3072
+ "$ref": "#/components/schemas/ClientIdScheme"
3073
+ },
3074
+ {
3075
+ "type": "string",
3076
+ "const": "did"
3077
+ },
3078
+ {
3079
+ "type": "string"
3080
+ }
3081
+ ]
3082
+ },
3083
+ "identifier": {
3084
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3085
+ }
3086
+ },
3087
+ "required": [
3088
+ "identifier",
3089
+ "jwk",
3090
+ "jwkThumbprint",
3091
+ "key",
3092
+ "kmsKeyRef",
3093
+ "method",
3094
+ "opts"
3095
+ ]
3096
+ }
3097
+ ]
3098
+ },
3099
+ "ManagedIdentifierCoseKeyOpts": {
3100
+ "type": "object",
3101
+ "properties": {
3102
+ "method": {
3103
+ "type": "string",
3104
+ "const": "cose_key"
3105
+ },
3106
+ "identifier": {
3107
+ "$ref": "#/components/schemas/ManagedIdentifierType"
3108
+ },
3109
+ "kmsKeyRef": {
3110
+ "type": "string"
3111
+ },
3112
+ "issuer": {
3113
+ "type": "string"
3114
+ },
3115
+ "kid": {
3116
+ "type": "string"
3117
+ },
3118
+ "clientId": {
3119
+ "type": "string"
3120
+ },
3121
+ "clientIdScheme": {
3122
+ "anyOf": [
3123
+ {
3124
+ "$ref": "#/components/schemas/ClientIdScheme"
3125
+ },
3126
+ {
3127
+ "type": "string",
3128
+ "const": "did"
3129
+ },
3130
+ {
3131
+ "type": "string"
3132
+ }
3133
+ ]
3134
+ }
3135
+ },
3136
+ "required": [
3137
+ "identifier"
3138
+ ]
3139
+ },
3140
+ "ManagedIdentifierCoseKeyResult": {
3141
+ "type": "object",
3142
+ "properties": {
3143
+ "jwk": {
3144
+ "$ref": "#/components/schemas/JWK"
3145
+ },
3146
+ "jwkThumbprint": {
3147
+ "type": "string"
3148
+ },
3149
+ "kmsKeyRef": {
3150
+ "type": "string"
3151
+ },
3152
+ "method": {
3153
+ "type": "string",
3154
+ "const": "cose_key"
3155
+ },
3156
+ "opts": {
3157
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
3158
+ },
3159
+ "key": {
3160
+ "$ref": "#/components/schemas/IKey"
3161
+ },
3162
+ "kid": {
3163
+ "type": "string"
3164
+ },
3165
+ "issuer": {
3166
+ "type": "string"
3167
+ },
3168
+ "clientId": {
3169
+ "type": "string"
3170
+ },
3171
+ "clientIdScheme": {
3172
+ "anyOf": [
3173
+ {
3174
+ "$ref": "#/components/schemas/ClientIdScheme"
1482
3175
  },
1483
- "kid": {
1484
- "type": "string"
3176
+ {
3177
+ "type": "string",
3178
+ "const": "did"
1485
3179
  },
1486
- "issuer": {
3180
+ {
1487
3181
  "type": "string"
1488
3182
  }
1489
- },
1490
- "required": [
1491
- "jwk",
1492
- "jwkThumbprint",
1493
- "key",
1494
- "kmsKeyRef",
1495
- "method",
1496
- "opts"
1497
3183
  ]
3184
+ },
3185
+ "identifier": {
3186
+ "$ref": "#/components/schemas/ICoseKeyJson"
1498
3187
  }
1499
- ]
1500
- },
1501
- "ManagedIdentifierMethod": {
1502
- "type": "string",
1503
- "enum": [
1504
- "did",
3188
+ },
3189
+ "required": [
3190
+ "identifier",
1505
3191
  "jwk",
1506
- "x5c",
1507
- "kid",
1508
- "key"
3192
+ "jwkThumbprint",
3193
+ "key",
3194
+ "kmsKeyRef",
3195
+ "method",
3196
+ "opts"
1509
3197
  ]
1510
3198
  },
1511
3199
  "ManagedIdentifierDidOpts": {
@@ -1541,6 +3229,23 @@
1541
3229
  },
1542
3230
  "kid": {
1543
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
+ ]
1544
3249
  }
1545
3250
  },
1546
3251
  "required": [
@@ -1575,6 +3280,23 @@
1575
3280
  "issuer": {
1576
3281
  "type": "string"
1577
3282
  },
3283
+ "clientId": {
3284
+ "type": "string"
3285
+ },
3286
+ "clientIdScheme": {
3287
+ "anyOf": [
3288
+ {
3289
+ "$ref": "#/components/schemas/ClientIdScheme"
3290
+ },
3291
+ {
3292
+ "type": "string",
3293
+ "const": "did"
3294
+ },
3295
+ {
3296
+ "type": "string"
3297
+ }
3298
+ ]
3299
+ },
1578
3300
  "identifier": {
1579
3301
  "$ref": "#/components/schemas/IIdentifier"
1580
3302
  },
@@ -1626,6 +3348,23 @@
1626
3348
  },
1627
3349
  "kid": {
1628
3350
  "type": "string"
3351
+ },
3352
+ "clientId": {
3353
+ "type": "string"
3354
+ },
3355
+ "clientIdScheme": {
3356
+ "anyOf": [
3357
+ {
3358
+ "$ref": "#/components/schemas/ClientIdScheme"
3359
+ },
3360
+ {
3361
+ "type": "string",
3362
+ "const": "did"
3363
+ },
3364
+ {
3365
+ "type": "string"
3366
+ }
3367
+ ]
1629
3368
  }
1630
3369
  },
1631
3370
  "required": [
@@ -1659,9 +3398,30 @@
1659
3398
  },
1660
3399
  "issuer": {
1661
3400
  "type": "string"
3401
+ },
3402
+ "clientId": {
3403
+ "type": "string"
3404
+ },
3405
+ "clientIdScheme": {
3406
+ "anyOf": [
3407
+ {
3408
+ "$ref": "#/components/schemas/ClientIdScheme"
3409
+ },
3410
+ {
3411
+ "type": "string",
3412
+ "const": "did"
3413
+ },
3414
+ {
3415
+ "type": "string"
3416
+ }
3417
+ ]
3418
+ },
3419
+ "identifier": {
3420
+ "$ref": "#/components/schemas/JWK"
1662
3421
  }
1663
3422
  },
1664
3423
  "required": [
3424
+ "identifier",
1665
3425
  "jwk",
1666
3426
  "jwkThumbprint",
1667
3427
  "key",
@@ -1688,6 +3448,23 @@
1688
3448
  },
1689
3449
  "kid": {
1690
3450
  "type": "string"
3451
+ },
3452
+ "clientId": {
3453
+ "type": "string"
3454
+ },
3455
+ "clientIdScheme": {
3456
+ "anyOf": [
3457
+ {
3458
+ "$ref": "#/components/schemas/ClientIdScheme"
3459
+ },
3460
+ {
3461
+ "type": "string",
3462
+ "const": "did"
3463
+ },
3464
+ {
3465
+ "type": "string"
3466
+ }
3467
+ ]
1691
3468
  }
1692
3469
  },
1693
3470
  "required": [
@@ -1721,9 +3498,30 @@
1721
3498
  },
1722
3499
  "issuer": {
1723
3500
  "type": "string"
3501
+ },
3502
+ "clientId": {
3503
+ "type": "string"
3504
+ },
3505
+ "clientIdScheme": {
3506
+ "anyOf": [
3507
+ {
3508
+ "$ref": "#/components/schemas/ClientIdScheme"
3509
+ },
3510
+ {
3511
+ "type": "string",
3512
+ "const": "did"
3513
+ },
3514
+ {
3515
+ "type": "string"
3516
+ }
3517
+ ]
3518
+ },
3519
+ "identifier": {
3520
+ "$ref": "#/components/schemas/IKey"
1724
3521
  }
1725
3522
  },
1726
3523
  "required": [
3524
+ "identifier",
1727
3525
  "jwk",
1728
3526
  "jwkThumbprint",
1729
3527
  "key",
@@ -1750,6 +3548,23 @@
1750
3548
  },
1751
3549
  "kid": {
1752
3550
  "type": "string"
3551
+ },
3552
+ "clientId": {
3553
+ "type": "string"
3554
+ },
3555
+ "clientIdScheme": {
3556
+ "anyOf": [
3557
+ {
3558
+ "$ref": "#/components/schemas/ClientIdScheme"
3559
+ },
3560
+ {
3561
+ "type": "string",
3562
+ "const": "did"
3563
+ },
3564
+ {
3565
+ "type": "string"
3566
+ }
3567
+ ]
1753
3568
  }
1754
3569
  },
1755
3570
  "required": [
@@ -1783,9 +3598,30 @@
1783
3598
  },
1784
3599
  "issuer": {
1785
3600
  "type": "string"
3601
+ },
3602
+ "clientId": {
3603
+ "type": "string"
3604
+ },
3605
+ "clientIdScheme": {
3606
+ "anyOf": [
3607
+ {
3608
+ "$ref": "#/components/schemas/ClientIdScheme"
3609
+ },
3610
+ {
3611
+ "type": "string",
3612
+ "const": "did"
3613
+ },
3614
+ {
3615
+ "type": "string"
3616
+ }
3617
+ ]
3618
+ },
3619
+ "identifier": {
3620
+ "type": "string"
1786
3621
  }
1787
3622
  },
1788
3623
  "required": [
3624
+ "identifier",
1789
3625
  "jwk",
1790
3626
  "jwkThumbprint",
1791
3627
  "key",
@@ -1813,6 +3649,23 @@
1813
3649
  },
1814
3650
  "kid": {
1815
3651
  "type": "string"
3652
+ },
3653
+ "clientId": {
3654
+ "type": "string"
3655
+ },
3656
+ "clientIdScheme": {
3657
+ "anyOf": [
3658
+ {
3659
+ "$ref": "#/components/schemas/ClientIdScheme"
3660
+ },
3661
+ {
3662
+ "type": "string",
3663
+ "const": "did"
3664
+ },
3665
+ {
3666
+ "type": "string"
3667
+ }
3668
+ ]
1816
3669
  }
1817
3670
  },
1818
3671
  "required": [
@@ -1847,6 +3700,29 @@
1847
3700
  "issuer": {
1848
3701
  "type": "string"
1849
3702
  },
3703
+ "clientId": {
3704
+ "type": "string"
3705
+ },
3706
+ "clientIdScheme": {
3707
+ "anyOf": [
3708
+ {
3709
+ "$ref": "#/components/schemas/ClientIdScheme"
3710
+ },
3711
+ {
3712
+ "type": "string",
3713
+ "const": "did"
3714
+ },
3715
+ {
3716
+ "type": "string"
3717
+ }
3718
+ ]
3719
+ },
3720
+ "identifier": {
3721
+ "type": "array",
3722
+ "items": {
3723
+ "type": "string"
3724
+ }
3725
+ },
1850
3726
  "x5c": {
1851
3727
  "type": "array",
1852
3728
  "items": {
@@ -1857,6 +3733,7 @@
1857
3733
  },
1858
3734
  "required": [
1859
3735
  "certificate",
3736
+ "identifier",
1860
3737
  "jwk",
1861
3738
  "jwkThumbprint",
1862
3739
  "key",
@@ -1865,16 +3742,6 @@
1865
3742
  "opts",
1866
3743
  "x5c"
1867
3744
  ]
1868
- },
1869
- "ManagedIdentifierOptsOrResult": {
1870
- "anyOf": [
1871
- {
1872
- "$ref": "#/components/schemas/ManagedIdentifierResult"
1873
- },
1874
- {
1875
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
1876
- }
1877
- ]
1878
3745
  }
1879
3746
  },
1880
3747
  "methods": {
@@ -1887,6 +3754,15 @@
1887
3754
  "$ref": "#/components/schemas/ExternalIdentifierResult"
1888
3755
  }
1889
3756
  },
3757
+ "identifierExternalResolveByCoseKey": {
3758
+ "description": "",
3759
+ "arguments": {
3760
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyOpts"
3761
+ },
3762
+ "returnType": {
3763
+ "$ref": "#/components/schemas/ExternalIdentifierCoseKeyResult"
3764
+ }
3765
+ },
1890
3766
  "identifierExternalResolveByDid": {
1891
3767
  "description": "",
1892
3768
  "arguments": {
@@ -1896,6 +3772,15 @@
1896
3772
  "$ref": "#/components/schemas/ExternalIdentifierDidResult"
1897
3773
  }
1898
3774
  },
3775
+ "identifierExternalResolveByJwk": {
3776
+ "description": "",
3777
+ "arguments": {
3778
+ "$ref": "#/components/schemas/ExternalIdentifierJwkOpts"
3779
+ },
3780
+ "returnType": {
3781
+ "$ref": "#/components/schemas/ExternalIdentifierJwkResult"
3782
+ }
3783
+ },
1899
3784
  "identifierExternalResolveByX5c": {
1900
3785
  "description": "",
1901
3786
  "arguments": {
@@ -1908,12 +3793,21 @@
1908
3793
  "identifierManagedGet": {
1909
3794
  "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",
1910
3795
  "arguments": {
1911
- "$ref": "#/components/schemas/ManagedIdentifierOpts"
3796
+ "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
1912
3797
  },
1913
3798
  "returnType": {
1914
3799
  "$ref": "#/components/schemas/ManagedIdentifierResult"
1915
3800
  }
1916
3801
  },
3802
+ "identifierManagedGetByCoseKey": {
3803
+ "description": "",
3804
+ "arguments": {
3805
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyOpts"
3806
+ },
3807
+ "returnType": {
3808
+ "$ref": "#/components/schemas/ManagedIdentifierCoseKeyResult"
3809
+ }
3810
+ },
1917
3811
  "identifierManagedGetByDid": {
1918
3812
  "description": "",
1919
3813
  "arguments": {
@@ -1958,15 +3852,6 @@
1958
3852
  "returnType": {
1959
3853
  "$ref": "#/components/schemas/ManagedIdentifierX5cResult"
1960
3854
  }
1961
- },
1962
- "identifierManagedLazyResult": {
1963
- "description": "Allows to get a managed identifier result in case identifier options are passed in, but returns the identifier directly in case results are passed in. This means resolution can have happened before, or happens in this method",
1964
- "arguments": {
1965
- "$ref": "#/components/schemas/ManagedIdentifierOptsOrResult"
1966
- },
1967
- "returnType": {
1968
- "$ref": "#/components/schemas/ManagedIdentifierResult"
1969
- }
1970
3855
  }
1971
3856
  }
1972
3857
  }