@regulaforensics/facesdk-webclient 6.1.1 → 6.1.2-beta.0

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.
@@ -1 +1 @@
1
- var e=require("@swc/helpers/cjs/_class_call_check.cjs"),n=require("axios"),t=require("@swc/helpers/cjs/_inherits.cjs"),r=require("@swc/helpers/cjs/_wrap_native_super.cjs"),s=require("@swc/helpers/cjs/_create_super.cjs"),a=require("@swc/helpers/cjs/_async_to_generator.cjs"),u=require("@swc/helpers/cjs/_create_class.cjs"),i=require("@swc/helpers/cjs/_ts_generator.cjs"),o=require("base64-arraybuffer"),c=require("@swc/helpers/cjs/_object_spread.cjs"),h=require("@swc/helpers/cjs/_object_spread_props.cjs");function l(e,n){return Object.keys(n).forEach(function(t){"default"===t||"__esModule"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}),e}function _(e){return e&&e.__esModule?e.default:e}function d(e,n,t,r){Object.defineProperty(e,n,{get:t,set:r,enumerable:!0,configurable:!0})}var p={},f={};d(f,"FaceSdk",function(){return eE});var E="http://localhost:41101".replace(/\/+$/,""),I=function t(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_(n);(0,e._)(this,t),this.basePath=s,this.axios=a,r&&(this.configuration=r,this.basePath=r.basePath||this.basePath)},g=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(n,t){var s;return(0,e._)(this,a),(s=r.call(this,t)).field=n,s.name="RequiredError",s}return a}((0,r._)(Error)),A="https://example.com",v=function(e,n,t){if(null==t)throw new g(n,"Required parameter ".concat(n," was null or undefined when calling ").concat(e,"."))};(0,a._)(function(e,n,t){var r,s;return(0,i._)(this,function(a){switch(a.label){case 0:if(!(t&&t.apiKey))return[3,5];if("function"!=typeof t.apiKey)return[3,2];return[4,t.apiKey(n)];case 1:return s=a.sent(),[3,4];case 2:return[4,t.apiKey];case 3:s=a.sent(),a.label=4;case 4:r=s,e[n]=r,a.label=5;case 5:return[2]}})}),(0,a._)(function(e,n){var t,r;return(0,i._)(this,function(s){switch(s.label){case 0:if(!(n&&n.accessToken))return[3,5];if("function"!=typeof n.accessToken)return[3,2];return[4,n.accessToken()];case 1:return r=s.sent(),[3,4];case 2:return[4,n.accessToken];case 3:r=s.sent(),s.label=4;case 4:t=r,e.Authorization="Bearer "+t,s.label=5;case 5:return[2]}})}),(0,a._)(function(e,n,t,r){var s,a;return(0,i._)(this,function(u){switch(u.label){case 0:if(!(r&&r.accessToken))return[3,5];if("function"!=typeof r.accessToken)return[3,2];return[4,r.accessToken(n,t)];case 1:return a=u.sent(),[3,4];case 2:return[4,r.accessToken];case 3:a=u.sent(),u.label=4;case 4:s=a,e.Authorization="Bearer "+s,u.label=5;case 5:return[2]}})});var R=function(e){for(var n=arguments.length,t=Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var s=new URLSearchParams(e.search),a=!0,u=!1,i=void 0;try{for(var o,c=t[Symbol.iterator]();!(a=(o=c.next()).done);a=!0){var h=o.value;for(var l in h)if(Array.isArray(h[l])){s.delete(l);var _=!0,d=!1,p=void 0;try{for(var f,E=h[l][Symbol.iterator]();!(_=(f=E.next()).done);_=!0){var I=f.value;s.append(l,I)}}catch(e){d=!0,p=e}finally{try{_||null==E.return||E.return()}finally{if(d)throw p}}}else s.set(l,h[l])}}catch(e){u=!0,i=e}finally{try{a||null==c.return||c.return()}finally{if(u)throw i}}e.search=s.toString()},C=function(e,n,t){var r="string"!=typeof e;return(r&&t&&t.isJsonMime?t.isJsonMime(n.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},T=function(e){return e.pathname+e.search+e.hash},O=function(e,n,t,r){return function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,u=(0,h._)((0,c._)({},e.options),{url:((null==r?void 0:r.basePath)||a)+e.url});return s.request(u)}},S=function(e){var n,t,r;return{detect:(n=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("detect","detectRequest",n),s=new URL("/api/detect",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,t){return n.apply(this,arguments)}),match:(t=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("match","matchRequest",n),s=new URL("/api/match",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,n){return t.apply(this,arguments)}),matchAndSearch:(r=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("matchAndSearch","matchAndSearchRequest",n),s=new URL("/api/match_and_search",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,n){return r.apply(this,arguments)})}},P=function(e){var t=S(e);return{detect:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.detect(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},match:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.match(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},matchAndSearch:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.matchAndSearch(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},y=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"detect",value:function(e,n,t){var r=this;return P(this.configuration).detect(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"match",value:function(e,n,t){var r=this;return P(this.configuration).match(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"matchAndSearch",value:function(e,n,t){var r=this;return P(this.configuration).matchAndSearch(e,n,t).then(function(e){return e(r.axios,r.basePath)})}}]),a}(I),m={},G={};d(G,"FaceAttribute",function(){return D});var D={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"},L={};d(L,"FaceImageQualityAlignType",function(){return b});var b={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4},N={};d(N,"FaceImageQualityGroups",function(){return w});var w={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8},F={};d(F,"FaceImageQualityGroupsStrings",function(){return U});var U={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"},H={};d(H,"FaceImageQualityStatus",function(){return M});var M={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2},k={};d(k,"FaceQualityConfigName",function(){return B});var B={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"},q={};d(q,"FaceQualityScenarios",function(){return x});var x={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""},j={};d(j,"FaceSDKResultCode",function(){return Y});var Y={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252},X={};d(X,"ImageSource",function(){return V});var V={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6},K={};d(K,"MatchRequestOutputImageParamsCropTypeEnum",function(){return Q});var Q={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4};l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,G),l(m,L),l(m,N),l(m,F),l(m,H),l(m,k),l(m,q),l(m,{}),l(m,j),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,X),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,K),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{}),l(m,{});var W=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new y(t,r,s)}return(0,u._)(n,[{key:"match",value:function(e,n,t){var r=this;return(0,a._)(function(){var s,a,u,c,h,l;return(0,i._)(this,function(i){switch(i.label){case 0:s=!0,a=!1,u=void 0;try{for(c=e.images[Symbol.iterator]();!(s=(h=c.next()).done);s=!0)(l=h.value).type||(l.type=V.LIVE),"string"!=typeof l.data&&(l.data=o.encode(l.data))}catch(e){a=!0,u=e}finally{try{s||null==c.return||c.return()}finally{if(a)throw u}}return[4,r.superClass.match(e,n,t)];case 1:return[2,i.sent().data]}})})()}},{key:"detect",value:function(e,n,t){var r=this;return(0,a._)(function(){return(0,i._)(this,function(s){switch(s.label){case 0:return e.image&&"string"!=typeof e.image&&(e.image=o.encode(e.image)),[4,r.superClass.detect(e,n,t)];case 1:return[2,s.sent().data]}})})()}}]),n}(),z=function(e){var n,t,r,s,u,o,h;return{createGroup:(n=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("createGroup","groupToCreate",n),s=new URL("/api/groups",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,t){return n.apply(this,arguments)}),deleteGroup:(t=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_,d=arguments;return(0,i._)(this,function(i){return r=d.length>2&&void 0!==d[2]?d[2]:{},v("deleteGroup","groupId",n),s="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(n))),a=new URL(s,A),e&&(u=e.baseOptions),o=(0,c._)({method:"DELETE"},u,r),h={},l={},null!=t&&(h["X-RequestID"]=String(t)),R(a,l),_=u&&u.headers?u.headers:{},o.headers=(0,c._)({},h,_,r.headers),[2,{url:T(a),options:o}]})}),function(e,n){return t.apply(this,arguments)}),getAllGroups:(r=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d=arguments;return(0,i._)(this,function(i){return s=d.length>3&&void 0!==d[3]?d[3]:{},a=new URL("/api/groups",A),e&&(u=e.baseOptions),o=(0,c._)({method:"GET"},u,s),h={},l={},void 0!==n&&(l.page=n),void 0!==t&&(l.size=t),null!=r&&(h["X-RequestID"]=String(r)),R(a,l),_=u&&u.headers?u.headers:{},o.headers=(0,c._)({},h,_,s.headers),[2,{url:T(a),options:o}]})}),function(e,n,t){return r.apply(this,arguments)}),getAllPersonsByGroupId:(s=(0,a._)(function(n,t,r,s){var a,u,o,h,l,_,d,p,f=arguments;return(0,i._)(this,function(i){return a=f.length>4&&void 0!==f[4]?f[4]:{},v("getAllPersonsByGroupId","groupId",n),u="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(n))),o=new URL(u,A),e&&(h=e.baseOptions),l=(0,c._)({method:"GET"},h,a),_={},d={},void 0!==t&&(d.page=t),void 0!==r&&(d.size=r),null!=s&&(_["X-RequestID"]=String(s)),R(o,d),p=h&&h.headers?h.headers:{},l.headers=(0,c._)({},_,p,a.headers),[2,{url:T(o),options:l}]})}),function(e,n,t,r){return s.apply(this,arguments)}),getGroup:(u=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_,d=arguments;return(0,i._)(this,function(i){return r=d.length>2&&void 0!==d[2]?d[2]:{},v("getGroup","groupId",n),s="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(n))),a=new URL(s,A),e&&(u=e.baseOptions),o=(0,c._)({method:"GET"},u,r),h={},l={},null!=t&&(h["X-RequestID"]=String(t)),R(a,l),_=u&&u.headers?u.headers:{},o.headers=(0,c._)({},h,_,r.headers),[2,{url:T(a),options:o}]})}),function(e,n){return u.apply(this,arguments)}),updateGroup:(o=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("updateGroup","groupId",n),v("updateGroup","groupToCreate",t),a="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(n))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"PUT"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),h.data=C(t,h,e),[2,{url:T(u),options:h}]})}),function(e,n,t){return o.apply(this,arguments)}),updatePersonsInGroup:(h=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("updatePersonsInGroup","groupId",n),v("updatePersonsInGroup","updateGroup",t),a="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(n))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"PUT"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),h.data=C(t,h,e),[2,{url:T(u),options:h}]})}),function(e,n,t){return h.apply(this,arguments)})}},Z=function(e){var t=z(e);return{createGroup:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.createGroup(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},deleteGroup:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.deleteGroup(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getAllGroups:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getAllGroups(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getAllPersonsByGroupId:function(r,s,u,o,c){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getAllPersonsByGroupId(r,s,u,o,c)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getGroup:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getGroup(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},updateGroup:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.updateGroup(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},updatePersonsInGroup:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.updatePersonsInGroup(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},J=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"createGroup",value:function(e,n,t){var r=this;return Z(this.configuration).createGroup(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"deleteGroup",value:function(e,n,t){var r=this;return Z(this.configuration).deleteGroup(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"getAllGroups",value:function(e,n,t,r){var s=this;return Z(this.configuration).getAllGroups(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}},{key:"getAllPersonsByGroupId",value:function(e,n,t,r,s){var a=this;return Z(this.configuration).getAllPersonsByGroupId(e,n,t,r,s).then(function(e){return e(a.axios,a.basePath)})}},{key:"getGroup",value:function(e,n,t){var r=this;return Z(this.configuration).getGroup(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"updateGroup",value:function(e,n,t,r){var s=this;return Z(this.configuration).updateGroup(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}},{key:"updatePersonsInGroup",value:function(e,n,t,r){var s=this;return Z(this.configuration).updatePersonsInGroup(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}}]),a}(I),$=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new J(t,r,s)}return(0,u._)(n,[{key:"createGroup",value:function(e,n,t){var r=this;return(0,a._)(function(){var s;return(0,i._)(this,function(a){switch(a.label){case 0:return s=(0,h._)((0,c._)({},e),{metadata:(null==e?void 0:e.metadata)?e.metadata:{}}),[4,r.superClass.createGroup(s,n,t)];case 1:return[2,a.sent().data]}})})()}},{key:"deleteGroup",value:function(e,n,t){var r=this;return(0,a._)(function(){return(0,i._)(this,function(s){switch(s.label){case 0:return[4,r.superClass.deleteGroup(e,n,t)];case 1:return s.sent(),[2]}})})()}},{key:"getAllGroups",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.getAllGroups(e,n,t,r)];case 1:return[2,a.sent().data]}})})()}},{key:"getAllPersonsByGroupId",value:function(e,n,t,r,s){var u=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,u.superClass.getAllPersonsByGroupId(e,n,t,r,s)];case 1:return[2,a.sent().data]}})})()}},{key:"getGroup",value:function(e,n,t){var r=this;return(0,a._)(function(){return(0,i._)(this,function(s){switch(s.label){case 0:return[4,r.superClass.getGroup(e,n,t)];case 1:return[2,s.sent().data]}})})()}},{key:"updateGroup",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.updateGroup(e,n,t,r)];case 1:return a.sent(),[2]}})})()}},{key:"updatePersonsInGroup",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.updatePersonsInGroup(e,n,t,r)];case 1:return a.sent(),[2]}})})()}}]),n}(),ee=function(e){var n,t,r,s,u,o,h,l,_;return{addImageToPerson:(n=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("addImageToPerson","personId",n),v("addImageToPerson","addImageToPersonRequest",t),a="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(n))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"POST"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),h.data=C(t,h,e),[2,{url:T(u),options:h}]})}),function(e,t,r){return n.apply(this,arguments)}),createPerson:(t=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("createPerson","personFields",n),s=new URL("/api/persons",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,n){return t.apply(this,arguments)}),deleteImageOfPerson:(r=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("deleteImageOfPerson","imageId",n),v("deleteImageOfPerson","personId",t),a="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(n))).replace("{personId}",encodeURIComponent(String(t))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"DELETE"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),[2,{url:T(u),options:h}]})}),function(e,n,t){return r.apply(this,arguments)}),deletePerson:(s=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_,d=arguments;return(0,i._)(this,function(i){return r=d.length>2&&void 0!==d[2]?d[2]:{},v("deletePerson","personId",n),s="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(n))),a=new URL(s,A),e&&(u=e.baseOptions),o=(0,c._)({method:"DELETE"},u,r),h={},l={},null!=t&&(h["X-RequestID"]=String(t)),R(a,l),_=u&&u.headers?u.headers:{},o.headers=(0,c._)({},h,_,r.headers),[2,{url:T(a),options:o}]})}),function(e,n){return s.apply(this,arguments)}),getAllGroupsByPersonId:(u=(0,a._)(function(n,t,r,s){var a,u,o,h,l,_,d,p,f=arguments;return(0,i._)(this,function(i){return a=f.length>4&&void 0!==f[4]?f[4]:{},v("getAllGroupsByPersonId","personId",n),u="/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(n))),o=new URL(u,A),e&&(h=e.baseOptions),l=(0,c._)({method:"GET"},h,a),_={},d={},void 0!==t&&(d.page=t),void 0!==r&&(d.size=r),null!=s&&(_["X-RequestID"]=String(s)),R(o,d),p=h&&h.headers?h.headers:{},l.headers=(0,c._)({},_,p,a.headers),[2,{url:T(o),options:l}]})}),function(e,n,t,r){return u.apply(this,arguments)}),getAllImagesByPersonId:(o=(0,a._)(function(n,t,r,s){var a,u,o,h,l,_,d,p,f=arguments;return(0,i._)(this,function(i){return a=f.length>4&&void 0!==f[4]?f[4]:{},v("getAllImagesByPersonId","personId",n),u="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(n))),o=new URL(u,A),e&&(h=e.baseOptions),l=(0,c._)({method:"GET"},h,a),_={},d={},void 0!==t&&(d.page=t),void 0!==r&&(d.size=r),null!=s&&(_["X-RequestID"]=String(s)),R(o,d),p=h&&h.headers?h.headers:{},l.headers=(0,c._)({},_,p,a.headers),[2,{url:T(o),options:l}]})}),function(e,n,t,r){return o.apply(this,arguments)}),getImageOfPerson:(h=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("getImageOfPerson","imageId",n),v("getImageOfPerson","personId",t),a="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(n))).replace("{personId}",encodeURIComponent(String(t))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"GET"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),[2,{url:T(u),options:h}]})}),function(e,n,t){return h.apply(this,arguments)}),getPerson:(l=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_,d=arguments;return(0,i._)(this,function(i){return r=d.length>2&&void 0!==d[2]?d[2]:{},v("getPerson","personId",n),s="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(n))),a=new URL(s,A),e&&(u=e.baseOptions),o=(0,c._)({method:"GET"},u,r),h={},l={},null!=t&&(h["X-RequestID"]=String(t)),R(a,l),_=u&&u.headers?u.headers:{},o.headers=(0,c._)({},h,_,r.headers),[2,{url:T(a),options:o}]})}),function(e,n){return l.apply(this,arguments)}),updatePerson:(_=(0,a._)(function(n,t,r){var s,a,u,o,h,l,_,d,p=arguments;return(0,i._)(this,function(i){return s=p.length>3&&void 0!==p[3]?p[3]:{},v("updatePerson","personId",n),v("updatePerson","personToUpdateFields",t),a="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(n))),u=new URL(a,A),e&&(o=e.baseOptions),h=(0,c._)({method:"PUT"},o,s),l={},_={},null!=r&&(l["X-RequestID"]=String(r)),l["Content-Type"]="application/json",R(u,_),d=o&&o.headers?o.headers:{},h.headers=(0,c._)({},l,d,s.headers),h.data=C(t,h,e),[2,{url:T(u),options:h}]})}),function(e,n,t){return _.apply(this,arguments)})}},en=function(e){var t=ee(e);return{addImageToPerson:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.addImageToPerson(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},createPerson:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.createPerson(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},deleteImageOfPerson:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.deleteImageOfPerson(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},deletePerson:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.deletePerson(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getAllGroupsByPersonId:function(r,s,u,o,c){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getAllGroupsByPersonId(r,s,u,o,c)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getAllImagesByPersonId:function(r,s,u,o,c){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getAllImagesByPersonId(r,s,u,o,c)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getImageOfPerson:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getImageOfPerson(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},getPerson:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getPerson(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()},updatePerson:function(r,s,u,o){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.updatePerson(r,s,u,o)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},et=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"addImageToPerson",value:function(e,n,t,r){var s=this;return en(this.configuration).addImageToPerson(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}},{key:"createPerson",value:function(e,n,t){var r=this;return en(this.configuration).createPerson(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"deleteImageOfPerson",value:function(e,n,t,r){var s=this;return en(this.configuration).deleteImageOfPerson(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}},{key:"deletePerson",value:function(e,n,t){var r=this;return en(this.configuration).deletePerson(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"getAllGroupsByPersonId",value:function(e,n,t,r,s){var a=this;return en(this.configuration).getAllGroupsByPersonId(e,n,t,r,s).then(function(e){return e(a.axios,a.basePath)})}},{key:"getAllImagesByPersonId",value:function(e,n,t,r,s){var a=this;return en(this.configuration).getAllImagesByPersonId(e,n,t,r,s).then(function(e){return e(a.axios,a.basePath)})}},{key:"getImageOfPerson",value:function(e,n,t,r){var s=this;return en(this.configuration).getImageOfPerson(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}},{key:"getPerson",value:function(e,n,t){var r=this;return en(this.configuration).getPerson(e,n,t).then(function(e){return e(r.axios,r.basePath)})}},{key:"updatePerson",value:function(e,n,t,r){var s=this;return en(this.configuration).updatePerson(e,n,t,r).then(function(e){return e(s.axios,s.basePath)})}}]),a}(I),er=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new et(t,r,s)}return(0,u._)(n,[{key:"createPerson",value:function(e,n,t){var r=this;return(0,a._)(function(){var s;return(0,i._)(this,function(a){switch(a.label){case 0:return s=(0,h._)((0,c._)({},e),{metadata:(null==e?void 0:e.metadata)?e.metadata:{}}),[4,r.superClass.createPerson(s,n,t)];case 1:return[2,a.sent().data]}})})()}},{key:"addImageToPerson",value:function(e,n,t,r){var s=this;return(0,a._)(function(){var a;return(0,i._)(this,function(u){switch(u.label){case 0:return(null==n?void 0:null===(a=n.image)||void 0===a?void 0:a.content)&&"string"!=typeof n.image.content&&(n.image.content=o.encode(n.image.content)),[4,s.superClass.addImageToPerson(e,n,t,r)];case 1:return[2,u.sent().data]}})})()}},{key:"deleteImageOfPerson",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.deleteImageOfPerson(e,n,t,r)];case 1:return a.sent(),[2]}})})()}},{key:"deletePerson",value:function(e,n,t){var r=this;return(0,a._)(function(){return(0,i._)(this,function(s){switch(s.label){case 0:return[4,r.superClass.deletePerson(e,n,t)];case 1:return s.sent(),[2]}})})()}},{key:"getAllGroupsByPersonId",value:function(e,n,t,r,s){var u=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,u.superClass.getAllGroupsByPersonId(e,n,t,r,s)];case 1:return[2,a.sent().data]}})})()}},{key:"getAllImagesByPersonId",value:function(e,n,t,r,s){var u=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,u.superClass.getAllImagesByPersonId(e,n,t,r,s)];case 1:return[2,a.sent().data]}})})()}},{key:"getImageOfPerson",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.getImageOfPerson(e,n,t,r)];case 1:return[2,a.sent().data]}})})()}},{key:"getPerson",value:function(e,n,t){var r=this;return(0,a._)(function(){return(0,i._)(this,function(s){switch(s.label){case 0:return[4,r.superClass.getPerson(e,n,t)];case 1:return[2,s.sent().data]}})})()}},{key:"updatePerson",value:function(e,n,t,r){var s=this;return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,s.superClass.updatePerson(e,n,t,r)];case 1:return a.sent(),[2]}})})()}}]),n}(),es=function(e){var n;return{search:(n=(0,a._)(function(n,t){var r,s,a,u,o,h,l,_=arguments;return(0,i._)(this,function(i){return r=_.length>2&&void 0!==_[2]?_[2]:{},v("search","searchRequest",n),s=new URL("/api/search",A),e&&(a=e.baseOptions),u=(0,c._)({method:"POST"},a,r),o={},h={},null!=t&&(o["X-RequestID"]=String(t)),o["Content-Type"]="application/json",R(s,h),l=a&&a.headers?a.headers:{},u.headers=(0,c._)({},o,l,r.headers),u.data=C(n,u,e),[2,{url:T(s),options:u}]})}),function(e,t){return n.apply(this,arguments)})}},ea=function(e){var t=es(e);return{search:function(r,s,u){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.search(r,s,u)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},eu=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"search",value:function(e,n,t){var r=this;return ea(this.configuration).search(e,n,t).then(function(e){return e(r.axios,r.basePath)})}}]),a}(I),ei=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new eu(t,r,s)}return(0,u._)(n,[{key:"search",value:function(e,n,t){var r=this;return(0,a._)(function(){var s;return(0,i._)(this,function(a){switch(a.label){case 0:return(null==e?void 0:null===(s=e.image)||void 0===s?void 0:s.content)&&"string"!=typeof e.image.content&&(e.image.content=o.encode(e.image.content)),[4,r.superClass.search(e,n,t)];case 1:return[2,a.sent().data]}})})()}}]),n}(),eo=function(e){var n;return{readiness:(n=(0,a._)(function(n){var t,r,s,a,u,o,h,l=arguments;return(0,i._)(this,function(i){return t=l.length>1&&void 0!==l[1]?l[1]:{},r=new URL("/api/readiness",A),e&&(s=e.baseOptions),a=(0,c._)({method:"GET"},s,t),u={},o={},null!=n&&(u["X-RequestID"]=String(n)),R(r,o),h=s&&s.headers?s.headers:{},a.headers=(0,c._)({},u,h,t.headers),[2,{url:T(r),options:a}]})}),function(e){return n.apply(this,arguments)})}},ec=function(e){var t=eo(e);return{readiness:function(r,s){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.readiness(r,s)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},eh=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"readiness",value:function(e,n){var t=this;return ec(this.configuration).readiness(e,n).then(function(e){return e(t.axios,t.basePath)})}}]),a}(I),el=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new eh(t,r,s)}return(0,u._)(n,[{key:"readiness",value:function(e,n){var t=this;return(0,a._)(function(){return(0,i._)(this,function(r){switch(r.label){case 0:return[4,t.superClass.readiness(e,n)];case 1:return[2,r.sent().data]}})})()}}]),n}(),e_=function(e){var n;return{getLivenessTransactionInfo:(n=(0,a._)(function(n){var t,r,s,a,u,o,h,l=arguments;return(0,i._)(this,function(i){return t=l.length>1&&void 0!==l[1]?l[1]:{},v("getLivenessTransactionInfo","transactionId",n),r=new URL("/api/v2/liveness",A),e&&(s=e.baseOptions),a=(0,c._)({method:"GET"},s,t),u={},o={},void 0!==n&&(o.transactionId=n),R(r,o),h=s&&s.headers?s.headers:{},a.headers=(0,c._)({},u,h,t.headers),[2,{url:T(r),options:a}]})}),function(e){return n.apply(this,arguments)})}},ed=function(e){var t=e_(e);return{getLivenessTransactionInfo:function(r,s){return(0,a._)(function(){return(0,i._)(this,function(a){switch(a.label){case 0:return[4,t.getLivenessTransactionInfo(r,s)];case 1:return[2,O(a.sent(),_(n),E,e)]}})})()}}},ep=function(n){(0,t._)(a,n);var r=(0,s._)(a);function a(){return(0,e._)(this,a),r.apply(this,arguments)}return(0,u._)(a,[{key:"getLivenessTransactionInfo",value:function(e,n){var t=this;return ed(this.configuration).getLivenessTransactionInfo(e,n).then(function(e){return e(t.axios,t.basePath)})}}]),a}(I),ef=function(){function n(t,r,s){(0,e._)(this,n),this.superClass=new ep(t,r,s)}return(0,u._)(n,[{key:"getLivenessTransactionInfo",value:function(e,n){var t=this;return(0,a._)(function(){return(0,i._)(this,function(r){switch(r.label){case 0:return[4,t.superClass.getLivenessTransactionInfo(e,n)];case 1:return[2,r.sent().data]}})})()}}]),n}(),eE=function t(r){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_(n);(0,e._)(this,t),this.basePath=s,this.axios=a,this.matchingApi=new W(r,s,a),this.groupApi=new $(r,s,a),this.personApi=new er(r,s,a),this.searchApi=new ei(r,s,a),this.diagnosticsApi=new el(r,s,a),this.livenessApi=new ef(r,s,a)};l(p,f);var eI={};d(eI,"Configuration",function(){return eg});var eg=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,e._)(this,n),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}return(0,u._)(n,[{key:"isJsonMime",value:function(e){var n=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(n.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),n}();l(module.exports,p),l(module.exports,eI),l(module.exports,m);
1
+ var e=require("axios"),t=require("base64-arraybuffer");function s(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}function a(e){return e&&e.__esModule?e.default:e}function n(e,t,s,a){Object.defineProperty(e,t,{get:s,set:a,enumerable:!0,configurable:!0})}var r={},o={};n(o,"FaceSdk",function(){return et});const i="http://localhost:41101".replace(/\/+$/,"");class u{constructor(t,s=i,n=a(e)){this.basePath=s,this.axios=n,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class d extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const l="https://example.com",h=function(e,t,s){if(null==s)throw new d(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},c=function(e,...t){let s=new URLSearchParams(e.search);for(let e of t)for(let t in e)if(Array.isArray(e[t]))for(let a of(s.delete(t),e[t]))s.append(t,a);else s.set(t,e[t]);e.search=s.toString()},p=function(e,t,s){let a="string"!=typeof e;return(a&&s&&s.isJsonMime?s.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(void 0!==e?e:{}):e||""},E=function(e){return e.pathname+e.search+e.hash},I=function(e,t,s,a){return(n=t,r=s)=>{let o={...e.options,url:((null==a?void 0:a.basePath)||r)+e.url};return n.request(o)}},_=function(t){let s=async(e,s,a={})=>{let n;h("detect","detectRequest",e);let r=new URL("/api/detect",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}},n=async(e,s,a={})=>{let n;h("match","matchRequest",e);let r=new URL("/api/match",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}},r=async(e,s,a={})=>{let n;h("matchAndSearch","matchAndSearchRequest",e);let r=new URL("/api/match_and_search",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}};return{detect:async(n,r,o)=>I(await s(n,r,o),a(e),i,t),match:async(s,r,o)=>I(await n(s,r,o),a(e),i,t),matchAndSearch:async(s,n,o)=>I(await r(s,n,o),a(e),i,t)}};class A extends u{detect(e,t,s){return _(this.configuration).detect(e,t,s).then(e=>e(this.axios,this.basePath))}match(e,t,s){return _(this.configuration).match(e,t,s).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,s){return _(this.configuration).matchAndSearch(e,t,s).then(e=>e(this.axios,this.basePath))}}var g={},R={};n(R,"FaceAttribute",function(){return C});const C={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};var O={};n(O,"FaceImageQualityAlignType",function(){return T});const T={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4};var S={};n(S,"FaceImageQualityGroups",function(){return P});const P={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8};var m={};n(m,"FaceImageQualityGroupsStrings",function(){return D});const D={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"};var y={};n(y,"FaceImageQualityStatus",function(){return L});const L={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var G={};n(G,"FaceQualityConfigName",function(){return N});const N={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"};var f={};n(f,"FaceQualityScenarios",function(){return F});const F={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""};var U={};n(U,"FaceSDKResultCode",function(){return w});const w={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252,FACER_GENERAL_ERROR:253,FACER_PASSIVE_LIVENESS_FAIL:254};var H={};n(H,"ImageSource",function(){return M});const M={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7};var b={};n(b,"MatchRequestOutputImageParamsCropTypeEnum",function(){return v});const v={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4};s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,R),s(g,O),s(g,S),s(g,m),s(g,y),s(g,G),s(g,f),s(g,{}),s(g,U),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,H),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,b),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{});class x{async match(e,s,a){for(let s of e.images)s.type||(s.type=M.LIVE),"string"!=typeof s.data&&(s.data=t.encode(s.data));return(await this.superClass.match(e,s,a)).data}async detect(e,s,a){return e.image&&"string"!=typeof e.image&&(e.image=t.encode(e.image)),(await this.superClass.detect(e,s,a)).data}constructor(e,t,s){this.superClass=new A(e,t,s)}}const B=function(t){let s=async(e,s,a={})=>{let n;h("createGroup","groupToCreate",e);let r=new URL("/api/groups",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}},n=async(e,s,a={})=>{let n;h("deleteGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},{url:E(r),options:o}},r=async(e,s,a,n={})=>{let r;let o=new URL("/api/groups",l);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},u={},d={};void 0!==e&&(d.page=e),void 0!==s&&(d.size=s),null!=a&&(u["X-RequestID"]=String(a)),c(o,d);let h=r&&r.headers?r.headers:{};return i.headers={...u,...h,...n.headers},{url:E(o),options:i}},o=async(e,s,a,n,r={})=>{let o;h("getAllPersonsByGroupId","groupId",e);let i=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(o=t.baseOptions);let u={method:"GET",...o,...r},d={},p={};void 0!==s&&(p.page=s),void 0!==a&&(p.size=a),null!=n&&(d["X-RequestID"]=String(n)),c(i,p);let I=o&&o.headers?o.headers:{};return u.headers={...d,...I,...r.headers},{url:E(i),options:u}},u=async(e,s,a={})=>{let n;h("getGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(n=t.baseOptions);let o={method:"GET",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},{url:E(r),options:o}},d=async(e,s,a,n={})=>{let r;h("updateGroup","groupId",e),h("updateGroup","groupToCreate",s);let o=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),u["Content-Type"]="application/json",c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},i.data=p(s,i,t),{url:E(o),options:i}},_=async(e,s,a,n={})=>{let r;h("updatePersonsInGroup","groupId",e),h("updatePersonsInGroup","updateGroup",s);let o=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),u["Content-Type"]="application/json",c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},i.data=p(s,i,t),{url:E(o),options:i}};return{createGroup:async(n,r,o)=>I(await s(n,r,o),a(e),i,t),deleteGroup:async(s,r,o)=>I(await n(s,r,o),a(e),i,t),getAllGroups:async(s,n,o,u)=>I(await r(s,n,o,u),a(e),i,t),getAllPersonsByGroupId:async(s,n,r,u,d)=>I(await o(s,n,r,u,d),a(e),i,t),getGroup:async(s,n,r)=>I(await u(s,n,r),a(e),i,t),updateGroup:async(s,n,r,o)=>I(await d(s,n,r,o),a(e),i,t),updatePersonsInGroup:async(s,n,r,o)=>I(await _(s,n,r,o),a(e),i,t)}};class q extends u{createGroup(e,t,s){return B(this.configuration).createGroup(e,t,s).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,s){return B(this.configuration).deleteGroup(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,s,a){return B(this.configuration).getAllGroups(e,t,s,a).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,s,a,n){return B(this.configuration).getAllPersonsByGroupId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,s){return B(this.configuration).getGroup(e,t,s).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,s,a){return B(this.configuration).updateGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,s,a){return B(this.configuration).updatePersonsInGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}}class Y{async createGroup(e,t,s){let a={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createGroup(a,t,s)).data}async deleteGroup(e,t,s){await this.superClass.deleteGroup(e,t,s)}async getAllGroups(e,t,s,a){return(await this.superClass.getAllGroups(e,t,s,a)).data}async getAllPersonsByGroupId(e,t,s,a,n){return(await this.superClass.getAllPersonsByGroupId(s,e,t,a,n)).data}async getGroup(e,t,s){return(await this.superClass.getGroup(e,t,s)).data}async updateGroup(e,t,s,a){await this.superClass.updateGroup(e,t,s,a)}async updatePersonsInGroup(e,t,s,a){await this.superClass.updatePersonsInGroup(e,t,s,a)}constructor(e,t,s){this.superClass=new q(e,t,s)}}const V=function(t){let s=async(e,s,a,n={})=>{let r;h("addImageToPerson","personId",e),h("addImageToPerson","addImageToPersonRequest",s);let o=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"POST",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),u["Content-Type"]="application/json",c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},i.data=p(s,i,t),{url:E(o),options:i}},n=async(e,s,a={})=>{let n;h("createPerson","personFields",e);let r=new URL("/api/persons",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}},r=async(e,s,a,n={})=>{let r;h("deleteImageOfPerson","imageId",e),h("deleteImageOfPerson","personId",s);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(s))),l);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},{url:E(o),options:i}},o=async(e,s,a={})=>{let n;h("deletePerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),l);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},{url:E(r),options:o}},u=async(e,s,a,n,r={})=>{let o;h("getAllGroupsByPersonId","personId",e);let i=new URL("/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),l);t&&(o=t.baseOptions);let u={method:"GET",...o,...r},d={},p={};void 0!==s&&(p.page=s),void 0!==a&&(p.size=a),null!=n&&(d["X-RequestID"]=String(n)),c(i,p);let I=o&&o.headers?o.headers:{};return u.headers={...d,...I,...r.headers},{url:E(i),options:u}},d=async(e,s,a,n,r={})=>{let o;h("getAllImagesByPersonId","personId",e);let i=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),l);t&&(o=t.baseOptions);let u={method:"GET",...o,...r},d={},p={};void 0!==s&&(p.page=s),void 0!==a&&(p.size=a),null!=n&&(d["X-RequestID"]=String(n)),c(i,p);let I=o&&o.headers?o.headers:{};return u.headers={...d,...I,...r.headers},{url:E(i),options:u}},_=async(e,s,a,n={})=>{let r;h("getImageOfPerson","imageId",e),h("getImageOfPerson","personId",s);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(s))),l);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},{url:E(o),options:i}},A=async(e,s,a={})=>{let n;h("getPerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),l);t&&(n=t.baseOptions);let o={method:"GET",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},{url:E(r),options:o}},g=async(e,s,a,n={})=>{let r;h("updatePerson","personId",e),h("updatePerson","personToUpdateFields",s);let o=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},u={};null!=a&&(u["X-RequestID"]=String(a)),u["Content-Type"]="application/json",c(o,{});let d=r&&r.headers?r.headers:{};return i.headers={...u,...d,...n.headers},i.data=p(s,i,t),{url:E(o),options:i}};return{addImageToPerson:async(n,r,o,u)=>I(await s(n,r,o,u),a(e),i,t),createPerson:async(s,r,o)=>I(await n(s,r,o),a(e),i,t),deleteImageOfPerson:async(s,n,o,u)=>I(await r(s,n,o,u),a(e),i,t),deletePerson:async(s,n,r)=>I(await o(s,n,r),a(e),i,t),getAllGroupsByPersonId:async(s,n,r,o,d)=>I(await u(s,n,r,o,d),a(e),i,t),getAllImagesByPersonId:async(s,n,r,o,u)=>I(await d(s,n,r,o,u),a(e),i,t),getImageOfPerson:async(s,n,r,o)=>I(await _(s,n,r,o),a(e),i,t),getPerson:async(s,n,r)=>I(await A(s,n,r),a(e),i,t),updatePerson:async(s,n,r,o)=>I(await g(s,n,r,o),a(e),i,t)}};class X extends u{addImageToPerson(e,t,s,a){return V(this.configuration).addImageToPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}createPerson(e,t,s){return V(this.configuration).createPerson(e,t,s).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,s,a){return V(this.configuration).deleteImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,s){return V(this.configuration).deletePerson(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,s,a,n){return V(this.configuration).getAllGroupsByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,s,a,n){return V(this.configuration).getAllImagesByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,s,a){return V(this.configuration).getImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}getPerson(e,t,s){return V(this.configuration).getPerson(e,t,s).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,s,a){return V(this.configuration).updatePerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}}class Q{async createPerson(e,t,s){let a={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createPerson(a,t,s)).data}async addImageToPerson(e,s,a,n){var r;return(null==s?void 0:null===(r=s.image)||void 0===r?void 0:r.content)&&"string"!=typeof s.image.content&&(s.image.content=t.encode(s.image.content)),(await this.superClass.addImageToPerson(e,s,a,n)).data}async deleteImageOfPerson(e,t,s,a){await this.superClass.deleteImageOfPerson(e,t,s,a)}async deletePerson(e,t,s){await this.superClass.deletePerson(e,t,s)}async getAllGroupsByPersonId(e,t,s,a,n){return(await this.superClass.getAllGroupsByPersonId(s,e,t,a,n)).data}async getAllImagesByPersonId(e,t,s,a,n){return(await this.superClass.getAllImagesByPersonId(s,e,t,a,n)).data}async getImageOfPerson(e,t,s,a){return(await this.superClass.getImageOfPerson(e,t,s,a)).data}async getPerson(e,t,s){return(await this.superClass.getPerson(e,t,s)).data}async updatePerson(e,t,s,a){await this.superClass.updatePerson(e,t,s,a)}constructor(e,t,s){this.superClass=new X(e,t,s)}}const W=function(t){let s=async(e,s,a={})=>{let n;h("search","searchRequest",e);let r=new URL("/api/search",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...a},i={};null!=s&&(i["X-RequestID"]=String(s)),i["Content-Type"]="application/json",c(r,{});let u=n&&n.headers?n.headers:{};return o.headers={...i,...u,...a.headers},o.data=p(e,o,t),{url:E(r),options:o}};return{search:async(n,r,o)=>I(await s(n,r,o),a(e),i,t)}};class K extends u{search(e,t,s){return W(this.configuration).search(e,t,s).then(e=>e(this.axios,this.basePath))}}class j{async search(e,s,a){var n;return(null==e?void 0:null===(n=e.image)||void 0===n?void 0:n.content)&&"string"!=typeof e.image.content&&(e.image.content=t.encode(e.image.content)),(await this.superClass.search(e,s,a)).data}constructor(e,t,s){this.superClass=new K(e,t,s)}}const k=function(t){let s=async(e,s={})=>{let a;let n=new URL("/api/readiness",l);t&&(a=t.baseOptions);let r={method:"GET",...a,...s},o={};null!=e&&(o["X-RequestID"]=String(e)),c(n,{});let i=a&&a.headers?a.headers:{};return r.headers={...o,...i,...s.headers},{url:E(n),options:r}};return{readiness:async(n,r)=>I(await s(n,r),a(e),i,t)}};class z extends u{readiness(e,t){return k(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class Z{async readiness(e,t){return(await this.superClass.readiness(e,t)).data}constructor(e,t,s){this.superClass=new z(e,t,s)}}const J=function(t){let s=async(e,s={})=>{let a;h("getLivenessTransactionInfo","transactionId",e);let n=new URL("/api/v2/liveness",l);t&&(a=t.baseOptions);let r={method:"GET",...a,...s},o={};void 0!==e&&(o.transactionId=e),c(n,o);let i=a&&a.headers?a.headers:{};return r.headers={...i,...s.headers},{url:E(n),options:r}};return{getLivenessTransactionInfo:async(n,r)=>I(await s(n,r),a(e),i,t)}};class $ extends u{getLivenessTransactionInfo(e,t){return J(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class ee{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,s){this.superClass=new $(e,t,s)}}class et{constructor(t,s=i,n=a(e)){this.basePath=s,this.axios=n,this.matchingApi=new x(t,s,n),this.groupApi=new Y(t,s,n),this.personApi=new Q(t,s,n),this.searchApi=new j(t,s,n),this.diagnosticsApi=new Z(t,s,n),this.livenessApi=new ee(t,s,n)}}s(r,o);var es={};n(es,"Configuration",function(){return ea});class ea{isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}s(module.exports,r),s(module.exports,es),s(module.exports,g);
@@ -1 +1 @@
1
- import e from"axios";import{encode as t}from"base64-arraybuffer";function a(e,t){return Object.keys(t).forEach(function(a){"default"===a||"__esModule"===a||e.hasOwnProperty(a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[a]}})}),e}function s(e,t,a,s){Object.defineProperty(e,t,{get:a,set:s,enumerable:!0,configurable:!0})}var r={};s(r,"FaceSdk",function(){return J});let n="http://localhost:41101".replace(/\/+$/,"");class o{constructor(t,a=n,s=e){this.basePath=a,this.axios=s,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class i extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let l="https://example.com",u=function(e,t,a){if(null==a)throw new i(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},d=function(e,...t){let a=new URLSearchParams(e.search);for(let e of t)for(let t in e)if(Array.isArray(e[t]))for(let s of(a.delete(t),e[t]))a.append(t,s);else a.set(t,e[t]);e.search=a.toString()},p=function(e,t,a){let s="string"!=typeof e,r=s&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):s;return r?JSON.stringify(void 0!==e?e:{}):e||""},c=function(e){return e.pathname+e.search+e.hash},h=function(e,t,a,s){return(r=t,n=a)=>{let o={...e.options,url:((null==s?void 0:s.basePath)||n)+e.url};return r.request(o)}},E=function(t){let a={detect:async(e,a,s={})=>{let r;u("detect","detectRequest",e);let n=new URL("/api/detect",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}},match:async(e,a,s={})=>{let r;u("match","matchRequest",e);let n=new URL("/api/match",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}},matchAndSearch:async(e,a,s={})=>{let r;u("matchAndSearch","matchAndSearchRequest",e);let n=new URL("/api/match_and_search",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}}};return{async detect(s,r,o){let i=await a.detect(s,r,o);return h(i,e,n,t)},async match(s,r,o){let i=await a.match(s,r,o);return h(i,e,n,t)},async matchAndSearch(s,r,o){let i=await a.matchAndSearch(s,r,o);return h(i,e,n,t)}}};class I extends o{detect(e,t,a){return E(this.configuration).detect(e,t,a).then(e=>e(this.axios,this.basePath))}match(e,t,a){return E(this.configuration).match(e,t,a).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,a){return E(this.configuration).matchAndSearch(e,t,a).then(e=>e(this.axios,this.basePath))}}var g={},A={};s(A,"FaceAttribute",function(){return _});let _={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};var R={};s(R,"FaceImageQualityAlignType",function(){return C});let C={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4};var T={};s(T,"FaceImageQualityGroups",function(){return O});let O={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8};var S={};s(S,"FaceImageQualityGroupsStrings",function(){return P});let P={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"};var m={};s(m,"FaceImageQualityStatus",function(){return y});let y={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var f={};s(f,"FaceQualityConfigName",function(){return G});let G={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"};var D={};s(D,"FaceQualityScenarios",function(){return L});let L={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""};var N={};s(N,"FaceSDKResultCode",function(){return F});let F={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252};var U={};s(U,"ImageSource",function(){return w});let w={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6};var b={};s(b,"MatchRequestOutputImageParamsCropTypeEnum",function(){return H});let H={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4};a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,A),a(g,R),a(g,T),a(g,S),a(g,m),a(g,f),a(g,D),a(g,{}),a(g,N),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,U),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,b),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{});class M{async match(e,a,s){for(let a of e.images)a.type||(a.type=w.LIVE),"string"!=typeof a.data&&(a.data=t(a.data));let r=await this.superClass.match(e,a,s);return r.data}async detect(e,a,s){e.image&&"string"!=typeof e.image&&(e.image=t(e.image));let r=await this.superClass.detect(e,a,s);return r.data}constructor(e,t,a){this.superClass=new I(e,t,a)}}let x=function(t){let a={createGroup:async(e,a,s={})=>{let r;u("createGroup","groupToCreate",e);let n=new URL("/api/groups",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}},deleteGroup:async(e,a,s={})=>{let r;u("deleteGroup","groupId",e);let n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,l);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...s},p={};null!=a&&(p["X-RequestID"]=String(a)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...s.headers},{url:c(o),options:i}},getAllGroups:async(e,a,s,r={})=>{let n;let o=new URL("/api/groups",l);t&&(n=t.baseOptions);let i={method:"GET",...n,...r},u={},p={};void 0!==e&&(p.page=e),void 0!==a&&(p.size=a),null!=s&&(u["X-RequestID"]=String(s)),d(o,p);let h=n&&n.headers?n.headers:{};return i.headers={...u,...h,...r.headers},{url:c(o),options:i}},getAllPersonsByGroupId:async(e,a,s,r,n={})=>{let o;u("getAllPersonsByGroupId","groupId",e);let i="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),p=new URL(i,l);t&&(o=t.baseOptions);let h={method:"GET",...o,...n},E={},I={};void 0!==a&&(I.page=a),void 0!==s&&(I.size=s),null!=r&&(E["X-RequestID"]=String(r)),d(p,I);let g=o&&o.headers?o.headers:{};return h.headers={...E,...g,...n.headers},{url:c(p),options:h}},getGroup:async(e,a,s={})=>{let r;u("getGroup","groupId",e);let n="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),o=new URL(n,l);t&&(r=t.baseOptions);let i={method:"GET",...r,...s},p={};null!=a&&(p["X-RequestID"]=String(a)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...s.headers},{url:c(o),options:i}},updateGroup:async(e,a,s,r={})=>{let n;u("updateGroup","groupId",e),u("updateGroup","groupToCreate",a);let o="/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),i=new URL(o,l);t&&(n=t.baseOptions);let h={method:"PUT",...n,...r},E={};null!=s&&(E["X-RequestID"]=String(s)),E["Content-Type"]="application/json",d(i,{});let I=n&&n.headers?n.headers:{};return h.headers={...E,...I,...r.headers},h.data=p(a,h,t),{url:c(i),options:h}},updatePersonsInGroup:async(e,a,s,r={})=>{let n;u("updatePersonsInGroup","groupId",e),u("updatePersonsInGroup","updateGroup",a);let o="/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),i=new URL(o,l);t&&(n=t.baseOptions);let h={method:"PUT",...n,...r},E={};null!=s&&(E["X-RequestID"]=String(s)),E["Content-Type"]="application/json",d(i,{});let I=n&&n.headers?n.headers:{};return h.headers={...E,...I,...r.headers},h.data=p(a,h,t),{url:c(i),options:h}}};return{async createGroup(s,r,o){let i=await a.createGroup(s,r,o);return h(i,e,n,t)},async deleteGroup(s,r,o){let i=await a.deleteGroup(s,r,o);return h(i,e,n,t)},async getAllGroups(s,r,o,i){let l=await a.getAllGroups(s,r,o,i);return h(l,e,n,t)},async getAllPersonsByGroupId(s,r,o,i,l){let u=await a.getAllPersonsByGroupId(s,r,o,i,l);return h(u,e,n,t)},async getGroup(s,r,o){let i=await a.getGroup(s,r,o);return h(i,e,n,t)},async updateGroup(s,r,o,i){let l=await a.updateGroup(s,r,o,i);return h(l,e,n,t)},async updatePersonsInGroup(s,r,o,i){let l=await a.updatePersonsInGroup(s,r,o,i);return h(l,e,n,t)}}};class v extends o{createGroup(e,t,a){return x(this.configuration).createGroup(e,t,a).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,a){return x(this.configuration).deleteGroup(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,a,s){return x(this.configuration).getAllGroups(e,t,a,s).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,a,s,r){return x(this.configuration).getAllPersonsByGroupId(e,t,a,s,r).then(e=>e(this.axios,this.basePath))}getGroup(e,t,a){return x(this.configuration).getGroup(e,t,a).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,a,s){return x(this.configuration).updateGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,a,s){return x(this.configuration).updatePersonsInGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class B{async createGroup(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}},r=await this.superClass.createGroup(s,t,a);return r.data}async deleteGroup(e,t,a){await this.superClass.deleteGroup(e,t,a)}async getAllGroups(e,t,a,s){let r=await this.superClass.getAllGroups(e,t,a,s);return r.data}async getAllPersonsByGroupId(e,t,a,s,r){let n=await this.superClass.getAllPersonsByGroupId(e,t,a,s,r);return n.data}async getGroup(e,t,a){let s=await this.superClass.getGroup(e,t,a);return s.data}async updateGroup(e,t,a,s){await this.superClass.updateGroup(e,t,a,s)}async updatePersonsInGroup(e,t,a,s){await this.superClass.updatePersonsInGroup(e,t,a,s)}constructor(e,t,a){this.superClass=new v(e,t,a)}}let $=function(t){let a={addImageToPerson:async(e,a,s,r={})=>{let n;u("addImageToPerson","personId",e),u("addImageToPerson","addImageToPersonRequest",a);let o="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),i=new URL(o,l);t&&(n=t.baseOptions);let h={method:"POST",...n,...r},E={};null!=s&&(E["X-RequestID"]=String(s)),E["Content-Type"]="application/json",d(i,{});let I=n&&n.headers?n.headers:{};return h.headers={...E,...I,...r.headers},h.data=p(a,h,t),{url:c(i),options:h}},createPerson:async(e,a,s={})=>{let r;u("createPerson","personFields",e);let n=new URL("/api/persons",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}},deleteImageOfPerson:async(e,a,s,r={})=>{let n;u("deleteImageOfPerson","imageId",e),u("deleteImageOfPerson","personId",a);let o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),i=new URL(o,l);t&&(n=t.baseOptions);let p={method:"DELETE",...n,...r},h={};null!=s&&(h["X-RequestID"]=String(s)),d(i,{});let E=n&&n.headers?n.headers:{};return p.headers={...h,...E,...r.headers},{url:c(i),options:p}},deletePerson:async(e,a,s={})=>{let r;u("deletePerson","personId",e);let n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,l);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...s},p={};null!=a&&(p["X-RequestID"]=String(a)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...s.headers},{url:c(o),options:i}},getAllGroupsByPersonId:async(e,a,s,r,n={})=>{let o;u("getAllGroupsByPersonId","personId",e);let i="/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),p=new URL(i,l);t&&(o=t.baseOptions);let h={method:"GET",...o,...n},E={},I={};void 0!==a&&(I.page=a),void 0!==s&&(I.size=s),null!=r&&(E["X-RequestID"]=String(r)),d(p,I);let g=o&&o.headers?o.headers:{};return h.headers={...E,...g,...n.headers},{url:c(p),options:h}},getAllImagesByPersonId:async(e,a,s,r,n={})=>{let o;u("getAllImagesByPersonId","personId",e);let i="/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),p=new URL(i,l);t&&(o=t.baseOptions);let h={method:"GET",...o,...n},E={},I={};void 0!==a&&(I.page=a),void 0!==s&&(I.size=s),null!=r&&(E["X-RequestID"]=String(r)),d(p,I);let g=o&&o.headers?o.headers:{};return h.headers={...E,...g,...n.headers},{url:c(p),options:h}},getImageOfPerson:async(e,a,s,r={})=>{let n;u("getImageOfPerson","imageId",e),u("getImageOfPerson","personId",a);let o="/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),i=new URL(o,l);t&&(n=t.baseOptions);let p={method:"GET",...n,...r},h={};null!=s&&(h["X-RequestID"]=String(s)),d(i,{});let E=n&&n.headers?n.headers:{};return p.headers={...h,...E,...r.headers},{url:c(i),options:p}},getPerson:async(e,a,s={})=>{let r;u("getPerson","personId",e);let n="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),o=new URL(n,l);t&&(r=t.baseOptions);let i={method:"GET",...r,...s},p={};null!=a&&(p["X-RequestID"]=String(a)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...s.headers},{url:c(o),options:i}},updatePerson:async(e,a,s,r={})=>{let n;u("updatePerson","personId",e),u("updatePerson","personToUpdateFields",a);let o="/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),i=new URL(o,l);t&&(n=t.baseOptions);let h={method:"PUT",...n,...r},E={};null!=s&&(E["X-RequestID"]=String(s)),E["Content-Type"]="application/json",d(i,{});let I=n&&n.headers?n.headers:{};return h.headers={...E,...I,...r.headers},h.data=p(a,h,t),{url:c(i),options:h}}};return{async addImageToPerson(s,r,o,i){let l=await a.addImageToPerson(s,r,o,i);return h(l,e,n,t)},async createPerson(s,r,o){let i=await a.createPerson(s,r,o);return h(i,e,n,t)},async deleteImageOfPerson(s,r,o,i){let l=await a.deleteImageOfPerson(s,r,o,i);return h(l,e,n,t)},async deletePerson(s,r,o){let i=await a.deletePerson(s,r,o);return h(i,e,n,t)},async getAllGroupsByPersonId(s,r,o,i,l){let u=await a.getAllGroupsByPersonId(s,r,o,i,l);return h(u,e,n,t)},async getAllImagesByPersonId(s,r,o,i,l){let u=await a.getAllImagesByPersonId(s,r,o,i,l);return h(u,e,n,t)},async getImageOfPerson(s,r,o,i){let l=await a.getImageOfPerson(s,r,o,i);return h(l,e,n,t)},async getPerson(s,r,o){let i=await a.getPerson(s,r,o);return h(i,e,n,t)},async updatePerson(s,r,o,i){let l=await a.updatePerson(s,r,o,i);return h(l,e,n,t)}}};class Y extends o{addImageToPerson(e,t,a,s){return $(this.configuration).addImageToPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}createPerson(e,t,a){return $(this.configuration).createPerson(e,t,a).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,a,s){return $(this.configuration).deleteImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,a){return $(this.configuration).deletePerson(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,a,s,r){return $(this.configuration).getAllGroupsByPersonId(e,t,a,s,r).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,a,s,r){return $(this.configuration).getAllImagesByPersonId(e,t,a,s,r).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,a,s){return $(this.configuration).getImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}getPerson(e,t,a){return $(this.configuration).getPerson(e,t,a).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,a,s){return $(this.configuration).updatePerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class q{async createPerson(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}},r=await this.superClass.createPerson(s,t,a);return r.data}async addImageToPerson(e,a,s,r){var n;(null==a?void 0:null===(n=a.image)||void 0===n?void 0:n.content)&&"string"!=typeof a.image.content&&(a.image.content=t(a.image.content));let o=await this.superClass.addImageToPerson(e,a,s,r);return o.data}async deleteImageOfPerson(e,t,a,s){await this.superClass.deleteImageOfPerson(e,t,a,s)}async deletePerson(e,t,a){await this.superClass.deletePerson(e,t,a)}async getAllGroupsByPersonId(e,t,a,s,r){let n=await this.superClass.getAllGroupsByPersonId(e,t,a,s,r);return n.data}async getAllImagesByPersonId(e,t,a,s,r){let n=await this.superClass.getAllImagesByPersonId(e,t,a,s,r);return n.data}async getImageOfPerson(e,t,a,s){let r=await this.superClass.getImageOfPerson(e,t,a,s);return r.data}async getPerson(e,t,a){let s=await this.superClass.getPerson(e,t,a);return s.data}async updatePerson(e,t,a,s){await this.superClass.updatePerson(e,t,a,s)}constructor(e,t,a){this.superClass=new Y(e,t,a)}}let Q=function(t){let a={search:async(e,a,s={})=>{let r;u("search","searchRequest",e);let n=new URL("/api/search",l);t&&(r=t.baseOptions);let o={method:"POST",...r,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(n,{});let h=r&&r.headers?r.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(n),options:o}}};return{async search(s,r,o){let i=await a.search(s,r,o);return h(i,e,n,t)}}};class X extends o{search(e,t,a){return Q(this.configuration).search(e,t,a).then(e=>e(this.axios,this.basePath))}}class V{async search(e,a,s){var r;(null==e?void 0:null===(r=e.image)||void 0===r?void 0:r.content)&&"string"!=typeof e.image.content&&(e.image.content=t(e.image.content));let n=await this.superClass.search(e,a,s);return n.data}constructor(e,t,a){this.superClass=new X(e,t,a)}}let K=function(t){let a={readiness:async(e,a={})=>{let s;let r=new URL("/api/readiness",l);t&&(s=t.baseOptions);let n={method:"GET",...s,...a},o={};null!=e&&(o["X-RequestID"]=String(e)),d(r,{});let i=s&&s.headers?s.headers:{};return n.headers={...o,...i,...a.headers},{url:c(r),options:n}}};return{async readiness(s,r){let o=await a.readiness(s,r);return h(o,e,n,t)}}};class W extends o{readiness(e,t){return K(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class j{async readiness(e,t){let a=await this.superClass.readiness(e,t);return a.data}constructor(e,t,a){this.superClass=new W(e,t,a)}}let k=function(t){let a={getLivenessTransactionInfo:async(e,a={})=>{let s;u("getLivenessTransactionInfo","transactionId",e);let r=new URL("/api/v2/liveness",l);t&&(s=t.baseOptions);let n={method:"GET",...s,...a},o={};void 0!==e&&(o.transactionId=e),d(r,o);let i=s&&s.headers?s.headers:{};return n.headers={...i,...a.headers},{url:c(r),options:n}}};return{async getLivenessTransactionInfo(s,r){let o=await a.getLivenessTransactionInfo(s,r);return h(o,e,n,t)}}};class z extends o{getLivenessTransactionInfo(e,t){return k(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class Z{async getLivenessTransactionInfo(e,t){let a=await this.superClass.getLivenessTransactionInfo(e,t);return a.data}constructor(e,t,a){this.superClass=new z(e,t,a)}}class J{constructor(t,a=n,s=e){this.basePath=a,this.axios=s,this.matchingApi=new M(t,a,s),this.groupApi=new B(t,a,s),this.personApi=new q(t,a,s),this.searchApi=new V(t,a,s),this.diagnosticsApi=new j(t,a,s),this.livenessApi=new Z(t,a,s)}}a({},r),s({},"Configuration",function(){return ee});class ee{isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}export{J as FaceSdk,ee as Configuration,_ as FaceAttribute,C as FaceImageQualityAlignType,O as FaceImageQualityGroups,P as FaceImageQualityGroupsStrings,y as FaceImageQualityStatus,G as FaceQualityConfigName,L as FaceQualityScenarios,F as FaceSDKResultCode,w as ImageSource,H as MatchRequestOutputImageParamsCropTypeEnum};
1
+ import e from"axios";import{encode as t}from"base64-arraybuffer";function a(e,t){return Object.keys(t).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[a]}})}),e}function s(e,t,a,s){Object.defineProperty(e,t,{get:a,set:s,enumerable:!0,configurable:!0})}var n={};s(n,"FaceSdk",function(){return J});let r="http://localhost:41101".replace(/\/+$/,"");class o{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class i extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let u="https://example.com",l=function(e,t,a){if(null==a)throw new i(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},d=function(e,...t){let a=new URLSearchParams(e.search);for(let e of t)for(let t in e)if(Array.isArray(e[t]))for(let s of(a.delete(t),e[t]))a.append(t,s);else a.set(t,e[t]);e.search=a.toString()},p=function(e,t,a){let s="string"!=typeof e;return(s&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},c=function(e){return e.pathname+e.search+e.hash},h=function(e,t,a,s){return(n=t,r=a)=>{let o={...e.options,url:((null==s?void 0:s.basePath)||r)+e.url};return n.request(o)}},E=function(t){let a=async(e,a,s={})=>{let n;l("detect","detectRequest",e);let r=new URL("/api/detect",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},s=async(e,a,s={})=>{let n;l("match","matchRequest",e);let r=new URL("/api/match",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},n=async(e,a,s={})=>{let n;l("matchAndSearch","matchAndSearchRequest",e);let r=new URL("/api/match_and_search",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}};return{detect:async(s,n,o)=>h(await a(s,n,o),e,r,t),match:async(a,n,o)=>h(await s(a,n,o),e,r,t),matchAndSearch:async(a,s,o)=>h(await n(a,s,o),e,r,t)}};class I extends o{detect(e,t,a){return E(this.configuration).detect(e,t,a).then(e=>e(this.axios,this.basePath))}match(e,t,a){return E(this.configuration).match(e,t,a).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,a){return E(this.configuration).matchAndSearch(e,t,a).then(e=>e(this.axios,this.basePath))}}var g={},_={};s(_,"FaceAttribute",function(){return A});let A={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};var R={};s(R,"FaceImageQualityAlignType",function(){return C});let C={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4};var O={};s(O,"FaceImageQualityGroups",function(){return T});let T={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8};var S={};s(S,"FaceImageQualityGroupsStrings",function(){return m});let m={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"};var P={};s(P,"FaceImageQualityStatus",function(){return y});let y={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var D={};s(D,"FaceQualityConfigName",function(){return f});let f={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"};var L={};s(L,"FaceQualityScenarios",function(){return G});let G={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""};var N={};s(N,"FaceSDKResultCode",function(){return F});let F={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252,FACER_GENERAL_ERROR:253,FACER_PASSIVE_LIVENESS_FAIL:254};var U={};s(U,"ImageSource",function(){return w});let w={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7};var b={};s(b,"MatchRequestOutputImageParamsCropTypeEnum",function(){return H});let H={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4};a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,_),a(g,R),a(g,O),a(g,S),a(g,P),a(g,D),a(g,L),a(g,{}),a(g,N),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,U),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,b),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{});class M{async match(e,a,s){for(let a of e.images)a.type||(a.type=w.LIVE),"string"!=typeof a.data&&(a.data=t(a.data));return(await this.superClass.match(e,a,s)).data}async detect(e,a,s){return e.image&&"string"!=typeof e.image&&(e.image=t(e.image)),(await this.superClass.detect(e,a,s)).data}constructor(e,t,a){this.superClass=new I(e,t,a)}}let x=function(t){let a=async(e,a,s={})=>{let n;l("createGroup","groupToCreate",e);let r=new URL("/api/groups",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},s=async(e,a,s={})=>{let n;l("deleteGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},n=async(e,a,s,n={})=>{let r;let o=new URL("/api/groups",u);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},l={},p={};void 0!==e&&(p.page=e),void 0!==a&&(p.size=a),null!=s&&(l["X-RequestID"]=String(s)),d(o,p);let h=r&&r.headers?r.headers:{};return i.headers={...l,...h,...n.headers},{url:c(o),options:i}},o=async(e,a,s,n,r={})=>{let o;l("getAllPersonsByGroupId","groupId",e);let i=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},i=async(e,a,s={})=>{let n;l("getGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"GET",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},E=async(e,a,s,n={})=>{let r;l("updateGroup","groupId",e),l("updateGroup","groupToCreate",a);let o=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}},I=async(e,a,s,n={})=>{let r;l("updatePersonsInGroup","groupId",e),l("updatePersonsInGroup","updateGroup",a);let o=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}};return{createGroup:async(s,n,o)=>h(await a(s,n,o),e,r,t),deleteGroup:async(a,n,o)=>h(await s(a,n,o),e,r,t),getAllGroups:async(a,s,o,i)=>h(await n(a,s,o,i),e,r,t),getAllPersonsByGroupId:async(a,s,n,i,u)=>h(await o(a,s,n,i,u),e,r,t),getGroup:async(a,s,n)=>h(await i(a,s,n),e,r,t),updateGroup:async(a,s,n,o)=>h(await E(a,s,n,o),e,r,t),updatePersonsInGroup:async(a,s,n,o)=>h(await I(a,s,n,o),e,r,t)}};class v extends o{createGroup(e,t,a){return x(this.configuration).createGroup(e,t,a).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,a){return x(this.configuration).deleteGroup(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,a,s){return x(this.configuration).getAllGroups(e,t,a,s).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,a,s,n){return x(this.configuration).getAllPersonsByGroupId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,a){return x(this.configuration).getGroup(e,t,a).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,a,s){return x(this.configuration).updateGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,a,s){return x(this.configuration).updatePersonsInGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class ${async createGroup(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createGroup(s,t,a)).data}async deleteGroup(e,t,a){await this.superClass.deleteGroup(e,t,a)}async getAllGroups(e,t,a,s){return(await this.superClass.getAllGroups(e,t,a,s)).data}async getAllPersonsByGroupId(e,t,a,s,n){return(await this.superClass.getAllPersonsByGroupId(a,e,t,s,n)).data}async getGroup(e,t,a){return(await this.superClass.getGroup(e,t,a)).data}async updateGroup(e,t,a,s){await this.superClass.updateGroup(e,t,a,s)}async updatePersonsInGroup(e,t,a,s){await this.superClass.updatePersonsInGroup(e,t,a,s)}constructor(e,t,a){this.superClass=new v(e,t,a)}}let B=function(t){let a=async(e,a,s,n={})=>{let r;l("addImageToPerson","personId",e),l("addImageToPerson","addImageToPersonRequest",a);let o=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"POST",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}},s=async(e,a,s={})=>{let n;l("createPerson","personFields",e);let r=new URL("/api/persons",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},n=async(e,a,s,n={})=>{let r;l("deleteImageOfPerson","imageId",e),l("deleteImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),u);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...n.headers},{url:c(o),options:i}},o=async(e,a,s={})=>{let n;l("deletePerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},i=async(e,a,s,n,r={})=>{let o;l("getAllGroupsByPersonId","personId",e);let i=new URL("/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},E=async(e,a,s,n,r={})=>{let o;l("getAllImagesByPersonId","personId",e);let i=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},I=async(e,a,s,n={})=>{let r;l("getImageOfPerson","imageId",e),l("getImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),u);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...n.headers},{url:c(o),options:i}},g=async(e,a,s={})=>{let n;l("getPerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"GET",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},_=async(e,a,s,n={})=>{let r;l("updatePerson","personId",e),l("updatePerson","personToUpdateFields",a);let o=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}};return{addImageToPerson:async(s,n,o,i)=>h(await a(s,n,o,i),e,r,t),createPerson:async(a,n,o)=>h(await s(a,n,o),e,r,t),deleteImageOfPerson:async(a,s,o,i)=>h(await n(a,s,o,i),e,r,t),deletePerson:async(a,s,n)=>h(await o(a,s,n),e,r,t),getAllGroupsByPersonId:async(a,s,n,o,u)=>h(await i(a,s,n,o,u),e,r,t),getAllImagesByPersonId:async(a,s,n,o,i)=>h(await E(a,s,n,o,i),e,r,t),getImageOfPerson:async(a,s,n,o)=>h(await I(a,s,n,o),e,r,t),getPerson:async(a,s,n)=>h(await g(a,s,n),e,r,t),updatePerson:async(a,s,n,o)=>h(await _(a,s,n,o),e,r,t)}};class Y extends o{addImageToPerson(e,t,a,s){return B(this.configuration).addImageToPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}createPerson(e,t,a){return B(this.configuration).createPerson(e,t,a).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,a,s){return B(this.configuration).deleteImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,a){return B(this.configuration).deletePerson(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,a,s,n){return B(this.configuration).getAllGroupsByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,a,s,n){return B(this.configuration).getAllImagesByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,a,s){return B(this.configuration).getImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}getPerson(e,t,a){return B(this.configuration).getPerson(e,t,a).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,a,s){return B(this.configuration).updatePerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class q{async createPerson(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createPerson(s,t,a)).data}async addImageToPerson(e,a,s,n){var r;return(null==a?void 0:null===(r=a.image)||void 0===r?void 0:r.content)&&"string"!=typeof a.image.content&&(a.image.content=t(a.image.content)),(await this.superClass.addImageToPerson(e,a,s,n)).data}async deleteImageOfPerson(e,t,a,s){await this.superClass.deleteImageOfPerson(e,t,a,s)}async deletePerson(e,t,a){await this.superClass.deletePerson(e,t,a)}async getAllGroupsByPersonId(e,t,a,s,n){return(await this.superClass.getAllGroupsByPersonId(a,e,t,s,n)).data}async getAllImagesByPersonId(e,t,a,s,n){return(await this.superClass.getAllImagesByPersonId(a,e,t,s,n)).data}async getImageOfPerson(e,t,a,s){return(await this.superClass.getImageOfPerson(e,t,a,s)).data}async getPerson(e,t,a){return(await this.superClass.getPerson(e,t,a)).data}async updatePerson(e,t,a,s){await this.superClass.updatePerson(e,t,a,s)}constructor(e,t,a){this.superClass=new Y(e,t,a)}}let Q=function(t){let a=async(e,a,s={})=>{let n;l("search","searchRequest",e);let r=new URL("/api/search",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}};return{search:async(s,n,o)=>h(await a(s,n,o),e,r,t)}};class V extends o{search(e,t,a){return Q(this.configuration).search(e,t,a).then(e=>e(this.axios,this.basePath))}}class X{async search(e,a,s){var n;return(null==e?void 0:null===(n=e.image)||void 0===n?void 0:n.content)&&"string"!=typeof e.image.content&&(e.image.content=t(e.image.content)),(await this.superClass.search(e,a,s)).data}constructor(e,t,a){this.superClass=new V(e,t,a)}}let K=function(t){let a=async(e,a={})=>{let s;let n=new URL("/api/readiness",u);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};null!=e&&(o["X-RequestID"]=String(e)),d(n,{});let i=s&&s.headers?s.headers:{};return r.headers={...o,...i,...a.headers},{url:c(n),options:r}};return{readiness:async(s,n)=>h(await a(s,n),e,r,t)}};class W extends o{readiness(e,t){return K(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class j{async readiness(e,t){return(await this.superClass.readiness(e,t)).data}constructor(e,t,a){this.superClass=new W(e,t,a)}}let k=function(t){let a=async(e,a={})=>{let s;l("getLivenessTransactionInfo","transactionId",e);let n=new URL("/api/v2/liveness",u);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};void 0!==e&&(o.transactionId=e),d(n,o);let i=s&&s.headers?s.headers:{};return r.headers={...i,...a.headers},{url:c(n),options:r}};return{getLivenessTransactionInfo:async(s,n)=>h(await a(s,n),e,r,t)}};class z extends o{getLivenessTransactionInfo(e,t){return k(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class Z{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,a){this.superClass=new z(e,t,a)}}class J{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,this.matchingApi=new M(t,a,s),this.groupApi=new $(t,a,s),this.personApi=new q(t,a,s),this.searchApi=new X(t,a,s),this.diagnosticsApi=new j(t,a,s),this.livenessApi=new Z(t,a,s)}}a({},n),s({},"Configuration",function(){return ee});class ee{isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}export{J as FaceSdk,ee as Configuration,A as FaceAttribute,C as FaceImageQualityAlignType,T as FaceImageQualityGroups,m as FaceImageQualityGroupsStrings,y as FaceImageQualityStatus,f as FaceQualityConfigName,G as FaceQualityScenarios,F as FaceSDKResultCode,w as ImageSource,H as MatchRequestOutputImageParamsCropTypeEnum};
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from "axios";
2
2
  /**
3
- * Regula FaceSDK Web API
4
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
3
+ * Regula Face SDK Web API
4
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
5
5
  *
6
6
  * The version of the OpenAPI document: 6.1.0
7
7
  *
@@ -83,8 +83,8 @@ export class Configuration {
83
83
  isJsonMime(mime: string): boolean;
84
84
  }
85
85
  /**
86
- * Regula FaceSDK Web API
87
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
86
+ * Regula Face SDK Web API
87
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
88
88
  *
89
89
  * The version of the OpenAPI document: 6.1.0
90
90
  *
@@ -183,8 +183,8 @@ export interface AddImageToPersonRequest {
183
183
  'limit'?: number;
184
184
  }
185
185
  /**
186
- * Regula FaceSDK Web API
187
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
186
+ * Regula Face SDK Web API
187
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
188
188
  *
189
189
  * The version of the OpenAPI document: 6.1.0
190
190
  *
@@ -239,8 +239,8 @@ export interface AddImageToPersonResponse {
239
239
  };
240
240
  }
241
241
  /**
242
- * Regula FaceSDK Web API
243
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
242
+ * Regula Face SDK Web API
243
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
244
244
  *
245
245
  * The version of the OpenAPI document: 6.1.0
246
246
  *
@@ -284,8 +284,8 @@ export interface AttributeConfig {
284
284
  'name'?: FaceAttribute;
285
285
  }
286
286
  /**
287
- * Regula FaceSDK Web API
288
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
287
+ * Regula Face SDK Web API
288
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
289
289
  *
290
290
  * The version of the OpenAPI document: 6.1.0
291
291
  *
@@ -339,8 +339,8 @@ export interface Crop {
339
339
  'returnOriginalRect'?: boolean;
340
340
  }
341
341
  /**
342
- * Regula FaceSDK Web API
343
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
342
+ * Regula Face SDK Web API
343
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
344
344
  *
345
345
  * The version of the OpenAPI document: 6.1.0
346
346
  *
@@ -399,8 +399,8 @@ export interface ProcessParamAttributes {
399
399
  'config'?: Array<AttributeConfig>;
400
400
  }
401
401
  /**
402
- * Regula FaceSDK Web API
403
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
402
+ * Regula Face SDK Web API
403
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
404
404
  *
405
405
  * The version of the OpenAPI document: 6.1.0
406
406
  *
@@ -547,7 +547,7 @@ export interface ProcessParam {
547
547
  */
548
548
  export interface DetectRequest {
549
549
  /**
550
- * Session identificator.
550
+ * Session identificator, should be unique for each session.
551
551
  * @type {string}
552
552
  * @memberof DetectRequest
553
553
  */
@@ -572,8 +572,8 @@ export interface DetectRequest {
572
572
  'thumbnails'?: boolean;
573
573
  }
574
574
  /**
575
- * Regula FaceSDK Web API
576
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
575
+ * Regula Face SDK Web API
576
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
577
577
  *
578
578
  * The version of the OpenAPI document: 6.1.0
579
579
  *
@@ -604,8 +604,8 @@ export interface DetectionAttributes {
604
604
  'elapsedTime'?: number;
605
605
  }
606
606
  /**
607
- * Regula FaceSDK Web API
608
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
607
+ * Regula Face SDK Web API
608
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
609
609
  *
610
610
  * The version of the OpenAPI document: 6.1.0
611
611
  *
@@ -631,8 +631,8 @@ export const FaceImageQualityGroups: {
631
631
  };
632
632
  export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeof FaceImageQualityGroups];
633
633
  /**
634
- * Regula FaceSDK Web API
635
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
634
+ * Regula Face SDK Web API
635
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
636
636
  *
637
637
  * The version of the OpenAPI document: 6.1.0
638
638
  *
@@ -690,8 +690,8 @@ export interface QualityDetail {
690
690
  'value'?: number;
691
691
  }
692
692
  /**
693
- * Regula FaceSDK Web API
694
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
693
+ * Regula Face SDK Web API
694
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
695
695
  *
696
696
  * The version of the OpenAPI document: 6.1.0
697
697
  *
@@ -821,9 +821,10 @@ export interface Detection {
821
821
  */
822
822
  'roi': Array<number>;
823
823
  /**
824
- * Base64 of the cropped portrait.
824
+ * See `crop` instead.
825
825
  * @type {string}
826
826
  * @memberof Detection
827
+ * @deprecated
827
828
  */
828
829
  'thumbnail'?: string;
829
830
  }
@@ -878,8 +879,8 @@ export interface DetectResponseAllOf {
878
879
  'results'?: DetectResult;
879
880
  }
880
881
  /**
881
- * Regula FaceSDK Web API
882
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
882
+ * Regula Face SDK Web API
883
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
883
884
  *
884
885
  * The version of the OpenAPI document: 6.1.0
885
886
  *
@@ -889,7 +890,7 @@ export interface DetectResponseAllOf {
889
890
  * Do not edit the class manually.
890
891
  */
891
892
  /**
892
- * The result code, see enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
893
+ * The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/). Some of the values: - `0`—everything is OK - `1`—image is empty, try again with another image - `2`—face is not detected - `6`—data cannot be decoded as an image
893
894
  * @export
894
895
  * @enum {string}
895
896
  */
@@ -933,6 +934,8 @@ export const FaceSDKResultCode: {
933
934
  readonly FACER_TIMEOUT_LIVENESS_TRANSACTION: 250;
934
935
  readonly FACER_FAILED_LIVENESS_TRANSACTION: 251;
935
936
  readonly FACER_ABORTED_LIVENESS_TRANSACTION: 252;
937
+ readonly FACER_GENERAL_ERROR: 253;
938
+ readonly FACER_PASSIVE_LIVENESS_FAIL: 254;
936
939
  };
937
940
  export type FaceSDKResultCode = (typeof FaceSDKResultCode)[keyof typeof FaceSDKResultCode];
938
941
  /**
@@ -954,8 +957,8 @@ export interface FaceSDKResult {
954
957
  */
955
958
  export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
956
959
  /**
957
- * Regula FaceSDK Web API
958
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
960
+ * Regula Face SDK Web API
961
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
959
962
  *
960
963
  * The version of the OpenAPI document: 6.1.0
961
964
  *
@@ -995,21 +998,22 @@ export interface DetectionFace {
995
998
  */
996
999
  'roi'?: Array<number>;
997
1000
  /**
998
- * Base64 of the cropped portrait.
1001
+ * See `crop` instead.
999
1002
  * @type {string}
1000
1003
  * @memberof DetectionFace
1004
+ * @deprecated
1001
1005
  */
1002
1006
  'thumbnail'?: string;
1003
1007
  /**
1004
- * Base64 of the cropped portrait.
1008
+ * Base64-encoded aligned and cropped portrait.
1005
1009
  * @type {string}
1006
1010
  * @memberof DetectionFace
1007
1011
  */
1008
1012
  'crop'?: string;
1009
1013
  }
1010
1014
  /**
1011
- * Regula FaceSDK Web API
1012
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1015
+ * Regula Face SDK Web API
1016
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1013
1017
  *
1014
1018
  * The version of the OpenAPI document: 6.1.0
1015
1019
  *
@@ -1050,8 +1054,8 @@ export interface PersonAllOf {
1050
1054
  'groups'?: Array<string>;
1051
1055
  }
1052
1056
  /**
1053
- * Regula FaceSDK Web API
1054
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1057
+ * Regula Face SDK Web API
1058
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1055
1059
  *
1056
1060
  * The version of the OpenAPI document: 6.1.0
1057
1061
  *
@@ -1067,7 +1071,7 @@ export interface PersonAllOf {
1067
1071
  */
1068
1072
  export interface PersonFields {
1069
1073
  /**
1070
- * Person name.
1074
+ * Person\'s name.
1071
1075
  * @type {string}
1072
1076
  * @memberof PersonFields
1073
1077
  */
@@ -1094,8 +1098,8 @@ export interface PersonFields {
1094
1098
  */
1095
1099
  export type Person = PersonAllOf & PersonFields;
1096
1100
  /**
1097
- * Regula FaceSDK Web API
1098
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1101
+ * Regula Face SDK Web API
1102
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1099
1103
  *
1100
1104
  * The version of the OpenAPI document: 6.1.0
1101
1105
  *
@@ -1156,8 +1160,8 @@ export interface Image {
1156
1160
  };
1157
1161
  }
1158
1162
  /**
1159
- * Regula FaceSDK Web API
1160
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1163
+ * Regula Face SDK Web API
1164
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1161
1165
  *
1162
1166
  * The version of the OpenAPI document: 6.1.0
1163
1167
  *
@@ -1197,7 +1201,7 @@ export type RecognizeImage = Image & RecognizeImageAllOf;
1197
1201
  */
1198
1202
  export interface PersonWithImagesAllOf {
1199
1203
  /**
1200
- *
1204
+ * Detected Persons.
1201
1205
  * @type {Array<RecognizeImage>}
1202
1206
  * @memberof PersonWithImagesAllOf
1203
1207
  */
@@ -1215,7 +1219,7 @@ export type PersonWithImages = Person & PersonWithImagesAllOf;
1215
1219
  */
1216
1220
  export interface FacesResponseAllOf {
1217
1221
  /**
1218
- *
1222
+ * Detected Persons.
1219
1223
  * @type {Array<PersonWithImages>}
1220
1224
  * @memberof FacesResponseAllOf
1221
1225
  */
@@ -1233,8 +1237,8 @@ export interface FacesResponseAllOf {
1233
1237
  */
1234
1238
  export type FacesResponse = DetectionFace & FacesResponseAllOf;
1235
1239
  /**
1236
- * Regula FaceSDK Web API
1237
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1240
+ * Regula Face SDK Web API
1241
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1238
1242
  *
1239
1243
  * The version of the OpenAPI document: 6.1.0
1240
1244
  *
@@ -1263,8 +1267,8 @@ export interface GroupAllOf {
1263
1267
  'createdAt'?: string;
1264
1268
  }
1265
1269
  /**
1266
- * Regula FaceSDK Web API
1267
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1270
+ * Regula Face SDK Web API
1271
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1268
1272
  *
1269
1273
  * The version of the OpenAPI document: 6.1.0
1270
1274
  *
@@ -1313,8 +1317,8 @@ export interface GroupPageAllOf {
1313
1317
  'items'?: Array<Group>;
1314
1318
  }
1315
1319
  /**
1316
- * Regula FaceSDK Web API
1317
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1320
+ * Regula Face SDK Web API
1321
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1318
1322
  *
1319
1323
  * The version of the OpenAPI document: 6.1.0
1320
1324
  *
@@ -1348,8 +1352,8 @@ export interface Page {
1348
1352
  */
1349
1353
  export type GroupPage = GroupPageAllOf & Page;
1350
1354
  /**
1351
- * Regula FaceSDK Web API
1352
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1355
+ * Regula Face SDK Web API
1356
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1353
1357
  *
1354
1358
  * The version of the OpenAPI document: 6.1.0
1355
1359
  *
@@ -1392,7 +1396,7 @@ export interface GroupToCreate {
1392
1396
  */
1393
1397
  export interface ImageFields {
1394
1398
  /**
1395
- * Session identificator.
1399
+ * Session identificator, should be unique for each session.
1396
1400
  * @type {string}
1397
1401
  * @memberof ImageFields
1398
1402
  */
@@ -1410,7 +1414,7 @@ export interface ImageFields {
1410
1414
  */
1411
1415
  'outputImageParams'?: OutputImageParams;
1412
1416
  /**
1413
- * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1417
+ * Whether to detect all faces in the image. If set to `false`, only the most central face is detected.
1414
1418
  * @type {boolean}
1415
1419
  * @memberof ImageFields
1416
1420
  */
@@ -1447,8 +1451,8 @@ export interface ImagePageAllOf {
1447
1451
  */
1448
1452
  export type ImagePage = ImagePageAllOf & Page;
1449
1453
  /**
1450
- * Regula FaceSDK Web API
1451
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1454
+ * Regula Face SDK Web API
1455
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1452
1456
  *
1453
1457
  * The version of the OpenAPI document: 6.1.0
1454
1458
  *
@@ -1458,7 +1462,7 @@ export type ImagePage = ImagePageAllOf & Page;
1458
1462
  * Do not edit the class manually.
1459
1463
  */
1460
1464
  /**
1461
- * The type of the image, defines the way the comparison is performed. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/
1465
+ * The type of the image, defines the way the comparison is performed, see the [ImageSource enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/).
1462
1466
  * @export
1463
1467
  * @enum {string}
1464
1468
  */
@@ -1469,6 +1473,7 @@ export const ImageSource: {
1469
1473
  readonly DOCUMENT_WITH_LIVE: 4;
1470
1474
  readonly EXTERNAL: 5;
1471
1475
  readonly GHOST: 6;
1476
+ readonly BARCODE: 7;
1472
1477
  };
1473
1478
  export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
1474
1479
  /**
@@ -1497,13 +1502,13 @@ export interface MatchAndSearchRequestAllOfImages {
1497
1502
  */
1498
1503
  export interface MatchAndSearchRequestAllOf {
1499
1504
  /**
1500
- * Session identificator.
1505
+ * Session identificator, should be unique for each session.
1501
1506
  * @type {string}
1502
1507
  * @memberof MatchAndSearchRequestAllOf
1503
1508
  */
1504
1509
  'tag'?: string;
1505
1510
  /**
1506
- * Array of Person images.
1511
+ * Person\'s images.
1507
1512
  * @type {Array<MatchAndSearchRequestAllOfImages>}
1508
1513
  * @memberof MatchAndSearchRequestAllOf
1509
1514
  */
@@ -1527,13 +1532,13 @@ export type MatchAndSearchRequest = MatchAndSearchRequestAllOf;
1527
1532
  */
1528
1533
  export interface MatchAndSearchResponseAllOfDetections {
1529
1534
  /**
1530
- *
1535
+ * Detected faces.
1531
1536
  * @type {Array<FacesResponse>}
1532
1537
  * @memberof MatchAndSearchResponseAllOfDetections
1533
1538
  */
1534
1539
  'faces'?: Array<FacesResponse>;
1535
1540
  /**
1536
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1541
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated.
1537
1542
  * @type {number}
1538
1543
  * @memberof MatchAndSearchResponseAllOfDetections
1539
1544
  */
@@ -1552,7 +1557,7 @@ export interface MatchAndSearchResponseAllOfDetections {
1552
1557
  */
1553
1558
  export interface MatchImageResult {
1554
1559
  /**
1555
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1560
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated.
1556
1561
  * @type {number}
1557
1562
  * @memberof MatchImageResult
1558
1563
  */
@@ -1570,7 +1575,7 @@ export interface MatchImageResult {
1570
1575
  */
1571
1576
  'first'?: ImageSource;
1572
1577
  /**
1573
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1578
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated.
1574
1579
  * @type {number}
1575
1580
  * @memberof MatchImageResult
1576
1581
  */
@@ -1607,13 +1612,13 @@ export interface MatchImageResult {
1607
1612
  */
1608
1613
  export interface MatchAndSearchResponseAllOf {
1609
1614
  /**
1610
- *
1615
+ * The match and search results.
1611
1616
  * @type {Array<MatchImageResult>}
1612
1617
  * @memberof MatchAndSearchResponseAllOf
1613
1618
  */
1614
1619
  'results'?: Array<MatchImageResult>;
1615
1620
  /**
1616
- *
1621
+ * Time the processing has taken, ms.
1617
1622
  * @type {number}
1618
1623
  * @memberof MatchAndSearchResponseAllOf
1619
1624
  */
@@ -1627,7 +1632,7 @@ export interface MatchAndSearchResponseAllOf {
1627
1632
  [key: string]: object;
1628
1633
  };
1629
1634
  /**
1630
- *
1635
+ * The detection results.
1631
1636
  * @type {Array<MatchAndSearchResponseAllOfDetections>}
1632
1637
  * @memberof MatchAndSearchResponseAllOf
1633
1638
  */
@@ -1645,7 +1650,7 @@ export type MatchAndSearchResponse = FaceSDKResult & MatchAndSearchResponseAllOf
1645
1650
  */
1646
1651
  export interface MatchImage {
1647
1652
  /**
1648
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1653
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated.
1649
1654
  * @type {number}
1650
1655
  * @memberof MatchImage
1651
1656
  */
@@ -1663,7 +1668,7 @@ export interface MatchImage {
1663
1668
  */
1664
1669
  'data': ImageData;
1665
1670
  /**
1666
- * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1671
+ * Whether to detect all faces in the image. If set to `false`, only the most central face is detected.
1667
1672
  * @type {boolean}
1668
1673
  * @memberof MatchImage
1669
1674
  */
@@ -1676,13 +1681,13 @@ export interface MatchImage {
1676
1681
  */
1677
1682
  export interface MatchImageDetection {
1678
1683
  /**
1679
- * The array of detected faces.
1684
+ * Detected faces.
1680
1685
  * @type {Array<DetectionFace>}
1681
1686
  * @memberof MatchImageDetection
1682
1687
  */
1683
1688
  'faces'?: Array<DetectionFace>;
1684
1689
  /**
1685
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1690
+ * The image index number. Can be given; if not given, the index numbers are set automatically starting from `0`. All index numbers must be whole and unique—not repeated.
1686
1691
  * @type {number}
1687
1692
  * @memberof MatchImageDetection
1688
1693
  */
@@ -1695,8 +1700,8 @@ export interface MatchImageDetection {
1695
1700
  'status': FaceSDKResultCode;
1696
1701
  }
1697
1702
  /**
1698
- * Regula FaceSDK Web API
1699
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1703
+ * Regula Face SDK Web API
1704
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1700
1705
  *
1701
1706
  * The version of the OpenAPI document: 6.1.0
1702
1707
  *
@@ -1706,7 +1711,7 @@ export interface MatchImageDetection {
1706
1711
  * Do not edit the class manually.
1707
1712
  */
1708
1713
  /**
1709
- * Whether to return the Base64 of an aligned and cropped portrait in the `crop` field.
1714
+ * If set, a Base64-encoded aligned and cropped by the indicated settings portrait is returned in the `crop` field.
1710
1715
  * @export
1711
1716
  * @interface MatchRequestOutputImageParamsCrop
1712
1717
  */
@@ -1718,7 +1723,7 @@ export interface MatchRequestOutputImageParamsCrop {
1718
1723
  */
1719
1724
  'padColor'?: Array<number>;
1720
1725
  /**
1721
- * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
1726
+ * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop. Can be used only if the face in the original image is not tilted.
1722
1727
  * @type {boolean}
1723
1728
  * @memberof MatchRequestOutputImageParamsCrop
1724
1729
  */
@@ -1730,7 +1735,7 @@ export interface MatchRequestOutputImageParamsCrop {
1730
1735
  */
1731
1736
  'size'?: Array<number>;
1732
1737
  /**
1733
- * The aspect ratio according to which face alignment is performed during face detection.
1738
+ * The aspect ratio according to which face alignment is performed. See the [FaceImageQualityAlignType enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-image-quality-align-type/). To get a thumbnail with dimensions 3x4, set `0`.
1734
1739
  * @type {number}
1735
1740
  * @memberof MatchRequestOutputImageParamsCrop
1736
1741
  */
@@ -1770,20 +1775,20 @@ export interface MatchRequestOutputImageParams {
1770
1775
  */
1771
1776
  export interface MatchRequest {
1772
1777
  /**
1773
- * Session identificator.
1778
+ * Session identificator, should be unique for each session.
1774
1779
  * @type {string}
1775
1780
  * @memberof MatchRequest
1776
1781
  */
1777
1782
  'tag'?: string;
1778
1783
  /**
1779
- * Deprecated, use the `crop` field in `outputImageParams` instead.
1780
- * @type {boolean}
1784
+ * Use `outputImageParams.crop` instead.
1785
+ * @type {any}
1781
1786
  * @memberof MatchRequest
1782
1787
  * @deprecated
1783
1788
  */
1784
- 'thumbnails'?: boolean;
1789
+ 'thumbnails'?: any;
1785
1790
  /**
1786
- * The array of all images included in the comparison.
1791
+ * All images included in the comparison.
1787
1792
  * @type {Array<MatchImage>}
1788
1793
  * @memberof MatchRequest
1789
1794
  */
@@ -1802,13 +1807,13 @@ export interface MatchRequest {
1802
1807
  */
1803
1808
  export interface MatchResponseAllOf {
1804
1809
  /**
1805
- * The array of detected faces.
1810
+ * The detection results.
1806
1811
  * @type {Array<MatchImageDetection>}
1807
1812
  * @memberof MatchResponseAllOf
1808
1813
  */
1809
1814
  'detections'?: Array<MatchImageDetection>;
1810
1815
  /**
1811
- * The array of matching results.
1816
+ * The comparison results.
1812
1817
  * @type {Array<MatchImageResult>}
1813
1818
  * @memberof MatchResponseAllOf
1814
1819
  */
@@ -1828,8 +1833,8 @@ export interface MatchResponseAllOf {
1828
1833
  */
1829
1834
  export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
1830
1835
  /**
1831
- * Regula FaceSDK Web API
1832
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1836
+ * Regula Face SDK Web API
1837
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1833
1838
  *
1834
1839
  * The version of the OpenAPI document: 6.1.0
1835
1840
  *
@@ -1872,8 +1877,8 @@ export interface OperationLog {
1872
1877
  };
1873
1878
  }
1874
1879
  /**
1875
- * Regula FaceSDK Web API
1876
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1880
+ * Regula Face SDK Web API
1881
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1877
1882
  *
1878
1883
  * The version of the OpenAPI document: 6.1.0
1879
1884
  *
@@ -1889,7 +1894,7 @@ export interface OperationLog {
1889
1894
  */
1890
1895
  export interface PersonToUpdateFields {
1891
1896
  /**
1892
- * Person name.
1897
+ * Person\'s name.
1893
1898
  * @type {string}
1894
1899
  * @memberof PersonToUpdateFields
1895
1900
  */
@@ -1928,8 +1933,8 @@ export interface PersonsPageAllOf {
1928
1933
  */
1929
1934
  export type PersonsPage = Page & PersonsPageAllOf;
1930
1935
  /**
1931
- * Regula FaceSDK Web API
1932
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1936
+ * Regula Face SDK Web API
1937
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1933
1938
  *
1934
1939
  * The version of the OpenAPI document: 6.1.0
1935
1940
  *
@@ -1964,8 +1969,8 @@ export interface SearchBadParams {
1964
1969
  'type'?: string;
1965
1970
  }
1966
1971
  /**
1967
- * Regula FaceSDK Web API
1968
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1972
+ * Regula Face SDK Web API
1973
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
1969
1974
  *
1970
1975
  * The version of the OpenAPI document: 6.1.0
1971
1976
  *
@@ -2048,8 +2053,8 @@ export interface SearchDetection {
2048
2053
  'versionSDK'?: string;
2049
2054
  }
2050
2055
  /**
2051
- * Regula FaceSDK Web API
2052
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2056
+ * Regula Face SDK Web API
2057
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2053
2058
  *
2054
2059
  * The version of the OpenAPI document: 6.1.0
2055
2060
  *
@@ -2170,7 +2175,7 @@ export interface SearchResult {
2170
2175
  */
2171
2176
  'groups'?: Array<string> | null;
2172
2177
  /**
2173
- * Person name.
2178
+ * Person\'s name.
2174
2179
  * @type {string}
2175
2180
  * @memberof SearchResult
2176
2181
  */
@@ -2182,11 +2187,11 @@ export interface SearchResult {
2182
2187
  */
2183
2188
  'metadata'?: {
2184
2189
  [key: string]: object;
2185
- } | null;
2190
+ };
2186
2191
  }
2187
2192
  /**
2188
- * Regula FaceSDK Web API
2189
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2193
+ * Regula Face SDK Web API
2194
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2190
2195
  *
2191
2196
  * The version of the OpenAPI document: 6.1.0
2192
2197
  *
@@ -2214,7 +2219,7 @@ export interface TransactionInfo {
2214
2219
  */
2215
2220
  'status'?: number;
2216
2221
  /**
2217
- * Session identificator.
2222
+ * Session identificator, should be unique for each session.
2218
2223
  * @type {string}
2219
2224
  * @memberof TransactionInfo
2220
2225
  */
@@ -2255,8 +2260,8 @@ export interface TransactionInfo {
2255
2260
  };
2256
2261
  }
2257
2262
  /**
2258
- * Regula FaceSDK Web API
2259
- * [Download OpenAPI specification](https://github.com/regulaforensics/FaceSDK-web-openapi) ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2263
+ * Regula Face SDK Web API
2264
+ * <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face Detection</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face Match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face Search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness Assessment</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
2260
2265
  *
2261
2266
  * The version of the OpenAPI document: 6.1.0
2262
2267
  *
@@ -2372,7 +2377,7 @@ type TDetectResponse = {
2372
2377
  } & FaceSDKResult;
2373
2378
  declare class MatchingApi {
2374
2379
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2375
- match(compareRequest: MatchRequest, xRequestID: string, options?: AxiosRequestConfig): Promise<MatchResponse>;
2380
+ match(compareRequest: MatchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<MatchResponse>;
2376
2381
  detect(detectRequest: DetectRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<TDetectResponse>;
2377
2382
  }
2378
2383
  declare class GroupApi {
@@ -2388,7 +2393,7 @@ declare class GroupApi {
2388
2393
  declare class PersonApi {
2389
2394
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2390
2395
  createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
2391
- addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Image>;
2396
+ addImageToPerson(personId: string, imageFields: AddImageToPersonRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<Image>;
2392
2397
  deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2393
2398
  deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2394
2399
  getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<GroupPage>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/facesdk-webclient",
3
- "version": "6.1.1",
3
+ "version": "6.1.2-beta.0",
4
4
  "description": "JS client for facesdk web service",
5
5
  "author": "Regula Forensics, Inc.",
6
6
  "keywords": [
@@ -12,7 +12,8 @@
12
12
  "license": "MIT",
13
13
  "exports": {
14
14
  "import": "./dist/module/index.js",
15
- "require": "./dist/main/index.cjs"
15
+ "require": "./dist/main/index.cjs",
16
+ "types": "./lib/index.d.ts"
16
17
  },
17
18
  "main": "dist/main/index.cjs",
18
19
  "module": "dist/module/index.js",
@@ -27,7 +28,7 @@
27
28
  "check-types": "tsc --noEmit",
28
29
  "format": "eslint --fix",
29
30
  "build": "parcel build",
30
- "prepare": "husky install"
31
+ "prepare": "husky"
31
32
  },
32
33
  "lint-staged": {
33
34
  "*.{js,ts}": "eslint --fix"
@@ -50,23 +51,23 @@
50
51
  }
51
52
  },
52
53
  "dependencies": {
53
- "@swc/helpers": "^0.5.3",
54
- "axios": "^1.6.0",
54
+ "@swc/helpers": "^0.5.11",
55
+ "axios": "^1.6.8",
55
56
  "base64-arraybuffer": "^1.0.2"
56
57
  },
57
58
  "devDependencies": {
58
- "@parcel/packager-ts": "^2.10.0",
59
- "@parcel/transformer-typescript-types": "^2.10.0",
60
- "@types/node": "^12.11.5",
59
+ "@parcel/packager-ts": "^2.12.0",
60
+ "@parcel/transformer-typescript-types": "^2.12.0",
61
+ "@types/node": "^20.12.12",
61
62
  "@typescript-eslint/eslint-plugin": "^5.38.0",
62
63
  "@typescript-eslint/parser": "^5.38.0",
63
64
  "eslint": "^8.51.0",
64
- "eslint-config-prettier": "^9.0.0",
65
- "eslint-plugin-prettier": "^5.0.0",
65
+ "eslint-config-prettier": "^9.1.0",
66
+ "eslint-plugin-prettier": "^5.1.3",
66
67
  "eslint-plugin-unused-imports": "^2.0.0",
67
- "husky": "^8.0.3",
68
- "lint-staged": "^15.0.2",
69
- "parcel": "^2.10.0",
70
- "typescript": "^5.2.2"
68
+ "husky": "^9.0.11",
69
+ "lint-staged": "^15.2.2",
70
+ "parcel": "^2.12.0",
71
+ "typescript": "^5.4.5"
71
72
  }
72
73
  }