dcql 0.2.16 → 0.2.18
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 +5 -5
- package/dist/src/dcql-parser/dcql-claims-query-result.d.ts.map +1 -1
- package/dist/src/dcql-parser/dcql-claims-query-result.js +8 -7
- package/dist/src/dcql-parser/dcql-claims-query-result.js.map +1 -1
- package/dist/src/dcql-presentation/m-dcql-credential-presentation.d.ts +3 -3
- package/dist/src/dcql-presentation/m-dcql-presentation-result.d.ts +33 -33
- 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 +34 -34
- package/dist/src/dcql-query/m-dcql-credential-query.js +1 -1
- package/dist/src/dcql-query/m-dcql-credential-query.js.map +1 -1
- package/dist/src/dcql-query/m-dcql-credential-set-query.d.ts +1 -1
- package/dist/src/dcql-query/m-dcql-query.d.ts +44 -44
- package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +59 -59
- package/dist/src/u-dcql-credential.d.ts +6 -6
- package/dist/src/u-dcql-credential.js +1 -1
- package/dist/src/u-dcql-credential.js.map +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: {
|
@@ -15,11 +15,11 @@ export declare const getCredentialQueryParser: (credentialQuery: DcqlCredentialQ
|
|
15
15
|
readonly doctype: v.StringSchema<undefined> | v.LiteralSchema<string, undefined>;
|
16
16
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined> | v.ObjectSchema<any, undefined>;
|
17
17
|
}, undefined> | v.ObjectSchema<{
|
18
|
-
readonly credential_format: v.LiteralSchema<"vc+sd-jwt", undefined>;
|
18
|
+
readonly credential_format: v.LiteralSchema<"vc+sd-jwt" | "dc+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;AAkEF,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
|
@@ -140,9 +140,10 @@ const getW3cVcSdJwtVcParser = (credentialQuery, ctx) => {
|
|
140
140
|
const claimSetQueries = credentialQuery.claims && claimSet
|
141
141
|
? (0, exports.getJsonClaimsQueriesForClaimSet)(credentialQuery.claims, claimSet)
|
142
142
|
: credentialQuery.claims;
|
143
|
-
if (credentialQuery.format === 'vc+sd-jwt'
|
143
|
+
if (credentialQuery.format === 'vc+sd-jwt' ||
|
144
|
+
credentialQuery.format === 'dc+sd-jwt') {
|
144
145
|
return v.object({
|
145
|
-
credential_format: v.literal(
|
146
|
+
credential_format: v.literal(credentialQuery.format),
|
146
147
|
vct: credentialQuery.meta?.vct_values
|
147
148
|
? v.picklist(credentialQuery.meta.vct_values)
|
148
149
|
: v.string(),
|
@@ -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":[],"mapp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AAC,CAAC;IACL,CAAC;SAAM,CAAC;QACN,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;YAChC,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;YAChE,MAAM,EAAE,eAAe;gBACrB,CAAC,CAAC,IAAA,2BAAmB,EAAC,eAAe,EAAE,GAAG,CAAC;gBAC3C,CAAC,CAAC,uBAAW;SAChB,CAAC,CAAC;QAEH,OAAO,gBAAgB,CAAC;IAC1B,CAAC;AACH,CAAC,CAAC;AAEK,MAAM,wBAAwB,GAAG,CACtC,eAAoC,EACpC,GAGC,EACD,EAAE;IACF,IAAI,eAAe,CAAC,UAAU,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAChD,MAAM,IAAI,yCAA6B,CAAC;YACtC,OAAO,EAAE,gFAAgF;SAC1F,CAAC,CAAC;IACL,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1C,OAAO,aAAa,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC;SAAM,CAAC;QACN,OAAO,qBAAqB,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACrD,CAAC;AACH,CAAC,CAAC;AAlBW,QAAA,wBAAwB,4BAkBnC"}
|
@@ -16,12 +16,12 @@ export declare namespace DcqlMdocPresentation {
|
|
16
16
|
export type DcqlMdocPresentation = DcqlMdocPresentation.Model['Output'];
|
17
17
|
export declare namespace DcqlSdJwtVcPresentation {
|
18
18
|
const vModel: v.ObjectSchema<{
|
19
|
-
readonly credential_format: v.
|
19
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
20
20
|
readonly vct: v.StringSchema<undefined>;
|
21
21
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>;
|
22
22
|
}, undefined>;
|
23
23
|
const model: import("../u-model").Model<v.ObjectSchema<{
|
24
|
-
readonly credential_format: v.
|
24
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
25
25
|
readonly vct: v.StringSchema<undefined>;
|
26
26
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>;
|
27
27
|
}, undefined>>;
|
@@ -46,7 +46,7 @@ export declare namespace DcqlCredentialPresentation {
|
|
46
46
|
readonly doctype: v.StringSchema<undefined>;
|
47
47
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
48
48
|
}, undefined>, v.ObjectSchema<{
|
49
|
-
readonly credential_format: v.
|
49
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
50
50
|
readonly vct: v.StringSchema<undefined>;
|
51
51
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql").Json, import("../u-dcql").Json, v.BaseIssue<unknown>>, undefined>;
|
52
52
|
}, undefined>, v.ObjectSchema<{
|
@@ -7,9 +7,9 @@ export declare namespace DcqlPresentationResult {
|
|
7
7
|
readonly invalid_matches: v.UnionSchema<[v.RecordSchema<v.SchemaWithPipe<[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<{
|
@@ -19,7 +19,7 @@ export declare namespace DcqlPresentationResult {
|
|
19
19
|
readonly doctype: v.StringSchema<undefined>;
|
20
20
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
21
21
|
}, undefined>, v.ObjectSchema<{
|
22
|
-
readonly credential_format: v.
|
22
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
23
23
|
readonly vct: v.StringSchema<undefined>;
|
24
24
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
25
25
|
}, 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
|
-
readonly format: v.SchemaWithPipe<[v.
|
69
|
+
readonly format: v.SchemaWithPipe<[v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>, v.DescriptionAction<"vc+sd-jwt" | "dc+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";
|
@@ -134,7 +134,7 @@ export declare namespace DcqlPresentationResult {
|
|
134
134
|
} | undefined;
|
135
135
|
} | {
|
136
136
|
id: string;
|
137
|
-
format: "vc+sd-jwt";
|
137
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
138
138
|
claims?: [{
|
139
139
|
path: (string | number | null)[];
|
140
140
|
values?: (string | number | boolean)[] | undefined;
|
@@ -181,7 +181,7 @@ export declare namespace DcqlPresentationResult {
|
|
181
181
|
} | undefined;
|
182
182
|
} | {
|
183
183
|
id: string;
|
184
|
-
format: "vc+sd-jwt";
|
184
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
185
185
|
claims?: [{
|
186
186
|
path: (string | number | null)[];
|
187
187
|
values?: (string | number | boolean)[] | undefined;
|
@@ -228,7 +228,7 @@ export declare namespace DcqlPresentationResult {
|
|
228
228
|
} | undefined;
|
229
229
|
} | {
|
230
230
|
id: string;
|
231
|
-
format: "vc+sd-jwt";
|
231
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
232
232
|
claims?: [{
|
233
233
|
path: (string | number | null)[];
|
234
234
|
values?: (string | number | boolean)[] | undefined;
|
@@ -275,7 +275,7 @@ export declare namespace DcqlPresentationResult {
|
|
275
275
|
} | undefined;
|
276
276
|
} | {
|
277
277
|
id: string;
|
278
|
-
format: "vc+sd-jwt";
|
278
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
279
279
|
claims?: [{
|
280
280
|
path: (string | number | null)[];
|
281
281
|
values?: (string | number | boolean)[] | undefined;
|
@@ -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>;
|
@@ -364,7 +364,7 @@ export declare namespace DcqlPresentationResult {
|
|
364
364
|
} | undefined;
|
365
365
|
} | {
|
366
366
|
id: string;
|
367
|
-
format: "vc+sd-jwt";
|
367
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
368
368
|
claims?: [{
|
369
369
|
path: (string | number | null)[];
|
370
370
|
values?: (string | number | boolean)[] | undefined;
|
@@ -411,7 +411,7 @@ export declare namespace DcqlPresentationResult {
|
|
411
411
|
} | undefined;
|
412
412
|
} | {
|
413
413
|
id: string;
|
414
|
-
format: "vc+sd-jwt";
|
414
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
415
415
|
claims?: [{
|
416
416
|
path: (string | number | null)[];
|
417
417
|
values?: (string | number | boolean)[] | undefined;
|
@@ -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
|
};
|
@@ -461,7 +461,7 @@ export declare namespace DcqlPresentationResult {
|
|
461
461
|
};
|
462
462
|
};
|
463
463
|
} | {
|
464
|
-
credential_format: "vc+sd-jwt";
|
464
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
465
465
|
vct: string;
|
466
466
|
claims: {
|
467
467
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -525,7 +525,7 @@ export declare namespace DcqlPresentationResult {
|
|
525
525
|
} | undefined;
|
526
526
|
} | {
|
527
527
|
id: string;
|
528
|
-
format: "vc+sd-jwt";
|
528
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
529
529
|
claims?: [{
|
530
530
|
path: (string | number | null)[];
|
531
531
|
values?: (string | number | boolean)[] | undefined;
|
@@ -572,7 +572,7 @@ export declare namespace DcqlPresentationResult {
|
|
572
572
|
} | undefined;
|
573
573
|
} | {
|
574
574
|
id: string;
|
575
|
-
format: "vc+sd-jwt";
|
575
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
576
576
|
claims?: [{
|
577
577
|
path: (string | number | null)[];
|
578
578
|
values?: (string | number | boolean)[] | undefined;
|
@@ -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
|
};
|
@@ -622,7 +622,7 @@ export declare namespace DcqlPresentationResult {
|
|
622
622
|
};
|
623
623
|
};
|
624
624
|
} | {
|
625
|
-
credential_format: "vc+sd-jwt";
|
625
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
626
626
|
vct: string;
|
627
627
|
claims: {
|
628
628
|
[x: string]: import("../u-dcql.js").Json;
|