dcql 0.2.20-alpha-20250114153338 → 0.2.20-alpha-20250212083101
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/README.md +10 -4
- package/dist/index.d.mts +647 -298
- package/dist/index.d.ts +647 -298
- package/dist/index.js +136 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +136 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -9,6 +9,7 @@ DCQL enables Verifiers to request Verifiable Presentations that match specific q
|
|
9
9
|
- Match queries against Verifiable Credentials
|
10
10
|
- Validate presentation results
|
11
11
|
- Handle various credential formats including mso_mdoc and dc+sd-jwt and w3c vc's.
|
12
|
+
- Create and parse DCQL queries from OID4VP [Draft 22/23](https://openid.net/specs/openid-4-verifiable-presentations-1_0-23.html#name-digital-credentials-query-l) and [Draft 24](https://openid.net/specs/openid-4-verifiable-presentations-1_0-24.html#name-digital-credentials-query-l).
|
12
13
|
|
13
14
|
## Installation
|
14
15
|
|
@@ -32,8 +33,13 @@ const query = {
|
|
32
33
|
format: 'mso_mdoc',
|
33
34
|
meta: { doctype_value: 'org.iso.7367.1.mVRC' },
|
34
35
|
claims: [
|
35
|
-
{
|
36
|
-
|
36
|
+
{
|
37
|
+
path: ['org.iso.7367.1', 'vehicle_holder'],
|
38
|
+
intent_to_reatin: true
|
39
|
+
},
|
40
|
+
{
|
41
|
+
path: ['org.iso.18013.5.1', 'first_name']
|
42
|
+
},
|
37
43
|
],
|
38
44
|
}]
|
39
45
|
};
|
@@ -102,8 +108,8 @@ assert.deepStrictEqual(presentationQueryResult, {
|
|
102
108
|
id: "my_credential",
|
103
109
|
format: "mso_mdoc",
|
104
110
|
claims: [
|
105
|
-
{
|
106
|
-
{
|
111
|
+
{ path: ["org.iso.7367.1", "vehicle_holder"] },
|
112
|
+
{ path: ["org.iso.18013.5.1", "first_name"] },
|
107
113
|
],
|
108
114
|
meta: { doctype_value: "org.iso.7367.1.mVRC" },
|
109
115
|
},
|