diff --git a/build/issuer/verifySubjectCredentialRequest.d.ts.map b/build/issuer/verifySubjectCredentialRequest.d.ts.map index f5fa3321..97955398 100644 --- a/build/issuer/verifySubjectCredentialRequest.d.ts.map +++ b/build/issuer/verifySubjectCredentialRequest.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"verifySubjectCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/issuer/verifySubjectCredentialRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAgC,wBAAwB,EAAE,MAAM,eAAe,CAAC;AA2DvF;;GAEG;AACH,wBAAsB,+BAA+B,CAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAiCjL;AAED,wBAAsB,8BAA8B,CAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CA+D7K"} \ No newline at end of file +{"version":3,"file":"verifySubjectCredentialRequest.d.ts","sourceRoot":"","sources":["../../src/issuer/verifySubjectCredentialRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAgC,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAyDvF;;GAEG;AACH,wBAAsB,+BAA+B,CAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAiCjL;AAED,wBAAsB,8BAA8B,CAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,EAAE,wBAAwB,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CA+D7K"} \ No newline at end of file diff --git a/build/issuer/verifySubjectCredentialRequest.js b/build/issuer/verifySubjectCredentialRequest.js index 72511fe8..847b0ad8 100644 --- a/build/issuer/verifySubjectCredentialRequest.js +++ b/build/issuer/verifySubjectCredentialRequest.js @@ -53,7 +53,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.verifySubjectCredentialRequest = exports.verifySubjectCredentialRequests = void 0; var types_1 = require("@unumid/types"); var requireAuth_1 = require("../requireAuth"); -// import { verifyCredentialHelper } from './verifyCredentialHelper'; var error_1 = require("../utils/error"); var helpers_1 = require("../utils/helpers"); var lodash_1 = require("lodash"); @@ -73,26 +72,26 @@ var validateCredentialRequests = function (requests) { } var subjectDid = ''; for (var i = 0; i < requests.length; i++) { - var request_1 = requests[i]; - if (!request_1.proof) { + var request = requests[i]; + if (!request.proof) { throw new error_1.CustError(400, "Invalid SubjectCredentialRequest[" + i + "]: proof must be defined."); } - validateProof_1.validateProof(request_1.proof); - if (!request_1.type) { + validateProof_1.validateProof(request.proof); + if (!request.type) { throw new error_1.CustError(400, "Invalid SubjectCredentialRequest[" + i + "]: type must be defined."); } - if (typeof request_1.type !== 'string') { + if (typeof request.type !== 'string') { throw new error_1.CustError(400, "Invalid SubjectCredentialRequest[" + i + "]: type must be a string."); } - if (!request_1.issuers) { + if (!request.issuers) { throw new error_1.CustError(400, "Invalid SubjectCredentialRequest[" + i + "]: issuers must be defined."); } // handle validating the subject did is the identical fr all requests if (i === 0) { - subjectDid = request_1.proof.verificationMethod; + subjectDid = request.proof.verificationMethod; } else { - if (subjectDid !== request_1.proof.verificationMethod) { + if (subjectDid !== request.proof.verificationMethod) { throw new error_1.CustError(400, 'Invalid SubjectCredentialRequests: subjectDid must identical per batch of requests.'); } } diff --git a/build/issuer/verifySubjectCredentialRequest.js.map b/build/issuer/verifySubjectCredentialRequest.js.map index 3d1c47e2..856c1f6b 100644 --- a/build/issuer/verifySubjectCredentialRequest.js.map +++ b/build/issuer/verifySubjectCredentialRequest.js.map @@ -1 +1 @@ -{"version":3,"file":"verifySubjectCredentialRequest.js","sourceRoot":"","sources":["../../src/issuer/verifySubjectCredentialRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAuF;AACvF,8CAA6C;AAC7C,qEAAqE;AACrE,wCAA2C;AAC3C,4CAAgD;AAChD,iCAA8B;AAC9B,gDAAiE;AACjE,oCAAuC;AACvC,0CAA2C;AAC3C,sEAA0F;AAC1F,2DAA0D;AAC1D,qDAA+B;AAG/B;;;GAGG;AACH,IAAM,0BAA0B,GAAG,UAAC,QAAoC;IACtE,IAAI,sBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sDAAsD,CAAC,CAAC;KAClF;IAED,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAM,SAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAE5B,IAAI,CAAC,SAAO,CAAC,KAAK,EAAE;YAClB,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sCAAoC,CAAC,8BAA2B,CAAC,CAAC;SAC5F;QAED,6BAAa,CAAC,SAAO,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,SAAO,CAAC,IAAI,EAAE;YACjB,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sCAAoC,CAAC,6BAA0B,CAAC,CAAC;SAC3F;QAED,IAAI,OAAO,SAAO,CAAC,IAAI,KAAK,QAAQ,EAAE;YACpC,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sCAAoC,CAAC,8BAA2B,CAAC,CAAC;SAC5F;QAED,IAAI,CAAC,SAAO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Q,EAAE,SAAS;wBACnB,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE;wBACxC,IAAI,EAAE,cAAc;qBACrB,CAAC;oBAEoB,qBAAM,yCAAkB,CAAU,kBAAkB,CAAC,EAAA;;oBAArE,IAAI,GAAY,SAAqD;oBAErE,SAAS,GAAG,4CAAqB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;oBAE7D,sBAAO,SAAS,EAAC;;;oBAEjB,gBAAM,CAAC,KAAK,CAAC,uFAAqF,GAAG,CAAC,CAAC;;wBAGzG,sBAAO,aAAa,EAAC;;;;CACtB"} \ No newline at end of file +{"version":3,"file":"verifySubjectCredentialRequest.js","sourceRoot":"","sources":["../../src/issuer/verifySubjectCredentialRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,uCAAuF;AACvF,8CAA6C;AAC7C,wCAA2C;AAC3C,4CAAgD;AAChD,iCAA8B;AAC9B,gDAAiE;AACjE,oCAAuC;AACvC,0CAA2C;AAC3C,sEAA0F;AAC1F,2DAA0D;AAC1D,qDAA+B;AAE/B;;;GAGG;AACH,IAAM,0BAA0B,GAAG,UAAC,QAAoC;IACtE,IAAI,sBAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QACvC,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sDAAsD,CAAC,CAAC;KAClF;IAED,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAE5B,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;YAClB,MAAM,IAAI,iBAAS,CAAC,GAAG,EAAE,sCAAoC,CAAC,8BAA2B,CAAC,CAAC;SAC5F;QAED,6BAAa,CAAC,O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AZ,CAAY,CAAC,CAAC;oBAEvF,cAAc,GAAG;wBACrB,IAAI,EAAE,kCAAkC;wBACxC,MAAM,EAAE,SAAS;wBACjB,OAAO,EAAE,UAAU;wBACnB,IAAI,EAAE;4BACJ,UAAU,YAAA;4BACV,eAAe,iBAAA;4BACf,MAAM,EAAE,OAAO;yBAChB;qBACF,CAAC;oBAEI,kBAAkB,GAAa;wBACnC,MAAM,EAAE,MAAM;wBACd,OAAO,EAAE,mBAAU,CAAC,OAAO;wBAC3B,QAAQ,EAAE,SAAS;wBACnB,MAAM,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE;wBACxC,IAAI,EAAE,cAAc;qBACrB,CAAC;oBAEoB,qBAAM,yCAAkB,CAAU,kBAAkB,CAAC,EAAA;;oBAArE,IAAI,GAAY,SAAqD;oBAErE,SAAS,GAAG,4CAAqB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;oBAE7D,sBAAO,SAAS,EAAC;;;oBAEjB,gBAAM,CAAC,KAAK,CAAC,uFAAqF,GAAG,CAAC,CAAC;;wBAGzG,sBAAO,aAAa,EAAC;;;;CACtB"} \ No newline at end of file diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index c0bb2846..6f37003a 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1 +1 @@ -window.searchData = {"kinds":{"64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","65536":"Type literal"},"rows":[{"id":0,"kind":64,"name":"registerIssuer","url":"modules.html#registerissuer","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"issueCredential","url":"modules.html#issuecredential","classes":"tsd-kind-function"},{"id":2,"kind":64,"name":"issueCredentials","url":"modules.html#issuecredentials","classes":"tsd-kind-function"},{"id":3,"kind":64,"name":"updateCredentialStatus","url":"modules.html#updatecredentialstatus","classes":"tsd-kind-function"},{"id":4,"kind":64,"name":"registerVerifier","url":"modules.html#registerverifier","classes":"tsd-kind-function"},{"id":5,"kind":64,"name":"sendEmail","url":"modules.html#sendemail","classes":"tsd-kind-function"},{"id":6,"kind":64,"name":"sendRequest","url":"modules.html#sendrequest","classes":"tsd-kind-function"},{"id":7,"kind":64,"name":"sendSms","url":"modules.html#sendsms","classes":"tsd-kind-function"},{"id":8,"kind":64,"name":"verifyPresentation","url":"modules.html#verifypresentation","classes":"tsd-kind-function"},{"id":9,"kind":64,"name":"checkCredentialStatus","url":"modules.html#checkcredentialstatus","classes":"tsd-kind-function"},{"id":10,"kind":64,"name":"getRequest","url":"modules.html#getrequest","classes":"tsd-kind-function"},{"id":11,"kind":64,"name":"getVersionedRequest","url":"modules.html#getversionedrequest","classes":"tsd-kind-function"},{"id":12,"kind":256,"name":"UnumDto","url":"interfaces/unumdto.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":13,"kind":1024,"name":"authToken","url":"interfaces/unumdto.html#authtoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UnumDto"},{"id":14,"kind":1024,"name":"body","url":"interfaces/unumdto.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UnumDto"},{"id":15,"kind":256,"name":"RegisteredVerifier","url":"interfaces/registeredverifier.html","classes":"tsd-kind-interface"},{"id":16,"kind":1024,"name":"keys","url":"interfaces/registeredverifier.html#keys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"RegisteredVerifier"},{"id":17,"kind":256,"name":"VerifiedStatus","url":"interfaces/verifiedstatus.html","classes":"tsd-kind-interface"},{"id":18,"kind":1024,"name":"isVerified","url":"interfaces/verifiedstatus.html#isverified","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"VerifiedStatus"},{"id":19,"kind":1024,"name":"message","url":"interfaces/verifiedstatus.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"VerifiedStatus"},{"id":20,"kind":256,"name":"RegisteredIssuer","url":"interfaces/registeredissuer.html","classes":"tsd-kind-interface"},{"id":21,"kind":1024,"name":"keys","url":"interfaces/registeredissuer.html#keys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"RegisteredIssuer"},{"id":22,"kind":256,"name":"DecryptedPresentation","url":"interfaces/decryptedpresentation.html","classes":"tsd-kind-interface"},{"id":23,"kind":1024,"name":"type","url":"interfaces/decryptedpresentation.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DecryptedPresentation"},{"id":24,"kind":1024,"name":"presentation","url":"interfaces/decryptedpresentation.html#presentation","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DecryptedPresentation"},{"id":25,"kind":1024,"name":"isVerified","url":"interfaces/decryptedpresentation.html#isverified","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"DecryptedPresentation"},{"id":26,"kind":1024,"name":"message","url":"interfaces/decryptedpresentation.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"DecryptedPresentation"},{"id":27,"kind":256,"name":"CredentialStatusInfo","url":"interfaces/credentialstatusinfo.html","classes":"tsd-kind-interface"},{"id":28,"kind":1024,"name":"createdAt","url":"interfaces/credentialstatusinfo.html#createdat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":29,"kind":1024,"name":"updatedAt","url":"interfaces/credentialstatusinfo.html#updatedat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":30,"kind":1024,"name":"credentialId","url":"interfaces/credentialstatusinfo.html#credentialid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":31,"kind":1024,"name":"status","url":"interfaces/credentialstatusinfo.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":32,"kind":128,"name":"CustError","url":"classes/custerror.html","classes":"tsd-kind-class"},{"id":33,"kind":65536,"name":"__type","url":"classes/custerror.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"CustError"},{"id":34,"kind":512,"name":"constructor","url":"classes/custerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"CustError"},{"id":35,"kind":1024,"name":"code","url":"classes/custerror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"CustError"},{"id":36,"kind":256,"name":"CredentialInfo","url":"interfaces/credentialinfo.html","classes":"tsd-kind-interface"},{"id":37,"kind":1024,"name":"credentialTypes","url":"interfaces/credentialinfo.html#credentialtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialInfo"},{"id":38,"kind":1024,"name":"subjectDid","url":"interfaces/credentialinfo.html#subjectdid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialInfo"},{"id":39,"kind":64,"name":"extractCredentialInfo","url":"modules.html#extractcredentialinfo","classes":"tsd-kind-function"},{"id":40,"kind":64,"name":"createProof","url":"modules.html#createproof","classes":"tsd-kind-function"},{"id":41,"kind":64,"name":"createProofPb","url":"modules.html#createproofpb","classes":"tsd-kind-function"},{"id":42,"kind":64,"name":"convertCredentialSubject","url":"modules.html#convertcredentialsubject","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,33.787]],["parent/0",[]],["name/1",[1,33.787]],["parent/1",[]],["name/2",[2,33.787]],["parent/2",[]],["name/3",[3,33.787]],["parent/3",[]],["name/4",[4,33.787]],["parent/4",[]],["name/5",[5,33.787]],["parent/5",[]],["name/6",[6,33.787]],["parent/6",[]],["name/7",[7,33.787]],["parent/7",[]],["name/8",[8,33.787]],["parent/8",[]],["name/9",[9,33.787]],["parent/9",[]],["name/10",[10,33.787]],["parent/10",[]],["name/11",[11,33.787]],["parent/11",[]],["name/12",[12,25.314]],["parent/12",[]],["name/13",[13,33.787]],["parent/13",[12,1.669]],["name/14",[14,33.787]],["parent/14",[12,1.669]],["name/15",[15,28.679]],["parent/15",[]],["name/16",[16,28.679]],["parent/16",[15,1.891]],["name/17",[17,25.314]],["parent/17",[]],["name/18",[18,28.679]],["parent/18",[17,1.669]],["name/19",[19,28.679]],["parent/19",[17,1.669]],["name/20",[20,28.679]],["parent/20",[]],["name/21",[16,28.679]],["parent/21",[20,1.891]],["name/22",[21,20.794]],["parent/22",[]],["name/23",[22,33.787]],["parent/23",[21,1.371]],["name/24",[23,33.787]],["parent/24",[21,1.371]],["name/25",[18,28.679]],["parent/25",[21,1.371]],["name/26",[19,28.679]],["parent/26",[21,1.371]],["name/27",[24,20.794]],["parent/27",[]],["name/28",[25,33.787]],["parent/28",[24,1.371]],["name/29",[26,33.787]],["parent/29",[24,1.371]],["name/30",[27,33.787]],["parent/30",[24,1.371]],["name/31",[28,33.787]],["parent/31",[24,1.371]],["name/32",[29,22.801]],["parent/32",[]],["name/33",[30,33.787]],["parent/33",[29,1.503]],["name/34",[31,33.787]],["parent/34",[29,1.503]],["name/35",[32,33.787]],["parent/35",[29,1.503]],["name/36",[33,25.314]],["parent/36",[]],["name/37",[34,33.787]],["parent/37",[33,1.669]],["name/38",[35,33.787]],["parent/38",[33,1.669]],["name/39",[36,33.787]],["parent/39",[]],["name/40",[37,33.787]],["parent/40",[]],["name/41",[38,33.787]],["parent/41",[]],["name/42",[39,33.787]],["parent/42",[]]],"invertedIndex":[["__type",{"_index":30,"name":{"33":{}},"parent":{}}],["authtoken",{"_index":13,"name":{"13":{}},"parent":{}}],["body",{"_index":14,"name":{"14":{}},"parent":{}}],["checkcredentialstatus",{"_index":9,"name":{"9":{}},"parent":{}}],["code",{"_index":32,"name":{"35":{}},"parent":{}}],["constructor",{"_index":31,"name":{"34":{}},"parent":{}}],["convertcredentialsubject",{"_index":39,"name":{"42":{}},"parent":{}}],["createdat",{"_index":25,"name":{"28":{}},"parent":{}}],["createproof",{"_index":37,"name":{"40":{}},"parent":{}}],["createproofpb",{"_index":38,"name":{"41":{}},"parent":{}}],["credentialid",{"_index":27,"name":{"30":{}},"parent":{}}],["credentialinfo",{"_index":33,"name":{"36":{}},"parent":{"37":{},"38":{}}}],["credentialstatusinfo",{"_index":24,"name":{"27":{}},"parent":{"28":{},"29":{},"30":{},"31":{}}}],["credentialtypes",{"_index":34,"name":{"37":{}},"parent":{}}],["custerror",{"_index":29,"name":{"32":{}},"parent":{"33":{},"34":{},"35":{}}}],["decryptedpresentation",{"_index":21,"name":{"22":{}},"parent":{"23":{},"24":{},"25":{},"26":{}}}],["extractcredentialinfo",{"_index":36,"name":{"39":{}},"parent":{}}],["getrequest",{"_index":10,"name":{"10":{}},"parent":{}}],["getversionedrequest",{"_index":11,"name":{"11":{}},"parent":{}}],["issuecredential",{"_index":1,"name":{"1":{}},"parent":{}}],["issuecredentials",{"_index":2,"name":{"2":{}},"parent":{}}],["isverified",{"_index":18,"name":{"18":{},"25":{}},"parent":{}}],["keys",{"_index":16,"name":{"16":{},"21":{}},"parent":{}}],["message",{"_index":19,"name":{"19":{},"26":{}},"parent":{}}],["presentation",{"_index":23,"name":{"24":{}},"parent":{}}],["registeredissuer",{"_index":20,"name":{"20":{}},"parent":{"21":{}}}],["registeredverifier",{"_index":15,"name":{"15":{}},"parent":{"16":{}}}],["registerissuer",{"_index":0,"name":{"0":{}},"parent":{}}],["registerverifier",{"_index":4,"name":{"4":{}},"parent":{}}],["sendemail",{"_index":5,"name":{"5":{}},"parent":{}}],["sendrequest",{"_index":6,"name":{"6":{}},"parent":{}}],["sendsms",{"_index":7,"name":{"7":{}},"parent":{}}],["status",{"_index":28,"name":{"31":{}},"parent":{}}],["subjectdid",{"_index":35,"name":{"38":{}},"parent":{}}],["type",{"_index":22,"name":{"23":{}},"parent":{}}],["unumdto",{"_index":12,"name":{"12":{}},"parent":{"13":{},"14":{}}}],["updatecredentialstatus",{"_index":3,"name":{"3":{}},"parent":{}}],["updatedat",{"_index":26,"name":{"29":{}},"parent":{}}],["verifiedstatus",{"_index":17,"name":{"17":{}},"parent":{"18":{},"19":{}}}],["verifypresentation",{"_index":8,"name":{"8":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = {"kinds":{"64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","65536":"Type literal"},"rows":[{"id":0,"kind":64,"name":"registerIssuer","url":"modules.html#registerissuer","classes":"tsd-kind-function"},{"id":1,"kind":64,"name":"issueCredential","url":"modules.html#issuecredential","classes":"tsd-kind-function"},{"id":2,"kind":64,"name":"issueCredentials","url":"modules.html#issuecredentials","classes":"tsd-kind-function"},{"id":3,"kind":64,"name":"updateCredentialStatus","url":"modules.html#updatecredentialstatus","classes":"tsd-kind-function"},{"id":4,"kind":64,"name":"verifySubjectCredentialRequests","url":"modules.html#verifysubjectcredentialrequests","classes":"tsd-kind-function"},{"id":5,"kind":64,"name":"registerVerifier","url":"modules.html#registerverifier","classes":"tsd-kind-function"},{"id":6,"kind":64,"name":"sendEmail","url":"modules.html#sendemail","classes":"tsd-kind-function"},{"id":7,"kind":64,"name":"sendRequest","url":"modules.html#sendrequest","classes":"tsd-kind-function"},{"id":8,"kind":64,"name":"sendSms","url":"modules.html#sendsms","classes":"tsd-kind-function"},{"id":9,"kind":64,"name":"verifyPresentation","url":"modules.html#verifypresentation","classes":"tsd-kind-function"},{"id":10,"kind":64,"name":"checkCredentialStatus","url":"modules.html#checkcredentialstatus","classes":"tsd-kind-function"},{"id":11,"kind":64,"name":"getRequest","url":"modules.html#getrequest","classes":"tsd-kind-function"},{"id":12,"kind":64,"name":"getVersionedRequest","url":"modules.html#getversionedrequest","classes":"tsd-kind-function"},{"id":13,"kind":256,"name":"UnumDto","url":"interfaces/unumdto.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":14,"kind":1024,"name":"authToken","url":"interfaces/unumdto.html#authtoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UnumDto"},{"id":15,"kind":1024,"name":"body","url":"interfaces/unumdto.html#body","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"UnumDto"},{"id":16,"kind":256,"name":"RegisteredVerifier","url":"interfaces/registeredverifier.html","classes":"tsd-kind-interface"},{"id":17,"kind":1024,"name":"keys","url":"interfaces/registeredverifier.html#keys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"RegisteredVerifier"},{"id":18,"kind":256,"name":"VerifiedStatus","url":"interfaces/verifiedstatus.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"isVerified","url":"interfaces/verifiedstatus.html#isverified","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"VerifiedStatus"},{"id":20,"kind":1024,"name":"message","url":"interfaces/verifiedstatus.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"VerifiedStatus"},{"id":21,"kind":256,"name":"RegisteredIssuer","url":"interfaces/registeredissuer.html","classes":"tsd-kind-interface"},{"id":22,"kind":1024,"name":"keys","url":"interfaces/registeredissuer.html#keys","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"RegisteredIssuer"},{"id":23,"kind":256,"name":"DecryptedPresentation","url":"interfaces/decryptedpresentation.html","classes":"tsd-kind-interface"},{"id":24,"kind":1024,"name":"type","url":"interfaces/decryptedpresentation.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DecryptedPresentation"},{"id":25,"kind":1024,"name":"presentation","url":"interfaces/decryptedpresentation.html#presentation","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"DecryptedPresentation"},{"id":26,"kind":1024,"name":"isVerified","url":"interfaces/decryptedpresentation.html#isverified","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"DecryptedPresentation"},{"id":27,"kind":1024,"name":"message","url":"interfaces/decryptedpresentation.html#message","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"DecryptedPresentation"},{"id":28,"kind":256,"name":"CredentialStatusInfo","url":"interfaces/credentialstatusinfo.html","classes":"tsd-kind-interface"},{"id":29,"kind":1024,"name":"createdAt","url":"interfaces/credentialstatusinfo.html#createdat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":30,"kind":1024,"name":"updatedAt","url":"interfaces/credentialstatusinfo.html#updatedat","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":31,"kind":1024,"name":"credentialId","url":"interfaces/credentialstatusinfo.html#credentialid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":32,"kind":1024,"name":"status","url":"interfaces/credentialstatusinfo.html#status","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialStatusInfo"},{"id":33,"kind":128,"name":"CustError","url":"classes/custerror.html","classes":"tsd-kind-class"},{"id":34,"kind":65536,"name":"__type","url":"classes/custerror.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-class","parent":"CustError"},{"id":35,"kind":512,"name":"constructor","url":"classes/custerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"CustError"},{"id":36,"kind":1024,"name":"code","url":"classes/custerror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"CustError"},{"id":37,"kind":256,"name":"CredentialInfo","url":"interfaces/credentialinfo.html","classes":"tsd-kind-interface"},{"id":38,"kind":1024,"name":"credentialTypes","url":"interfaces/credentialinfo.html#credentialtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialInfo"},{"id":39,"kind":1024,"name":"subjectDid","url":"interfaces/credentialinfo.html#subjectdid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"CredentialInfo"},{"id":40,"kind":64,"name":"extractCredentialInfo","url":"modules.html#extractcredentialinfo","classes":"tsd-kind-function"},{"id":41,"kind":64,"name":"createProof","url":"modules.html#createproof","classes":"tsd-kind-function"},{"id":42,"kind":64,"name":"createProofPb","url":"modules.html#createproofpb","classes":"tsd-kind-function"},{"id":43,"kind":64,"name":"convertCredentialSubject","url":"modules.html#convertcredentialsubject","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,34.012]],["parent/0",[]],["name/1",[1,34.012]],["parent/1",[]],["name/2",[2,34.012]],["parent/2",[]],["name/3",[3,34.012]],["parent/3",[]],["name/4",[4,34.012]],["parent/4",[]],["name/5",[5,34.012]],["parent/5",[]],["name/6",[6,34.012]],["parent/6",[]],["name/7",[7,34.012]],["parent/7",[]],["name/8",[8,34.012]],["parent/8",[]],["name/9",[9,34.012]],["parent/9",[]],["name/10",[10,34.012]],["parent/10",[]],["name/11",[11,34.012]],["parent/11",[]],["name/12",[12,34.012]],["parent/12",[]],["name/13",[13,25.539]],["parent/13",[]],["name/14",[14,34.012]],["parent/14",[13,1.66]],["name/15",[15,34.012]],["parent/15",[13,1.66]],["name/16",[16,28.904]],["parent/16",[]],["name/17",[17,28.904]],["parent/17",[16,1.879]],["name/18",[18,25.539]],["parent/18",[]],["name/19",[19,28.904]],["parent/19",[18,1.66]],["name/20",[20,28.904]],["parent/20",[18,1.66]],["name/21",[21,28.904]],["parent/21",[]],["name/22",[17,28.904]],["parent/22",[21,1.879]],["name/23",[22,21.019]],["parent/23",[]],["name/24",[23,34.012]],["parent/24",[22,1.366]],["name/25",[24,34.012]],["parent/25",[22,1.366]],["name/26",[19,28.904]],["parent/26",[22,1.366]],["name/27",[20,28.904]],["parent/27",[22,1.366]],["name/28",[25,21.019]],["parent/28",[]],["name/29",[26,34.012]],["parent/29",[25,1.366]],["name/30",[27,34.012]],["parent/30",[25,1.366]],["name/31",[28,34.012]],["parent/31",[25,1.366]],["name/32",[29,34.012]],["parent/32",[25,1.366]],["name/33",[30,23.026]],["parent/33",[]],["name/34",[31,34.012]],["parent/34",[30,1.497]],["name/35",[32,34.012]],["parent/35",[30,1.497]],["name/36",[33,34.012]],["parent/36",[30,1.497]],["name/37",[34,25.539]],["parent/37",[]],["name/38",[35,34.012]],["parent/38",[34,1.66]],["name/39",[36,34.012]],["parent/39",[34,1.66]],["name/40",[37,34.012]],["parent/40",[]],["name/41",[38,34.012]],["parent/41",[]],["name/42",[39,34.012]],["parent/42",[]],["name/43",[40,34.012]],["parent/43",[]]],"invertedIndex":[["__type",{"_index":31,"name":{"34":{}},"parent":{}}],["authtoken",{"_index":14,"name":{"14":{}},"parent":{}}],["body",{"_index":15,"name":{"15":{}},"parent":{}}],["checkcredentialstatus",{"_index":10,"name":{"10":{}},"parent":{}}],["code",{"_index":33,"name":{"36":{}},"parent":{}}],["constructor",{"_index":32,"name":{"35":{}},"parent":{}}],["convertcredentialsubject",{"_index":40,"name":{"43":{}},"parent":{}}],["createdat",{"_index":26,"name":{"29":{}},"parent":{}}],["createproof",{"_index":38,"name":{"41":{}},"parent":{}}],["createproofpb",{"_index":39,"name":{"42":{}},"parent":{}}],["credentialid",{"_index":28,"name":{"31":{}},"parent":{}}],["credentialinfo",{"_index":34,"name":{"37":{}},"parent":{"38":{},"39":{}}}],["credentialstatusinfo",{"_index":25,"name":{"28":{}},"parent":{"29":{},"30":{},"31":{},"32":{}}}],["credentialtypes",{"_index":35,"name":{"38":{}},"parent":{}}],["custerror",{"_index":30,"name":{"33":{}},"parent":{"34":{},"35":{},"36":{}}}],["decryptedpresentation",{"_index":22,"name":{"23":{}},"parent":{"24":{},"25":{},"26":{},"27":{}}}],["extractcredentialinfo",{"_index":37,"name":{"40":{}},"parent":{}}],["getrequest",{"_index":11,"name":{"11":{}},"parent":{}}],["getversionedrequest",{"_index":12,"name":{"12":{}},"parent":{}}],["issuecredential",{"_index":1,"name":{"1":{}},"parent":{}}],["issuecredentials",{"_index":2,"name":{"2":{}},"parent":{}}],["isverified",{"_index":19,"name":{"19":{},"26":{}},"parent":{}}],["keys",{"_index":17,"name":{"17":{},"22":{}},"parent":{}}],["message",{"_index":20,"name":{"20":{},"27":{}},"parent":{}}],["presentation",{"_index":24,"name":{"25":{}},"parent":{}}],["registeredissuer",{"_index":21,"name":{"21":{}},"parent":{"22":{}}}],["registeredverifier",{"_index":16,"name":{"16":{}},"parent":{"17":{}}}],["registerissuer",{"_index":0,"name":{"0":{}},"parent":{}}],["registerverifier",{"_index":5,"name":{"5":{}},"parent":{}}],["sendemail",{"_index":6,"name":{"6":{}},"parent":{}}],["sendrequest",{"_index":7,"name":{"7":{}},"parent":{}}],["sendsms",{"_index":8,"name":{"8":{}},"parent":{}}],["status",{"_index":29,"name":{"32":{}},"parent":{}}],["subjectdid",{"_index":36,"name":{"39":{}},"parent":{}}],["type",{"_index":23,"name":{"24":{}},"parent":{}}],["unumdto",{"_index":13,"name":{"13":{}},"parent":{"14":{},"15":{}}}],["updatecredentialstatus",{"_index":3,"name":{"3":{}},"parent":{}}],["updatedat",{"_index":27,"name":{"30":{}},"parent":{}}],["verifiedstatus",{"_index":18,"name":{"18":{}},"parent":{"19":{},"20":{}}}],["verifypresentation",{"_index":9,"name":{"9":{}},"parent":{}}],["verifysubjectcredentialrequests",{"_index":4,"name":{"4":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/classes/custerror.html b/docs/classes/custerror.html index 99db01b8..556a4cd9 100644 --- a/docs/classes/custerror.html +++ b/docs/classes/custerror.html @@ -128,7 +128,7 @@

constructor

Parameters

@@ -153,7 +153,7 @@

code

code: number
@@ -407,6 +407,9 @@

Returns void verifyPresentation +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/index.html b/docs/index.html index 56d91593..1efbadf3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -207,6 +207,31 @@

    updateCredentialStatus

    Response Body: Empty. If unsuccessful and exception will be thrown.

    {}
    +
    + +

    verifySubjectCredentialRequest

    +
    +

    Verify a Subject's request for credentials.

    +

    You need to provide the your issuer's did along with the SubjectCredentialRequest array from your /credentialRequest endpoint.

    +
    export type SubjectCredentialRequest = {
    +  type: string; // the string matching the desire credential type
    +  issuers: string[]; //list of acceptable issuer DIDs that have issued the credential
    +  required: boolean; // to denote wether this particular credential is required. Defaults behavior resolves this to true.
    +  proof: Proof; // proof signed by the subject
    +}
    +
    +

    Parameters

    +
    {
    +  "authorization": string // auth token
    +  "issuerDid": string // the did of your issuer
    +  "credentialRequests: SubjectCredentialRequest[] // array of credential requests signed by the Subject
    +}
    +
    +

    Response Body: [VerifiedStatus].

    +
    export interface VerifiedStatus {
    +  isVerified: boolean;
    +  message?: string; // message containing information iff it was not verified
    +}
     

    Verifier

    @@ -480,6 +505,9 @@

    checkCredentialStatus

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/credential.html b/docs/interfaces/credential.html index 5597e2ca..a221bf00 100644 --- a/docs/interfaces/credential.html +++ b/docs/interfaces/credential.html @@ -115,7 +115,7 @@

    @context

    @@ -126,7 +126,7 @@

    credentialStatus

    @@ -148,7 +148,7 @@

    credentialSubject

    @@ -164,7 +164,7 @@

    Optional expirationDate

    Inherited from UnsignedCredential.expirationDate

      -
    • Defined in node_modules/@unumid/types/build/index.d.ts:92
    • +
    • Defined in node_modules/@unumid/types/build/index.d.ts:108
    @@ -175,7 +175,7 @@

    id

    @@ -186,7 +186,7 @@

    issuanceDate

    @@ -197,7 +197,7 @@

    issuer

    @@ -207,7 +207,7 @@

    proof

    proof: Proof
    @@ -218,7 +218,7 @@

    type

    @@ -356,6 +356,9 @@

    type

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/credentialinfo.html b/docs/interfaces/credentialinfo.html index 10f7fce9..36266f8c 100644 --- a/docs/interfaces/credentialinfo.html +++ b/docs/interfaces/credentialinfo.html @@ -102,7 +102,7 @@

    credentialTypes

    credentialTypes: string[]
    @@ -112,7 +112,7 @@

    subjectDid

    subjectDid: string
    @@ -224,6 +224,9 @@

    subjectDid

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/credentialstatusinfo.html b/docs/interfaces/credentialstatusinfo.html index 28e0fc64..b5a4fbad 100644 --- a/docs/interfaces/credentialstatusinfo.html +++ b/docs/interfaces/credentialstatusinfo.html @@ -104,7 +104,7 @@

    createdAt

    createdAt: Date
    @@ -114,7 +114,7 @@

    credentialId

    credentialId: string
    @@ -124,7 +124,7 @@

    status

    status: "valid" | "revoked"
    @@ -134,7 +134,7 @@

    updatedAt

    updatedAt: Date
    @@ -252,6 +252,9 @@

    updatedAt

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/credentialsubject.html b/docs/interfaces/credentialsubject.html index b1a38c60..b347cb15 100644 --- a/docs/interfaces/credentialsubject.html +++ b/docs/interfaces/credentialsubject.html @@ -110,7 +110,7 @@

    id

    id: string
    @@ -219,6 +219,9 @@

    id

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/decryptedpresentation.html b/docs/interfaces/decryptedpresentation.html index 65cc3bc3..0d25bc4a 100644 --- a/docs/interfaces/decryptedpresentation.html +++ b/docs/interfaces/decryptedpresentation.html @@ -112,7 +112,7 @@

    isVerified

    @@ -123,7 +123,7 @@

    Optional message

    @@ -133,7 +133,7 @@

    presentation

    presentation: Presentation
    @@ -143,7 +143,7 @@

    type

    type: "VerifiablePresentation" | "DeclinedPresentation"
    @@ -261,6 +261,9 @@

    type

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/presentation.html b/docs/interfaces/presentation.html index f316b6b0..d6154822 100644 --- a/docs/interfaces/presentation.html +++ b/docs/interfaces/presentation.html @@ -113,7 +113,7 @@

    @context

    @@ -124,7 +124,7 @@

    presentationRequestId

    @@ -134,7 +134,7 @@

    proof

    proof: Proof
    @@ -145,7 +145,7 @@

    type

    @@ -156,7 +156,7 @@

    Optional uuid

    @@ -172,7 +172,7 @@

    Optional verifiableCreden
    @@ -188,7 +188,7 @@

    verifierDid

    @@ -315,6 +315,9 @@

    verifierDid

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/proof.html b/docs/interfaces/proof.html index d0f4103d..bdc46bad 100644 --- a/docs/interfaces/proof.html +++ b/docs/interfaces/proof.html @@ -105,7 +105,7 @@

    created

    created: string
    @@ -115,7 +115,7 @@

    proofPurpose

    proofPurpose: string
    @@ -125,7 +125,7 @@

    signatureValue

    signatureValue: string
    @@ -135,7 +135,7 @@

    type

    type: string
    @@ -145,7 +145,7 @@

    verificationMethod

    verificationMethod: string
    @@ -266,6 +266,9 @@

    verificationMethod

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/registeredissuer.html b/docs/interfaces/registeredissuer.html index 0ca96e3e..bf223de5 100644 --- a/docs/interfaces/registeredissuer.html +++ b/docs/interfaces/registeredissuer.html @@ -115,7 +115,7 @@

    apiKey

    @@ -126,7 +126,7 @@

    createdAt

    @@ -137,7 +137,7 @@

    customerUuid

    @@ -148,7 +148,7 @@

    did

    @@ -159,7 +159,7 @@

    isAuthorized

    @@ -169,7 +169,7 @@

    keys

    keys: KeyPairSet
    @@ -180,7 +180,7 @@

    name

    @@ -191,7 +191,7 @@

    updatedAt

    @@ -202,7 +202,7 @@

    uuid

    @@ -335,6 +335,9 @@

    uuid

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/registeredverifier.html b/docs/interfaces/registeredverifier.html index d72a5f11..05ebc5c9 100644 --- a/docs/interfaces/registeredverifier.html +++ b/docs/interfaces/registeredverifier.html @@ -117,7 +117,7 @@

    apiKey

    @@ -128,7 +128,7 @@

    createdAt

    @@ -139,7 +139,7 @@

    customerUuid

    @@ -150,7 +150,7 @@

    did

    @@ -161,7 +161,7 @@

    isAuthorized

    @@ -171,7 +171,7 @@

    keys

    keys: KeyPairSet
    @@ -182,7 +182,7 @@

    name

    @@ -193,7 +193,7 @@

    updatedAt

    @@ -204,7 +204,7 @@

    url

    @@ -215,7 +215,7 @@

    uuid

    @@ -226,7 +226,7 @@

    versionInfo

    @@ -365,6 +365,9 @@

    versionInfo

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/unumdto.html b/docs/interfaces/unumdto.html index d8ba5629..c3a0f700 100644 --- a/docs/interfaces/unumdto.html +++ b/docs/interfaces/unumdto.html @@ -110,7 +110,7 @@

    authToken

    authToken: string
    @@ -120,7 +120,7 @@

    body

    body: T
    @@ -232,6 +232,9 @@

    body

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/interfaces/verifiedstatus.html b/docs/interfaces/verifiedstatus.html index dba26594..f6a8fd8e 100644 --- a/docs/interfaces/verifiedstatus.html +++ b/docs/interfaces/verifiedstatus.html @@ -109,7 +109,7 @@

    isVerified

    isVerified: boolean
    @@ -119,7 +119,7 @@

    Optional message

    message: string
    @@ -231,6 +231,9 @@

    Optional message

  • verifyPresentation
  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/docs/modules.html b/docs/modules.html index 60b6cfd9..59c12baf 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -102,6 +102,7 @@

    Functions

  • sendSms
  • updateCredentialStatus
  • verifyPresentation
  • +
  • verifySubjectCredentialRequests
  • @@ -119,7 +120,7 @@

    Const checkCredentialSt
  • @@ -152,7 +153,7 @@

    Const convertCredential
  • @@ -180,7 +181,7 @@

    Const createProof

  • @@ -219,7 +220,7 @@

    Const createProofPb

    @@ -258,7 +259,7 @@

    Const extractCredential
  • @@ -289,7 +290,7 @@

    Const getRequest

  • @@ -321,7 +322,7 @@

    Const getVersionedReque
  • Parameters

    @@ -347,7 +348,7 @@

    Const issueCredential

  • @@ -392,7 +393,7 @@

    Const issueCredentials

  • @@ -435,7 +436,7 @@

    Const registerIssuer

  • @@ -468,7 +469,7 @@

    Const registerVerifier

  • @@ -507,7 +508,7 @@

    Const sendEmail

  • @@ -544,7 +545,7 @@

    Const sendRequest

  • @@ -593,7 +594,7 @@

    Const sendSms

  • @@ -630,7 +631,7 @@

    Const updateCredentialS
  • @@ -673,12 +674,12 @@

    Const verifyPresentation

    -

    Handler to send information regarding the user agreeing to share a credential Presentation.

    +

    Handler for verifying a provided encrypted Presentation.

    Parameters

    @@ -703,6 +704,40 @@

    Returns Promise +
    + +

    verifySubjectCredentialRequests

    +
      +
    • verifySubjectCredentialRequests(authorization: string, issuerDid: string, credentialRequests: SubjectCredentialRequest[]): Promise<UnumDto<VerifiedStatus>>
    • +
    + +

  • +
  • + verifySubjectCredentialRequests +
  • diff --git a/package.json b/package.json index 55aa01d2..4a916bf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@unumid/server-sdk", - "version": "3.9.0", + "version": "3.10.0", "main": "build/index.js", "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git", "homepage": "https://docs.unum.id/server-sdk/",