@regulaforensics/facesdk-webclient 6.2.0-beta.6 → 6.2.0-beta.8

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 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
+ 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 ea});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)}},A=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 _ extends u{detect(e,t,s){return A(this.configuration).detect(e,t,s).then(e=>e(this.axios,this.basePath))}match(e,t,s){return A(this.configuration).match(e,t,s).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,s){return A(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,"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};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,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,{}),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 Y{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 _(e,t,s)}}const q=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}},A=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 A(s,n,r,o),a(e),i,t)}};class V extends u{createGroup(e,t,s){return q(this.configuration).createGroup(e,t,s).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,s){return q(this.configuration).deleteGroup(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,s,a){return q(this.configuration).getAllGroups(e,t,s,a).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,s,a,n){return q(this.configuration).getAllPersonsByGroupId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,s){return q(this.configuration).getGroup(e,t,s).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,s,a){return q(this.configuration).updateGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,s,a){return q(this.configuration).updatePersonsInGroup(e,t,s,a).then(e=>e(this.axios,this.basePath))}}class X{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 V(e,t,s)}}const Q=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}},A=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}},_=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 A(s,n,r,o),a(e),i,t),getPerson:async(s,n,r)=>I(await _(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 W extends u{addImageToPerson(e,t,s,a){return Q(this.configuration).addImageToPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}createPerson(e,t,s){return Q(this.configuration).createPerson(e,t,s).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,s,a){return Q(this.configuration).deleteImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,s){return Q(this.configuration).deletePerson(e,t,s).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,s,a,n){return Q(this.configuration).getAllGroupsByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,s,a,n){return Q(this.configuration).getAllImagesByPersonId(e,t,s,a,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,s,a){return Q(this.configuration).getImageOfPerson(e,t,s,a).then(e=>e(this.axios,this.basePath))}getPerson(e,t,s){return Q(this.configuration).getPerson(e,t,s).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,s,a){return Q(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 W(e,t,s)}}const j=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 j(this.configuration).search(e,t,s).then(e=>e(this.axios,this.basePath))}}class z{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 Z=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 J extends u{readiness(e,t){return Z(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class ${async readiness(e,t){return(await this.superClass.readiness(e,t)).data}constructor(e,t,s){this.superClass=new J(e,t,s)}}const ee=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 et extends u{getLivenessTransactionInfo(e,t){return ee(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class es{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,s){this.superClass=new et(e,t,s)}}class ea{constructor(t,s=i,n=a(e)){this.basePath=s,this.axios=n,this.matchingApi=new Y(t,s,n),this.groupApi=new X(t,s,n),this.personApi=new K(t,s,n),this.searchApi=new z(t,s,n),this.diagnosticsApi=new $(t,s,n),this.livenessApi=new es(t,s,n)}}s(r,o);var en={};n(en,"Configuration",function(){return er});class er{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,en),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 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};
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 et});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 l="https://example.com",d=function(e,t,a){if(null==a)throw new i(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},u=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;d("detect","detectRequest",e);let r=new URL("/api/detect",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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;d("match","matchRequest",e);let r=new URL("/api/match",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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;d("matchAndSearch","matchAndSearchRequest",e);let r=new URL("/api/match_and_search",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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={},A={};s(A,"FaceAttribute",function(){return _});let _={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};var R={};s(R,"FaceImageQualityAlignType",function(){return C});let C={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4};var T={};s(T,"FaceImageQualityGroups",function(){return O});let O={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8};var S={};s(S,"FaceImageQualityGroupsStrings",function(){return P});let P={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"};var m={};s(m,"FaceImageQualityStatus",function(){return y});let y={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var f={};s(f,"FaceQualityConfigName",function(){return 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};a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,A),a(g,R),a(g,T),a(g,S),a(g,m),a(g,f),a(g,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,{}),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 v{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 $=function(t){let a=async(e,a,s={})=>{let n;d("createGroup","groupToCreate",e);let r=new URL("/api/groups",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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;d("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,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),u(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",l);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},d={},p={};void 0!==e&&(p.page=e),void 0!==a&&(p.size=a),null!=s&&(d["X-RequestID"]=String(s)),u(o,p);let h=r&&r.headers?r.headers:{};return i.headers={...d,...h,...n.headers},{url:c(o),options:i}},o=async(e,a,s,n,r={})=>{let o;d("getAllPersonsByGroupId","groupId",e);let i=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),l);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)),u(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;d("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,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),u(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;d("updateGroup","groupId",e),d("updateGroup","groupToCreate",a);let o=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",u(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;d("updatePersonsInGroup","groupId",e),d("updatePersonsInGroup","updateGroup",a);let o=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",u(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,l)=>h(await o(a,s,n,i,l),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 B extends o{createGroup(e,t,a){return $(this.configuration).createGroup(e,t,a).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,a){return $(this.configuration).deleteGroup(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,a,s){return $(this.configuration).getAllGroups(e,t,a,s).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,a,s,n){return $(this.configuration).getAllPersonsByGroupId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,a){return $(this.configuration).getGroup(e,t,a).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,a,s){return $(this.configuration).updateGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,a,s){return $(this.configuration).updatePersonsInGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class Y{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 B(e,t,a)}}let V=function(t){let a=async(e,a,s,n={})=>{let r;d("addImageToPerson","personId",e),d("addImageToPerson","addImageToPersonRequest",a);let o=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"POST",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",u(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;d("createPerson","personFields",e);let r=new URL("/api/persons",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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;d("deleteImageOfPerson","imageId",e),d("deleteImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),l);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),u(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;d("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,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),u(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;d("getAllGroupsByPersonId","personId",e);let i=new URL("/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),l);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)),u(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;d("getAllImagesByPersonId","personId",e);let i=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),l);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)),u(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;d("getImageOfPerson","imageId",e),d("getImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),l);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),u(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;d("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,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),u(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},A=async(e,a,s,n={})=>{let r;d("updatePerson","personId",e),d("updatePerson","personToUpdateFields",a);let o=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),l);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",u(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,l)=>h(await i(a,s,n,o,l),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(a,s,n,o),e,r,t)}};class q extends o{addImageToPerson(e,t,a,s){return V(this.configuration).addImageToPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}createPerson(e,t,a){return V(this.configuration).createPerson(e,t,a).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,a,s){return V(this.configuration).deleteImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,a){return V(this.configuration).deletePerson(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,a,s,n){return V(this.configuration).getAllGroupsByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,a,s,n){return V(this.configuration).getAllImagesByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,a,s){return V(this.configuration).getImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}getPerson(e,t,a){return V(this.configuration).getPerson(e,t,a).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,a,s){return V(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 q(e,t,a)}}let X=function(t){let a=async(e,a,s={})=>{let n;d("search","searchRequest",e);let r=new URL("/api/search",l);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",u(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 K extends o{search(e,t,a){return X(this.configuration).search(e,t,a).then(e=>e(this.axios,this.basePath))}}class W{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 K(e,t,a)}}let j=function(t){let a=async(e,a={})=>{let s;let n=new URL("/api/readiness",l);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};null!=e&&(o["X-RequestID"]=String(e)),u(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 k extends o{readiness(e,t){return j(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,a){this.superClass=new k(e,t,a)}}let Z=function(t){let a=async(e,a={})=>{let s;d("getLivenessTransactionInfo","transactionId",e);let n=new URL("/api/v2/liveness",l);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};void 0!==e&&(o.transactionId=e),u(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 J extends o{getLivenessTransactionInfo(e,t){return Z(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,a){this.superClass=new J(e,t,a)}}class et{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,this.matchingApi=new v(t,a,s),this.groupApi=new Y(t,a,s),this.personApi=new Q(t,a,s),this.searchApi=new W(t,a,s),this.diagnosticsApi=new z(t,a,s),this.livenessApi=new ee(t,a,s)}}a({},n),s({},"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}}export{et as FaceSdk,ea as Configuration,_ as FaceAttribute,C as FaceImageQualityAlignType,O as FaceImageQualityGroups,P as FaceImageQualityGroupsStrings,y as FaceImageQualityStatus,D as FaceQualityConfigName,G as FaceQualityScenarios,F as FaceSDKResultCode,w as FilterOp,H as ImageSource,x as LivenessType};
package/lib/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { AxiosRequestConfig, AxiosInstance } from "axios";
3
3
  * Regula Face SDK Web API
4
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
- * The version of the OpenAPI document: 6.1.0
6
+ * The version of the OpenAPI document: 6.2.0
7
7
  *
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -86,7 +86,7 @@ export class Configuration {
86
86
  * Regula Face SDK Web API
87
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
- * The version of the OpenAPI document: 6.1.0
89
+ * The version of the OpenAPI document: 6.2.0
90
90
  *
91
91
  *
92
92
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -186,7 +186,7 @@ export interface AddImageToPersonRequest {
186
186
  * Regula Face SDK Web API
187
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
- * The version of the OpenAPI document: 6.1.0
189
+ * The version of the OpenAPI document: 6.2.0
190
190
  *
191
191
  *
192
192
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -242,7 +242,7 @@ export interface AddImageToPersonResponse {
242
242
  * Regula Face SDK Web API
243
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
- * The version of the OpenAPI document: 6.1.0
245
+ * The version of the OpenAPI document: 6.2.0
246
246
  *
247
247
  *
248
248
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -250,7 +250,7 @@ export interface AddImageToPersonResponse {
250
250
  * Do not edit the class manually.
251
251
  */
252
252
  /**
253
- * Face attributes.
253
+ * The name of the attribute. For definitions, see the [FaceAttribute enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-attribute/).
254
254
  * @export
255
255
  * @enum {string}
256
256
  */
@@ -287,7 +287,7 @@ export interface AttributeConfig {
287
287
  * Regula Face SDK Web API
288
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
- * The version of the OpenAPI document: 6.1.0
290
+ * The version of the OpenAPI document: 6.2.0
291
291
  *
292
292
  *
293
293
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -295,7 +295,7 @@ export interface AttributeConfig {
295
295
  * Do not edit the class manually.
296
296
  */
297
297
  /**
298
- * The aspect ratio according to which face alignment is performed during face detection.
298
+ * 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`.
299
299
  * @export
300
300
  * @enum {string}
301
301
  */
@@ -308,7 +308,7 @@ export const FaceImageQualityAlignType: {
308
308
  };
309
309
  export type FaceImageQualityAlignType = (typeof FaceImageQualityAlignType)[keyof typeof FaceImageQualityAlignType];
310
310
  /**
311
- * Whether to return the Base64 image of an aligned and cropped portrait in the `crop` field.
311
+ * Whether to return a Base64-encoded image of an aligned and cropped portrait in the `crop` field. Alignment is performed according to `type`; if a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line. If there are more than one face in the photo, all the faces are detected and processed, and separate portraits for each face are returned. So, if there are five people in the photo, you\'ll get five processed portraits. Each portrait can be downloaded.
312
312
  * @export
313
313
  * @interface Crop
314
314
  */
@@ -342,7 +342,7 @@ export interface Crop {
342
342
  * Regula Face SDK Web API
343
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
- * The version of the OpenAPI document: 6.1.0
345
+ * The version of the OpenAPI document: 6.2.0
346
346
  *
347
347
  *
348
348
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -350,7 +350,7 @@ export interface Crop {
350
350
  * Do not edit the class manually.
351
351
  */
352
352
  /**
353
- * Face detection scenario.
353
+ * Face detection scenario. If applied and the scenario is found, the parameters are set automatically and any other parameters mentioned in the request are ignored. If not set, left empty, or the name is not found, the processing is performed according to the set parameters. You can find detailed descriptions of available scenarios on the [Scenarios page](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/face-detection/scenarios/).
354
354
  * @export
355
355
  * @enum {string}
356
356
  */
@@ -367,7 +367,7 @@ export const FaceQualityScenarios: {
367
367
  };
368
368
  export type FaceQualityScenarios = (typeof FaceQualityScenarios)[keyof typeof FaceQualityScenarios];
369
369
  /**
370
- * Whether to process the uploaded image according to the indicated settings.
370
+ * Allows to process the uploaded image according to the indicated settings.
371
371
  * @export
372
372
  * @interface OutputImageParams
373
373
  */
@@ -392,7 +392,7 @@ export interface OutputImageParams {
392
392
  */
393
393
  export interface ProcessParamAttributes {
394
394
  /**
395
- *
395
+ * The list of attributes for evaluation.
396
396
  * @type {Array<AttributeConfig>}
397
397
  * @memberof ProcessParamAttributes
398
398
  */
@@ -402,7 +402,7 @@ export interface ProcessParamAttributes {
402
402
  * Regula Face SDK Web API
403
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
- * The version of the OpenAPI document: 6.1.0
405
+ * The version of the OpenAPI document: 6.2.0
406
406
  *
407
407
  *
408
408
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -410,7 +410,7 @@ export interface ProcessParamAttributes {
410
410
  * Do not edit the class manually.
411
411
  */
412
412
  /**
413
- * All image characteristics that can be assessed during face image quality assessment.
413
+ * The name of the quality check characteristic. For definitions, see the [FaceQualityConfigName enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-quality-config-name/).
414
414
  * @export
415
415
  * @enum {string}
416
416
  */
@@ -478,14 +478,14 @@ export interface QualityConfig {
478
478
  */
479
479
  'name'?: FaceQualityConfigName;
480
480
  /**
481
- * The range of applicable values for this characteristic. If the returned in the Response value fits this range, the value is identified as compliant with the requirements.
481
+ * The range of applicable values for this characteristic. If the returned in the response value fits this range, the characteristic is identified as compliant with the requirements.
482
482
  * @type {Array<number>}
483
483
  * @memberof QualityConfig
484
484
  */
485
485
  'range'?: Array<number>;
486
486
  }
487
487
  /**
488
- * Whether to perform the portrait quality check.
488
+ * If set, the face image quality check is performed according to the set scenario or characteristics.
489
489
  * @export
490
490
  * @interface QualityRequest
491
491
  */
@@ -497,7 +497,7 @@ export interface QualityRequest {
497
497
  */
498
498
  'backgroundMatchColor'?: Array<number>;
499
499
  /**
500
- *
500
+ * The list of quality check characteristics.
501
501
  * @type {Array<QualityConfig>}
502
502
  * @memberof QualityRequest
503
503
  */
@@ -516,7 +516,7 @@ export interface ProcessParam {
516
516
  */
517
517
  'scenario'?: FaceQualityScenarios;
518
518
  /**
519
- * Whether to process only the central face on the image (true) or all the faces (false).
519
+ * Whether to process only the central face in the image. If set to `false`, all the faces are processed.
520
520
  * @type {boolean}
521
521
  * @memberof ProcessParam
522
522
  */
@@ -565,9 +565,10 @@ export interface DetectRequest {
565
565
  */
566
566
  'image'?: ImageData;
567
567
  /**
568
- * Deprecated, use the `crop` field in `processParam` instead.
568
+ * Use `processParam.outputImageParams.crop` instead.
569
569
  * @type {boolean}
570
570
  * @memberof DetectRequest
571
+ * @deprecated
571
572
  */
572
573
  'thumbnails'?: boolean;
573
574
  }
@@ -575,7 +576,7 @@ export interface DetectRequest {
575
576
  * Regula Face SDK Web API
576
577
  * <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
578
  *
578
- * The version of the OpenAPI document: 6.1.0
579
+ * The version of the OpenAPI document: 6.2.0
579
580
  *
580
581
  *
581
582
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -607,7 +608,7 @@ export interface DetectionAttributes {
607
608
  * Regula Face SDK Web API
608
609
  * <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
610
  *
610
- * The version of the OpenAPI document: 6.1.0
611
+ * The version of the OpenAPI document: 6.2.0
611
612
  *
612
613
  *
613
614
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -634,7 +635,7 @@ export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeo
634
635
  * Regula Face SDK Web API
635
636
  * <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
637
  *
637
- * The version of the OpenAPI document: 6.1.0
638
+ * The version of the OpenAPI document: 6.2.0
638
639
  *
639
640
  *
640
641
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -693,7 +694,7 @@ export interface QualityDetail {
693
694
  * Regula Face SDK Web API
694
695
  * <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
696
  *
696
- * The version of the OpenAPI document: 6.1.0
697
+ * The version of the OpenAPI document: 6.2.0
697
698
  *
698
699
  *
699
700
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -882,7 +883,7 @@ export interface DetectResponseAllOf {
882
883
  * Regula Face SDK Web API
883
884
  * <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
885
  *
885
- * The version of the OpenAPI document: 6.1.0
886
+ * The version of the OpenAPI document: 6.2.0
886
887
  *
887
888
  *
888
889
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -960,7 +961,7 @@ export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
960
961
  * Regula Face SDK Web API
961
962
  * <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
963
  *
963
- * The version of the OpenAPI document: 6.1.0
964
+ * The version of the OpenAPI document: 6.2.0
964
965
  *
965
966
  *
966
967
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1015,7 +1016,7 @@ export interface DetectionFace {
1015
1016
  * Regula Face SDK Web API
1016
1017
  * <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
1018
  *
1018
- * The version of the OpenAPI document: 6.1.0
1019
+ * The version of the OpenAPI document: 6.2.0
1019
1020
  *
1020
1021
  *
1021
1022
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1057,7 +1058,7 @@ export interface PersonAllOf {
1057
1058
  * Regula Face SDK Web API
1058
1059
  * <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
1060
  *
1060
- * The version of the OpenAPI document: 6.1.0
1061
+ * The version of the OpenAPI document: 6.2.0
1061
1062
  *
1062
1063
  *
1063
1064
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1096,6 +1097,12 @@ export interface PersonFields {
1096
1097
  * @memberof PersonFields
1097
1098
  */
1098
1099
  'groups'?: Array<string>;
1100
+ /**
1101
+ * The lifespan of the Person\'s records, seconds. Optional.
1102
+ * @type {number}
1103
+ * @memberof PersonFields
1104
+ */
1105
+ 'ttl'?: number | null;
1099
1106
  }
1100
1107
  /**
1101
1108
  * @type Person
@@ -1107,7 +1114,7 @@ export type Person = PersonAllOf & PersonFields;
1107
1114
  * Regula Face SDK Web API
1108
1115
  * <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
1109
1116
  *
1110
- * The version of the OpenAPI document: 6.1.0
1117
+ * The version of the OpenAPI document: 6.2.0
1111
1118
  *
1112
1119
  *
1113
1120
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1169,7 +1176,7 @@ export interface Image {
1169
1176
  * Regula Face SDK Web API
1170
1177
  * <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
1171
1178
  *
1172
- * The version of the OpenAPI document: 6.1.0
1179
+ * The version of the OpenAPI document: 6.2.0
1173
1180
  *
1174
1181
  *
1175
1182
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1246,7 +1253,7 @@ export type FacesResponse = DetectionFace & FacesResponseAllOf;
1246
1253
  * Regula Face SDK Web API
1247
1254
  * <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
1255
  *
1249
- * The version of the OpenAPI document: 6.1.0
1256
+ * The version of the OpenAPI document: 6.2.0
1250
1257
  *
1251
1258
  *
1252
1259
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1292,7 +1299,7 @@ export interface FilterSearchRequest {
1292
1299
  * Regula Face SDK Web API
1293
1300
  * <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
1294
1301
  *
1295
- * The version of the OpenAPI document: 6.1.0
1302
+ * The version of the OpenAPI document: 6.2.0
1296
1303
  *
1297
1304
  *
1298
1305
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1322,7 +1329,7 @@ export interface GroupAllOf {
1322
1329
  * Regula Face SDK Web API
1323
1330
  * <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
1324
1331
  *
1325
- * The version of the OpenAPI document: 6.1.0
1332
+ * The version of the OpenAPI document: 6.2.0
1326
1333
  *
1327
1334
  *
1328
1335
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1372,7 +1379,7 @@ export interface GroupPageAllOf {
1372
1379
  * Regula Face SDK Web API
1373
1380
  * <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
1374
1381
  *
1375
- * The version of the OpenAPI document: 6.1.0
1382
+ * The version of the OpenAPI document: 6.2.0
1376
1383
  *
1377
1384
  *
1378
1385
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1407,7 +1414,7 @@ export type GroupPage = GroupPageAllOf & Page;
1407
1414
  * Regula Face SDK Web API
1408
1415
  * <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
1409
1416
  *
1410
- * The version of the OpenAPI document: 6.1.0
1417
+ * The version of the OpenAPI document: 6.2.0
1411
1418
  *
1412
1419
  *
1413
1420
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1506,7 +1513,7 @@ export type ImagePage = ImagePageAllOf & Page;
1506
1513
  * Regula Face SDK Web API
1507
1514
  * <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
1508
1515
  *
1509
- * The version of the OpenAPI document: 6.1.0
1516
+ * The version of the OpenAPI document: 6.2.0
1510
1517
  *
1511
1518
  *
1512
1519
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1532,7 +1539,7 @@ export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
1532
1539
  * Regula Face SDK Web API
1533
1540
  * <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
1541
  *
1535
- * The version of the OpenAPI document: 6.1.0
1542
+ * The version of the OpenAPI document: 6.2.0
1536
1543
  *
1537
1544
  *
1538
1545
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1772,75 +1779,6 @@ export interface MatchImageDetection {
1772
1779
  */
1773
1780
  'status': FaceSDKResultCode;
1774
1781
  }
1775
- /**
1776
- * Regula Face SDK Web API
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
1778
- *
1779
- * The version of the OpenAPI document: 6.1.0
1780
- *
1781
- *
1782
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1783
- * https://openapi-generator.tech
1784
- * Do not edit the class manually.
1785
- */
1786
- /**
1787
- * If set, a Base64-encoded aligned and cropped by the indicated settings portrait is returned in the `crop` field.
1788
- * @export
1789
- * @interface MatchRequestOutputImageParamsCrop
1790
- */
1791
- export interface MatchRequestOutputImageParamsCrop {
1792
- /**
1793
- * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
1794
- * @type {Array<number>}
1795
- * @memberof MatchRequestOutputImageParamsCrop
1796
- */
1797
- 'padColor'?: Array<number>;
1798
- /**
1799
- * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
1800
- * @type {boolean}
1801
- * @memberof MatchRequestOutputImageParamsCrop
1802
- */
1803
- 'returnOriginalRect'?: boolean;
1804
- /**
1805
- * The resize value in case `type` matches this value. If it doesn\'t, no resize is performed.
1806
- * @type {Array<number>}
1807
- * @memberof MatchRequestOutputImageParamsCrop
1808
- */
1809
- 'size'?: Array<number>;
1810
- /**
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`.
1812
- * @type {number}
1813
- * @memberof MatchRequestOutputImageParamsCrop
1814
- */
1815
- 'type'?: MatchRequestOutputImageParamsCropTypeEnum;
1816
- }
1817
- export const MatchRequestOutputImageParamsCropTypeEnum: {
1818
- readonly NUMBER_0: 0;
1819
- readonly NUMBER_1: 1;
1820
- readonly NUMBER_2: 2;
1821
- readonly NUMBER_3: 3;
1822
- readonly NUMBER_4: 4;
1823
- };
1824
- export type MatchRequestOutputImageParamsCropTypeEnum = (typeof MatchRequestOutputImageParamsCropTypeEnum)[keyof typeof MatchRequestOutputImageParamsCropTypeEnum];
1825
- /**
1826
- * Whether to process the uploaded image according to the indicated settings.
1827
- * @export
1828
- * @interface MatchRequestOutputImageParams
1829
- */
1830
- export interface MatchRequestOutputImageParams {
1831
- /**
1832
- * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
1833
- * @type {Array<number>}
1834
- * @memberof MatchRequestOutputImageParams
1835
- */
1836
- 'backgroundColor'?: Array<number>;
1837
- /**
1838
- *
1839
- * @type {MatchRequestOutputImageParamsCrop}
1840
- * @memberof MatchRequestOutputImageParams
1841
- */
1842
- 'crop'?: MatchRequestOutputImageParamsCrop;
1843
- }
1844
1782
  /**
1845
1783
  *
1846
1784
  * @export
@@ -1868,10 +1806,10 @@ export interface MatchRequest {
1868
1806
  'images': Array<MatchImage>;
1869
1807
  /**
1870
1808
  *
1871
- * @type {MatchRequestOutputImageParams}
1809
+ * @type {OutputImageParams}
1872
1810
  * @memberof MatchRequest
1873
1811
  */
1874
- 'outputImageParams'?: MatchRequestOutputImageParams;
1812
+ 'outputImageParams'?: OutputImageParams;
1875
1813
  }
1876
1814
  /**
1877
1815
  *
@@ -1909,7 +1847,7 @@ export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
1909
1847
  * Regula Face SDK Web API
1910
1848
  * <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
1911
1849
  *
1912
- * The version of the OpenAPI document: 6.1.0
1850
+ * The version of the OpenAPI document: 6.2.0
1913
1851
  *
1914
1852
  *
1915
1853
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1953,7 +1891,7 @@ export interface OperationLog {
1953
1891
  * Regula Face SDK Web API
1954
1892
  * <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
1955
1893
  *
1956
- * The version of the OpenAPI document: 6.1.0
1894
+ * The version of the OpenAPI document: 6.2.0
1957
1895
  *
1958
1896
  *
1959
1897
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2015,7 +1953,7 @@ export type PersonsPage = Page & PersonsPageAllOf;
2015
1953
  * Regula Face SDK Web API
2016
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
2017
1955
  *
2018
- * The version of the OpenAPI document: 6.1.0
1956
+ * The version of the OpenAPI document: 6.2.0
2019
1957
  *
2020
1958
  *
2021
1959
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2051,7 +1989,7 @@ export interface SearchBadParams {
2051
1989
  * Regula Face SDK Web API
2052
1990
  * <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
2053
1991
  *
2054
- * The version of the OpenAPI document: 6.1.0
1992
+ * The version of the OpenAPI document: 6.2.0
2055
1993
  *
2056
1994
  *
2057
1995
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2135,7 +2073,7 @@ export interface SearchDetection {
2135
2073
  * Regula Face SDK Web API
2136
2074
  * <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
2137
2075
  *
2138
- * The version of the OpenAPI document: 6.1.0
2076
+ * The version of the OpenAPI document: 6.2.0
2139
2077
  *
2140
2078
  *
2141
2079
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2162,6 +2100,12 @@ export interface SearchParametersCreatePerson {
2162
2100
  'metadata'?: {
2163
2101
  [key: string]: object;
2164
2102
  };
2103
+ /**
2104
+ * The lifespan of the Person\'s records, seconds. Optional.
2105
+ * @type {number}
2106
+ * @memberof SearchParametersCreatePerson
2107
+ */
2108
+ 'ttl'?: number | null;
2165
2109
  }
2166
2110
  /**
2167
2111
  * Request search data.
@@ -2343,7 +2287,7 @@ export interface TransactionInfo {
2343
2287
  * Regula Face SDK Web API
2344
2288
  * <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
2345
2289
  *
2346
- * The version of the OpenAPI document: 6.1.0
2290
+ * The version of the OpenAPI document: 6.2.0
2347
2291
  *
2348
2292
  *
2349
2293
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/facesdk-webclient",
3
- "version": "6.2.0-beta.6",
3
+ "version": "6.2.0-beta.8",
4
4
  "description": "JS client for facesdk web service",
5
5
  "author": "Regula Forensics, Inc.",
6
6
  "keywords": [