dcql 0.2.16 → 0.2.17

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 (26) 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.d.ts.map +1 -1
  3. package/dist/src/dcql-parser/dcql-claims-query-result.js +5 -5
  4. package/dist/src/dcql-parser/dcql-claims-query-result.js.map +1 -1
  5. package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts +21 -21
  6. package/dist/src/dcql-query/dcql-query-complex.test.js +54 -481
  7. package/dist/src/dcql-query/dcql-query-complex.test.js.map +1 -1
  8. package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts +2 -0
  9. package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts.map +1 -0
  10. package/dist/src/dcql-query/dcql-query-with-json-transform.test.js +188 -0
  11. package/dist/src/dcql-query/dcql-query-with-json-transform.test.js.map +1 -0
  12. package/dist/src/dcql-query/dcql-query.test.js +13 -21
  13. package/dist/src/dcql-query/dcql-query.test.js.map +1 -1
  14. package/dist/src/dcql-query/m-dcql-claims-query.d.ts +8 -10
  15. package/dist/src/dcql-query/m-dcql-claims-query.d.ts.map +1 -1
  16. package/dist/src/dcql-query/m-dcql-claims-query.js.map +1 -1
  17. package/dist/src/dcql-query/m-dcql-credential-query.d.ts +32 -32
  18. package/dist/src/dcql-query/m-dcql-credential-set-query.d.ts +1 -1
  19. package/dist/src/dcql-query/m-dcql-query.d.ts +26 -26
  20. package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +36 -36
  21. package/dist/src/u-dcql-credential.d.ts +1 -1
  22. package/dist/src/u-dcql.d.ts +3 -2
  23. package/dist/src/u-dcql.d.ts.map +1 -1
  24. package/dist/src/u-dcql.js +48 -3
  25. package/dist/src/u-dcql.js.map +1 -1
  26. package/package.json +2 -2
@@ -3,7 +3,7 @@ export declare namespace DcqlQueryResult {
3
3
  const vCredentialQueryResult: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
4
4
  readonly success: v.LiteralSchema<true, undefined>;
5
5
  readonly typed: v.LiteralSchema<true, undefined>;
6
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
6
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
7
7
  readonly input_credential_index: v.NumberSchema<undefined>;
8
8
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
9
9
  readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
@@ -53,9 +53,9 @@ export declare namespace DcqlQueryResult {
53
53
  issues?: undefined;
54
54
  } | {
55
55
  output: unknown;
56
+ issues: [unknown, ...unknown[]];
56
57
  success: false;
57
58
  typed: boolean;
58
- issues: [unknown, ...unknown[]];
59
59
  claim_set_index: number | undefined;
60
60
  input_credential_index: number;
61
61
  } | undefined)[], ...({
@@ -86,9 +86,9 @@ export declare namespace DcqlQueryResult {
86
86
  issues?: undefined;
87
87
  } | {
88
88
  output: unknown;
89
+ issues: [unknown, ...unknown[]];
89
90
  success: false;
90
91
  typed: boolean;
91
- issues: [unknown, ...unknown[]];
92
92
  claim_set_index: number | undefined;
93
93
  input_credential_index: number;
94
94
  } | undefined)[][]], undefined>]>;
@@ -97,10 +97,10 @@ export declare namespace DcqlQueryResult {
97
97
  readonly credentials: v.SchemaWithPipe<[v.ArraySchema<v.VariantSchema<"format", [v.ObjectSchema<{
98
98
  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.">]>;
99
99
  readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
100
- readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, never>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
100
+ readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
101
101
  readonly namespace: v.SchemaWithPipe<[v.StringSchema<undefined>, v.DescriptionAction<string, "A string that specifies the namespace of the data element within the mdoc, e.g., org.iso.18013.5.1.">]>;
102
102
  readonly claim_name: v.SchemaWithPipe<[v.StringSchema<undefined>, v.DescriptionAction<string, "A string that specifies the data element identifier of the data element within the provided namespace in the mdoc, e.g., first_name.">]>;
103
- readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, never>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
103
+ readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
104
104
  }, undefined>, undefined>, v.CustomSchema<[{
105
105
  namespace: string;
106
106
  claim_name: string;
@@ -111,7 +111,7 @@ export declare namespace DcqlQueryResult {
111
111
  claim_name: string;
112
112
  values?: (string | number | boolean)[] | undefined;
113
113
  id?: string | undefined;
114
- }[]], undefined>]>, never>, v.DescriptionAction<[{
114
+ }[]], undefined>]>, undefined>, v.DescriptionAction<[{
115
115
  namespace: string;
116
116
  claim_name: string;
117
117
  values?: (string | number | boolean)[] | undefined;
@@ -123,18 +123,18 @@ export declare namespace DcqlQueryResult {
123
123
  id?: string | undefined;
124
124
  }[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
125
125
  readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.ObjectSchema<{
126
- readonly doctype_value: v.SchemaWithPipe<[v.OptionalSchema<v.StringSchema<undefined>, never>, v.DescriptionAction<string | undefined, "OPTIONAL. String that specifies an allowed value for the doctype of the requested Verifiable Credential.">]>;
127
- }, undefined>, never>, v.DescriptionAction<{
126
+ readonly doctype_value: v.SchemaWithPipe<[v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "OPTIONAL. String that specifies an allowed value for the doctype of the requested Verifiable Credential.">]>;
127
+ }, undefined>, undefined>, v.DescriptionAction<{
128
128
  doctype_value?: string | undefined;
129
129
  } | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
130
130
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
131
- readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, never>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
131
+ readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
132
132
  }, undefined>, v.ObjectSchema<{
133
133
  readonly format: v.SchemaWithPipe<[v.LiteralSchema<"vc+sd-jwt", undefined>, v.DescriptionAction<"vc+sd-jwt", "REQUIRED. A string that specifies the format of the requested Verifiable Credential.">]>;
134
134
  readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
135
- readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, never>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
135
+ readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
136
136
  readonly path: v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, undefined>, v.DescriptionAction<(string | number | null)[], "A non-empty array representing a claims path pointer that specifies the path to a claim within the Verifiable Credential.">]>;
137
- readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, never>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
137
+ readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
138
138
  }, undefined>, undefined>, v.CustomSchema<[{
139
139
  path: (string | number | null)[];
140
140
  values?: (string | number | boolean)[] | undefined;
@@ -143,7 +143,7 @@ export declare namespace DcqlQueryResult {
143
143
  path: (string | number | null)[];
144
144
  values?: (string | number | boolean)[] | undefined;
145
145
  id?: string | undefined;
146
- }[]], undefined>]>, never>, v.DescriptionAction<[{
146
+ }[]], undefined>]>, undefined>, v.DescriptionAction<[{
147
147
  path: (string | number | null)[];
148
148
  values?: (string | number | boolean)[] | undefined;
149
149
  id?: string | undefined;
@@ -153,20 +153,20 @@ export declare namespace DcqlQueryResult {
153
153
  id?: string | undefined;
154
154
  }[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
155
155
  readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
156
- readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
156
+ readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
157
157
  }, undefined>, v.DescriptionAction<{
158
158
  vct_values?: string[] | undefined;
159
- }, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>, never>, v.DescriptionAction<{
159
+ }, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>, undefined>, v.DescriptionAction<{
160
160
  vct_values?: string[] | undefined;
161
161
  } | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
162
162
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
163
- readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, never>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
163
+ readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
164
164
  }, undefined>, v.ObjectSchema<{
165
165
  readonly format: v.PicklistSchema<["jwt_vc_json", "jwt_vc_json-ld"], undefined>;
166
166
  readonly claims: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
167
- readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, never>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
167
+ readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
168
168
  readonly path: v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, undefined>, v.DescriptionAction<(string | number | null)[], "A non-empty array representing a claims path pointer that specifies the path to a claim within the Verifiable Credential.">]>;
169
- readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, never>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
169
+ readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
170
170
  }, undefined>, undefined>, v.CustomSchema<[{
171
171
  path: (string | number | null)[];
172
172
  values?: (string | number | boolean)[] | undefined;
@@ -175,9 +175,9 @@ export declare namespace DcqlQueryResult {
175
175
  path: (string | number | null)[];
176
176
  values?: (string | number | boolean)[] | undefined;
177
177
  id?: string | undefined;
178
- }[]], undefined>]>, never>;
178
+ }[]], undefined>]>, undefined>;
179
179
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
180
- readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, never>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
180
+ readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
181
181
  }, undefined>], undefined>, undefined>, v.CustomSchema<[{
182
182
  id: string;
183
183
  format: "mso_mdoc";
@@ -371,7 +371,7 @@ export declare namespace DcqlQueryResult {
371
371
  readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
372
372
  readonly success: v.LiteralSchema<true, undefined>;
373
373
  readonly typed: v.LiteralSchema<true, undefined>;
374
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
374
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
375
375
  readonly input_credential_index: v.NumberSchema<undefined>;
376
376
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
377
377
  readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
@@ -421,9 +421,9 @@ export declare namespace DcqlQueryResult {
421
421
  issues?: undefined;
422
422
  } | {
423
423
  output: unknown;
424
+ issues: [unknown, ...unknown[]];
424
425
  success: false;
425
426
  typed: boolean;
426
- issues: [unknown, ...unknown[]];
427
427
  claim_set_index: number | undefined;
428
428
  input_credential_index: number;
429
429
  } | undefined, ...({
@@ -454,9 +454,9 @@ export declare namespace DcqlQueryResult {
454
454
  issues?: undefined;
455
455
  } | {
456
456
  output: unknown;
457
+ issues: [unknown, ...unknown[]];
457
458
  success: false;
458
459
  typed: boolean;
459
- issues: [unknown, ...unknown[]];
460
460
  claim_set_index: number | undefined;
461
461
  input_credential_index: number;
462
462
  } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
@@ -487,9 +487,9 @@ export declare namespace DcqlQueryResult {
487
487
  issues?: undefined;
488
488
  } | {
489
489
  output: unknown;
490
+ issues: [unknown, ...unknown[]];
490
491
  success: false;
491
492
  typed: boolean;
492
- issues: [unknown, ...unknown[]];
493
493
  claim_set_index: number | undefined;
494
494
  input_credential_index: number;
495
495
  } | undefined, ...({
@@ -520,9 +520,9 @@ export declare namespace DcqlQueryResult {
520
520
  issues?: undefined;
521
521
  } | {
522
522
  output: unknown;
523
+ issues: [unknown, ...unknown[]];
523
524
  success: false;
524
525
  typed: boolean;
525
- issues: [unknown, ...unknown[]];
526
526
  claim_set_index: number | undefined;
527
527
  input_credential_index: number;
528
528
  } | undefined)[]], ...[{
@@ -553,9 +553,9 @@ export declare namespace DcqlQueryResult {
553
553
  issues?: undefined;
554
554
  } | {
555
555
  output: unknown;
556
+ issues: [unknown, ...unknown[]];
556
557
  success: false;
557
558
  typed: boolean;
558
- issues: [unknown, ...unknown[]];
559
559
  claim_set_index: number | undefined;
560
560
  input_credential_index: number;
561
561
  } | undefined, ...({
@@ -586,15 +586,15 @@ export declare namespace DcqlQueryResult {
586
586
  issues?: undefined;
587
587
  } | {
588
588
  output: unknown;
589
+ issues: [unknown, ...unknown[]];
589
590
  success: false;
590
591
  typed: boolean;
591
- issues: [unknown, ...unknown[]];
592
592
  claim_set_index: number | undefined;
593
593
  input_credential_index: number;
594
594
  } | undefined)[]][]], undefined>]>;
595
595
  readonly success: v.LiteralSchema<true, undefined>;
596
596
  readonly typed: v.LiteralSchema<true, undefined>;
597
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
597
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
598
598
  readonly input_credential_index: v.NumberSchema<undefined>;
599
599
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
600
600
  readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
@@ -614,7 +614,7 @@ export declare namespace DcqlQueryResult {
614
614
  readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
615
615
  readonly success: v.LiteralSchema<true, undefined>;
616
616
  readonly typed: v.LiteralSchema<true, undefined>;
617
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
617
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
618
618
  readonly input_credential_index: v.NumberSchema<undefined>;
619
619
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
620
620
  readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
@@ -664,9 +664,9 @@ export declare namespace DcqlQueryResult {
664
664
  issues?: undefined;
665
665
  } | {
666
666
  output: unknown;
667
+ issues: [unknown, ...unknown[]];
667
668
  success: false;
668
669
  typed: boolean;
669
- issues: [unknown, ...unknown[]];
670
670
  claim_set_index: number | undefined;
671
671
  input_credential_index: number;
672
672
  } | undefined, ...({
@@ -697,9 +697,9 @@ export declare namespace DcqlQueryResult {
697
697
  issues?: undefined;
698
698
  } | {
699
699
  output: unknown;
700
+ issues: [unknown, ...unknown[]];
700
701
  success: false;
701
702
  typed: boolean;
702
- issues: [unknown, ...unknown[]];
703
703
  claim_set_index: number | undefined;
704
704
  input_credential_index: number;
705
705
  } | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
@@ -730,9 +730,9 @@ export declare namespace DcqlQueryResult {
730
730
  issues?: undefined;
731
731
  } | {
732
732
  output: unknown;
733
+ issues: [unknown, ...unknown[]];
733
734
  success: false;
734
735
  typed: boolean;
735
- issues: [unknown, ...unknown[]];
736
736
  claim_set_index: number | undefined;
737
737
  input_credential_index: number;
738
738
  } | undefined, ...({
@@ -763,9 +763,9 @@ export declare namespace DcqlQueryResult {
763
763
  issues?: undefined;
764
764
  } | {
765
765
  output: unknown;
766
+ issues: [unknown, ...unknown[]];
766
767
  success: false;
767
768
  typed: boolean;
768
- issues: [unknown, ...unknown[]];
769
769
  claim_set_index: number | undefined;
770
770
  input_credential_index: number;
771
771
  } | undefined)[]], ...[{
@@ -796,9 +796,9 @@ export declare namespace DcqlQueryResult {
796
796
  issues?: undefined;
797
797
  } | {
798
798
  output: unknown;
799
+ issues: [unknown, ...unknown[]];
799
800
  success: false;
800
801
  typed: boolean;
801
- issues: [unknown, ...unknown[]];
802
802
  claim_set_index: number | undefined;
803
803
  input_credential_index: number;
804
804
  } | undefined, ...({
@@ -829,9 +829,9 @@ export declare namespace DcqlQueryResult {
829
829
  issues?: undefined;
830
830
  } | {
831
831
  output: unknown;
832
+ issues: [unknown, ...unknown[]];
832
833
  success: false;
833
834
  typed: boolean;
834
- issues: [unknown, ...unknown[]];
835
835
  claim_set_index: number | undefined;
836
836
  input_credential_index: number;
837
837
  } | undefined)[]][]], undefined>]>;
@@ -840,7 +840,7 @@ export declare namespace DcqlQueryResult {
840
840
  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>;
841
841
  readonly options: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>, v.DescriptionAction<[string[], ...string[][]], "REQUIRED. A non-empty array, where each value in the array is a list of Credential Query identifiers representing one set of Credentials that satisfies the use case.">]>;
842
842
  readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.BooleanSchema<undefined>, true>, v.DescriptionAction<boolean, "OPTIONAL. Boolean which indicates whether this set of Credentials is required to satisfy the particular use case at the Verifier. If omitted, the default value is 'true'.">]>;
843
- readonly purpose: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>], undefined>, never>, v.DescriptionAction<string | number | {
843
+ readonly purpose: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>], undefined>, undefined>, v.DescriptionAction<string | number | {
844
844
  [x: string]: unknown;
845
845
  } | undefined, "OPTIONAL. A string, number or object specifying the purpose of the query.">]>;
846
846
  }, undefined>, undefined>, v.CustomSchema<[{
@@ -871,7 +871,7 @@ export declare namespace DcqlQueryResult {
871
871
  purpose?: string | number | {
872
872
  [x: string]: unknown;
873
873
  } | undefined;
874
- }[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, never>;
874
+ }[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, undefined>;
875
875
  readonly canBeSatisfied: v.BooleanSchema<undefined>;
876
876
  }, undefined>;
877
877
  type Input = v.InferInput<typeof vModel>;
@@ -62,7 +62,7 @@ export declare namespace DcqlCredential {
62
62
  const vParseSuccess: v.ObjectSchema<{
63
63
  readonly success: v.LiteralSchema<true, undefined>;
64
64
  readonly typed: v.LiteralSchema<true, undefined>;
65
- readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
65
+ readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
66
66
  readonly input_credential_index: v.NumberSchema<undefined>;
67
67
  readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
68
68
  readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
@@ -1,16 +1,17 @@
1
1
  import * as v from 'valibot';
2
+ import type { UnknownBaseSchema } from './u-model';
2
3
  export declare const idRegex: RegExp;
3
4
  export declare const vNonEmptyArray: <T extends unknown[]>() => v.CustomSchema<[T[number], ...T], undefined>;
4
5
  export declare const vIdString: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
5
6
  export type Json = string | number | boolean | null | {
6
7
  [key: string]: Json;
7
8
  } | Json[];
9
+ export declare const vWithJT: <Schema extends UnknownBaseSchema>(schema: Schema) => v.SchemaWithPipe<[v.CustomSchema<v.InferInput<Schema>, undefined>, v.RawTransformAction<v.InferInput<Schema>, v.InferOutput<Schema>>]>;
8
10
  export declare const vJsonLiteral: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>;
9
11
  export type JsonLiteral = v.InferOutput<typeof vJsonLiteral>;
10
- export declare const vJsonArray: v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
11
12
  export declare const vJson: v.GenericSchema<Json>;
13
+ export declare const vJsonWithJT: v.GenericSchema<Json>;
12
14
  export declare const vJsonRecord: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<Json, Json, v.BaseIssue<unknown>>, undefined>;
13
15
  export type JsonRecord = v.InferOutput<typeof vJsonRecord>;
14
- export declare const vJsonValue: v.UnionSchema<[v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>, v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<Json, Json, v.BaseIssue<unknown>>, undefined>], undefined>;
15
16
  export declare const vStringToJson: v.RawTransformAction<string, Json>;
16
17
  //# sourceMappingURL=u-dcql.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"u-dcql.d.ts","sourceRoot":"","sources":["../../src/u-dcql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,eAAO,MAAM,OAAO,QAAqB,CAAC;AAE1C,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,EAAE,mDAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,iFAAuC,CAAC;AAE9D,MAAM,MAAM,IAAI,GACZ,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACvB,IAAI,EAAE,CAAC;AAEX,eAAO,MAAM,YAAY,uIAKvB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;AAE7D,eAAO,MAAM,UAAU,iKAAwB,CAAC;AAEhD,eAAO,MAAM,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,IAAI,CAEvC,CAAC;AAEF,eAAO,MAAM,WAAW,yGAA8B,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,UAAU,6aAAmD,CAAC;AAE3E,eAAO,MAAM,aAAa,oCASzB,CAAC"}
1
+ {"version":3,"file":"u-dcql.d.ts","sourceRoot":"","sources":["../../src/u-dcql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,eAAO,MAAM,OAAO,QAAqB,CAAC;AAE1C,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,EAAE,mDAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,iFAAuC,CAAC;AAE9D,MAAM,MAAM,IAAI,GACZ,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACvB,IAAI,EAAE,CAAC;AAcX,eAAO,MAAM,OAAO,GAAI,MAAM,SAAS,iBAAiB,UAAU,MAAM,2IAkDrE,CAAC;AAEJ,eAAO,MAAM,YAAY,uIAKvB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAC;AAE7D,eAAO,MAAM,KAAK,EAAE,CAAC,CAAC,aAAa,CAAC,IAAI,CAEvC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,IAAI,CAE7C,CAAC;AAEF,eAAO,MAAM,WAAW,yGAA8B,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,aAAa,oCASzB,CAAC"}
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.vStringToJson = exports.vJsonValue = exports.vJsonRecord = exports.vJson = exports.vJsonArray = exports.vJsonLiteral = exports.vIdString = exports.vNonEmptyArray = exports.idRegex = void 0;
26
+ exports.vStringToJson = exports.vJsonRecord = exports.vJsonWithJT = exports.vJson = exports.vJsonLiteral = exports.vWithJT = exports.vIdString = exports.vNonEmptyArray = exports.idRegex = void 0;
27
27
  const v = __importStar(require("valibot"));
28
28
  exports.idRegex = /^[a-zA-Z0-9_-]+$/;
29
29
  const vNonEmptyArray = () => {
@@ -31,16 +31,61 @@ const vNonEmptyArray = () => {
31
31
  };
32
32
  exports.vNonEmptyArray = vNonEmptyArray;
33
33
  exports.vIdString = v.pipe(v.string(), v.regex(exports.idRegex));
34
+ function isToJsonable(value) {
35
+ if (value === null || typeof value !== 'object')
36
+ return false;
37
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
38
+ const toJsonFn = value.toJson;
39
+ return typeof toJsonFn === 'function';
40
+ }
41
+ const vWithJT = (schema) => v.pipe(v.custom(() => true), v.rawTransform(({ dataset, addIssue, NEVER }) => {
42
+ const result = v.safeParse(schema, dataset.value);
43
+ if (result.success)
44
+ return dataset.value;
45
+ if (!isToJsonable(dataset.value)) {
46
+ for (const safeParseIssue of result.issues) {
47
+ addIssue({
48
+ ...safeParseIssue,
49
+ expected: safeParseIssue.expected ?? undefined,
50
+ });
51
+ }
52
+ return NEVER;
53
+ }
54
+ let json;
55
+ try {
56
+ json = dataset.value.toJson();
57
+ }
58
+ catch (error) {
59
+ for (const safeParseIssue of result.issues) {
60
+ addIssue({
61
+ ...safeParseIssue,
62
+ expected: safeParseIssue.expected ?? undefined,
63
+ });
64
+ }
65
+ addIssue({ message: 'Json Transformation failed' });
66
+ return NEVER;
67
+ }
68
+ const safeParseResult = v.safeParse(schema, json);
69
+ if (safeParseResult.success)
70
+ return dataset.value;
71
+ for (const safeParseIssue of safeParseResult.issues) {
72
+ addIssue({
73
+ ...safeParseIssue,
74
+ expected: safeParseIssue.expected ?? undefined,
75
+ });
76
+ }
77
+ return NEVER;
78
+ }));
79
+ exports.vWithJT = vWithJT;
34
80
  exports.vJsonLiteral = v.union([
35
81
  v.string(),
36
82
  v.number(),
37
83
  v.boolean(),
38
84
  v.null(),
39
85
  ]);
40
- exports.vJsonArray = v.array(exports.vJsonLiteral);
41
86
  exports.vJson = v.lazy(() => v.union([exports.vJsonLiteral, v.array(exports.vJson), v.record(v.string(), exports.vJson)]));
87
+ exports.vJsonWithJT = v.lazy(() => (0, exports.vWithJT)(v.union([exports.vJsonLiteral, v.array(exports.vJson), v.record(v.string(), exports.vJson)])));
42
88
  exports.vJsonRecord = v.record(v.string(), exports.vJson);
43
- exports.vJsonValue = v.union([exports.vJsonLiteral, exports.vJsonArray, exports.vJsonRecord]);
44
89
  exports.vStringToJson = v.rawTransform(({ dataset, addIssue, NEVER }) => {
45
90
  try {
46
91
  return JSON.parse(dataset.value);
@@ -1 +1 @@
1
- {"version":3,"file":"u-dcql.js","sourceRoot":"","sources":["../../src/u-dcql.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAChB,QAAA,OAAO,GAAG,kBAAkB,CAAC;AAEnC,MAAM,cAAc,GAAG,GAAwB,EAAE;IACtD,OAAO,CAAC,CAAC,MAAM,CAAoB,KAAK,CAAC,EAAE,CACxC,KAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACvC,CAAC;AACJ,CAAC,CAAC;AAJW,QAAA,cAAc,kBAIzB;AAEW,QAAA,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,eAAO,CAAC,CAAC,CAAC;AAUjD,QAAA,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC;IAClC,CAAC,CAAC,MAAM,EAAE;IACV,C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C5D,IAAA,eAAO,EAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAY,EAAE,CAAC,CAAC,KAAK,CAAC,aAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,aAAK,CAAC,CAAC,CAAC,CAAC,CAC9E,CAAC;AAEW,QAAA,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,aAAK,CAAC,CAAC;AAG1C,QAAA,aAAa,GAAG,CAAC,CAAC,YAAY,CACzC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/B,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAS,CAAC;IAC3C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;QACtC,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CACF,CAAC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dcql",
3
3
  "description": "Digital Credentials Query Language (DCQL)",
4
4
  "author": "Martin Auer",
5
- "version": "0.2.16",
5
+ "version": "0.2.17",
6
6
  "private": false,
7
7
  "main": "./dist/src/index.js",
8
8
  "module": "./dist/src/index.js",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "valibot": "0.37.0"
22
+ "valibot": "1.0.0-beta.8"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@ausweis/eslint": "^0.2.43",