@sphereon/ssi-sdk.credential-store 0.33.0 → 0.33.1-feature.jose.vcdm.56

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.
@@ -17,22 +17,29 @@
17
17
  "hasher": {
18
18
  "$ref": "#/components/schemas/HasherSync"
19
19
  }
20
- }
20
+ },
21
+ "additionalProperties": false
21
22
  }
22
23
  },
23
24
  "required": [
24
25
  "credential"
25
- ]
26
+ ],
27
+ "additionalProperties": false
26
28
  },
27
29
  "AddDigitalCredential": {
30
+ "$ref": "#/components/schemas/Omit<NonPersistedDigitalCredential,(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>"
31
+ },
32
+ "Omit<NonPersistedDigitalCredential,(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>": {
33
+ "$ref": "#/components/schemas/Pick<NonPersistedDigitalCredential,Exclude<(\"parentId\"|\"documentType\"|\"documentFormat\"|\"credentialRole\"|\"rawDocument\"|\"uniformDocument\"|\"credentialId\"|\"hash\"|\"kmsKeyRef\"|\"identifierMethod\"|\"issuerCorrelationType\"|\"subjectCorrelationType\"|\"rpCorrelationType\"|\"isIssuerSigned\"|\"issuerCorrelationId\"|\"subjectCorrelationId\"|\"rpCorrelationId\"|\"verifiedState\"|\"tenantId\"|\"createdAt\"|\"presentedAt\"|\"lastUpdatedAt\"|\"validUntil\"|\"validFrom\"|\"verifiedAt\"|\"revokedAt\"|\"regulationType\"),(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>>"
34
+ },
35
+ "Pick<NonPersistedDigitalCredential,Exclude<(\"parentId\"|\"documentType\"|\"documentFormat\"|\"credentialRole\"|\"rawDocument\"|\"uniformDocument\"|\"credentialId\"|\"hash\"|\"kmsKeyRef\"|\"identifierMethod\"|\"issuerCorrelationType\"|\"subjectCorrelationType\"|\"rpCorrelationType\"|\"isIssuerSigned\"|\"issuerCorrelationId\"|\"subjectCorrelationId\"|\"rpCorrelationId\"|\"verifiedState\"|\"tenantId\"|\"createdAt\"|\"presentedAt\"|\"lastUpdatedAt\"|\"validUntil\"|\"validFrom\"|\"verifiedAt\"|\"revokedAt\"|\"regulationType\"),(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>>": {
28
36
  "type": "object",
29
37
  "properties": {
30
38
  "parentId": {
31
39
  "type": "string"
32
40
  },
33
41
  "credentialRole": {
34
- "type": "object",
35
- "properties": {}
42
+ "$ref": "#/components/schemas/CredentialRole"
36
43
  },
37
44
  "rawDocument": {
38
45
  "type": "string"
@@ -47,16 +54,13 @@
47
54
  "type": "string"
48
55
  },
49
56
  "issuerCorrelationType": {
50
- "type": "object",
51
- "properties": {}
57
+ "$ref": "#/components/schemas/CredentialCorrelationType"
52
58
  },
53
59
  "subjectCorrelationType": {
54
- "type": "object",
55
- "properties": {}
60
+ "$ref": "#/components/schemas/CredentialCorrelationType"
56
61
  },
57
62
  "rpCorrelationType": {
58
- "type": "object",
59
- "properties": {}
63
+ "$ref": "#/components/schemas/CredentialCorrelationType"
60
64
  },
61
65
  "isIssuerSigned": {
62
66
  "type": "boolean"
@@ -71,8 +75,7 @@
71
75
  "type": "string"
72
76
  },
73
77
  "verifiedState": {
74
- "type": "object",
75
- "properties": {}
78
+ "$ref": "#/components/schemas/CredentialStateType"
76
79
  },
77
80
  "tenantId": {
78
81
  "type": "string"
@@ -90,8 +93,7 @@
90
93
  "format": "date-time"
91
94
  },
92
95
  "regulationType": {
93
- "type": "object",
94
- "properties": {}
96
+ "$ref": "#/components/schemas/RegulationType"
95
97
  }
96
98
  },
97
99
  "required": [
@@ -99,6 +101,42 @@
99
101
  "rawDocument",
100
102
  "issuerCorrelationType",
101
103
  "issuerCorrelationId"
104
+ ],
105
+ "additionalProperties": false
106
+ },
107
+ "CredentialRole": {
108
+ "type": "string",
109
+ "enum": [
110
+ "ISSUER",
111
+ "VERIFIER",
112
+ "HOLDER",
113
+ "FEDERATION_TRUST_ANCHOR"
114
+ ]
115
+ },
116
+ "CredentialCorrelationType": {
117
+ "type": "string",
118
+ "enum": [
119
+ "DID",
120
+ "X509_SAN",
121
+ "KID",
122
+ "URL"
123
+ ]
124
+ },
125
+ "CredentialStateType": {
126
+ "type": "string",
127
+ "enum": [
128
+ "REVOKED",
129
+ "VERIFIED",
130
+ "EXPIRED"
131
+ ]
132
+ },
133
+ "RegulationType": {
134
+ "type": "string",
135
+ "enum": [
136
+ "PID",
137
+ "QEAA",
138
+ "EAA",
139
+ "NON_REGULATED"
102
140
  ]
103
141
  },
104
142
  "HasherSync": {
@@ -114,15 +152,7 @@
114
152
  "type": "string"
115
153
  },
116
154
  {
117
- "type": "object",
118
- "properties": {
119
- "byteLength": {
120
- "type": "number"
121
- }
122
- },
123
- "required": [
124
- "byteLength"
125
- ]
155
+ "$ref": "#/components/schemas/ArrayBuffer"
126
156
  }
127
157
  ]
128
158
  },
@@ -138,6 +168,18 @@
138
168
  }
139
169
  }
140
170
  },
171
+ "ArrayBuffer": {
172
+ "type": "object",
173
+ "properties": {
174
+ "byteLength": {
175
+ "type": "number"
176
+ }
177
+ },
178
+ "required": [
179
+ "byteLength"
180
+ ],
181
+ "additionalProperties": false
182
+ },
141
183
  "DigitalCredential": {
142
184
  "type": "object",
143
185
  "properties": {
@@ -246,7 +288,9 @@
246
288
  "issuerCorrelationId",
247
289
  "createdAt",
248
290
  "lastUpdatedAt"
249
- ]
291
+ ],
292
+ "additionalProperties": false,
293
+ "description": "DigitalCredential"
250
294
  },
251
295
  "DocumentType": {
252
296
  "type": "string",
@@ -266,41 +310,6 @@
266
310
  "MSO_MDOC"
267
311
  ]
268
312
  },
269
- "CredentialRole": {
270
- "type": "string",
271
- "enum": [
272
- "ISSUER",
273
- "VERIFIER",
274
- "HOLDER",
275
- "FEDERATION_TRUST_ANCHOR"
276
- ]
277
- },
278
- "RegulationType": {
279
- "type": "string",
280
- "enum": [
281
- "PID",
282
- "QEAA",
283
- "EAA",
284
- "NON_REGULATED"
285
- ]
286
- },
287
- "CredentialCorrelationType": {
288
- "type": "string",
289
- "enum": [
290
- "DID",
291
- "X509_SAN",
292
- "KID",
293
- "URL"
294
- ]
295
- },
296
- "CredentialStateType": {
297
- "type": "string",
298
- "enum": [
299
- "REVOKED",
300
- "VERIFIED",
301
- "EXPIRED"
302
- ]
303
- },
304
313
  "DeleteCredentialArgs": {
305
314
  "anyOf": [
306
315
  {
@@ -312,7 +321,8 @@
312
321
  },
313
322
  "required": [
314
323
  "id"
315
- ]
324
+ ],
325
+ "additionalProperties": false
316
326
  },
317
327
  {
318
328
  "type": "object",
@@ -323,7 +333,8 @@
323
333
  },
324
334
  "required": [
325
335
  "hash"
326
- ]
336
+ ],
337
+ "additionalProperties": false
327
338
  }
328
339
  ]
329
340
  },
@@ -339,107 +350,112 @@
339
350
  },
340
351
  "required": [
341
352
  "filter"
342
- ]
353
+ ],
354
+ "additionalProperties": false
343
355
  },
344
356
  "FindDigitalCredentialArgs": {
345
357
  "type": "array",
346
358
  "items": {
347
- "type": "object",
348
- "properties": {
349
- "id": {
350
- "type": "string"
351
- },
352
- "parentId": {
353
- "type": "string"
354
- },
355
- "documentType": {
356
- "$ref": "#/components/schemas/DocumentType"
357
- },
358
- "documentFormat": {
359
- "$ref": "#/components/schemas/CredentialDocumentFormat"
360
- },
361
- "credentialRole": {
362
- "$ref": "#/components/schemas/CredentialRole"
363
- },
364
- "regulationType": {
365
- "$ref": "#/components/schemas/RegulationType"
366
- },
367
- "rawDocument": {
368
- "type": "string"
369
- },
370
- "uniformDocument": {
371
- "type": "string"
372
- },
373
- "credentialId": {
374
- "type": "string"
375
- },
376
- "hash": {
377
- "type": "string"
378
- },
379
- "kmsKeyRef": {
380
- "type": "string"
381
- },
382
- "identifierMethod": {
383
- "type": "string"
384
- },
385
- "issuerCorrelationType": {
386
- "$ref": "#/components/schemas/CredentialCorrelationType"
387
- },
388
- "subjectCorrelationType": {
389
- "$ref": "#/components/schemas/CredentialCorrelationType"
390
- },
391
- "rpCorrelationType": {
392
- "$ref": "#/components/schemas/CredentialCorrelationType"
393
- },
394
- "isIssuerSigned": {
395
- "type": "boolean"
396
- },
397
- "issuerCorrelationId": {
398
- "type": "string"
399
- },
400
- "subjectCorrelationId": {
401
- "type": "string"
402
- },
403
- "rpCorrelationId": {
404
- "type": "string"
405
- },
406
- "verifiedState": {
407
- "$ref": "#/components/schemas/CredentialStateType"
408
- },
409
- "tenantId": {
410
- "type": "string"
411
- },
412
- "createdAt": {
413
- "type": "string",
414
- "format": "date-time"
415
- },
416
- "presentedAt": {
417
- "type": "string",
418
- "format": "date-time"
419
- },
420
- "lastUpdatedAt": {
421
- "type": "string",
422
- "format": "date-time"
423
- },
424
- "validUntil": {
425
- "type": "string",
426
- "format": "date-time"
427
- },
428
- "validFrom": {
429
- "type": "string",
430
- "format": "date-time"
431
- },
432
- "verifiedAt": {
433
- "type": "string",
434
- "format": "date-time"
435
- },
436
- "revokedAt": {
437
- "type": "string",
438
- "format": "date-time"
439
- }
440
- }
359
+ "$ref": "#/components/schemas/Partial<DigitalCredential>"
441
360
  }
442
361
  },
362
+ "Partial<DigitalCredential>": {
363
+ "type": "object",
364
+ "properties": {
365
+ "id": {
366
+ "type": "string"
367
+ },
368
+ "parentId": {
369
+ "type": "string"
370
+ },
371
+ "documentType": {
372
+ "$ref": "#/components/schemas/DocumentType"
373
+ },
374
+ "documentFormat": {
375
+ "$ref": "#/components/schemas/CredentialDocumentFormat"
376
+ },
377
+ "credentialRole": {
378
+ "$ref": "#/components/schemas/CredentialRole"
379
+ },
380
+ "regulationType": {
381
+ "$ref": "#/components/schemas/RegulationType"
382
+ },
383
+ "rawDocument": {
384
+ "type": "string"
385
+ },
386
+ "uniformDocument": {
387
+ "type": "string"
388
+ },
389
+ "credentialId": {
390
+ "type": "string"
391
+ },
392
+ "hash": {
393
+ "type": "string"
394
+ },
395
+ "kmsKeyRef": {
396
+ "type": "string"
397
+ },
398
+ "identifierMethod": {
399
+ "type": "string"
400
+ },
401
+ "issuerCorrelationType": {
402
+ "$ref": "#/components/schemas/CredentialCorrelationType"
403
+ },
404
+ "subjectCorrelationType": {
405
+ "$ref": "#/components/schemas/CredentialCorrelationType"
406
+ },
407
+ "rpCorrelationType": {
408
+ "$ref": "#/components/schemas/CredentialCorrelationType"
409
+ },
410
+ "isIssuerSigned": {
411
+ "type": "boolean"
412
+ },
413
+ "issuerCorrelationId": {
414
+ "type": "string"
415
+ },
416
+ "subjectCorrelationId": {
417
+ "type": "string"
418
+ },
419
+ "rpCorrelationId": {
420
+ "type": "string"
421
+ },
422
+ "verifiedState": {
423
+ "$ref": "#/components/schemas/CredentialStateType"
424
+ },
425
+ "tenantId": {
426
+ "type": "string"
427
+ },
428
+ "createdAt": {
429
+ "type": "string",
430
+ "format": "date-time"
431
+ },
432
+ "presentedAt": {
433
+ "type": "string",
434
+ "format": "date-time"
435
+ },
436
+ "lastUpdatedAt": {
437
+ "type": "string",
438
+ "format": "date-time"
439
+ },
440
+ "validUntil": {
441
+ "type": "string",
442
+ "format": "date-time"
443
+ },
444
+ "validFrom": {
445
+ "type": "string",
446
+ "format": "date-time"
447
+ },
448
+ "verifiedAt": {
449
+ "type": "string",
450
+ "format": "date-time"
451
+ },
452
+ "revokedAt": {
453
+ "type": "string",
454
+ "format": "date-time"
455
+ }
456
+ },
457
+ "additionalProperties": false
458
+ },
443
459
  "GetCredentialArgs": {
444
460
  "type": "object",
445
461
  "properties": {
@@ -449,7 +465,8 @@
449
465
  },
450
466
  "required": [
451
467
  "id"
452
- ]
468
+ ],
469
+ "additionalProperties": false
453
470
  },
454
471
  "GetCredentialsByClaimsArgs": {
455
472
  "type": "object",
@@ -466,7 +483,8 @@
466
483
  },
467
484
  "required": [
468
485
  "filter"
469
- ]
486
+ ],
487
+ "additionalProperties": false
470
488
  },
471
489
  "FindClaimsArgs": {
472
490
  "$ref": "#/components/schemas/FindArgs-TClaimsColumns"
@@ -496,7 +514,8 @@
496
514
  "type": "number",
497
515
  "description": "Returns at most this number of results from a {@link IDataStoreORM } query."
498
516
  }
499
- }
517
+ },
518
+ "additionalProperties": false
500
519
  },
501
520
  "Where-TClaimsColumns": {
502
521
  "type": "object",
@@ -532,6 +551,7 @@
532
551
  "required": [
533
552
  "column"
534
553
  ],
554
+ "additionalProperties": false,
535
555
  "description": "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
536
556
  },
537
557
  "TClaimsColumns": {
@@ -567,6 +587,7 @@
567
587
  "column",
568
588
  "direction"
569
589
  ],
590
+ "additionalProperties": false,
570
591
  "description": "Represents the sort order of results from a {@link FindArgs } query."
571
592
  },
572
593
  "UniqueDigitalCredential": {
@@ -603,7 +624,8 @@
603
624
  "required": [
604
625
  "hash",
605
626
  "digitalCredential"
606
- ]
627
+ ],
628
+ "additionalProperties": false
607
629
  },
608
630
  "OriginalVerifiableCredential": {
609
631
  "anyOf": [
@@ -878,7 +900,8 @@
878
900
  },
879
901
  "required": [
880
902
  "id"
881
- ]
903
+ ],
904
+ "additionalProperties": false
882
905
  },
883
906
  "IIssuerId": {
884
907
  "type": "string"
@@ -959,84 +982,7 @@
959
982
  "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."
960
983
  },
961
984
  "signedPayload": {
962
- "type": "object",
963
- "properties": {
964
- "vct": {
965
- "type": "string"
966
- },
967
- "iss": {
968
- "type": "string"
969
- },
970
- "iat": {
971
- "type": "number"
972
- },
973
- "nbf": {
974
- "type": "number"
975
- },
976
- "exp": {
977
- "type": "number"
978
- },
979
- "cnf": {
980
- "type": "object",
981
- "properties": {
982
- "jwk": {},
983
- "kid": {
984
- "type": "string"
985
- }
986
- }
987
- },
988
- "status": {
989
- "type": "object",
990
- "properties": {
991
- "idx": {
992
- "type": "number"
993
- },
994
- "uri": {
995
- "type": "string"
996
- }
997
- },
998
- "required": [
999
- "idx",
1000
- "uri"
1001
- ]
1002
- },
1003
- "sub": {
1004
- "type": "string"
1005
- },
1006
- "_sd": {
1007
- "type": "array",
1008
- "items": {
1009
- "type": "string"
1010
- }
1011
- },
1012
- "_sd_alg": {
1013
- "type": "string"
1014
- }
1015
- },
1016
- "additionalProperties": {
1017
- "anyOf": [
1018
- {
1019
- "not": {}
1020
- },
1021
- {
1022
- "not": {}
1023
- },
1024
- {
1025
- "type": [
1026
- "string",
1027
- "number",
1028
- "boolean",
1029
- "object",
1030
- "array"
1031
- ]
1032
- }
1033
- ]
1034
- },
1035
- "required": [
1036
- "iat",
1037
- "iss",
1038
- "vct"
1039
- ],
985
+ "$ref": "#/components/schemas/SdJwtSignedVerifiableCredentialPayload",
1040
986
  "description": "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
1041
987
  },
1042
988
  "decodedPayload": {
@@ -1060,6 +1006,7 @@
1060
1006
  "header",
1061
1007
  "payload"
1062
1008
  ],
1009
+ "additionalProperties": false,
1063
1010
  "description": "Key binding JWT"
1064
1011
  }
1065
1012
  },
@@ -1069,6 +1016,7 @@
1069
1016
  "signedPayload",
1070
1017
  "decodedPayload"
1071
1018
  ],
1019
+ "additionalProperties": false,
1072
1020
  "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."
1073
1021
  },
1074
1022
  "SdJwtDisclosure": {
@@ -1088,7 +1036,8 @@
1088
1036
  "encoded",
1089
1037
  "decoded",
1090
1038
  "digest"
1091
- ]
1039
+ ],
1040
+ "additionalProperties": false
1092
1041
  },
1093
1042
  "SdJwtDecodedDisclosure": {
1094
1043
  "anyOf": [
@@ -1103,36 +1052,7 @@
1103
1052
  "type": "string"
1104
1053
  },
1105
1054
  {
1106
- "anyOf": [
1107
- {
1108
- "type": "string"
1109
- },
1110
- {
1111
- "type": "number"
1112
- },
1113
- {
1114
- "type": "boolean"
1115
- },
1116
- {
1117
- "type": "object",
1118
- "additionalProperties": {
1119
- "anyOf": [
1120
- {
1121
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1122
- },
1123
- {
1124
- "not": {}
1125
- }
1126
- ]
1127
- }
1128
- },
1129
- {
1130
- "type": "array",
1131
- "items": {
1132
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1133
- }
1134
- }
1135
- ]
1055
+ "$ref": "#/components/schemas/JsonValue"
1136
1056
  }
1137
1057
  ],
1138
1058
  "maxItems": 3
@@ -1145,43 +1065,14 @@
1145
1065
  "type": "string"
1146
1066
  },
1147
1067
  {
1148
- "anyOf": [
1149
- {
1150
- "type": "string"
1151
- },
1152
- {
1153
- "type": "number"
1154
- },
1155
- {
1156
- "type": "boolean"
1157
- },
1158
- {
1159
- "type": "object",
1160
- "additionalProperties": {
1161
- "anyOf": [
1162
- {
1163
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1164
- },
1165
- {
1166
- "not": {}
1167
- }
1168
- ]
1169
- }
1170
- },
1171
- {
1172
- "type": "array",
1173
- "items": {
1174
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1175
- }
1176
- }
1177
- ]
1068
+ "$ref": "#/components/schemas/JsonValue"
1178
1069
  }
1179
1070
  ],
1180
1071
  "maxItems": 2
1181
1072
  }
1182
1073
  ]
1183
1074
  },
1184
- "alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006": {
1075
+ "JsonValue": {
1185
1076
  "anyOf": [
1186
1077
  {
1187
1078
  "type": "string"
@@ -1197,7 +1088,7 @@
1197
1088
  "additionalProperties": {
1198
1089
  "anyOf": [
1199
1090
  {
1200
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1091
+ "$ref": "#/components/schemas/JsonValue"
1201
1092
  },
1202
1093
  {
1203
1094
  "not": {}
@@ -1208,12 +1099,12 @@
1208
1099
  {
1209
1100
  "type": "array",
1210
1101
  "items": {
1211
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1102
+ "$ref": "#/components/schemas/JsonValue"
1212
1103
  }
1213
1104
  }
1214
1105
  ]
1215
1106
  },
1216
- "SdJwtDecodedVerifiableCredentialPayload": {
1107
+ "SdJwtSignedVerifiableCredentialPayload": {
1217
1108
  "type": "object",
1218
1109
  "properties": {
1219
1110
  "vct": {
@@ -1238,7 +1129,8 @@
1238
1129
  "kid": {
1239
1130
  "type": "string"
1240
1131
  }
1241
- }
1132
+ },
1133
+ "additionalProperties": false
1242
1134
  },
1243
1135
  "status": {
1244
1136
  "type": "object",
@@ -1253,47 +1145,159 @@
1253
1145
  "required": [
1254
1146
  "idx",
1255
1147
  "uri"
1256
- ]
1148
+ ],
1149
+ "additionalProperties": false
1257
1150
  },
1258
1151
  "sub": {
1259
1152
  "type": "string"
1153
+ },
1154
+ "_sd": {
1155
+ "type": "array",
1156
+ "items": {
1157
+ "type": "string"
1158
+ }
1159
+ },
1160
+ "_sd_alg": {
1161
+ "type": "string"
1260
1162
  }
1261
1163
  },
1262
- "required": [
1263
- "vct",
1264
- "iss",
1265
- "iat"
1266
- ],
1267
1164
  "additionalProperties": {
1268
1165
  "anyOf": [
1269
1166
  {
1270
- "type": "string"
1167
+ "$ref": "#/components/schemas/SdJwtJsonValue"
1271
1168
  },
1272
1169
  {
1273
- "type": "number"
1170
+ "not": {}
1274
1171
  },
1275
1172
  {
1276
- "type": "boolean"
1173
+ "$ref": "#/components/schemas/JsonValue"
1277
1174
  },
1278
1175
  {
1279
- "type": "object",
1280
- "additionalProperties": {
1281
- "anyOf": [
1282
- {
1283
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1176
+ "not": {}
1177
+ }
1178
+ ]
1179
+ },
1180
+ "required": [
1181
+ "iat",
1182
+ "iss",
1183
+ "vct"
1184
+ ],
1185
+ "description": "The signed payload of an SD-JWT. Includes fields such as `_sd`, `...` and `_sd_alg`"
1186
+ },
1187
+ "SdJwtJsonValue": {
1188
+ "anyOf": [
1189
+ {
1190
+ "type": "string"
1191
+ },
1192
+ {
1193
+ "type": "number"
1194
+ },
1195
+ {
1196
+ "type": "boolean"
1197
+ },
1198
+ {
1199
+ "type": "object",
1200
+ "properties": {
1201
+ "_sd": {
1202
+ "type": "array",
1203
+ "items": {
1204
+ "type": "string"
1205
+ }
1206
+ }
1207
+ },
1208
+ "additionalProperties": {
1209
+ "anyOf": [
1210
+ {
1211
+ "$ref": "#/components/schemas/SdJwtJsonValue"
1212
+ },
1213
+ {
1214
+ "not": {}
1215
+ }
1216
+ ]
1217
+ }
1218
+ },
1219
+ {
1220
+ "type": "array",
1221
+ "items": {
1222
+ "anyOf": [
1223
+ {
1224
+ "$ref": "#/components/schemas/SdJwtJsonValue"
1225
+ },
1226
+ {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "...": {
1230
+ "type": "string"
1231
+ }
1284
1232
  },
1285
- {
1286
- "not": {}
1287
- }
1288
- ]
1233
+ "required": [
1234
+ "..."
1235
+ ],
1236
+ "additionalProperties": false
1237
+ }
1238
+ ]
1239
+ }
1240
+ }
1241
+ ]
1242
+ },
1243
+ "SdJwtDecodedVerifiableCredentialPayload": {
1244
+ "type": "object",
1245
+ "properties": {
1246
+ "vct": {
1247
+ "type": "string"
1248
+ },
1249
+ "iss": {
1250
+ "type": "string"
1251
+ },
1252
+ "iat": {
1253
+ "type": "number"
1254
+ },
1255
+ "nbf": {
1256
+ "type": "number"
1257
+ },
1258
+ "exp": {
1259
+ "type": "number"
1260
+ },
1261
+ "cnf": {
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "jwk": {},
1265
+ "kid": {
1266
+ "type": "string"
1289
1267
  }
1290
1268
  },
1291
- {
1292
- "type": "array",
1293
- "items": {
1294
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-197-306-pes_sd-jwt-vc.d.ts-0-8006"
1269
+ "additionalProperties": false
1270
+ },
1271
+ "status": {
1272
+ "type": "object",
1273
+ "properties": {
1274
+ "idx": {
1275
+ "type": "number"
1276
+ },
1277
+ "uri": {
1278
+ "type": "string"
1295
1279
  }
1296
1280
  },
1281
+ "required": [
1282
+ "idx",
1283
+ "uri"
1284
+ ],
1285
+ "additionalProperties": false
1286
+ },
1287
+ "sub": {
1288
+ "type": "string"
1289
+ }
1290
+ },
1291
+ "required": [
1292
+ "vct",
1293
+ "iss",
1294
+ "iat"
1295
+ ],
1296
+ "additionalProperties": {
1297
+ "anyOf": [
1298
+ {
1299
+ "$ref": "#/components/schemas/JsonValue"
1300
+ },
1297
1301
  {
1298
1302
  "not": {}
1299
1303
  }
@@ -1350,6 +1354,7 @@
1350
1354
  },
1351
1355
  "com.sphereon.mdoc.data.device.DocumentCbor": {
1352
1356
  "type": "object",
1357
+ "additionalProperties": false,
1353
1358
  "properties": {}
1354
1359
  },
1355
1360
  "OriginalVerifiablePresentation": {
@@ -1472,6 +1477,7 @@
1472
1477
  "definition_id",
1473
1478
  "descriptor_map"
1474
1479
  ],
1480
+ "additionalProperties": false,
1475
1481
  "description": "It expresses how the inputs are presented as proofs to a Verifier."
1476
1482
  },
1477
1483
  "Descriptor": {
@@ -1498,6 +1504,7 @@
1498
1504
  "path",
1499
1505
  "format"
1500
1506
  ],
1507
+ "additionalProperties": false,
1501
1508
  "description": "descriptor map laying out the structure of the presentation submission."
1502
1509
  },
1503
1510
  "JwtDecodedVerifiablePresentation": {
@@ -1547,6 +1554,7 @@
1547
1554
  },
1548
1555
  "com.sphereon.mdoc.data.device.DeviceResponseCbor": {
1549
1556
  "type": "object",
1557
+ "additionalProperties": false,
1550
1558
  "properties": {}
1551
1559
  },
1552
1560
  "ICredential": {
@@ -1709,7 +1717,8 @@
1709
1717
  "required": [
1710
1718
  "credentialRole",
1711
1719
  "idOrHash"
1712
- ]
1720
+ ],
1721
+ "additionalProperties": false
1713
1722
  },
1714
1723
  "OptionalUniqueDigitalCredential": {
1715
1724
  "anyOf": [
@@ -1725,6 +1734,7 @@
1725
1734
  "anyOf": [
1726
1735
  {
1727
1736
  "type": "object",
1737
+ "additionalProperties": false,
1728
1738
  "properties": {
1729
1739
  "verifiedState": {
1730
1740
  "$ref": "#/components/schemas/CredentialStateType"
@@ -1748,6 +1758,7 @@
1748
1758
  },
1749
1759
  {
1750
1760
  "type": "object",
1761
+ "additionalProperties": false,
1751
1762
  "properties": {
1752
1763
  "verifiedState": {
1753
1764
  "$ref": "#/components/schemas/CredentialStateType"