@sphereon/ssi-sdk-ext.jwt-service 0.24.1-unstable.85

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.
@@ -0,0 +1,1427 @@
1
+ {
2
+ "IJwtService": {
3
+ "components": {
4
+ "schemas": {
5
+ "CreateJwsCompactArgs": {
6
+ "$ref": "#/components/schemas/CreateJwsArgs"
7
+ },
8
+ "CreateJwsArgs": {
9
+ "type": "object",
10
+ "properties": {
11
+ "mode": {
12
+ "$ref": "#/components/schemas/CreateJwsMode"
13
+ },
14
+ "issuer": {
15
+ "anyOf": [
16
+ {
17
+ "type": "object",
18
+ "properties": {
19
+ "noIssPayloadUpdate": {
20
+ "type": "boolean"
21
+ },
22
+ "noIdentifierInHeader": {
23
+ "type": "boolean"
24
+ },
25
+ "method": {
26
+ "type": "string",
27
+ "const": "jwk"
28
+ },
29
+ "identifier": {
30
+ "$ref": "#/components/schemas/ManagedIdentifierType"
31
+ },
32
+ "kmsKeyRef": {
33
+ "type": "string"
34
+ },
35
+ "issuer": {
36
+ "type": "string"
37
+ },
38
+ "kid": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "required": [
43
+ "identifier"
44
+ ]
45
+ },
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "noIssPayloadUpdate": {
50
+ "type": "boolean"
51
+ },
52
+ "noIdentifierInHeader": {
53
+ "type": "boolean"
54
+ },
55
+ "method": {
56
+ "type": "string",
57
+ "const": "x5c"
58
+ },
59
+ "identifier": {
60
+ "$ref": "#/components/schemas/ManagedIdentifierType"
61
+ },
62
+ "kmsKeyRef": {
63
+ "type": "string"
64
+ },
65
+ "issuer": {
66
+ "type": "string"
67
+ },
68
+ "kid": {
69
+ "type": "string"
70
+ }
71
+ },
72
+ "required": [
73
+ "identifier"
74
+ ]
75
+ },
76
+ {
77
+ "type": "object",
78
+ "properties": {
79
+ "noIssPayloadUpdate": {
80
+ "type": "boolean"
81
+ },
82
+ "noIdentifierInHeader": {
83
+ "type": "boolean"
84
+ },
85
+ "method": {
86
+ "type": "string",
87
+ "const": "did"
88
+ },
89
+ "identifier": {
90
+ "$ref": "#/components/schemas/ManagedIdentifierType"
91
+ },
92
+ "kmsKeyRef": {
93
+ "type": "string"
94
+ },
95
+ "issuer": {
96
+ "type": "string"
97
+ },
98
+ "kid": {
99
+ "type": "string"
100
+ },
101
+ "keyType": {
102
+ "$ref": "#/components/schemas/TKeyType"
103
+ },
104
+ "offlineWhenNoDIDRegistered": {
105
+ "type": "boolean"
106
+ },
107
+ "noVerificationMethodFallback": {
108
+ "type": "boolean"
109
+ },
110
+ "controllerKey": {
111
+ "type": "boolean"
112
+ },
113
+ "vmRelationship": {
114
+ "$ref": "#/components/schemas/DIDDocumentSection"
115
+ }
116
+ },
117
+ "required": [
118
+ "identifier"
119
+ ]
120
+ },
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "noIssPayloadUpdate": {
125
+ "type": "boolean"
126
+ },
127
+ "noIdentifierInHeader": {
128
+ "type": "boolean"
129
+ },
130
+ "method": {
131
+ "type": "string",
132
+ "const": "kid"
133
+ },
134
+ "identifier": {
135
+ "$ref": "#/components/schemas/ManagedIdentifierType"
136
+ },
137
+ "kmsKeyRef": {
138
+ "type": "string"
139
+ },
140
+ "issuer": {
141
+ "type": "string"
142
+ },
143
+ "kid": {
144
+ "type": "string"
145
+ }
146
+ },
147
+ "required": [
148
+ "identifier"
149
+ ]
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "noIssPayloadUpdate": {
155
+ "type": "boolean"
156
+ },
157
+ "noIdentifierInHeader": {
158
+ "type": "boolean"
159
+ },
160
+ "method": {
161
+ "type": "string",
162
+ "const": "key"
163
+ },
164
+ "identifier": {
165
+ "$ref": "#/components/schemas/ManagedIdentifierType"
166
+ },
167
+ "kmsKeyRef": {
168
+ "type": "string"
169
+ },
170
+ "issuer": {
171
+ "type": "string"
172
+ },
173
+ "kid": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "required": [
178
+ "identifier"
179
+ ]
180
+ }
181
+ ]
182
+ },
183
+ "protectedHeader": {
184
+ "$ref": "#/components/schemas/JwtHeader"
185
+ },
186
+ "payload": {
187
+ "anyOf": [
188
+ {
189
+ "$ref": "#/components/schemas/JwtPayload"
190
+ },
191
+ {
192
+ "type": "object",
193
+ "properties": {
194
+ "BYTES_PER_ELEMENT": {
195
+ "type": "number"
196
+ },
197
+ "buffer": {
198
+ "anyOf": [
199
+ {
200
+ "type": "object",
201
+ "properties": {
202
+ "byteLength": {
203
+ "type": "number"
204
+ }
205
+ },
206
+ "required": [
207
+ "byteLength"
208
+ ]
209
+ },
210
+ {}
211
+ ]
212
+ },
213
+ "byteLength": {
214
+ "type": "number"
215
+ },
216
+ "byteOffset": {
217
+ "type": "number"
218
+ },
219
+ "length": {
220
+ "type": "number"
221
+ }
222
+ },
223
+ "required": [
224
+ "BYTES_PER_ELEMENT",
225
+ "buffer",
226
+ "byteLength",
227
+ "byteOffset",
228
+ "length"
229
+ ],
230
+ "additionalProperties": {
231
+ "type": "number"
232
+ }
233
+ },
234
+ {
235
+ "type": "string"
236
+ }
237
+ ]
238
+ }
239
+ },
240
+ "required": [
241
+ "issuer",
242
+ "protectedHeader",
243
+ "payload"
244
+ ]
245
+ },
246
+ "CreateJwsMode": {
247
+ "type": "string",
248
+ "enum": [
249
+ "x5c",
250
+ "kid",
251
+ "jwk",
252
+ "did",
253
+ "auto"
254
+ ]
255
+ },
256
+ "ManagedIdentifierType": {
257
+ "anyOf": [
258
+ {
259
+ "$ref": "#/components/schemas/IIdentifier"
260
+ },
261
+ {
262
+ "type": "string"
263
+ },
264
+ {
265
+ "type": "array",
266
+ "items": {
267
+ "type": "string"
268
+ }
269
+ },
270
+ {
271
+ "$ref": "#/components/schemas/JWK"
272
+ },
273
+ {
274
+ "$ref": "#/components/schemas/IKey"
275
+ }
276
+ ],
277
+ "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"
278
+ },
279
+ "IIdentifier": {
280
+ "type": "object",
281
+ "properties": {
282
+ "did": {
283
+ "type": "string",
284
+ "description": "Decentralized identifier"
285
+ },
286
+ "alias": {
287
+ "type": "string",
288
+ "description": "Optional. Identifier alias. Can be used to reference an object in an external system"
289
+ },
290
+ "provider": {
291
+ "type": "string",
292
+ "description": "Identifier provider name"
293
+ },
294
+ "controllerKeyId": {
295
+ "type": "string",
296
+ "description": "Controller key id"
297
+ },
298
+ "keys": {
299
+ "type": "array",
300
+ "items": {
301
+ "$ref": "#/components/schemas/IKey"
302
+ },
303
+ "description": "Array of managed keys"
304
+ },
305
+ "services": {
306
+ "type": "array",
307
+ "items": {
308
+ "$ref": "#/components/schemas/IService"
309
+ },
310
+ "description": "Array of services"
311
+ }
312
+ },
313
+ "required": [
314
+ "did",
315
+ "provider",
316
+ "keys",
317
+ "services"
318
+ ],
319
+ "description": "Identifier interface"
320
+ },
321
+ "IKey": {
322
+ "type": "object",
323
+ "properties": {
324
+ "kid": {
325
+ "type": "string",
326
+ "description": "Key ID"
327
+ },
328
+ "kms": {
329
+ "type": "string",
330
+ "description": "Key Management System"
331
+ },
332
+ "type": {
333
+ "$ref": "#/components/schemas/TKeyType",
334
+ "description": "Key type"
335
+ },
336
+ "publicKeyHex": {
337
+ "type": "string",
338
+ "description": "Public key"
339
+ },
340
+ "privateKeyHex": {
341
+ "type": "string",
342
+ "description": "Optional. Private key"
343
+ },
344
+ "meta": {
345
+ "anyOf": [
346
+ {
347
+ "$ref": "#/components/schemas/KeyMetadata"
348
+ },
349
+ {
350
+ "type": "null"
351
+ }
352
+ ],
353
+ "description": "Optional. Key metadata. This should be used to determine which algorithms are supported."
354
+ }
355
+ },
356
+ "required": [
357
+ "kid",
358
+ "kms",
359
+ "type",
360
+ "publicKeyHex"
361
+ ],
362
+ "description": "Cryptographic key"
363
+ },
364
+ "TKeyType": {
365
+ "type": "string",
366
+ "enum": [
367
+ "Ed25519",
368
+ "Secp256k1",
369
+ "Secp256r1",
370
+ "X25519",
371
+ "Bls12381G1",
372
+ "Bls12381G2",
373
+ "RSA"
374
+ ],
375
+ "description": "Cryptographic key type."
376
+ },
377
+ "KeyMetadata": {
378
+ "type": "object",
379
+ "properties": {
380
+ "algorithms": {
381
+ "type": "array",
382
+ "items": {
383
+ "type": "string"
384
+ }
385
+ }
386
+ },
387
+ "description": "This encapsulates data about a key.\n\nImplementations of {@link @veramo/key-manager#AbstractKeyManagementSystem | AbstractKeyManagementSystem } should populate this object, for each key, with the algorithms that can be performed using it.\n\nThis can also be used to add various tags to the keys under management."
388
+ },
389
+ "IService": {
390
+ "type": "object",
391
+ "properties": {
392
+ "id": {
393
+ "type": "string",
394
+ "description": "ID"
395
+ },
396
+ "type": {
397
+ "type": "string",
398
+ "description": "Service type"
399
+ },
400
+ "serviceEndpoint": {
401
+ "anyOf": [
402
+ {
403
+ "$ref": "#/components/schemas/IServiceEndpoint"
404
+ },
405
+ {
406
+ "type": "array",
407
+ "items": {
408
+ "$ref": "#/components/schemas/IServiceEndpoint"
409
+ }
410
+ }
411
+ ],
412
+ "description": "Endpoint URL"
413
+ },
414
+ "description": {
415
+ "type": "string",
416
+ "description": "Optional. Description"
417
+ }
418
+ },
419
+ "required": [
420
+ "id",
421
+ "type",
422
+ "serviceEndpoint"
423
+ ],
424
+ "description": "Identifier service"
425
+ },
426
+ "IServiceEndpoint": {
427
+ "anyOf": [
428
+ {
429
+ "type": "string"
430
+ },
431
+ {
432
+ "type": "object"
433
+ }
434
+ ],
435
+ "description": "Represents a service endpoint URL or a map of URLs"
436
+ },
437
+ "JWK": {
438
+ "type": "object",
439
+ "properties": {
440
+ "kty": {
441
+ "type": "string"
442
+ },
443
+ "crv": {
444
+ "type": "string"
445
+ },
446
+ "x": {
447
+ "type": "string"
448
+ },
449
+ "y": {
450
+ "type": "string"
451
+ },
452
+ "e": {
453
+ "type": "string"
454
+ },
455
+ "n": {
456
+ "type": "string"
457
+ },
458
+ "d": {
459
+ "type": "string"
460
+ },
461
+ "dp": {
462
+ "type": "string"
463
+ },
464
+ "dq": {
465
+ "type": "string"
466
+ },
467
+ "ext": {
468
+ "type": "boolean"
469
+ },
470
+ "k": {
471
+ "type": "string"
472
+ },
473
+ "key_ops": {
474
+ "type": "array",
475
+ "items": {
476
+ "type": "string"
477
+ }
478
+ },
479
+ "kid": {
480
+ "type": "string"
481
+ },
482
+ "oth": {
483
+ "type": "array",
484
+ "items": {
485
+ "type": "object",
486
+ "properties": {
487
+ "d": {
488
+ "type": "string"
489
+ },
490
+ "r": {
491
+ "type": "string"
492
+ },
493
+ "t": {
494
+ "type": "string"
495
+ }
496
+ }
497
+ }
498
+ },
499
+ "p": {
500
+ "type": "string"
501
+ },
502
+ "q": {
503
+ "type": "string"
504
+ },
505
+ "qi": {
506
+ "type": "string"
507
+ },
508
+ "use": {
509
+ "type": "string"
510
+ },
511
+ "x5c": {
512
+ "type": "array",
513
+ "items": {
514
+ "type": "string"
515
+ },
516
+ "description": "JWK \"x5c\" (X.509 Certificate Chain) Parameter."
517
+ },
518
+ "x5t": {
519
+ "type": "string",
520
+ "description": "JWK \"x5t\" (X.509 Certificate SHA-1 Thumbprint) Parameter."
521
+ },
522
+ "x5t#S256": {
523
+ "type": "string",
524
+ "description": "\"x5t#S256\" (X.509 Certificate SHA-256 Thumbprint) Parameter."
525
+ },
526
+ "x5u": {
527
+ "type": "string",
528
+ "description": "JWK \"x5u\" (X.509 URL) Parameter."
529
+ }
530
+ },
531
+ "additionalProperties": {},
532
+ "required": [
533
+ "kty"
534
+ ]
535
+ },
536
+ "DIDDocumentSection": {
537
+ "type": "string",
538
+ "enum": [
539
+ "verificationMethod",
540
+ "publicKey",
541
+ "service",
542
+ "authentication",
543
+ "assertionMethod",
544
+ "keyAgreement",
545
+ "capabilityInvocation",
546
+ "capabilityDelegation"
547
+ ],
548
+ "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 }"
549
+ },
550
+ "JwtHeader": {
551
+ "type": "object",
552
+ "properties": {
553
+ "typ": {
554
+ "type": "string"
555
+ },
556
+ "alg": {
557
+ "type": "string"
558
+ },
559
+ "kid": {
560
+ "type": "string"
561
+ },
562
+ "jwk": {
563
+ "$ref": "#/components/schemas/JWK"
564
+ },
565
+ "x5c": {
566
+ "type": "array",
567
+ "items": {
568
+ "type": "string"
569
+ }
570
+ }
571
+ },
572
+ "additionalProperties": {}
573
+ },
574
+ "JwtPayload": {
575
+ "type": "object",
576
+ "additionalProperties": {},
577
+ "properties": {
578
+ "iss": {
579
+ "type": "string"
580
+ },
581
+ "sub": {
582
+ "type": "string"
583
+ },
584
+ "aud": {
585
+ "anyOf": [
586
+ {
587
+ "type": "array",
588
+ "items": {
589
+ "type": "string"
590
+ }
591
+ },
592
+ {
593
+ "type": "string"
594
+ }
595
+ ]
596
+ },
597
+ "exp": {
598
+ "type": "number"
599
+ },
600
+ "nbf": {
601
+ "type": "number"
602
+ },
603
+ "iat": {
604
+ "type": "number"
605
+ },
606
+ "jti": {
607
+ "type": "string"
608
+ }
609
+ }
610
+ },
611
+ "JwsCompactResult": {
612
+ "type": "object",
613
+ "properties": {
614
+ "jwt": {
615
+ "$ref": "#/components/schemas/JwsCompact"
616
+ }
617
+ },
618
+ "required": [
619
+ "jwt"
620
+ ]
621
+ },
622
+ "JwsCompact": {
623
+ "type": "string"
624
+ },
625
+ "CreateJwsFlattenedArgs": {
626
+ "$ref": "#/components/schemas/CreateJwsJsonArgs"
627
+ },
628
+ "CreateJwsJsonArgs": {
629
+ "type": "object",
630
+ "properties": {
631
+ "unprotectedHeader": {
632
+ "$ref": "#/components/schemas/JwtHeader"
633
+ },
634
+ "existingSignatures": {
635
+ "type": "array",
636
+ "items": {
637
+ "$ref": "#/components/schemas/JwsJsonSignature"
638
+ }
639
+ },
640
+ "mode": {
641
+ "$ref": "#/components/schemas/CreateJwsMode"
642
+ },
643
+ "issuer": {
644
+ "anyOf": [
645
+ {
646
+ "type": "object",
647
+ "properties": {
648
+ "noIssPayloadUpdate": {
649
+ "type": "boolean"
650
+ },
651
+ "noIdentifierInHeader": {
652
+ "type": "boolean"
653
+ },
654
+ "method": {
655
+ "type": "string",
656
+ "const": "jwk"
657
+ },
658
+ "identifier": {
659
+ "$ref": "#/components/schemas/ManagedIdentifierType"
660
+ },
661
+ "kmsKeyRef": {
662
+ "type": "string"
663
+ },
664
+ "issuer": {
665
+ "type": "string"
666
+ },
667
+ "kid": {
668
+ "type": "string"
669
+ }
670
+ },
671
+ "required": [
672
+ "identifier"
673
+ ]
674
+ },
675
+ {
676
+ "type": "object",
677
+ "properties": {
678
+ "noIssPayloadUpdate": {
679
+ "type": "boolean"
680
+ },
681
+ "noIdentifierInHeader": {
682
+ "type": "boolean"
683
+ },
684
+ "method": {
685
+ "type": "string",
686
+ "const": "x5c"
687
+ },
688
+ "identifier": {
689
+ "$ref": "#/components/schemas/ManagedIdentifierType"
690
+ },
691
+ "kmsKeyRef": {
692
+ "type": "string"
693
+ },
694
+ "issuer": {
695
+ "type": "string"
696
+ },
697
+ "kid": {
698
+ "type": "string"
699
+ }
700
+ },
701
+ "required": [
702
+ "identifier"
703
+ ]
704
+ },
705
+ {
706
+ "type": "object",
707
+ "properties": {
708
+ "noIssPayloadUpdate": {
709
+ "type": "boolean"
710
+ },
711
+ "noIdentifierInHeader": {
712
+ "type": "boolean"
713
+ },
714
+ "method": {
715
+ "type": "string",
716
+ "const": "did"
717
+ },
718
+ "identifier": {
719
+ "$ref": "#/components/schemas/ManagedIdentifierType"
720
+ },
721
+ "kmsKeyRef": {
722
+ "type": "string"
723
+ },
724
+ "issuer": {
725
+ "type": "string"
726
+ },
727
+ "kid": {
728
+ "type": "string"
729
+ },
730
+ "keyType": {
731
+ "$ref": "#/components/schemas/TKeyType"
732
+ },
733
+ "offlineWhenNoDIDRegistered": {
734
+ "type": "boolean"
735
+ },
736
+ "noVerificationMethodFallback": {
737
+ "type": "boolean"
738
+ },
739
+ "controllerKey": {
740
+ "type": "boolean"
741
+ },
742
+ "vmRelationship": {
743
+ "$ref": "#/components/schemas/DIDDocumentSection"
744
+ }
745
+ },
746
+ "required": [
747
+ "identifier"
748
+ ]
749
+ },
750
+ {
751
+ "type": "object",
752
+ "properties": {
753
+ "noIssPayloadUpdate": {
754
+ "type": "boolean"
755
+ },
756
+ "noIdentifierInHeader": {
757
+ "type": "boolean"
758
+ },
759
+ "method": {
760
+ "type": "string",
761
+ "const": "kid"
762
+ },
763
+ "identifier": {
764
+ "$ref": "#/components/schemas/ManagedIdentifierType"
765
+ },
766
+ "kmsKeyRef": {
767
+ "type": "string"
768
+ },
769
+ "issuer": {
770
+ "type": "string"
771
+ },
772
+ "kid": {
773
+ "type": "string"
774
+ }
775
+ },
776
+ "required": [
777
+ "identifier"
778
+ ]
779
+ },
780
+ {
781
+ "type": "object",
782
+ "properties": {
783
+ "noIssPayloadUpdate": {
784
+ "type": "boolean"
785
+ },
786
+ "noIdentifierInHeader": {
787
+ "type": "boolean"
788
+ },
789
+ "method": {
790
+ "type": "string",
791
+ "const": "key"
792
+ },
793
+ "identifier": {
794
+ "$ref": "#/components/schemas/ManagedIdentifierType"
795
+ },
796
+ "kmsKeyRef": {
797
+ "type": "string"
798
+ },
799
+ "issuer": {
800
+ "type": "string"
801
+ },
802
+ "kid": {
803
+ "type": "string"
804
+ }
805
+ },
806
+ "required": [
807
+ "identifier"
808
+ ]
809
+ }
810
+ ]
811
+ },
812
+ "protectedHeader": {
813
+ "$ref": "#/components/schemas/JwtHeader"
814
+ },
815
+ "payload": {
816
+ "anyOf": [
817
+ {
818
+ "$ref": "#/components/schemas/JwtPayload"
819
+ },
820
+ {
821
+ "type": "object",
822
+ "properties": {
823
+ "BYTES_PER_ELEMENT": {
824
+ "type": "number"
825
+ },
826
+ "buffer": {
827
+ "anyOf": [
828
+ {
829
+ "type": "object",
830
+ "properties": {
831
+ "byteLength": {
832
+ "type": "number"
833
+ }
834
+ },
835
+ "required": [
836
+ "byteLength"
837
+ ]
838
+ },
839
+ {}
840
+ ]
841
+ },
842
+ "byteLength": {
843
+ "type": "number"
844
+ },
845
+ "byteOffset": {
846
+ "type": "number"
847
+ },
848
+ "length": {
849
+ "type": "number"
850
+ }
851
+ },
852
+ "required": [
853
+ "BYTES_PER_ELEMENT",
854
+ "buffer",
855
+ "byteLength",
856
+ "byteOffset",
857
+ "length"
858
+ ],
859
+ "additionalProperties": {
860
+ "type": "number"
861
+ }
862
+ },
863
+ {
864
+ "type": "string"
865
+ }
866
+ ]
867
+ }
868
+ },
869
+ "required": [
870
+ "issuer",
871
+ "payload",
872
+ "protectedHeader"
873
+ ]
874
+ },
875
+ "JwsJsonSignature": {
876
+ "type": "object",
877
+ "properties": {
878
+ "protected": {
879
+ "type": "string"
880
+ },
881
+ "header": {
882
+ "$ref": "#/components/schemas/JwtHeader"
883
+ },
884
+ "signature": {
885
+ "type": "string"
886
+ }
887
+ },
888
+ "required": [
889
+ "protected",
890
+ "signature"
891
+ ]
892
+ },
893
+ "JwsJsonFlattened": {
894
+ "type": "object",
895
+ "properties": {
896
+ "payload": {
897
+ "type": "string"
898
+ },
899
+ "protected": {
900
+ "type": "string"
901
+ },
902
+ "header": {
903
+ "$ref": "#/components/schemas/JwtHeader"
904
+ },
905
+ "signature": {
906
+ "type": "string"
907
+ }
908
+ },
909
+ "required": [
910
+ "payload",
911
+ "protected",
912
+ "signature"
913
+ ]
914
+ },
915
+ "JwsJsonGeneral": {
916
+ "type": "object",
917
+ "properties": {
918
+ "payload": {
919
+ "type": "string"
920
+ },
921
+ "signatures": {
922
+ "type": "array",
923
+ "items": {
924
+ "$ref": "#/components/schemas/JwsJsonSignature"
925
+ }
926
+ }
927
+ },
928
+ "required": [
929
+ "payload",
930
+ "signatures"
931
+ ]
932
+ },
933
+ "PreparedJwsObject": {
934
+ "type": "object",
935
+ "properties": {
936
+ "jws": {
937
+ "$ref": "#/components/schemas/PreparedJws"
938
+ },
939
+ "b64": {
940
+ "type": "object",
941
+ "properties": {
942
+ "payload": {
943
+ "type": "string"
944
+ },
945
+ "protectedHeader": {
946
+ "type": "string"
947
+ }
948
+ },
949
+ "required": [
950
+ "payload",
951
+ "protectedHeader"
952
+ ]
953
+ },
954
+ "issuer": {
955
+ "$ref": "#/components/schemas/ManagedIdentifierOpts"
956
+ },
957
+ "identifier": {
958
+ "$ref": "#/components/schemas/ManagedIdentifierResult"
959
+ }
960
+ },
961
+ "required": [
962
+ "jws",
963
+ "b64",
964
+ "issuer",
965
+ "identifier"
966
+ ]
967
+ },
968
+ "PreparedJws": {
969
+ "type": "object",
970
+ "properties": {
971
+ "protectedHeader": {
972
+ "$ref": "#/components/schemas/JwtHeader"
973
+ },
974
+ "payload": {
975
+ "type": "object",
976
+ "properties": {
977
+ "BYTES_PER_ELEMENT": {
978
+ "type": "number"
979
+ },
980
+ "buffer": {
981
+ "anyOf": [
982
+ {
983
+ "type": "object",
984
+ "properties": {
985
+ "byteLength": {
986
+ "type": "number"
987
+ }
988
+ },
989
+ "required": [
990
+ "byteLength"
991
+ ]
992
+ },
993
+ {}
994
+ ]
995
+ },
996
+ "byteLength": {
997
+ "type": "number"
998
+ },
999
+ "byteOffset": {
1000
+ "type": "number"
1001
+ },
1002
+ "length": {
1003
+ "type": "number"
1004
+ }
1005
+ },
1006
+ "required": [
1007
+ "BYTES_PER_ELEMENT",
1008
+ "buffer",
1009
+ "byteLength",
1010
+ "byteOffset",
1011
+ "length"
1012
+ ],
1013
+ "additionalProperties": {
1014
+ "type": "number"
1015
+ }
1016
+ },
1017
+ "unprotectedHeader": {
1018
+ "$ref": "#/components/schemas/JwtHeader"
1019
+ },
1020
+ "existingSignatures": {
1021
+ "type": "array",
1022
+ "items": {
1023
+ "$ref": "#/components/schemas/JwsJsonSignature"
1024
+ }
1025
+ }
1026
+ },
1027
+ "required": [
1028
+ "protectedHeader",
1029
+ "payload"
1030
+ ]
1031
+ },
1032
+ "ManagedIdentifierOpts": {
1033
+ "anyOf": [
1034
+ {
1035
+ "type": "object",
1036
+ "properties": {
1037
+ "method": {
1038
+ "type": "string",
1039
+ "const": "jwk"
1040
+ },
1041
+ "identifier": {
1042
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1043
+ },
1044
+ "kmsKeyRef": {
1045
+ "type": "string"
1046
+ },
1047
+ "issuer": {
1048
+ "type": "string"
1049
+ },
1050
+ "kid": {
1051
+ "type": "string"
1052
+ }
1053
+ },
1054
+ "required": [
1055
+ "identifier"
1056
+ ]
1057
+ },
1058
+ {
1059
+ "type": "object",
1060
+ "properties": {
1061
+ "method": {
1062
+ "type": "string",
1063
+ "const": "x5c"
1064
+ },
1065
+ "identifier": {
1066
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1067
+ },
1068
+ "kmsKeyRef": {
1069
+ "type": "string"
1070
+ },
1071
+ "issuer": {
1072
+ "type": "string"
1073
+ },
1074
+ "kid": {
1075
+ "type": "string"
1076
+ }
1077
+ },
1078
+ "required": [
1079
+ "identifier"
1080
+ ]
1081
+ },
1082
+ {
1083
+ "type": "object",
1084
+ "properties": {
1085
+ "method": {
1086
+ "type": "string",
1087
+ "const": "did"
1088
+ },
1089
+ "identifier": {
1090
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1091
+ },
1092
+ "kmsKeyRef": {
1093
+ "type": "string"
1094
+ },
1095
+ "issuer": {
1096
+ "type": "string"
1097
+ },
1098
+ "kid": {
1099
+ "type": "string"
1100
+ },
1101
+ "keyType": {
1102
+ "$ref": "#/components/schemas/TKeyType"
1103
+ },
1104
+ "offlineWhenNoDIDRegistered": {
1105
+ "type": "boolean"
1106
+ },
1107
+ "noVerificationMethodFallback": {
1108
+ "type": "boolean"
1109
+ },
1110
+ "controllerKey": {
1111
+ "type": "boolean"
1112
+ },
1113
+ "vmRelationship": {
1114
+ "$ref": "#/components/schemas/DIDDocumentSection"
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "identifier"
1119
+ ]
1120
+ },
1121
+ {
1122
+ "type": "object",
1123
+ "properties": {
1124
+ "method": {
1125
+ "type": "string",
1126
+ "const": "kid"
1127
+ },
1128
+ "identifier": {
1129
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1130
+ },
1131
+ "kmsKeyRef": {
1132
+ "type": "string"
1133
+ },
1134
+ "issuer": {
1135
+ "type": "string"
1136
+ },
1137
+ "kid": {
1138
+ "type": "string"
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "identifier"
1143
+ ]
1144
+ },
1145
+ {
1146
+ "type": "object",
1147
+ "properties": {
1148
+ "method": {
1149
+ "type": "string",
1150
+ "const": "key"
1151
+ },
1152
+ "identifier": {
1153
+ "$ref": "#/components/schemas/ManagedIdentifierType"
1154
+ },
1155
+ "kmsKeyRef": {
1156
+ "type": "string"
1157
+ },
1158
+ "issuer": {
1159
+ "type": "string"
1160
+ },
1161
+ "kid": {
1162
+ "type": "string"
1163
+ }
1164
+ },
1165
+ "required": [
1166
+ "identifier"
1167
+ ]
1168
+ }
1169
+ ]
1170
+ },
1171
+ "ManagedIdentifierResult": {
1172
+ "anyOf": [
1173
+ {
1174
+ "type": "object",
1175
+ "properties": {
1176
+ "jwk": {
1177
+ "$ref": "#/components/schemas/JWK"
1178
+ },
1179
+ "jwkThumbprint": {
1180
+ "type": "string"
1181
+ },
1182
+ "kmsKeyRef": {
1183
+ "type": "string"
1184
+ },
1185
+ "method": {
1186
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1187
+ },
1188
+ "key": {
1189
+ "$ref": "#/components/schemas/IKey"
1190
+ },
1191
+ "kid": {
1192
+ "type": "string"
1193
+ },
1194
+ "issuer": {
1195
+ "type": "string"
1196
+ },
1197
+ "x5c": {
1198
+ "type": "array",
1199
+ "items": {
1200
+ "type": "string"
1201
+ }
1202
+ },
1203
+ "certificate": {}
1204
+ },
1205
+ "required": [
1206
+ "certificate",
1207
+ "jwk",
1208
+ "jwkThumbprint",
1209
+ "key",
1210
+ "kmsKeyRef",
1211
+ "method",
1212
+ "x5c"
1213
+ ]
1214
+ },
1215
+ {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "jwk": {
1219
+ "$ref": "#/components/schemas/JWK"
1220
+ },
1221
+ "jwkThumbprint": {
1222
+ "type": "string"
1223
+ },
1224
+ "kmsKeyRef": {
1225
+ "type": "string"
1226
+ },
1227
+ "method": {
1228
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1229
+ },
1230
+ "key": {
1231
+ "$ref": "#/components/schemas/IKey"
1232
+ },
1233
+ "kid": {
1234
+ "type": "string"
1235
+ },
1236
+ "issuer": {
1237
+ "type": "string"
1238
+ },
1239
+ "identifier": {
1240
+ "$ref": "#/components/schemas/IIdentifier"
1241
+ },
1242
+ "did": {
1243
+ "type": "string"
1244
+ },
1245
+ "keys": {
1246
+ "type": "array",
1247
+ "items": {
1248
+ "$ref": "#/components/schemas/IKey"
1249
+ }
1250
+ },
1251
+ "verificationMethodSection": {
1252
+ "$ref": "#/components/schemas/DIDDocumentSection"
1253
+ },
1254
+ "controllerKeyId": {
1255
+ "type": "string"
1256
+ }
1257
+ },
1258
+ "required": [
1259
+ "did",
1260
+ "identifier",
1261
+ "issuer",
1262
+ "jwk",
1263
+ "jwkThumbprint",
1264
+ "key",
1265
+ "keys",
1266
+ "kid",
1267
+ "kmsKeyRef",
1268
+ "method"
1269
+ ]
1270
+ },
1271
+ {
1272
+ "type": "object",
1273
+ "properties": {
1274
+ "jwk": {
1275
+ "$ref": "#/components/schemas/JWK"
1276
+ },
1277
+ "jwkThumbprint": {
1278
+ "type": "string"
1279
+ },
1280
+ "kmsKeyRef": {
1281
+ "type": "string"
1282
+ },
1283
+ "method": {
1284
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1285
+ },
1286
+ "key": {
1287
+ "$ref": "#/components/schemas/IKey"
1288
+ },
1289
+ "kid": {
1290
+ "type": "string"
1291
+ },
1292
+ "issuer": {
1293
+ "type": "string"
1294
+ }
1295
+ },
1296
+ "required": [
1297
+ "jwk",
1298
+ "jwkThumbprint",
1299
+ "key",
1300
+ "kmsKeyRef",
1301
+ "method"
1302
+ ]
1303
+ },
1304
+ {
1305
+ "type": "object",
1306
+ "properties": {
1307
+ "jwk": {
1308
+ "$ref": "#/components/schemas/JWK"
1309
+ },
1310
+ "jwkThumbprint": {
1311
+ "type": "string"
1312
+ },
1313
+ "kmsKeyRef": {
1314
+ "type": "string"
1315
+ },
1316
+ "method": {
1317
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1318
+ },
1319
+ "key": {
1320
+ "$ref": "#/components/schemas/IKey"
1321
+ },
1322
+ "kid": {
1323
+ "type": "string"
1324
+ },
1325
+ "issuer": {
1326
+ "type": "string"
1327
+ }
1328
+ },
1329
+ "required": [
1330
+ "issuer",
1331
+ "jwk",
1332
+ "jwkThumbprint",
1333
+ "key",
1334
+ "kid",
1335
+ "kmsKeyRef",
1336
+ "method"
1337
+ ]
1338
+ },
1339
+ {
1340
+ "type": "object",
1341
+ "properties": {
1342
+ "jwk": {
1343
+ "$ref": "#/components/schemas/JWK"
1344
+ },
1345
+ "jwkThumbprint": {
1346
+ "type": "string"
1347
+ },
1348
+ "kmsKeyRef": {
1349
+ "type": "string"
1350
+ },
1351
+ "method": {
1352
+ "$ref": "#/components/schemas/ManagedIdentifierMethod"
1353
+ },
1354
+ "key": {
1355
+ "$ref": "#/components/schemas/IKey"
1356
+ },
1357
+ "kid": {
1358
+ "type": "string"
1359
+ },
1360
+ "issuer": {
1361
+ "type": "string"
1362
+ }
1363
+ },
1364
+ "required": [
1365
+ "issuer",
1366
+ "jwk",
1367
+ "jwkThumbprint",
1368
+ "key",
1369
+ "kid",
1370
+ "kmsKeyRef",
1371
+ "method"
1372
+ ]
1373
+ }
1374
+ ]
1375
+ },
1376
+ "ManagedIdentifierMethod": {
1377
+ "type": "string",
1378
+ "enum": [
1379
+ "did",
1380
+ "jwk",
1381
+ "x5c",
1382
+ "kid",
1383
+ "key"
1384
+ ]
1385
+ }
1386
+ },
1387
+ "methods": {
1388
+ "jwtCreateJwsCompactSignature": {
1389
+ "description": "",
1390
+ "arguments": {
1391
+ "$ref": "#/components/schemas/CreateJwsCompactArgs"
1392
+ },
1393
+ "returnType": {
1394
+ "$ref": "#/components/schemas/JwsCompactResult"
1395
+ }
1396
+ },
1397
+ "jwtCreateJwsJsonFlattenedSignature": {
1398
+ "description": "",
1399
+ "arguments": {
1400
+ "$ref": "#/components/schemas/CreateJwsFlattenedArgs"
1401
+ },
1402
+ "returnType": {
1403
+ "$ref": "#/components/schemas/JwsJsonFlattened"
1404
+ }
1405
+ },
1406
+ "jwtCreateJwsJsonGeneralSignature": {
1407
+ "description": "",
1408
+ "arguments": {
1409
+ "$ref": "#/components/schemas/CreateJwsJsonArgs"
1410
+ },
1411
+ "returnType": {
1412
+ "$ref": "#/components/schemas/JwsJsonGeneral"
1413
+ }
1414
+ },
1415
+ "jwtPrepareJws": {
1416
+ "description": "",
1417
+ "arguments": {
1418
+ "$ref": "#/components/schemas/CreateJwsJsonArgs"
1419
+ },
1420
+ "returnType": {
1421
+ "$ref": "#/components/schemas/PreparedJwsObject"
1422
+ }
1423
+ }
1424
+ }
1425
+ }
1426
+ }
1427
+ }