@sphereon/ssi-sdk.credential-store 0.32.1-next.54 → 0.33.1-feature.jose.vcdm.55

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.
@@ -15,24 +15,31 @@
15
15
  "type": "number"
16
16
  },
17
17
  "hasher": {
18
- "$ref": "#/components/schemas/Hasher"
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,17 +101,60 @@
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"
102
114
  ]
103
115
  },
104
- "Hasher": {
105
- "$comment": "(data: string, alg: string) => Uint8Array",
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"
140
+ ]
141
+ },
142
+ "HasherSync": {
143
+ "$comment": "(data: string | ArrayBuffer, alg: string) => Uint8Array",
106
144
  "type": "object",
107
145
  "properties": {
108
146
  "namedArgs": {
109
147
  "type": "object",
110
148
  "properties": {
111
149
  "data": {
112
- "type": "string"
150
+ "anyOf": [
151
+ {
152
+ "type": "string"
153
+ },
154
+ {
155
+ "$ref": "#/components/schemas/ArrayBuffer"
156
+ }
157
+ ]
113
158
  },
114
159
  "alg": {
115
160
  "type": "string"
@@ -123,6 +168,18 @@
123
168
  }
124
169
  }
125
170
  },
171
+ "ArrayBuffer": {
172
+ "type": "object",
173
+ "properties": {
174
+ "byteLength": {
175
+ "type": "number"
176
+ }
177
+ },
178
+ "required": [
179
+ "byteLength"
180
+ ],
181
+ "additionalProperties": false
182
+ },
126
183
  "DigitalCredential": {
127
184
  "type": "object",
128
185
  "properties": {
@@ -231,7 +288,9 @@
231
288
  "issuerCorrelationId",
232
289
  "createdAt",
233
290
  "lastUpdatedAt"
234
- ]
291
+ ],
292
+ "additionalProperties": false,
293
+ "description": "DigitalCredential"
235
294
  },
236
295
  "DocumentType": {
237
296
  "type": "string",
@@ -251,41 +310,6 @@
251
310
  "MSO_MDOC"
252
311
  ]
253
312
  },
254
- "CredentialRole": {
255
- "type": "string",
256
- "enum": [
257
- "ISSUER",
258
- "VERIFIER",
259
- "HOLDER",
260
- "FEDERATION_TRUST_ANCHOR"
261
- ]
262
- },
263
- "RegulationType": {
264
- "type": "string",
265
- "enum": [
266
- "PID",
267
- "QEAA",
268
- "EAA",
269
- "NON_REGULATED"
270
- ]
271
- },
272
- "CredentialCorrelationType": {
273
- "type": "string",
274
- "enum": [
275
- "DID",
276
- "X509_SAN",
277
- "KID",
278
- "URL"
279
- ]
280
- },
281
- "CredentialStateType": {
282
- "type": "string",
283
- "enum": [
284
- "REVOKED",
285
- "VERIFIED",
286
- "EXPIRED"
287
- ]
288
- },
289
313
  "DeleteCredentialArgs": {
290
314
  "anyOf": [
291
315
  {
@@ -297,7 +321,8 @@
297
321
  },
298
322
  "required": [
299
323
  "id"
300
- ]
324
+ ],
325
+ "additionalProperties": false
301
326
  },
302
327
  {
303
328
  "type": "object",
@@ -308,7 +333,8 @@
308
333
  },
309
334
  "required": [
310
335
  "hash"
311
- ]
336
+ ],
337
+ "additionalProperties": false
312
338
  }
313
339
  ]
314
340
  },
@@ -324,107 +350,112 @@
324
350
  },
325
351
  "required": [
326
352
  "filter"
327
- ]
353
+ ],
354
+ "additionalProperties": false
328
355
  },
329
356
  "FindDigitalCredentialArgs": {
330
357
  "type": "array",
331
358
  "items": {
332
- "type": "object",
333
- "properties": {
334
- "id": {
335
- "type": "string"
336
- },
337
- "parentId": {
338
- "type": "string"
339
- },
340
- "documentType": {
341
- "$ref": "#/components/schemas/DocumentType"
342
- },
343
- "documentFormat": {
344
- "$ref": "#/components/schemas/CredentialDocumentFormat"
345
- },
346
- "credentialRole": {
347
- "$ref": "#/components/schemas/CredentialRole"
348
- },
349
- "regulationType": {
350
- "$ref": "#/components/schemas/RegulationType"
351
- },
352
- "rawDocument": {
353
- "type": "string"
354
- },
355
- "uniformDocument": {
356
- "type": "string"
357
- },
358
- "credentialId": {
359
- "type": "string"
360
- },
361
- "hash": {
362
- "type": "string"
363
- },
364
- "kmsKeyRef": {
365
- "type": "string"
366
- },
367
- "identifierMethod": {
368
- "type": "string"
369
- },
370
- "issuerCorrelationType": {
371
- "$ref": "#/components/schemas/CredentialCorrelationType"
372
- },
373
- "subjectCorrelationType": {
374
- "$ref": "#/components/schemas/CredentialCorrelationType"
375
- },
376
- "rpCorrelationType": {
377
- "$ref": "#/components/schemas/CredentialCorrelationType"
378
- },
379
- "isIssuerSigned": {
380
- "type": "boolean"
381
- },
382
- "issuerCorrelationId": {
383
- "type": "string"
384
- },
385
- "subjectCorrelationId": {
386
- "type": "string"
387
- },
388
- "rpCorrelationId": {
389
- "type": "string"
390
- },
391
- "verifiedState": {
392
- "$ref": "#/components/schemas/CredentialStateType"
393
- },
394
- "tenantId": {
395
- "type": "string"
396
- },
397
- "createdAt": {
398
- "type": "string",
399
- "format": "date-time"
400
- },
401
- "presentedAt": {
402
- "type": "string",
403
- "format": "date-time"
404
- },
405
- "lastUpdatedAt": {
406
- "type": "string",
407
- "format": "date-time"
408
- },
409
- "validUntil": {
410
- "type": "string",
411
- "format": "date-time"
412
- },
413
- "validFrom": {
414
- "type": "string",
415
- "format": "date-time"
416
- },
417
- "verifiedAt": {
418
- "type": "string",
419
- "format": "date-time"
420
- },
421
- "revokedAt": {
422
- "type": "string",
423
- "format": "date-time"
424
- }
425
- }
359
+ "$ref": "#/components/schemas/Partial<DigitalCredential>"
426
360
  }
427
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
+ },
428
459
  "GetCredentialArgs": {
429
460
  "type": "object",
430
461
  "properties": {
@@ -434,7 +465,8 @@
434
465
  },
435
466
  "required": [
436
467
  "id"
437
- ]
468
+ ],
469
+ "additionalProperties": false
438
470
  },
439
471
  "GetCredentialsByClaimsArgs": {
440
472
  "type": "object",
@@ -451,7 +483,8 @@
451
483
  },
452
484
  "required": [
453
485
  "filter"
454
- ]
486
+ ],
487
+ "additionalProperties": false
455
488
  },
456
489
  "FindClaimsArgs": {
457
490
  "$ref": "#/components/schemas/FindArgs-TClaimsColumns"
@@ -481,7 +514,8 @@
481
514
  "type": "number",
482
515
  "description": "Returns at most this number of results from a {@link IDataStoreORM } query."
483
516
  }
484
- }
517
+ },
518
+ "additionalProperties": false
485
519
  },
486
520
  "Where-TClaimsColumns": {
487
521
  "type": "object",
@@ -517,6 +551,7 @@
517
551
  "required": [
518
552
  "column"
519
553
  ],
554
+ "additionalProperties": false,
520
555
  "description": "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
521
556
  },
522
557
  "TClaimsColumns": {
@@ -552,6 +587,7 @@
552
587
  "column",
553
588
  "direction"
554
589
  ],
590
+ "additionalProperties": false,
555
591
  "description": "Represents the sort order of results from a {@link FindArgs } query."
556
592
  },
557
593
  "UniqueDigitalCredential": {
@@ -588,7 +624,8 @@
588
624
  "required": [
589
625
  "hash",
590
626
  "digitalCredential"
591
- ]
627
+ ],
628
+ "additionalProperties": false
592
629
  },
593
630
  "OriginalVerifiableCredential": {
594
631
  "anyOf": [
@@ -863,7 +900,8 @@
863
900
  },
864
901
  "required": [
865
902
  "id"
866
- ]
903
+ ],
904
+ "additionalProperties": false
867
905
  },
868
906
  "IIssuerId": {
869
907
  "type": "string"
@@ -944,84 +982,7 @@
944
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."
945
983
  },
946
984
  "signedPayload": {
947
- "type": "object",
948
- "properties": {
949
- "vct": {
950
- "type": "string"
951
- },
952
- "iss": {
953
- "type": "string"
954
- },
955
- "iat": {
956
- "type": "number"
957
- },
958
- "nbf": {
959
- "type": "number"
960
- },
961
- "exp": {
962
- "type": "number"
963
- },
964
- "cnf": {
965
- "type": "object",
966
- "properties": {
967
- "jwk": {},
968
- "kid": {
969
- "type": "string"
970
- }
971
- }
972
- },
973
- "status": {
974
- "type": "object",
975
- "properties": {
976
- "idx": {
977
- "type": "number"
978
- },
979
- "uri": {
980
- "type": "string"
981
- }
982
- },
983
- "required": [
984
- "idx",
985
- "uri"
986
- ]
987
- },
988
- "sub": {
989
- "type": "string"
990
- },
991
- "_sd": {
992
- "type": "array",
993
- "items": {
994
- "type": "string"
995
- }
996
- },
997
- "_sd_alg": {
998
- "type": "string"
999
- }
1000
- },
1001
- "additionalProperties": {
1002
- "anyOf": [
1003
- {
1004
- "not": {}
1005
- },
1006
- {
1007
- "not": {}
1008
- },
1009
- {
1010
- "type": [
1011
- "string",
1012
- "number",
1013
- "boolean",
1014
- "object",
1015
- "array"
1016
- ]
1017
- }
1018
- ]
1019
- },
1020
- "required": [
1021
- "iat",
1022
- "iss",
1023
- "vct"
1024
- ],
985
+ "$ref": "#/components/schemas/SdJwtSignedVerifiableCredentialPayload",
1025
986
  "description": "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
1026
987
  },
1027
988
  "decodedPayload": {
@@ -1045,6 +1006,7 @@
1045
1006
  "header",
1046
1007
  "payload"
1047
1008
  ],
1009
+ "additionalProperties": false,
1048
1010
  "description": "Key binding JWT"
1049
1011
  }
1050
1012
  },
@@ -1054,6 +1016,7 @@
1054
1016
  "signedPayload",
1055
1017
  "decodedPayload"
1056
1018
  ],
1019
+ "additionalProperties": false,
1057
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."
1058
1021
  },
1059
1022
  "SdJwtDisclosure": {
@@ -1073,7 +1036,8 @@
1073
1036
  "encoded",
1074
1037
  "decoded",
1075
1038
  "digest"
1076
- ]
1039
+ ],
1040
+ "additionalProperties": false
1077
1041
  },
1078
1042
  "SdJwtDecodedDisclosure": {
1079
1043
  "anyOf": [
@@ -1088,36 +1052,7 @@
1088
1052
  "type": "string"
1089
1053
  },
1090
1054
  {
1091
- "anyOf": [
1092
- {
1093
- "type": "string"
1094
- },
1095
- {
1096
- "type": "number"
1097
- },
1098
- {
1099
- "type": "boolean"
1100
- },
1101
- {
1102
- "type": "object",
1103
- "additionalProperties": {
1104
- "anyOf": [
1105
- {
1106
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1107
- },
1108
- {
1109
- "not": {}
1110
- }
1111
- ]
1112
- }
1113
- },
1114
- {
1115
- "type": "array",
1116
- "items": {
1117
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1118
- }
1119
- }
1120
- ]
1055
+ "$ref": "#/components/schemas/JsonValue"
1121
1056
  }
1122
1057
  ],
1123
1058
  "maxItems": 3
@@ -1130,43 +1065,14 @@
1130
1065
  "type": "string"
1131
1066
  },
1132
1067
  {
1133
- "anyOf": [
1134
- {
1135
- "type": "string"
1136
- },
1137
- {
1138
- "type": "number"
1139
- },
1140
- {
1141
- "type": "boolean"
1142
- },
1143
- {
1144
- "type": "object",
1145
- "additionalProperties": {
1146
- "anyOf": [
1147
- {
1148
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1149
- },
1150
- {
1151
- "not": {}
1152
- }
1153
- ]
1154
- }
1155
- },
1156
- {
1157
- "type": "array",
1158
- "items": {
1159
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1160
- }
1161
- }
1162
- ]
1068
+ "$ref": "#/components/schemas/JsonValue"
1163
1069
  }
1164
1070
  ],
1165
1071
  "maxItems": 2
1166
1072
  }
1167
1073
  ]
1168
1074
  },
1169
- "alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939": {
1075
+ "JsonValue": {
1170
1076
  "anyOf": [
1171
1077
  {
1172
1078
  "type": "string"
@@ -1182,7 +1088,7 @@
1182
1088
  "additionalProperties": {
1183
1089
  "anyOf": [
1184
1090
  {
1185
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1091
+ "$ref": "#/components/schemas/JsonValue"
1186
1092
  },
1187
1093
  {
1188
1094
  "not": {}
@@ -1193,12 +1099,12 @@
1193
1099
  {
1194
1100
  "type": "array",
1195
1101
  "items": {
1196
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1102
+ "$ref": "#/components/schemas/JsonValue"
1197
1103
  }
1198
1104
  }
1199
1105
  ]
1200
1106
  },
1201
- "SdJwtDecodedVerifiableCredentialPayload": {
1107
+ "SdJwtSignedVerifiableCredentialPayload": {
1202
1108
  "type": "object",
1203
1109
  "properties": {
1204
1110
  "vct": {
@@ -1223,7 +1129,8 @@
1223
1129
  "kid": {
1224
1130
  "type": "string"
1225
1131
  }
1226
- }
1132
+ },
1133
+ "additionalProperties": false
1227
1134
  },
1228
1135
  "status": {
1229
1136
  "type": "object",
@@ -1238,47 +1145,159 @@
1238
1145
  "required": [
1239
1146
  "idx",
1240
1147
  "uri"
1241
- ]
1148
+ ],
1149
+ "additionalProperties": false
1242
1150
  },
1243
1151
  "sub": {
1244
1152
  "type": "string"
1153
+ },
1154
+ "_sd": {
1155
+ "type": "array",
1156
+ "items": {
1157
+ "type": "string"
1158
+ }
1159
+ },
1160
+ "_sd_alg": {
1161
+ "type": "string"
1245
1162
  }
1246
1163
  },
1247
- "required": [
1248
- "vct",
1249
- "iss",
1250
- "iat"
1251
- ],
1252
1164
  "additionalProperties": {
1253
1165
  "anyOf": [
1254
1166
  {
1255
- "type": "string"
1167
+ "$ref": "#/components/schemas/SdJwtJsonValue"
1256
1168
  },
1257
1169
  {
1258
- "type": "number"
1170
+ "not": {}
1259
1171
  },
1260
1172
  {
1261
- "type": "boolean"
1173
+ "$ref": "#/components/schemas/JsonValue"
1262
1174
  },
1263
1175
  {
1264
- "type": "object",
1265
- "additionalProperties": {
1266
- "anyOf": [
1267
- {
1268
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
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
+ }
1269
1232
  },
1270
- {
1271
- "not": {}
1272
- }
1273
- ]
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"
1274
1267
  }
1275
1268
  },
1276
- {
1277
- "type": "array",
1278
- "items": {
1279
- "$ref": "#/components/schemas/alias-pes_sd-jwt-vc.d.ts-158-267-pes_sd-jwt-vc.d.ts-0-7939"
1269
+ "additionalProperties": false
1270
+ },
1271
+ "status": {
1272
+ "type": "object",
1273
+ "properties": {
1274
+ "idx": {
1275
+ "type": "number"
1276
+ },
1277
+ "uri": {
1278
+ "type": "string"
1280
1279
  }
1281
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
+ },
1282
1301
  {
1283
1302
  "not": {}
1284
1303
  }
@@ -1335,6 +1354,7 @@
1335
1354
  },
1336
1355
  "com.sphereon.mdoc.data.device.DocumentCbor": {
1337
1356
  "type": "object",
1357
+ "additionalProperties": false,
1338
1358
  "properties": {}
1339
1359
  },
1340
1360
  "OriginalVerifiablePresentation": {
@@ -1457,6 +1477,7 @@
1457
1477
  "definition_id",
1458
1478
  "descriptor_map"
1459
1479
  ],
1480
+ "additionalProperties": false,
1460
1481
  "description": "It expresses how the inputs are presented as proofs to a Verifier."
1461
1482
  },
1462
1483
  "Descriptor": {
@@ -1483,6 +1504,7 @@
1483
1504
  "path",
1484
1505
  "format"
1485
1506
  ],
1507
+ "additionalProperties": false,
1486
1508
  "description": "descriptor map laying out the structure of the presentation submission."
1487
1509
  },
1488
1510
  "JwtDecodedVerifiablePresentation": {
@@ -1532,6 +1554,7 @@
1532
1554
  },
1533
1555
  "com.sphereon.mdoc.data.device.DeviceResponseCbor": {
1534
1556
  "type": "object",
1557
+ "additionalProperties": false,
1535
1558
  "properties": {}
1536
1559
  },
1537
1560
  "ICredential": {
@@ -1694,7 +1717,8 @@
1694
1717
  "required": [
1695
1718
  "credentialRole",
1696
1719
  "idOrHash"
1697
- ]
1720
+ ],
1721
+ "additionalProperties": false
1698
1722
  },
1699
1723
  "OptionalUniqueDigitalCredential": {
1700
1724
  "anyOf": [
@@ -1710,6 +1734,7 @@
1710
1734
  "anyOf": [
1711
1735
  {
1712
1736
  "type": "object",
1737
+ "additionalProperties": false,
1713
1738
  "properties": {
1714
1739
  "verifiedState": {
1715
1740
  "$ref": "#/components/schemas/CredentialStateType"
@@ -1733,6 +1758,7 @@
1733
1758
  },
1734
1759
  {
1735
1760
  "type": "object",
1761
+ "additionalProperties": false,
1736
1762
  "properties": {
1737
1763
  "verifiedState": {
1738
1764
  "$ref": "#/components/schemas/CredentialStateType"