@regulaforensics/facesdk-webclient 6.2.0-beta.7 → 6.3.1-nightly
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/index.cjs +1 -1
- package/dist/module/index.js +1 -1
- package/lib/index.d.ts +113 -57
- package/package.json +1 -1
package/dist/main/index.cjs
CHANGED
|
@@ -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 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
|
+
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);
|
package/dist/module/index.js
CHANGED
|
@@ -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 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};
|
|
1
|
+
import e from"axios";import{encode as t}from"base64-arraybuffer";function a(e,t){return Object.keys(t).forEach(function(a){"default"===a||"__esModule"===a||Object.prototype.hasOwnProperty.call(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[a]}})}),e}function s(e,t,a,s){Object.defineProperty(e,t,{get:a,set:s,enumerable:!0,configurable:!0})}var n={};s(n,"FaceSdk",function(){return es});let r="http://localhost:41101".replace(/\/+$/,"");class o{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class i extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let u="https://example.com",l=function(e,t,a){if(null==a)throw new i(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},d=function(e,...t){let a=new URLSearchParams(e.search);for(let e of t)for(let t in e)if(Array.isArray(e[t]))for(let s of(a.delete(t),e[t]))a.append(t,s);else a.set(t,e[t]);e.search=a.toString()},p=function(e,t,a){let s="string"!=typeof e;return(s&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},c=function(e){return e.pathname+e.search+e.hash},h=function(e,t,a,s){return(n=t,r=a)=>{let o={...e.options,url:((null==s?void 0:s.basePath)||r)+e.url};return n.request(o)}},E=function(t){let a=async(e,a,s={})=>{let n;l("detect","detectRequest",e);let r=new URL("/api/detect",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},s=async(e,a,s={})=>{let n;l("match","matchRequest",e);let r=new URL("/api/match",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},n=async(e,a,s={})=>{let n;l("matchAndSearch","matchAndSearchRequest",e);let r=new URL("/api/match_and_search",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}};return{detect:async(s,n,o)=>h(await a(s,n,o),e,r,t),match:async(a,n,o)=>h(await s(a,n,o),e,r,t),matchAndSearch:async(a,s,o)=>h(await n(a,s,o),e,r,t)}};class I extends o{detect(e,t,a){return E(this.configuration).detect(e,t,a).then(e=>e(this.axios,this.basePath))}match(e,t,a){return E(this.configuration).match(e,t,a).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,a){return E(this.configuration).matchAndSearch(e,t,a).then(e=>e(this.axios,this.basePath))}}var g={},_={};s(_,"FaceAttribute",function(){return A});let A={AGE:"Age",EMOTION:"Emotion",EYE_LEFT:"EyeLeft",EYE_RIGHT:"EyeRight",SMILE:"Smile",GLASSES:"Glasses",HEAD_COVERING:"HeadCovering",FOREHEAD_COVERING:"ForeheadCovering",MOUTH:"Mouth",MEDICAL_MASK:"MedicalMask",OCCLUSION:"Occlusion",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones"};var R={};s(R,"FaceImageQualityAlignType",function(){return C});let C={ALIGN_3x4:0,ALIGN_4x5:1,ALIGN_2x3:2,ALIGN_1x1:3,ALIGN_7x9:4};var T={};s(T,"FaceImageQualityGroups",function(){return O});let O={IMAGE_CHARACTERISTICS:1,HEAD_SIZE_AND_POSITIONS:2,FACE_QUALITY:3,EYES_CHARACTERISTICS:4,SHADOWS_AND_LIGHTNING:5,POSE_AND_EXPRESSION:6,HEAD_OCCLUSION:7,BACKGROUND:8};var S={};s(S,"FaceImageQualityGroupsStrings",function(){return m});let m={IMAGE_CHARACTERISTICS:"ImageCharacteristics",HEAD_SIZE_AND_POSITIONS:"HeadSizeAndPosition",FACE_QUALITY:"FaceQuality",EYES_CHARACTERISTICS:"EyesCharacteristics",SHADOWS_AND_LIGHTNING:"ShadowsAndLightning",POSE_AND_EXPRESSION:"PoseAndExpression",HEAD_OCCLUSION:"HeadOcclusion",BACKGROUND:"Background"};var P={};s(P,"FaceImageQualityStatus",function(){return y});let y={QUALITY_STATUS_FALSE:0,QUALITY_STATUS_TRUE:1,QUALITY_STATUS_UNDETERMINED:2};var f={};s(f,"FaceQualityConfigName",function(){return D});let D={IMAGE_WIDTH:"ImageWidth",IMAGE_HEIGHT:"ImageHeight",IMAGE_WIDTH_TO_HEIGHT:"ImageWidthToHeight",IMAGE_CHANNELS_NUMBER:"ImageChannelsNumber",PADDING_RATIO:"PaddingRatio",FACE_MID_POINT_HORIZONTAL_POSITION:"FaceMidPointHorizontalPosition",FACE_MID_POINT_VERTICAL_POSITION:"FaceMidPointVerticalPosition",HEAD_WIDTH_RATIO:"HeadWidthRatio",HEAD_HEIGHT_RATIO:"HeadHeightRatio",EYES_DISTANCE:"EyesDistance",YAW:"Yaw",PITCH:"Pitch",ROLL:"Roll",BLUR_LEVEL:"BlurLevel",NOISE_LEVEL:"NoiseLevel",EYE_RIGHT_CLOSED:"EyeRightClosed",EYE_LEFT_CLOSED:"EyeLeftClosed",EYE_RIGHT_OCCLUDED:"EyeRightOccluded",EYE_LEFT_OCCLUDED:"EyeLeftOccluded",EYES_RED:"EyesRed",EYE_RIGHT_COVERED_WITH_HAIR:"EyeRightCoveredWithHair",EYE_LEFT_COVERED_WITH_HAIR:"EyeLeftCoveredWithHair",OFF_GAZE:"OffGaze",FACE_DYNAMIC_RANGE:"FaceDynamicRange",UNNATURAL_SKIN_TONE:"UnnaturalSkinTone",TOO_DARK:"TooDark",TOO_LIGHT:"TooLight",FACE_GLARE:"FaceGlare",SHADOWS_ON_FACE:"ShadowsOnFace",DARK_GLASSES:"DarkGlasses",REFLECTION_ON_GLASSES:"ReflectionOnGlasses",FRAMES_TOO_HEAVY:"FramesTooHeavy",FACE_OCCLUDED:"FaceOccluded",HEAD_COVERING:"HeadCovering",BACKGROUND_UNIFORMITY:"BackgroundUniformity",SHADOWS_ON_BACKGROUND:"ShadowsOnBackground",OTHER_FACES:"OtherFaces",SHOULDERS_POSE:"ShouldersPose",EXPRESSION_LEVEL:"ExpressionLevel",MOUTH_OPEN:"MouthOpen",FOREHEAD_COVERING:"ForeheadCovering",SMILE:"Smile",STRONG_MAKEUP:"StrongMakeup",HEADPHONES:"Headphones",MEDICAL_MASK:"MedicalMask",BACKGROUND_COLOR_MATCH:"BackgroundColorMatch",ART_FACE:"ArtFace",CONTACT_LENSES:"ContactLenses"};var L={};s(L,"FaceQualityScenarios",function(){return G});let G={OLD_MODE:"OldMode",QUALITY_FULL:"QualityFull",QUALITY_ICAO:"QualityICAO",QUALITY_VISA_SCHENGEN:"QualityVisaSchengen",QUALITY_VISA_USA:"QualityVisaUSA",CROP_CENTRAL_FACE:"CropCentralFace",CROP_ALL_FACES:"CropAllFaces",THUMBNAIL:"Thumbnail",EMPTY:""};var N={};s(N,"FaceSDKResultCode",function(){return F});let F={FACER_OK:0,FR_IMAGE_EMPTY:1,FR_FACE_NOT_DETECTED:2,FR_LANDMARKS_NOT_DETECTED:3,FR_FACE_ALIGHNER_FAILED:4,FR_DESCRIPTOR_EXTRACTOR_ERROR:5,FR_IMAGE_DECODE_ERROR:6,FR_INTERNAL_ERROR:7,FACER_CONFIG_ERROR:199,FACER_NO_LICENSE:200,FACER_IS_NOT_INITIALIZED:201,FACER_COMMAND_IS_NOT_SUPPORTED:202,FACER_COMMAND_PARAMS_READ_ERROR:203,FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST:224,FACER_VIDEO_DECODE_ERROR:227,FACER_NOT_ENOUGH_FRAMES:228,FACER_OUTPUT_IS_NOT_DEFINED:229,FACER_CLOSED_EYES_DETECTED:230,FACER_LOW_QUALITY:231,FACER_HIGH_ASYMMETRY:232,FACER_FACE_OVER_EMOTIONAL:233,FACER_SUNGLASSES_DETECTED:234,FACER_SMALL_AGE:235,FACER_HEADDRESS_DETECTED:236,FACER_FACES_NOT_MATCHED:237,FACER_IMAGES_COUNT_LIMIT_EXCEEDED:238,FACER_MEDICINE_MASK_DETECTED:239,FACER_OCCLUSION_DETECTED:240,FACER_FOREHEAD_GLASSES_DETECTED:242,FACER_MOUTH_OPENED:243,FACER_ART_MASK_DETECTED:244,FACER_ELECTRONIC_DEVICE_DETECTED:245,FACER_TRACK_BREAK:246,FACER_WRONG_GEO:247,FACER_WRONG_OF:248,FACER_WRONG_VIEW:249,FACER_TIMEOUT_LIVENESS_TRANSACTION:250,FACER_FAILED_LIVENESS_TRANSACTION:251,FACER_ABORTED_LIVENESS_TRANSACTION:252,FACER_GENERAL_ERROR:253,FACER_PASSIVE_LIVENESS_FAIL:254};var U={};s(U,"FilterOp",function(){return w});let w={IN:"in",NOT_IN:"nin"};var b={};s(b,"ImageSource",function(){return H});let H={DOCUMENT_PRINTED:1,DOCUMENT_RFID:2,LIVE:3,DOCUMENT_WITH_LIVE:4,EXTERNAL:5,GHOST:6,BARCODE:7};var M={};s(M,"LivenessType",function(){return x});let x={ACTIVE:0,PASSIVE:1};var v={};s(v,"MatchRequestOutputImageParamsCropTypeEnum",function(){return $});let $={NUMBER_0:0,NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_4:4};a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,_),a(g,R),a(g,T),a(g,S),a(g,P),a(g,f),a(g,L),a(g,{}),a(g,N),a(g,{}),a(g,{}),a(g,U),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,b),a(g,M),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,v),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{}),a(g,{});class B{async match(e,a,s){for(let a of e.images)a.type||(a.type=H.LIVE),"string"!=typeof a.data&&(a.data=t(a.data));return(await this.superClass.match(e,a,s)).data}async detect(e,a,s){return e.image&&"string"!=typeof e.image&&(e.image=t(e.image)),(await this.superClass.detect(e,a,s)).data}constructor(e,t,a){this.superClass=new I(e,t,a)}}let Y=function(t){let a=async(e,a,s={})=>{let n;l("createGroup","groupToCreate",e);let r=new URL("/api/groups",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},s=async(e,a,s={})=>{let n;l("deleteGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},n=async(e,a,s,n={})=>{let r;let o=new URL("/api/groups",u);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},l={},p={};void 0!==e&&(p.page=e),void 0!==a&&(p.size=a),null!=s&&(l["X-RequestID"]=String(s)),d(o,p);let h=r&&r.headers?r.headers:{};return i.headers={...l,...h,...n.headers},{url:c(o),options:i}},o=async(e,a,s,n,r={})=>{let o;l("getAllPersonsByGroupId","groupId",e);let i=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},i=async(e,a,s={})=>{let n;l("getGroup","groupId",e);let r=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"GET",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},E=async(e,a,s,n={})=>{let r;l("updateGroup","groupId",e),l("updateGroup","groupToCreate",a);let o=new URL("/api/groups/{groupId}".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}},I=async(e,a,s,n={})=>{let r;l("updatePersonsInGroup","groupId",e),l("updatePersonsInGroup","updateGroup",a);let o=new URL("/api/groups/{groupId}/persons".replace("{groupId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}};return{createGroup:async(s,n,o)=>h(await a(s,n,o),e,r,t),deleteGroup:async(a,n,o)=>h(await s(a,n,o),e,r,t),getAllGroups:async(a,s,o,i)=>h(await n(a,s,o,i),e,r,t),getAllPersonsByGroupId:async(a,s,n,i,u)=>h(await o(a,s,n,i,u),e,r,t),getGroup:async(a,s,n)=>h(await i(a,s,n),e,r,t),updateGroup:async(a,s,n,o)=>h(await E(a,s,n,o),e,r,t),updatePersonsInGroup:async(a,s,n,o)=>h(await I(a,s,n,o),e,r,t)}};class q extends o{createGroup(e,t,a){return Y(this.configuration).createGroup(e,t,a).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,a){return Y(this.configuration).deleteGroup(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,a,s){return Y(this.configuration).getAllGroups(e,t,a,s).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,a,s,n){return Y(this.configuration).getAllPersonsByGroupId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getGroup(e,t,a){return Y(this.configuration).getGroup(e,t,a).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,a,s){return Y(this.configuration).updateGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,a,s){return Y(this.configuration).updatePersonsInGroup(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class V{async createGroup(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createGroup(s,t,a)).data}async deleteGroup(e,t,a){await this.superClass.deleteGroup(e,t,a)}async getAllGroups(e,t,a,s){return(await this.superClass.getAllGroups(e,t,a,s)).data}async getAllPersonsByGroupId(e,t,a,s,n){return(await this.superClass.getAllPersonsByGroupId(a,e,t,s,n)).data}async getGroup(e,t,a){return(await this.superClass.getGroup(e,t,a)).data}async updateGroup(e,t,a,s){await this.superClass.updateGroup(e,t,a,s)}async updatePersonsInGroup(e,t,a,s){await this.superClass.updatePersonsInGroup(e,t,a,s)}constructor(e,t,a){this.superClass=new q(e,t,a)}}let Q=function(t){let a=async(e,a,s,n={})=>{let r;l("addImageToPerson","personId",e),l("addImageToPerson","addImageToPersonRequest",a);let o=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"POST",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}},s=async(e,a,s={})=>{let n;l("createPerson","personFields",e);let r=new URL("/api/persons",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}},n=async(e,a,s,n={})=>{let r;l("deleteImageOfPerson","imageId",e),l("deleteImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),u);t&&(r=t.baseOptions);let i={method:"DELETE",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...n.headers},{url:c(o),options:i}},o=async(e,a,s={})=>{let n;l("deletePerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"DELETE",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},i=async(e,a,s,n,r={})=>{let o;l("getAllGroupsByPersonId","personId",e);let i=new URL("/api/persons/{personId}/groups".replace("{personId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},E=async(e,a,s,n,r={})=>{let o;l("getAllImagesByPersonId","personId",e);let i=new URL("/api/persons/{personId}/images".replace("{personId}",encodeURIComponent(String(e))),u);t&&(o=t.baseOptions);let p={method:"GET",...o,...r},h={},E={};void 0!==a&&(E.page=a),void 0!==s&&(E.size=s),null!=n&&(h["X-RequestID"]=String(n)),d(i,E);let I=o&&o.headers?o.headers:{};return p.headers={...h,...I,...r.headers},{url:c(i),options:p}},I=async(e,a,s,n={})=>{let r;l("getImageOfPerson","imageId",e),l("getImageOfPerson","personId",a);let o=new URL("/api/persons/{personId}/images/{imageId}".replace("{imageId}",encodeURIComponent(String(e))).replace("{personId}",encodeURIComponent(String(a))),u);t&&(r=t.baseOptions);let i={method:"GET",...r,...n},p={};null!=s&&(p["X-RequestID"]=String(s)),d(o,{});let h=r&&r.headers?r.headers:{};return i.headers={...p,...h,...n.headers},{url:c(o),options:i}},g=async(e,a,s={})=>{let n;l("getPerson","personId",e);let r=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(n=t.baseOptions);let o={method:"GET",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),d(r,{});let p=n&&n.headers?n.headers:{};return o.headers={...i,...p,...s.headers},{url:c(r),options:o}},_=async(e,a,s,n={})=>{let r;l("updatePerson","personId",e),l("updatePerson","personToUpdateFields",a);let o=new URL("/api/persons/{personId}".replace("{personId}",encodeURIComponent(String(e))),u);t&&(r=t.baseOptions);let i={method:"PUT",...r,...n},h={};null!=s&&(h["X-RequestID"]=String(s)),h["Content-Type"]="application/json",d(o,{});let E=r&&r.headers?r.headers:{};return i.headers={...h,...E,...n.headers},i.data=p(a,i,t),{url:c(o),options:i}};return{addImageToPerson:async(s,n,o,i)=>h(await a(s,n,o,i),e,r,t),createPerson:async(a,n,o)=>h(await s(a,n,o),e,r,t),deleteImageOfPerson:async(a,s,o,i)=>h(await n(a,s,o,i),e,r,t),deletePerson:async(a,s,n)=>h(await o(a,s,n),e,r,t),getAllGroupsByPersonId:async(a,s,n,o,u)=>h(await i(a,s,n,o,u),e,r,t),getAllImagesByPersonId:async(a,s,n,o,i)=>h(await E(a,s,n,o,i),e,r,t),getImageOfPerson:async(a,s,n,o)=>h(await I(a,s,n,o),e,r,t),getPerson:async(a,s,n)=>h(await g(a,s,n),e,r,t),updatePerson:async(a,s,n,o)=>h(await _(a,s,n,o),e,r,t)}};class X extends o{addImageToPerson(e,t,a,s){return Q(this.configuration).addImageToPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}createPerson(e,t,a){return Q(this.configuration).createPerson(e,t,a).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,a,s){return Q(this.configuration).deleteImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,a){return Q(this.configuration).deletePerson(e,t,a).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,a,s,n){return Q(this.configuration).getAllGroupsByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,a,s,n){return Q(this.configuration).getAllImagesByPersonId(e,t,a,s,n).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,a,s){return Q(this.configuration).getImageOfPerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}getPerson(e,t,a){return Q(this.configuration).getPerson(e,t,a).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,a,s){return Q(this.configuration).updatePerson(e,t,a,s).then(e=>e(this.axios,this.basePath))}}class K{async createPerson(e,t,a){let s={...e,metadata:(null==e?void 0:e.metadata)?e.metadata:{}};return(await this.superClass.createPerson(s,t,a)).data}async addImageToPerson(e,a,s,n){var r;return(null==a?void 0:null===(r=a.image)||void 0===r?void 0:r.content)&&"string"!=typeof a.image.content&&(a.image.content=t(a.image.content)),(await this.superClass.addImageToPerson(e,a,s,n)).data}async deleteImageOfPerson(e,t,a,s){await this.superClass.deleteImageOfPerson(e,t,a,s)}async deletePerson(e,t,a){await this.superClass.deletePerson(e,t,a)}async getAllGroupsByPersonId(e,t,a,s,n){return(await this.superClass.getAllGroupsByPersonId(a,e,t,s,n)).data}async getAllImagesByPersonId(e,t,a,s,n){return(await this.superClass.getAllImagesByPersonId(a,e,t,s,n)).data}async getImageOfPerson(e,t,a,s){return(await this.superClass.getImageOfPerson(e,t,a,s)).data}async getPerson(e,t,a){return(await this.superClass.getPerson(e,t,a)).data}async updatePerson(e,t,a,s){await this.superClass.updatePerson(e,t,a,s)}constructor(e,t,a){this.superClass=new X(e,t,a)}}let W=function(t){let a=async(e,a,s={})=>{let n;l("search","searchRequest",e);let r=new URL("/api/search",u);t&&(n=t.baseOptions);let o={method:"POST",...n,...s},i={};null!=a&&(i["X-RequestID"]=String(a)),i["Content-Type"]="application/json",d(r,{});let h=n&&n.headers?n.headers:{};return o.headers={...i,...h,...s.headers},o.data=p(e,o,t),{url:c(r),options:o}};return{search:async(s,n,o)=>h(await a(s,n,o),e,r,t)}};class j extends o{search(e,t,a){return W(this.configuration).search(e,t,a).then(e=>e(this.axios,this.basePath))}}class k{async search(e,a,s){var n;return(null==e?void 0:null===(n=e.image)||void 0===n?void 0:n.content)&&"string"!=typeof e.image.content&&(e.image.content=t(e.image.content)),(await this.superClass.search(e,a,s)).data}constructor(e,t,a){this.superClass=new j(e,t,a)}}let z=function(t){let a=async(e,a={})=>{let s;let n=new URL("/api/readiness",u);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};null!=e&&(o["X-RequestID"]=String(e)),d(n,{});let i=s&&s.headers?s.headers:{};return r.headers={...o,...i,...a.headers},{url:c(n),options:r}};return{readiness:async(s,n)=>h(await a(s,n),e,r,t)}};class Z extends o{readiness(e,t){return z(this.configuration).readiness(e,t).then(e=>e(this.axios,this.basePath))}}class J{async readiness(e,t){return(await this.superClass.readiness(e,t)).data}constructor(e,t,a){this.superClass=new Z(e,t,a)}}let ee=function(t){let a=async(e,a={})=>{let s;l("getLivenessTransactionInfo","transactionId",e);let n=new URL("/api/v2/liveness",u);t&&(s=t.baseOptions);let r={method:"GET",...s,...a},o={};void 0!==e&&(o.transactionId=e),d(n,o);let i=s&&s.headers?s.headers:{};return r.headers={...i,...a.headers},{url:c(n),options:r}};return{getLivenessTransactionInfo:async(s,n)=>h(await a(s,n),e,r,t)}};class et extends o{getLivenessTransactionInfo(e,t){return ee(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}}class ea{async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}constructor(e,t,a){this.superClass=new et(e,t,a)}}class es{constructor(t,a=r,s=e){this.basePath=a,this.axios=s,this.matchingApi=new B(t,a,s),this.groupApi=new V(t,a,s),this.personApi=new K(t,a,s),this.searchApi=new k(t,a,s),this.diagnosticsApi=new J(t,a,s),this.livenessApi=new ea(t,a,s)}}a({},n),s({},"Configuration",function(){return en});class en{isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}}export{es as FaceSdk,en as Configuration,A as FaceAttribute,C as FaceImageQualityAlignType,O as FaceImageQualityGroups,m as FaceImageQualityGroupsStrings,y as FaceImageQualityStatus,D as FaceQualityConfigName,G as FaceQualityScenarios,F as FaceSDKResultCode,w as FilterOp,H as ImageSource,x as LivenessType,$ as MatchRequestOutputImageParamsCropTypeEnum};
|
package/lib/index.d.ts
CHANGED
|
@@ -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.
|
|
6
|
+
* The version of the OpenAPI document: 6.1.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.
|
|
89
|
+
* The version of the OpenAPI document: 6.1.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.
|
|
189
|
+
* The version of the OpenAPI document: 6.1.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.
|
|
245
|
+
* The version of the OpenAPI document: 6.1.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
|
-
*
|
|
253
|
+
* Face attributes.
|
|
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.
|
|
290
|
+
* The version of the OpenAPI document: 6.1.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
|
|
298
|
+
* The aspect ratio according to which face alignment is performed during face detection.
|
|
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
|
|
311
|
+
* Whether to return the Base64 image of an aligned and cropped portrait in the `crop` field.
|
|
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.
|
|
345
|
+
* The version of the OpenAPI document: 6.1.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.
|
|
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
|
-
*
|
|
370
|
+
* Whether 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
|
+
*
|
|
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.
|
|
405
|
+
* The version of the OpenAPI document: 6.1.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
|
-
*
|
|
413
|
+
* All image characteristics that can be assessed during face image quality assessment.
|
|
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
|
|
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.
|
|
482
482
|
* @type {Array<number>}
|
|
483
483
|
* @memberof QualityConfig
|
|
484
484
|
*/
|
|
485
485
|
'range'?: Array<number>;
|
|
486
486
|
}
|
|
487
487
|
/**
|
|
488
|
-
*
|
|
488
|
+
* Whether to perform the portrait quality check.
|
|
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
|
+
*
|
|
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
|
|
519
|
+
* Whether to process only the central face on the image (true) or all the faces (false).
|
|
520
520
|
* @type {boolean}
|
|
521
521
|
* @memberof ProcessParam
|
|
522
522
|
*/
|
|
@@ -565,10 +565,9 @@ export interface DetectRequest {
|
|
|
565
565
|
*/
|
|
566
566
|
'image'?: ImageData;
|
|
567
567
|
/**
|
|
568
|
-
*
|
|
568
|
+
* Deprecated, use the `crop` field in `processParam` instead.
|
|
569
569
|
* @type {boolean}
|
|
570
570
|
* @memberof DetectRequest
|
|
571
|
-
* @deprecated
|
|
572
571
|
*/
|
|
573
572
|
'thumbnails'?: boolean;
|
|
574
573
|
}
|
|
@@ -576,7 +575,7 @@ export interface DetectRequest {
|
|
|
576
575
|
* Regula Face SDK Web API
|
|
577
576
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
578
577
|
*
|
|
579
|
-
* The version of the OpenAPI document: 6.
|
|
578
|
+
* The version of the OpenAPI document: 6.1.0
|
|
580
579
|
*
|
|
581
580
|
*
|
|
582
581
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -608,7 +607,7 @@ export interface DetectionAttributes {
|
|
|
608
607
|
* Regula Face SDK Web API
|
|
609
608
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
610
609
|
*
|
|
611
|
-
* The version of the OpenAPI document: 6.
|
|
610
|
+
* The version of the OpenAPI document: 6.1.0
|
|
612
611
|
*
|
|
613
612
|
*
|
|
614
613
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -635,7 +634,7 @@ export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeo
|
|
|
635
634
|
* Regula Face SDK Web API
|
|
636
635
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
637
636
|
*
|
|
638
|
-
* The version of the OpenAPI document: 6.
|
|
637
|
+
* The version of the OpenAPI document: 6.1.0
|
|
639
638
|
*
|
|
640
639
|
*
|
|
641
640
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -694,7 +693,7 @@ export interface QualityDetail {
|
|
|
694
693
|
* Regula Face SDK Web API
|
|
695
694
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
696
695
|
*
|
|
697
|
-
* The version of the OpenAPI document: 6.
|
|
696
|
+
* The version of the OpenAPI document: 6.1.0
|
|
698
697
|
*
|
|
699
698
|
*
|
|
700
699
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -883,7 +882,7 @@ export interface DetectResponseAllOf {
|
|
|
883
882
|
* Regula Face SDK Web API
|
|
884
883
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
885
884
|
*
|
|
886
|
-
* The version of the OpenAPI document: 6.
|
|
885
|
+
* The version of the OpenAPI document: 6.1.0
|
|
887
886
|
*
|
|
888
887
|
*
|
|
889
888
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -961,7 +960,7 @@ export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
|
|
|
961
960
|
* Regula Face SDK Web API
|
|
962
961
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
963
962
|
*
|
|
964
|
-
* The version of the OpenAPI document: 6.
|
|
963
|
+
* The version of the OpenAPI document: 6.1.0
|
|
965
964
|
*
|
|
966
965
|
*
|
|
967
966
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1016,7 +1015,7 @@ export interface DetectionFace {
|
|
|
1016
1015
|
* Regula Face SDK Web API
|
|
1017
1016
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1018
1017
|
*
|
|
1019
|
-
* The version of the OpenAPI document: 6.
|
|
1018
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1020
1019
|
*
|
|
1021
1020
|
*
|
|
1022
1021
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1058,7 +1057,7 @@ export interface PersonAllOf {
|
|
|
1058
1057
|
* Regula Face SDK Web API
|
|
1059
1058
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1060
1059
|
*
|
|
1061
|
-
* The version of the OpenAPI document: 6.
|
|
1060
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1062
1061
|
*
|
|
1063
1062
|
*
|
|
1064
1063
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1097,12 +1096,6 @@ export interface PersonFields {
|
|
|
1097
1096
|
* @memberof PersonFields
|
|
1098
1097
|
*/
|
|
1099
1098
|
'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;
|
|
1106
1099
|
}
|
|
1107
1100
|
/**
|
|
1108
1101
|
* @type Person
|
|
@@ -1114,7 +1107,7 @@ export type Person = PersonAllOf & PersonFields;
|
|
|
1114
1107
|
* Regula Face SDK Web API
|
|
1115
1108
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1116
1109
|
*
|
|
1117
|
-
* The version of the OpenAPI document: 6.
|
|
1110
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1118
1111
|
*
|
|
1119
1112
|
*
|
|
1120
1113
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1176,7 +1169,7 @@ export interface Image {
|
|
|
1176
1169
|
* Regula Face SDK Web API
|
|
1177
1170
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1178
1171
|
*
|
|
1179
|
-
* The version of the OpenAPI document: 6.
|
|
1172
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1180
1173
|
*
|
|
1181
1174
|
*
|
|
1182
1175
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1253,7 +1246,7 @@ export type FacesResponse = DetectionFace & FacesResponseAllOf;
|
|
|
1253
1246
|
* Regula Face SDK Web API
|
|
1254
1247
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1255
1248
|
*
|
|
1256
|
-
* The version of the OpenAPI document: 6.
|
|
1249
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1257
1250
|
*
|
|
1258
1251
|
*
|
|
1259
1252
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1299,7 +1292,7 @@ export interface FilterSearchRequest {
|
|
|
1299
1292
|
* Regula Face SDK Web API
|
|
1300
1293
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1301
1294
|
*
|
|
1302
|
-
* The version of the OpenAPI document: 6.
|
|
1295
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1303
1296
|
*
|
|
1304
1297
|
*
|
|
1305
1298
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1329,7 +1322,7 @@ export interface GroupAllOf {
|
|
|
1329
1322
|
* Regula Face SDK Web API
|
|
1330
1323
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1331
1324
|
*
|
|
1332
|
-
* The version of the OpenAPI document: 6.
|
|
1325
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1333
1326
|
*
|
|
1334
1327
|
*
|
|
1335
1328
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1379,7 +1372,7 @@ export interface GroupPageAllOf {
|
|
|
1379
1372
|
* Regula Face SDK Web API
|
|
1380
1373
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1381
1374
|
*
|
|
1382
|
-
* The version of the OpenAPI document: 6.
|
|
1375
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1383
1376
|
*
|
|
1384
1377
|
*
|
|
1385
1378
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1414,7 +1407,7 @@ export type GroupPage = GroupPageAllOf & Page;
|
|
|
1414
1407
|
* Regula Face SDK Web API
|
|
1415
1408
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1416
1409
|
*
|
|
1417
|
-
* The version of the OpenAPI document: 6.
|
|
1410
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1418
1411
|
*
|
|
1419
1412
|
*
|
|
1420
1413
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1513,7 +1506,7 @@ export type ImagePage = ImagePageAllOf & Page;
|
|
|
1513
1506
|
* Regula Face SDK Web API
|
|
1514
1507
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1515
1508
|
*
|
|
1516
|
-
* The version of the OpenAPI document: 6.
|
|
1509
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1517
1510
|
*
|
|
1518
1511
|
*
|
|
1519
1512
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1539,7 +1532,7 @@ export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
|
|
|
1539
1532
|
* Regula Face SDK Web API
|
|
1540
1533
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1541
1534
|
*
|
|
1542
|
-
* The version of the OpenAPI document: 6.
|
|
1535
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1543
1536
|
*
|
|
1544
1537
|
*
|
|
1545
1538
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1779,6 +1772,75 @@ export interface MatchImageDetection {
|
|
|
1779
1772
|
*/
|
|
1780
1773
|
'status': FaceSDKResultCode;
|
|
1781
1774
|
}
|
|
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
|
+
}
|
|
1782
1844
|
/**
|
|
1783
1845
|
*
|
|
1784
1846
|
* @export
|
|
@@ -1806,10 +1868,10 @@ export interface MatchRequest {
|
|
|
1806
1868
|
'images': Array<MatchImage>;
|
|
1807
1869
|
/**
|
|
1808
1870
|
*
|
|
1809
|
-
* @type {
|
|
1871
|
+
* @type {MatchRequestOutputImageParams}
|
|
1810
1872
|
* @memberof MatchRequest
|
|
1811
1873
|
*/
|
|
1812
|
-
'outputImageParams'?:
|
|
1874
|
+
'outputImageParams'?: MatchRequestOutputImageParams;
|
|
1813
1875
|
}
|
|
1814
1876
|
/**
|
|
1815
1877
|
*
|
|
@@ -1847,7 +1909,7 @@ export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
|
|
|
1847
1909
|
* Regula Face SDK Web API
|
|
1848
1910
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1849
1911
|
*
|
|
1850
|
-
* The version of the OpenAPI document: 6.
|
|
1912
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1851
1913
|
*
|
|
1852
1914
|
*
|
|
1853
1915
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1891,7 +1953,7 @@ export interface OperationLog {
|
|
|
1891
1953
|
* Regula Face SDK Web API
|
|
1892
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
|
|
1893
1955
|
*
|
|
1894
|
-
* The version of the OpenAPI document: 6.
|
|
1956
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1895
1957
|
*
|
|
1896
1958
|
*
|
|
1897
1959
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1953,7 +2015,7 @@ export type PersonsPage = Page & PersonsPageAllOf;
|
|
|
1953
2015
|
* Regula Face SDK Web API
|
|
1954
2016
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1955
2017
|
*
|
|
1956
|
-
* The version of the OpenAPI document: 6.
|
|
2018
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1957
2019
|
*
|
|
1958
2020
|
*
|
|
1959
2021
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1989,7 +2051,7 @@ export interface SearchBadParams {
|
|
|
1989
2051
|
* Regula Face SDK Web API
|
|
1990
2052
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
1991
2053
|
*
|
|
1992
|
-
* The version of the OpenAPI document: 6.
|
|
2054
|
+
* The version of the OpenAPI document: 6.1.0
|
|
1993
2055
|
*
|
|
1994
2056
|
*
|
|
1995
2057
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2073,7 +2135,7 @@ export interface SearchDetection {
|
|
|
2073
2135
|
* Regula Face SDK Web API
|
|
2074
2136
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
2075
2137
|
*
|
|
2076
|
-
* The version of the OpenAPI document: 6.
|
|
2138
|
+
* The version of the OpenAPI document: 6.1.0
|
|
2077
2139
|
*
|
|
2078
2140
|
*
|
|
2079
2141
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2100,12 +2162,6 @@ export interface SearchParametersCreatePerson {
|
|
|
2100
2162
|
'metadata'?: {
|
|
2101
2163
|
[key: string]: object;
|
|
2102
2164
|
};
|
|
2103
|
-
/**
|
|
2104
|
-
* The lifespan of the Person\'s records, seconds. Optional.
|
|
2105
|
-
* @type {number}
|
|
2106
|
-
* @memberof SearchParametersCreatePerson
|
|
2107
|
-
*/
|
|
2108
|
-
'ttl'?: number | null;
|
|
2109
2165
|
}
|
|
2110
2166
|
/**
|
|
2111
2167
|
* Request search data.
|
|
@@ -2287,7 +2343,7 @@ export interface TransactionInfo {
|
|
|
2287
2343
|
* Regula Face SDK Web API
|
|
2288
2344
|
* <a href=\"https://regulaforensics.com/products/face-recognition-sdk/ \" target=\"_blank\">Regula Face SDK</a> is a cross-platform biometric verification solution for a digital identity verification process and image quality assurance. The SDK enables convenient and reliable face capture on the client side (mobile, web, and desktop) and further processing on the client or server side. The Face SDK includes the following features: * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-detection\" target=\"_blank\">Face detection and image quality assessment</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-comparison-11\" target=\"_blank\">Face match (1:1)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#face-identification-1n\" target=\"_blank\">Face search (1:N)</a> * <a href=\"https://docs.regulaforensics.com/develop/face-sdk/overview/introduction/#liveness-assessment\" target=\"_blank\">Liveness detection</a> Here is the <a href=\"https://github.com/regulaforensics/FaceSDK-web-openapi \" target=\"_blank\">OpenAPI specification on GitHub</a>. ### Clients * [JavaScript](https://github.com/regulaforensics/FaceSDK-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/FaceSDK-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/FaceSDK-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/FaceSDK-web-csharp-client) client for .NET & .NET Core
|
|
2289
2345
|
*
|
|
2290
|
-
* The version of the OpenAPI document: 6.
|
|
2346
|
+
* The version of the OpenAPI document: 6.1.0
|
|
2291
2347
|
*
|
|
2292
2348
|
*
|
|
2293
2349
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|