dcql 0.2.17 → 0.2.19

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.
Files changed (109) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +131 -0
  3. package/dist/index.d.mts +2885 -0
  4. package/dist/index.d.ts +2885 -0
  5. package/dist/index.js +1014 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +951 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +18 -23
  10. package/dist/src/dcql-error/e-base.d.ts +0 -15
  11. package/dist/src/dcql-error/e-base.d.ts.map +0 -1
  12. package/dist/src/dcql-error/e-base.js +0 -78
  13. package/dist/src/dcql-error/e-base.js.map +0 -1
  14. package/dist/src/dcql-error/e-dcql.d.ts +0 -50
  15. package/dist/src/dcql-error/e-dcql.d.ts.map +0 -1
  16. package/dist/src/dcql-error/e-dcql.js +0 -53
  17. package/dist/src/dcql-error/e-dcql.js.map +0 -1
  18. package/dist/src/dcql-error/index.d.ts +0 -3
  19. package/dist/src/dcql-error/index.d.ts.map +0 -1
  20. package/dist/src/dcql-error/index.js +0 -23
  21. package/dist/src/dcql-error/index.js.map +0 -1
  22. package/dist/src/dcql-parser/claims-path.test.d.ts +0 -2
  23. package/dist/src/dcql-parser/claims-path.test.d.ts.map +0 -1
  24. package/dist/src/dcql-parser/claims-path.test.js +0 -103
  25. package/dist/src/dcql-parser/claims-path.test.js.map +0 -1
  26. package/dist/src/dcql-parser/dcql-claims-query-result.d.ts +0 -25
  27. package/dist/src/dcql-parser/dcql-claims-query-result.d.ts.map +0 -1
  28. package/dist/src/dcql-parser/dcql-claims-query-result.js +0 -178
  29. package/dist/src/dcql-parser/dcql-claims-query-result.js.map +0 -1
  30. package/dist/src/dcql-parser/dcql-credential-query-result.d.ts +0 -8
  31. package/dist/src/dcql-parser/dcql-credential-query-result.d.ts.map +0 -1
  32. package/dist/src/dcql-parser/dcql-credential-query-result.js +0 -65
  33. package/dist/src/dcql-parser/dcql-credential-query-result.js.map +0 -1
  34. package/dist/src/dcql-presentation/index.d.ts +0 -4
  35. package/dist/src/dcql-presentation/index.d.ts.map +0 -1
  36. package/dist/src/dcql-presentation/index.js +0 -13
  37. package/dist/src/dcql-presentation/index.js.map +0 -1
  38. package/dist/src/dcql-presentation/m-dcql-credential-presentation.d.ts +0 -59
  39. package/dist/src/dcql-presentation/m-dcql-credential-presentation.d.ts.map +0 -1
  40. package/dist/src/dcql-presentation/m-dcql-credential-presentation.js +0 -55
  41. package/dist/src/dcql-presentation/m-dcql-credential-presentation.js.map +0 -1
  42. package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts +0 -660
  43. package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts.map +0 -1
  44. package/dist/src/dcql-presentation/m-dcql-presentation-result.js +0 -132
  45. package/dist/src/dcql-presentation/m-dcql-presentation-result.js.map +0 -1
  46. package/dist/src/dcql-presentation/m-dcql-presentation.d.ts +0 -14
  47. package/dist/src/dcql-presentation/m-dcql-presentation.d.ts.map +0 -1
  48. package/dist/src/dcql-presentation/m-dcql-presentation.js +0 -42
  49. package/dist/src/dcql-presentation/m-dcql-presentation.js.map +0 -1
  50. package/dist/src/dcql-query/dcql-query-complex.test.d.ts +0 -2
  51. package/dist/src/dcql-query/dcql-query-complex.test.d.ts.map +0 -1
  52. package/dist/src/dcql-query/dcql-query-complex.test.js +0 -3204
  53. package/dist/src/dcql-query/dcql-query-complex.test.js.map +0 -1
  54. package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts +0 -2
  55. package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts.map +0 -1
  56. package/dist/src/dcql-query/dcql-query-with-json-transform.test.js +0 -188
  57. package/dist/src/dcql-query/dcql-query-with-json-transform.test.js.map +0 -1
  58. package/dist/src/dcql-query/dcql-query.test.d.ts +0 -2
  59. package/dist/src/dcql-query/dcql-query.test.d.ts.map +0 -1
  60. package/dist/src/dcql-query/dcql-query.test.js +0 -378
  61. package/dist/src/dcql-query/dcql-query.test.js.map +0 -1
  62. package/dist/src/dcql-query/index.d.ts +0 -5
  63. package/dist/src/dcql-query/index.d.ts.map +0 -1
  64. package/dist/src/dcql-query/index.js +0 -12
  65. package/dist/src/dcql-query/index.js.map +0 -1
  66. package/dist/src/dcql-query/m-dcql-claims-query.d.ts +0 -35
  67. package/dist/src/dcql-query/m-dcql-claims-query.d.ts.map +0 -1
  68. package/dist/src/dcql-query/m-dcql-claims-query.js +0 -57
  69. package/dist/src/dcql-query/m-dcql-claims-query.js.map +0 -1
  70. package/dist/src/dcql-query/m-dcql-credential-query.d.ts +0 -186
  71. package/dist/src/dcql-query/m-dcql-credential-query.d.ts.map +0 -1
  72. package/dist/src/dcql-query/m-dcql-credential-query.js +0 -85
  73. package/dist/src/dcql-query/m-dcql-credential-query.js.map +0 -1
  74. package/dist/src/dcql-query/m-dcql-credential-set-query.d.ts +0 -18
  75. package/dist/src/dcql-query/m-dcql-credential-set-query.d.ts.map +0 -1
  76. package/dist/src/dcql-query/m-dcql-credential-set-query.js +0 -41
  77. package/dist/src/dcql-query/m-dcql-credential-set-query.js.map +0 -1
  78. package/dist/src/dcql-query/m-dcql-query.d.ts +0 -843
  79. package/dist/src/dcql-query/m-dcql-query.d.ts.map +0 -1
  80. package/dist/src/dcql-query/m-dcql-query.js +0 -89
  81. package/dist/src/dcql-query/m-dcql-query.js.map +0 -1
  82. package/dist/src/dcql-query-result/index.d.ts +0 -3
  83. package/dist/src/dcql-query-result/index.d.ts.map +0 -1
  84. package/dist/src/dcql-query-result/index.js +0 -8
  85. package/dist/src/dcql-query-result/index.js.map +0 -1
  86. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +0 -883
  87. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts.map +0 -1
  88. package/dist/src/dcql-query-result/m-dcql-query-result.js +0 -69
  89. package/dist/src/dcql-query-result/m-dcql-query-result.js.map +0 -1
  90. package/dist/src/dcql-query-result/run-dcql-query.d.ts +0 -8
  91. package/dist/src/dcql-query-result/run-dcql-query.d.ts.map +0 -1
  92. package/dist/src/dcql-query-result/run-dcql-query.js +0 -56
  93. package/dist/src/dcql-query-result/run-dcql-query.js.map +0 -1
  94. package/dist/src/index.d.ts +0 -6
  95. package/dist/src/index.d.ts.map +0 -1
  96. package/dist/src/index.js +0 -27
  97. package/dist/src/index.js.map +0 -1
  98. package/dist/src/u-dcql-credential.d.ts +0 -104
  99. package/dist/src/u-dcql-credential.d.ts.map +0 -1
  100. package/dist/src/u-dcql-credential.js +0 -84
  101. package/dist/src/u-dcql-credential.js.map +0 -1
  102. package/dist/src/u-dcql.d.ts +0 -17
  103. package/dist/src/u-dcql.d.ts.map +0 -1
  104. package/dist/src/u-dcql.js +0 -98
  105. package/dist/src/u-dcql.js.map +0 -1
  106. package/dist/src/u-model.d.ts +0 -27
  107. package/dist/src/u-model.d.ts.map +0 -1
  108. package/dist/src/u-model.js +0 -65
  109. package/dist/src/u-model.js.map +0 -1
@@ -1,3204 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const node_assert_1 = __importDefault(require("node:assert"));
7
- const node_test_1 = require("node:test");
8
- const m_dcql_presentation_result_js_1 = require("../dcql-presentation/m-dcql-presentation-result.js");
9
- const m_dcql_query_js_1 = require("./m-dcql-query.js");
10
- /**
11
- * The following is a non-normative example of a DCQL query that requests
12
- * a Verifiable Credential in the format mso_mdoc with the claims vehicle_holder and first_name:
13
- */
14
- const complexMdocQuery = {
15
- credentials: [
16
- {
17
- id: 'mdl-id',
18
- format: 'mso_mdoc',
19
- meta: { doctype_value: 'org.iso.18013.5.1.mDL' },
20
- claims: [
21
- {
22
- id: 'given_name',
23
- namespace: 'org.iso.18013.5.1',
24
- claim_name: 'given_name',
25
- },
26
- {
27
- id: 'family_name',
28
- namespace: 'org.iso.18013.5.1',
29
- claim_name: 'family_name',
30
- },
31
- {
32
- id: 'portrait',
33
- namespace: 'org.iso.18013.5.1',
34
- claim_name: 'portrait',
35
- },
36
- ],
37
- },
38
- {
39
- id: 'mdl-address',
40
- format: 'mso_mdoc',
41
- meta: { doctype_value: 'org.iso.18013.5.1.mDL' },
42
- claims: [
43
- {
44
- id: 'resident_address',
45
- namespace: 'org.iso.18013.5.1',
46
- claim_name: 'resident_address',
47
- },
48
- {
49
- id: 'resident_country',
50
- namespace: 'org.iso.18013.5.1',
51
- claim_name: 'resident_country',
52
- },
53
- ],
54
- },
55
- {
56
- id: 'photo_card-id',
57
- format: 'mso_mdoc',
58
- meta: { doctype_value: 'org.iso.23220.photoid.1' },
59
- claims: [
60
- {
61
- id: 'given_name',
62
- namespace: 'org.iso.23220.1',
63
- claim_name: 'given_name',
64
- },
65
- {
66
- id: 'family_name',
67
- namespace: 'org.iso.23220.1',
68
- claim_name: 'family_name',
69
- },
70
- {
71
- id: 'portrait',
72
- namespace: 'org.iso.23220.1',
73
- claim_name: 'portrait',
74
- },
75
- ],
76
- },
77
- {
78
- id: 'photo_card-address',
79
- format: 'mso_mdoc',
80
- meta: { doctype_value: 'org.iso.23220.photoid.1' },
81
- claims: [
82
- {
83
- id: 'resident_address',
84
- namespace: 'org.iso.23220.1',
85
- claim_name: 'resident_address',
86
- },
87
- {
88
- id: 'resident_country',
89
- namespace: 'org.iso.23220.1',
90
- claim_name: 'resident_country',
91
- },
92
- ],
93
- },
94
- ],
95
- credential_sets: [
96
- { purpose: 'Identification', options: [['mdl-id'], ['photo_card-id']] },
97
- {
98
- purpose: 'Proof of address',
99
- required: false,
100
- options: [['mdl-address'], ['photo_card-address']],
101
- },
102
- ],
103
- };
104
- const mdocMdlId = {
105
- credential_format: 'mso_mdoc',
106
- doctype: 'org.iso.18013.5.1.mDL',
107
- namespaces: {
108
- 'org.iso.18013.5.1': {
109
- given_name: 'Martin',
110
- family_name: 'Auer',
111
- portrait: 'https://example.com/portrait',
112
- },
113
- },
114
- };
115
- const mdocMdlAddress = {
116
- credential_format: 'mso_mdoc',
117
- doctype: 'org.iso.18013.5.1.mDL',
118
- namespaces: {
119
- 'org.iso.18013.5.1': {
120
- resident_country: 'Italy',
121
- resident_address: 'Via Roma 1',
122
- non_disclosed: 'secret',
123
- },
124
- },
125
- };
126
- const mdocPhotoCardId = {
127
- credential_format: 'mso_mdoc',
128
- doctype: 'org.iso.23220.photoid.1',
129
- namespaces: {
130
- 'org.iso.23220.1': {
131
- given_name: 'Martin',
132
- family_name: 'Auer',
133
- portrait: 'https://example.com/portrait',
134
- },
135
- },
136
- };
137
- const mdocPhotoCardAddress = {
138
- credential_format: 'mso_mdoc',
139
- doctype: 'org.iso.23220.photoid.1',
140
- namespaces: {
141
- 'org.iso.23220.1': {
142
- resident_country: 'Italy',
143
- resident_address: 'Via Roma 1',
144
- non_disclosed: 'secret',
145
- },
146
- },
147
- };
148
- const mdocExample = {
149
- credential_format: 'mso_mdoc',
150
- doctype: 'example_doctype',
151
- namespaces: {
152
- example_namespaces: {
153
- example_claim: 'example_value',
154
- },
155
- },
156
- };
157
- const sdJwtVcExample = {
158
- credential_format: 'vc+sd-jwt',
159
- vct: 'https://credentials.example.com/identity_credential',
160
- claims: {
161
- first_name: 'Arthur',
162
- last_name: 'Dent',
163
- address: {
164
- street_address: '42 Market Street',
165
- locality: 'Milliways',
166
- postal_code: '12345',
167
- },
168
- degrees: [
169
- {
170
- type: 'Bachelor of Science',
171
- university: 'University of Betelgeuse',
172
- },
173
- {
174
- type: 'Master of Science',
175
- university: 'University of Betelgeuse',
176
- },
177
- ],
178
- nationalities: ['British', 'Betelgeusian'],
179
- },
180
- };
181
- void (0, node_test_1.describe)('complex-mdoc-query', () => {
182
- void (0, node_test_1.it)('fails with no credentials', _t => {
183
- const query = m_dcql_query_js_1.DcqlQuery.parse(complexMdocQuery);
184
- m_dcql_query_js_1.DcqlQuery.validate(query);
185
- const res = m_dcql_query_js_1.DcqlQuery.query(query, []);
186
- (0, node_assert_1.default)(!res.canBeSatisfied);
187
- });
188
- void (0, node_test_1.it)('fails with credentials that do not satisfy a required claim_set', _t => {
189
- const query = m_dcql_query_js_1.DcqlQuery.parse(complexMdocQuery);
190
- m_dcql_query_js_1.DcqlQuery.validate(query);
191
- const res = m_dcql_query_js_1.DcqlQuery.query(query, [mdocMdlAddress, mdocPhotoCardAddress]);
192
- (0, node_assert_1.default)(!res.canBeSatisfied);
193
- });
194
- void (0, node_test_1.it)('succeeds if all credentials are present', _t => {
195
- const query = m_dcql_query_js_1.DcqlQuery.parse(complexMdocQuery);
196
- m_dcql_query_js_1.DcqlQuery.validate(query);
197
- const res = m_dcql_query_js_1.DcqlQuery.query(query, [
198
- mdocMdlId,
199
- mdocMdlAddress,
200
- mdocPhotoCardId,
201
- mdocPhotoCardAddress,
202
- mdocExample,
203
- sdJwtVcExample,
204
- ]);
205
- node_assert_1.default.deepStrictEqual(res, {
206
- credentials: complexMdocQuery.credentials,
207
- credential_sets: [
208
- {
209
- options: [['mdl-id'], ['photo_card-id']],
210
- required: true,
211
- purpose: 'Identification',
212
- matching_options: [['mdl-id'], ['photo_card-id']],
213
- },
214
- {
215
- options: [['mdl-address'], ['photo_card-address']],
216
- required: false,
217
- purpose: 'Proof of address',
218
- matching_options: [['mdl-address'], ['photo_card-address']],
219
- },
220
- ],
221
- canBeSatisfied: true,
222
- credential_matches: {
223
- 'mdl-id': {
224
- typed: true,
225
- success: true,
226
- output: {
227
- credential_format: 'mso_mdoc',
228
- doctype: 'org.iso.18013.5.1.mDL',
229
- namespaces: {
230
- 'org.iso.18013.5.1': {
231
- given_name: 'Martin',
232
- family_name: 'Auer',
233
- portrait: 'https://example.com/portrait',
234
- },
235
- },
236
- },
237
- input_credential_index: 0,
238
- claim_set_index: undefined,
239
- all: [
240
- [
241
- {
242
- typed: true,
243
- success: true,
244
- output: {
245
- credential_format: 'mso_mdoc',
246
- doctype: 'org.iso.18013.5.1.mDL',
247
- namespaces: {
248
- 'org.iso.18013.5.1': {
249
- given_name: 'Martin',
250
- family_name: 'Auer',
251
- portrait: 'https://example.com/portrait',
252
- },
253
- },
254
- },
255
- issues: undefined,
256
- input_credential_index: 0,
257
- claim_set_index: undefined,
258
- },
259
- {
260
- typed: false,
261
- success: false,
262
- output: {
263
- credential_format: 'mso_mdoc',
264
- doctype: 'org.iso.18013.5.1.mDL',
265
- namespaces: {
266
- 'org.iso.18013.5.1': {},
267
- },
268
- },
269
- issues: [
270
- {
271
- kind: 'schema',
272
- type: 'non_nullish',
273
- input: undefined,
274
- expected: '(!null & !undefined)',
275
- received: 'undefined',
276
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
277
- requirement: undefined,
278
- path: [
279
- {
280
- type: 'object',
281
- origin: 'value',
282
- input: {
283
- credential_format: 'mso_mdoc',
284
- doctype: 'org.iso.18013.5.1.mDL',
285
- namespaces: {
286
- 'org.iso.18013.5.1': {
287
- resident_country: 'Italy',
288
- resident_address: 'Via Roma 1',
289
- non_disclosed: 'secret',
290
- },
291
- },
292
- },
293
- key: 'namespaces',
294
- value: {
295
- 'org.iso.18013.5.1': {
296
- resident_country: 'Italy',
297
- resident_address: 'Via Roma 1',
298
- non_disclosed: 'secret',
299
- },
300
- },
301
- },
302
- {
303
- type: 'object',
304
- origin: 'value',
305
- input: {
306
- 'org.iso.18013.5.1': {
307
- resident_country: 'Italy',
308
- resident_address: 'Via Roma 1',
309
- non_disclosed: 'secret',
310
- },
311
- },
312
- key: 'org.iso.18013.5.1',
313
- value: {
314
- resident_country: 'Italy',
315
- resident_address: 'Via Roma 1',
316
- non_disclosed: 'secret',
317
- },
318
- },
319
- {
320
- type: 'object',
321
- origin: 'value',
322
- input: {
323
- resident_country: 'Italy',
324
- resident_address: 'Via Roma 1',
325
- non_disclosed: 'secret',
326
- },
327
- key: 'given_name',
328
- value: undefined,
329
- },
330
- ],
331
- issues: undefined,
332
- lang: undefined,
333
- abortEarly: undefined,
334
- abortPipeEarly: undefined,
335
- },
336
- {
337
- kind: 'schema',
338
- type: 'non_nullish',
339
- input: undefined,
340
- expected: '(!null & !undefined)',
341
- received: 'undefined',
342
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
343
- requirement: undefined,
344
- path: [
345
- {
346
- type: 'object',
347
- origin: 'value',
348
- input: {
349
- credential_format: 'mso_mdoc',
350
- doctype: 'org.iso.18013.5.1.mDL',
351
- namespaces: {
352
- 'org.iso.18013.5.1': {
353
- resident_country: 'Italy',
354
- resident_address: 'Via Roma 1',
355
- non_disclosed: 'secret',
356
- },
357
- },
358
- },
359
- key: 'namespaces',
360
- value: {
361
- 'org.iso.18013.5.1': {
362
- resident_country: 'Italy',
363
- resident_address: 'Via Roma 1',
364
- non_disclosed: 'secret',
365
- },
366
- },
367
- },
368
- {
369
- type: 'object',
370
- origin: 'value',
371
- input: {
372
- 'org.iso.18013.5.1': {
373
- resident_country: 'Italy',
374
- resident_address: 'Via Roma 1',
375
- non_disclosed: 'secret',
376
- },
377
- },
378
- key: 'org.iso.18013.5.1',
379
- value: {
380
- resident_country: 'Italy',
381
- resident_address: 'Via Roma 1',
382
- non_disclosed: 'secret',
383
- },
384
- },
385
- {
386
- type: 'object',
387
- origin: 'value',
388
- input: {
389
- resident_country: 'Italy',
390
- resident_address: 'Via Roma 1',
391
- non_disclosed: 'secret',
392
- },
393
- key: 'family_name',
394
- value: undefined,
395
- },
396
- ],
397
- issues: undefined,
398
- lang: undefined,
399
- abortEarly: undefined,
400
- abortPipeEarly: undefined,
401
- },
402
- {
403
- kind: 'schema',
404
- type: 'non_nullish',
405
- input: undefined,
406
- expected: '(!null & !undefined)',
407
- received: 'undefined',
408
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
409
- requirement: undefined,
410
- path: [
411
- {
412
- type: 'object',
413
- origin: 'value',
414
- input: {
415
- credential_format: 'mso_mdoc',
416
- doctype: 'org.iso.18013.5.1.mDL',
417
- namespaces: {
418
- 'org.iso.18013.5.1': {
419
- resident_country: 'Italy',
420
- resident_address: 'Via Roma 1',
421
- non_disclosed: 'secret',
422
- },
423
- },
424
- },
425
- key: 'namespaces',
426
- value: {
427
- 'org.iso.18013.5.1': {
428
- resident_country: 'Italy',
429
- resident_address: 'Via Roma 1',
430
- non_disclosed: 'secret',
431
- },
432
- },
433
- },
434
- {
435
- type: 'object',
436
- origin: 'value',
437
- input: {
438
- 'org.iso.18013.5.1': {
439
- resident_country: 'Italy',
440
- resident_address: 'Via Roma 1',
441
- non_disclosed: 'secret',
442
- },
443
- },
444
- key: 'org.iso.18013.5.1',
445
- value: {
446
- resident_country: 'Italy',
447
- resident_address: 'Via Roma 1',
448
- non_disclosed: 'secret',
449
- },
450
- },
451
- {
452
- type: 'object',
453
- origin: 'value',
454
- input: {
455
- resident_country: 'Italy',
456
- resident_address: 'Via Roma 1',
457
- non_disclosed: 'secret',
458
- },
459
- key: 'portrait',
460
- value: undefined,
461
- },
462
- ],
463
- issues: undefined,
464
- lang: undefined,
465
- abortEarly: undefined,
466
- abortPipeEarly: undefined,
467
- },
468
- ],
469
- flattened: {
470
- nested: {
471
- 'namespaces.org.iso.18013.5.1.given_name': [
472
- 'Invalid type: Expected (!null & !undefined) but received undefined',
473
- ],
474
- 'namespaces.org.iso.18013.5.1.family_name': [
475
- 'Invalid type: Expected (!null & !undefined) but received undefined',
476
- ],
477
- 'namespaces.org.iso.18013.5.1.portrait': [
478
- 'Invalid type: Expected (!null & !undefined) but received undefined',
479
- ],
480
- },
481
- },
482
- input_credential_index: 1,
483
- claim_set_index: undefined,
484
- },
485
- {
486
- typed: false,
487
- success: false,
488
- output: {
489
- credential_format: 'mso_mdoc',
490
- doctype: 'org.iso.23220.photoid.1',
491
- namespaces: {},
492
- },
493
- issues: [
494
- {
495
- kind: 'schema',
496
- type: 'literal',
497
- input: 'org.iso.23220.photoid.1',
498
- expected: '"org.iso.18013.5.1.mDL"',
499
- received: '"org.iso.23220.photoid.1"',
500
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
501
- requirement: undefined,
502
- path: [
503
- {
504
- type: 'object',
505
- origin: 'value',
506
- input: {
507
- credential_format: 'mso_mdoc',
508
- doctype: 'org.iso.23220.photoid.1',
509
- namespaces: {
510
- 'org.iso.23220.1': {
511
- given_name: 'Martin',
512
- family_name: 'Auer',
513
- portrait: 'https://example.com/portrait',
514
- },
515
- },
516
- },
517
- key: 'doctype',
518
- value: 'org.iso.23220.photoid.1',
519
- },
520
- ],
521
- issues: undefined,
522
- lang: undefined,
523
- abortEarly: undefined,
524
- abortPipeEarly: undefined,
525
- },
526
- {
527
- kind: 'schema',
528
- type: 'object',
529
- input: undefined,
530
- expected: 'Object',
531
- received: 'undefined',
532
- message: 'Invalid type: Expected Object but received undefined',
533
- requirement: undefined,
534
- path: [
535
- {
536
- type: 'object',
537
- origin: 'value',
538
- input: {
539
- credential_format: 'mso_mdoc',
540
- doctype: 'org.iso.23220.photoid.1',
541
- namespaces: {
542
- 'org.iso.23220.1': {
543
- given_name: 'Martin',
544
- family_name: 'Auer',
545
- portrait: 'https://example.com/portrait',
546
- },
547
- },
548
- },
549
- key: 'namespaces',
550
- value: {
551
- 'org.iso.23220.1': {
552
- given_name: 'Martin',
553
- family_name: 'Auer',
554
- portrait: 'https://example.com/portrait',
555
- },
556
- },
557
- },
558
- {
559
- type: 'object',
560
- origin: 'value',
561
- input: {
562
- 'org.iso.23220.1': {
563
- given_name: 'Martin',
564
- family_name: 'Auer',
565
- portrait: 'https://example.com/portrait',
566
- },
567
- },
568
- key: 'org.iso.18013.5.1',
569
- value: undefined,
570
- },
571
- ],
572
- issues: undefined,
573
- lang: undefined,
574
- abortEarly: undefined,
575
- abortPipeEarly: undefined,
576
- },
577
- ],
578
- flattened: {
579
- nested: {
580
- doctype: [
581
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
582
- ],
583
- 'namespaces.org.iso.18013.5.1': [
584
- 'Invalid type: Expected Object but received undefined',
585
- ],
586
- },
587
- },
588
- input_credential_index: 2,
589
- claim_set_index: undefined,
590
- },
591
- {
592
- typed: false,
593
- success: false,
594
- output: {
595
- credential_format: 'mso_mdoc',
596
- doctype: 'org.iso.23220.photoid.1',
597
- namespaces: {},
598
- },
599
- issues: [
600
- {
601
- kind: 'schema',
602
- type: 'literal',
603
- input: 'org.iso.23220.photoid.1',
604
- expected: '"org.iso.18013.5.1.mDL"',
605
- received: '"org.iso.23220.photoid.1"',
606
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
607
- requirement: undefined,
608
- path: [
609
- {
610
- type: 'object',
611
- origin: 'value',
612
- input: {
613
- credential_format: 'mso_mdoc',
614
- doctype: 'org.iso.23220.photoid.1',
615
- namespaces: {
616
- 'org.iso.23220.1': {
617
- resident_country: 'Italy',
618
- resident_address: 'Via Roma 1',
619
- non_disclosed: 'secret',
620
- },
621
- },
622
- },
623
- key: 'doctype',
624
- value: 'org.iso.23220.photoid.1',
625
- },
626
- ],
627
- issues: undefined,
628
- lang: undefined,
629
- abortEarly: undefined,
630
- abortPipeEarly: undefined,
631
- },
632
- {
633
- kind: 'schema',
634
- type: 'object',
635
- input: undefined,
636
- expected: 'Object',
637
- received: 'undefined',
638
- message: 'Invalid type: Expected Object but received undefined',
639
- requirement: undefined,
640
- path: [
641
- {
642
- type: 'object',
643
- origin: 'value',
644
- input: {
645
- credential_format: 'mso_mdoc',
646
- doctype: 'org.iso.23220.photoid.1',
647
- namespaces: {
648
- 'org.iso.23220.1': {
649
- resident_country: 'Italy',
650
- resident_address: 'Via Roma 1',
651
- non_disclosed: 'secret',
652
- },
653
- },
654
- },
655
- key: 'namespaces',
656
- value: {
657
- 'org.iso.23220.1': {
658
- resident_country: 'Italy',
659
- resident_address: 'Via Roma 1',
660
- non_disclosed: 'secret',
661
- },
662
- },
663
- },
664
- {
665
- type: 'object',
666
- origin: 'value',
667
- input: {
668
- 'org.iso.23220.1': {
669
- resident_country: 'Italy',
670
- resident_address: 'Via Roma 1',
671
- non_disclosed: 'secret',
672
- },
673
- },
674
- key: 'org.iso.18013.5.1',
675
- value: undefined,
676
- },
677
- ],
678
- issues: undefined,
679
- lang: undefined,
680
- abortEarly: undefined,
681
- abortPipeEarly: undefined,
682
- },
683
- ],
684
- flattened: {
685
- nested: {
686
- doctype: [
687
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
688
- ],
689
- 'namespaces.org.iso.18013.5.1': [
690
- 'Invalid type: Expected Object but received undefined',
691
- ],
692
- },
693
- },
694
- input_credential_index: 3,
695
- claim_set_index: undefined,
696
- },
697
- {
698
- typed: false,
699
- success: false,
700
- output: {
701
- credential_format: 'mso_mdoc',
702
- doctype: 'example_doctype',
703
- namespaces: {},
704
- },
705
- issues: [
706
- {
707
- kind: 'schema',
708
- type: 'literal',
709
- input: 'example_doctype',
710
- expected: '"org.iso.18013.5.1.mDL"',
711
- received: '"example_doctype"',
712
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "example_doctype"',
713
- requirement: undefined,
714
- path: [
715
- {
716
- type: 'object',
717
- origin: 'value',
718
- input: {
719
- credential_format: 'mso_mdoc',
720
- doctype: 'example_doctype',
721
- namespaces: {
722
- example_namespaces: {
723
- example_claim: 'example_value',
724
- },
725
- },
726
- },
727
- key: 'doctype',
728
- value: 'example_doctype',
729
- },
730
- ],
731
- issues: undefined,
732
- lang: undefined,
733
- abortEarly: undefined,
734
- abortPipeEarly: undefined,
735
- },
736
- {
737
- kind: 'schema',
738
- type: 'object',
739
- input: undefined,
740
- expected: 'Object',
741
- received: 'undefined',
742
- message: 'Invalid type: Expected Object but received undefined',
743
- requirement: undefined,
744
- path: [
745
- {
746
- type: 'object',
747
- origin: 'value',
748
- input: {
749
- credential_format: 'mso_mdoc',
750
- doctype: 'example_doctype',
751
- namespaces: {
752
- example_namespaces: {
753
- example_claim: 'example_value',
754
- },
755
- },
756
- },
757
- key: 'namespaces',
758
- value: {
759
- example_namespaces: {
760
- example_claim: 'example_value',
761
- },
762
- },
763
- },
764
- {
765
- type: 'object',
766
- origin: 'value',
767
- input: {
768
- example_namespaces: {
769
- example_claim: 'example_value',
770
- },
771
- },
772
- key: 'org.iso.18013.5.1',
773
- value: undefined,
774
- },
775
- ],
776
- issues: undefined,
777
- lang: undefined,
778
- abortEarly: undefined,
779
- abortPipeEarly: undefined,
780
- },
781
- ],
782
- flattened: {
783
- nested: {
784
- doctype: [
785
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "example_doctype"',
786
- ],
787
- 'namespaces.org.iso.18013.5.1': [
788
- 'Invalid type: Expected Object but received undefined',
789
- ],
790
- },
791
- },
792
- input_credential_index: 4,
793
- claim_set_index: undefined,
794
- },
795
- {
796
- typed: false,
797
- success: false,
798
- output: {
799
- credential_format: 'vc+sd-jwt',
800
- },
801
- issues: [
802
- {
803
- kind: 'schema',
804
- type: 'literal',
805
- input: 'vc+sd-jwt',
806
- expected: '"mso_mdoc"',
807
- received: '"vc+sd-jwt"',
808
- message: 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
809
- requirement: undefined,
810
- path: [
811
- {
812
- type: 'object',
813
- origin: 'value',
814
- input: {
815
- credential_format: 'vc+sd-jwt',
816
- vct: 'https://credentials.example.com/identity_credential',
817
- claims: {
818
- first_name: 'Arthur',
819
- last_name: 'Dent',
820
- address: {
821
- street_address: '42 Market Street',
822
- locality: 'Milliways',
823
- postal_code: '12345',
824
- },
825
- degrees: [
826
- {
827
- type: 'Bachelor of Science',
828
- university: 'University of Betelgeuse',
829
- },
830
- {
831
- type: 'Master of Science',
832
- university: 'University of Betelgeuse',
833
- },
834
- ],
835
- nationalities: ['British', 'Betelgeusian'],
836
- },
837
- },
838
- key: 'credential_format',
839
- value: 'vc+sd-jwt',
840
- },
841
- ],
842
- issues: undefined,
843
- lang: undefined,
844
- abortEarly: undefined,
845
- abortPipeEarly: undefined,
846
- },
847
- {
848
- kind: 'schema',
849
- type: 'literal',
850
- input: undefined,
851
- expected: '"org.iso.18013.5.1.mDL"',
852
- received: 'undefined',
853
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received undefined',
854
- requirement: undefined,
855
- path: [
856
- {
857
- type: 'object',
858
- origin: 'value',
859
- input: {
860
- credential_format: 'vc+sd-jwt',
861
- vct: 'https://credentials.example.com/identity_credential',
862
- claims: {
863
- first_name: 'Arthur',
864
- last_name: 'Dent',
865
- address: {
866
- street_address: '42 Market Street',
867
- locality: 'Milliways',
868
- postal_code: '12345',
869
- },
870
- degrees: [
871
- {
872
- type: 'Bachelor of Science',
873
- university: 'University of Betelgeuse',
874
- },
875
- {
876
- type: 'Master of Science',
877
- university: 'University of Betelgeuse',
878
- },
879
- ],
880
- nationalities: ['British', 'Betelgeusian'],
881
- },
882
- },
883
- key: 'doctype',
884
- value: undefined,
885
- },
886
- ],
887
- issues: undefined,
888
- lang: undefined,
889
- abortEarly: undefined,
890
- abortPipeEarly: undefined,
891
- },
892
- {
893
- kind: 'schema',
894
- type: 'object',
895
- input: undefined,
896
- expected: 'Object',
897
- received: 'undefined',
898
- message: 'Invalid type: Expected Object but received undefined',
899
- requirement: undefined,
900
- path: [
901
- {
902
- type: 'object',
903
- origin: 'value',
904
- input: {
905
- credential_format: 'vc+sd-jwt',
906
- vct: 'https://credentials.example.com/identity_credential',
907
- claims: {
908
- first_name: 'Arthur',
909
- last_name: 'Dent',
910
- address: {
911
- street_address: '42 Market Street',
912
- locality: 'Milliways',
913
- postal_code: '12345',
914
- },
915
- degrees: [
916
- {
917
- type: 'Bachelor of Science',
918
- university: 'University of Betelgeuse',
919
- },
920
- {
921
- type: 'Master of Science',
922
- university: 'University of Betelgeuse',
923
- },
924
- ],
925
- nationalities: ['British', 'Betelgeusian'],
926
- },
927
- },
928
- key: 'namespaces',
929
- value: undefined,
930
- },
931
- ],
932
- issues: undefined,
933
- lang: undefined,
934
- abortEarly: undefined,
935
- abortPipeEarly: undefined,
936
- },
937
- ],
938
- flattened: {
939
- nested: {
940
- credential_format: [
941
- 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
942
- ],
943
- doctype: [
944
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received undefined',
945
- ],
946
- namespaces: [
947
- 'Invalid type: Expected Object but received undefined',
948
- ],
949
- },
950
- },
951
- input_credential_index: 5,
952
- claim_set_index: undefined,
953
- },
954
- ],
955
- ],
956
- },
957
- 'mdl-address': {
958
- typed: true,
959
- success: true,
960
- output: {
961
- credential_format: 'mso_mdoc',
962
- doctype: 'org.iso.18013.5.1.mDL',
963
- namespaces: {
964
- 'org.iso.18013.5.1': {
965
- resident_address: 'Via Roma 1',
966
- resident_country: 'Italy',
967
- },
968
- },
969
- },
970
- input_credential_index: 1,
971
- claim_set_index: undefined,
972
- all: [
973
- [
974
- {
975
- typed: false,
976
- success: false,
977
- output: {
978
- credential_format: 'mso_mdoc',
979
- doctype: 'org.iso.18013.5.1.mDL',
980
- namespaces: {
981
- 'org.iso.18013.5.1': {},
982
- },
983
- },
984
- issues: [
985
- {
986
- kind: 'schema',
987
- type: 'non_nullish',
988
- input: undefined,
989
- expected: '(!null & !undefined)',
990
- received: 'undefined',
991
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
992
- requirement: undefined,
993
- path: [
994
- {
995
- type: 'object',
996
- origin: 'value',
997
- input: {
998
- credential_format: 'mso_mdoc',
999
- doctype: 'org.iso.18013.5.1.mDL',
1000
- namespaces: {
1001
- 'org.iso.18013.5.1': {
1002
- given_name: 'Martin',
1003
- family_name: 'Auer',
1004
- portrait: 'https://example.com/portrait',
1005
- },
1006
- },
1007
- },
1008
- key: 'namespaces',
1009
- value: {
1010
- 'org.iso.18013.5.1': {
1011
- given_name: 'Martin',
1012
- family_name: 'Auer',
1013
- portrait: 'https://example.com/portrait',
1014
- },
1015
- },
1016
- },
1017
- {
1018
- type: 'object',
1019
- origin: 'value',
1020
- input: {
1021
- 'org.iso.18013.5.1': {
1022
- given_name: 'Martin',
1023
- family_name: 'Auer',
1024
- portrait: 'https://example.com/portrait',
1025
- },
1026
- },
1027
- key: 'org.iso.18013.5.1',
1028
- value: {
1029
- given_name: 'Martin',
1030
- family_name: 'Auer',
1031
- portrait: 'https://example.com/portrait',
1032
- },
1033
- },
1034
- {
1035
- type: 'object',
1036
- origin: 'value',
1037
- input: {
1038
- given_name: 'Martin',
1039
- family_name: 'Auer',
1040
- portrait: 'https://example.com/portrait',
1041
- },
1042
- key: 'resident_address',
1043
- value: undefined,
1044
- },
1045
- ],
1046
- issues: undefined,
1047
- lang: undefined,
1048
- abortEarly: undefined,
1049
- abortPipeEarly: undefined,
1050
- },
1051
- {
1052
- kind: 'schema',
1053
- type: 'non_nullish',
1054
- input: undefined,
1055
- expected: '(!null & !undefined)',
1056
- received: 'undefined',
1057
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
1058
- requirement: undefined,
1059
- path: [
1060
- {
1061
- type: 'object',
1062
- origin: 'value',
1063
- input: {
1064
- credential_format: 'mso_mdoc',
1065
- doctype: 'org.iso.18013.5.1.mDL',
1066
- namespaces: {
1067
- 'org.iso.18013.5.1': {
1068
- given_name: 'Martin',
1069
- family_name: 'Auer',
1070
- portrait: 'https://example.com/portrait',
1071
- },
1072
- },
1073
- },
1074
- key: 'namespaces',
1075
- value: {
1076
- 'org.iso.18013.5.1': {
1077
- given_name: 'Martin',
1078
- family_name: 'Auer',
1079
- portrait: 'https://example.com/portrait',
1080
- },
1081
- },
1082
- },
1083
- {
1084
- type: 'object',
1085
- origin: 'value',
1086
- input: {
1087
- 'org.iso.18013.5.1': {
1088
- given_name: 'Martin',
1089
- family_name: 'Auer',
1090
- portrait: 'https://example.com/portrait',
1091
- },
1092
- },
1093
- key: 'org.iso.18013.5.1',
1094
- value: {
1095
- given_name: 'Martin',
1096
- family_name: 'Auer',
1097
- portrait: 'https://example.com/portrait',
1098
- },
1099
- },
1100
- {
1101
- type: 'object',
1102
- origin: 'value',
1103
- input: {
1104
- given_name: 'Martin',
1105
- family_name: 'Auer',
1106
- portrait: 'https://example.com/portrait',
1107
- },
1108
- key: 'resident_country',
1109
- value: undefined,
1110
- },
1111
- ],
1112
- issues: undefined,
1113
- lang: undefined,
1114
- abortEarly: undefined,
1115
- abortPipeEarly: undefined,
1116
- },
1117
- ],
1118
- flattened: {
1119
- nested: {
1120
- 'namespaces.org.iso.18013.5.1.resident_address': [
1121
- 'Invalid type: Expected (!null & !undefined) but received undefined',
1122
- ],
1123
- 'namespaces.org.iso.18013.5.1.resident_country': [
1124
- 'Invalid type: Expected (!null & !undefined) but received undefined',
1125
- ],
1126
- },
1127
- },
1128
- input_credential_index: 0,
1129
- claim_set_index: undefined,
1130
- },
1131
- {
1132
- typed: true,
1133
- success: true,
1134
- output: {
1135
- credential_format: 'mso_mdoc',
1136
- doctype: 'org.iso.18013.5.1.mDL',
1137
- namespaces: {
1138
- 'org.iso.18013.5.1': {
1139
- resident_address: 'Via Roma 1',
1140
- resident_country: 'Italy',
1141
- },
1142
- },
1143
- },
1144
- issues: undefined,
1145
- input_credential_index: 1,
1146
- claim_set_index: undefined,
1147
- },
1148
- {
1149
- typed: false,
1150
- success: false,
1151
- output: {
1152
- credential_format: 'mso_mdoc',
1153
- doctype: 'org.iso.23220.photoid.1',
1154
- namespaces: {},
1155
- },
1156
- issues: [
1157
- {
1158
- kind: 'schema',
1159
- type: 'literal',
1160
- input: 'org.iso.23220.photoid.1',
1161
- expected: '"org.iso.18013.5.1.mDL"',
1162
- received: '"org.iso.23220.photoid.1"',
1163
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
1164
- requirement: undefined,
1165
- path: [
1166
- {
1167
- type: 'object',
1168
- origin: 'value',
1169
- input: {
1170
- credential_format: 'mso_mdoc',
1171
- doctype: 'org.iso.23220.photoid.1',
1172
- namespaces: {
1173
- 'org.iso.23220.1': {
1174
- given_name: 'Martin',
1175
- family_name: 'Auer',
1176
- portrait: 'https://example.com/portrait',
1177
- },
1178
- },
1179
- },
1180
- key: 'doctype',
1181
- value: 'org.iso.23220.photoid.1',
1182
- },
1183
- ],
1184
- issues: undefined,
1185
- lang: undefined,
1186
- abortEarly: undefined,
1187
- abortPipeEarly: undefined,
1188
- },
1189
- {
1190
- kind: 'schema',
1191
- type: 'object',
1192
- input: undefined,
1193
- expected: 'Object',
1194
- received: 'undefined',
1195
- message: 'Invalid type: Expected Object but received undefined',
1196
- requirement: undefined,
1197
- path: [
1198
- {
1199
- type: 'object',
1200
- origin: 'value',
1201
- input: {
1202
- credential_format: 'mso_mdoc',
1203
- doctype: 'org.iso.23220.photoid.1',
1204
- namespaces: {
1205
- 'org.iso.23220.1': {
1206
- given_name: 'Martin',
1207
- family_name: 'Auer',
1208
- portrait: 'https://example.com/portrait',
1209
- },
1210
- },
1211
- },
1212
- key: 'namespaces',
1213
- value: {
1214
- 'org.iso.23220.1': {
1215
- given_name: 'Martin',
1216
- family_name: 'Auer',
1217
- portrait: 'https://example.com/portrait',
1218
- },
1219
- },
1220
- },
1221
- {
1222
- type: 'object',
1223
- origin: 'value',
1224
- input: {
1225
- 'org.iso.23220.1': {
1226
- given_name: 'Martin',
1227
- family_name: 'Auer',
1228
- portrait: 'https://example.com/portrait',
1229
- },
1230
- },
1231
- key: 'org.iso.18013.5.1',
1232
- value: undefined,
1233
- },
1234
- ],
1235
- issues: undefined,
1236
- lang: undefined,
1237
- abortEarly: undefined,
1238
- abortPipeEarly: undefined,
1239
- },
1240
- ],
1241
- flattened: {
1242
- nested: {
1243
- doctype: [
1244
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
1245
- ],
1246
- 'namespaces.org.iso.18013.5.1': [
1247
- 'Invalid type: Expected Object but received undefined',
1248
- ],
1249
- },
1250
- },
1251
- input_credential_index: 2,
1252
- claim_set_index: undefined,
1253
- },
1254
- {
1255
- typed: false,
1256
- success: false,
1257
- output: {
1258
- credential_format: 'mso_mdoc',
1259
- doctype: 'org.iso.23220.photoid.1',
1260
- namespaces: {},
1261
- },
1262
- issues: [
1263
- {
1264
- kind: 'schema',
1265
- type: 'literal',
1266
- input: 'org.iso.23220.photoid.1',
1267
- expected: '"org.iso.18013.5.1.mDL"',
1268
- received: '"org.iso.23220.photoid.1"',
1269
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
1270
- requirement: undefined,
1271
- path: [
1272
- {
1273
- type: 'object',
1274
- origin: 'value',
1275
- input: {
1276
- credential_format: 'mso_mdoc',
1277
- doctype: 'org.iso.23220.photoid.1',
1278
- namespaces: {
1279
- 'org.iso.23220.1': {
1280
- resident_country: 'Italy',
1281
- resident_address: 'Via Roma 1',
1282
- non_disclosed: 'secret',
1283
- },
1284
- },
1285
- },
1286
- key: 'doctype',
1287
- value: 'org.iso.23220.photoid.1',
1288
- },
1289
- ],
1290
- issues: undefined,
1291
- lang: undefined,
1292
- abortEarly: undefined,
1293
- abortPipeEarly: undefined,
1294
- },
1295
- {
1296
- kind: 'schema',
1297
- type: 'object',
1298
- input: undefined,
1299
- expected: 'Object',
1300
- received: 'undefined',
1301
- message: 'Invalid type: Expected Object but received undefined',
1302
- requirement: undefined,
1303
- path: [
1304
- {
1305
- type: 'object',
1306
- origin: 'value',
1307
- input: {
1308
- credential_format: 'mso_mdoc',
1309
- doctype: 'org.iso.23220.photoid.1',
1310
- namespaces: {
1311
- 'org.iso.23220.1': {
1312
- resident_country: 'Italy',
1313
- resident_address: 'Via Roma 1',
1314
- non_disclosed: 'secret',
1315
- },
1316
- },
1317
- },
1318
- key: 'namespaces',
1319
- value: {
1320
- 'org.iso.23220.1': {
1321
- resident_country: 'Italy',
1322
- resident_address: 'Via Roma 1',
1323
- non_disclosed: 'secret',
1324
- },
1325
- },
1326
- },
1327
- {
1328
- type: 'object',
1329
- origin: 'value',
1330
- input: {
1331
- 'org.iso.23220.1': {
1332
- resident_country: 'Italy',
1333
- resident_address: 'Via Roma 1',
1334
- non_disclosed: 'secret',
1335
- },
1336
- },
1337
- key: 'org.iso.18013.5.1',
1338
- value: undefined,
1339
- },
1340
- ],
1341
- issues: undefined,
1342
- lang: undefined,
1343
- abortEarly: undefined,
1344
- abortPipeEarly: undefined,
1345
- },
1346
- ],
1347
- flattened: {
1348
- nested: {
1349
- doctype: [
1350
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "org.iso.23220.photoid.1"',
1351
- ],
1352
- 'namespaces.org.iso.18013.5.1': [
1353
- 'Invalid type: Expected Object but received undefined',
1354
- ],
1355
- },
1356
- },
1357
- input_credential_index: 3,
1358
- claim_set_index: undefined,
1359
- },
1360
- {
1361
- typed: false,
1362
- success: false,
1363
- output: {
1364
- credential_format: 'mso_mdoc',
1365
- doctype: 'example_doctype',
1366
- namespaces: {},
1367
- },
1368
- issues: [
1369
- {
1370
- kind: 'schema',
1371
- type: 'literal',
1372
- input: 'example_doctype',
1373
- expected: '"org.iso.18013.5.1.mDL"',
1374
- received: '"example_doctype"',
1375
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "example_doctype"',
1376
- requirement: undefined,
1377
- path: [
1378
- {
1379
- type: 'object',
1380
- origin: 'value',
1381
- input: {
1382
- credential_format: 'mso_mdoc',
1383
- doctype: 'example_doctype',
1384
- namespaces: {
1385
- example_namespaces: {
1386
- example_claim: 'example_value',
1387
- },
1388
- },
1389
- },
1390
- key: 'doctype',
1391
- value: 'example_doctype',
1392
- },
1393
- ],
1394
- issues: undefined,
1395
- lang: undefined,
1396
- abortEarly: undefined,
1397
- abortPipeEarly: undefined,
1398
- },
1399
- {
1400
- kind: 'schema',
1401
- type: 'object',
1402
- input: undefined,
1403
- expected: 'Object',
1404
- received: 'undefined',
1405
- message: 'Invalid type: Expected Object but received undefined',
1406
- requirement: undefined,
1407
- path: [
1408
- {
1409
- type: 'object',
1410
- origin: 'value',
1411
- input: {
1412
- credential_format: 'mso_mdoc',
1413
- doctype: 'example_doctype',
1414
- namespaces: {
1415
- example_namespaces: {
1416
- example_claim: 'example_value',
1417
- },
1418
- },
1419
- },
1420
- key: 'namespaces',
1421
- value: {
1422
- example_namespaces: {
1423
- example_claim: 'example_value',
1424
- },
1425
- },
1426
- },
1427
- {
1428
- type: 'object',
1429
- origin: 'value',
1430
- input: {
1431
- example_namespaces: {
1432
- example_claim: 'example_value',
1433
- },
1434
- },
1435
- key: 'org.iso.18013.5.1',
1436
- value: undefined,
1437
- },
1438
- ],
1439
- issues: undefined,
1440
- lang: undefined,
1441
- abortEarly: undefined,
1442
- abortPipeEarly: undefined,
1443
- },
1444
- ],
1445
- flattened: {
1446
- nested: {
1447
- doctype: [
1448
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received "example_doctype"',
1449
- ],
1450
- 'namespaces.org.iso.18013.5.1': [
1451
- 'Invalid type: Expected Object but received undefined',
1452
- ],
1453
- },
1454
- },
1455
- input_credential_index: 4,
1456
- claim_set_index: undefined,
1457
- },
1458
- {
1459
- typed: false,
1460
- success: false,
1461
- output: {
1462
- credential_format: 'vc+sd-jwt',
1463
- },
1464
- issues: [
1465
- {
1466
- kind: 'schema',
1467
- type: 'literal',
1468
- input: 'vc+sd-jwt',
1469
- expected: '"mso_mdoc"',
1470
- received: '"vc+sd-jwt"',
1471
- message: 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
1472
- requirement: undefined,
1473
- path: [
1474
- {
1475
- type: 'object',
1476
- origin: 'value',
1477
- input: {
1478
- credential_format: 'vc+sd-jwt',
1479
- vct: 'https://credentials.example.com/identity_credential',
1480
- claims: {
1481
- first_name: 'Arthur',
1482
- last_name: 'Dent',
1483
- address: {
1484
- street_address: '42 Market Street',
1485
- locality: 'Milliways',
1486
- postal_code: '12345',
1487
- },
1488
- degrees: [
1489
- {
1490
- type: 'Bachelor of Science',
1491
- university: 'University of Betelgeuse',
1492
- },
1493
- {
1494
- type: 'Master of Science',
1495
- university: 'University of Betelgeuse',
1496
- },
1497
- ],
1498
- nationalities: ['British', 'Betelgeusian'],
1499
- },
1500
- },
1501
- key: 'credential_format',
1502
- value: 'vc+sd-jwt',
1503
- },
1504
- ],
1505
- issues: undefined,
1506
- lang: undefined,
1507
- abortEarly: undefined,
1508
- abortPipeEarly: undefined,
1509
- },
1510
- {
1511
- kind: 'schema',
1512
- type: 'literal',
1513
- input: undefined,
1514
- expected: '"org.iso.18013.5.1.mDL"',
1515
- received: 'undefined',
1516
- message: 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received undefined',
1517
- requirement: undefined,
1518
- path: [
1519
- {
1520
- type: 'object',
1521
- origin: 'value',
1522
- input: {
1523
- credential_format: 'vc+sd-jwt',
1524
- vct: 'https://credentials.example.com/identity_credential',
1525
- claims: {
1526
- first_name: 'Arthur',
1527
- last_name: 'Dent',
1528
- address: {
1529
- street_address: '42 Market Street',
1530
- locality: 'Milliways',
1531
- postal_code: '12345',
1532
- },
1533
- degrees: [
1534
- {
1535
- type: 'Bachelor of Science',
1536
- university: 'University of Betelgeuse',
1537
- },
1538
- {
1539
- type: 'Master of Science',
1540
- university: 'University of Betelgeuse',
1541
- },
1542
- ],
1543
- nationalities: ['British', 'Betelgeusian'],
1544
- },
1545
- },
1546
- key: 'doctype',
1547
- value: undefined,
1548
- },
1549
- ],
1550
- issues: undefined,
1551
- lang: undefined,
1552
- abortEarly: undefined,
1553
- abortPipeEarly: undefined,
1554
- },
1555
- {
1556
- kind: 'schema',
1557
- type: 'object',
1558
- input: undefined,
1559
- expected: 'Object',
1560
- received: 'undefined',
1561
- message: 'Invalid type: Expected Object but received undefined',
1562
- requirement: undefined,
1563
- path: [
1564
- {
1565
- type: 'object',
1566
- origin: 'value',
1567
- input: {
1568
- credential_format: 'vc+sd-jwt',
1569
- vct: 'https://credentials.example.com/identity_credential',
1570
- claims: {
1571
- first_name: 'Arthur',
1572
- last_name: 'Dent',
1573
- address: {
1574
- street_address: '42 Market Street',
1575
- locality: 'Milliways',
1576
- postal_code: '12345',
1577
- },
1578
- degrees: [
1579
- {
1580
- type: 'Bachelor of Science',
1581
- university: 'University of Betelgeuse',
1582
- },
1583
- {
1584
- type: 'Master of Science',
1585
- university: 'University of Betelgeuse',
1586
- },
1587
- ],
1588
- nationalities: ['British', 'Betelgeusian'],
1589
- },
1590
- },
1591
- key: 'namespaces',
1592
- value: undefined,
1593
- },
1594
- ],
1595
- issues: undefined,
1596
- lang: undefined,
1597
- abortEarly: undefined,
1598
- abortPipeEarly: undefined,
1599
- },
1600
- ],
1601
- flattened: {
1602
- nested: {
1603
- credential_format: [
1604
- 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
1605
- ],
1606
- doctype: [
1607
- 'Invalid type: Expected "org.iso.18013.5.1.mDL" but received undefined',
1608
- ],
1609
- namespaces: [
1610
- 'Invalid type: Expected Object but received undefined',
1611
- ],
1612
- },
1613
- },
1614
- input_credential_index: 5,
1615
- claim_set_index: undefined,
1616
- },
1617
- ],
1618
- ],
1619
- },
1620
- 'photo_card-id': {
1621
- typed: true,
1622
- success: true,
1623
- output: {
1624
- credential_format: 'mso_mdoc',
1625
- doctype: 'org.iso.23220.photoid.1',
1626
- namespaces: {
1627
- 'org.iso.23220.1': {
1628
- given_name: 'Martin',
1629
- family_name: 'Auer',
1630
- portrait: 'https://example.com/portrait',
1631
- },
1632
- },
1633
- },
1634
- input_credential_index: 2,
1635
- claim_set_index: undefined,
1636
- all: [
1637
- [
1638
- {
1639
- typed: false,
1640
- success: false,
1641
- output: {
1642
- credential_format: 'mso_mdoc',
1643
- doctype: 'org.iso.18013.5.1.mDL',
1644
- namespaces: {},
1645
- },
1646
- issues: [
1647
- {
1648
- kind: 'schema',
1649
- type: 'literal',
1650
- input: 'org.iso.18013.5.1.mDL',
1651
- expected: '"org.iso.23220.photoid.1"',
1652
- received: '"org.iso.18013.5.1.mDL"',
1653
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
1654
- requirement: undefined,
1655
- path: [
1656
- {
1657
- type: 'object',
1658
- origin: 'value',
1659
- input: {
1660
- credential_format: 'mso_mdoc',
1661
- doctype: 'org.iso.18013.5.1.mDL',
1662
- namespaces: {
1663
- 'org.iso.18013.5.1': {
1664
- given_name: 'Martin',
1665
- family_name: 'Auer',
1666
- portrait: 'https://example.com/portrait',
1667
- },
1668
- },
1669
- },
1670
- key: 'doctype',
1671
- value: 'org.iso.18013.5.1.mDL',
1672
- },
1673
- ],
1674
- issues: undefined,
1675
- lang: undefined,
1676
- abortEarly: undefined,
1677
- abortPipeEarly: undefined,
1678
- },
1679
- {
1680
- kind: 'schema',
1681
- type: 'object',
1682
- input: undefined,
1683
- expected: 'Object',
1684
- received: 'undefined',
1685
- message: 'Invalid type: Expected Object but received undefined',
1686
- requirement: undefined,
1687
- path: [
1688
- {
1689
- type: 'object',
1690
- origin: 'value',
1691
- input: {
1692
- credential_format: 'mso_mdoc',
1693
- doctype: 'org.iso.18013.5.1.mDL',
1694
- namespaces: {
1695
- 'org.iso.18013.5.1': {
1696
- given_name: 'Martin',
1697
- family_name: 'Auer',
1698
- portrait: 'https://example.com/portrait',
1699
- },
1700
- },
1701
- },
1702
- key: 'namespaces',
1703
- value: {
1704
- 'org.iso.18013.5.1': {
1705
- given_name: 'Martin',
1706
- family_name: 'Auer',
1707
- portrait: 'https://example.com/portrait',
1708
- },
1709
- },
1710
- },
1711
- {
1712
- type: 'object',
1713
- origin: 'value',
1714
- input: {
1715
- 'org.iso.18013.5.1': {
1716
- given_name: 'Martin',
1717
- family_name: 'Auer',
1718
- portrait: 'https://example.com/portrait',
1719
- },
1720
- },
1721
- key: 'org.iso.23220.1',
1722
- value: undefined,
1723
- },
1724
- ],
1725
- issues: undefined,
1726
- lang: undefined,
1727
- abortEarly: undefined,
1728
- abortPipeEarly: undefined,
1729
- },
1730
- ],
1731
- flattened: {
1732
- nested: {
1733
- doctype: [
1734
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
1735
- ],
1736
- 'namespaces.org.iso.23220.1': [
1737
- 'Invalid type: Expected Object but received undefined',
1738
- ],
1739
- },
1740
- },
1741
- input_credential_index: 0,
1742
- claim_set_index: undefined,
1743
- },
1744
- {
1745
- typed: false,
1746
- success: false,
1747
- output: {
1748
- credential_format: 'mso_mdoc',
1749
- doctype: 'org.iso.18013.5.1.mDL',
1750
- namespaces: {},
1751
- },
1752
- issues: [
1753
- {
1754
- kind: 'schema',
1755
- type: 'literal',
1756
- input: 'org.iso.18013.5.1.mDL',
1757
- expected: '"org.iso.23220.photoid.1"',
1758
- received: '"org.iso.18013.5.1.mDL"',
1759
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
1760
- requirement: undefined,
1761
- path: [
1762
- {
1763
- type: 'object',
1764
- origin: 'value',
1765
- input: {
1766
- credential_format: 'mso_mdoc',
1767
- doctype: 'org.iso.18013.5.1.mDL',
1768
- namespaces: {
1769
- 'org.iso.18013.5.1': {
1770
- resident_country: 'Italy',
1771
- resident_address: 'Via Roma 1',
1772
- non_disclosed: 'secret',
1773
- },
1774
- },
1775
- },
1776
- key: 'doctype',
1777
- value: 'org.iso.18013.5.1.mDL',
1778
- },
1779
- ],
1780
- issues: undefined,
1781
- lang: undefined,
1782
- abortEarly: undefined,
1783
- abortPipeEarly: undefined,
1784
- },
1785
- {
1786
- kind: 'schema',
1787
- type: 'object',
1788
- input: undefined,
1789
- expected: 'Object',
1790
- received: 'undefined',
1791
- message: 'Invalid type: Expected Object but received undefined',
1792
- requirement: undefined,
1793
- path: [
1794
- {
1795
- type: 'object',
1796
- origin: 'value',
1797
- input: {
1798
- credential_format: 'mso_mdoc',
1799
- doctype: 'org.iso.18013.5.1.mDL',
1800
- namespaces: {
1801
- 'org.iso.18013.5.1': {
1802
- resident_country: 'Italy',
1803
- resident_address: 'Via Roma 1',
1804
- non_disclosed: 'secret',
1805
- },
1806
- },
1807
- },
1808
- key: 'namespaces',
1809
- value: {
1810
- 'org.iso.18013.5.1': {
1811
- resident_country: 'Italy',
1812
- resident_address: 'Via Roma 1',
1813
- non_disclosed: 'secret',
1814
- },
1815
- },
1816
- },
1817
- {
1818
- type: 'object',
1819
- origin: 'value',
1820
- input: {
1821
- 'org.iso.18013.5.1': {
1822
- resident_country: 'Italy',
1823
- resident_address: 'Via Roma 1',
1824
- non_disclosed: 'secret',
1825
- },
1826
- },
1827
- key: 'org.iso.23220.1',
1828
- value: undefined,
1829
- },
1830
- ],
1831
- issues: undefined,
1832
- lang: undefined,
1833
- abortEarly: undefined,
1834
- abortPipeEarly: undefined,
1835
- },
1836
- ],
1837
- flattened: {
1838
- nested: {
1839
- doctype: [
1840
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
1841
- ],
1842
- 'namespaces.org.iso.23220.1': [
1843
- 'Invalid type: Expected Object but received undefined',
1844
- ],
1845
- },
1846
- },
1847
- input_credential_index: 1,
1848
- claim_set_index: undefined,
1849
- },
1850
- {
1851
- typed: true,
1852
- success: true,
1853
- output: {
1854
- credential_format: 'mso_mdoc',
1855
- doctype: 'org.iso.23220.photoid.1',
1856
- namespaces: {
1857
- 'org.iso.23220.1': {
1858
- given_name: 'Martin',
1859
- family_name: 'Auer',
1860
- portrait: 'https://example.com/portrait',
1861
- },
1862
- },
1863
- },
1864
- issues: undefined,
1865
- input_credential_index: 2,
1866
- claim_set_index: undefined,
1867
- },
1868
- {
1869
- typed: false,
1870
- success: false,
1871
- output: {
1872
- credential_format: 'mso_mdoc',
1873
- doctype: 'org.iso.23220.photoid.1',
1874
- namespaces: {
1875
- 'org.iso.23220.1': {},
1876
- },
1877
- },
1878
- issues: [
1879
- {
1880
- kind: 'schema',
1881
- type: 'non_nullish',
1882
- input: undefined,
1883
- expected: '(!null & !undefined)',
1884
- received: 'undefined',
1885
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
1886
- requirement: undefined,
1887
- path: [
1888
- {
1889
- type: 'object',
1890
- origin: 'value',
1891
- input: {
1892
- credential_format: 'mso_mdoc',
1893
- doctype: 'org.iso.23220.photoid.1',
1894
- namespaces: {
1895
- 'org.iso.23220.1': {
1896
- resident_country: 'Italy',
1897
- resident_address: 'Via Roma 1',
1898
- non_disclosed: 'secret',
1899
- },
1900
- },
1901
- },
1902
- key: 'namespaces',
1903
- value: {
1904
- 'org.iso.23220.1': {
1905
- resident_country: 'Italy',
1906
- resident_address: 'Via Roma 1',
1907
- non_disclosed: 'secret',
1908
- },
1909
- },
1910
- },
1911
- {
1912
- type: 'object',
1913
- origin: 'value',
1914
- input: {
1915
- 'org.iso.23220.1': {
1916
- resident_country: 'Italy',
1917
- resident_address: 'Via Roma 1',
1918
- non_disclosed: 'secret',
1919
- },
1920
- },
1921
- key: 'org.iso.23220.1',
1922
- value: {
1923
- resident_country: 'Italy',
1924
- resident_address: 'Via Roma 1',
1925
- non_disclosed: 'secret',
1926
- },
1927
- },
1928
- {
1929
- type: 'object',
1930
- origin: 'value',
1931
- input: {
1932
- resident_country: 'Italy',
1933
- resident_address: 'Via Roma 1',
1934
- non_disclosed: 'secret',
1935
- },
1936
- key: 'given_name',
1937
- value: undefined,
1938
- },
1939
- ],
1940
- issues: undefined,
1941
- lang: undefined,
1942
- abortEarly: undefined,
1943
- abortPipeEarly: undefined,
1944
- },
1945
- {
1946
- kind: 'schema',
1947
- type: 'non_nullish',
1948
- input: undefined,
1949
- expected: '(!null & !undefined)',
1950
- received: 'undefined',
1951
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
1952
- requirement: undefined,
1953
- path: [
1954
- {
1955
- type: 'object',
1956
- origin: 'value',
1957
- input: {
1958
- credential_format: 'mso_mdoc',
1959
- doctype: 'org.iso.23220.photoid.1',
1960
- namespaces: {
1961
- 'org.iso.23220.1': {
1962
- resident_country: 'Italy',
1963
- resident_address: 'Via Roma 1',
1964
- non_disclosed: 'secret',
1965
- },
1966
- },
1967
- },
1968
- key: 'namespaces',
1969
- value: {
1970
- 'org.iso.23220.1': {
1971
- resident_country: 'Italy',
1972
- resident_address: 'Via Roma 1',
1973
- non_disclosed: 'secret',
1974
- },
1975
- },
1976
- },
1977
- {
1978
- type: 'object',
1979
- origin: 'value',
1980
- input: {
1981
- 'org.iso.23220.1': {
1982
- resident_country: 'Italy',
1983
- resident_address: 'Via Roma 1',
1984
- non_disclosed: 'secret',
1985
- },
1986
- },
1987
- key: 'org.iso.23220.1',
1988
- value: {
1989
- resident_country: 'Italy',
1990
- resident_address: 'Via Roma 1',
1991
- non_disclosed: 'secret',
1992
- },
1993
- },
1994
- {
1995
- type: 'object',
1996
- origin: 'value',
1997
- input: {
1998
- resident_country: 'Italy',
1999
- resident_address: 'Via Roma 1',
2000
- non_disclosed: 'secret',
2001
- },
2002
- key: 'family_name',
2003
- value: undefined,
2004
- },
2005
- ],
2006
- issues: undefined,
2007
- lang: undefined,
2008
- abortEarly: undefined,
2009
- abortPipeEarly: undefined,
2010
- },
2011
- {
2012
- kind: 'schema',
2013
- type: 'non_nullish',
2014
- input: undefined,
2015
- expected: '(!null & !undefined)',
2016
- received: 'undefined',
2017
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
2018
- requirement: undefined,
2019
- path: [
2020
- {
2021
- type: 'object',
2022
- origin: 'value',
2023
- input: {
2024
- credential_format: 'mso_mdoc',
2025
- doctype: 'org.iso.23220.photoid.1',
2026
- namespaces: {
2027
- 'org.iso.23220.1': {
2028
- resident_country: 'Italy',
2029
- resident_address: 'Via Roma 1',
2030
- non_disclosed: 'secret',
2031
- },
2032
- },
2033
- },
2034
- key: 'namespaces',
2035
- value: {
2036
- 'org.iso.23220.1': {
2037
- resident_country: 'Italy',
2038
- resident_address: 'Via Roma 1',
2039
- non_disclosed: 'secret',
2040
- },
2041
- },
2042
- },
2043
- {
2044
- type: 'object',
2045
- origin: 'value',
2046
- input: {
2047
- 'org.iso.23220.1': {
2048
- resident_country: 'Italy',
2049
- resident_address: 'Via Roma 1',
2050
- non_disclosed: 'secret',
2051
- },
2052
- },
2053
- key: 'org.iso.23220.1',
2054
- value: {
2055
- resident_country: 'Italy',
2056
- resident_address: 'Via Roma 1',
2057
- non_disclosed: 'secret',
2058
- },
2059
- },
2060
- {
2061
- type: 'object',
2062
- origin: 'value',
2063
- input: {
2064
- resident_country: 'Italy',
2065
- resident_address: 'Via Roma 1',
2066
- non_disclosed: 'secret',
2067
- },
2068
- key: 'portrait',
2069
- value: undefined,
2070
- },
2071
- ],
2072
- issues: undefined,
2073
- lang: undefined,
2074
- abortEarly: undefined,
2075
- abortPipeEarly: undefined,
2076
- },
2077
- ],
2078
- flattened: {
2079
- nested: {
2080
- 'namespaces.org.iso.23220.1.given_name': [
2081
- 'Invalid type: Expected (!null & !undefined) but received undefined',
2082
- ],
2083
- 'namespaces.org.iso.23220.1.family_name': [
2084
- 'Invalid type: Expected (!null & !undefined) but received undefined',
2085
- ],
2086
- 'namespaces.org.iso.23220.1.portrait': [
2087
- 'Invalid type: Expected (!null & !undefined) but received undefined',
2088
- ],
2089
- },
2090
- },
2091
- input_credential_index: 3,
2092
- claim_set_index: undefined,
2093
- },
2094
- {
2095
- typed: false,
2096
- success: false,
2097
- output: {
2098
- credential_format: 'mso_mdoc',
2099
- doctype: 'example_doctype',
2100
- namespaces: {},
2101
- },
2102
- issues: [
2103
- {
2104
- kind: 'schema',
2105
- type: 'literal',
2106
- input: 'example_doctype',
2107
- expected: '"org.iso.23220.photoid.1"',
2108
- received: '"example_doctype"',
2109
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "example_doctype"',
2110
- requirement: undefined,
2111
- path: [
2112
- {
2113
- type: 'object',
2114
- origin: 'value',
2115
- input: {
2116
- credential_format: 'mso_mdoc',
2117
- doctype: 'example_doctype',
2118
- namespaces: {
2119
- example_namespaces: {
2120
- example_claim: 'example_value',
2121
- },
2122
- },
2123
- },
2124
- key: 'doctype',
2125
- value: 'example_doctype',
2126
- },
2127
- ],
2128
- issues: undefined,
2129
- lang: undefined,
2130
- abortEarly: undefined,
2131
- abortPipeEarly: undefined,
2132
- },
2133
- {
2134
- kind: 'schema',
2135
- type: 'object',
2136
- input: undefined,
2137
- expected: 'Object',
2138
- received: 'undefined',
2139
- message: 'Invalid type: Expected Object but received undefined',
2140
- requirement: undefined,
2141
- path: [
2142
- {
2143
- type: 'object',
2144
- origin: 'value',
2145
- input: {
2146
- credential_format: 'mso_mdoc',
2147
- doctype: 'example_doctype',
2148
- namespaces: {
2149
- example_namespaces: {
2150
- example_claim: 'example_value',
2151
- },
2152
- },
2153
- },
2154
- key: 'namespaces',
2155
- value: {
2156
- example_namespaces: {
2157
- example_claim: 'example_value',
2158
- },
2159
- },
2160
- },
2161
- {
2162
- type: 'object',
2163
- origin: 'value',
2164
- input: {
2165
- example_namespaces: {
2166
- example_claim: 'example_value',
2167
- },
2168
- },
2169
- key: 'org.iso.23220.1',
2170
- value: undefined,
2171
- },
2172
- ],
2173
- issues: undefined,
2174
- lang: undefined,
2175
- abortEarly: undefined,
2176
- abortPipeEarly: undefined,
2177
- },
2178
- ],
2179
- flattened: {
2180
- nested: {
2181
- doctype: [
2182
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "example_doctype"',
2183
- ],
2184
- 'namespaces.org.iso.23220.1': [
2185
- 'Invalid type: Expected Object but received undefined',
2186
- ],
2187
- },
2188
- },
2189
- input_credential_index: 4,
2190
- claim_set_index: undefined,
2191
- },
2192
- {
2193
- typed: false,
2194
- success: false,
2195
- output: {
2196
- credential_format: 'vc+sd-jwt',
2197
- },
2198
- issues: [
2199
- {
2200
- kind: 'schema',
2201
- type: 'literal',
2202
- input: 'vc+sd-jwt',
2203
- expected: '"mso_mdoc"',
2204
- received: '"vc+sd-jwt"',
2205
- message: 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
2206
- requirement: undefined,
2207
- path: [
2208
- {
2209
- type: 'object',
2210
- origin: 'value',
2211
- input: {
2212
- credential_format: 'vc+sd-jwt',
2213
- vct: 'https://credentials.example.com/identity_credential',
2214
- claims: {
2215
- first_name: 'Arthur',
2216
- last_name: 'Dent',
2217
- address: {
2218
- street_address: '42 Market Street',
2219
- locality: 'Milliways',
2220
- postal_code: '12345',
2221
- },
2222
- degrees: [
2223
- {
2224
- type: 'Bachelor of Science',
2225
- university: 'University of Betelgeuse',
2226
- },
2227
- {
2228
- type: 'Master of Science',
2229
- university: 'University of Betelgeuse',
2230
- },
2231
- ],
2232
- nationalities: ['British', 'Betelgeusian'],
2233
- },
2234
- },
2235
- key: 'credential_format',
2236
- value: 'vc+sd-jwt',
2237
- },
2238
- ],
2239
- issues: undefined,
2240
- lang: undefined,
2241
- abortEarly: undefined,
2242
- abortPipeEarly: undefined,
2243
- },
2244
- {
2245
- kind: 'schema',
2246
- type: 'literal',
2247
- input: undefined,
2248
- expected: '"org.iso.23220.photoid.1"',
2249
- received: 'undefined',
2250
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received undefined',
2251
- requirement: undefined,
2252
- path: [
2253
- {
2254
- type: 'object',
2255
- origin: 'value',
2256
- input: {
2257
- credential_format: 'vc+sd-jwt',
2258
- vct: 'https://credentials.example.com/identity_credential',
2259
- claims: {
2260
- first_name: 'Arthur',
2261
- last_name: 'Dent',
2262
- address: {
2263
- street_address: '42 Market Street',
2264
- locality: 'Milliways',
2265
- postal_code: '12345',
2266
- },
2267
- degrees: [
2268
- {
2269
- type: 'Bachelor of Science',
2270
- university: 'University of Betelgeuse',
2271
- },
2272
- {
2273
- type: 'Master of Science',
2274
- university: 'University of Betelgeuse',
2275
- },
2276
- ],
2277
- nationalities: ['British', 'Betelgeusian'],
2278
- },
2279
- },
2280
- key: 'doctype',
2281
- value: undefined,
2282
- },
2283
- ],
2284
- issues: undefined,
2285
- lang: undefined,
2286
- abortEarly: undefined,
2287
- abortPipeEarly: undefined,
2288
- },
2289
- {
2290
- kind: 'schema',
2291
- type: 'object',
2292
- input: undefined,
2293
- expected: 'Object',
2294
- received: 'undefined',
2295
- message: 'Invalid type: Expected Object but received undefined',
2296
- requirement: undefined,
2297
- path: [
2298
- {
2299
- type: 'object',
2300
- origin: 'value',
2301
- input: {
2302
- credential_format: 'vc+sd-jwt',
2303
- vct: 'https://credentials.example.com/identity_credential',
2304
- claims: {
2305
- first_name: 'Arthur',
2306
- last_name: 'Dent',
2307
- address: {
2308
- street_address: '42 Market Street',
2309
- locality: 'Milliways',
2310
- postal_code: '12345',
2311
- },
2312
- degrees: [
2313
- {
2314
- type: 'Bachelor of Science',
2315
- university: 'University of Betelgeuse',
2316
- },
2317
- {
2318
- type: 'Master of Science',
2319
- university: 'University of Betelgeuse',
2320
- },
2321
- ],
2322
- nationalities: ['British', 'Betelgeusian'],
2323
- },
2324
- },
2325
- key: 'namespaces',
2326
- value: undefined,
2327
- },
2328
- ],
2329
- issues: undefined,
2330
- lang: undefined,
2331
- abortEarly: undefined,
2332
- abortPipeEarly: undefined,
2333
- },
2334
- ],
2335
- flattened: {
2336
- nested: {
2337
- credential_format: [
2338
- 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
2339
- ],
2340
- doctype: [
2341
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received undefined',
2342
- ],
2343
- namespaces: [
2344
- 'Invalid type: Expected Object but received undefined',
2345
- ],
2346
- },
2347
- },
2348
- input_credential_index: 5,
2349
- claim_set_index: undefined,
2350
- },
2351
- ],
2352
- ],
2353
- },
2354
- 'photo_card-address': {
2355
- typed: true,
2356
- success: true,
2357
- output: {
2358
- credential_format: 'mso_mdoc',
2359
- doctype: 'org.iso.23220.photoid.1',
2360
- namespaces: {
2361
- 'org.iso.23220.1': {
2362
- resident_address: 'Via Roma 1',
2363
- resident_country: 'Italy',
2364
- },
2365
- },
2366
- },
2367
- input_credential_index: 3,
2368
- claim_set_index: undefined,
2369
- all: [
2370
- [
2371
- {
2372
- typed: false,
2373
- success: false,
2374
- output: {
2375
- credential_format: 'mso_mdoc',
2376
- doctype: 'org.iso.18013.5.1.mDL',
2377
- namespaces: {},
2378
- },
2379
- issues: [
2380
- {
2381
- kind: 'schema',
2382
- type: 'literal',
2383
- input: 'org.iso.18013.5.1.mDL',
2384
- expected: '"org.iso.23220.photoid.1"',
2385
- received: '"org.iso.18013.5.1.mDL"',
2386
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
2387
- requirement: undefined,
2388
- path: [
2389
- {
2390
- type: 'object',
2391
- origin: 'value',
2392
- input: {
2393
- credential_format: 'mso_mdoc',
2394
- doctype: 'org.iso.18013.5.1.mDL',
2395
- namespaces: {
2396
- 'org.iso.18013.5.1': {
2397
- given_name: 'Martin',
2398
- family_name: 'Auer',
2399
- portrait: 'https://example.com/portrait',
2400
- },
2401
- },
2402
- },
2403
- key: 'doctype',
2404
- value: 'org.iso.18013.5.1.mDL',
2405
- },
2406
- ],
2407
- issues: undefined,
2408
- lang: undefined,
2409
- abortEarly: undefined,
2410
- abortPipeEarly: undefined,
2411
- },
2412
- {
2413
- kind: 'schema',
2414
- type: 'object',
2415
- input: undefined,
2416
- expected: 'Object',
2417
- received: 'undefined',
2418
- message: 'Invalid type: Expected Object but received undefined',
2419
- requirement: undefined,
2420
- path: [
2421
- {
2422
- type: 'object',
2423
- origin: 'value',
2424
- input: {
2425
- credential_format: 'mso_mdoc',
2426
- doctype: 'org.iso.18013.5.1.mDL',
2427
- namespaces: {
2428
- 'org.iso.18013.5.1': {
2429
- given_name: 'Martin',
2430
- family_name: 'Auer',
2431
- portrait: 'https://example.com/portrait',
2432
- },
2433
- },
2434
- },
2435
- key: 'namespaces',
2436
- value: {
2437
- 'org.iso.18013.5.1': {
2438
- given_name: 'Martin',
2439
- family_name: 'Auer',
2440
- portrait: 'https://example.com/portrait',
2441
- },
2442
- },
2443
- },
2444
- {
2445
- type: 'object',
2446
- origin: 'value',
2447
- input: {
2448
- 'org.iso.18013.5.1': {
2449
- given_name: 'Martin',
2450
- family_name: 'Auer',
2451
- portrait: 'https://example.com/portrait',
2452
- },
2453
- },
2454
- key: 'org.iso.23220.1',
2455
- value: undefined,
2456
- },
2457
- ],
2458
- issues: undefined,
2459
- lang: undefined,
2460
- abortEarly: undefined,
2461
- abortPipeEarly: undefined,
2462
- },
2463
- ],
2464
- flattened: {
2465
- nested: {
2466
- doctype: [
2467
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
2468
- ],
2469
- 'namespaces.org.iso.23220.1': [
2470
- 'Invalid type: Expected Object but received undefined',
2471
- ],
2472
- },
2473
- },
2474
- input_credential_index: 0,
2475
- claim_set_index: undefined,
2476
- },
2477
- {
2478
- typed: false,
2479
- success: false,
2480
- output: {
2481
- credential_format: 'mso_mdoc',
2482
- doctype: 'org.iso.18013.5.1.mDL',
2483
- namespaces: {},
2484
- },
2485
- issues: [
2486
- {
2487
- kind: 'schema',
2488
- type: 'literal',
2489
- input: 'org.iso.18013.5.1.mDL',
2490
- expected: '"org.iso.23220.photoid.1"',
2491
- received: '"org.iso.18013.5.1.mDL"',
2492
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
2493
- requirement: undefined,
2494
- path: [
2495
- {
2496
- type: 'object',
2497
- origin: 'value',
2498
- input: {
2499
- credential_format: 'mso_mdoc',
2500
- doctype: 'org.iso.18013.5.1.mDL',
2501
- namespaces: {
2502
- 'org.iso.18013.5.1': {
2503
- resident_country: 'Italy',
2504
- resident_address: 'Via Roma 1',
2505
- non_disclosed: 'secret',
2506
- },
2507
- },
2508
- },
2509
- key: 'doctype',
2510
- value: 'org.iso.18013.5.1.mDL',
2511
- },
2512
- ],
2513
- issues: undefined,
2514
- lang: undefined,
2515
- abortEarly: undefined,
2516
- abortPipeEarly: undefined,
2517
- },
2518
- {
2519
- kind: 'schema',
2520
- type: 'object',
2521
- input: undefined,
2522
- expected: 'Object',
2523
- received: 'undefined',
2524
- message: 'Invalid type: Expected Object but received undefined',
2525
- requirement: undefined,
2526
- path: [
2527
- {
2528
- type: 'object',
2529
- origin: 'value',
2530
- input: {
2531
- credential_format: 'mso_mdoc',
2532
- doctype: 'org.iso.18013.5.1.mDL',
2533
- namespaces: {
2534
- 'org.iso.18013.5.1': {
2535
- resident_country: 'Italy',
2536
- resident_address: 'Via Roma 1',
2537
- non_disclosed: 'secret',
2538
- },
2539
- },
2540
- },
2541
- key: 'namespaces',
2542
- value: {
2543
- 'org.iso.18013.5.1': {
2544
- resident_country: 'Italy',
2545
- resident_address: 'Via Roma 1',
2546
- non_disclosed: 'secret',
2547
- },
2548
- },
2549
- },
2550
- {
2551
- type: 'object',
2552
- origin: 'value',
2553
- input: {
2554
- 'org.iso.18013.5.1': {
2555
- resident_country: 'Italy',
2556
- resident_address: 'Via Roma 1',
2557
- non_disclosed: 'secret',
2558
- },
2559
- },
2560
- key: 'org.iso.23220.1',
2561
- value: undefined,
2562
- },
2563
- ],
2564
- issues: undefined,
2565
- lang: undefined,
2566
- abortEarly: undefined,
2567
- abortPipeEarly: undefined,
2568
- },
2569
- ],
2570
- flattened: {
2571
- nested: {
2572
- doctype: [
2573
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "org.iso.18013.5.1.mDL"',
2574
- ],
2575
- 'namespaces.org.iso.23220.1': [
2576
- 'Invalid type: Expected Object but received undefined',
2577
- ],
2578
- },
2579
- },
2580
- input_credential_index: 1,
2581
- claim_set_index: undefined,
2582
- },
2583
- {
2584
- typed: false,
2585
- success: false,
2586
- output: {
2587
- credential_format: 'mso_mdoc',
2588
- doctype: 'org.iso.23220.photoid.1',
2589
- namespaces: {
2590
- 'org.iso.23220.1': {},
2591
- },
2592
- },
2593
- issues: [
2594
- {
2595
- kind: 'schema',
2596
- type: 'non_nullish',
2597
- input: undefined,
2598
- expected: '(!null & !undefined)',
2599
- received: 'undefined',
2600
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
2601
- requirement: undefined,
2602
- path: [
2603
- {
2604
- type: 'object',
2605
- origin: 'value',
2606
- input: {
2607
- credential_format: 'mso_mdoc',
2608
- doctype: 'org.iso.23220.photoid.1',
2609
- namespaces: {
2610
- 'org.iso.23220.1': {
2611
- given_name: 'Martin',
2612
- family_name: 'Auer',
2613
- portrait: 'https://example.com/portrait',
2614
- },
2615
- },
2616
- },
2617
- key: 'namespaces',
2618
- value: {
2619
- 'org.iso.23220.1': {
2620
- given_name: 'Martin',
2621
- family_name: 'Auer',
2622
- portrait: 'https://example.com/portrait',
2623
- },
2624
- },
2625
- },
2626
- {
2627
- type: 'object',
2628
- origin: 'value',
2629
- input: {
2630
- 'org.iso.23220.1': {
2631
- given_name: 'Martin',
2632
- family_name: 'Auer',
2633
- portrait: 'https://example.com/portrait',
2634
- },
2635
- },
2636
- key: 'org.iso.23220.1',
2637
- value: {
2638
- given_name: 'Martin',
2639
- family_name: 'Auer',
2640
- portrait: 'https://example.com/portrait',
2641
- },
2642
- },
2643
- {
2644
- type: 'object',
2645
- origin: 'value',
2646
- input: {
2647
- given_name: 'Martin',
2648
- family_name: 'Auer',
2649
- portrait: 'https://example.com/portrait',
2650
- },
2651
- key: 'resident_address',
2652
- value: undefined,
2653
- },
2654
- ],
2655
- issues: undefined,
2656
- lang: undefined,
2657
- abortEarly: undefined,
2658
- abortPipeEarly: undefined,
2659
- },
2660
- {
2661
- kind: 'schema',
2662
- type: 'non_nullish',
2663
- input: undefined,
2664
- expected: '(!null & !undefined)',
2665
- received: 'undefined',
2666
- message: 'Invalid type: Expected (!null & !undefined) but received undefined',
2667
- requirement: undefined,
2668
- path: [
2669
- {
2670
- type: 'object',
2671
- origin: 'value',
2672
- input: {
2673
- credential_format: 'mso_mdoc',
2674
- doctype: 'org.iso.23220.photoid.1',
2675
- namespaces: {
2676
- 'org.iso.23220.1': {
2677
- given_name: 'Martin',
2678
- family_name: 'Auer',
2679
- portrait: 'https://example.com/portrait',
2680
- },
2681
- },
2682
- },
2683
- key: 'namespaces',
2684
- value: {
2685
- 'org.iso.23220.1': {
2686
- given_name: 'Martin',
2687
- family_name: 'Auer',
2688
- portrait: 'https://example.com/portrait',
2689
- },
2690
- },
2691
- },
2692
- {
2693
- type: 'object',
2694
- origin: 'value',
2695
- input: {
2696
- 'org.iso.23220.1': {
2697
- given_name: 'Martin',
2698
- family_name: 'Auer',
2699
- portrait: 'https://example.com/portrait',
2700
- },
2701
- },
2702
- key: 'org.iso.23220.1',
2703
- value: {
2704
- given_name: 'Martin',
2705
- family_name: 'Auer',
2706
- portrait: 'https://example.com/portrait',
2707
- },
2708
- },
2709
- {
2710
- type: 'object',
2711
- origin: 'value',
2712
- input: {
2713
- given_name: 'Martin',
2714
- family_name: 'Auer',
2715
- portrait: 'https://example.com/portrait',
2716
- },
2717
- key: 'resident_country',
2718
- value: undefined,
2719
- },
2720
- ],
2721
- issues: undefined,
2722
- lang: undefined,
2723
- abortEarly: undefined,
2724
- abortPipeEarly: undefined,
2725
- },
2726
- ],
2727
- flattened: {
2728
- nested: {
2729
- 'namespaces.org.iso.23220.1.resident_address': [
2730
- 'Invalid type: Expected (!null & !undefined) but received undefined',
2731
- ],
2732
- 'namespaces.org.iso.23220.1.resident_country': [
2733
- 'Invalid type: Expected (!null & !undefined) but received undefined',
2734
- ],
2735
- },
2736
- },
2737
- input_credential_index: 2,
2738
- claim_set_index: undefined,
2739
- },
2740
- {
2741
- typed: true,
2742
- success: true,
2743
- output: {
2744
- credential_format: 'mso_mdoc',
2745
- doctype: 'org.iso.23220.photoid.1',
2746
- namespaces: {
2747
- 'org.iso.23220.1': {
2748
- resident_address: 'Via Roma 1',
2749
- resident_country: 'Italy',
2750
- },
2751
- },
2752
- },
2753
- issues: undefined,
2754
- input_credential_index: 3,
2755
- claim_set_index: undefined,
2756
- },
2757
- {
2758
- typed: false,
2759
- success: false,
2760
- output: {
2761
- credential_format: 'mso_mdoc',
2762
- doctype: 'example_doctype',
2763
- namespaces: {},
2764
- },
2765
- issues: [
2766
- {
2767
- kind: 'schema',
2768
- type: 'literal',
2769
- input: 'example_doctype',
2770
- expected: '"org.iso.23220.photoid.1"',
2771
- received: '"example_doctype"',
2772
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received "example_doctype"',
2773
- requirement: undefined,
2774
- path: [
2775
- {
2776
- type: 'object',
2777
- origin: 'value',
2778
- input: {
2779
- credential_format: 'mso_mdoc',
2780
- doctype: 'example_doctype',
2781
- namespaces: {
2782
- example_namespaces: {
2783
- example_claim: 'example_value',
2784
- },
2785
- },
2786
- },
2787
- key: 'doctype',
2788
- value: 'example_doctype',
2789
- },
2790
- ],
2791
- issues: undefined,
2792
- lang: undefined,
2793
- abortEarly: undefined,
2794
- abortPipeEarly: undefined,
2795
- },
2796
- {
2797
- kind: 'schema',
2798
- type: 'object',
2799
- input: undefined,
2800
- expected: 'Object',
2801
- received: 'undefined',
2802
- message: 'Invalid type: Expected Object but received undefined',
2803
- requirement: undefined,
2804
- path: [
2805
- {
2806
- type: 'object',
2807
- origin: 'value',
2808
- input: {
2809
- credential_format: 'mso_mdoc',
2810
- doctype: 'example_doctype',
2811
- namespaces: {
2812
- example_namespaces: {
2813
- example_claim: 'example_value',
2814
- },
2815
- },
2816
- },
2817
- key: 'namespaces',
2818
- value: {
2819
- example_namespaces: {
2820
- example_claim: 'example_value',
2821
- },
2822
- },
2823
- },
2824
- {
2825
- type: 'object',
2826
- origin: 'value',
2827
- input: {
2828
- example_namespaces: {
2829
- example_claim: 'example_value',
2830
- },
2831
- },
2832
- key: 'org.iso.23220.1',
2833
- value: undefined,
2834
- },
2835
- ],
2836
- issues: undefined,
2837
- lang: undefined,
2838
- abortEarly: undefined,
2839
- abortPipeEarly: undefined,
2840
- },
2841
- ],
2842
- flattened: {
2843
- nested: {
2844
- doctype: [
2845
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received "example_doctype"',
2846
- ],
2847
- 'namespaces.org.iso.23220.1': [
2848
- 'Invalid type: Expected Object but received undefined',
2849
- ],
2850
- },
2851
- },
2852
- input_credential_index: 4,
2853
- claim_set_index: undefined,
2854
- },
2855
- {
2856
- typed: false,
2857
- success: false,
2858
- output: {
2859
- credential_format: 'vc+sd-jwt',
2860
- },
2861
- issues: [
2862
- {
2863
- kind: 'schema',
2864
- type: 'literal',
2865
- input: 'vc+sd-jwt',
2866
- expected: '"mso_mdoc"',
2867
- received: '"vc+sd-jwt"',
2868
- message: 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
2869
- requirement: undefined,
2870
- path: [
2871
- {
2872
- type: 'object',
2873
- origin: 'value',
2874
- input: {
2875
- credential_format: 'vc+sd-jwt',
2876
- vct: 'https://credentials.example.com/identity_credential',
2877
- claims: {
2878
- first_name: 'Arthur',
2879
- last_name: 'Dent',
2880
- address: {
2881
- street_address: '42 Market Street',
2882
- locality: 'Milliways',
2883
- postal_code: '12345',
2884
- },
2885
- degrees: [
2886
- {
2887
- type: 'Bachelor of Science',
2888
- university: 'University of Betelgeuse',
2889
- },
2890
- {
2891
- type: 'Master of Science',
2892
- university: 'University of Betelgeuse',
2893
- },
2894
- ],
2895
- nationalities: ['British', 'Betelgeusian'],
2896
- },
2897
- },
2898
- key: 'credential_format',
2899
- value: 'vc+sd-jwt',
2900
- },
2901
- ],
2902
- issues: undefined,
2903
- lang: undefined,
2904
- abortEarly: undefined,
2905
- abortPipeEarly: undefined,
2906
- },
2907
- {
2908
- kind: 'schema',
2909
- type: 'literal',
2910
- input: undefined,
2911
- expected: '"org.iso.23220.photoid.1"',
2912
- received: 'undefined',
2913
- message: 'Invalid type: Expected "org.iso.23220.photoid.1" but received undefined',
2914
- requirement: undefined,
2915
- path: [
2916
- {
2917
- type: 'object',
2918
- origin: 'value',
2919
- input: {
2920
- credential_format: 'vc+sd-jwt',
2921
- vct: 'https://credentials.example.com/identity_credential',
2922
- claims: {
2923
- first_name: 'Arthur',
2924
- last_name: 'Dent',
2925
- address: {
2926
- street_address: '42 Market Street',
2927
- locality: 'Milliways',
2928
- postal_code: '12345',
2929
- },
2930
- degrees: [
2931
- {
2932
- type: 'Bachelor of Science',
2933
- university: 'University of Betelgeuse',
2934
- },
2935
- {
2936
- type: 'Master of Science',
2937
- university: 'University of Betelgeuse',
2938
- },
2939
- ],
2940
- nationalities: ['British', 'Betelgeusian'],
2941
- },
2942
- },
2943
- key: 'doctype',
2944
- value: undefined,
2945
- },
2946
- ],
2947
- issues: undefined,
2948
- lang: undefined,
2949
- abortEarly: undefined,
2950
- abortPipeEarly: undefined,
2951
- },
2952
- {
2953
- kind: 'schema',
2954
- type: 'object',
2955
- input: undefined,
2956
- expected: 'Object',
2957
- received: 'undefined',
2958
- message: 'Invalid type: Expected Object but received undefined',
2959
- requirement: undefined,
2960
- path: [
2961
- {
2962
- type: 'object',
2963
- origin: 'value',
2964
- input: {
2965
- credential_format: 'vc+sd-jwt',
2966
- vct: 'https://credentials.example.com/identity_credential',
2967
- claims: {
2968
- first_name: 'Arthur',
2969
- last_name: 'Dent',
2970
- address: {
2971
- street_address: '42 Market Street',
2972
- locality: 'Milliways',
2973
- postal_code: '12345',
2974
- },
2975
- degrees: [
2976
- {
2977
- type: 'Bachelor of Science',
2978
- university: 'University of Betelgeuse',
2979
- },
2980
- {
2981
- type: 'Master of Science',
2982
- university: 'University of Betelgeuse',
2983
- },
2984
- ],
2985
- nationalities: ['British', 'Betelgeusian'],
2986
- },
2987
- },
2988
- key: 'namespaces',
2989
- value: undefined,
2990
- },
2991
- ],
2992
- issues: undefined,
2993
- lang: undefined,
2994
- abortEarly: undefined,
2995
- abortPipeEarly: undefined,
2996
- },
2997
- ],
2998
- flattened: {
2999
- nested: {
3000
- credential_format: [
3001
- 'Invalid type: Expected "mso_mdoc" but received "vc+sd-jwt"',
3002
- ],
3003
- doctype: [
3004
- 'Invalid type: Expected "org.iso.23220.photoid.1" but received undefined',
3005
- ],
3006
- namespaces: [
3007
- 'Invalid type: Expected Object but received undefined',
3008
- ],
3009
- },
3010
- },
3011
- input_credential_index: 5,
3012
- claim_set_index: undefined,
3013
- },
3014
- ],
3015
- ],
3016
- },
3017
- },
3018
- });
3019
- const presentationQueryResult = m_dcql_presentation_result_js_1.DcqlPresentationResult.fromDcqlPresentation(
3020
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
3021
- {
3022
- 'mdl-id': res.credential_matches['mdl-id'].output,
3023
- 'mdl-address': res.credential_matches['mdl-address'].output,
3024
- 'photo_card-address': res.credential_matches['photo_card-address'].output,
3025
- 'photo_card-id': res.credential_matches['photo_card-id'].output,
3026
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3027
- }, { dcqlQuery: query });
3028
- node_assert_1.default.deepStrictEqual(presentationQueryResult, {
3029
- credentials: [
3030
- {
3031
- id: 'mdl-id',
3032
- format: 'mso_mdoc',
3033
- claims: [
3034
- {
3035
- id: 'given_name',
3036
- namespace: 'org.iso.18013.5.1',
3037
- claim_name: 'given_name',
3038
- },
3039
- {
3040
- id: 'family_name',
3041
- namespace: 'org.iso.18013.5.1',
3042
- claim_name: 'family_name',
3043
- },
3044
- {
3045
- id: 'portrait',
3046
- namespace: 'org.iso.18013.5.1',
3047
- claim_name: 'portrait',
3048
- },
3049
- ],
3050
- meta: {
3051
- doctype_value: 'org.iso.18013.5.1.mDL',
3052
- },
3053
- },
3054
- {
3055
- id: 'mdl-address',
3056
- format: 'mso_mdoc',
3057
- claims: [
3058
- {
3059
- id: 'resident_address',
3060
- namespace: 'org.iso.18013.5.1',
3061
- claim_name: 'resident_address',
3062
- },
3063
- {
3064
- id: 'resident_country',
3065
- namespace: 'org.iso.18013.5.1',
3066
- claim_name: 'resident_country',
3067
- },
3068
- ],
3069
- meta: {
3070
- doctype_value: 'org.iso.18013.5.1.mDL',
3071
- },
3072
- },
3073
- {
3074
- id: 'photo_card-id',
3075
- format: 'mso_mdoc',
3076
- claims: [
3077
- {
3078
- id: 'given_name',
3079
- namespace: 'org.iso.23220.1',
3080
- claim_name: 'given_name',
3081
- },
3082
- {
3083
- id: 'family_name',
3084
- namespace: 'org.iso.23220.1',
3085
- claim_name: 'family_name',
3086
- },
3087
- {
3088
- id: 'portrait',
3089
- namespace: 'org.iso.23220.1',
3090
- claim_name: 'portrait',
3091
- },
3092
- ],
3093
- meta: {
3094
- doctype_value: 'org.iso.23220.photoid.1',
3095
- },
3096
- },
3097
- {
3098
- id: 'photo_card-address',
3099
- format: 'mso_mdoc',
3100
- claims: [
3101
- {
3102
- id: 'resident_address',
3103
- namespace: 'org.iso.23220.1',
3104
- claim_name: 'resident_address',
3105
- },
3106
- {
3107
- id: 'resident_country',
3108
- namespace: 'org.iso.23220.1',
3109
- claim_name: 'resident_country',
3110
- },
3111
- ],
3112
- meta: {
3113
- doctype_value: 'org.iso.23220.photoid.1',
3114
- },
3115
- },
3116
- ],
3117
- credential_sets: [
3118
- {
3119
- options: [['mdl-id'], ['photo_card-id']],
3120
- required: true,
3121
- purpose: 'Identification',
3122
- matching_options: [['mdl-id'], ['photo_card-id']],
3123
- },
3124
- {
3125
- options: [['mdl-address'], ['photo_card-address']],
3126
- required: false,
3127
- purpose: 'Proof of address',
3128
- matching_options: [['mdl-address'], ['photo_card-address']],
3129
- },
3130
- ],
3131
- canBeSatisfied: true,
3132
- valid_matches: {
3133
- 'mdl-id': {
3134
- typed: true,
3135
- success: true,
3136
- output: {
3137
- credential_format: 'mso_mdoc',
3138
- doctype: 'org.iso.18013.5.1.mDL',
3139
- namespaces: {
3140
- 'org.iso.18013.5.1': {
3141
- given_name: 'Martin',
3142
- family_name: 'Auer',
3143
- portrait: 'https://example.com/portrait',
3144
- },
3145
- },
3146
- },
3147
- claim_set_index: undefined,
3148
- presentation_id: 'mdl-id',
3149
- },
3150
- 'mdl-address': {
3151
- typed: true,
3152
- success: true,
3153
- output: {
3154
- credential_format: 'mso_mdoc',
3155
- doctype: 'org.iso.18013.5.1.mDL',
3156
- namespaces: {
3157
- 'org.iso.18013.5.1': {
3158
- resident_address: 'Via Roma 1',
3159
- resident_country: 'Italy',
3160
- },
3161
- },
3162
- },
3163
- claim_set_index: undefined,
3164
- presentation_id: 'mdl-address',
3165
- },
3166
- 'photo_card-address': {
3167
- typed: true,
3168
- success: true,
3169
- output: {
3170
- credential_format: 'mso_mdoc',
3171
- doctype: 'org.iso.23220.photoid.1',
3172
- namespaces: {
3173
- 'org.iso.23220.1': {
3174
- resident_address: 'Via Roma 1',
3175
- resident_country: 'Italy',
3176
- },
3177
- },
3178
- },
3179
- claim_set_index: undefined,
3180
- presentation_id: 'photo_card-address',
3181
- },
3182
- 'photo_card-id': {
3183
- typed: true,
3184
- success: true,
3185
- output: {
3186
- credential_format: 'mso_mdoc',
3187
- doctype: 'org.iso.23220.photoid.1',
3188
- namespaces: {
3189
- 'org.iso.23220.1': {
3190
- given_name: 'Martin',
3191
- family_name: 'Auer',
3192
- portrait: 'https://example.com/portrait',
3193
- },
3194
- },
3195
- },
3196
- claim_set_index: undefined,
3197
- presentation_id: 'photo_card-id',
3198
- },
3199
- },
3200
- invalid_matches: undefined,
3201
- });
3202
- });
3203
- });
3204
- //# sourceMappingURL=dcql-query-complex.test.js.map