dcql 0.2.8 → 0.2.10
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-presentation/index.d.ts +1 -0
- package/dist/src/dcql-presentation/index.d.ts.map +1 -1
- package/dist/src/dcql-presentation/index.js +1 -0
- package/dist/src/dcql-presentation/index.js.map +1 -1
- package/dist/src/dcql-presentation/m-dcql-presentation-query.d.ts +835 -0
- package/dist/src/dcql-presentation/m-dcql-presentation-query.d.ts.map +1 -0
- package/dist/src/dcql-presentation/m-dcql-presentation-query.js +129 -0
- package/dist/src/dcql-presentation/m-dcql-presentation-query.js.map +1 -0
- package/dist/src/dcql-presentation/m-dcql-presentation-record.d.ts +0 -10
- package/dist/src/dcql-presentation/m-dcql-presentation-record.d.ts.map +1 -1
- package/dist/src/dcql-presentation/m-dcql-presentation-record.js +0 -25
- package/dist/src/dcql-presentation/m-dcql-presentation-record.js.map +1 -1
- package/dist/src/dcql-query/dcql-query.test.js +52 -4
- package/dist/src/dcql-query/dcql-query.test.js.map +1 -1
- package/dist/src/dcql-query/m-dcql-credential-query.d.ts +2 -2
- package/dist/src/dcql-query/m-dcql-credential-query.d.ts.map +1 -1
- package/dist/src/dcql-query/m-dcql-credential-query.js +2 -2
- package/dist/src/dcql-query/m-dcql-credential-query.js.map +1 -1
- package/dist/src/dcql-query/m-dcql-query.d.ts +5 -5
- package/dist/src/dcql-query-result/dcql-claims-query-result.js.map +1 -1
- package/dist/src/dcql-query-result/m-dcql-query-result.d.ts +6 -6
- package/dist/src/e-dcql.d.ts +0 -6
- package/dist/src/e-dcql.d.ts.map +1 -1
- package/dist/src/e-dcql.js +1 -7
- package/dist/src/e-dcql.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/u-dcql-credential-representation.d.ts +1 -0
- package/dist/src/u-dcql-credential-representation.d.ts.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,835 @@
|
|
1
|
+
import * as v from 'valibot';
|
2
|
+
import { DcqlQueryResult } from '../dcql-query-result/m-dcql-query-result.js';
|
3
|
+
import type { DcqlQuery } from '../dcql-query/m-dcql-query.js';
|
4
|
+
import type { DcqlPresentationRepresentation } from '../u-dcql-credential-representation.js';
|
5
|
+
export declare namespace DcqlPresentationQuery {
|
6
|
+
const vModel: v.ObjectSchema<{
|
7
|
+
readonly canBeSatisfied: v.LiteralSchema<true, undefined>;
|
8
|
+
readonly presentation_matches: v.RecordSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.ObjectSchema<{
|
9
|
+
readonly presentation_index: v.NumberSchema<undefined>;
|
10
|
+
readonly output: v.UnionSchema<[v.ObjectSchema<{
|
11
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
13
|
+
readonly vct: v.StringSchema<undefined>;
|
14
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
15
|
+
}, undefined>, v.ObjectSchema<{
|
16
|
+
readonly docType: v.StringSchema<undefined>;
|
17
|
+
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
18
|
+
}, undefined>], undefined>;
|
19
|
+
readonly success: v.LiteralSchema<true, undefined>;
|
20
|
+
readonly typed: v.LiteralSchema<true, undefined>;
|
21
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
22
|
+
}, undefined>, undefined>;
|
23
|
+
readonly credentials: v.SchemaWithPipe<[v.ArraySchema<v.VariantSchema<"format", [v.ObjectSchema<{
|
24
|
+
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.">]>;
|
25
|
+
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
26
|
+
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.">]>;
|
27
|
+
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.">]>;
|
28
|
+
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.">]>;
|
29
|
+
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.">]>;
|
30
|
+
}, undefined>, undefined>, v.CustomSchema<[{
|
31
|
+
namespace: string;
|
32
|
+
claim_name: string;
|
33
|
+
values?: (string | number | boolean)[] | undefined;
|
34
|
+
id?: string | undefined;
|
35
|
+
}, ...{
|
36
|
+
namespace: string;
|
37
|
+
claim_name: string;
|
38
|
+
values?: (string | number | boolean)[] | undefined;
|
39
|
+
id?: string | undefined;
|
40
|
+
}[]], undefined>]>, never>, v.DescriptionAction<[{
|
41
|
+
namespace: string;
|
42
|
+
claim_name: string;
|
43
|
+
values?: (string | number | boolean)[] | undefined;
|
44
|
+
id?: string | undefined;
|
45
|
+
}, ...{
|
46
|
+
namespace: string;
|
47
|
+
claim_name: string;
|
48
|
+
values?: (string | number | boolean)[] | undefined;
|
49
|
+
id?: string | undefined;
|
50
|
+
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
51
|
+
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.ObjectSchema<{
|
52
|
+
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.">]>;
|
53
|
+
}, undefined>, never>, v.DescriptionAction<{
|
54
|
+
doctype_value?: string | undefined;
|
55
|
+
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
56
|
+
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'.">]>;
|
57
|
+
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.">]>;
|
58
|
+
}, undefined>, v.ObjectSchema<{
|
59
|
+
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.">]>;
|
60
|
+
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
61
|
+
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.">]>;
|
62
|
+
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.">]>;
|
63
|
+
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.">]>;
|
64
|
+
}, undefined>, undefined>, v.CustomSchema<[{
|
65
|
+
path: (string | number | null)[];
|
66
|
+
values?: (string | number | boolean)[] | undefined;
|
67
|
+
id?: string | undefined;
|
68
|
+
}, ...{
|
69
|
+
path: (string | number | null)[];
|
70
|
+
values?: (string | number | boolean)[] | undefined;
|
71
|
+
id?: string | undefined;
|
72
|
+
}[]], undefined>]>, never>, v.DescriptionAction<[{
|
73
|
+
path: (string | number | null)[];
|
74
|
+
values?: (string | number | boolean)[] | undefined;
|
75
|
+
id?: string | undefined;
|
76
|
+
}, ...{
|
77
|
+
path: (string | number | null)[];
|
78
|
+
values?: (string | number | boolean)[] | undefined;
|
79
|
+
id?: string | undefined;
|
80
|
+
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
81
|
+
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
82
|
+
readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, never>;
|
83
|
+
}, undefined>, v.DescriptionAction<{
|
84
|
+
vct_values?: string[] | undefined;
|
85
|
+
}, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>, never>, v.DescriptionAction<{
|
86
|
+
vct_values?: string[] | undefined;
|
87
|
+
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
88
|
+
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'.">]>;
|
89
|
+
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.">]>;
|
90
|
+
}, undefined>, v.ObjectSchema<{
|
91
|
+
readonly format: v.PicklistSchema<["jwt_vc_json", "jwt_vc_json-ld"], undefined>;
|
92
|
+
readonly claims: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
93
|
+
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.">]>;
|
94
|
+
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.">]>;
|
95
|
+
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.">]>;
|
96
|
+
}, undefined>, undefined>, v.CustomSchema<[{
|
97
|
+
path: (string | number | null)[];
|
98
|
+
values?: (string | number | boolean)[] | undefined;
|
99
|
+
id?: string | undefined;
|
100
|
+
}, ...{
|
101
|
+
path: (string | number | null)[];
|
102
|
+
values?: (string | number | boolean)[] | undefined;
|
103
|
+
id?: string | undefined;
|
104
|
+
}[]], undefined>]>, never>;
|
105
|
+
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'.">]>;
|
106
|
+
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.">]>;
|
107
|
+
}, undefined>], undefined>, undefined>, v.CustomSchema<[{
|
108
|
+
id: string;
|
109
|
+
format: "mso_mdoc";
|
110
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
111
|
+
claims?: [{
|
112
|
+
namespace: string;
|
113
|
+
claim_name: string;
|
114
|
+
values?: (string | number | boolean)[] | undefined;
|
115
|
+
id?: string | undefined;
|
116
|
+
}, ...{
|
117
|
+
namespace: string;
|
118
|
+
claim_name: string;
|
119
|
+
values?: (string | number | boolean)[] | undefined;
|
120
|
+
id?: string | undefined;
|
121
|
+
}[]] | undefined;
|
122
|
+
meta?: {
|
123
|
+
doctype_value?: string | undefined;
|
124
|
+
} | undefined;
|
125
|
+
} | {
|
126
|
+
id: string;
|
127
|
+
format: "vc+sd-jwt";
|
128
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
129
|
+
claims?: [{
|
130
|
+
path: (string | number | null)[];
|
131
|
+
values?: (string | number | boolean)[] | undefined;
|
132
|
+
id?: string | undefined;
|
133
|
+
}, ...{
|
134
|
+
path: (string | number | null)[];
|
135
|
+
values?: (string | number | boolean)[] | undefined;
|
136
|
+
id?: string | undefined;
|
137
|
+
}[]] | undefined;
|
138
|
+
meta?: {
|
139
|
+
vct_values?: string[] | undefined;
|
140
|
+
} | undefined;
|
141
|
+
} | {
|
142
|
+
id: string;
|
143
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
144
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
145
|
+
claims?: [{
|
146
|
+
path: (string | number | null)[];
|
147
|
+
values?: (string | number | boolean)[] | undefined;
|
148
|
+
id?: string | undefined;
|
149
|
+
}, ...{
|
150
|
+
path: (string | number | null)[];
|
151
|
+
values?: (string | number | boolean)[] | undefined;
|
152
|
+
id?: string | undefined;
|
153
|
+
}[]] | undefined;
|
154
|
+
}, ...({
|
155
|
+
id: string;
|
156
|
+
format: "mso_mdoc";
|
157
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
158
|
+
claims?: [{
|
159
|
+
namespace: string;
|
160
|
+
claim_name: string;
|
161
|
+
values?: (string | number | boolean)[] | undefined;
|
162
|
+
id?: string | undefined;
|
163
|
+
}, ...{
|
164
|
+
namespace: string;
|
165
|
+
claim_name: string;
|
166
|
+
values?: (string | number | boolean)[] | undefined;
|
167
|
+
id?: string | undefined;
|
168
|
+
}[]] | undefined;
|
169
|
+
meta?: {
|
170
|
+
doctype_value?: string | undefined;
|
171
|
+
} | undefined;
|
172
|
+
} | {
|
173
|
+
id: string;
|
174
|
+
format: "vc+sd-jwt";
|
175
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
176
|
+
claims?: [{
|
177
|
+
path: (string | number | null)[];
|
178
|
+
values?: (string | number | boolean)[] | undefined;
|
179
|
+
id?: string | undefined;
|
180
|
+
}, ...{
|
181
|
+
path: (string | number | null)[];
|
182
|
+
values?: (string | number | boolean)[] | undefined;
|
183
|
+
id?: string | undefined;
|
184
|
+
}[]] | undefined;
|
185
|
+
meta?: {
|
186
|
+
vct_values?: string[] | undefined;
|
187
|
+
} | undefined;
|
188
|
+
} | {
|
189
|
+
id: string;
|
190
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
191
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
192
|
+
claims?: [{
|
193
|
+
path: (string | number | null)[];
|
194
|
+
values?: (string | number | boolean)[] | undefined;
|
195
|
+
id?: string | undefined;
|
196
|
+
}, ...{
|
197
|
+
path: (string | number | null)[];
|
198
|
+
values?: (string | number | boolean)[] | undefined;
|
199
|
+
id?: string | undefined;
|
200
|
+
}[]] | undefined;
|
201
|
+
})[]], undefined>, v.DescriptionAction<[{
|
202
|
+
id: string;
|
203
|
+
format: "mso_mdoc";
|
204
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
205
|
+
claims?: [{
|
206
|
+
namespace: string;
|
207
|
+
claim_name: string;
|
208
|
+
values?: (string | number | boolean)[] | undefined;
|
209
|
+
id?: string | undefined;
|
210
|
+
}, ...{
|
211
|
+
namespace: string;
|
212
|
+
claim_name: string;
|
213
|
+
values?: (string | number | boolean)[] | undefined;
|
214
|
+
id?: string | undefined;
|
215
|
+
}[]] | undefined;
|
216
|
+
meta?: {
|
217
|
+
doctype_value?: string | undefined;
|
218
|
+
} | undefined;
|
219
|
+
} | {
|
220
|
+
id: string;
|
221
|
+
format: "vc+sd-jwt";
|
222
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
223
|
+
claims?: [{
|
224
|
+
path: (string | number | null)[];
|
225
|
+
values?: (string | number | boolean)[] | undefined;
|
226
|
+
id?: string | undefined;
|
227
|
+
}, ...{
|
228
|
+
path: (string | number | null)[];
|
229
|
+
values?: (string | number | boolean)[] | undefined;
|
230
|
+
id?: string | undefined;
|
231
|
+
}[]] | undefined;
|
232
|
+
meta?: {
|
233
|
+
vct_values?: string[] | undefined;
|
234
|
+
} | undefined;
|
235
|
+
} | {
|
236
|
+
id: string;
|
237
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
238
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
239
|
+
claims?: [{
|
240
|
+
path: (string | number | null)[];
|
241
|
+
values?: (string | number | boolean)[] | undefined;
|
242
|
+
id?: string | undefined;
|
243
|
+
}, ...{
|
244
|
+
path: (string | number | null)[];
|
245
|
+
values?: (string | number | boolean)[] | undefined;
|
246
|
+
id?: string | undefined;
|
247
|
+
}[]] | undefined;
|
248
|
+
}, ...({
|
249
|
+
id: string;
|
250
|
+
format: "mso_mdoc";
|
251
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
252
|
+
claims?: [{
|
253
|
+
namespace: string;
|
254
|
+
claim_name: string;
|
255
|
+
values?: (string | number | boolean)[] | undefined;
|
256
|
+
id?: string | undefined;
|
257
|
+
}, ...{
|
258
|
+
namespace: string;
|
259
|
+
claim_name: string;
|
260
|
+
values?: (string | number | boolean)[] | undefined;
|
261
|
+
id?: string | undefined;
|
262
|
+
}[]] | undefined;
|
263
|
+
meta?: {
|
264
|
+
doctype_value?: string | undefined;
|
265
|
+
} | undefined;
|
266
|
+
} | {
|
267
|
+
id: string;
|
268
|
+
format: "vc+sd-jwt";
|
269
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
270
|
+
claims?: [{
|
271
|
+
path: (string | number | null)[];
|
272
|
+
values?: (string | number | boolean)[] | undefined;
|
273
|
+
id?: string | undefined;
|
274
|
+
}, ...{
|
275
|
+
path: (string | number | null)[];
|
276
|
+
values?: (string | number | boolean)[] | undefined;
|
277
|
+
id?: string | undefined;
|
278
|
+
}[]] | undefined;
|
279
|
+
meta?: {
|
280
|
+
vct_values?: string[] | undefined;
|
281
|
+
} | undefined;
|
282
|
+
} | {
|
283
|
+
id: string;
|
284
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
285
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
286
|
+
claims?: [{
|
287
|
+
path: (string | number | null)[];
|
288
|
+
values?: (string | number | boolean)[] | undefined;
|
289
|
+
id?: string | undefined;
|
290
|
+
}, ...{
|
291
|
+
path: (string | number | null)[];
|
292
|
+
values?: (string | number | boolean)[] | undefined;
|
293
|
+
id?: string | undefined;
|
294
|
+
}[]] | undefined;
|
295
|
+
})[]], "REQUIRED. A non-empty array of Credential Queries that specify the requested Verifiable Credentials.">]>;
|
296
|
+
readonly credential_matches: v.RecordSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.UnionSchema<[v.ObjectSchema<{
|
297
|
+
readonly all: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
|
298
|
+
readonly output: v.UnionSchema<[v.ObjectSchema<{
|
299
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
300
|
+
}, undefined>, v.ObjectSchema<{
|
301
|
+
readonly vct: v.StringSchema<undefined>;
|
302
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
303
|
+
}, undefined>, v.ObjectSchema<{
|
304
|
+
readonly docType: v.StringSchema<undefined>;
|
305
|
+
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
306
|
+
}, undefined>], undefined>;
|
307
|
+
readonly success: v.LiteralSchema<true, undefined>;
|
308
|
+
readonly typed: v.LiteralSchema<true, undefined>;
|
309
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
|
310
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
311
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
312
|
+
}, undefined>, v.ObjectSchema<{
|
313
|
+
readonly success: v.LiteralSchema<false, undefined>;
|
314
|
+
readonly typed: v.BooleanSchema<undefined>;
|
315
|
+
readonly output: v.UnknownSchema;
|
316
|
+
readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
|
317
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
318
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
319
|
+
}, undefined>], undefined>, undefined>, undefined>, v.CustomSchema<[({
|
320
|
+
output: unknown;
|
321
|
+
success: false;
|
322
|
+
typed: boolean;
|
323
|
+
issues: [unknown, ...unknown[]];
|
324
|
+
claim_set_index: number | undefined;
|
325
|
+
credential_index: number;
|
326
|
+
} | {
|
327
|
+
output: {
|
328
|
+
claims: {
|
329
|
+
[x: string]: import("../u-dcql.js").Json;
|
330
|
+
};
|
331
|
+
} | {
|
332
|
+
claims: {
|
333
|
+
[x: string]: import("../u-dcql.js").Json;
|
334
|
+
};
|
335
|
+
vct: string;
|
336
|
+
} | {
|
337
|
+
docType: string;
|
338
|
+
namespaces: {
|
339
|
+
[x: string]: {
|
340
|
+
[x: string]: unknown;
|
341
|
+
};
|
342
|
+
};
|
343
|
+
};
|
344
|
+
success: true;
|
345
|
+
typed: true;
|
346
|
+
claim_set_index: number | undefined;
|
347
|
+
credential_index: number;
|
348
|
+
issues?: undefined;
|
349
|
+
} | undefined)[], ...({
|
350
|
+
output: unknown;
|
351
|
+
success: false;
|
352
|
+
typed: boolean;
|
353
|
+
issues: [unknown, ...unknown[]];
|
354
|
+
claim_set_index: number | undefined;
|
355
|
+
credential_index: number;
|
356
|
+
} | {
|
357
|
+
output: {
|
358
|
+
claims: {
|
359
|
+
[x: string]: import("../u-dcql.js").Json;
|
360
|
+
};
|
361
|
+
} | {
|
362
|
+
claims: {
|
363
|
+
[x: string]: import("../u-dcql.js").Json;
|
364
|
+
};
|
365
|
+
vct: string;
|
366
|
+
} | {
|
367
|
+
docType: string;
|
368
|
+
namespaces: {
|
369
|
+
[x: string]: {
|
370
|
+
[x: string]: unknown;
|
371
|
+
};
|
372
|
+
};
|
373
|
+
};
|
374
|
+
success: true;
|
375
|
+
typed: true;
|
376
|
+
claim_set_index: number | undefined;
|
377
|
+
credential_index: number;
|
378
|
+
issues?: undefined;
|
379
|
+
} | undefined)[][]], undefined>]>;
|
380
|
+
readonly output: v.UnionSchema<[v.ObjectSchema<{
|
381
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
382
|
+
}, undefined>, v.ObjectSchema<{
|
383
|
+
readonly vct: v.StringSchema<undefined>;
|
384
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
385
|
+
}, undefined>, v.ObjectSchema<{
|
386
|
+
readonly docType: v.StringSchema<undefined>;
|
387
|
+
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
388
|
+
}, undefined>], undefined>;
|
389
|
+
readonly success: v.LiteralSchema<true, undefined>;
|
390
|
+
readonly typed: v.LiteralSchema<true, undefined>;
|
391
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
|
392
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
393
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
394
|
+
}, undefined>, v.ObjectSchema<{
|
395
|
+
readonly all: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
|
396
|
+
readonly output: v.UnionSchema<[v.ObjectSchema<{
|
397
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
398
|
+
}, undefined>, v.ObjectSchema<{
|
399
|
+
readonly vct: v.StringSchema<undefined>;
|
400
|
+
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
401
|
+
}, undefined>, v.ObjectSchema<{
|
402
|
+
readonly docType: v.StringSchema<undefined>;
|
403
|
+
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
404
|
+
}, undefined>], undefined>;
|
405
|
+
readonly success: v.LiteralSchema<true, undefined>;
|
406
|
+
readonly typed: v.LiteralSchema<true, undefined>;
|
407
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, never>;
|
408
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
409
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
410
|
+
}, undefined>, v.ObjectSchema<{
|
411
|
+
readonly success: v.LiteralSchema<false, undefined>;
|
412
|
+
readonly typed: v.BooleanSchema<undefined>;
|
413
|
+
readonly output: v.UnknownSchema;
|
414
|
+
readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
|
415
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
416
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
417
|
+
}, undefined>], undefined>, undefined>, undefined>, v.CustomSchema<[({
|
418
|
+
output: unknown;
|
419
|
+
success: false;
|
420
|
+
typed: boolean;
|
421
|
+
issues: [unknown, ...unknown[]];
|
422
|
+
claim_set_index: number | undefined;
|
423
|
+
credential_index: number;
|
424
|
+
} | {
|
425
|
+
output: {
|
426
|
+
claims: {
|
427
|
+
[x: string]: import("../u-dcql.js").Json;
|
428
|
+
};
|
429
|
+
} | {
|
430
|
+
claims: {
|
431
|
+
[x: string]: import("../u-dcql.js").Json;
|
432
|
+
};
|
433
|
+
vct: string;
|
434
|
+
} | {
|
435
|
+
docType: string;
|
436
|
+
namespaces: {
|
437
|
+
[x: string]: {
|
438
|
+
[x: string]: unknown;
|
439
|
+
};
|
440
|
+
};
|
441
|
+
};
|
442
|
+
success: true;
|
443
|
+
typed: true;
|
444
|
+
claim_set_index: number | undefined;
|
445
|
+
credential_index: number;
|
446
|
+
issues?: undefined;
|
447
|
+
} | undefined)[], ...({
|
448
|
+
output: unknown;
|
449
|
+
success: false;
|
450
|
+
typed: boolean;
|
451
|
+
issues: [unknown, ...unknown[]];
|
452
|
+
claim_set_index: number | undefined;
|
453
|
+
credential_index: number;
|
454
|
+
} | {
|
455
|
+
output: {
|
456
|
+
claims: {
|
457
|
+
[x: string]: import("../u-dcql.js").Json;
|
458
|
+
};
|
459
|
+
} | {
|
460
|
+
claims: {
|
461
|
+
[x: string]: import("../u-dcql.js").Json;
|
462
|
+
};
|
463
|
+
vct: string;
|
464
|
+
} | {
|
465
|
+
docType: string;
|
466
|
+
namespaces: {
|
467
|
+
[x: string]: {
|
468
|
+
[x: string]: unknown;
|
469
|
+
};
|
470
|
+
};
|
471
|
+
};
|
472
|
+
success: true;
|
473
|
+
typed: true;
|
474
|
+
claim_set_index: number | undefined;
|
475
|
+
credential_index: number;
|
476
|
+
issues?: undefined;
|
477
|
+
} | undefined)[][]], undefined>]>;
|
478
|
+
readonly success: v.LiteralSchema<false, undefined>;
|
479
|
+
readonly typed: v.BooleanSchema<undefined>;
|
480
|
+
readonly output: v.UnknownSchema;
|
481
|
+
readonly issues: v.SchemaWithPipe<[v.ArraySchema<v.UnknownSchema, undefined>, v.CustomSchema<[unknown, ...unknown[]], undefined>]>;
|
482
|
+
readonly credential_index: v.NumberSchema<undefined>;
|
483
|
+
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
484
|
+
}, undefined>], undefined>, undefined>;
|
485
|
+
readonly credential_sets: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
486
|
+
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>;
|
487
|
+
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.">]>;
|
488
|
+
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'.">]>;
|
489
|
+
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 | {
|
490
|
+
[x: string]: unknown;
|
491
|
+
} | undefined, "OPTIONAL. A string, number or object specifying the purpose of the query.">]>;
|
492
|
+
}, undefined>, undefined>, v.CustomSchema<[{
|
493
|
+
options: [string[], ...string[][]];
|
494
|
+
required: boolean;
|
495
|
+
matching_options: [string[], ...string[][]] | undefined;
|
496
|
+
purpose?: string | number | {
|
497
|
+
[x: string]: unknown;
|
498
|
+
} | undefined;
|
499
|
+
}, ...{
|
500
|
+
options: [string[], ...string[][]];
|
501
|
+
required: boolean;
|
502
|
+
matching_options: [string[], ...string[][]] | undefined;
|
503
|
+
purpose?: string | number | {
|
504
|
+
[x: string]: unknown;
|
505
|
+
} | undefined;
|
506
|
+
}[]], undefined>, v.DescriptionAction<[{
|
507
|
+
options: [string[], ...string[][]];
|
508
|
+
required: boolean;
|
509
|
+
matching_options: [string[], ...string[][]] | undefined;
|
510
|
+
purpose?: string | number | {
|
511
|
+
[x: string]: unknown;
|
512
|
+
} | undefined;
|
513
|
+
}, ...{
|
514
|
+
options: [string[], ...string[][]];
|
515
|
+
required: boolean;
|
516
|
+
matching_options: [string[], ...string[][]] | undefined;
|
517
|
+
purpose?: string | number | {
|
518
|
+
[x: string]: unknown;
|
519
|
+
} | undefined;
|
520
|
+
}[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, never>;
|
521
|
+
}, undefined>;
|
522
|
+
type Input = v.InferInput<typeof vModel>;
|
523
|
+
type Output = v.InferOutput<typeof vModel>;
|
524
|
+
type UnknownResult = (DcqlQueryResult & {
|
525
|
+
canBeSatisfied: false;
|
526
|
+
presentation_matches?: undefined;
|
527
|
+
}) | DcqlPresentationQuery;
|
528
|
+
const parse: (input: Input | DcqlQueryResult) => {
|
529
|
+
credentials: [{
|
530
|
+
id: string;
|
531
|
+
format: "mso_mdoc";
|
532
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
533
|
+
claims?: [{
|
534
|
+
namespace: string;
|
535
|
+
claim_name: string;
|
536
|
+
values?: (string | number | boolean)[] | undefined;
|
537
|
+
id?: string | undefined;
|
538
|
+
}, ...{
|
539
|
+
namespace: string;
|
540
|
+
claim_name: string;
|
541
|
+
values?: (string | number | boolean)[] | undefined;
|
542
|
+
id?: string | undefined;
|
543
|
+
}[]] | undefined;
|
544
|
+
meta?: {
|
545
|
+
doctype_value?: string | undefined;
|
546
|
+
} | undefined;
|
547
|
+
} | {
|
548
|
+
id: string;
|
549
|
+
format: "vc+sd-jwt";
|
550
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
551
|
+
claims?: [{
|
552
|
+
path: (string | number | null)[];
|
553
|
+
values?: (string | number | boolean)[] | undefined;
|
554
|
+
id?: string | undefined;
|
555
|
+
}, ...{
|
556
|
+
path: (string | number | null)[];
|
557
|
+
values?: (string | number | boolean)[] | undefined;
|
558
|
+
id?: string | undefined;
|
559
|
+
}[]] | undefined;
|
560
|
+
meta?: {
|
561
|
+
vct_values?: string[] | undefined;
|
562
|
+
} | undefined;
|
563
|
+
} | {
|
564
|
+
id: string;
|
565
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
566
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
567
|
+
claims?: [{
|
568
|
+
path: (string | number | null)[];
|
569
|
+
values?: (string | number | boolean)[] | undefined;
|
570
|
+
id?: string | undefined;
|
571
|
+
}, ...{
|
572
|
+
path: (string | number | null)[];
|
573
|
+
values?: (string | number | boolean)[] | undefined;
|
574
|
+
id?: string | undefined;
|
575
|
+
}[]] | undefined;
|
576
|
+
}, ...({
|
577
|
+
id: string;
|
578
|
+
format: "mso_mdoc";
|
579
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
580
|
+
claims?: [{
|
581
|
+
namespace: string;
|
582
|
+
claim_name: string;
|
583
|
+
values?: (string | number | boolean)[] | undefined;
|
584
|
+
id?: string | undefined;
|
585
|
+
}, ...{
|
586
|
+
namespace: string;
|
587
|
+
claim_name: string;
|
588
|
+
values?: (string | number | boolean)[] | undefined;
|
589
|
+
id?: string | undefined;
|
590
|
+
}[]] | undefined;
|
591
|
+
meta?: {
|
592
|
+
doctype_value?: string | undefined;
|
593
|
+
} | undefined;
|
594
|
+
} | {
|
595
|
+
id: string;
|
596
|
+
format: "vc+sd-jwt";
|
597
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
598
|
+
claims?: [{
|
599
|
+
path: (string | number | null)[];
|
600
|
+
values?: (string | number | boolean)[] | undefined;
|
601
|
+
id?: string | undefined;
|
602
|
+
}, ...{
|
603
|
+
path: (string | number | null)[];
|
604
|
+
values?: (string | number | boolean)[] | undefined;
|
605
|
+
id?: string | undefined;
|
606
|
+
}[]] | undefined;
|
607
|
+
meta?: {
|
608
|
+
vct_values?: string[] | undefined;
|
609
|
+
} | undefined;
|
610
|
+
} | {
|
611
|
+
id: string;
|
612
|
+
format: "jwt_vc_json" | "jwt_vc_json-ld";
|
613
|
+
claim_sets?: [string[], ...string[][]] | undefined;
|
614
|
+
claims?: [{
|
615
|
+
path: (string | number | null)[];
|
616
|
+
values?: (string | number | boolean)[] | undefined;
|
617
|
+
id?: string | undefined;
|
618
|
+
}, ...{
|
619
|
+
path: (string | number | null)[];
|
620
|
+
values?: (string | number | boolean)[] | undefined;
|
621
|
+
id?: string | undefined;
|
622
|
+
}[]] | undefined;
|
623
|
+
})[]];
|
624
|
+
credential_matches: {
|
625
|
+
[x: string]: {
|
626
|
+
output: {
|
627
|
+
claims: {
|
628
|
+
[x: string]: import("../u-dcql.js").Json;
|
629
|
+
};
|
630
|
+
} | {
|
631
|
+
claims: {
|
632
|
+
[x: string]: import("../u-dcql.js").Json;
|
633
|
+
};
|
634
|
+
vct: string;
|
635
|
+
} | {
|
636
|
+
docType: string;
|
637
|
+
namespaces: {
|
638
|
+
[x: string]: {
|
639
|
+
[x: string]: unknown;
|
640
|
+
};
|
641
|
+
};
|
642
|
+
};
|
643
|
+
success: true;
|
644
|
+
typed: true;
|
645
|
+
claim_set_index: number | undefined;
|
646
|
+
credential_index: number;
|
647
|
+
all: [({
|
648
|
+
output: unknown;
|
649
|
+
success: false;
|
650
|
+
typed: boolean;
|
651
|
+
issues: [unknown, ...unknown[]];
|
652
|
+
claim_set_index: number | undefined;
|
653
|
+
credential_index: number;
|
654
|
+
} | {
|
655
|
+
output: {
|
656
|
+
claims: {
|
657
|
+
[x: string]: import("../u-dcql.js").Json;
|
658
|
+
};
|
659
|
+
} | {
|
660
|
+
claims: {
|
661
|
+
[x: string]: import("../u-dcql.js").Json;
|
662
|
+
};
|
663
|
+
vct: string;
|
664
|
+
} | {
|
665
|
+
docType: string;
|
666
|
+
namespaces: {
|
667
|
+
[x: string]: {
|
668
|
+
[x: string]: unknown;
|
669
|
+
};
|
670
|
+
};
|
671
|
+
};
|
672
|
+
success: true;
|
673
|
+
typed: true;
|
674
|
+
claim_set_index: number | undefined;
|
675
|
+
credential_index: number;
|
676
|
+
issues?: undefined;
|
677
|
+
} | undefined)[], ...({
|
678
|
+
output: unknown;
|
679
|
+
success: false;
|
680
|
+
typed: boolean;
|
681
|
+
issues: [unknown, ...unknown[]];
|
682
|
+
claim_set_index: number | undefined;
|
683
|
+
credential_index: number;
|
684
|
+
} | {
|
685
|
+
output: {
|
686
|
+
claims: {
|
687
|
+
[x: string]: import("../u-dcql.js").Json;
|
688
|
+
};
|
689
|
+
} | {
|
690
|
+
claims: {
|
691
|
+
[x: string]: import("../u-dcql.js").Json;
|
692
|
+
};
|
693
|
+
vct: string;
|
694
|
+
} | {
|
695
|
+
docType: string;
|
696
|
+
namespaces: {
|
697
|
+
[x: string]: {
|
698
|
+
[x: string]: unknown;
|
699
|
+
};
|
700
|
+
};
|
701
|
+
};
|
702
|
+
success: true;
|
703
|
+
typed: true;
|
704
|
+
claim_set_index: number | undefined;
|
705
|
+
credential_index: number;
|
706
|
+
issues?: undefined;
|
707
|
+
} | undefined)[][]];
|
708
|
+
issues?: undefined;
|
709
|
+
} | {
|
710
|
+
output: unknown;
|
711
|
+
success: false;
|
712
|
+
typed: boolean;
|
713
|
+
issues: [unknown, ...unknown[]];
|
714
|
+
claim_set_index: number | undefined;
|
715
|
+
credential_index: number;
|
716
|
+
all: [({
|
717
|
+
output: unknown;
|
718
|
+
success: false;
|
719
|
+
typed: boolean;
|
720
|
+
issues: [unknown, ...unknown[]];
|
721
|
+
claim_set_index: number | undefined;
|
722
|
+
credential_index: number;
|
723
|
+
} | {
|
724
|
+
output: {
|
725
|
+
claims: {
|
726
|
+
[x: string]: import("../u-dcql.js").Json;
|
727
|
+
};
|
728
|
+
} | {
|
729
|
+
claims: {
|
730
|
+
[x: string]: import("../u-dcql.js").Json;
|
731
|
+
};
|
732
|
+
vct: string;
|
733
|
+
} | {
|
734
|
+
docType: string;
|
735
|
+
namespaces: {
|
736
|
+
[x: string]: {
|
737
|
+
[x: string]: unknown;
|
738
|
+
};
|
739
|
+
};
|
740
|
+
};
|
741
|
+
success: true;
|
742
|
+
typed: true;
|
743
|
+
claim_set_index: number | undefined;
|
744
|
+
credential_index: number;
|
745
|
+
issues?: undefined;
|
746
|
+
} | undefined)[], ...({
|
747
|
+
output: unknown;
|
748
|
+
success: false;
|
749
|
+
typed: boolean;
|
750
|
+
issues: [unknown, ...unknown[]];
|
751
|
+
claim_set_index: number | undefined;
|
752
|
+
credential_index: number;
|
753
|
+
} | {
|
754
|
+
output: {
|
755
|
+
claims: {
|
756
|
+
[x: string]: import("../u-dcql.js").Json;
|
757
|
+
};
|
758
|
+
} | {
|
759
|
+
claims: {
|
760
|
+
[x: string]: import("../u-dcql.js").Json;
|
761
|
+
};
|
762
|
+
vct: string;
|
763
|
+
} | {
|
764
|
+
docType: string;
|
765
|
+
namespaces: {
|
766
|
+
[x: string]: {
|
767
|
+
[x: string]: unknown;
|
768
|
+
};
|
769
|
+
};
|
770
|
+
};
|
771
|
+
success: true;
|
772
|
+
typed: true;
|
773
|
+
claim_set_index: number | undefined;
|
774
|
+
credential_index: number;
|
775
|
+
issues?: undefined;
|
776
|
+
} | undefined)[][]];
|
777
|
+
};
|
778
|
+
};
|
779
|
+
canBeSatisfied: true;
|
780
|
+
presentation_matches: {
|
781
|
+
[x: string]: {
|
782
|
+
output: {
|
783
|
+
claims: {
|
784
|
+
[x: string]: import("../u-dcql.js").Json;
|
785
|
+
};
|
786
|
+
} | {
|
787
|
+
claims: {
|
788
|
+
[x: string]: import("../u-dcql.js").Json;
|
789
|
+
};
|
790
|
+
vct: string;
|
791
|
+
} | {
|
792
|
+
docType: string;
|
793
|
+
namespaces: {
|
794
|
+
[x: string]: {
|
795
|
+
[x: string]: unknown;
|
796
|
+
};
|
797
|
+
};
|
798
|
+
};
|
799
|
+
success: true;
|
800
|
+
typed: true;
|
801
|
+
claim_set_index: number | undefined;
|
802
|
+
presentation_index: number;
|
803
|
+
};
|
804
|
+
};
|
805
|
+
credential_sets?: [{
|
806
|
+
options: [string[], ...string[][]];
|
807
|
+
required: boolean;
|
808
|
+
matching_options: [string[], ...string[][]] | undefined;
|
809
|
+
purpose?: string | number | {
|
810
|
+
[x: string]: unknown;
|
811
|
+
} | undefined;
|
812
|
+
}, ...{
|
813
|
+
options: [string[], ...string[][]];
|
814
|
+
required: boolean;
|
815
|
+
matching_options: [string[], ...string[][]] | undefined;
|
816
|
+
purpose?: string | number | {
|
817
|
+
[x: string]: unknown;
|
818
|
+
} | undefined;
|
819
|
+
}[]] | undefined;
|
820
|
+
};
|
821
|
+
/**
|
822
|
+
* Query if the presentation record can be satisfied by the provided presentations
|
823
|
+
* considering the dcql query
|
824
|
+
*
|
825
|
+
* @param dcqlQuery
|
826
|
+
* @param presentations
|
827
|
+
*/
|
828
|
+
const query: (presentations: DcqlPresentationRepresentation[], ctx: {
|
829
|
+
dcqlQuery: DcqlQuery;
|
830
|
+
}) => DcqlPresentationQuery.UnknownResult;
|
831
|
+
const validate: (dcqlQueryResult: DcqlPresentationQuery.UnknownResult) => DcqlPresentationQuery;
|
832
|
+
const fromDcqlQueryResult: (dcqlQueryResult: DcqlQueryResult) => DcqlPresentationQuery;
|
833
|
+
}
|
834
|
+
export type DcqlPresentationQuery = DcqlPresentationQuery.Output;
|
835
|
+
//# sourceMappingURL=m-dcql-presentation-query.d.ts.map
|