@sphereon/ssi-sdk.credential-store 0.33.1-next.2 → 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.
- package/dist/index.cjs +2056 -0
- package/dist/index.cjs.map +1 -0
- package/dist/{ssi-sdk.credential-store.d.ts → index.d.cts} +235 -286
- package/dist/index.d.ts +231 -8
- package/dist/index.js +2035 -34
- package/dist/index.js.map +1 -1
- package/package.json +26 -15
- package/plugin.schema.json +332 -504
- package/src/agent/CredentialStore.ts +6 -6
- package/src/index.ts +2 -2
- package/src/types/ICredentialStore.ts +7 -7
- package/src/utils/filters.ts +1 -1
- package/dist/agent/CredentialStore.d.ts +0 -45
- package/dist/agent/CredentialStore.d.ts.map +0 -1
- package/dist/agent/CredentialStore.js +0 -253
- package/dist/agent/CredentialStore.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/tsdoc-metadata.json +0 -11
- package/dist/types/ICredentialStore.d.ts +0 -106
- package/dist/types/ICredentialStore.d.ts.map +0 -1
- package/dist/types/ICredentialStore.js +0 -13
- package/dist/types/ICredentialStore.js.map +0 -1
- package/dist/types/claims.d.ts +0 -43
- package/dist/types/claims.d.ts.map +0 -1
- package/dist/types/claims.js +0 -3
- package/dist/types/claims.js.map +0 -1
- package/dist/utils/filters.d.ts +0 -36
- package/dist/utils/filters.d.ts.map +0 -1
- package/dist/utils/filters.js +0 -90
- package/dist/utils/filters.js.map +0 -1
package/plugin.schema.json
CHANGED
|
@@ -17,22 +17,27 @@
|
|
|
17
17
|
"hasher": {
|
|
18
18
|
"$ref": "#/components/schemas/HasherSync"
|
|
19
19
|
}
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
|
-
"required": [
|
|
24
|
-
|
|
25
|
-
]
|
|
24
|
+
"required": ["credential"],
|
|
25
|
+
"additionalProperties": false
|
|
26
26
|
},
|
|
27
27
|
"AddDigitalCredential": {
|
|
28
|
+
"$ref": "#/components/schemas/Omit<NonPersistedDigitalCredential,(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>"
|
|
29
|
+
},
|
|
30
|
+
"Omit<NonPersistedDigitalCredential,(\"id\"|\"documentType\"|\"documentFormat\"|\"uniformDocument\"|\"hash\"|\"createdAt\"|\"lastUpdatedAt\"|\"validFrom\"|\"validUntil\")>": {
|
|
31
|
+
"$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\")>>"
|
|
32
|
+
},
|
|
33
|
+
"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
34
|
"type": "object",
|
|
29
35
|
"properties": {
|
|
30
36
|
"parentId": {
|
|
31
37
|
"type": "string"
|
|
32
38
|
},
|
|
33
39
|
"credentialRole": {
|
|
34
|
-
"
|
|
35
|
-
"properties": {}
|
|
40
|
+
"$ref": "#/components/schemas/CredentialRole"
|
|
36
41
|
},
|
|
37
42
|
"rawDocument": {
|
|
38
43
|
"type": "string"
|
|
@@ -47,16 +52,13 @@
|
|
|
47
52
|
"type": "string"
|
|
48
53
|
},
|
|
49
54
|
"issuerCorrelationType": {
|
|
50
|
-
"
|
|
51
|
-
"properties": {}
|
|
55
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
52
56
|
},
|
|
53
57
|
"subjectCorrelationType": {
|
|
54
|
-
"
|
|
55
|
-
"properties": {}
|
|
58
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
56
59
|
},
|
|
57
60
|
"rpCorrelationType": {
|
|
58
|
-
"
|
|
59
|
-
"properties": {}
|
|
61
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
60
62
|
},
|
|
61
63
|
"isIssuerSigned": {
|
|
62
64
|
"type": "boolean"
|
|
@@ -71,8 +73,7 @@
|
|
|
71
73
|
"type": "string"
|
|
72
74
|
},
|
|
73
75
|
"verifiedState": {
|
|
74
|
-
"
|
|
75
|
-
"properties": {}
|
|
76
|
+
"$ref": "#/components/schemas/CredentialStateType"
|
|
76
77
|
},
|
|
77
78
|
"tenantId": {
|
|
78
79
|
"type": "string"
|
|
@@ -90,16 +91,27 @@
|
|
|
90
91
|
"format": "date-time"
|
|
91
92
|
},
|
|
92
93
|
"regulationType": {
|
|
93
|
-
"
|
|
94
|
-
"properties": {}
|
|
94
|
+
"$ref": "#/components/schemas/RegulationType"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
|
-
"required": [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
]
|
|
97
|
+
"required": ["credentialRole", "rawDocument", "issuerCorrelationType", "issuerCorrelationId"],
|
|
98
|
+
"additionalProperties": false
|
|
99
|
+
},
|
|
100
|
+
"CredentialRole": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": ["ISSUER", "VERIFIER", "HOLDER", "FEDERATION_TRUST_ANCHOR"]
|
|
103
|
+
},
|
|
104
|
+
"CredentialCorrelationType": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"enum": ["DID", "X509_SAN", "KID", "URL"]
|
|
107
|
+
},
|
|
108
|
+
"CredentialStateType": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": ["REVOKED", "VERIFIED", "EXPIRED"]
|
|
111
|
+
},
|
|
112
|
+
"RegulationType": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"enum": ["PID", "QEAA", "EAA", "NON_REGULATED"]
|
|
103
115
|
},
|
|
104
116
|
"HasherSync": {
|
|
105
117
|
"$comment": "(data: string | ArrayBuffer, alg: string) => Uint8Array",
|
|
@@ -114,15 +126,7 @@
|
|
|
114
126
|
"type": "string"
|
|
115
127
|
},
|
|
116
128
|
{
|
|
117
|
-
"
|
|
118
|
-
"properties": {
|
|
119
|
-
"byteLength": {
|
|
120
|
-
"type": "number"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"required": [
|
|
124
|
-
"byteLength"
|
|
125
|
-
]
|
|
129
|
+
"$ref": "#/components/schemas/ArrayBuffer"
|
|
126
130
|
}
|
|
127
131
|
]
|
|
128
132
|
},
|
|
@@ -130,14 +134,21 @@
|
|
|
130
134
|
"type": "string"
|
|
131
135
|
}
|
|
132
136
|
},
|
|
133
|
-
"required": [
|
|
134
|
-
"data",
|
|
135
|
-
"alg"
|
|
136
|
-
],
|
|
137
|
+
"required": ["data", "alg"],
|
|
137
138
|
"additionalProperties": false
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
},
|
|
142
|
+
"ArrayBuffer": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"byteLength": {
|
|
146
|
+
"type": "number"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"required": ["byteLength"],
|
|
150
|
+
"additionalProperties": false
|
|
151
|
+
},
|
|
141
152
|
"DigitalCredential": {
|
|
142
153
|
"type": "object",
|
|
143
154
|
"properties": {
|
|
@@ -246,60 +257,17 @@
|
|
|
246
257
|
"issuerCorrelationId",
|
|
247
258
|
"createdAt",
|
|
248
259
|
"lastUpdatedAt"
|
|
249
|
-
]
|
|
260
|
+
],
|
|
261
|
+
"additionalProperties": false,
|
|
262
|
+
"description": "DigitalCredential"
|
|
250
263
|
},
|
|
251
264
|
"DocumentType": {
|
|
252
265
|
"type": "string",
|
|
253
|
-
"enum": [
|
|
254
|
-
"VC",
|
|
255
|
-
"VP",
|
|
256
|
-
"P",
|
|
257
|
-
"C"
|
|
258
|
-
]
|
|
266
|
+
"enum": ["VC", "VP", "P", "C"]
|
|
259
267
|
},
|
|
260
268
|
"CredentialDocumentFormat": {
|
|
261
269
|
"type": "string",
|
|
262
|
-
"enum": [
|
|
263
|
-
"JSON_LD",
|
|
264
|
-
"JWT",
|
|
265
|
-
"SD_JWT",
|
|
266
|
-
"MSO_MDOC"
|
|
267
|
-
]
|
|
268
|
-
},
|
|
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
|
-
]
|
|
270
|
+
"enum": ["JSON_LD", "JWT", "SD_JWT", "MSO_MDOC"]
|
|
303
271
|
},
|
|
304
272
|
"DeleteCredentialArgs": {
|
|
305
273
|
"anyOf": [
|
|
@@ -310,9 +278,8 @@
|
|
|
310
278
|
"type": "string"
|
|
311
279
|
}
|
|
312
280
|
},
|
|
313
|
-
"required": [
|
|
314
|
-
|
|
315
|
-
]
|
|
281
|
+
"required": ["id"],
|
|
282
|
+
"additionalProperties": false
|
|
316
283
|
},
|
|
317
284
|
{
|
|
318
285
|
"type": "object",
|
|
@@ -321,9 +288,8 @@
|
|
|
321
288
|
"type": "string"
|
|
322
289
|
}
|
|
323
290
|
},
|
|
324
|
-
"required": [
|
|
325
|
-
|
|
326
|
-
]
|
|
291
|
+
"required": ["hash"],
|
|
292
|
+
"additionalProperties": false
|
|
327
293
|
}
|
|
328
294
|
]
|
|
329
295
|
},
|
|
@@ -337,109 +303,112 @@
|
|
|
337
303
|
"$ref": "#/components/schemas/FindDigitalCredentialArgs"
|
|
338
304
|
}
|
|
339
305
|
},
|
|
340
|
-
"required": [
|
|
341
|
-
|
|
342
|
-
]
|
|
306
|
+
"required": ["filter"],
|
|
307
|
+
"additionalProperties": false
|
|
343
308
|
},
|
|
344
309
|
"FindDigitalCredentialArgs": {
|
|
345
310
|
"type": "array",
|
|
346
311
|
"items": {
|
|
347
|
-
"
|
|
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
|
-
}
|
|
312
|
+
"$ref": "#/components/schemas/Partial<DigitalCredential>"
|
|
441
313
|
}
|
|
442
314
|
},
|
|
315
|
+
"Partial<DigitalCredential>": {
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"id": {
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"parentId": {
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
"documentType": {
|
|
325
|
+
"$ref": "#/components/schemas/DocumentType"
|
|
326
|
+
},
|
|
327
|
+
"documentFormat": {
|
|
328
|
+
"$ref": "#/components/schemas/CredentialDocumentFormat"
|
|
329
|
+
},
|
|
330
|
+
"credentialRole": {
|
|
331
|
+
"$ref": "#/components/schemas/CredentialRole"
|
|
332
|
+
},
|
|
333
|
+
"regulationType": {
|
|
334
|
+
"$ref": "#/components/schemas/RegulationType"
|
|
335
|
+
},
|
|
336
|
+
"rawDocument": {
|
|
337
|
+
"type": "string"
|
|
338
|
+
},
|
|
339
|
+
"uniformDocument": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"credentialId": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
},
|
|
345
|
+
"hash": {
|
|
346
|
+
"type": "string"
|
|
347
|
+
},
|
|
348
|
+
"kmsKeyRef": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
"identifierMethod": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
"issuerCorrelationType": {
|
|
355
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
356
|
+
},
|
|
357
|
+
"subjectCorrelationType": {
|
|
358
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
359
|
+
},
|
|
360
|
+
"rpCorrelationType": {
|
|
361
|
+
"$ref": "#/components/schemas/CredentialCorrelationType"
|
|
362
|
+
},
|
|
363
|
+
"isIssuerSigned": {
|
|
364
|
+
"type": "boolean"
|
|
365
|
+
},
|
|
366
|
+
"issuerCorrelationId": {
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
369
|
+
"subjectCorrelationId": {
|
|
370
|
+
"type": "string"
|
|
371
|
+
},
|
|
372
|
+
"rpCorrelationId": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
},
|
|
375
|
+
"verifiedState": {
|
|
376
|
+
"$ref": "#/components/schemas/CredentialStateType"
|
|
377
|
+
},
|
|
378
|
+
"tenantId": {
|
|
379
|
+
"type": "string"
|
|
380
|
+
},
|
|
381
|
+
"createdAt": {
|
|
382
|
+
"type": "string",
|
|
383
|
+
"format": "date-time"
|
|
384
|
+
},
|
|
385
|
+
"presentedAt": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"format": "date-time"
|
|
388
|
+
},
|
|
389
|
+
"lastUpdatedAt": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"format": "date-time"
|
|
392
|
+
},
|
|
393
|
+
"validUntil": {
|
|
394
|
+
"type": "string",
|
|
395
|
+
"format": "date-time"
|
|
396
|
+
},
|
|
397
|
+
"validFrom": {
|
|
398
|
+
"type": "string",
|
|
399
|
+
"format": "date-time"
|
|
400
|
+
},
|
|
401
|
+
"verifiedAt": {
|
|
402
|
+
"type": "string",
|
|
403
|
+
"format": "date-time"
|
|
404
|
+
},
|
|
405
|
+
"revokedAt": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"format": "date-time"
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"additionalProperties": false
|
|
411
|
+
},
|
|
443
412
|
"GetCredentialArgs": {
|
|
444
413
|
"type": "object",
|
|
445
414
|
"properties": {
|
|
@@ -447,9 +416,8 @@
|
|
|
447
416
|
"type": "string"
|
|
448
417
|
}
|
|
449
418
|
},
|
|
450
|
-
"required": [
|
|
451
|
-
|
|
452
|
-
]
|
|
419
|
+
"required": ["id"],
|
|
420
|
+
"additionalProperties": false
|
|
453
421
|
},
|
|
454
422
|
"GetCredentialsByClaimsArgs": {
|
|
455
423
|
"type": "object",
|
|
@@ -464,9 +432,8 @@
|
|
|
464
432
|
"type": "string"
|
|
465
433
|
}
|
|
466
434
|
},
|
|
467
|
-
"required": [
|
|
468
|
-
|
|
469
|
-
]
|
|
435
|
+
"required": ["filter"],
|
|
436
|
+
"additionalProperties": false
|
|
470
437
|
},
|
|
471
438
|
"FindClaimsArgs": {
|
|
472
439
|
"$ref": "#/components/schemas/FindArgs-TClaimsColumns"
|
|
@@ -496,7 +463,8 @@
|
|
|
496
463
|
"type": "number",
|
|
497
464
|
"description": "Returns at most this number of results from a {@link IDataStoreORM } query."
|
|
498
465
|
}
|
|
499
|
-
}
|
|
466
|
+
},
|
|
467
|
+
"additionalProperties": false
|
|
500
468
|
},
|
|
501
469
|
"Where-TClaimsColumns": {
|
|
502
470
|
"type": "object",
|
|
@@ -515,39 +483,16 @@
|
|
|
515
483
|
},
|
|
516
484
|
"op": {
|
|
517
485
|
"type": "string",
|
|
518
|
-
"enum": [
|
|
519
|
-
"LessThan",
|
|
520
|
-
"LessThanOrEqual",
|
|
521
|
-
"MoreThan",
|
|
522
|
-
"MoreThanOrEqual",
|
|
523
|
-
"Equal",
|
|
524
|
-
"Like",
|
|
525
|
-
"Between",
|
|
526
|
-
"In",
|
|
527
|
-
"Any",
|
|
528
|
-
"IsNull"
|
|
529
|
-
]
|
|
486
|
+
"enum": ["LessThan", "LessThanOrEqual", "MoreThan", "MoreThanOrEqual", "Equal", "Like", "Between", "In", "Any", "IsNull"]
|
|
530
487
|
}
|
|
531
488
|
},
|
|
532
|
-
"required": [
|
|
533
|
-
|
|
534
|
-
],
|
|
489
|
+
"required": ["column"],
|
|
490
|
+
"additionalProperties": false,
|
|
535
491
|
"description": "Represents a WHERE predicate for a {@link FindArgs } query. In situations where multiple WHERE predicates are present, they are combined with AND."
|
|
536
492
|
},
|
|
537
493
|
"TClaimsColumns": {
|
|
538
494
|
"type": "string",
|
|
539
|
-
"enum": [
|
|
540
|
-
"context",
|
|
541
|
-
"credentialType",
|
|
542
|
-
"type",
|
|
543
|
-
"value",
|
|
544
|
-
"isObj",
|
|
545
|
-
"id",
|
|
546
|
-
"issuer",
|
|
547
|
-
"subject",
|
|
548
|
-
"expirationDate",
|
|
549
|
-
"issuanceDate"
|
|
550
|
-
]
|
|
495
|
+
"enum": ["context", "credentialType", "type", "value", "isObj", "id", "issuer", "subject", "expirationDate", "issuanceDate"]
|
|
551
496
|
},
|
|
552
497
|
"Order-TClaimsColumns": {
|
|
553
498
|
"type": "object",
|
|
@@ -557,16 +502,11 @@
|
|
|
557
502
|
},
|
|
558
503
|
"direction": {
|
|
559
504
|
"type": "string",
|
|
560
|
-
"enum": [
|
|
561
|
-
"ASC",
|
|
562
|
-
"DESC"
|
|
563
|
-
]
|
|
505
|
+
"enum": ["ASC", "DESC"]
|
|
564
506
|
}
|
|
565
507
|
},
|
|
566
|
-
"required": [
|
|
567
|
-
|
|
568
|
-
"direction"
|
|
569
|
-
],
|
|
508
|
+
"required": ["column", "direction"],
|
|
509
|
+
"additionalProperties": false,
|
|
570
510
|
"description": "Represents the sort order of results from a {@link FindArgs } query."
|
|
571
511
|
},
|
|
572
512
|
"UniqueDigitalCredential": {
|
|
@@ -600,10 +540,8 @@
|
|
|
600
540
|
"$ref": "#/components/schemas/IVerifiablePresentation"
|
|
601
541
|
}
|
|
602
542
|
},
|
|
603
|
-
"required": [
|
|
604
|
-
|
|
605
|
-
"digitalCredential"
|
|
606
|
-
]
|
|
543
|
+
"required": ["hash", "digitalCredential"],
|
|
544
|
+
"additionalProperties": false
|
|
607
545
|
},
|
|
608
546
|
"OriginalVerifiableCredential": {
|
|
609
547
|
"anyOf": [
|
|
@@ -735,14 +673,7 @@
|
|
|
735
673
|
"type": "string"
|
|
736
674
|
}
|
|
737
675
|
},
|
|
738
|
-
"required": [
|
|
739
|
-
"@context",
|
|
740
|
-
"credentialSubject",
|
|
741
|
-
"issuanceDate",
|
|
742
|
-
"issuer",
|
|
743
|
-
"proof",
|
|
744
|
-
"type"
|
|
745
|
-
]
|
|
676
|
+
"required": ["@context", "credentialSubject", "issuanceDate", "issuer", "proof", "type"]
|
|
746
677
|
},
|
|
747
678
|
"IProof": {
|
|
748
679
|
"type": "object",
|
|
@@ -801,12 +732,7 @@
|
|
|
801
732
|
}
|
|
802
733
|
}
|
|
803
734
|
},
|
|
804
|
-
"required": [
|
|
805
|
-
"type",
|
|
806
|
-
"created",
|
|
807
|
-
"proofPurpose",
|
|
808
|
-
"verificationMethod"
|
|
809
|
-
]
|
|
735
|
+
"required": ["type", "created", "proofPurpose", "verificationMethod"]
|
|
810
736
|
},
|
|
811
737
|
"IProofType": {
|
|
812
738
|
"type": "string",
|
|
@@ -876,9 +802,8 @@
|
|
|
876
802
|
"type": "string"
|
|
877
803
|
}
|
|
878
804
|
},
|
|
879
|
-
"required": [
|
|
880
|
-
|
|
881
|
-
]
|
|
805
|
+
"required": ["id"],
|
|
806
|
+
"additionalProperties": false
|
|
882
807
|
},
|
|
883
808
|
"IIssuerId": {
|
|
884
809
|
"type": "string"
|
|
@@ -890,9 +815,7 @@
|
|
|
890
815
|
"type": "string"
|
|
891
816
|
}
|
|
892
817
|
},
|
|
893
|
-
"required": [
|
|
894
|
-
"id"
|
|
895
|
-
]
|
|
818
|
+
"required": ["id"]
|
|
896
819
|
},
|
|
897
820
|
"ICredentialStatus": {
|
|
898
821
|
"type": "object",
|
|
@@ -904,10 +827,7 @@
|
|
|
904
827
|
"type": "string"
|
|
905
828
|
}
|
|
906
829
|
},
|
|
907
|
-
"required": [
|
|
908
|
-
"id",
|
|
909
|
-
"type"
|
|
910
|
-
]
|
|
830
|
+
"required": ["id", "type"]
|
|
911
831
|
},
|
|
912
832
|
"CompactJWT": {
|
|
913
833
|
"type": "string",
|
|
@@ -935,14 +855,7 @@
|
|
|
935
855
|
"type": "string"
|
|
936
856
|
}
|
|
937
857
|
},
|
|
938
|
-
"required": [
|
|
939
|
-
"vc",
|
|
940
|
-
"exp",
|
|
941
|
-
"iss",
|
|
942
|
-
"nbf",
|
|
943
|
-
"sub",
|
|
944
|
-
"jti"
|
|
945
|
-
]
|
|
858
|
+
"required": ["vc", "exp", "iss", "nbf", "sub", "jti"]
|
|
946
859
|
},
|
|
947
860
|
"SdJwtDecodedVerifiableCredential": {
|
|
948
861
|
"type": "object",
|
|
@@ -959,84 +872,7 @@
|
|
|
959
872
|
"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
873
|
},
|
|
961
874
|
"signedPayload": {
|
|
962
|
-
"
|
|
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
|
-
],
|
|
875
|
+
"$ref": "#/components/schemas/SdJwtSignedVerifiableCredentialPayload",
|
|
1040
876
|
"description": "The signed payload is the payload of the sd-jwt that is actually signed, and that includes the `_sd` and `...` digests."
|
|
1041
877
|
},
|
|
1042
878
|
"decodedPayload": {
|
|
@@ -1056,19 +892,13 @@
|
|
|
1056
892
|
"$ref": "#/components/schemas/CompactJWT"
|
|
1057
893
|
}
|
|
1058
894
|
},
|
|
1059
|
-
"required": [
|
|
1060
|
-
|
|
1061
|
-
"payload"
|
|
1062
|
-
],
|
|
895
|
+
"required": ["header", "payload"],
|
|
896
|
+
"additionalProperties": false,
|
|
1063
897
|
"description": "Key binding JWT"
|
|
1064
898
|
}
|
|
1065
899
|
},
|
|
1066
|
-
"required": [
|
|
1067
|
-
|
|
1068
|
-
"disclosures",
|
|
1069
|
-
"signedPayload",
|
|
1070
|
-
"decodedPayload"
|
|
1071
|
-
],
|
|
900
|
+
"required": ["compactSdJwtVc", "disclosures", "signedPayload", "decodedPayload"],
|
|
901
|
+
"additionalProperties": false,
|
|
1072
902
|
"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
903
|
},
|
|
1074
904
|
"SdJwtDisclosure": {
|
|
@@ -1084,11 +914,8 @@
|
|
|
1084
914
|
"type": "string"
|
|
1085
915
|
}
|
|
1086
916
|
},
|
|
1087
|
-
"required": [
|
|
1088
|
-
|
|
1089
|
-
"decoded",
|
|
1090
|
-
"digest"
|
|
1091
|
-
]
|
|
917
|
+
"required": ["encoded", "decoded", "digest"],
|
|
918
|
+
"additionalProperties": false
|
|
1092
919
|
},
|
|
1093
920
|
"SdJwtDecodedDisclosure": {
|
|
1094
921
|
"anyOf": [
|
|
@@ -1103,36 +930,7 @@
|
|
|
1103
930
|
"type": "string"
|
|
1104
931
|
},
|
|
1105
932
|
{
|
|
1106
|
-
"
|
|
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
|
-
]
|
|
933
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1136
934
|
}
|
|
1137
935
|
],
|
|
1138
936
|
"maxItems": 3
|
|
@@ -1145,43 +943,14 @@
|
|
|
1145
943
|
"type": "string"
|
|
1146
944
|
},
|
|
1147
945
|
{
|
|
1148
|
-
"
|
|
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
|
-
]
|
|
946
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1178
947
|
}
|
|
1179
948
|
],
|
|
1180
949
|
"maxItems": 2
|
|
1181
950
|
}
|
|
1182
951
|
]
|
|
1183
952
|
},
|
|
1184
|
-
"
|
|
953
|
+
"JsonValue": {
|
|
1185
954
|
"anyOf": [
|
|
1186
955
|
{
|
|
1187
956
|
"type": "string"
|
|
@@ -1197,7 +966,7 @@
|
|
|
1197
966
|
"additionalProperties": {
|
|
1198
967
|
"anyOf": [
|
|
1199
968
|
{
|
|
1200
|
-
"$ref": "#/components/schemas/
|
|
969
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1201
970
|
},
|
|
1202
971
|
{
|
|
1203
972
|
"not": {}
|
|
@@ -1208,12 +977,12 @@
|
|
|
1208
977
|
{
|
|
1209
978
|
"type": "array",
|
|
1210
979
|
"items": {
|
|
1211
|
-
"$ref": "#/components/schemas/
|
|
980
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1212
981
|
}
|
|
1213
982
|
}
|
|
1214
983
|
]
|
|
1215
984
|
},
|
|
1216
|
-
"
|
|
985
|
+
"SdJwtSignedVerifiableCredentialPayload": {
|
|
1217
986
|
"type": "object",
|
|
1218
987
|
"properties": {
|
|
1219
988
|
"vct": {
|
|
@@ -1238,7 +1007,8 @@
|
|
|
1238
1007
|
"kid": {
|
|
1239
1008
|
"type": "string"
|
|
1240
1009
|
}
|
|
1241
|
-
}
|
|
1010
|
+
},
|
|
1011
|
+
"additionalProperties": false
|
|
1242
1012
|
},
|
|
1243
1013
|
"status": {
|
|
1244
1014
|
"type": "object",
|
|
@@ -1250,50 +1020,146 @@
|
|
|
1250
1020
|
"type": "string"
|
|
1251
1021
|
}
|
|
1252
1022
|
},
|
|
1253
|
-
"required": [
|
|
1254
|
-
|
|
1255
|
-
"uri"
|
|
1256
|
-
]
|
|
1023
|
+
"required": ["idx", "uri"],
|
|
1024
|
+
"additionalProperties": false
|
|
1257
1025
|
},
|
|
1258
1026
|
"sub": {
|
|
1259
1027
|
"type": "string"
|
|
1028
|
+
},
|
|
1029
|
+
"_sd": {
|
|
1030
|
+
"type": "array",
|
|
1031
|
+
"items": {
|
|
1032
|
+
"type": "string"
|
|
1033
|
+
}
|
|
1034
|
+
},
|
|
1035
|
+
"_sd_alg": {
|
|
1036
|
+
"type": "string"
|
|
1260
1037
|
}
|
|
1261
1038
|
},
|
|
1262
|
-
"required": [
|
|
1263
|
-
"vct",
|
|
1264
|
-
"iss",
|
|
1265
|
-
"iat"
|
|
1266
|
-
],
|
|
1267
1039
|
"additionalProperties": {
|
|
1268
1040
|
"anyOf": [
|
|
1269
1041
|
{
|
|
1270
|
-
"
|
|
1042
|
+
"$ref": "#/components/schemas/SdJwtJsonValue"
|
|
1271
1043
|
},
|
|
1272
1044
|
{
|
|
1273
|
-
"
|
|
1045
|
+
"not": {}
|
|
1274
1046
|
},
|
|
1275
1047
|
{
|
|
1276
|
-
"
|
|
1048
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1277
1049
|
},
|
|
1278
1050
|
{
|
|
1279
|
-
"
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1051
|
+
"not": {}
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
"required": ["iat", "iss", "vct"],
|
|
1056
|
+
"description": "The signed payload of an SD-JWT. Includes fields such as `_sd`, `...` and `_sd_alg`"
|
|
1057
|
+
},
|
|
1058
|
+
"SdJwtJsonValue": {
|
|
1059
|
+
"anyOf": [
|
|
1060
|
+
{
|
|
1061
|
+
"type": "string"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"type": "number"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"type": "boolean"
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"type": "object",
|
|
1071
|
+
"properties": {
|
|
1072
|
+
"_sd": {
|
|
1073
|
+
"type": "array",
|
|
1074
|
+
"items": {
|
|
1075
|
+
"type": "string"
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"additionalProperties": {
|
|
1080
|
+
"anyOf": [
|
|
1081
|
+
{
|
|
1082
|
+
"$ref": "#/components/schemas/SdJwtJsonValue"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"not": {}
|
|
1086
|
+
}
|
|
1087
|
+
]
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"type": "array",
|
|
1092
|
+
"items": {
|
|
1093
|
+
"anyOf": [
|
|
1094
|
+
{
|
|
1095
|
+
"$ref": "#/components/schemas/SdJwtJsonValue"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "object",
|
|
1099
|
+
"properties": {
|
|
1100
|
+
"...": {
|
|
1101
|
+
"type": "string"
|
|
1102
|
+
}
|
|
1284
1103
|
},
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1104
|
+
"required": ["..."],
|
|
1105
|
+
"additionalProperties": false
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
"SdJwtDecodedVerifiableCredentialPayload": {
|
|
1113
|
+
"type": "object",
|
|
1114
|
+
"properties": {
|
|
1115
|
+
"vct": {
|
|
1116
|
+
"type": "string"
|
|
1117
|
+
},
|
|
1118
|
+
"iss": {
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
},
|
|
1121
|
+
"iat": {
|
|
1122
|
+
"type": "number"
|
|
1123
|
+
},
|
|
1124
|
+
"nbf": {
|
|
1125
|
+
"type": "number"
|
|
1126
|
+
},
|
|
1127
|
+
"exp": {
|
|
1128
|
+
"type": "number"
|
|
1129
|
+
},
|
|
1130
|
+
"cnf": {
|
|
1131
|
+
"type": "object",
|
|
1132
|
+
"properties": {
|
|
1133
|
+
"jwk": {},
|
|
1134
|
+
"kid": {
|
|
1135
|
+
"type": "string"
|
|
1289
1136
|
}
|
|
1290
1137
|
},
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1138
|
+
"additionalProperties": false
|
|
1139
|
+
},
|
|
1140
|
+
"status": {
|
|
1141
|
+
"type": "object",
|
|
1142
|
+
"properties": {
|
|
1143
|
+
"idx": {
|
|
1144
|
+
"type": "number"
|
|
1145
|
+
},
|
|
1146
|
+
"uri": {
|
|
1147
|
+
"type": "string"
|
|
1295
1148
|
}
|
|
1296
1149
|
},
|
|
1150
|
+
"required": ["idx", "uri"],
|
|
1151
|
+
"additionalProperties": false
|
|
1152
|
+
},
|
|
1153
|
+
"sub": {
|
|
1154
|
+
"type": "string"
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
"required": ["vct", "iss", "iat"],
|
|
1158
|
+
"additionalProperties": {
|
|
1159
|
+
"anyOf": [
|
|
1160
|
+
{
|
|
1161
|
+
"$ref": "#/components/schemas/JsonValue"
|
|
1162
|
+
},
|
|
1297
1163
|
{
|
|
1298
1164
|
"not": {}
|
|
1299
1165
|
}
|
|
@@ -1312,10 +1178,7 @@
|
|
|
1312
1178
|
"type": "string"
|
|
1313
1179
|
}
|
|
1314
1180
|
},
|
|
1315
|
-
"required": [
|
|
1316
|
-
"typ",
|
|
1317
|
-
"alg"
|
|
1318
|
-
]
|
|
1181
|
+
"required": ["typ", "alg"]
|
|
1319
1182
|
},
|
|
1320
1183
|
"SdJwtVcKbJwtPayload": {
|
|
1321
1184
|
"type": "object",
|
|
@@ -1333,12 +1196,7 @@
|
|
|
1333
1196
|
"type": "string"
|
|
1334
1197
|
}
|
|
1335
1198
|
},
|
|
1336
|
-
"required": [
|
|
1337
|
-
"iat",
|
|
1338
|
-
"aud",
|
|
1339
|
-
"nonce",
|
|
1340
|
-
"sd_hash"
|
|
1341
|
-
],
|
|
1199
|
+
"required": ["iat", "aud", "nonce", "sd_hash"],
|
|
1342
1200
|
"additionalProperties": {}
|
|
1343
1201
|
},
|
|
1344
1202
|
"MdocOid4vpIssuerSigned": {
|
|
@@ -1350,6 +1208,7 @@
|
|
|
1350
1208
|
},
|
|
1351
1209
|
"com.sphereon.mdoc.data.device.DocumentCbor": {
|
|
1352
1210
|
"type": "object",
|
|
1211
|
+
"additionalProperties": false,
|
|
1353
1212
|
"properties": {}
|
|
1354
1213
|
},
|
|
1355
1214
|
"OriginalVerifiablePresentation": {
|
|
@@ -1443,10 +1302,7 @@
|
|
|
1443
1302
|
"type": "string"
|
|
1444
1303
|
}
|
|
1445
1304
|
},
|
|
1446
|
-
"required": [
|
|
1447
|
-
"@context",
|
|
1448
|
-
"proof"
|
|
1449
|
-
]
|
|
1305
|
+
"required": ["@context", "proof"]
|
|
1450
1306
|
},
|
|
1451
1307
|
"PresentationSubmission": {
|
|
1452
1308
|
"type": "object",
|
|
@@ -1467,11 +1323,8 @@
|
|
|
1467
1323
|
"description": "List of descriptors of how the claims are being mapped to presentation definition"
|
|
1468
1324
|
}
|
|
1469
1325
|
},
|
|
1470
|
-
"required": [
|
|
1471
|
-
|
|
1472
|
-
"definition_id",
|
|
1473
|
-
"descriptor_map"
|
|
1474
|
-
],
|
|
1326
|
+
"required": ["id", "definition_id", "descriptor_map"],
|
|
1327
|
+
"additionalProperties": false,
|
|
1475
1328
|
"description": "It expresses how the inputs are presented as proofs to a Verifier."
|
|
1476
1329
|
},
|
|
1477
1330
|
"Descriptor": {
|
|
@@ -1493,11 +1346,8 @@
|
|
|
1493
1346
|
"description": "The Proof or JWT algorith that the proof is in"
|
|
1494
1347
|
}
|
|
1495
1348
|
},
|
|
1496
|
-
"required": [
|
|
1497
|
-
|
|
1498
|
-
"path",
|
|
1499
|
-
"format"
|
|
1500
|
-
],
|
|
1349
|
+
"required": ["id", "path", "format"],
|
|
1350
|
+
"additionalProperties": false,
|
|
1501
1351
|
"description": "descriptor map laying out the structure of the presentation submission."
|
|
1502
1352
|
},
|
|
1503
1353
|
"JwtDecodedVerifiablePresentation": {
|
|
@@ -1528,16 +1378,7 @@
|
|
|
1528
1378
|
"type": "string"
|
|
1529
1379
|
}
|
|
1530
1380
|
},
|
|
1531
|
-
"required": [
|
|
1532
|
-
"vp",
|
|
1533
|
-
"exp",
|
|
1534
|
-
"iss",
|
|
1535
|
-
"nbf",
|
|
1536
|
-
"sub",
|
|
1537
|
-
"jti",
|
|
1538
|
-
"aud",
|
|
1539
|
-
"iat"
|
|
1540
|
-
]
|
|
1381
|
+
"required": ["vp", "exp", "iss", "nbf", "sub", "jti", "aud", "iat"]
|
|
1541
1382
|
},
|
|
1542
1383
|
"MdocOid4vpMdocVpToken": {
|
|
1543
1384
|
"type": "string"
|
|
@@ -1547,6 +1388,7 @@
|
|
|
1547
1388
|
},
|
|
1548
1389
|
"com.sphereon.mdoc.data.device.DeviceResponseCbor": {
|
|
1549
1390
|
"type": "object",
|
|
1391
|
+
"additionalProperties": false,
|
|
1550
1392
|
"properties": {}
|
|
1551
1393
|
},
|
|
1552
1394
|
"ICredential": {
|
|
@@ -1636,13 +1478,7 @@
|
|
|
1636
1478
|
"type": "string"
|
|
1637
1479
|
}
|
|
1638
1480
|
},
|
|
1639
|
-
"required": [
|
|
1640
|
-
"@context",
|
|
1641
|
-
"type",
|
|
1642
|
-
"issuer",
|
|
1643
|
-
"issuanceDate",
|
|
1644
|
-
"credentialSubject"
|
|
1645
|
-
]
|
|
1481
|
+
"required": ["@context", "type", "issuer", "issuanceDate", "credentialSubject"]
|
|
1646
1482
|
},
|
|
1647
1483
|
"IPresentation": {
|
|
1648
1484
|
"type": "object",
|
|
@@ -1692,9 +1528,7 @@
|
|
|
1692
1528
|
"type": "string"
|
|
1693
1529
|
}
|
|
1694
1530
|
},
|
|
1695
|
-
"required": [
|
|
1696
|
-
"@context"
|
|
1697
|
-
]
|
|
1531
|
+
"required": ["@context"]
|
|
1698
1532
|
},
|
|
1699
1533
|
"GetCredentialsByIdOrHashArgs": {
|
|
1700
1534
|
"type": "object",
|
|
@@ -1706,10 +1540,8 @@
|
|
|
1706
1540
|
"type": "string"
|
|
1707
1541
|
}
|
|
1708
1542
|
},
|
|
1709
|
-
"required": [
|
|
1710
|
-
|
|
1711
|
-
"idOrHash"
|
|
1712
|
-
]
|
|
1543
|
+
"required": ["credentialRole", "idOrHash"],
|
|
1544
|
+
"additionalProperties": false
|
|
1713
1545
|
},
|
|
1714
1546
|
"OptionalUniqueDigitalCredential": {
|
|
1715
1547
|
"anyOf": [
|
|
@@ -1725,6 +1557,7 @@
|
|
|
1725
1557
|
"anyOf": [
|
|
1726
1558
|
{
|
|
1727
1559
|
"type": "object",
|
|
1560
|
+
"additionalProperties": false,
|
|
1728
1561
|
"properties": {
|
|
1729
1562
|
"verifiedState": {
|
|
1730
1563
|
"$ref": "#/components/schemas/CredentialStateType"
|
|
@@ -1741,13 +1574,11 @@
|
|
|
1741
1574
|
"type": "string"
|
|
1742
1575
|
}
|
|
1743
1576
|
},
|
|
1744
|
-
"required": [
|
|
1745
|
-
"id",
|
|
1746
|
-
"verifiedState"
|
|
1747
|
-
]
|
|
1577
|
+
"required": ["id", "verifiedState"]
|
|
1748
1578
|
},
|
|
1749
1579
|
{
|
|
1750
1580
|
"type": "object",
|
|
1581
|
+
"additionalProperties": false,
|
|
1751
1582
|
"properties": {
|
|
1752
1583
|
"verifiedState": {
|
|
1753
1584
|
"$ref": "#/components/schemas/CredentialStateType"
|
|
@@ -1764,10 +1595,7 @@
|
|
|
1764
1595
|
"type": "string"
|
|
1765
1596
|
}
|
|
1766
1597
|
},
|
|
1767
|
-
"required": [
|
|
1768
|
-
"hash",
|
|
1769
|
-
"verifiedState"
|
|
1770
|
-
]
|
|
1598
|
+
"required": ["hash", "verifiedState"]
|
|
1771
1599
|
}
|
|
1772
1600
|
]
|
|
1773
1601
|
}
|
|
@@ -1875,4 +1703,4 @@
|
|
|
1875
1703
|
}
|
|
1876
1704
|
}
|
|
1877
1705
|
}
|
|
1878
|
-
}
|
|
1706
|
+
}
|