@sphereon/ssi-sdk.credential-validation 0.33.1-next.3 → 0.33.1-next.68

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.
@@ -18,10 +18,8 @@
18
18
  "$ref": "#/components/schemas/VerificationPolicies"
19
19
  }
20
20
  },
21
- "required": [
22
- "credential",
23
- "fetchRemoteContexts"
24
- ]
21
+ "required": ["credential", "fetchRemoteContexts"],
22
+ "additionalProperties": false
25
23
  },
26
24
  "OriginalVerifiableCredential": {
27
25
  "anyOf": [
@@ -153,14 +151,7 @@
153
151
  "type": "string"
154
152
  }
155
153
  },
156
- "required": [
157
- "@context",
158
- "credentialSubject",
159
- "issuanceDate",
160
- "issuer",
161
- "proof",
162
- "type"
163
- ]
154
+ "required": ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
164
155
  },
165
156
  "IProof": {
166
157
  "type": "object",
@@ -219,12 +210,7 @@
219
210
  }
220
211
  }
221
212
  },
222
- "required": [
223
- "type",
224
- "created",
225
- "proofPurpose",
226
- "verificationMethod"
227
- ]
213
+ "required": ["type", "created", "proofPurpose", "verificationMethod"]
228
214
  },
229
215
  "IProofType": {
230
216
  "type": "string",
@@ -294,9 +280,8 @@
294
280
  "type": "string"
295
281
  }
296
282
  },
297
- "required": [
298
- "id"
299
- ]
283
+ "required": ["id"],
284
+ "additionalProperties": false
300
285
  },
301
286
  "IIssuerId": {
302
287
  "type": "string"
@@ -308,9 +293,7 @@
308
293
  "type": "string"
309
294
  }
310
295
  },
311
- "required": [
312
- "id"
313
- ]
296
+ "required": ["id"]
314
297
  },
315
298
  "ICredentialStatus": {
316
299
  "type": "object",
@@ -322,10 +305,7 @@
322
305
  "type": "string"
323
306
  }
324
307
  },
325
- "required": [
326
- "id",
327
- "type"
328
- ]
308
+ "required": ["id", "type"]
329
309
  },
330
310
  "CompactJWT": {
331
311
  "type": "string",
@@ -353,14 +333,7 @@
353
333
  "type": "string"
354
334
  }
355
335
  },
356
- "required": [
357
- "vc",
358
- "exp",
359
- "iss",
360
- "nbf",
361
- "sub",
362
- "jti"
363
- ]
336
+ "required": ["vc", "exp", "iss", "nbf", "sub", "jti"]
364
337
  },
365
338
  "SdJwtDecodedVerifiableCredential": {
366
339
  "type": "object",
@@ -377,84 +350,7 @@
377
350
  "description": "The disclosures included within the SD-JWT in both encoded and decoded format. The digests are also included, and allows the disclosures to be linked against the digests in the signed payload."
378
351
  },
379
352
  "signedPayload": {
380
- "type": "object",
381
- "properties": {
382
- "vct": {
383
- "type": "string"
384
- },
385
- "iss": {
386
- "type": "string"
387
- },
388
- "iat": {
389
- "type": "number"
390
- },
391
- "nbf": {
392
- "type": "number"
393
- },
394
- "exp": {
395
- "type": "number"
396
- },
397
- "cnf": {
398
- "type": "object",
399
- "properties": {
400
- "jwk": {},
401
- "kid": {
402
- "type": "string"
403
- }
404
- }
405
- },
406
- "status": {
407
- "type": "object",
408
- "properties": {
409
- "idx": {
410
- "type": "number"
411
- },
412
- "uri": {
413
- "type": "string"
414
- }
415
- },
416
- "required": [
417
- "idx",
418
- "uri"
419
- ]
420
- },
421
- "sub": {
422
- "type": "string"
423
- },
424
- "_sd": {
425
- "type": "array",
426
- "items": {
427
- "type": "string"
428
- }
429
- },
430
- "_sd_alg": {
431
- "type": "string"
432
- }
433
- },
434
- "additionalProperties": {
435
- "anyOf": [
436
- {
437
- "not": {}
438
- },
439
- {
440
- "not": {}
441
- },
442
- {
443
- "type": [
444
- "string",
445
- "number",
446
- "boolean",
447
- "object",
448
- "array"
449
- ]
450
- }
451
- ]
452
- },
453
- "required": [
454
- "iat",
455
- "iss",
456
- "vct"
457
- ],
353
+ "$ref": "#/components/schemas/SdJwtSignedVerifiableCredentialPayload",
458
354
  "description": "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
459
355
  },
460
356
  "decodedPayload": {
@@ -474,19 +370,13 @@
474
370
  "$ref": "#/components/schemas/CompactJWT"
475
371
  }
476
372
  },
477
- "required": [
478
- "header",
479
- "payload"
480
- ],
373
+ "required": ["header", "payload"],
374
+ "additionalProperties": false,
481
375
  "description": "Key binding JWT"
482
376
  }
483
377
  },
484
- "required": [
485
- "compactSdJwtVc",
486
- "disclosures",
487
- "signedPayload",
488
- "decodedPayload"
489
- ],
378
+ "required": ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
379
+ "additionalProperties": false,
490
380
  "description": "The decoded SD JWT Verifiable Credential. This representation includes multiple representations of the same SD-JWT, and allows to fully process an SD-JWT, as well as create a presentation SD-JWT (minus the KB-JWT) by removing certain disclosures from the compact SD-JWT.\n\nThis representation is useful as it doesn't require a hasher implementation to match the different digests in the signed SD-JWT payload, with the different disclosures."
491
381
  },
492
382
  "SdJwtDisclosure": {
@@ -502,11 +392,8 @@
502
392
  "type": "string"
503
393
  }
504
394
  },
505
- "required": [
506
- "encoded",
507
- "decoded",
508
- "digest"
509
- ]
395
+ "required": ["encoded", "decoded", "digest"],
396
+ "additionalProperties": false
510
397
  },
511
398
  "SdJwtDecodedDisclosure": {
512
399
  "anyOf": [
@@ -521,36 +408,7 @@
521
408
  "type": "string"
522
409
  },
523
410
  {
524
- "anyOf": [
525
- {
526
- "type": "string"
527
- },
528
- {
529
- "type": "number"
530
- },
531
- {
532
- "type": "boolean"
533
- },
534
- {
535
- "type": "object",
536
- "additionalProperties": {
537
- "anyOf": [
538
- {
539
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
540
- },
541
- {
542
- "not": {}
543
- }
544
- ]
545
- }
546
- },
547
- {
548
- "type": "array",
549
- "items": {
550
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
551
- }
552
- }
553
- ]
411
+ "$ref": "#/components/schemas/JsonValue"
554
412
  }
555
413
  ],
556
414
  "maxItems": 3
@@ -563,43 +421,14 @@
563
421
  "type": "string"
564
422
  },
565
423
  {
566
- "anyOf": [
567
- {
568
- "type": "string"
569
- },
570
- {
571
- "type": "number"
572
- },
573
- {
574
- "type": "boolean"
575
- },
576
- {
577
- "type": "object",
578
- "additionalProperties": {
579
- "anyOf": [
580
- {
581
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
582
- },
583
- {
584
- "not": {}
585
- }
586
- ]
587
- }
588
- },
589
- {
590
- "type": "array",
591
- "items": {
592
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
593
- }
594
- }
595
- ]
424
+ "$ref": "#/components/schemas/JsonValue"
596
425
  }
597
426
  ],
598
427
  "maxItems": 2
599
428
  }
600
429
  ]
601
430
  },
602
- "alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006": {
431
+ "JsonValue": {
603
432
  "anyOf": [
604
433
  {
605
434
  "type": "string"
@@ -615,7 +444,7 @@
615
444
  "additionalProperties": {
616
445
  "anyOf": [
617
446
  {
618
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
447
+ "$ref": "#/components/schemas/JsonValue"
619
448
  },
620
449
  {
621
450
  "not": {}
@@ -626,12 +455,12 @@
626
455
  {
627
456
  "type": "array",
628
457
  "items": {
629
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
458
+ "$ref": "#/components/schemas/JsonValue"
630
459
  }
631
460
  }
632
461
  ]
633
462
  },
634
- "SdJwtDecodedVerifiableCredentialPayload": {
463
+ "SdJwtSignedVerifiableCredentialPayload": {
635
464
  "type": "object",
636
465
  "properties": {
637
466
  "vct": {
@@ -656,7 +485,8 @@
656
485
  "kid": {
657
486
  "type": "string"
658
487
  }
659
- }
488
+ },
489
+ "additionalProperties": false
660
490
  },
661
491
  "status": {
662
492
  "type": "object",
@@ -668,50 +498,146 @@
668
498
  "type": "string"
669
499
  }
670
500
  },
671
- "required": [
672
- "idx",
673
- "uri"
674
- ]
501
+ "required": ["idx", "uri"],
502
+ "additionalProperties": false
675
503
  },
676
504
  "sub": {
677
505
  "type": "string"
506
+ },
507
+ "_sd": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "_sd_alg": {
514
+ "type": "string"
678
515
  }
679
516
  },
680
- "required": [
681
- "vct",
682
- "iss",
683
- "iat"
684
- ],
685
517
  "additionalProperties": {
686
518
  "anyOf": [
687
519
  {
688
- "type": "string"
520
+ "$ref": "#/components/schemas/SdJwtJsonValue"
689
521
  },
690
522
  {
691
- "type": "number"
523
+ "not": {}
692
524
  },
693
525
  {
694
- "type": "boolean"
526
+ "$ref": "#/components/schemas/JsonValue"
695
527
  },
696
528
  {
697
- "type": "object",
698
- "additionalProperties": {
699
- "anyOf": [
700
- {
701
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
529
+ "not": {}
530
+ }
531
+ ]
532
+ },
533
+ "required": ["iat", "iss", "vct"],
534
+ "description": "The signed payload of an SD-JWT. Includes fields such as `_sd`, `...` and `_sd_alg`"
535
+ },
536
+ "SdJwtJsonValue": {
537
+ "anyOf": [
538
+ {
539
+ "type": "string"
540
+ },
541
+ {
542
+ "type": "number"
543
+ },
544
+ {
545
+ "type": "boolean"
546
+ },
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "_sd": {
551
+ "type": "array",
552
+ "items": {
553
+ "type": "string"
554
+ }
555
+ }
556
+ },
557
+ "additionalProperties": {
558
+ "anyOf": [
559
+ {
560
+ "$ref": "#/components/schemas/SdJwtJsonValue"
561
+ },
562
+ {
563
+ "not": {}
564
+ }
565
+ ]
566
+ }
567
+ },
568
+ {
569
+ "type": "array",
570
+ "items": {
571
+ "anyOf": [
572
+ {
573
+ "$ref": "#/components/schemas/SdJwtJsonValue"
574
+ },
575
+ {
576
+ "type": "object",
577
+ "properties": {
578
+ "...": {
579
+ "type": "string"
580
+ }
702
581
  },
703
- {
704
- "not": {}
705
- }
706
- ]
582
+ "required": ["..."],
583
+ "additionalProperties": false
584
+ }
585
+ ]
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ "SdJwtDecodedVerifiableCredentialPayload": {
591
+ "type": "object",
592
+ "properties": {
593
+ "vct": {
594
+ "type": "string"
595
+ },
596
+ "iss": {
597
+ "type": "string"
598
+ },
599
+ "iat": {
600
+ "type": "number"
601
+ },
602
+ "nbf": {
603
+ "type": "number"
604
+ },
605
+ "exp": {
606
+ "type": "number"
607
+ },
608
+ "cnf": {
609
+ "type": "object",
610
+ "properties": {
611
+ "jwk": {},
612
+ "kid": {
613
+ "type": "string"
707
614
  }
708
615
  },
709
- {
710
- "type": "array",
711
- "items": {
712
- "$ref": "#/components/schemas/alias-d-jwt-vc.d.ts-197-306-d-jwt-vc.d.ts-0-8006"
616
+ "additionalProperties": false
617
+ },
618
+ "status": {
619
+ "type": "object",
620
+ "properties": {
621
+ "idx": {
622
+ "type": "number"
623
+ },
624
+ "uri": {
625
+ "type": "string"
713
626
  }
714
627
  },
628
+ "required": ["idx", "uri"],
629
+ "additionalProperties": false
630
+ },
631
+ "sub": {
632
+ "type": "string"
633
+ }
634
+ },
635
+ "required": ["vct", "iss", "iat"],
636
+ "additionalProperties": {
637
+ "anyOf": [
638
+ {
639
+ "$ref": "#/components/schemas/JsonValue"
640
+ },
715
641
  {
716
642
  "not": {}
717
643
  }
@@ -730,10 +656,7 @@
730
656
  "type": "string"
731
657
  }
732
658
  },
733
- "required": [
734
- "typ",
735
- "alg"
736
- ]
659
+ "required": ["typ", "alg"]
737
660
  },
738
661
  "SdJwtVcKbJwtPayload": {
739
662
  "type": "object",
@@ -751,12 +674,7 @@
751
674
  "type": "string"
752
675
  }
753
676
  },
754
- "required": [
755
- "iat",
756
- "aud",
757
- "nonce",
758
- "sd_hash"
759
- ],
677
+ "required": ["iat", "aud", "nonce", "sd_hash"],
760
678
  "additionalProperties": {}
761
679
  },
762
680
  "MdocOid4vpIssuerSigned": {
@@ -768,6 +686,7 @@
768
686
  },
769
687
  "com.sphereon.mdoc.data.device.DocumentCbor": {
770
688
  "type": "object",
689
+ "additionalProperties": false,
771
690
  "properties": {}
772
691
  },
773
692
  "HasherSync": {
@@ -783,15 +702,7 @@
783
702
  "type": "string"
784
703
  },
785
704
  {
786
- "type": "object",
787
- "properties": {
788
- "byteLength": {
789
- "type": "number"
790
- }
791
- },
792
- "required": [
793
- "byteLength"
794
- ]
705
+ "$ref": "#/components/schemas/ArrayBuffer"
795
706
  }
796
707
  ]
797
708
  },
@@ -799,14 +710,21 @@
799
710
  "type": "string"
800
711
  }
801
712
  },
802
- "required": [
803
- "data",
804
- "alg"
805
- ],
713
+ "required": ["data", "alg"],
806
714
  "additionalProperties": false
807
715
  }
808
716
  }
809
717
  },
718
+ "ArrayBuffer": {
719
+ "type": "object",
720
+ "properties": {
721
+ "byteLength": {
722
+ "type": "number"
723
+ }
724
+ },
725
+ "required": ["byteLength"],
726
+ "additionalProperties": false
727
+ },
810
728
  "VerificationPolicies": {
811
729
  "type": "object",
812
730
  "properties": {
@@ -823,18 +741,12 @@
823
741
  "type": "boolean"
824
742
  }
825
743
  },
826
- "required": [
827
- "expirationDate",
828
- "issuanceDate"
829
- ]
744
+ "required": ["expirationDate", "issuanceDate"],
745
+ "additionalProperties": false
830
746
  },
831
747
  "SchemaValidation": {
832
748
  "type": "string",
833
- "enum": [
834
- "ALWAYS",
835
- "NEVER",
836
- "WHEN_PRESENT"
837
- ]
749
+ "enum": ["ALWAYS", "NEVER", "WHEN_PRESENT"]
838
750
  },
839
751
  "VerificationResult": {
840
752
  "type": "object",
@@ -865,11 +777,8 @@
865
777
  "type": "string"
866
778
  }
867
779
  },
868
- "required": [
869
- "result",
870
- "source",
871
- "subResults"
872
- ]
780
+ "required": ["result", "source", "subResults"],
781
+ "additionalProperties": false
873
782
  },
874
783
  "WrappedVerifiableCredential": {
875
784
  "anyOf": [
@@ -910,22 +819,22 @@
910
819
  "description": "In case of JWT credential it will be the decoded version. In other cases it will be the same as original one"
911
820
  },
912
821
  "type": {
913
- "type": "string",
914
- "enum": [
915
- "json-ld",
916
- "jwt-encoded",
917
- "jwt-decoded"
822
+ "anyOf": [
823
+ {
824
+ "$ref": "#/components/schemas/OriginalType.JSONLD"
825
+ },
826
+ {
827
+ "$ref": "#/components/schemas/OriginalType.JWT_ENCODED"
828
+ },
829
+ {
830
+ "$ref": "#/components/schemas/OriginalType.JWT_DECODED"
831
+ }
918
832
  ],
919
833
  "description": "Type of this credential. Supported types are json-ld, jwt (decoded/encoded)"
920
834
  },
921
835
  "format": {
922
836
  "type": "string",
923
- "enum": [
924
- "jwt_vc",
925
- "ldp_vc",
926
- "ldp",
927
- "jwt"
928
- ],
837
+ "enum": ["jwt_vc", "ldp_vc", "ldp", "jwt"],
929
838
  "description": "The claim format, typically used during exchange transport protocols"
930
839
  },
931
840
  "credential": {
@@ -933,13 +842,20 @@
933
842
  "description": "Internal stable representation of a Credential"
934
843
  }
935
844
  },
936
- "required": [
937
- "original",
938
- "decoded",
939
- "type",
940
- "format",
941
- "credential"
942
- ]
845
+ "required": ["original", "decoded", "type", "format", "credential"],
846
+ "additionalProperties": false
847
+ },
848
+ "OriginalType.JSONLD": {
849
+ "type": "string",
850
+ "const": "json-ld"
851
+ },
852
+ "OriginalType.JWT_ENCODED": {
853
+ "type": "string",
854
+ "const": "jwt-encoded"
855
+ },
856
+ "OriginalType.JWT_DECODED": {
857
+ "type": "string",
858
+ "const": "jwt-decoded"
943
859
  },
944
860
  "WrappedSdJwtVerifiableCredential": {
945
861
  "type": "object",
@@ -960,10 +876,13 @@
960
876
  "description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT as the `decoded` property is used in e.g. PEX to check for path filters from fields. The full decoded credential can be found in the `credential` field."
961
877
  },
962
878
  "type": {
963
- "type": "string",
964
- "enum": [
965
- "sd-jwt-vc-decoded",
966
- "sd-jwt-vc-encoded"
879
+ "anyOf": [
880
+ {
881
+ "$ref": "#/components/schemas/OriginalType.SD_JWT_VC_DECODED"
882
+ },
883
+ {
884
+ "$ref": "#/components/schemas/OriginalType.SD_JWT_VC_ENCODED"
885
+ }
967
886
  ],
968
887
  "description": "Type of this credential."
969
888
  },
@@ -977,18 +896,21 @@
977
896
  "description": "Internal stable representation of a Credential"
978
897
  }
979
898
  },
980
- "required": [
981
- "original",
982
- "decoded",
983
- "type",
984
- "format",
985
- "credential"
986
- ]
899
+ "required": ["original", "decoded", "type", "format", "credential"],
900
+ "additionalProperties": false
987
901
  },
988
902
  "CompactSdJwtVc": {
989
903
  "type": "string",
990
904
  "description": "Represents a selective disclosure JWT vc in compact form."
991
905
  },
906
+ "OriginalType.SD_JWT_VC_DECODED": {
907
+ "type": "string",
908
+ "const": "sd-jwt-vc-decoded"
909
+ },
910
+ "OriginalType.SD_JWT_VC_ENCODED": {
911
+ "type": "string",
912
+ "const": "sd-jwt-vc-encoded"
913
+ },
992
914
  "WrappedMdocCredential": {
993
915
  "type": "object",
994
916
  "properties": {
@@ -1008,10 +930,13 @@
1008
930
  "description": "Record where keys are the namespaces and the values are objects again with the namespace values"
1009
931
  },
1010
932
  "type": {
1011
- "type": "string",
1012
- "enum": [
1013
- "mso_mdoc-decoded",
1014
- "mso_mdoc-encoded"
933
+ "anyOf": [
934
+ {
935
+ "$ref": "#/components/schemas/OriginalType.MSO_MDOC_DECODED"
936
+ },
937
+ {
938
+ "$ref": "#/components/schemas/OriginalType.MSO_MDOC_ENCODED"
939
+ }
1015
940
  ],
1016
941
  "description": "Type of this credential."
1017
942
  },
@@ -1025,27 +950,32 @@
1025
950
  "description": "Internal stable representation of a Credential"
1026
951
  }
1027
952
  },
1028
- "required": [
1029
- "original",
1030
- "decoded",
1031
- "type",
1032
- "format",
1033
- "credential"
1034
- ]
953
+ "required": ["original", "decoded", "type", "format", "credential"],
954
+ "additionalProperties": false
1035
955
  },
1036
956
  "MdocDecodedPayload": {
957
+ "$ref": "#/components/schemas/Record<string,Record<string,(string|number|boolean)>>",
958
+ "description": "Record where keys are the namespaces and the values are objects again with the namespace values"
959
+ },
960
+ "Record<string,Record<string,(string|number|boolean)>>": {
1037
961
  "type": "object",
1038
962
  "additionalProperties": {
1039
- "type": "object",
1040
- "additionalProperties": {
1041
- "type": [
1042
- "string",
1043
- "number",
1044
- "boolean"
1045
- ]
1046
- }
1047
- },
1048
- "description": "Record where keys are the namespaces and the values are objects again with the namespace values"
963
+ "$ref": "#/components/schemas/Record<string,(string|number|boolean)>"
964
+ }
965
+ },
966
+ "Record<string,(string|number|boolean)>": {
967
+ "type": "object",
968
+ "additionalProperties": {
969
+ "type": ["string", "number", "boolean"]
970
+ }
971
+ },
972
+ "OriginalType.MSO_MDOC_DECODED": {
973
+ "type": "string",
974
+ "const": "mso_mdoc-decoded"
975
+ },
976
+ "OriginalType.MSO_MDOC_ENCODED": {
977
+ "type": "string",
978
+ "const": "mso_mdoc-encoded"
1049
979
  },
1050
980
  "WrappedVerifiablePresentation": {
1051
981
  "anyOf": [
@@ -1086,20 +1016,22 @@
1086
1016
  "description": "In case of JWT VP it will be the decoded version. In other cases it will be the same as original one"
1087
1017
  },
1088
1018
  "type": {
1089
- "type": "string",
1090
- "enum": [
1091
- "json-ld",
1092
- "jwt-encoded",
1093
- "jwt-decoded"
1019
+ "anyOf": [
1020
+ {
1021
+ "$ref": "#/components/schemas/OriginalType.JSONLD"
1022
+ },
1023
+ {
1024
+ "$ref": "#/components/schemas/OriginalType.JWT_ENCODED"
1025
+ },
1026
+ {
1027
+ "$ref": "#/components/schemas/OriginalType.JWT_DECODED"
1028
+ }
1094
1029
  ],
1095
1030
  "description": "Type of this Presentation. Supported types are json-ld and jwt (decoded/encoded) and sd-jwt-vc (decoded/encoded)"
1096
1031
  },
1097
1032
  "format": {
1098
1033
  "type": "string",
1099
- "enum": [
1100
- "jwt_vp",
1101
- "ldp_vp"
1102
- ],
1034
+ "enum": ["jwt_vp", "ldp_vp"],
1103
1035
  "description": "The claim format, typically used during exchange transport protocols"
1104
1036
  },
1105
1037
  "presentation": {
@@ -1114,14 +1046,8 @@
1114
1046
  "description": "Wrapped Verifiable Credentials belonging to the Presentation"
1115
1047
  }
1116
1048
  },
1117
- "required": [
1118
- "original",
1119
- "decoded",
1120
- "type",
1121
- "format",
1122
- "presentation",
1123
- "vcs"
1124
- ]
1049
+ "required": ["original", "decoded", "type", "format", "presentation", "vcs"],
1050
+ "additionalProperties": false
1125
1051
  },
1126
1052
  "W3CVerifiablePresentation": {
1127
1053
  "anyOf": [
@@ -1195,10 +1121,7 @@
1195
1121
  "type": "string"
1196
1122
  }
1197
1123
  },
1198
- "required": [
1199
- "@context",
1200
- "proof"
1201
- ]
1124
+ "required": ["@context", "proof"]
1202
1125
  },
1203
1126
  "PresentationSubmission": {
1204
1127
  "type": "object",
@@ -1219,11 +1142,8 @@
1219
1142
  "description": "List of descriptors of how the claims are being mapped to presentation definition"
1220
1143
  }
1221
1144
  },
1222
- "required": [
1223
- "id",
1224
- "definition_id",
1225
- "descriptor_map"
1226
- ],
1145
+ "required": ["id", "definition_id", "descriptor_map"],
1146
+ "additionalProperties": false,
1227
1147
  "description": "It expresses how the inputs are presented as proofs to a Verifier."
1228
1148
  },
1229
1149
  "Descriptor": {
@@ -1245,11 +1165,8 @@
1245
1165
  "description": "The Proof or JWT algorith that the proof is in"
1246
1166
  }
1247
1167
  },
1248
- "required": [
1249
- "id",
1250
- "path",
1251
- "format"
1252
- ],
1168
+ "required": ["id", "path", "format"],
1169
+ "additionalProperties": false,
1253
1170
  "description": "descriptor map laying out the structure of the presentation submission."
1254
1171
  },
1255
1172
  "JwtDecodedVerifiablePresentation": {
@@ -1280,16 +1197,7 @@
1280
1197
  "type": "string"
1281
1198
  }
1282
1199
  },
1283
- "required": [
1284
- "vp",
1285
- "exp",
1286
- "iss",
1287
- "nbf",
1288
- "sub",
1289
- "jti",
1290
- "aud",
1291
- "iat"
1292
- ]
1200
+ "required": ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
1293
1201
  },
1294
1202
  "UniformVerifiablePresentation": {
1295
1203
  "type": "object",
@@ -1333,11 +1241,8 @@
1333
1241
  "type": "string"
1334
1242
  }
1335
1243
  },
1336
- "required": [
1337
- "@context",
1338
- "type",
1339
- "verifiableCredential"
1340
- ]
1244
+ "required": ["@context", "type", "verifiableCredential"],
1245
+ "additionalProperties": false
1341
1246
  },
1342
1247
  "WrappedSdJwtVerifiablePresentation": {
1343
1248
  "type": "object",
@@ -1358,10 +1263,13 @@
1358
1263
  "description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT."
1359
1264
  },
1360
1265
  "type": {
1361
- "type": "string",
1362
- "enum": [
1363
- "sd-jwt-vc-decoded",
1364
- "sd-jwt-vc-encoded"
1266
+ "anyOf": [
1267
+ {
1268
+ "$ref": "#/components/schemas/OriginalType.SD_JWT_VC_DECODED"
1269
+ },
1270
+ {
1271
+ "$ref": "#/components/schemas/OriginalType.SD_JWT_VC_ENCODED"
1272
+ }
1365
1273
  ],
1366
1274
  "description": "Type of this Presentation."
1367
1275
  },
@@ -1384,14 +1292,8 @@
1384
1292
  "description": "Wrapped Verifiable Credentials belonging to the Presentation. Will always be an array with a single SdJwtVerifiableCredential entry."
1385
1293
  }
1386
1294
  },
1387
- "required": [
1388
- "original",
1389
- "decoded",
1390
- "type",
1391
- "format",
1392
- "presentation",
1393
- "vcs"
1394
- ]
1295
+ "required": ["original", "decoded", "type", "format", "presentation", "vcs"],
1296
+ "additionalProperties": false
1395
1297
  },
1396
1298
  "WrappedMdocPresentation": {
1397
1299
  "type": "object",
@@ -1412,10 +1314,13 @@
1412
1314
  "description": "Decoded version of the SD-JWT payload. This is the decoded payload, rather than the whole SD-JWT."
1413
1315
  },
1414
1316
  "type": {
1415
- "type": "string",
1416
- "enum": [
1417
- "mso_mdoc-encoded",
1418
- "mso_mdoc-decoded"
1317
+ "anyOf": [
1318
+ {
1319
+ "$ref": "#/components/schemas/OriginalType.MSO_MDOC_ENCODED"
1320
+ },
1321
+ {
1322
+ "$ref": "#/components/schemas/OriginalType.MSO_MDOC_DECODED"
1323
+ }
1419
1324
  ],
1420
1325
  "description": "Type of this Presentation."
1421
1326
  },
@@ -1436,20 +1341,15 @@
1436
1341
  "description": "Wrapped Mdocs belonging to the Presentation. There can be multiple documents in a single device response"
1437
1342
  }
1438
1343
  },
1439
- "required": [
1440
- "original",
1441
- "decoded",
1442
- "type",
1443
- "format",
1444
- "presentation",
1445
- "vcs"
1446
- ]
1344
+ "required": ["original", "decoded", "type", "format", "presentation", "vcs"],
1345
+ "additionalProperties": false
1447
1346
  },
1448
1347
  "MdocDeviceResponse": {
1449
1348
  "$ref": "#/components/schemas/com.sphereon.mdoc.data.device.DeviceResponseCbor"
1450
1349
  },
1451
1350
  "com.sphereon.mdoc.data.device.DeviceResponseCbor": {
1452
1351
  "type": "object",
1352
+ "additionalProperties": false,
1453
1353
  "properties": {}
1454
1354
  },
1455
1355
  "MdocOid4vpMdocVpToken": {
@@ -1468,9 +1368,8 @@
1468
1368
  "type": "string"
1469
1369
  }
1470
1370
  },
1471
- "required": [
1472
- "result"
1473
- ]
1371
+ "required": ["result"],
1372
+ "additionalProperties": false
1474
1373
  },
1475
1374
  "VerifyMdocCredentialArgs": {
1476
1375
  "type": "object",
@@ -1479,9 +1378,8 @@
1479
1378
  "type": "string"
1480
1379
  }
1481
1380
  },
1482
- "required": [
1483
- "credential"
1484
- ]
1381
+ "required": ["credential"],
1382
+ "additionalProperties": false
1485
1383
  },
1486
1384
  "ValidateSchemaArgs": {
1487
1385
  "type": "object",
@@ -1496,9 +1394,8 @@
1496
1394
  "$ref": "#/components/schemas/HasherSync"
1497
1395
  }
1498
1396
  },
1499
- "required": [
1500
- "credential"
1501
- ]
1397
+ "required": ["credential"],
1398
+ "additionalProperties": false
1502
1399
  },
1503
1400
  "VerifySDJWTCredentialArgs": {
1504
1401
  "type": "object",
@@ -1510,12 +1407,12 @@
1510
1407
  "$ref": "#/components/schemas/HasherSync"
1511
1408
  }
1512
1409
  },
1513
- "required": [
1514
- "credential"
1515
- ]
1410
+ "required": ["credential"],
1411
+ "additionalProperties": false
1516
1412
  },
1517
1413
  "VerifyW3CCredentialArgs": {
1518
- "type": "object"
1414
+ "type": "object",
1415
+ "additionalProperties": false
1519
1416
  }
1520
1417
  },
1521
1418
  "methods": {
@@ -1567,4 +1464,4 @@
1567
1464
  }
1568
1465
  }
1569
1466
  }
1570
- }
1467
+ }