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
@@ -3,7 +3,7 @@ export declare namespace DcqlQueryResult {
|
|
3
3
|
const vCredentialQueryResult: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
|
4
4
|
readonly success: v.LiteralSchema<true, undefined>;
|
5
5
|
readonly typed: v.LiteralSchema<true, undefined>;
|
6
|
-
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>,
|
6
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
|
7
7
|
readonly input_credential_index: v.NumberSchema<undefined>;
|
8
8
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
9
9
|
readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
|
@@ -11,7 +11,7 @@ export declare namespace DcqlQueryResult {
|
|
11
11
|
readonly doctype: v.StringSchema<undefined>;
|
12
12
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
13
13
|
}, undefined>, v.ObjectSchema<{
|
14
|
-
readonly credential_format: v.
|
14
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
15
15
|
readonly vct: v.StringSchema<undefined>;
|
16
16
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
17
17
|
}, undefined>, v.ObjectSchema<{
|
@@ -35,7 +35,7 @@ export declare namespace DcqlQueryResult {
|
|
35
35
|
};
|
36
36
|
};
|
37
37
|
} | {
|
38
|
-
credential_format: "vc+sd-jwt";
|
38
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
39
39
|
vct: string;
|
40
40
|
claims: {
|
41
41
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -53,9 +53,9 @@ export declare namespace DcqlQueryResult {
|
|
53
53
|
issues?: undefined;
|
54
54
|
} | {
|
55
55
|
output: unknown;
|
56
|
+
issues: [unknown, ...unknown[]];
|
56
57
|
success: false;
|
57
58
|
typed: boolean;
|
58
|
-
issues: [unknown, ...unknown[]];
|
59
59
|
claim_set_index: number | undefined;
|
60
60
|
input_credential_index: number;
|
61
61
|
} | undefined)[], ...({
|
@@ -68,7 +68,7 @@ export declare namespace DcqlQueryResult {
|
|
68
68
|
};
|
69
69
|
};
|
70
70
|
} | {
|
71
|
-
credential_format: "vc+sd-jwt";
|
71
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
72
72
|
vct: string;
|
73
73
|
claims: {
|
74
74
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -86,9 +86,9 @@ export declare namespace DcqlQueryResult {
|
|
86
86
|
issues?: undefined;
|
87
87
|
} | {
|
88
88
|
output: unknown;
|
89
|
+
issues: [unknown, ...unknown[]];
|
89
90
|
success: false;
|
90
91
|
typed: boolean;
|
91
|
-
issues: [unknown, ...unknown[]];
|
92
92
|
claim_set_index: number | undefined;
|
93
93
|
input_credential_index: number;
|
94
94
|
} | undefined)[][]], undefined>]>;
|
@@ -97,10 +97,10 @@ export declare namespace DcqlQueryResult {
|
|
97
97
|
readonly credentials: v.SchemaWithPipe<[v.ArraySchema<v.VariantSchema<"format", [v.ObjectSchema<{
|
98
98
|
readonly format: v.SchemaWithPipe<[v.LiteralSchema<"mso_mdoc", undefined>, v.DescriptionAction<"mso_mdoc", "REQUIRED. A string that specifies the format of the requested Verifiable Credential.">]>;
|
99
99
|
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
100
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
100
|
+
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
|
101
101
|
readonly namespace: v.SchemaWithPipe<[v.StringSchema<undefined>, v.DescriptionAction<string, "A string that specifies the namespace of the data element within the mdoc, e.g., org.iso.18013.5.1.">]>;
|
102
102
|
readonly claim_name: v.SchemaWithPipe<[v.StringSchema<undefined>, v.DescriptionAction<string, "A string that specifies the data element identifier of the data element within the provided namespace in the mdoc, e.g., first_name.">]>;
|
103
|
-
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>,
|
103
|
+
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
|
104
104
|
}, undefined>, undefined>, v.CustomSchema<[{
|
105
105
|
namespace: string;
|
106
106
|
claim_name: string;
|
@@ -111,7 +111,7 @@ export declare namespace DcqlQueryResult {
|
|
111
111
|
claim_name: string;
|
112
112
|
values?: (string | number | boolean)[] | undefined;
|
113
113
|
id?: string | undefined;
|
114
|
-
}[]], undefined>]>,
|
114
|
+
}[]], undefined>]>, undefined>, v.DescriptionAction<[{
|
115
115
|
namespace: string;
|
116
116
|
claim_name: string;
|
117
117
|
values?: (string | number | boolean)[] | undefined;
|
@@ -123,18 +123,18 @@ export declare namespace DcqlQueryResult {
|
|
123
123
|
id?: string | undefined;
|
124
124
|
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
125
125
|
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.ObjectSchema<{
|
126
|
-
readonly doctype_value: v.SchemaWithPipe<[v.OptionalSchema<v.StringSchema<undefined>,
|
127
|
-
}, undefined>,
|
126
|
+
readonly doctype_value: v.SchemaWithPipe<[v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "OPTIONAL. String that specifies an allowed value for the doctype of the requested Verifiable Credential.">]>;
|
127
|
+
}, undefined>, undefined>, v.DescriptionAction<{
|
128
128
|
doctype_value?: string | undefined;
|
129
129
|
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
130
130
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
|
131
|
-
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>,
|
131
|
+
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
|
132
132
|
}, undefined>, v.ObjectSchema<{
|
133
|
-
readonly format: v.SchemaWithPipe<[v.
|
133
|
+
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.">]>;
|
134
134
|
readonly claims: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
135
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
135
|
+
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
|
136
136
|
readonly path: v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, undefined>, v.DescriptionAction<(string | number | null)[], "A non-empty array representing a claims path pointer that specifies the path to a claim within the Verifiable Credential.">]>;
|
137
|
-
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>,
|
137
|
+
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
|
138
138
|
}, undefined>, undefined>, v.CustomSchema<[{
|
139
139
|
path: (string | number | null)[];
|
140
140
|
values?: (string | number | boolean)[] | undefined;
|
@@ -143,7 +143,7 @@ export declare namespace DcqlQueryResult {
|
|
143
143
|
path: (string | number | null)[];
|
144
144
|
values?: (string | number | boolean)[] | undefined;
|
145
145
|
id?: string | undefined;
|
146
|
-
}[]], undefined>]>,
|
146
|
+
}[]], undefined>]>, undefined>, v.DescriptionAction<[{
|
147
147
|
path: (string | number | null)[];
|
148
148
|
values?: (string | number | boolean)[] | undefined;
|
149
149
|
id?: string | undefined;
|
@@ -153,20 +153,20 @@ export declare namespace DcqlQueryResult {
|
|
153
153
|
id?: string | undefined;
|
154
154
|
}[]] | undefined, "OPTIONAL. A non-empty array of objects as that specifies claims in the requested Credential.">]>;
|
155
155
|
readonly meta: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ObjectSchema<{
|
156
|
-
readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>,
|
156
|
+
readonly vct_values: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
157
157
|
}, undefined>, v.DescriptionAction<{
|
158
158
|
vct_values?: string[] | undefined;
|
159
|
-
}, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>,
|
159
|
+
}, "OPTIONAL. An array of strings that specifies allowed values for the type of the requested Verifiable Credential.">]>, undefined>, v.DescriptionAction<{
|
160
160
|
vct_values?: string[] | undefined;
|
161
161
|
} | undefined, "OPTIONAL. An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential.">]>;
|
162
162
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
|
163
|
-
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>,
|
163
|
+
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
|
164
164
|
}, undefined>, v.ObjectSchema<{
|
165
165
|
readonly format: v.PicklistSchema<["jwt_vc_json", "jwt_vc_json-ld"], undefined>;
|
166
166
|
readonly claims: v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ObjectSchema<{
|
167
|
-
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>,
|
167
|
+
readonly id: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | undefined, "A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.">]>;
|
168
168
|
readonly path: v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.NullSchema<undefined>], undefined>, undefined>, v.DescriptionAction<(string | number | null)[], "A non-empty array representing a claims path pointer that specifies the path to a claim within the Verifiable Credential.">]>;
|
169
|
-
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>,
|
169
|
+
readonly values: v.SchemaWithPipe<[v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, v.BooleanSchema<undefined>], undefined>, undefined>, undefined>, v.DescriptionAction<(string | number | boolean)[] | undefined, "An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array.">]>;
|
170
170
|
}, undefined>, undefined>, v.CustomSchema<[{
|
171
171
|
path: (string | number | null)[];
|
172
172
|
values?: (string | number | boolean)[] | undefined;
|
@@ -175,9 +175,9 @@ export declare namespace DcqlQueryResult {
|
|
175
175
|
path: (string | number | null)[];
|
176
176
|
values?: (string | number | boolean)[] | undefined;
|
177
177
|
id?: string | undefined;
|
178
|
-
}[]], undefined>]>,
|
178
|
+
}[]], undefined>]>, undefined>;
|
179
179
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.DescriptionAction<string, "REQUIRED. A string identifying the Credential in the response and, if provided, the constraints in 'credential_sets'.">]>;
|
180
|
-
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>,
|
180
|
+
readonly claim_sets: v.SchemaWithPipe<[v.OptionalSchema<v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>, undefined>, v.DescriptionAction<[string[], ...string[][]] | undefined, "OPTIONAL. A non-empty array containing arrays of identifiers for elements in 'claims' that specifies which combinations of 'claims' for the Credential are requested.">]>;
|
181
181
|
}, undefined>], undefined>, undefined>, v.CustomSchema<[{
|
182
182
|
id: string;
|
183
183
|
format: "mso_mdoc";
|
@@ -198,7 +198,7 @@ export declare namespace DcqlQueryResult {
|
|
198
198
|
} | undefined;
|
199
199
|
} | {
|
200
200
|
id: string;
|
201
|
-
format: "vc+sd-jwt";
|
201
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
202
202
|
claims?: [{
|
203
203
|
path: (string | number | null)[];
|
204
204
|
values?: (string | number | boolean)[] | undefined;
|
@@ -245,7 +245,7 @@ export declare namespace DcqlQueryResult {
|
|
245
245
|
} | undefined;
|
246
246
|
} | {
|
247
247
|
id: string;
|
248
|
-
format: "vc+sd-jwt";
|
248
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
249
249
|
claims?: [{
|
250
250
|
path: (string | number | null)[];
|
251
251
|
values?: (string | number | boolean)[] | undefined;
|
@@ -292,7 +292,7 @@ export declare namespace DcqlQueryResult {
|
|
292
292
|
} | undefined;
|
293
293
|
} | {
|
294
294
|
id: string;
|
295
|
-
format: "vc+sd-jwt";
|
295
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
296
296
|
claims?: [{
|
297
297
|
path: (string | number | null)[];
|
298
298
|
values?: (string | number | boolean)[] | undefined;
|
@@ -339,7 +339,7 @@ export declare namespace DcqlQueryResult {
|
|
339
339
|
} | undefined;
|
340
340
|
} | {
|
341
341
|
id: string;
|
342
|
-
format: "vc+sd-jwt";
|
342
|
+
format: "vc+sd-jwt" | "dc+sd-jwt";
|
343
343
|
claims?: [{
|
344
344
|
path: (string | number | null)[];
|
345
345
|
values?: (string | number | boolean)[] | undefined;
|
@@ -371,7 +371,7 @@ export declare namespace DcqlQueryResult {
|
|
371
371
|
readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
|
372
372
|
readonly success: v.LiteralSchema<true, undefined>;
|
373
373
|
readonly typed: v.LiteralSchema<true, undefined>;
|
374
|
-
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>,
|
374
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
|
375
375
|
readonly input_credential_index: v.NumberSchema<undefined>;
|
376
376
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
377
377
|
readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
|
@@ -379,7 +379,7 @@ export declare namespace DcqlQueryResult {
|
|
379
379
|
readonly doctype: v.StringSchema<undefined>;
|
380
380
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
381
381
|
}, undefined>, v.ObjectSchema<{
|
382
|
-
readonly credential_format: v.
|
382
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
383
383
|
readonly vct: v.StringSchema<undefined>;
|
384
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
385
|
}, undefined>, v.ObjectSchema<{
|
@@ -403,7 +403,7 @@ export declare namespace DcqlQueryResult {
|
|
403
403
|
};
|
404
404
|
};
|
405
405
|
} | {
|
406
|
-
credential_format: "vc+sd-jwt";
|
406
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
407
407
|
vct: string;
|
408
408
|
claims: {
|
409
409
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -421,9 +421,9 @@ export declare namespace DcqlQueryResult {
|
|
421
421
|
issues?: undefined;
|
422
422
|
} | {
|
423
423
|
output: unknown;
|
424
|
+
issues: [unknown, ...unknown[]];
|
424
425
|
success: false;
|
425
426
|
typed: boolean;
|
426
|
-
issues: [unknown, ...unknown[]];
|
427
427
|
claim_set_index: number | undefined;
|
428
428
|
input_credential_index: number;
|
429
429
|
} | undefined, ...({
|
@@ -436,7 +436,7 @@ export declare namespace DcqlQueryResult {
|
|
436
436
|
};
|
437
437
|
};
|
438
438
|
} | {
|
439
|
-
credential_format: "vc+sd-jwt";
|
439
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
440
440
|
vct: string;
|
441
441
|
claims: {
|
442
442
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -454,9 +454,9 @@ export declare namespace DcqlQueryResult {
|
|
454
454
|
issues?: undefined;
|
455
455
|
} | {
|
456
456
|
output: unknown;
|
457
|
+
issues: [unknown, ...unknown[]];
|
457
458
|
success: false;
|
458
459
|
typed: boolean;
|
459
|
-
issues: [unknown, ...unknown[]];
|
460
460
|
claim_set_index: number | undefined;
|
461
461
|
input_credential_index: number;
|
462
462
|
} | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
|
@@ -469,7 +469,7 @@ export declare namespace DcqlQueryResult {
|
|
469
469
|
};
|
470
470
|
};
|
471
471
|
} | {
|
472
|
-
credential_format: "vc+sd-jwt";
|
472
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
473
473
|
vct: string;
|
474
474
|
claims: {
|
475
475
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -487,9 +487,9 @@ export declare namespace DcqlQueryResult {
|
|
487
487
|
issues?: undefined;
|
488
488
|
} | {
|
489
489
|
output: unknown;
|
490
|
+
issues: [unknown, ...unknown[]];
|
490
491
|
success: false;
|
491
492
|
typed: boolean;
|
492
|
-
issues: [unknown, ...unknown[]];
|
493
493
|
claim_set_index: number | undefined;
|
494
494
|
input_credential_index: number;
|
495
495
|
} | undefined, ...({
|
@@ -502,7 +502,7 @@ export declare namespace DcqlQueryResult {
|
|
502
502
|
};
|
503
503
|
};
|
504
504
|
} | {
|
505
|
-
credential_format: "vc+sd-jwt";
|
505
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
506
506
|
vct: string;
|
507
507
|
claims: {
|
508
508
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -520,9 +520,9 @@ export declare namespace DcqlQueryResult {
|
|
520
520
|
issues?: undefined;
|
521
521
|
} | {
|
522
522
|
output: unknown;
|
523
|
+
issues: [unknown, ...unknown[]];
|
523
524
|
success: false;
|
524
525
|
typed: boolean;
|
525
|
-
issues: [unknown, ...unknown[]];
|
526
526
|
claim_set_index: number | undefined;
|
527
527
|
input_credential_index: number;
|
528
528
|
} | undefined)[]], ...[{
|
@@ -535,7 +535,7 @@ export declare namespace DcqlQueryResult {
|
|
535
535
|
};
|
536
536
|
};
|
537
537
|
} | {
|
538
|
-
credential_format: "vc+sd-jwt";
|
538
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
539
539
|
vct: string;
|
540
540
|
claims: {
|
541
541
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -553,9 +553,9 @@ export declare namespace DcqlQueryResult {
|
|
553
553
|
issues?: undefined;
|
554
554
|
} | {
|
555
555
|
output: unknown;
|
556
|
+
issues: [unknown, ...unknown[]];
|
556
557
|
success: false;
|
557
558
|
typed: boolean;
|
558
|
-
issues: [unknown, ...unknown[]];
|
559
559
|
claim_set_index: number | undefined;
|
560
560
|
input_credential_index: number;
|
561
561
|
} | undefined, ...({
|
@@ -568,7 +568,7 @@ export declare namespace DcqlQueryResult {
|
|
568
568
|
};
|
569
569
|
};
|
570
570
|
} | {
|
571
|
-
credential_format: "vc+sd-jwt";
|
571
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
572
572
|
vct: string;
|
573
573
|
claims: {
|
574
574
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -586,15 +586,15 @@ export declare namespace DcqlQueryResult {
|
|
586
586
|
issues?: undefined;
|
587
587
|
} | {
|
588
588
|
output: unknown;
|
589
|
+
issues: [unknown, ...unknown[]];
|
589
590
|
success: false;
|
590
591
|
typed: boolean;
|
591
|
-
issues: [unknown, ...unknown[]];
|
592
592
|
claim_set_index: number | undefined;
|
593
593
|
input_credential_index: number;
|
594
594
|
} | undefined)[]][]], undefined>]>;
|
595
595
|
readonly success: v.LiteralSchema<true, undefined>;
|
596
596
|
readonly typed: v.LiteralSchema<true, undefined>;
|
597
|
-
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>,
|
597
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
|
598
598
|
readonly input_credential_index: v.NumberSchema<undefined>;
|
599
599
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
600
600
|
readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
|
@@ -602,7 +602,7 @@ export declare namespace DcqlQueryResult {
|
|
602
602
|
readonly doctype: v.StringSchema<undefined>;
|
603
603
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
604
604
|
}, undefined>, v.ObjectSchema<{
|
605
|
-
readonly credential_format: v.
|
605
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
606
606
|
readonly vct: v.StringSchema<undefined>;
|
607
607
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
608
608
|
}, undefined>, v.ObjectSchema<{
|
@@ -614,7 +614,7 @@ export declare namespace DcqlQueryResult {
|
|
614
614
|
readonly all: v.SchemaWithPipe<[v.ArraySchema<v.SchemaWithPipe<[v.ArraySchema<v.UnionSchema<[v.UndefinedSchema<undefined>, v.ObjectSchema<{
|
615
615
|
readonly success: v.LiteralSchema<true, undefined>;
|
616
616
|
readonly typed: v.LiteralSchema<true, undefined>;
|
617
|
-
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>,
|
617
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
|
618
618
|
readonly input_credential_index: v.NumberSchema<undefined>;
|
619
619
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
620
620
|
readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
|
@@ -622,7 +622,7 @@ export declare namespace DcqlQueryResult {
|
|
622
622
|
readonly doctype: v.StringSchema<undefined>;
|
623
623
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
624
624
|
}, undefined>, v.ObjectSchema<{
|
625
|
-
readonly credential_format: v.
|
625
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
626
626
|
readonly vct: v.StringSchema<undefined>;
|
627
627
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("../u-dcql.js").Json, import("../u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
628
628
|
}, undefined>, v.ObjectSchema<{
|
@@ -646,7 +646,7 @@ export declare namespace DcqlQueryResult {
|
|
646
646
|
};
|
647
647
|
};
|
648
648
|
} | {
|
649
|
-
credential_format: "vc+sd-jwt";
|
649
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
650
650
|
vct: string;
|
651
651
|
claims: {
|
652
652
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -664,9 +664,9 @@ export declare namespace DcqlQueryResult {
|
|
664
664
|
issues?: undefined;
|
665
665
|
} | {
|
666
666
|
output: unknown;
|
667
|
+
issues: [unknown, ...unknown[]];
|
667
668
|
success: false;
|
668
669
|
typed: boolean;
|
669
|
-
issues: [unknown, ...unknown[]];
|
670
670
|
claim_set_index: number | undefined;
|
671
671
|
input_credential_index: number;
|
672
672
|
} | undefined, ...({
|
@@ -679,7 +679,7 @@ export declare namespace DcqlQueryResult {
|
|
679
679
|
};
|
680
680
|
};
|
681
681
|
} | {
|
682
|
-
credential_format: "vc+sd-jwt";
|
682
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
683
683
|
vct: string;
|
684
684
|
claims: {
|
685
685
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -697,9 +697,9 @@ export declare namespace DcqlQueryResult {
|
|
697
697
|
issues?: undefined;
|
698
698
|
} | {
|
699
699
|
output: unknown;
|
700
|
+
issues: [unknown, ...unknown[]];
|
700
701
|
success: false;
|
701
702
|
typed: boolean;
|
702
|
-
issues: [unknown, ...unknown[]];
|
703
703
|
claim_set_index: number | undefined;
|
704
704
|
input_credential_index: number;
|
705
705
|
} | undefined)[]], undefined>]>, undefined>, v.CustomSchema<[[{
|
@@ -712,7 +712,7 @@ export declare namespace DcqlQueryResult {
|
|
712
712
|
};
|
713
713
|
};
|
714
714
|
} | {
|
715
|
-
credential_format: "vc+sd-jwt";
|
715
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
716
716
|
vct: string;
|
717
717
|
claims: {
|
718
718
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -730,9 +730,9 @@ export declare namespace DcqlQueryResult {
|
|
730
730
|
issues?: undefined;
|
731
731
|
} | {
|
732
732
|
output: unknown;
|
733
|
+
issues: [unknown, ...unknown[]];
|
733
734
|
success: false;
|
734
735
|
typed: boolean;
|
735
|
-
issues: [unknown, ...unknown[]];
|
736
736
|
claim_set_index: number | undefined;
|
737
737
|
input_credential_index: number;
|
738
738
|
} | undefined, ...({
|
@@ -745,7 +745,7 @@ export declare namespace DcqlQueryResult {
|
|
745
745
|
};
|
746
746
|
};
|
747
747
|
} | {
|
748
|
-
credential_format: "vc+sd-jwt";
|
748
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
749
749
|
vct: string;
|
750
750
|
claims: {
|
751
751
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -763,9 +763,9 @@ export declare namespace DcqlQueryResult {
|
|
763
763
|
issues?: undefined;
|
764
764
|
} | {
|
765
765
|
output: unknown;
|
766
|
+
issues: [unknown, ...unknown[]];
|
766
767
|
success: false;
|
767
768
|
typed: boolean;
|
768
|
-
issues: [unknown, ...unknown[]];
|
769
769
|
claim_set_index: number | undefined;
|
770
770
|
input_credential_index: number;
|
771
771
|
} | undefined)[]], ...[{
|
@@ -778,7 +778,7 @@ export declare namespace DcqlQueryResult {
|
|
778
778
|
};
|
779
779
|
};
|
780
780
|
} | {
|
781
|
-
credential_format: "vc+sd-jwt";
|
781
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
782
782
|
vct: string;
|
783
783
|
claims: {
|
784
784
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -796,9 +796,9 @@ export declare namespace DcqlQueryResult {
|
|
796
796
|
issues?: undefined;
|
797
797
|
} | {
|
798
798
|
output: unknown;
|
799
|
+
issues: [unknown, ...unknown[]];
|
799
800
|
success: false;
|
800
801
|
typed: boolean;
|
801
|
-
issues: [unknown, ...unknown[]];
|
802
802
|
claim_set_index: number | undefined;
|
803
803
|
input_credential_index: number;
|
804
804
|
} | undefined, ...({
|
@@ -811,7 +811,7 @@ export declare namespace DcqlQueryResult {
|
|
811
811
|
};
|
812
812
|
};
|
813
813
|
} | {
|
814
|
-
credential_format: "vc+sd-jwt";
|
814
|
+
credential_format: "vc+sd-jwt" | "dc+sd-jwt";
|
815
815
|
vct: string;
|
816
816
|
claims: {
|
817
817
|
[x: string]: import("../u-dcql.js").Json;
|
@@ -829,9 +829,9 @@ export declare namespace DcqlQueryResult {
|
|
829
829
|
issues?: undefined;
|
830
830
|
} | {
|
831
831
|
output: unknown;
|
832
|
+
issues: [unknown, ...unknown[]];
|
832
833
|
success: false;
|
833
834
|
typed: boolean;
|
834
|
-
issues: [unknown, ...unknown[]];
|
835
835
|
claim_set_index: number | undefined;
|
836
836
|
input_credential_index: number;
|
837
837
|
} | undefined)[]][]], undefined>]>;
|
@@ -840,7 +840,7 @@ export declare namespace DcqlQueryResult {
|
|
840
840
|
readonly matching_options: v.UnionSchema<[v.UndefinedSchema<undefined>, v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>]>], undefined>;
|
841
841
|
readonly options: v.SchemaWithPipe<[v.ArraySchema<v.ArraySchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>, v.CustomSchema<[string[], ...string[][]], undefined>, v.DescriptionAction<[string[], ...string[][]], "REQUIRED. A non-empty array, where each value in the array is a list of Credential Query identifiers representing one set of Credentials that satisfies the use case.">]>;
|
842
842
|
readonly required: v.SchemaWithPipe<[v.OptionalSchema<v.BooleanSchema<undefined>, true>, v.DescriptionAction<boolean, "OPTIONAL. Boolean which indicates whether this set of Credentials is required to satisfy the particular use case at the Verifier. If omitted, the default value is 'true'.">]>;
|
843
|
-
readonly purpose: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>], undefined>,
|
843
|
+
readonly purpose: v.SchemaWithPipe<[v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>], undefined>, undefined>, v.DescriptionAction<string | number | {
|
844
844
|
[x: string]: unknown;
|
845
845
|
} | undefined, "OPTIONAL. A string, number or object specifying the purpose of the query.">]>;
|
846
846
|
}, undefined>, undefined>, v.CustomSchema<[{
|
@@ -871,7 +871,7 @@ export declare namespace DcqlQueryResult {
|
|
871
871
|
purpose?: string | number | {
|
872
872
|
[x: string]: unknown;
|
873
873
|
} | undefined;
|
874
|
-
}[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>,
|
874
|
+
}[]], "OPTIONAL. A non-empty array of credential set queries that specifies additional constraints on which of the requested Verifiable Credentials to return.">]>, undefined>;
|
875
875
|
readonly canBeSatisfied: v.BooleanSchema<undefined>;
|
876
876
|
}, undefined>;
|
877
877
|
type Input = v.InferInput<typeof vModel>;
|
@@ -19,12 +19,12 @@ export type DcqlMdocCredential = DcqlMdocCredential.Model['Output'];
|
|
19
19
|
export declare namespace DcqlSdJwtVcCredential {
|
20
20
|
const vClaims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("./u-dcql.js").Json, import("./u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
21
21
|
const vModel: 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>;
|
26
26
|
const model: import("./u-model").Model<v.ObjectSchema<{
|
27
|
-
readonly credential_format: v.
|
27
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
28
28
|
readonly vct: v.StringSchema<undefined>;
|
29
29
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("./u-dcql.js").Json, import("./u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
30
30
|
}, undefined>>;
|
@@ -52,7 +52,7 @@ export declare namespace DcqlCredential {
|
|
52
52
|
readonly doctype: v.StringSchema<undefined>;
|
53
53
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
54
54
|
}, undefined>, v.ObjectSchema<{
|
55
|
-
readonly credential_format: v.
|
55
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
56
56
|
readonly vct: v.StringSchema<undefined>;
|
57
57
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("./u-dcql.js").Json, import("./u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
58
58
|
}, undefined>, v.ObjectSchema<{
|
@@ -62,7 +62,7 @@ export declare namespace DcqlCredential {
|
|
62
62
|
const vParseSuccess: v.ObjectSchema<{
|
63
63
|
readonly success: v.LiteralSchema<true, undefined>;
|
64
64
|
readonly typed: v.LiteralSchema<true, undefined>;
|
65
|
-
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>,
|
65
|
+
readonly issues: v.OptionalSchema<v.UndefinedSchema<undefined>, undefined>;
|
66
66
|
readonly input_credential_index: v.NumberSchema<undefined>;
|
67
67
|
readonly claim_set_index: v.UnionSchema<[v.NumberSchema<undefined>, v.UndefinedSchema<undefined>], undefined>;
|
68
68
|
readonly output: v.VariantSchema<"credential_format", [v.ObjectSchema<{
|
@@ -70,7 +70,7 @@ export declare namespace DcqlCredential {
|
|
70
70
|
readonly doctype: v.StringSchema<undefined>;
|
71
71
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
72
72
|
}, undefined>, v.ObjectSchema<{
|
73
|
-
readonly credential_format: v.
|
73
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
74
74
|
readonly vct: v.StringSchema<undefined>;
|
75
75
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("./u-dcql.js").Json, import("./u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
76
76
|
}, undefined>, v.ObjectSchema<{
|
@@ -91,7 +91,7 @@ export declare namespace DcqlCredential {
|
|
91
91
|
readonly doctype: v.StringSchema<undefined>;
|
92
92
|
readonly namespaces: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
93
93
|
}, undefined>, v.ObjectSchema<{
|
94
|
-
readonly credential_format: v.
|
94
|
+
readonly credential_format: v.PicklistSchema<["vc+sd-jwt", "dc+sd-jwt"], undefined>;
|
95
95
|
readonly vct: v.StringSchema<undefined>;
|
96
96
|
readonly claims: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<import("./u-dcql.js").Json, import("./u-dcql.js").Json, v.BaseIssue<unknown>>, undefined>;
|
97
97
|
}, undefined>, v.ObjectSchema<{
|
@@ -41,7 +41,7 @@ var DcqlSdJwtVcCredential;
|
|
41
41
|
(function (DcqlSdJwtVcCredential) {
|
42
42
|
DcqlSdJwtVcCredential.vClaims = u_dcql_js_1.vJsonRecord;
|
43
43
|
DcqlSdJwtVcCredential.vModel = v.object({
|
44
|
-
credential_format: v.
|
44
|
+
credential_format: v.picklist(['vc+sd-jwt', 'dc+sd-jwt']),
|
45
45
|
vct: v.string(),
|
46
46
|
claims: DcqlSdJwtVcCredential.vClaims,
|
47
47
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"u-dcql-credential.js","sourceRoot":"","sources":["../../src/u-dcql-credential.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA6B;AAC7B,2CAA0D;AAE1D,6CAAqC;AAErC,IAAiB,kBAAkB,CAclC;AAdD,WAAiB,kBAAkB;IACpB,8BAAW,GAAG,CAAC,CAAC,MAAM,CACjC,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAClC,CAAC;IACW,yBAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QAC7B,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;QACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,UAAU,EAAE,mBAAA,WAAW;KACxB,CAAC,CAAC;IAEU,wBAAK,GAAG,IAAI,kBAAK,CAAC,EAA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,GAAG,CAAC,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QACzB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;QAClB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;QACnB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,EAAE,IAAA,0BAAc,GAAE,CAAC;QACtD,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;QAClC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;KACtD,CAAC,CAAC;IACU,oBAAK,GAAG,IAAI,kBAAK,CAAC,EAAE,MAAM,EAAN,eAAA,MAAM,EAAE,CAAC,CAAC;AAE7C,CAAC,EA1BgB,cAAc,8BAAd,cAAc,QA0B9B"}
|
package/dist/src/u-dcql.d.ts
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
import * as v from 'valibot';
|
2
|
+
import type { UnknownBaseSchema } from './u-model';
|
2
3
|
export declare const idRegex: RegExp;
|
3
4
|
export declare const vNonEmptyArray: <T extends unknown[]>() => v.CustomSchema<[T[number], ...T], undefined>;
|
4
5
|
export declare const vIdString: v.SchemaWithPipe<[v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
5
6
|
export type Json = string | number | boolean | null | {
|
6
7
|
[key: string]: Json;
|
7
8
|
} | Json[];
|
9
|
+
export declare const vWithJT: <Schema extends UnknownBaseSchema>(schema: Schema) => v.SchemaWithPipe<[v.CustomSchema<v.InferInput<Schema>, undefined>, v.RawTransformAction<v.InferInput<Schema>, v.InferOutput<Schema>>]>;
|
8
10
|
export declare const vJsonLiteral: v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>;
|
9
11
|
export type JsonLiteral = v.InferOutput<typeof vJsonLiteral>;
|
10
|
-
export declare const vJsonArray: v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
11
12
|
export declare const vJson: v.GenericSchema<Json>;
|
13
|
+
export declare const vJsonWithJT: v.GenericSchema<Json>;
|
12
14
|
export declare const vJsonRecord: v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<Json, Json, v.BaseIssue<unknown>>, undefined>;
|
13
15
|
export type JsonRecord = v.InferOutput<typeof vJsonRecord>;
|
14
|
-
export declare const vJsonValue: v.UnionSchema<[v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>, v.RecordSchema<v.StringSchema<undefined>, v.GenericSchema<Json, Json, v.BaseIssue<unknown>>, undefined>], undefined>;
|
15
16
|
export declare const vStringToJson: v.RawTransformAction<string, Json>;
|
16
17
|
//# sourceMappingURL=u-dcql.d.ts.map
|
package/dist/src/u-dcql.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"u-dcql.d.ts","sourceRoot":"","sources":["../../src/u-dcql.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,eAAO,MAAM,OAAO,QAAqB,CAAC;AAE1C,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,OAAO,EAAE,mDAIjD,CAAC;AAEF,eAAO,MAAM,SAAS,iFAAuC,CAAC;AAE9D,MAAM,MAAM,IAAI,GACZ,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GACvB,IAAI,EAAE,CAAC;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