dcql 0.2.13 → 0.2.14

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 (33) hide show
  1. package/dist/src/dcql-parser/dcql-claims-query-result.d.ts +4 -4
  2. package/dist/src/dcql-parser/dcql-claims-query-result.js +3 -3
  3. package/dist/src/dcql-parser/dcql-claims-query-result.js.map +1 -1
  4. package/dist/src/dcql-parser/dcql-credential-query-result.js +1 -1
  5. package/dist/src/dcql-parser/dcql-credential-query-result.js.map +1 -1
  6. package/dist/src/dcql-presentation/m-dcql-credential-presentation.d.ts +6 -6
  7. package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts +18 -18
  8. package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts.map +1 -1
  9. package/dist/src/dcql-presentation/m-dcql-presentation-result.js +5 -4
  10. package/dist/src/dcql-presentation/m-dcql-presentation-result.js.map +1 -1
  11. package/dist/src/dcql-query/dcql-query-complex.test.d.ts +2 -0
  12. package/dist/src/dcql-query/dcql-query-complex.test.d.ts.map +1 -0
  13. package/dist/src/dcql-query/dcql-query-complex.test.js +3631 -0
  14. package/dist/src/dcql-query/dcql-query-complex.test.js.map +1 -0
  15. package/dist/src/dcql-query/dcql-query.test.js +174 -12
  16. package/dist/src/dcql-query/dcql-query.test.js.map +1 -1
  17. package/dist/src/dcql-query/m-dcql-query.d.ts +76 -81
  18. package/dist/src/dcql-query/m-dcql-query.d.ts.map +1 -1
  19. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +159 -210
  20. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts.map +1 -1
  21. package/dist/src/dcql-query-result/m-dcql-query-result.js +11 -16
  22. package/dist/src/dcql-query-result/m-dcql-query-result.js.map +1 -1
  23. package/dist/src/dcql-query-result/run-dcql-query.d.ts.map +1 -1
  24. package/dist/src/dcql-query-result/run-dcql-query.js +1 -2
  25. package/dist/src/dcql-query-result/run-dcql-query.js.map +1 -1
  26. package/dist/src/u-dcql-credential.d.ts +14 -14
  27. package/dist/src/u-dcql-credential.js +4 -4
  28. package/dist/src/u-dcql-credential.js.map +1 -1
  29. package/dist/src/u-dcql.d.ts +16 -21
  30. package/dist/src/u-dcql.d.ts.map +1 -1
  31. package/dist/src/u-dcql.js +7 -13
  32. package/dist/src/u-dcql.js.map +1 -1
  33. package/package.json +1 -1
@@ -1,87 +1,35 @@
1
1
  import * as v from 'valibot';
2
+ import { vCredentialParseSuccess } from '../u-dcql.js';
2
3
  export declare namespace DcqlQueryResult {
3
- const vCredentialParseSuccess: v.ObjectSchema<{
4
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
5
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
6
- readonly doctype: v.StringSchema<undefined>;
7
- readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
8
- }, undefined>, v.ObjectSchema<{
9
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
10
- readonly vct: v.StringSchema<undefined>;
11
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
12
- }, undefined>, v.ObjectSchema<{
13
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
14
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
15
- }, undefined>], undefined>;
4
+ type CredentialParseSuccess = v.InferOutput<typeof vCredentialParseSuccess>;
5
+ const vCredentialQueryResult: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
16
6
  readonly success: v.LiteralSchema<true, undefined>;
17
7
  readonly typed: v.LiteralSchema<true, undefined>;
18
8
  readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
19
- readonly credential_index: v.NumberSchema<undefined>;
9
+ readonly input_credential_index: v.NumberSchema<undefined>;
20
10
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
21
- }, undefined>;
22
- export type CredentialParseSuccess = v.InferOutput<typeof vCredentialParseSuccess>;
23
- export const vCredentialParseResult: v.UnionSchema<[v.ObjectSchema<{
24
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
25
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
11
+ readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
12
+ readonly credential_format: v.LiteralSchema<"mso_mdoc", undefined>;
26
13
  readonly doctype: v.StringSchema<undefined>;
27
14
  readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
28
15
  }, undefined>, v.ObjectSchema<{
29
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
16
+ readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
30
17
  readonly vct: v.StringSchema<undefined>;
31
18
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
32
19
  }, undefined>, v.ObjectSchema<{
33
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
20
+ readonly credential_format: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
34
21
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
35
22
  }, undefined>], undefined>;
36
- readonly success: v.LiteralSchema<true, undefined>;
37
- readonly typed: v.LiteralSchema<true, undefined>;
38
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
39
- readonly credential_index: v.NumberSchema<undefined>;
40
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
41
23
  }, undefined>, v.ObjectSchema<{
42
24
  readonly success: v.LiteralSchema<false, undefined>;
43
25
  readonly typed: v.BooleanSchema<undefined>;
44
26
  readonly output: v.UnknownSchema;
45
27
  readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
46
- readonly credential_index: v.NumberSchema<undefined>;
47
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
48
- }, undefined>], undefined>;
49
- export type CredentialParseResult = v.InferOutput<typeof vCredentialParseResult>;
50
- export const vCredentialQueryResult: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
51
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
52
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
53
- readonly doctype: v.StringSchema<undefined>;
54
- readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
55
- }, undefined>, v.ObjectSchema<{
56
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
57
- readonly vct: v.StringSchema<undefined>;
58
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
59
- }, undefined>, v.ObjectSchema<{
60
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
61
- readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
62
- }, undefined>], undefined>;
63
- readonly success: v.LiteralSchema<true, undefined>;
64
- readonly typed: v.LiteralSchema<true, undefined>;
65
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
66
- readonly credential_index: v.NumberSchema<undefined>;
67
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
68
- }, undefined>, v.ObjectSchema<{
69
- readonly success: v.LiteralSchema<false, undefined>;
70
- readonly typed: v.BooleanSchema<undefined>;
71
- readonly output: v.UnknownSchema;
72
- readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
73
- readonly credential_index: v.NumberSchema<undefined>;
28
+ readonly input_credential_index: v.NumberSchema<undefined>;
74
29
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
75
30
  }, undefined>], undefined>, undefined>, undefined>, v.CustomSchema<[({
76
- output: unknown;
77
- success: false;
78
- typed: boolean;
79
- issues: [unknown, ...unknown[]];
80
- claim_set_index: number | undefined;
81
- credential_index: number;
82
- } | {
83
31
  output: {
84
- credentialFormat: "mso_mdoc";
32
+ credential_format: "mso_mdoc";
85
33
  doctype: string;
86
34
  namespaces: {
87
35
  [x: string]: {
@@ -89,13 +37,13 @@ export declare namespace DcqlQueryResult {
89
37
  };
90
38
  };
91
39
  } | {
92
- credentialFormat: "vc+sd-jwt";
40
+ credential_format: "vc+sd-jwt";
93
41
  vct: string;
94
42
  claims: {
95
43
  [x: string]: import("../u-dcql.js").Json;
96
44
  };
97
45
  } | {
98
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
46
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
99
47
  claims: {
100
48
  [x: string]: import("../u-dcql.js").Json;
101
49
  };
@@ -103,18 +51,18 @@ export declare namespace DcqlQueryResult {
103
51
  success: true;
104
52
  typed: true;
105
53
  claim_set_index: number | undefined;
106
- credential_index: number;
54
+ input_credential_index: number;
107
55
  issues?: undefined;
108
- } | undefined)[], ...({
56
+ } | {
109
57
  output: unknown;
110
58
  success: false;
111
59
  typed: boolean;
112
60
  issues: [unknown, ...unknown[]];
113
61
  claim_set_index: number | undefined;
114
- credential_index: number;
115
- } | {
62
+ input_credential_index: number;
63
+ } | undefined)[], ...({
116
64
  output: {
117
- credentialFormat: "mso_mdoc";
65
+ credential_format: "mso_mdoc";
118
66
  doctype: string;
119
67
  namespaces: {
120
68
  [x: string]: {
@@ -122,13 +70,13 @@ export declare namespace DcqlQueryResult {
122
70
  };
123
71
  };
124
72
  } | {
125
- credentialFormat: "vc+sd-jwt";
73
+ credential_format: "vc+sd-jwt";
126
74
  vct: string;
127
75
  claims: {
128
76
  [x: string]: import("../u-dcql.js").Json;
129
77
  };
130
78
  } | {
131
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
79
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
132
80
  claims: {
133
81
  [x: string]: import("../u-dcql.js").Json;
134
82
  };
@@ -136,11 +84,18 @@ export declare namespace DcqlQueryResult {
136
84
  success: true;
137
85
  typed: true;
138
86
  claim_set_index: number | undefined;
139
- credential_index: number;
87
+ input_credential_index: number;
140
88
  issues?: undefined;
89
+ } | {
90
+ output: unknown;
91
+ success: false;
92
+ typed: boolean;
93
+ issues: [unknown, ...unknown[]];
94
+ claim_set_index: number | undefined;
95
+ input_credential_index: number;
141
96
  } | undefined)[][]], undefined>]>;
142
- export type CredentialQueryResult = v.InferOutput<typeof vCredentialQueryResult>;
143
- export const vModel: v.ObjectSchema<{
97
+ type CredentialQueryResult = v.InferOutput<typeof vCredentialQueryResult>;
98
+ const vModel: v.ObjectSchema<{
144
99
  readonly credentials: v.SchemaWithPipe<[v.ArraySchema<v.VariantSchema<"format", [v.ObjectSchema<{
145
100
  readonly format: v.SchemaWithPipe<[v.LiteralSchema<"mso_mdoc", undefined>, v.DescriptionAction<"mso_mdoc", "REQUIRED. A string that specifies the format of the requested Verifiable Credential.">]>;
146
101
  readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
@@ -261,7 +216,7 @@ export declare namespace DcqlQueryResult {
261
216
  } | undefined;
262
217
  } | {
263
218
  id: string;
264
- format: "jwt_vc_json" | "jwt_vc_json-ld";
219
+ format: "jwt_vc_json-ld" | "jwt_vc_json";
265
220
  claims?: [{
266
221
  path: (string | number | null)[];
267
222
  values?: (string | number | boolean)[] | undefined;
@@ -308,7 +263,7 @@ export declare namespace DcqlQueryResult {
308
263
  } | undefined;
309
264
  } | {
310
265
  id: string;
311
- format: "jwt_vc_json" | "jwt_vc_json-ld";
266
+ format: "jwt_vc_json-ld" | "jwt_vc_json";
312
267
  claims?: [{
313
268
  path: (string | number | null)[];
314
269
  values?: (string | number | boolean)[] | undefined;
@@ -355,7 +310,7 @@ export declare namespace DcqlQueryResult {
355
310
  } | undefined;
356
311
  } | {
357
312
  id: string;
358
- format: "jwt_vc_json" | "jwt_vc_json-ld";
313
+ format: "jwt_vc_json-ld" | "jwt_vc_json";
359
314
  claims?: [{
360
315
  path: (string | number | null)[];
361
316
  values?: (string | number | boolean)[] | undefined;
@@ -402,7 +357,7 @@ export declare namespace DcqlQueryResult {
402
357
  } | undefined;
403
358
  } | {
404
359
  id: string;
405
- format: "jwt_vc_json" | "jwt_vc_json-ld";
360
+ format: "jwt_vc_json-ld" | "jwt_vc_json";
406
361
  claims?: [{
407
362
  path: (string | number | null)[];
408
363
  values?: (string | number | boolean)[] | undefined;
@@ -416,40 +371,33 @@ export declare namespace DcqlQueryResult {
416
371
  })[]], "REQUIRED. A non-empty array of Credential Queries that specify the requested Verifiable Credentials.">]>;
417
372
  readonly credential_matches: v.RecordSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.UnionSchema<[v.ObjectSchema<{
418
373
  readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
419
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
420
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
374
+ readonly success: v.LiteralSchema<true, undefined>;
375
+ readonly typed: v.LiteralSchema<true, undefined>;
376
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
377
+ readonly input_credential_index: v.NumberSchema<undefined>;
378
+ readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
379
+ readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
380
+ readonly credential_format: v.LiteralSchema<"mso_mdoc", undefined>;
421
381
  readonly doctype: v.StringSchema<undefined>;
422
382
  readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
423
383
  }, undefined>, v.ObjectSchema<{
424
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
384
+ readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
425
385
  readonly vct: v.StringSchema<undefined>;
426
386
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
427
387
  }, undefined>, v.ObjectSchema<{
428
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
388
+ readonly credential_format: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
429
389
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
430
390
  }, undefined>], undefined>;
431
- readonly success: v.LiteralSchema<true, undefined>;
432
- readonly typed: v.LiteralSchema<true, undefined>;
433
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
434
- readonly credential_index: v.NumberSchema<undefined>;
435
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
436
391
  }, undefined>, v.ObjectSchema<{
437
392
  readonly success: v.LiteralSchema<false, undefined>;
438
393
  readonly typed: v.BooleanSchema<undefined>;
439
394
  readonly output: v.UnknownSchema;
440
395
  readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
441
- readonly credential_index: v.NumberSchema<undefined>;
396
+ readonly input_credential_index: v.NumberSchema<undefined>;
442
397
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
443
398
  }, undefined>], undefined>, undefined>, v.CustomSchema<[{
444
- output: unknown;
445
- success: false;
446
- typed: boolean;
447
- issues: [unknown, ...unknown[]];
448
- claim_set_index: number | undefined;
449
- credential_index: number;
450
- } | {
451
399
  output: {
452
- credentialFormat: "mso_mdoc";
400
+ credential_format: "mso_mdoc";
453
401
  doctype: string;
454
402
  namespaces: {
455
403
  [x: string]: {
@@ -457,13 +405,13 @@ export declare namespace DcqlQueryResult {
457
405
  };
458
406
  };
459
407
  } | {
460
- credentialFormat: "vc+sd-jwt";
408
+ credential_format: "vc+sd-jwt";
461
409
  vct: string;
462
410
  claims: {
463
411
  [x: string]: import("../u-dcql.js").Json;
464
412
  };
465
413
  } | {
466
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
414
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
467
415
  claims: {
468
416
  [x: string]: import("../u-dcql.js").Json;
469
417
  };
@@ -471,18 +419,18 @@ export declare namespace DcqlQueryResult {
471
419
  success: true;
472
420
  typed: true;
473
421
  claim_set_index: number | undefined;
474
- credential_index: number;
422
+ input_credential_index: number;
475
423
  issues?: undefined;
476
- } | undefined, ...({
424
+ } | {
477
425
  output: unknown;
478
426
  success: false;
479
427
  typed: boolean;
480
428
  issues: [unknown, ...unknown[]];
481
429
  claim_set_index: number | undefined;
482
- credential_index: number;
483
- } | {
430
+ input_credential_index: number;
431
+ } | undefined, ...({
484
432
  output: {
485
- credentialFormat: "mso_mdoc";
433
+ credential_format: "mso_mdoc";
486
434
  doctype: string;
487
435
  namespaces: {
488
436
  [x: string]: {
@@ -490,13 +438,13 @@ export declare namespace DcqlQueryResult {
490
438
  };
491
439
  };
492
440
  } | {
493
- credentialFormat: "vc+sd-jwt";
441
+ credential_format: "vc+sd-jwt";
494
442
  vct: string;
495
443
  claims: {
496
444
  [x: string]: import("../u-dcql.js").Json;
497
445
  };
498
446
  } | {
499
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
447
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
500
448
  claims: {
501
449
  [x: string]: import("../u-dcql.js").Json;
502
450
  };
@@ -504,18 +452,18 @@ export declare namespace DcqlQueryResult {
504
452
  success: true;
505
453
  typed: true;
506
454
  claim_set_index: number | undefined;
507
- credential_index: number;
455
+ input_credential_index: number;
508
456
  issues?: undefined;
509
- } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
457
+ } | {
510
458
  output: unknown;
511
459
  success: false;
512
460
  typed: boolean;
513
461
  issues: [unknown, ...unknown[]];
514
462
  claim_set_index: number | undefined;
515
- credential_index: number;
516
- } | {
463
+ input_credential_index: number;
464
+ } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
517
465
  output: {
518
- credentialFormat: "mso_mdoc";
466
+ credential_format: "mso_mdoc";
519
467
  doctype: string;
520
468
  namespaces: {
521
469
  [x: string]: {
@@ -523,13 +471,13 @@ export declare namespace DcqlQueryResult {
523
471
  };
524
472
  };
525
473
  } | {
526
- credentialFormat: "vc+sd-jwt";
474
+ credential_format: "vc+sd-jwt";
527
475
  vct: string;
528
476
  claims: {
529
477
  [x: string]: import("../u-dcql.js").Json;
530
478
  };
531
479
  } | {
532
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
480
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
533
481
  claims: {
534
482
  [x: string]: import("../u-dcql.js").Json;
535
483
  };
@@ -537,18 +485,18 @@ export declare namespace DcqlQueryResult {
537
485
  success: true;
538
486
  typed: true;
539
487
  claim_set_index: number | undefined;
540
- credential_index: number;
488
+ input_credential_index: number;
541
489
  issues?: undefined;
542
- } | undefined, ...({
490
+ } | {
543
491
  output: unknown;
544
492
  success: false;
545
493
  typed: boolean;
546
494
  issues: [unknown, ...unknown[]];
547
495
  claim_set_index: number | undefined;
548
- credential_index: number;
549
- } | {
496
+ input_credential_index: number;
497
+ } | undefined, ...({
550
498
  output: {
551
- credentialFormat: "mso_mdoc";
499
+ credential_format: "mso_mdoc";
552
500
  doctype: string;
553
501
  namespaces: {
554
502
  [x: string]: {
@@ -556,13 +504,13 @@ export declare namespace DcqlQueryResult {
556
504
  };
557
505
  };
558
506
  } | {
559
- credentialFormat: "vc+sd-jwt";
507
+ credential_format: "vc+sd-jwt";
560
508
  vct: string;
561
509
  claims: {
562
510
  [x: string]: import("../u-dcql.js").Json;
563
511
  };
564
512
  } | {
565
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
513
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
566
514
  claims: {
567
515
  [x: string]: import("../u-dcql.js").Json;
568
516
  };
@@ -570,18 +518,18 @@ export declare namespace DcqlQueryResult {
570
518
  success: true;
571
519
  typed: true;
572
520
  claim_set_index: number | undefined;
573
- credential_index: number;
521
+ input_credential_index: number;
574
522
  issues?: undefined;
575
- } | undefined)[]], ...[{
523
+ } | {
576
524
  output: unknown;
577
525
  success: false;
578
526
  typed: boolean;
579
527
  issues: [unknown, ...unknown[]];
580
528
  claim_set_index: number | undefined;
581
- credential_index: number;
582
- } | {
529
+ input_credential_index: number;
530
+ } | undefined)[]], ...[{
583
531
  output: {
584
- credentialFormat: "mso_mdoc";
532
+ credential_format: "mso_mdoc";
585
533
  doctype: string;
586
534
  namespaces: {
587
535
  [x: string]: {
@@ -589,13 +537,13 @@ export declare namespace DcqlQueryResult {
589
537
  };
590
538
  };
591
539
  } | {
592
- credentialFormat: "vc+sd-jwt";
540
+ credential_format: "vc+sd-jwt";
593
541
  vct: string;
594
542
  claims: {
595
543
  [x: string]: import("../u-dcql.js").Json;
596
544
  };
597
545
  } | {
598
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
546
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
599
547
  claims: {
600
548
  [x: string]: import("../u-dcql.js").Json;
601
549
  };
@@ -603,18 +551,18 @@ export declare namespace DcqlQueryResult {
603
551
  success: true;
604
552
  typed: true;
605
553
  claim_set_index: number | undefined;
606
- credential_index: number;
554
+ input_credential_index: number;
607
555
  issues?: undefined;
608
- } | undefined, ...({
556
+ } | {
609
557
  output: unknown;
610
558
  success: false;
611
559
  typed: boolean;
612
560
  issues: [unknown, ...unknown[]];
613
561
  claim_set_index: number | undefined;
614
- credential_index: number;
615
- } | {
562
+ input_credential_index: number;
563
+ } | undefined, ...({
616
564
  output: {
617
- credentialFormat: "mso_mdoc";
565
+ credential_format: "mso_mdoc";
618
566
  doctype: string;
619
567
  namespaces: {
620
568
  [x: string]: {
@@ -622,13 +570,13 @@ export declare namespace DcqlQueryResult {
622
570
  };
623
571
  };
624
572
  } | {
625
- credentialFormat: "vc+sd-jwt";
573
+ credential_format: "vc+sd-jwt";
626
574
  vct: string;
627
575
  claims: {
628
576
  [x: string]: import("../u-dcql.js").Json;
629
577
  };
630
578
  } | {
631
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
579
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
632
580
  claims: {
633
581
  [x: string]: import("../u-dcql.js").Json;
634
582
  };
@@ -636,62 +584,63 @@ export declare namespace DcqlQueryResult {
636
584
  success: true;
637
585
  typed: true;
638
586
  claim_set_index: number | undefined;
639
- credential_index: number;
587
+ input_credential_index: number;
640
588
  issues?: undefined;
589
+ } | {
590
+ output: unknown;
591
+ success: false;
592
+ typed: boolean;
593
+ issues: [unknown, ...unknown[]];
594
+ claim_set_index: number | undefined;
595
+ input_credential_index: number;
641
596
  } | undefined)[]][]], undefined>]>;
642
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
643
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
597
+ readonly success: v.LiteralSchema<true, undefined>;
598
+ readonly typed: v.LiteralSchema<true, undefined>;
599
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
600
+ readonly input_credential_index: v.NumberSchema<undefined>;
601
+ readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
602
+ readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
603
+ readonly credential_format: v.LiteralSchema<"mso_mdoc", undefined>;
644
604
  readonly doctype: v.StringSchema<undefined>;
645
605
  readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
646
606
  }, undefined>, v.ObjectSchema<{
647
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
607
+ readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
648
608
  readonly vct: v.StringSchema<undefined>;
649
609
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
650
610
  }, undefined>, v.ObjectSchema<{
651
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
611
+ readonly credential_format: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
652
612
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
653
613
  }, undefined>], undefined>;
654
- readonly success: v.LiteralSchema<true, undefined>;
655
- readonly typed: v.LiteralSchema<true, undefined>;
656
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
657
- readonly credential_index: v.NumberSchema<undefined>;
658
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
659
614
  }, undefined>, v.ObjectSchema<{
615
+ readonly success: v.LiteralSchema<false, undefined>;
660
616
  readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
661
- readonly output: v.VariantSchema<"credentialFormat", [v.ObjectSchema<{
662
- readonly credentialFormat: v.LiteralSchema<"mso_mdoc", undefined>;
617
+ readonly success: v.LiteralSchema<true, undefined>;
618
+ readonly typed: v.LiteralSchema<true, undefined>;
619
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
620
+ readonly input_credential_index: v.NumberSchema<undefined>;
621
+ readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
622
+ readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
623
+ readonly credential_format: v.LiteralSchema<"mso_mdoc", undefined>;
663
624
  readonly doctype: v.StringSchema<undefined>;
664
625
  readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
665
626
  }, undefined>, v.ObjectSchema<{
666
- readonly credentialFormat: v.LiteralSchema<"vc+sd-jwt", undefined>;
627
+ readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
667
628
  readonly vct: v.StringSchema<undefined>;
668
629
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
669
630
  }, undefined>, v.ObjectSchema<{
670
- readonly credentialFormat: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
631
+ readonly credential_format: v.PicklistSchema<["jwt_vc_json-ld", "jwt_vc_json"], undefined>;
671
632
  readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
672
633
  }, undefined>], undefined>;
673
- readonly success: v.LiteralSchema<true, undefined>;
674
- readonly typed: v.LiteralSchema<true, undefined>;
675
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
676
- readonly credential_index: v.NumberSchema<undefined>;
677
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
678
634
  }, undefined>, v.ObjectSchema<{
679
635
  readonly success: v.LiteralSchema<false, undefined>;
680
636
  readonly typed: v.BooleanSchema<undefined>;
681
637
  readonly output: v.UnknownSchema;
682
638
  readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
683
- readonly credential_index: v.NumberSchema<undefined>;
639
+ readonly input_credential_index: v.NumberSchema<undefined>;
684
640
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
685
641
  }, undefined>], undefined>, undefined>, v.CustomSchema<[{
686
- output: unknown;
687
- success: false;
688
- typed: boolean;
689
- issues: [unknown, ...unknown[]];
690
- claim_set_index: number | undefined;
691
- credential_index: number;
692
- } | {
693
642
  output: {
694
- credentialFormat: "mso_mdoc";
643
+ credential_format: "mso_mdoc";
695
644
  doctype: string;
696
645
  namespaces: {
697
646
  [x: string]: {
@@ -699,13 +648,13 @@ export declare namespace DcqlQueryResult {
699
648
  };
700
649
  };
701
650
  } | {
702
- credentialFormat: "vc+sd-jwt";
651
+ credential_format: "vc+sd-jwt";
703
652
  vct: string;
704
653
  claims: {
705
654
  [x: string]: import("../u-dcql.js").Json;
706
655
  };
707
656
  } | {
708
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
657
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
709
658
  claims: {
710
659
  [x: string]: import("../u-dcql.js").Json;
711
660
  };
@@ -713,18 +662,18 @@ export declare namespace DcqlQueryResult {
713
662
  success: true;
714
663
  typed: true;
715
664
  claim_set_index: number | undefined;
716
- credential_index: number;
665
+ input_credential_index: number;
717
666
  issues?: undefined;
718
- } | undefined, ...({
667
+ } | {
719
668
  output: unknown;
720
669
  success: false;
721
670
  typed: boolean;
722
671
  issues: [unknown, ...unknown[]];
723
672
  claim_set_index: number | undefined;
724
- credential_index: number;
725
- } | {
673
+ input_credential_index: number;
674
+ } | undefined, ...({
726
675
  output: {
727
- credentialFormat: "mso_mdoc";
676
+ credential_format: "mso_mdoc";
728
677
  doctype: string;
729
678
  namespaces: {
730
679
  [x: string]: {
@@ -732,13 +681,13 @@ export declare namespace DcqlQueryResult {
732
681
  };
733
682
  };
734
683
  } | {
735
- credentialFormat: "vc+sd-jwt";
684
+ credential_format: "vc+sd-jwt";
736
685
  vct: string;
737
686
  claims: {
738
687
  [x: string]: import("../u-dcql.js").Json;
739
688
  };
740
689
  } | {
741
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
690
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
742
691
  claims: {
743
692
  [x: string]: import("../u-dcql.js").Json;
744
693
  };
@@ -746,18 +695,18 @@ export declare namespace DcqlQueryResult {
746
695
  success: true;
747
696
  typed: true;
748
697
  claim_set_index: number | undefined;
749
- credential_index: number;
698
+ input_credential_index: number;
750
699
  issues?: undefined;
751
- } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
700
+ } | {
752
701
  output: unknown;
753
702
  success: false;
754
703
  typed: boolean;
755
704
  issues: [unknown, ...unknown[]];
756
705
  claim_set_index: number | undefined;
757
- credential_index: number;
758
- } | {
706
+ input_credential_index: number;
707
+ } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
759
708
  output: {
760
- credentialFormat: "mso_mdoc";
709
+ credential_format: "mso_mdoc";
761
710
  doctype: string;
762
711
  namespaces: {
763
712
  [x: string]: {
@@ -765,13 +714,13 @@ export declare namespace DcqlQueryResult {
765
714
  };
766
715
  };
767
716
  } | {
768
- credentialFormat: "vc+sd-jwt";
717
+ credential_format: "vc+sd-jwt";
769
718
  vct: string;
770
719
  claims: {
771
720
  [x: string]: import("../u-dcql.js").Json;
772
721
  };
773
722
  } | {
774
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
723
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
775
724
  claims: {
776
725
  [x: string]: import("../u-dcql.js").Json;
777
726
  };
@@ -779,18 +728,18 @@ export declare namespace DcqlQueryResult {
779
728
  success: true;
780
729
  typed: true;
781
730
  claim_set_index: number | undefined;
782
- credential_index: number;
731
+ input_credential_index: number;
783
732
  issues?: undefined;
784
- } | undefined, ...({
733
+ } | {
785
734
  output: unknown;
786
735
  success: false;
787
736
  typed: boolean;
788
737
  issues: [unknown, ...unknown[]];
789
738
  claim_set_index: number | undefined;
790
- credential_index: number;
791
- } | {
739
+ input_credential_index: number;
740
+ } | undefined, ...({
792
741
  output: {
793
- credentialFormat: "mso_mdoc";
742
+ credential_format: "mso_mdoc";
794
743
  doctype: string;
795
744
  namespaces: {
796
745
  [x: string]: {
@@ -798,13 +747,13 @@ export declare namespace DcqlQueryResult {
798
747
  };
799
748
  };
800
749
  } | {
801
- credentialFormat: "vc+sd-jwt";
750
+ credential_format: "vc+sd-jwt";
802
751
  vct: string;
803
752
  claims: {
804
753
  [x: string]: import("../u-dcql.js").Json;
805
754
  };
806
755
  } | {
807
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
756
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
808
757
  claims: {
809
758
  [x: string]: import("../u-dcql.js").Json;
810
759
  };
@@ -812,18 +761,18 @@ export declare namespace DcqlQueryResult {
812
761
  success: true;
813
762
  typed: true;
814
763
  claim_set_index: number | undefined;
815
- credential_index: number;
764
+ input_credential_index: number;
816
765
  issues?: undefined;
817
- } | undefined)[]], ...[{
766
+ } | {
818
767
  output: unknown;
819
768
  success: false;
820
769
  typed: boolean;
821
770
  issues: [unknown, ...unknown[]];
822
771
  claim_set_index: number | undefined;
823
- credential_index: number;
824
- } | {
772
+ input_credential_index: number;
773
+ } | undefined)[]], ...[{
825
774
  output: {
826
- credentialFormat: "mso_mdoc";
775
+ credential_format: "mso_mdoc";
827
776
  doctype: string;
828
777
  namespaces: {
829
778
  [x: string]: {
@@ -831,13 +780,13 @@ export declare namespace DcqlQueryResult {
831
780
  };
832
781
  };
833
782
  } | {
834
- credentialFormat: "vc+sd-jwt";
783
+ credential_format: "vc+sd-jwt";
835
784
  vct: string;
836
785
  claims: {
837
786
  [x: string]: import("../u-dcql.js").Json;
838
787
  };
839
788
  } | {
840
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
789
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
841
790
  claims: {
842
791
  [x: string]: import("../u-dcql.js").Json;
843
792
  };
@@ -845,18 +794,18 @@ export declare namespace DcqlQueryResult {
845
794
  success: true;
846
795
  typed: true;
847
796
  claim_set_index: number | undefined;
848
- credential_index: number;
797
+ input_credential_index: number;
849
798
  issues?: undefined;
850
- } | undefined, ...({
799
+ } | {
851
800
  output: unknown;
852
801
  success: false;
853
802
  typed: boolean;
854
803
  issues: [unknown, ...unknown[]];
855
804
  claim_set_index: number | undefined;
856
- credential_index: number;
857
- } | {
805
+ input_credential_index: number;
806
+ } | undefined, ...({
858
807
  output: {
859
- credentialFormat: "mso_mdoc";
808
+ credential_format: "mso_mdoc";
860
809
  doctype: string;
861
810
  namespaces: {
862
811
  [x: string]: {
@@ -864,13 +813,13 @@ export declare namespace DcqlQueryResult {
864
813
  };
865
814
  };
866
815
  } | {
867
- credentialFormat: "vc+sd-jwt";
816
+ credential_format: "vc+sd-jwt";
868
817
  vct: string;
869
818
  claims: {
870
819
  [x: string]: import("../u-dcql.js").Json;
871
820
  };
872
821
  } | {
873
- credentialFormat: "jwt_vc_json" | "jwt_vc_json-ld";
822
+ credential_format: "jwt_vc_json-ld" | "jwt_vc_json";
874
823
  claims: {
875
824
  [x: string]: import("../u-dcql.js").Json;
876
825
  };
@@ -878,15 +827,16 @@ export declare namespace DcqlQueryResult {
878
827
  success: true;
879
828
  typed: true;
880
829
  claim_set_index: number | undefined;
881
- credential_index: number;
830
+ input_credential_index: number;
882
831
  issues?: undefined;
832
+ } | {
833
+ output: unknown;
834
+ success: false;
835
+ typed: boolean;
836
+ issues: [unknown, ...unknown[]];
837
+ claim_set_index: number | undefined;
838
+ input_credential_index: number;
883
839
  } | undefined)[]][]], undefined>]>;
884
- readonly success: v.LiteralSchema<false, undefined>;
885
- readonly typed: v.BooleanSchema<undefined>;
886
- readonly output: v.UnknownSchema;
887
- readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
888
- readonly credential_index: v.NumberSchema<undefined>;
889
- readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
890
840
  }, undefined>], undefined>, undefined>;
891
841
  readonly credential_sets: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
892
842
  readonly matching_options: v.UnionSchema<[v.UndefinedSchema<undefined>, v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>], undefined>;
@@ -926,11 +876,10 @@ export declare namespace DcqlQueryResult {
926
876
  }[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, never>;
927
877
  readonly canBeSatisfied: v.BooleanSchema<undefined>;
928
878
  }, undefined>;
929
- export type Input = v.InferInput<typeof vModel>;
930
- export type Output = v.InferOutput<typeof vModel>;
931
- export type CredentialMatch = Input['credential_matches'][number];
932
- export type CredentialMatchRecord = Input['credential_matches'];
933
- export {};
879
+ type Input = v.InferInput<typeof vModel>;
880
+ type Output = v.InferOutput<typeof vModel>;
881
+ type CredentialMatch = Input['credential_matches'][number];
882
+ type CredentialMatchRecord = Input['credential_matches'];
934
883
  }
935
884
  export type DcqlQueryResult = DcqlQueryResult.Output;
936
885
  //# sourceMappingURL=m-dcql-query-result.d.ts.map