@regulaforensics/facesdk-webclient 6.1.2 → 6.2.0-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("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
+ 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 er});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",c=function(e,t,s){if(null==s)throw new d(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},h=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;c("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",h(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;c("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",h(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;c("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",h(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 y});const y={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 D={};n(D,"FaceImageQualityStatus",function(){return L});const L={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var N={};n(N,"FaceQualityConfigName",function(){return G});const 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 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,"FilterOp",function(){return M});const M={IN:"in",NOT_IN:"nin"};var b={};n(b,"ImageSource",function(){return v});const v={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7};var x={};n(x,"LivenessType",function(){return B});const B={ACTIVE:0,PASSIVE:1};var q={};n(q,"MatchRequestOutputImageParamsCropTypeEnum",function(){return Y});const Y={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,D),s(g,N),s(g,f),s(g,{}),s(g,U),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,x),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,{}),s(g,q),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 V{async match(e,s,a){for(let s of e.images)s.type||(s.type=v.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 X=function(t){let s=async(e,s,a={})=>{let n;c("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",h(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;c("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)),h(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)),h(o,d);let c=r&&r.headers?r.headers:{};return i.headers={...u,...c,...n.headers},{url:E(o),options:i}},o=async(e,s,a,n,r={})=>{let o;c("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)),h(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;c("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)),h(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;c("updateGroup","groupId",e),c("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",h(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;c("updatePersonsInGroup","groupId",e),c("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",h(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 X(this.configuration).createGroup(e,t,s).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,s){return X(this.configuration).deleteGroup(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,s,a){return X(this.configuration).getAllGroups(e,t,s,a).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,s,a,n){return X(this.configuration).getAllPersonsByGroupId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,s){return X(this.configuration).getGroup(e,t,s).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,s,a){return X(this.configuration).updateGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,s,a){return X(this.configuration).updatePersonsInGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}}class W{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 K=function(t){let s=async(e,s,a,n={})=>{let r;c("addImageToPerson","personId",e),c("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",h(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;c("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",h(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;c("deleteImageOfPerson","imageId",e),c("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)),h(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;c("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)),h(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;c("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)),h(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;c("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)),h(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;c("getImageOfPerson","imageId",e),c("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)),h(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;c("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)),h(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;c("updatePerson","personId",e),c("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",h(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 j extends u{addImageToPerson(e,t,s,a){return K(this.configuration).addImageToPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}createPerson(e,t,s){return K(this.configuration).createPerson(e,t,s).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,s,a){return K(this.configuration).deleteImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,s){return K(this.configuration).deletePerson(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,s,a,n){return K(this.configuration).getAllGroupsByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,s,a,n){return K(this.configuration).getAllImagesByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,s,a){return K(this.configuration).getImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}getPerson(e,t,s){return K(this.configuration).getPerson(e,t,s).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,s,a){return K(this.configuration).updatePerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}}class k{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 j(e,t,s)}}const z=function(t){let s=async(e,s,a={})=>{let n;c("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",h(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 Z extends u{search(e,t,s){return z(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 Z(e,t,s)}}const $=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)),h(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 ee extends u{readiness(e,t){return $(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class et{async readiness(e,t){return(await this.superClass.readiness(e,t)).data}constructor(e,t,s){this.superClass=new ee(e,t,s)}}const es=function(t){let s=async(e,s={})=>{let a;c("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),h(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 ea extends u{getLivenessTransactionInfo(e,t){return es(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class en{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,s){this.superClass=new ea(e,t,s)}}class er{constructor(t,s=i,n=a(e)){this.basePath=s,this.axios=n,this.matchingApi=new V(t,s,n),this.groupApi=new W(t,s,n),this.personApi=new k(t,s,n),this.searchApi=new J(t,s,n),this.diagnosticsApi=new et(t,s,n),this.livenessApi=new en(t,s,n)}}s(r,o);var eo={};n(eo,"Configuration",function(){return ei});class ei{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,eo),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||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};
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 es});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 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 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 f={};s(f,"FaceQualityConfigName",function(){return D});let D={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,"FilterOp",function(){return w});let w={IN:"in",NOT_IN:"nin"};var b={};s(b,"ImageSource",function(){return H});let H={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7};var M={};s(M,"LivenessType",function(){return x});let x={ACTIVE:0,PASSIVE:1};var v={};s(v,"MatchRequestOutputImageParamsCropTypeEnum",function(){return $});let $={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,T),a(g,S),a(g,P),a(g,f),a(g,L),a(g,{}),a(g,N),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,M),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,v),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 B{async match(e,a,s){for(let a of e.images)a.type||(a.type=H.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 Y=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 q extends o{createGroup(e,t,a){return Y(this.configuration).createGroup(e,t,a).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,a){return Y(this.configuration).deleteGroup(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,a,s){return Y(this.configuration).getAllGroups(e,t,a,s).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,a,s,n){return Y(this.configuration).getAllPersonsByGroupId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,a){return Y(this.configuration).getGroup(e,t,a).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,a,s){return Y(this.configuration).updateGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,a,s){return Y(this.configuration).updatePersonsInGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class V{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 q(e,t,a)}}let Q=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 X extends o{addImageToPerson(e,t,a,s){return Q(this.configuration).addImageToPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}createPerson(e,t,a){return Q(this.configuration).createPerson(e,t,a).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,a,s){return Q(this.configuration).deleteImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,a){return Q(this.configuration).deletePerson(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,a,s,n){return Q(this.configuration).getAllGroupsByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,a,s,n){return Q(this.configuration).getAllImagesByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,a,s){return Q(this.configuration).getImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}getPerson(e,t,a){return Q(this.configuration).getPerson(e,t,a).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,a,s){return Q(this.configuration).updatePerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class K{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 X(e,t,a)}}let W=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 j extends o{search(e,t,a){return W(this.configuration).search(e,t,a).then(e=>e(this.axios,this.basePath))}}class k{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 j(e,t,a)}}let z=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 Z extends o{readiness(e,t){return z(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 Z(e,t,a)}}let ee=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 et extends o{getLivenessTransactionInfo(e,t){return ee(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class ea{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,a){this.superClass=new et(e,t,a)}}class es{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,this.matchingApi=new B(t,a,s),this.groupApi=new V(t,a,s),this.personApi=new K(t,a,s),this.searchApi=new k(t,a,s),this.diagnosticsApi=new J(t,a,s),this.livenessApi=new ea(t,a,s)}}a({},n),s({},"Configuration",function(){return en});class en{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{es as FaceSdk,en as Configuration,A as FaceAttribute,C as FaceImageQualityAlignType,O as FaceImageQualityGroups,m as FaceImageQualityGroupsStrings,y as FaceImageQualityStatus,D as FaceQualityConfigName,G as FaceQualityScenarios,F as FaceSDKResultCode,w as FilterOp,H as ImageSource,x as LivenessType,$ as MatchRequestOutputImageParamsCropTypeEnum};
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosRequestConfig, AxiosInstance } from "axios";
2
2
  /**
3
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -84,7 +84,7 @@ export class Configuration {
84
84
  }
85
85
  /**
86
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -184,7 +184,7 @@ export interface AddImageToPersonRequest {
184
184
  }
185
185
  /**
186
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -240,7 +240,7 @@ export interface AddImageToPersonResponse {
240
240
  }
241
241
  /**
242
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -285,7 +285,7 @@ export interface AttributeConfig {
285
285
  }
286
286
  /**
287
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -340,7 +340,7 @@ export interface Crop {
340
340
  }
341
341
  /**
342
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -400,7 +400,7 @@ export interface ProcessParamAttributes {
400
400
  }
401
401
  /**
402
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -573,7 +573,7 @@ export interface DetectRequest {
573
573
  }
574
574
  /**
575
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -605,7 +605,7 @@ export interface DetectionAttributes {
605
605
  }
606
606
  /**
607
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -632,7 +632,7 @@ export const FaceImageQualityGroups: {
632
632
  export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeof FaceImageQualityGroups];
633
633
  /**
634
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -691,7 +691,7 @@ export interface QualityDetail {
691
691
  }
692
692
  /**
693
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
  *
@@ -880,7 +880,7 @@ export interface DetectResponseAllOf {
880
880
  }
881
881
  /**
882
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
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
884
884
  *
885
885
  * The version of the OpenAPI document: 6.1.0
886
886
  *
@@ -890,7 +890,7 @@ export interface DetectResponseAllOf {
890
890
  * Do not edit the class manually.
891
891
  */
892
892
  /**
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
+ * The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
894
894
  * @export
895
895
  * @enum {string}
896
896
  */
@@ -958,7 +958,7 @@ export interface FaceSDKResult {
958
958
  export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
959
959
  /**
960
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
962
962
  *
963
963
  * The version of the OpenAPI document: 6.1.0
964
964
  *
@@ -1013,7 +1013,7 @@ export interface DetectionFace {
1013
1013
  }
1014
1014
  /**
1015
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
1017
1017
  *
1018
1018
  * The version of the OpenAPI document: 6.1.0
1019
1019
  *
@@ -1055,7 +1055,7 @@ export interface PersonAllOf {
1055
1055
  }
1056
1056
  /**
1057
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
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 and image quality assurance. 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 and image quality assessment</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 detection</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
1059
1059
  *
1060
1060
  * The version of the OpenAPI document: 6.1.0
1061
1061
  *
@@ -1076,6 +1076,12 @@ export interface PersonFields {
1076
1076
  * @memberof PersonFields
1077
1077
  */
1078
1078
  'name': string;
1079
+ /**
1080
+ * Person\'s ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional.
1081
+ * @type {string}
1082
+ * @memberof PersonFields
1083
+ */
1084
+ 'externalId'?: string;
1079
1085
  /**
1080
1086
  * A free-form object containing person\'s extended attributes.
1081
1087
  * @type {{ [key: string]: object; }}
@@ -1099,7 +1105,7 @@ export interface PersonFields {
1099
1105
  export type Person = PersonAllOf & PersonFields;
1100
1106
  /**
1101
1107
  * 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
1108
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1103
1109
  *
1104
1110
  * The version of the OpenAPI document: 6.1.0
1105
1111
  *
@@ -1161,7 +1167,7 @@ export interface Image {
1161
1167
  }
1162
1168
  /**
1163
1169
  * 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
1170
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1165
1171
  *
1166
1172
  * The version of the OpenAPI document: 6.1.0
1167
1173
  *
@@ -1238,7 +1244,53 @@ export interface FacesResponseAllOf {
1238
1244
  export type FacesResponse = DetectionFace & FacesResponseAllOf;
1239
1245
  /**
1240
1246
  * 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
1247
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1248
+ *
1249
+ * The version of the OpenAPI document: 6.1.0
1250
+ *
1251
+ *
1252
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1253
+ * https://openapi-generator.tech
1254
+ * Do not edit the class manually.
1255
+ */
1256
+ /**
1257
+ * The filter condition, determines the type of comparison to be performed on the `name` values of the Person entity. <br><br>When set to `in`, the `name` values of the Person should match any of the values specified in the `value` list. <br><br>When set to `nin`, the `name` values of the Person should not match any of the values specified in the `value` list.
1258
+ * @export
1259
+ * @enum {string}
1260
+ */
1261
+ export const FilterOp: {
1262
+ readonly IN: "in";
1263
+ readonly NOT_IN: "nin";
1264
+ };
1265
+ export type FilterOp = (typeof FilterOp)[keyof typeof FilterOp];
1266
+ /**
1267
+ * Allows to filter the search results based on the Person\'s `name`. If enabled, only the search results that meet the filter condition will be returned.
1268
+ * @export
1269
+ * @interface FilterSearchRequest
1270
+ */
1271
+ export interface FilterSearchRequest {
1272
+ /**
1273
+ *
1274
+ * @type {FilterOp}
1275
+ * @memberof FilterSearchRequest
1276
+ */
1277
+ 'op'?: FilterOp;
1278
+ /**
1279
+ * `name` of the Person.
1280
+ * @type {string}
1281
+ * @memberof FilterSearchRequest
1282
+ */
1283
+ 'field'?: string;
1284
+ /**
1285
+ * The list of `name` values against which the `field` is compared.
1286
+ * @type {Array<string>}
1287
+ * @memberof FilterSearchRequest
1288
+ */
1289
+ 'value'?: Array<string>;
1290
+ }
1291
+ /**
1292
+ * Regula Face SDK Web API
1293
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1242
1294
  *
1243
1295
  * The version of the OpenAPI document: 6.1.0
1244
1296
  *
@@ -1268,7 +1320,7 @@ export interface GroupAllOf {
1268
1320
  }
1269
1321
  /**
1270
1322
  * 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
1323
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1272
1324
  *
1273
1325
  * The version of the OpenAPI document: 6.1.0
1274
1326
  *
@@ -1318,7 +1370,7 @@ export interface GroupPageAllOf {
1318
1370
  }
1319
1371
  /**
1320
1372
  * 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
1373
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1322
1374
  *
1323
1375
  * The version of the OpenAPI document: 6.1.0
1324
1376
  *
@@ -1353,7 +1405,7 @@ export interface Page {
1353
1405
  export type GroupPage = GroupPageAllOf & Page;
1354
1406
  /**
1355
1407
  * 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
1408
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1357
1409
  *
1358
1410
  * The version of the OpenAPI document: 6.1.0
1359
1411
  *
@@ -1452,7 +1504,7 @@ export interface ImagePageAllOf {
1452
1504
  export type ImagePage = ImagePageAllOf & Page;
1453
1505
  /**
1454
1506
  * 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
1507
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1456
1508
  *
1457
1509
  * The version of the OpenAPI document: 6.1.0
1458
1510
  *
@@ -1476,6 +1528,27 @@ export const ImageSource: {
1476
1528
  readonly BARCODE: 7;
1477
1529
  };
1478
1530
  export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
1531
+ /**
1532
+ * Regula Face SDK Web API
1533
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1534
+ *
1535
+ * The version of the OpenAPI document: 6.1.0
1536
+ *
1537
+ *
1538
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1539
+ * https://openapi-generator.tech
1540
+ * Do not edit the class manually.
1541
+ */
1542
+ /**
1543
+ * Liveness detection can be performed in two modes: active `0` and passive `1`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)
1544
+ * @export
1545
+ * @enum {string}
1546
+ */
1547
+ export const LivenessType: {
1548
+ readonly ACTIVE: 0;
1549
+ readonly PASSIVE: 1;
1550
+ };
1551
+ export type LivenessType = (typeof LivenessType)[keyof typeof LivenessType];
1479
1552
  /**
1480
1553
  *
1481
1554
  * @export
@@ -1701,7 +1774,7 @@ export interface MatchImageDetection {
1701
1774
  }
1702
1775
  /**
1703
1776
  * 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
1777
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1705
1778
  *
1706
1779
  * The version of the OpenAPI document: 6.1.0
1707
1780
  *
@@ -1723,7 +1796,7 @@ export interface MatchRequestOutputImageParamsCrop {
1723
1796
  */
1724
1797
  'padColor'?: Array<number>;
1725
1798
  /**
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.
1799
+ * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
1727
1800
  * @type {boolean}
1728
1801
  * @memberof MatchRequestOutputImageParamsCrop
1729
1802
  */
@@ -1735,7 +1808,7 @@ export interface MatchRequestOutputImageParamsCrop {
1735
1808
  */
1736
1809
  'size'?: Array<number>;
1737
1810
  /**
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`.
1811
+ * 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 aspect ratio 3:4, set `0`.
1739
1812
  * @type {number}
1740
1813
  * @memberof MatchRequestOutputImageParamsCrop
1741
1814
  */
@@ -1834,7 +1907,7 @@ export interface MatchResponseAllOf {
1834
1907
  export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
1835
1908
  /**
1836
1909
  * 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
1910
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1838
1911
  *
1839
1912
  * The version of the OpenAPI document: 6.1.0
1840
1913
  *
@@ -1878,7 +1951,7 @@ export interface OperationLog {
1878
1951
  }
1879
1952
  /**
1880
1953
  * 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
1954
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1882
1955
  *
1883
1956
  * The version of the OpenAPI document: 6.1.0
1884
1957
  *
@@ -1893,6 +1966,12 @@ export interface OperationLog {
1893
1966
  * @interface PersonToUpdateFields
1894
1967
  */
1895
1968
  export interface PersonToUpdateFields {
1969
+ /**
1970
+ * Person\'s ID, used for linking search results to an ID in an external system. Can be set when creating a Person, stored in the database, and included in the search to return only Persons with the specified ID. Optional.
1971
+ * @type {string}
1972
+ * @memberof PersonToUpdateFields
1973
+ */
1974
+ 'externalId'?: string;
1896
1975
  /**
1897
1976
  * Person\'s name.
1898
1977
  * @type {string}
@@ -1934,7 +2013,7 @@ export interface PersonsPageAllOf {
1934
2013
  export type PersonsPage = Page & PersonsPageAllOf;
1935
2014
  /**
1936
2015
  * 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
2016
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1938
2017
  *
1939
2018
  * The version of the OpenAPI document: 6.1.0
1940
2019
  *
@@ -1970,7 +2049,7 @@ export interface SearchBadParams {
1970
2049
  }
1971
2050
  /**
1972
2051
  * 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
2052
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
1974
2053
  *
1975
2054
  * The version of the OpenAPI document: 6.1.0
1976
2055
  *
@@ -2054,7 +2133,7 @@ export interface SearchDetection {
2054
2133
  }
2055
2134
  /**
2056
2135
  * 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
2136
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
2058
2137
  *
2059
2138
  * The version of the OpenAPI document: 6.1.0
2060
2139
  *
@@ -2102,6 +2181,12 @@ export interface SearchParameters {
2102
2181
  * @memberof SearchParameters
2103
2182
  */
2104
2183
  'groupIds'?: Array<string>;
2184
+ /**
2185
+ *
2186
+ * @type {FilterSearchRequest}
2187
+ * @memberof SearchParameters
2188
+ */
2189
+ 'filter'?: FilterSearchRequest;
2105
2190
  }
2106
2191
  /**
2107
2192
  * Person data.
@@ -2189,17 +2274,6 @@ export interface SearchResult {
2189
2274
  [key: string]: object;
2190
2275
  };
2191
2276
  }
2192
- /**
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
2195
- *
2196
- * The version of the OpenAPI document: 6.1.0
2197
- *
2198
- *
2199
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2200
- * https://openapi-generator.tech
2201
- * Do not edit the class manually.
2202
- */
2203
2277
  /**
2204
2278
  *
2205
2279
  * @export
@@ -2207,13 +2281,13 @@ export interface SearchResult {
2207
2281
  */
2208
2282
  export interface TransactionInfo {
2209
2283
  /**
2210
- * Result code, one of the FaceSDKResultCode enum values. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
2284
+ * Result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
2211
2285
  * @type {number}
2212
2286
  * @memberof TransactionInfo
2213
2287
  */
2214
2288
  'code'?: number;
2215
2289
  /**
2216
- * Whether the liveness detection is confirmed (0) or not (1).
2290
+ * Whether the liveness detection is confirmed `0` or not `1`.
2217
2291
  * @type {number}
2218
2292
  * @memberof TransactionInfo
2219
2293
  */
@@ -2258,10 +2332,16 @@ export interface TransactionInfo {
2258
2332
  'metadata'?: {
2259
2333
  [key: string]: object;
2260
2334
  };
2335
+ /**
2336
+ *
2337
+ * @type {LivenessType}
2338
+ * @memberof TransactionInfo
2339
+ */
2340
+ 'type'?: LivenessType;
2261
2341
  }
2262
2342
  /**
2263
2343
  * 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
2344
+ * <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 and image quality assurance. 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 and image quality assessment</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 detection</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
2265
2345
  *
2266
2346
  * The version of the OpenAPI document: 6.1.0
2267
2347
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/facesdk-webclient",
3
- "version": "6.1.2",
3
+ "version": "6.2.0-beta.0",
4
4
  "description": "JS client for facesdk web service",
5
5
  "author": "Regula Forensics, Inc.",
6
6
  "keywords": [