@openid4vc/openid4vp 0.3.0-alpha-20250513122832 → 0.3.0-alpha-20250528092219
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/index.d.mts +243 -9
- package/dist/index.d.ts +243 -9
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -129,14 +129,22 @@ var zOpenid4vpAuthorizationRequest = z4.object({
|
|
|
129
129
|
"verifier_attestation",
|
|
130
130
|
"x509_san_dns",
|
|
131
131
|
"x509_san_uri"
|
|
132
|
-
]).optional()
|
|
132
|
+
]).optional(),
|
|
133
|
+
verifier_attestations: z4.array(
|
|
134
|
+
z4.object({
|
|
135
|
+
format: z4.string(),
|
|
136
|
+
data: z4.record(z4.any()).or(z4.string()),
|
|
137
|
+
credential_ids: z4.array(z4.string()).optional()
|
|
138
|
+
})
|
|
139
|
+
).optional()
|
|
133
140
|
}).passthrough();
|
|
134
141
|
var zOpenid4vpAuthorizationRequestFromUriParams = z4.string().url().transform((url) => Object.fromEntries(new URL(url).searchParams)).pipe(
|
|
135
142
|
z4.object({
|
|
136
143
|
presentation_definition: zStringToJson.optional(),
|
|
137
144
|
client_metadata: zStringToJson.optional(),
|
|
138
145
|
dcql_query: zStringToJson.optional(),
|
|
139
|
-
transaction_data: zStringToJson.optional()
|
|
146
|
+
transaction_data: zStringToJson.optional(),
|
|
147
|
+
verifier_attestations: zStringToJson.optional()
|
|
140
148
|
}).passthrough()
|
|
141
149
|
);
|
|
142
150
|
|
|
@@ -150,7 +158,8 @@ var zOpenid4vpAuthorizationRequestDcApi = zOpenid4vpAuthorizationRequest.pick({
|
|
|
150
158
|
transaction_data: true,
|
|
151
159
|
dcql_query: true,
|
|
152
160
|
trust_chain: true,
|
|
153
|
-
state: true
|
|
161
|
+
state: true,
|
|
162
|
+
verifier_attestations: true
|
|
154
163
|
}).extend({
|
|
155
164
|
client_id: z5.optional(z5.string()),
|
|
156
165
|
expected_origins: z5.array(z5.string()).optional(),
|