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.
- package/dist/src/dcql-parser/dcql-claims-query-result.d.ts +4 -4
- package/dist/src/dcql-parser/dcql-claims-query-result.d.ts.map +1 -1
- package/dist/src/dcql-parser/dcql-claims-query-result.js +5 -5
- package/dist/src/dcql-parser/dcql-claims-query-result.js.map +1 -1
- package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts +21 -21
- package/dist/src/dcql-query/dcql-query-complex.test.js +54 -481
- package/dist/src/dcql-query/dcql-query-complex.test.js.map +1 -1
- package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts +2 -0
- package/dist/src/dcql-query/dcql-query-with-json-transform.test.d.ts.map +1 -0
- package/dist/src/dcql-query/dcql-query-with-json-transform.test.js +188 -0
- package/dist/src/dcql-query/dcql-query-with-json-transform.test.js.map +1 -0
- package/dist/src/dcql-query/dcql-query.test.js +13 -21
- package/dist/src/dcql-query/dcql-query.test.js.map +1 -1
- package/dist/src/dcql-query/m-dcql-claims-query.d.ts +8 -10
- package/dist/src/dcql-query/m-dcql-claims-query.d.ts.map +1 -1
- package/dist/src/dcql-query/m-dcql-claims-query.js.map +1 -1
- package/dist/src/dcql-query/m-dcql-credential-query.d.ts +32 -32
- package/dist/src/dcql-query/m-dcql-credential-set-query.d.ts +1 -1
- package/dist/src/dcql-query/m-dcql-query.d.ts +26 -26
- package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +36 -36
- package/dist/src/u-dcql-credential.d.ts +1 -1
- package/dist/src/u-dcql.d.ts +3 -2
- package/dist/src/u-dcql.d.ts.map +1 -1
- package/dist/src/u-dcql.js +48 -3
- package/dist/src/u-dcql.js.map +1 -1
- package/package.json +2 -2
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as v from 'valibot';
|
2
|
-
import { DcqlClaimsQuery } from '../dcql-query/m-dcql-claims-query.js';
|
2
|
+
import type { DcqlClaimsQuery } from '../dcql-query/m-dcql-claims-query.js';
|
3
3
|
import type { DcqlCredentialQuery } from '../dcql-query/m-dcql-credential-query.js';
|
4
4
|
export declare const getNamespacesParser: (claimsQueries: DcqlClaimsQuery.Mdoc[]) => v.ObjectSchema<any, undefined>;
|
5
5
|
export declare const getJsonClaimsParser: (claimsQueries: DcqlClaimsQuery.W3cAndSdJwtVc[], ctx: {
|
6
6
|
presentation: boolean;
|
7
|
-
}) => v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql
|
7
|
+
}) => v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
|
8
8
|
export declare const getMdocClaimsQueriesForClaimSet: (claimsQueries: DcqlClaimsQuery.Mdoc[], claimSet: string[]) => DcqlClaimsQuery.Mdoc[];
|
9
9
|
export declare const getJsonClaimsQueriesForClaimSet: (claimsQueries: DcqlClaimsQuery.W3cAndSdJwtVc[], claimSet: string[]) => DcqlClaimsQuery.W3cAndSdJwtVc[];
|
10
10
|
export declare const getCredentialQueryParser: (credentialQuery: DcqlCredentialQuery, ctx: {
|
@@ -17,9 +17,9 @@ export declare const getCredentialQueryParser: (credentialQuery: DcqlCredentialQ
|
|
17
17
|
}, undefined> | v.ObjectSchema<{
|
18
18
|
readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
|
19
19
|
readonly vct: v.StringSchema<undefined> | v.PicklistSchema<string[], undefined>;
|
20
|
-
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql
|
20
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
|
21
21
|
}, undefined> | v.ObjectSchema<{
|
22
22
|
readonly credential_format: v.PicklistSchema<["jwt_vc_json", "jwt_vc_json-ld"], undefined>;
|
23
|
-
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql
|
23
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined> | v.IntersectSchema<v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>[], undefined>;
|
24
24
|
}, undefined>;
|
25
25
|
//# sourceMappingURL=dcql-claims-query-result.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dcql-claims-query-result.d.ts","sourceRoot":"","sources":["../../../src/dcql-parser/dcql-claims-query-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;
|
1
|
+
{"version":3,"file":"dcql-claims-query-result.d.ts","sourceRoot":"","sources":["../../../src/dcql-parser/dcql-claims-query-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAK7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAoBpF,eAAO,MAAM,mBAAmB,kBAAmB,eAAe,CAAC,IAAI,EAAE,mCAwBxE,CAAC;AAgDF,eAAO,MAAM,mBAAmB,kBACf,eAAe,CAAC,aAAa,EAAE,OACzC;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,oLAa/B,CAAC;AAEF,eAAO,MAAM,+BAA+B,kBAC3B,eAAe,CAAC,IAAI,EAAE,YAC3B,MAAM,EAAE,KACjB,eAAe,CAAC,IAAI,EAUtB,CAAC;AAEF,eAAO,MAAM,+BAA+B,kBAC3B,eAAe,CAAC,aAAa,EAAE,YACpC,MAAM,EAAE,KACjB,eAAe,CAAC,aAAa,EAU/B,CAAC;AA+DF,eAAO,MAAM,wBAAwB,oBAClB,mBAAmB,OAC/B;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAClE,YAAY,EAAE,OAAO,CAAC;CACvB;;;;;;;;;;;aAaF,CAAC"}
|
@@ -26,17 +26,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.getCredentialQueryParser = exports.getJsonClaimsQueriesForClaimSet = exports.getMdocClaimsQueriesForClaimSet = exports.getJsonClaimsParser = exports.getNamespacesParser = void 0;
|
27
27
|
const v = __importStar(require("valibot"));
|
28
28
|
const e_dcql_js_1 = require("../dcql-error/e-dcql.js");
|
29
|
-
const
|
29
|
+
const u_dcql_1 = require("../u-dcql");
|
30
30
|
const u_dcql_js_1 = require("../u-dcql.js");
|
31
31
|
const getClaimParser = (input) => {
|
32
32
|
const { value, values } = input;
|
33
33
|
if (value) {
|
34
|
-
return v.literal(value);
|
34
|
+
return (0, u_dcql_1.vWithJT)(v.literal(value));
|
35
35
|
}
|
36
36
|
if (values) {
|
37
|
-
return v.union(values.map(val => v.literal(val)));
|
37
|
+
return (0, u_dcql_1.vWithJT)(v.union(values.map(val => v.literal(val))));
|
38
38
|
}
|
39
|
-
return
|
39
|
+
return v.nonNullish(v.any());
|
40
40
|
};
|
41
41
|
const getNamespacesParser = (claimsQueries) => {
|
42
42
|
const claimsForNamespace = {};
|
@@ -59,7 +59,7 @@ const getClaimQueryParser = (claimQuery, ctx) => {
|
|
59
59
|
const { index, presentation } = ctx;
|
60
60
|
const pathElement = claimQuery.path[index];
|
61
61
|
const isLast = index === claimQuery.path.length - 1;
|
62
|
-
const vClaimParser =
|
62
|
+
const vClaimParser = getClaimParser(claimQuery);
|
63
63
|
if (typeof pathElement === 'number') {
|
64
64
|
const elementParser = isLast
|
65
65
|
? vClaimParser
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dcql-claims-query-result.js","sourceRoot":"","sources":["../../../src/dcql-parser/dcql-claims-query-result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,uDAGiC;
|
1
|
+
{"version":3,"file":"dcql-claims-query-result.js","sourceRoot":"","sources":["../../../src/dcql-parser/dcql-claims-query-result.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,uDAGiC;AAGjC,sCAAoC;AACpC,4CAAkD;AAElD,MAAM,cAAc,GAAG,CAAC,KAGvB,EAAE,EAAE;IACH,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAChC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,IAAA,gBAAO,EAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,IAAI,MAAM,EAAE,CAAC;QACX,OAAO,IAAA,gBAAO,EAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC/B,CAAC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,aAAqC,EAAE,EAAE;IAC3E,MAAM,kBAAkB,GAGpB,EAAE,CAAC;IAEP,KAAK,MAAM,UAAU,IAAI,aAAa,EAAE,CAAC;QACvC,IAAI,kBAAkB,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;YAC7C,kBAAkB,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,EAAE,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e<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.ObjectSchema<{
|
8
8
|
readonly presentation_id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
9
9
|
readonly output: v.UnknownSchema;
|
10
|
+
readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
|
10
11
|
readonly success: v.LiteralSchema<false, undefined>;
|
11
12
|
readonly typed: v.BooleanSchema<undefined>;
|
12
|
-
readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
|
13
13
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
14
14
|
}, undefined>, undefined>, v.UndefinedSchema<undefined>], undefined>;
|
15
15
|
readonly valid_matches: v.RecordSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.ObjectSchema<{
|
@@ -33,10 +33,10 @@ export declare namespace DcqlPresentationResult {
|
|
33
33
|
readonly credentials: v.SchemaWithPipe<[v.ArraySchema<v.VariantSchema<"format", [v.ObjectSchema<{
|
34
34
|
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.">]>;
|
35
35
|
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
36
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
36
|
+
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.">]>;
|
37
37
|
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.">]>;
|
38
38
|
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.">]>;
|
39
|
-
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>,
|
39
|
+
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.">]>;
|
40
40
|
}, undefined>, undefined>, v.CustomSchema<[{
|
41
41
|
namespace: string;
|
42
42
|
claim_name: string;
|
@@ -47,7 +47,7 @@ export declare namespace DcqlPresentationResult {
|
|
47
47
|
claim_name: string;
|
48
48
|
values?: (string | number | boolean)[] | undefined;
|
49
49
|
id?: string | undefined;
|
50
|
-
}[]], undefined>]>,
|
50
|
+
}[]], undefined>]>, undefined>, v.DescriptionAction<[{
|
51
51
|
namespace: string;
|
52
52
|
claim_name: string;
|
53
53
|
values?: (string | number | boolean)[] | undefined;
|
@@ -59,18 +59,18 @@ export declare namespace DcqlPresentationResult {
|
|
59
59
|
id?: string | undefined;
|
60
60
|
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
61
61
|
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.ObjectSchema<{
|
62
|
-
readonly doctype_value: v.SchemaWithPipe<[v.OptionalSchema<v.StringSchema<undefined>,
|
63
|
-
}, undefined>,
|
62
|
+
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.">]>;
|
63
|
+
}, undefined>, undefined>, v.DescriptionAction<{
|
64
64
|
doctype_value?: string | undefined;
|
65
65
|
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
66
66
|
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'.">]>;
|
67
|
-
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>]>,
|
67
|
+
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.">]>;
|
68
68
|
}, undefined>, v.ObjectSchema<{
|
69
69
|
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.">]>;
|
70
70
|
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
71
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
71
|
+
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.">]>;
|
72
72
|
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.">]>;
|
73
|
-
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>,
|
73
|
+
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.">]>;
|
74
74
|
}, undefined>, undefined>, v.CustomSchema<[{
|
75
75
|
path: (string | number | null)[];
|
76
76
|
values?: (string | number | boolean)[] | undefined;
|
@@ -79,7 +79,7 @@ export declare namespace DcqlPresentationResult {
|
|
79
79
|
path: (string | number | null)[];
|
80
80
|
values?: (string | number | boolean)[] | undefined;
|
81
81
|
id?: string | undefined;
|
82
|
-
}[]], undefined>]>,
|
82
|
+
}[]], undefined>]>, undefined>, v.DescriptionAction<[{
|
83
83
|
path: (string | number | null)[];
|
84
84
|
values?: (string | number | boolean)[] | undefined;
|
85
85
|
id?: string | undefined;
|
@@ -89,20 +89,20 @@ export declare namespace DcqlPresentationResult {
|
|
89
89
|
id?: string | undefined;
|
90
90
|
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
91
91
|
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
92
|
-
readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
92
|
+
readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
93
93
|
}, undefined>, v.DescriptionAction<{
|
94
94
|
vct_values?: string[] | undefined;
|
95
|
-
}, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>,
|
95
|
+
}, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>, undefined>, v.DescriptionAction<{
|
96
96
|
vct_values?: string[] | undefined;
|
97
97
|
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
98
98
|
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'.">]>;
|
99
|
-
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>]>,
|
99
|
+
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.">]>;
|
100
100
|
}, undefined>, v.ObjectSchema<{
|
101
101
|
readonly format: v.PicklistSchema<["jwt_vc_json", "jwt_vc_json-ld"], undefined>;
|
102
102
|
readonly claims: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
103
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
103
|
+
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.">]>;
|
104
104
|
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.">]>;
|
105
|
-
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>,
|
105
|
+
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.">]>;
|
106
106
|
}, undefined>, undefined>, v.CustomSchema<[{
|
107
107
|
path: (string | number | null)[];
|
108
108
|
values?: (string | number | boolean)[] | undefined;
|
@@ -111,9 +111,9 @@ export declare namespace DcqlPresentationResult {
|
|
111
111
|
path: (string | number | null)[];
|
112
112
|
values?: (string | number | boolean)[] | undefined;
|
113
113
|
id?: string | undefined;
|
114
|
-
}[]], undefined>]>,
|
114
|
+
}[]], undefined>]>, undefined>;
|
115
115
|
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'.">]>;
|
116
|
-
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>]>,
|
116
|
+
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.">]>;
|
117
117
|
}, undefined>], undefined>, undefined>, v.CustomSchema<[{
|
118
118
|
id: string;
|
119
119
|
format: "mso_mdoc";
|
@@ -307,7 +307,7 @@ export declare namespace DcqlPresentationResult {
|
|
307
307
|
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>;
|
308
308
|
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.">]>;
|
309
309
|
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'.">]>;
|
310
|
-
readonly purpose: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>], undefined>,
|
310
|
+
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 | {
|
311
311
|
[x: string]: unknown;
|
312
312
|
} | undefined, "OPTIONAL. A string, number or object specifying the purpose of the query.">]>;
|
313
313
|
}, undefined>, undefined>, v.CustomSchema<[{
|
@@ -338,7 +338,7 @@ export declare namespace DcqlPresentationResult {
|
|
338
338
|
purpose?: string | number | {
|
339
339
|
[x: string]: unknown;
|
340
340
|
} | undefined;
|
341
|
-
}[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>,
|
341
|
+
}[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, undefined>;
|
342
342
|
readonly canBeSatisfied: v.BooleanSchema<undefined>;
|
343
343
|
}, undefined>;
|
344
344
|
type Input = v.InferInput<typeof vModel>;
|
@@ -443,9 +443,9 @@ export declare namespace DcqlPresentationResult {
|
|
443
443
|
invalid_matches: {
|
444
444
|
[x: string]: {
|
445
445
|
output: unknown;
|
446
|
+
issues: [unknown, ...unknown[]];
|
446
447
|
success: false;
|
447
448
|
typed: boolean;
|
448
|
-
issues: [unknown, ...unknown[]];
|
449
449
|
claim_set_index: number | undefined;
|
450
450
|
presentation_id: string;
|
451
451
|
};
|
@@ -604,9 +604,9 @@ export declare namespace DcqlPresentationResult {
|
|
604
604
|
invalid_matches: {
|
605
605
|
[x: string]: {
|
606
606
|
output: unknown;
|
607
|
+
issues: [unknown, ...unknown[]];
|
607
608
|
success: false;
|
608
609
|
typed: boolean;
|
609
|
-
issues: [unknown, ...unknown[]];
|
610
610
|
claim_set_index: number | undefined;
|
611
611
|
presentation_id: string;
|
612
612
|
};
|