@mattrglobal/verifier-sdk-web 2.0.0-preview-digital-credential-api.4 → 2.0.0-preview-digital-credential-api.5
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/lib/verifier-js-no-deps.cjs.js +22 -6
- package/dist/lib/verifier-js-no-deps.cjs.js.map +1 -1
- package/dist/lib/verifier-js.cjs.js +22 -6
- package/dist/lib/verifier-js.cjs.js.map +1 -1
- package/dist/typings/verifier/types/credential-presentation.d.ts +48 -4
- package/dist/typings/verifier/types/verifier-web-sdk.d.ts +71 -15
- package/dist/verifier-js.development.js +21 -6
- package/dist/verifier-js.development.js.map +1 -1
- package/dist/verifier-js.production.esm.js +3 -3
- package/dist/verifier-js.production.esm.js.map +1 -1
- package/dist/verifier-js.production.js +3 -3
- package/dist/verifier-js.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* Do Not Translate or Localize
|
|
8
8
|
*
|
|
9
9
|
* Bundle of @mattrglobal/verifier-sdk-web
|
|
10
|
-
* Generated: 2025-
|
|
11
|
-
* Version: 2.0.0-preview-digital-credential-api.
|
|
10
|
+
* Generated: 2025-04-28
|
|
11
|
+
* Version: 2.0.0-preview-digital-credential-api.5
|
|
12
12
|
* Dependencies:
|
|
13
13
|
*/
|
|
14
14
|
|
|
@@ -172,6 +172,22 @@ const CredentialQueryValidator = v__namespace.object({
|
|
|
172
172
|
})))
|
|
173
173
|
});
|
|
174
174
|
|
|
175
|
+
const DcqlCredentialQueryValidator = v__namespace.object({
|
|
176
|
+
credentials: v__namespace.array(v__namespace.object({
|
|
177
|
+
id: v__namespace.string(),
|
|
178
|
+
format: v__namespace.string(),
|
|
179
|
+
meta: v__namespace.optional(v__namespace.unknown()),
|
|
180
|
+
claims: v__namespace.array(v__namespace.object({
|
|
181
|
+
path: v__namespace.array(v__namespace.string())
|
|
182
|
+
}))
|
|
183
|
+
})),
|
|
184
|
+
credential_sets: v__namespace.optional(v__namespace.array(v__namespace.object({
|
|
185
|
+
options: v__namespace.array(v__namespace.array(v__namespace.string())),
|
|
186
|
+
required: v__namespace.optional(v__namespace.boolean()),
|
|
187
|
+
purpose: v__namespace.optional(v__namespace.unknown())
|
|
188
|
+
})))
|
|
189
|
+
});
|
|
190
|
+
|
|
175
191
|
var PresentationErrorType;
|
|
176
192
|
|
|
177
193
|
(function(PresentationErrorType) {
|
|
@@ -192,7 +208,7 @@ const PresentationResultRelaxValidator = v__namespace.object({
|
|
|
192
208
|
});
|
|
193
209
|
|
|
194
210
|
v__namespace.object({
|
|
195
|
-
credentialQuery: v__namespace.array(CredentialQueryValidator),
|
|
211
|
+
credentialQuery: v__namespace.union([ v__namespace.array(CredentialQueryValidator), DcqlCredentialQueryValidator ]),
|
|
196
212
|
challenge: v__namespace.string(),
|
|
197
213
|
redirectUri: v__namespace.optional(v__namespace.string()),
|
|
198
214
|
walletProviderId: v__namespace.optional(v__namespace.string())
|
|
@@ -231,7 +247,7 @@ var MessageEventDataType;
|
|
|
231
247
|
})(MessageEventDataType || (MessageEventDataType = {}));
|
|
232
248
|
|
|
233
249
|
const RequestCredentialsSameDeviceOptionsValidator = v__namespace.object({
|
|
234
|
-
credentialQuery: v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()),
|
|
250
|
+
credentialQuery: v__namespace.union([ v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()), DcqlCredentialQueryValidator ]),
|
|
235
251
|
redirectUri: v__namespace.string(),
|
|
236
252
|
challenge: v__namespace.optional(v__namespace.string()),
|
|
237
253
|
walletProviderId: v__namespace.optional(v__namespace.string()),
|
|
@@ -239,7 +255,7 @@ const RequestCredentialsSameDeviceOptionsValidator = v__namespace.object({
|
|
|
239
255
|
});
|
|
240
256
|
|
|
241
257
|
const RequestCredentialsCrossDeviceOptionsValidator = v__namespace.object({
|
|
242
|
-
credentialQuery: v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()),
|
|
258
|
+
credentialQuery: v__namespace.union([ v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()), DcqlCredentialQueryValidator ]),
|
|
243
259
|
crossDeviceCallback: v__namespace.object({
|
|
244
260
|
onComplete: v__namespace.function(),
|
|
245
261
|
onFailure: v__namespace.function()
|
|
@@ -250,7 +266,7 @@ const RequestCredentialsCrossDeviceOptionsValidator = v__namespace.object({
|
|
|
250
266
|
});
|
|
251
267
|
|
|
252
268
|
const RequestCredentialsAutoDetectDeviceOptionsValidator = v__namespace.object({
|
|
253
|
-
credentialQuery: v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()),
|
|
269
|
+
credentialQuery: v__namespace.union([ v__namespace.pipe(v__namespace.array(CredentialQueryValidator), v__namespace.nonEmpty()), DcqlCredentialQueryValidator ]),
|
|
254
270
|
crossDeviceCallback: v__namespace.object({
|
|
255
271
|
onComplete: v__namespace.function(),
|
|
256
272
|
onFailure: v__namespace.function()
|