@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.
@@ -7,8 +7,8 @@
7
7
  * Do Not Translate or Localize
8
8
  *
9
9
  * Bundle of @mattrglobal/verifier-sdk-web
10
- * Generated: 2025-03-25
11
- * Version: 2.0.0-preview-digital-credential-api.4
10
+ * Generated: 2025-04-28
11
+ * Version: 2.0.0-preview-digital-credential-api.5
12
12
  * Dependencies:
13
13
  *
14
14
  * neverthrow -- 4.3.0
@@ -1379,6 +1379,22 @@ const CredentialQueryValidator = object({
1379
1379
  })))
1380
1380
  });
1381
1381
 
1382
+ const DcqlCredentialQueryValidator = object({
1383
+ credentials: array(object({
1384
+ id: string(),
1385
+ format: string(),
1386
+ meta: optional(unknown()),
1387
+ claims: array(object({
1388
+ path: array(string())
1389
+ }))
1390
+ })),
1391
+ credential_sets: optional(array(object({
1392
+ options: array(array(string())),
1393
+ required: optional(_boolean()),
1394
+ purpose: optional(unknown())
1395
+ })))
1396
+ });
1397
+
1382
1398
  var PresentationErrorType;
1383
1399
 
1384
1400
  (function(PresentationErrorType) {
@@ -1399,7 +1415,7 @@ const PresentationResultRelaxValidator = object({
1399
1415
  });
1400
1416
 
1401
1417
  object({
1402
- credentialQuery: array(CredentialQueryValidator),
1418
+ credentialQuery: union([ array(CredentialQueryValidator), DcqlCredentialQueryValidator ]),
1403
1419
  challenge: string(),
1404
1420
  redirectUri: optional(string()),
1405
1421
  walletProviderId: optional(string())
@@ -1438,7 +1454,7 @@ var MessageEventDataType;
1438
1454
  })(MessageEventDataType || (MessageEventDataType = {}));
1439
1455
 
1440
1456
  const RequestCredentialsSameDeviceOptionsValidator = object({
1441
- credentialQuery: pipe(array(CredentialQueryValidator), nonEmpty()),
1457
+ credentialQuery: union([ pipe(array(CredentialQueryValidator), nonEmpty()), DcqlCredentialQueryValidator ]),
1442
1458
  redirectUri: string(),
1443
1459
  challenge: optional(string()),
1444
1460
  walletProviderId: optional(string()),
@@ -1446,7 +1462,7 @@ const RequestCredentialsSameDeviceOptionsValidator = object({
1446
1462
  });
1447
1463
 
1448
1464
  const RequestCredentialsCrossDeviceOptionsValidator = object({
1449
- credentialQuery: pipe(array(CredentialQueryValidator), nonEmpty()),
1465
+ credentialQuery: union([ pipe(array(CredentialQueryValidator), nonEmpty()), DcqlCredentialQueryValidator ]),
1450
1466
  crossDeviceCallback: object({
1451
1467
  onComplete: function_(),
1452
1468
  onFailure: function_()
@@ -1457,7 +1473,7 @@ const RequestCredentialsCrossDeviceOptionsValidator = object({
1457
1473
  });
1458
1474
 
1459
1475
  const RequestCredentialsAutoDetectDeviceOptionsValidator = object({
1460
- credentialQuery: pipe(array(CredentialQueryValidator), nonEmpty()),
1476
+ credentialQuery: union([ pipe(array(CredentialQueryValidator), nonEmpty()), DcqlCredentialQueryValidator ]),
1461
1477
  crossDeviceCallback: object({
1462
1478
  onComplete: function_(),
1463
1479
  onFailure: function_()