@mattrglobal/verifier-sdk-web 1.1.1-unstable.160 → 1.1.1-unstable.161
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 +2 -22
- package/dist/lib/verifier-js-no-deps.cjs.js.map +1 -1
- package/dist/lib/verifier-js.cjs.js +2 -22
- package/dist/lib/verifier-js.cjs.js.map +1 -1
- package/dist/typings/verifier/types/credential-presentation.d.ts +0 -27
- package/dist/verifier-js.development.js +2 -19
- package/dist/verifier-js.development.js.map +1 -1
- package/dist/verifier-js.production.esm.js +1 -1
- package/dist/verifier-js.production.esm.js.map +1 -1
- package/dist/verifier-js.production.js +1 -1
- package/dist/verifier-js.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -1406,14 +1406,6 @@ var PresentationErrorType;
|
|
|
1406
1406
|
PresentationErrorType["Unknown"] = "Unknown";
|
|
1407
1407
|
})(PresentationErrorType || (PresentationErrorType = {}));
|
|
1408
1408
|
|
|
1409
|
-
const PresentationSuccessResultValidator = object({
|
|
1410
|
-
sessionId: string(),
|
|
1411
|
-
challenge: string(),
|
|
1412
|
-
credentialQuery: array(CredentialQueryValidator),
|
|
1413
|
-
credentials: optional(array(any())),
|
|
1414
|
-
credentialErrors: optional(array(any()))
|
|
1415
|
-
});
|
|
1416
|
-
|
|
1417
1409
|
const PresentationResultRelaxValidator = object({
|
|
1418
1410
|
sessionId: string(),
|
|
1419
1411
|
challenge: optional(string()),
|
|
@@ -1423,18 +1415,6 @@ const PresentationResultRelaxValidator = object({
|
|
|
1423
1415
|
error: optional(unknown())
|
|
1424
1416
|
});
|
|
1425
1417
|
|
|
1426
|
-
const PresentationFailureResultValidator = object({
|
|
1427
|
-
sessionId: string(),
|
|
1428
|
-
challenge: string(),
|
|
1429
|
-
credentialQuery: array(CredentialQueryValidator),
|
|
1430
|
-
error: object({
|
|
1431
|
-
type: picklist(Object.values(PresentationErrorType)),
|
|
1432
|
-
message: string()
|
|
1433
|
-
})
|
|
1434
|
-
});
|
|
1435
|
-
|
|
1436
|
-
const PresentationSessionResultValidator = union([ PresentationSuccessResultValidator, PresentationFailureResultValidator ]);
|
|
1437
|
-
|
|
1438
1418
|
exports.Mode = void 0;
|
|
1439
1419
|
|
|
1440
1420
|
(function(Mode) {
|
|
@@ -1888,7 +1868,7 @@ const receiveMessageHandler = options => async event => {
|
|
|
1888
1868
|
return;
|
|
1889
1869
|
}
|
|
1890
1870
|
onComplete({
|
|
1891
|
-
result:
|
|
1871
|
+
result: "challenge" in result.value ? result.value : undefined,
|
|
1892
1872
|
sessionId: result.value.sessionId,
|
|
1893
1873
|
sessionCompletedInRedirect: false
|
|
1894
1874
|
});
|
|
@@ -2031,7 +2011,7 @@ const requestCredentialsWithDigitalCredentialsApi = async options => {
|
|
|
2031
2011
|
}
|
|
2032
2012
|
const verificationResult = credentialVerificationResult.value;
|
|
2033
2013
|
return ok({
|
|
2034
|
-
result:
|
|
2014
|
+
result: "challenge" in verificationResult ? verificationResult : undefined,
|
|
2035
2015
|
sessionId: sessionId
|
|
2036
2016
|
});
|
|
2037
2017
|
};
|