dcql 0.2.20-alpha-20250130103020 → 0.2.20-alpha-20250213132109

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 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
- { namespace: 'org.iso.7367.1', claim_name: 'vehicle_holder' },
36
- { namespace: 'org.iso.18013.5.1', claim_name: 'first_name' },
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
- { namespace: "org.iso.7367.1", claim_name: "vehicle_holder" },
106
- { namespace: "org.iso.18013.5.1", claim_name: "first_name" },
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
  },