@regulaforensics/facesdk-webclient 7.4.2-nightly → 8.1.387-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/lib/index.d.ts DELETED
@@ -1,2036 +0,0 @@
1
- import { AxiosRequestConfig, AxiosInstance } from "axios";
2
- /**
3
- * Regula FaceSDK Web API
4
- * Regula FaceSDK Web API # 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
- *
6
- * The version of the OpenAPI document: 5.2.0
7
- *
8
- *
9
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
10
- * https://openapi-generator.tech
11
- * Do not edit the class manually.
12
- */
13
- export interface ConfigurationParameters {
14
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
15
- username?: string;
16
- password?: string;
17
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
18
- basePath?: string;
19
- baseOptions?: any;
20
- formDataCtor?: new () => any;
21
- }
22
- export class Configuration {
23
- /**
24
- * parameter for apiKey security
25
- * @param name security name
26
- * @memberof Configuration
27
- */
28
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
- /**
30
- * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
- */
35
- username?: string;
36
- /**
37
- * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
- */
42
- password?: string;
43
- /**
44
- * parameter for oauth2 security
45
- * @param name security name
46
- * @param scopes oauth2 scope
47
- * @memberof Configuration
48
- */
49
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
- /**
51
- * override base path
52
- *
53
- * @type {string}
54
- * @memberof Configuration
55
- */
56
- basePath?: string;
57
- /**
58
- * base options for axios calls
59
- *
60
- * @type {any}
61
- * @memberof Configuration
62
- */
63
- baseOptions?: any;
64
- /**
65
- * The FormData constructor that will be used to create multipart form data
66
- * requests. You can inject this here so that execution environments that
67
- * do not support the FormData class can still run the generated client.
68
- *
69
- * @type {new () => FormData}
70
- */
71
- formDataCtor?: new () => any;
72
- constructor(param?: ConfigurationParameters);
73
- /**
74
- * Check if the given MIME is a JSON MIME.
75
- * JSON MIME examples:
76
- * application/json
77
- * application/json; charset=UTF8
78
- * APPLICATION/JSON
79
- * application/vnd.company+json
80
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
- * @return True if the given MIME is JSON, false otherwise.
82
- */
83
- isJsonMime(mime: string): boolean;
84
- }
85
- /**
86
- * Regula FaceSDK Web API
87
- * Regula FaceSDK Web API # 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
- *
89
- * The version of the OpenAPI document: 5.2.0
90
- *
91
- *
92
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
93
- * https://openapi-generator.tech
94
- * Do not edit the class manually.
95
- */
96
- /**
97
- * The aspect ratio according to which face alignment is performed during face detection.
98
- * @export
99
- * @enum {string}
100
- */
101
- export const FaceImageQualityAlignType: {
102
- readonly ALIGN_3x4: 0;
103
- readonly ALIGN_4x5: 1;
104
- readonly ALIGN_2x3: 2;
105
- readonly ALIGN_1x1: 3;
106
- readonly ALIGN_7x9: 4;
107
- };
108
- export type FaceImageQualityAlignType = (typeof FaceImageQualityAlignType)[keyof typeof FaceImageQualityAlignType];
109
- /**
110
- * Whether to return the Base64 of an aligned and cropped portrait in the crop field.
111
- * @export
112
- * @interface Crop
113
- */
114
- export interface Crop {
115
- /**
116
- *
117
- * @type {FaceImageQualityAlignType}
118
- * @memberof Crop
119
- */
120
- 'type'?: FaceImageQualityAlignType;
121
- /**
122
- * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
123
- * @type {Array<number>}
124
- * @memberof Crop
125
- */
126
- 'padColor'?: Array<number>;
127
- /**
128
- * The resize value in case type matches this value. If it doesn\'t, no resize is done.
129
- * @type {Array<number>}
130
- * @memberof Crop
131
- */
132
- 'size'?: Array<number>;
133
- /**
134
- * Whether to return the coordinates of the rectangle with the face in the original image prepared for the face crop.
135
- * @type {boolean}
136
- * @memberof Crop
137
- */
138
- 'returnOriginalRect'?: boolean;
139
- }
140
- /**
141
- * Regula FaceSDK Web API
142
- * Regula FaceSDK Web API # 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
143
- *
144
- * The version of the OpenAPI document: 5.2.0
145
- *
146
- *
147
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
148
- * https://openapi-generator.tech
149
- * Do not edit the class manually.
150
- */
151
- /**
152
- * Face attributes.
153
- * @export
154
- * @enum {string}
155
- */
156
- export const FaceAttribute: {
157
- readonly AGE: "Age";
158
- readonly EMOTION: "Emotion";
159
- readonly EYE_LEFT: "EyeLeft";
160
- readonly EYE_RIGHT: "EyeRight";
161
- readonly SMILE: "Smile";
162
- readonly GLASSES: "Glasses";
163
- readonly HEAD_COVERING: "HeadCovering";
164
- readonly FOREHEAD_COVERING: "ForeheadCovering";
165
- readonly MOUTH: "Mouth";
166
- readonly MEDICAL_MASK: "MedicalMask";
167
- readonly OCCLUSION: "Occlusion";
168
- readonly STRONG_MAKEUP: "StrongMakeup";
169
- readonly HEADPHONES: "Headphones";
170
- };
171
- export type FaceAttribute = (typeof FaceAttribute)[keyof typeof FaceAttribute];
172
- /**
173
- * The configuration that defines the list of returned quality check characteristics.
174
- * @export
175
- * @interface QualityConfig
176
- */
177
- export interface QualityConfig {
178
- /**
179
- *
180
- * @type {FaceAttribute}
181
- * @memberof QualityConfig
182
- */
183
- 'name'?: FaceAttribute;
184
- /**
185
- * 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.
186
- * @type {Array<number>}
187
- * @memberof QualityConfig
188
- */
189
- 'range'?: Array<number>;
190
- }
191
- /**
192
- * Whether to evaluate attributes, such as age and emotions.
193
- * @export
194
- * @interface DetectRequestAttributes
195
- */
196
- export interface DetectRequestAttributes {
197
- /**
198
- *
199
- * @type {Array<QualityConfig>}
200
- * @memberof DetectRequestAttributes
201
- */
202
- 'config'?: Array<QualityConfig>;
203
- }
204
- /**
205
- * Regula FaceSDK Web API
206
- * Regula FaceSDK Web API # 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
207
- *
208
- * The version of the OpenAPI document: 5.2.0
209
- *
210
- *
211
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
212
- * https://openapi-generator.tech
213
- * Do not edit the class manually.
214
- */
215
- /**
216
- * Face detection scenario.
217
- * @export
218
- * @enum {string}
219
- */
220
- export const FaceQualityScenarios: {
221
- readonly OLD_MODE: "OldMode";
222
- readonly QUALITY_FULL: "QualityFull";
223
- readonly QUALITY_ICAO: "QualityICAO";
224
- readonly QUALITY_VISA_SCHENGEN: "QualityVisaSchengen";
225
- readonly QUALITY_VISA_USA: "QualityVisaUSA";
226
- readonly CROP_CENTRAL_FACE: "CropCentralFace";
227
- readonly CROP_ALL_FACES: "CropAllFaces";
228
- readonly THUMBNAIL: "Thumbnail";
229
- };
230
- export type FaceQualityScenarios = (typeof FaceQualityScenarios)[keyof typeof FaceQualityScenarios];
231
- /**
232
- * Whether to process the uploaded image according to the indicated settings.
233
- * @export
234
- * @interface OutputImageParams
235
- */
236
- export interface OutputImageParams {
237
- /**
238
- * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
239
- * @type {Array<number>}
240
- * @memberof OutputImageParams
241
- */
242
- 'backgroundColor'?: Array<number>;
243
- /**
244
- *
245
- * @type {Crop}
246
- * @memberof OutputImageParams
247
- */
248
- 'crop'?: Crop;
249
- }
250
- /**
251
- * Whether to perform the portrait quality check.
252
- * @export
253
- * @interface QualityRequest
254
- */
255
- export interface QualityRequest {
256
- /**
257
- * The RGB value of a color for filling background behind a person\'s silhouette and for aligning the image.
258
- * @type {Array<number>}
259
- * @memberof QualityRequest
260
- */
261
- 'backgroundMatchColor'?: Array<number>;
262
- /**
263
- *
264
- * @type {Array<QualityConfig>}
265
- * @memberof QualityRequest
266
- */
267
- 'config'?: Array<QualityConfig>;
268
- }
269
- /**
270
- * The processing parameters.
271
- * @export
272
- * @interface ProcessParam
273
- */
274
- export interface ProcessParam {
275
- /**
276
- *
277
- * @type {FaceQualityScenarios}
278
- * @memberof ProcessParam
279
- */
280
- 'scenario'?: FaceQualityScenarios;
281
- /**
282
- * Whether to process only the central face on the image (true) or all the faces (false).
283
- * @type {boolean}
284
- * @memberof ProcessParam
285
- */
286
- 'onlyCentralFace'?: boolean;
287
- /**
288
- *
289
- * @type {OutputImageParams}
290
- * @memberof ProcessParam
291
- */
292
- 'outputImageParams'?: OutputImageParams;
293
- /**
294
- *
295
- * @type {QualityRequest}
296
- * @memberof ProcessParam
297
- */
298
- 'quality'?: QualityRequest;
299
- /**
300
- * Whether to evaluate attributes, such as age and emotions.
301
- * @type {boolean}
302
- * @memberof ProcessParam
303
- */
304
- 'attributes'?: boolean;
305
- }
306
- type Base64String = string;
307
- type ImageData = Base64String | ArrayBuffer;
308
- /**
309
- *
310
- * @export
311
- * @interface DetectRequest
312
- */
313
- export interface DetectRequest {
314
- /**
315
- * Session identificator.
316
- * @type {string}
317
- * @memberof DetectRequest
318
- */
319
- 'tag'?: string;
320
- /**
321
- *
322
- * @type {ProcessParam}
323
- * @memberof DetectRequest
324
- */
325
- 'processParam'?: ProcessParam;
326
- /**
327
- *
328
- * @type {ImageData}
329
- * @memberof DetectRequest
330
- */
331
- 'image'?: ImageData;
332
- /**
333
- * Whether to return the cropped portrains with the detected faces.
334
- * @type {boolean}
335
- * @memberof DetectRequest
336
- */
337
- 'thumbnails'?: boolean;
338
- /**
339
- *
340
- * @type {DetectRequestAttributes}
341
- * @memberof DetectRequest
342
- */
343
- 'attributes'?: DetectRequestAttributes;
344
- }
345
- /**
346
- * Regula FaceSDK Web API
347
- * Regula FaceSDK Web API # 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
348
- *
349
- * The version of the OpenAPI document: 5.2.0
350
- *
351
- *
352
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
353
- * https://openapi-generator.tech
354
- * Do not edit the class manually.
355
- */
356
- /**
357
- * All image characteristics that can be assessed during face image quality assessment.
358
- * @export
359
- * @enum {string}
360
- */
361
- export const FaceQualityConfigName: {
362
- readonly IMAGE_WIDTH: "ImageWidth";
363
- readonly IMAGE_HEIGHT: "ImageHeight";
364
- readonly IMAGE_WIDTH_TO_HEIGHT: "ImageWidthToHeight";
365
- readonly IMAGE_CHANNELS_NUMBER: "ImageChannelsNumber";
366
- readonly PADDING_RATIO: "PaddingRatio";
367
- readonly FACE_MID_POINT_HORIZONTAL_POSITION: "FaceMidPointHorizontalPosition";
368
- readonly FACE_MID_POINT_VERTICAL_POSITION: "FaceMidPointVerticalPosition";
369
- readonly HEAD_WIDTH_RATIO: "HeadWidthRatio";
370
- readonly HEAD_HEIGHT_RATIO: "HeadHeightRatio";
371
- readonly EYES_DISTANCE: "EyesDistance";
372
- readonly YAW: "Yaw";
373
- readonly PITCH: "Pitch";
374
- readonly ROLL: "Roll";
375
- readonly BLUR_LEVEL: "BlurLevel";
376
- readonly NOISE_LEVEL: "NoiseLevel";
377
- readonly EYE_RIGHT_CLOSED: "EyeRightClosed";
378
- readonly EYE_LEFT_CLOSED: "EyeLeftClosed";
379
- readonly EYE_RIGHT_OCCLUDED: "EyeRightOccluded";
380
- readonly EYE_LEFT_OCCLUDED: "EyeLeftOccluded";
381
- readonly EYES_RED: "EyesRed";
382
- readonly EYE_RIGHT_COVERED_WITH_HAIR: "EyeRightCoveredWithHair";
383
- readonly EYE_LEFT_COVERED_WITH_HAIR: "EyeLeftCoveredWithHair";
384
- readonly OFF_GAZE: "OffGaze";
385
- readonly FACE_DYNAMIC_RANGE: "FaceDynamicRange";
386
- readonly UNNATURAL_SKIN_TONE: "UnnaturalSkinTone";
387
- readonly TOO_DARK: "TooDark";
388
- readonly TOO_LIGHT: "TooLight";
389
- readonly FACE_GLARE: "FaceGlare";
390
- readonly SHADOWS_ON_FACE: "ShadowsOnFace";
391
- readonly DARK_GLASSES: "DarkGlasses";
392
- readonly REFLECTION_ON_GLASSES: "ReflectionOnGlasses";
393
- readonly FRAMES_TOO_HEAVY: "FramesTooHeavy";
394
- readonly FACE_OCCLUDED: "FaceOccluded";
395
- readonly HEAD_COVERING: "HeadCovering";
396
- readonly BACKGROUND_UNIFORMITY: "BackgroundUniformity";
397
- readonly SHADOWS_ON_BACKGROUND: "ShadowsOnBackground";
398
- readonly OTHER_FACES: "OtherFaces";
399
- readonly SHOULDERS_POSE: "ShouldersPose";
400
- readonly EXPRESSION_LEVEL: "ExpressionLevel";
401
- readonly MOUTH_OPEN: "MouthOpen";
402
- readonly FOREHEAD_COVERING: "ForeheadCovering";
403
- readonly SMILE: "Smile";
404
- readonly STRONG_MAKEUP: "StrongMakeup";
405
- readonly HEADPHONES: "Headphones";
406
- readonly MEDICAL_MASK: "MedicalMask";
407
- readonly BACKGROUND_COLOR_MATCH: "BackgroundColorMatch";
408
- readonly ART_FACE: "ArtFace";
409
- readonly CONTACT_LENSES: "ContactLenses";
410
- };
411
- export type FaceQualityConfigName = (typeof FaceQualityConfigName)[keyof typeof FaceQualityConfigName];
412
- /**
413
- * Regula FaceSDK Web API
414
- * Regula FaceSDK Web API # 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
415
- *
416
- * The version of the OpenAPI document: 5.2.0
417
- *
418
- *
419
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
420
- * https://openapi-generator.tech
421
- * Do not edit the class manually.
422
- */
423
- /**
424
- * Face image quality group types for face image quality assessment.
425
- * @export
426
- * @enum {string}
427
- */
428
- export const FaceImageQualityGroups: {
429
- readonly IMAGE_CHARACTERISTICS: 1;
430
- readonly HEAD_SIZE_AND_POSITIONS: 2;
431
- readonly FACE_QUALITY: 3;
432
- readonly EYES_CHARACTERISTICS: 4;
433
- readonly SHADOWS_AND_LIGHTNING: 5;
434
- readonly POSE_AND_EXPRESSION: 6;
435
- readonly HEAD_OCCLUSION: 7;
436
- readonly BACKGROUND: 8;
437
- };
438
- export type FaceImageQualityGroups = (typeof FaceImageQualityGroups)[keyof typeof FaceImageQualityGroups];
439
- /**
440
- * Regula FaceSDK Web API
441
- * Regula FaceSDK Web API # 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
442
- *
443
- * The version of the OpenAPI document: 5.2.0
444
- *
445
- *
446
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
447
- * https://openapi-generator.tech
448
- * Do not edit the class manually.
449
- */
450
- /**
451
- * The processing status returned for each assessed quality characteristic.
452
- * @export
453
- * @enum {string}
454
- */
455
- export const FaceImageQualityStatus: {
456
- readonly QUALITY_STATUS_FALSE: 0;
457
- readonly QUALITY_STATUS_TRUE: 1;
458
- readonly QUALITY_STATUS_UNDETERMINED: 2;
459
- };
460
- export type FaceImageQualityStatus = (typeof FaceImageQualityStatus)[keyof typeof FaceImageQualityStatus];
461
- /**
462
- *
463
- * @export
464
- * @interface QualityDetail
465
- */
466
- export interface QualityDetail {
467
- /**
468
- *
469
- * @type {FaceImageQualityGroups}
470
- * @memberof QualityDetail
471
- */
472
- 'groupId'?: FaceImageQualityGroups;
473
- /**
474
- *
475
- * @type {FaceQualityConfigName}
476
- * @memberof QualityDetail
477
- */
478
- 'name'?: FaceQualityConfigName;
479
- /**
480
- * The range of set values for this characteristic.
481
- * @type {Array<number>}
482
- * @memberof QualityDetail
483
- */
484
- 'range'?: Array<number>;
485
- /**
486
- *
487
- * @type {FaceImageQualityStatus}
488
- * @memberof QualityDetail
489
- */
490
- 'status'?: FaceImageQualityStatus;
491
- /**
492
- * The assessed value for the characteristic, returned in the set units.
493
- * @type {number}
494
- * @memberof QualityDetail
495
- */
496
- 'value'?: number;
497
- }
498
- /**
499
- * Regula FaceSDK Web API
500
- * Regula FaceSDK Web API # 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
501
- *
502
- * The version of the OpenAPI document: 5.2.0
503
- *
504
- *
505
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
506
- * https://openapi-generator.tech
507
- * Do not edit the class manually.
508
- */
509
- /**
510
- * Face image quality group types for face image quality assessment.
511
- * @export
512
- * @enum {string}
513
- */
514
- export const FaceImageQualityGroupsStrings: {
515
- readonly IMAGE_CHARACTERISTICS: "ImageCharacteristics";
516
- readonly HEAD_SIZE_AND_POSITIONS: "HeadSizeAndPosition";
517
- readonly FACE_QUALITY: "FaceQuality";
518
- readonly EYES_CHARACTERISTICS: "EyesCharacteristics";
519
- readonly SHADOWS_AND_LIGHTNING: "ShadowsAndLightning";
520
- readonly POSE_AND_EXPRESSION: "PoseAndExpression";
521
- readonly HEAD_OCCLUSION: "HeadOcclusion";
522
- readonly BACKGROUND: "Background";
523
- };
524
- export type FaceImageQualityGroupsStrings = (typeof FaceImageQualityGroupsStrings)[keyof typeof FaceImageQualityGroupsStrings];
525
- /**
526
- *
527
- * @export
528
- * @interface QualityDetailsGroups
529
- */
530
- export interface QualityDetailsGroups {
531
- /**
532
- *
533
- * @type {FaceImageQualityGroups}
534
- * @memberof QualityDetailsGroups
535
- */
536
- 'groupId'?: FaceImageQualityGroups;
537
- /**
538
- *
539
- * @type {FaceImageQualityGroupsStrings}
540
- * @memberof QualityDetailsGroups
541
- */
542
- 'name'?: FaceImageQualityGroupsStrings;
543
- /**
544
- * The total number of characteristics in the group.
545
- * @type {number}
546
- * @memberof QualityDetailsGroups
547
- */
548
- 'totalCount'?: number;
549
- /**
550
- * The number of compliant characteristics in the group.
551
- * @type {number}
552
- * @memberof QualityDetailsGroups
553
- */
554
- 'compliantCount'?: number;
555
- }
556
- /**
557
- * Field for checking the portrait quality. If it is not mentioned, no quality check is performed.
558
- * @export
559
- * @interface DetectionQuality
560
- */
561
- export interface DetectionQuality {
562
- /**
563
- * The array of all the non-compliant assessment characteristics.
564
- * @type {Array<FaceQualityConfigName>}
565
- * @memberof DetectionQuality
566
- */
567
- 'nonCompliant'?: Array<FaceQualityConfigName>;
568
- /**
569
- * The array of the assessment results for each group of characteristics.
570
- * @type {Array<QualityDetailsGroups>}
571
- * @memberof DetectionQuality
572
- */
573
- 'detailsGroups'?: Array<QualityDetailsGroups>;
574
- /**
575
- * The array of the assessment characteristics that were set in the request.
576
- * @type {Array<QualityDetail>}
577
- * @memberof DetectionQuality
578
- */
579
- 'details'?: Array<QualityDetail>;
580
- /**
581
- * Returns the estimated portrait quality assessment result, a number from 0 to 1, where 1 is for absolute compliance.
582
- * @type {number}
583
- * @memberof DetectionQuality
584
- */
585
- 'score'?: number;
586
- /**
587
- * The total time the quality assessment has taken.
588
- * @type {number}
589
- * @memberof DetectionQuality
590
- */
591
- 'timer'?: number;
592
- }
593
- /**
594
- *
595
- * @export
596
- * @interface Detection
597
- */
598
- export interface Detection {
599
- /**
600
- *
601
- * @type {ImageData}
602
- * @memberof Detection
603
- */
604
- 'crop'?: ImageData;
605
- /**
606
- *
607
- * @type {{ [key: string]: object; }}
608
- * @memberof Detection
609
- */
610
- 'attributes'?: {
611
- [key: string]: object;
612
- };
613
- /**
614
- * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
615
- * @type {Array<Array<number>>}
616
- * @memberof Detection
617
- */
618
- 'landmarks': Array<Array<number>>;
619
- /**
620
- *
621
- * @type {DetectionQuality}
622
- * @memberof Detection
623
- */
624
- 'quality'?: DetectionQuality;
625
- /**
626
- * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
627
- * @type {Array<number>}
628
- * @memberof Detection
629
- */
630
- 'roi': Array<number>;
631
- /**
632
- * Base64 of the cropped portrait.
633
- * @type {string}
634
- * @memberof Detection
635
- */
636
- 'thumbnail'?: string;
637
- }
638
- /**
639
- *
640
- * @export
641
- * @interface DetectResult
642
- */
643
- export interface DetectResult {
644
- /**
645
- *
646
- * @type {Array<Detection>}
647
- * @memberof DetectResult
648
- */
649
- 'detections': Array<Detection>;
650
- /**
651
- * Internal.
652
- * @type {number}
653
- * @memberof DetectResult
654
- */
655
- 'detectorType'?: number;
656
- /**
657
- * Internal.
658
- * @type {number}
659
- * @memberof DetectResult
660
- */
661
- 'landmarksType'?: number;
662
- /**
663
- *
664
- * @type {FaceQualityScenarios}
665
- * @memberof DetectResult
666
- */
667
- 'scenario'?: FaceQualityScenarios;
668
- /**
669
- * The total time taken for the detection.
670
- * @type {number}
671
- * @memberof DetectResult
672
- */
673
- 'timer'?: number;
674
- }
675
- /**
676
- *
677
- * @export
678
- * @interface DetectResponseAllOf
679
- */
680
- export interface DetectResponseAllOf {
681
- /**
682
- *
683
- * @type {DetectResult}
684
- * @memberof DetectResponseAllOf
685
- */
686
- 'results'?: DetectResult;
687
- }
688
- /**
689
- * Regula FaceSDK Web API
690
- * Regula FaceSDK Web API # 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
691
- *
692
- * The version of the OpenAPI document: 5.2.0
693
- *
694
- *
695
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
696
- * https://openapi-generator.tech
697
- * Do not edit the class manually.
698
- */
699
- /**
700
- * The result code, see enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
701
- * @export
702
- * @enum {string}
703
- */
704
- export const FaceSDKResultCode: {
705
- readonly FACER_OK: 0;
706
- readonly FR_IMAGE_EMPTY: 1;
707
- readonly FR_FACE_NOT_DETECTED: 2;
708
- readonly FR_LANDMARKS_NOT_DETECTED: 3;
709
- readonly FR_FACE_ALIGHNER_FAILED: 4;
710
- readonly FR_DESCRIPTOR_EXTRACTOR_ERROR: 5;
711
- readonly FR_IMAGE_DECODE_ERROR: 6;
712
- readonly FR_INTERNAL_ERROR: 7;
713
- readonly FACER_CONFIG_ERROR: 199;
714
- readonly FACER_NO_LICENSE: 200;
715
- readonly FACER_IS_NOT_INITIALIZED: 201;
716
- readonly FACER_COMMAND_IS_NOT_SUPPORTED: 202;
717
- readonly FACER_COMMAND_PARAMS_READ_ERROR: 203;
718
- readonly FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST: 224;
719
- readonly FACER_VIDEO_DECODE_ERROR: 227;
720
- readonly FACER_NOT_ENOUGH_FRAMES: 228;
721
- readonly FACER_OUTPUT_IS_NOT_DEFINED: 229;
722
- readonly FACER_CLOSED_EYES_DETECTED: 230;
723
- readonly FACER_LOW_QUALITY: 231;
724
- readonly FACER_HIGH_ASYMMETRY: 232;
725
- readonly FACER_FACE_OVER_EMOTIONAL: 233;
726
- readonly FACER_SUNGLASSES_DETECTED: 234;
727
- readonly FACER_SMALL_AGE: 235;
728
- readonly FACER_HEADDRESS_DETECTED: 236;
729
- readonly FACER_FACES_NOT_MATCHED: 237;
730
- readonly FACER_IMAGES_COUNT_LIMIT_EXCEEDED: 238;
731
- readonly FACER_MEDICINE_MASK_DETECTED: 239;
732
- readonly FACER_OCCLUSION_DETECTED: 240;
733
- readonly FACER_FOREHEAD_GLASSES_DETECTED: 242;
734
- readonly FACER_MOUTH_OPENED: 243;
735
- readonly FACER_ART_MASK_DETECTED: 244;
736
- readonly FACER_ELECTRONIC_DEVICE_DETECTED: 245;
737
- readonly FACER_TRACK_BREAK: 246;
738
- readonly FACER_WRONG_GEO: 247;
739
- readonly FACER_WRONG_OF: 248;
740
- readonly FACER_WRONG_VIEW: 249;
741
- readonly FACER_TIMEOUT_LIVENESS_TRANSACTION: 250;
742
- readonly FACER_FAILED_LIVENESS_TRANSACTION: 251;
743
- readonly FACER_ABORTED_LIVENESS_TRANSACTION: 252;
744
- };
745
- export type FaceSDKResultCode = (typeof FaceSDKResultCode)[keyof typeof FaceSDKResultCode];
746
- /**
747
- *
748
- * @export
749
- * @interface FaceSDKResult
750
- */
751
- export interface FaceSDKResult {
752
- /**
753
- *
754
- * @type {FaceSDKResultCode}
755
- * @memberof FaceSDKResult
756
- */
757
- 'code': FaceSDKResultCode;
758
- }
759
- /**
760
- * @type DetectResponse
761
- * @export
762
- */
763
- export type DetectResponse = DetectResponseAllOf & FaceSDKResult;
764
- /**
765
- * Regula FaceSDK Web API
766
- * Regula FaceSDK Web API # 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
767
- *
768
- * The version of the OpenAPI document: 5.2.0
769
- *
770
- *
771
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
772
- * https://openapi-generator.tech
773
- * Do not edit the class manually.
774
- */
775
- /**
776
- *
777
- * @export
778
- * @interface DetectionFace
779
- */
780
- export interface DetectionFace {
781
- /**
782
- * The detected face index number.
783
- * @type {number}
784
- * @memberof DetectionFace
785
- */
786
- 'faceIndex'?: number;
787
- /**
788
- * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
789
- * @type {Array<Array<number>>}
790
- * @memberof DetectionFace
791
- */
792
- 'landmarks'?: Array<Array<number>>;
793
- /**
794
- * Angle of rotation of the face from the vertical axis, degrees.
795
- * @type {number}
796
- * @memberof DetectionFace
797
- */
798
- 'rotationAngle'?: number;
799
- /**
800
- * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
801
- * @type {Array<number>}
802
- * @memberof DetectionFace
803
- */
804
- 'roi'?: Array<number>;
805
- /**
806
- * Base64 of the cropped portrait.
807
- * @type {string}
808
- * @memberof DetectionFace
809
- */
810
- 'thumbnail'?: string;
811
- }
812
- /**
813
- * Regula FaceSDK Web API
814
- * Regula FaceSDK Web API # 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
815
- *
816
- * The version of the OpenAPI document: 5.2.0
817
- *
818
- *
819
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
820
- * https://openapi-generator.tech
821
- * Do not edit the class manually.
822
- */
823
- /**
824
- *
825
- * @export
826
- * @interface PersonAllOf
827
- */
828
- export interface PersonAllOf {
829
- /**
830
- * Person ID. The list of persons is sorted by decreasing ID value.
831
- * @type {string}
832
- * @memberof PersonAllOf
833
- */
834
- 'id'?: string;
835
- /**
836
- * Person creation date.
837
- * @type {string}
838
- * @memberof PersonAllOf
839
- */
840
- 'createdAt'?: string;
841
- /**
842
- * Person update date.
843
- * @type {string}
844
- * @memberof PersonAllOf
845
- */
846
- 'updatedAt'?: string;
847
- /**
848
- * List of groups this person belongs to.
849
- * @type {Array<string>}
850
- * @memberof PersonAllOf
851
- */
852
- 'groups'?: Array<string>;
853
- }
854
- /**
855
- * Regula FaceSDK Web API
856
- * Regula FaceSDK Web API # 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
857
- *
858
- * The version of the OpenAPI document: 5.2.0
859
- *
860
- *
861
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
862
- * https://openapi-generator.tech
863
- * Do not edit the class manually.
864
- */
865
- /**
866
- * Person Request body: name and metadata.
867
- * @export
868
- * @interface PersonFields
869
- */
870
- export interface PersonFields {
871
- /**
872
- * Session identificator.
873
- * @type {string}
874
- * @memberof PersonFields
875
- */
876
- 'tag'?: string;
877
- /**
878
- * Person name.
879
- * @type {string}
880
- * @memberof PersonFields
881
- */
882
- 'name'?: string;
883
- /**
884
- * A free-form object containing person\'s extended attributes.
885
- * @type {{ [key: string]: object; }}
886
- * @memberof PersonFields
887
- */
888
- 'metadata'?: {
889
- [key: string]: object;
890
- };
891
- /**
892
- * Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it.
893
- * @type {Array<string>}
894
- * @memberof PersonFields
895
- */
896
- 'groups'?: Array<string>;
897
- }
898
- /**
899
- * @type Person
900
- * Person response body: person ID, creation date, update date if any.
901
- * @export
902
- */
903
- export type Person = PersonAllOf & PersonFields;
904
- /**
905
- * Regula FaceSDK Web API
906
- * Regula FaceSDK Web API # 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
907
- *
908
- * The version of the OpenAPI document: 5.2.0
909
- *
910
- *
911
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
912
- * https://openapi-generator.tech
913
- * Do not edit the class manually.
914
- */
915
- /**
916
- * Image in the response.
917
- * @export
918
- * @interface Image
919
- */
920
- export interface Image {
921
- /**
922
- * Response image ID. The list is sorted by decreasing ID value.
923
- * @type {string}
924
- * @memberof Image
925
- */
926
- 'id'?: string;
927
- /**
928
- * Original media type of the returned image.
929
- * @type {string}
930
- * @memberof Image
931
- */
932
- 'contentType'?: string;
933
- /**
934
- * Returned image creation date.
935
- * @type {string}
936
- * @memberof Image
937
- */
938
- 'createdAt'?: string;
939
- /**
940
- * Returned image update date.
941
- * @type {string}
942
- * @memberof Image
943
- */
944
- 'updatedAt'?: string;
945
- /**
946
- * Returned image path.
947
- * @type {string}
948
- * @memberof Image
949
- */
950
- 'path'?: string;
951
- /**
952
- * Returned image URL.
953
- * @type {string}
954
- * @memberof Image
955
- */
956
- 'url'?: string;
957
- /**
958
- * A free-form object containing person\'s extended attributes.
959
- * @type {{ [key: string]: object; }}
960
- * @memberof Image
961
- */
962
- 'metadata'?: {
963
- [key: string]: object;
964
- };
965
- }
966
- /**
967
- * Regula FaceSDK Web API
968
- * Regula FaceSDK Web API # 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
969
- *
970
- * The version of the OpenAPI document: 5.2.0
971
- *
972
- *
973
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
974
- * https://openapi-generator.tech
975
- * Do not edit the class manually.
976
- */
977
- /**
978
- *
979
- * @export
980
- * @interface RecognizeImageAllOf
981
- */
982
- export interface RecognizeImageAllOf {
983
- /**
984
- * Similarity score.
985
- * @type {number}
986
- * @memberof RecognizeImageAllOf
987
- */
988
- 'similarity'?: number;
989
- /**
990
- * Similarity distance score: the lower the distance, the higher the face\'s similarity.
991
- * @type {number}
992
- * @memberof RecognizeImageAllOf
993
- */
994
- 'distance'?: number;
995
- }
996
- /**
997
- * @type RecognizeImage
998
- * @export
999
- */
1000
- export type RecognizeImage = Image & RecognizeImageAllOf;
1001
- /**
1002
- *
1003
- * @export
1004
- * @interface PersonWithImagesAllOf
1005
- */
1006
- export interface PersonWithImagesAllOf {
1007
- /**
1008
- *
1009
- * @type {Array<RecognizeImage>}
1010
- * @memberof PersonWithImagesAllOf
1011
- */
1012
- 'images'?: Array<RecognizeImage>;
1013
- }
1014
- /**
1015
- * @type PersonWithImages
1016
- * @export
1017
- */
1018
- export type PersonWithImages = Person & PersonWithImagesAllOf;
1019
- /**
1020
- *
1021
- * @export
1022
- * @interface FacesResponseAllOf
1023
- */
1024
- export interface FacesResponseAllOf {
1025
- /**
1026
- *
1027
- * @type {Array<PersonWithImages>}
1028
- * @memberof FacesResponseAllOf
1029
- */
1030
- 'persons'?: Array<PersonWithImages>;
1031
- /**
1032
- *
1033
- * @type {number}
1034
- * @memberof FacesResponseAllOf
1035
- */
1036
- 'rotationAngle'?: number;
1037
- }
1038
- /**
1039
- * @type FacesResponse
1040
- * @export
1041
- */
1042
- export type FacesResponse = DetectionFace & FacesResponseAllOf;
1043
- /**
1044
- * Regula FaceSDK Web API
1045
- * Regula FaceSDK Web API # 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
1046
- *
1047
- * The version of the OpenAPI document: 5.2.0
1048
- *
1049
- *
1050
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1051
- * https://openapi-generator.tech
1052
- * Do not edit the class manually.
1053
- */
1054
- /**
1055
- * Additional group data in the response, includes id and createdAt.
1056
- * @export
1057
- * @interface GroupAllOf
1058
- */
1059
- export interface GroupAllOf {
1060
- /**
1061
- * Group ID.
1062
- * @type {string}
1063
- * @memberof GroupAllOf
1064
- */
1065
- 'id'?: string;
1066
- /**
1067
- * Group creation date.
1068
- * @type {string}
1069
- * @memberof GroupAllOf
1070
- */
1071
- 'createdAt'?: string;
1072
- }
1073
- /**
1074
- * Regula FaceSDK Web API
1075
- * Regula FaceSDK Web API # 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
1076
- *
1077
- * The version of the OpenAPI document: 5.2.0
1078
- *
1079
- *
1080
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1081
- * https://openapi-generator.tech
1082
- * Do not edit the class manually.
1083
- */
1084
- /**
1085
- * Request body of the group to create data, includes name and metadata.
1086
- * @export
1087
- * @interface GroupToCreate
1088
- */
1089
- export interface GroupToCreate {
1090
- /**
1091
- * Session identificator.
1092
- * @type {string}
1093
- * @memberof GroupToCreate
1094
- */
1095
- 'tag'?: string;
1096
- /**
1097
- * Group to create name.
1098
- * @type {string}
1099
- * @memberof GroupToCreate
1100
- */
1101
- 'name'?: string;
1102
- /**
1103
- * A free-form object containing group\'s extended attributes.
1104
- * @type {{ [key: string]: object; }}
1105
- * @memberof GroupToCreate
1106
- */
1107
- 'metadata'?: {
1108
- [key: string]: object;
1109
- };
1110
- }
1111
- /**
1112
- * @type Group
1113
- * @export
1114
- */
1115
- export type Group = GroupAllOf & GroupToCreate;
1116
- /**
1117
- *
1118
- * @export
1119
- * @interface GroupPageAllOf
1120
- */
1121
- export interface GroupPageAllOf {
1122
- /**
1123
- * Array of Groups that are found during the search.
1124
- * @type {Array<Group>}
1125
- * @memberof GroupPageAllOf
1126
- */
1127
- 'items'?: Array<Group>;
1128
- }
1129
- /**
1130
- * Regula FaceSDK Web API
1131
- * Regula FaceSDK Web API # 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
1132
- *
1133
- * The version of the OpenAPI document: 5.2.0
1134
- *
1135
- *
1136
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1137
- * https://openapi-generator.tech
1138
- * Do not edit the class manually.
1139
- */
1140
- /**
1141
- * Information about current page number and total pages count
1142
- * @export
1143
- * @interface Page
1144
- */
1145
- export interface Page {
1146
- /**
1147
- * Current page number.
1148
- * @type {number}
1149
- * @memberof Page
1150
- */
1151
- 'page'?: number;
1152
- /**
1153
- * Total number of pages.
1154
- * @type {number}
1155
- * @memberof Page
1156
- */
1157
- 'totalPages'?: number;
1158
- }
1159
- /**
1160
- * @type GroupPage
1161
- * @export
1162
- */
1163
- export type GroupPage = GroupPageAllOf & Page;
1164
- /**
1165
- * Regula FaceSDK Web API
1166
- * Regula FaceSDK Web API # 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
1167
- *
1168
- * The version of the OpenAPI document: 5.2.0
1169
- *
1170
- *
1171
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1172
- * https://openapi-generator.tech
1173
- * Do not edit the class manually.
1174
- */
1175
- /**
1176
- * Set to resize the original image.
1177
- * @export
1178
- * @interface ResizeOptions
1179
- */
1180
- export interface ResizeOptions {
1181
- /**
1182
- * Resized image width, px.
1183
- * @type {number}
1184
- * @memberof ResizeOptions
1185
- */
1186
- 'width'?: number;
1187
- /**
1188
- * Resized image height, px.
1189
- * @type {number}
1190
- * @memberof ResizeOptions
1191
- */
1192
- 'height'?: number;
1193
- /**
1194
- * Resized image quality, percent.
1195
- * @type {number}
1196
- * @memberof ResizeOptions
1197
- */
1198
- 'quality'?: number;
1199
- }
1200
- /**
1201
- * Uploaded image.
1202
- * @export
1203
- * @interface ImageFieldsImage
1204
- */
1205
- export interface ImageFieldsImage {
1206
- /**
1207
- * Original media type of the uploaded image.
1208
- * @type {string}
1209
- * @memberof ImageFieldsImage
1210
- */
1211
- 'contentType'?: string;
1212
- /**
1213
- *
1214
- * @type {ImageData}
1215
- * @memberof ImageFieldsImage
1216
- */
1217
- 'content'?: ImageData;
1218
- /**
1219
- * Image URL.
1220
- * @type {string}
1221
- * @memberof ImageFieldsImage
1222
- */
1223
- 'imageUrl'?: string;
1224
- /**
1225
- *
1226
- * @type {ResizeOptions}
1227
- * @memberof ImageFieldsImage
1228
- */
1229
- 'resizeOptions'?: ResizeOptions;
1230
- }
1231
- /**
1232
- * Image in the request data, includes image and contentType.
1233
- * @export
1234
- * @interface ImageFields
1235
- */
1236
- export interface ImageFields {
1237
- /**
1238
- * Session identificator.
1239
- * @type {string}
1240
- * @memberof ImageFields
1241
- */
1242
- 'tag'?: string;
1243
- /**
1244
- *
1245
- * @type {ImageFieldsImage}
1246
- * @memberof ImageFields
1247
- */
1248
- 'image'?: ImageFieldsImage;
1249
- /**
1250
- *
1251
- * @type {OutputImageParams}
1252
- * @memberof ImageFields
1253
- */
1254
- 'outputImageParams'?: OutputImageParams;
1255
- /**
1256
- * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1257
- * @type {boolean}
1258
- * @memberof ImageFields
1259
- */
1260
- 'detectAll'?: boolean;
1261
- /**
1262
- * The similarity threshold.
1263
- * @type {number}
1264
- * @memberof ImageFields
1265
- */
1266
- 'threshold'?: number;
1267
- /**
1268
- * The maximum number of results to be returned.
1269
- * @type {number}
1270
- * @memberof ImageFields
1271
- */
1272
- 'limit'?: number;
1273
- }
1274
- /**
1275
- * Image page.
1276
- * @export
1277
- * @interface ImagePageAllOf
1278
- */
1279
- export interface ImagePageAllOf {
1280
- /**
1281
- *
1282
- * @type {Array<Image>}
1283
- * @memberof ImagePageAllOf
1284
- */
1285
- 'items'?: Array<Image>;
1286
- }
1287
- /**
1288
- * @type ImagePage
1289
- * @export
1290
- */
1291
- export type ImagePage = ImagePageAllOf & Page;
1292
- /**
1293
- * Regula FaceSDK Web API
1294
- * Regula FaceSDK Web API # 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
1295
- *
1296
- * The version of the OpenAPI document: 5.2.0
1297
- *
1298
- *
1299
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1300
- * https://openapi-generator.tech
1301
- * Do not edit the class manually.
1302
- */
1303
- /**
1304
- * The type of the image, defines the way the comparison is performed. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/image-source/
1305
- * @export
1306
- * @enum {string}
1307
- */
1308
- export const ImageSource: {
1309
- readonly DOCUMENT_PRINTED: 1;
1310
- readonly DOCUMENT_RFID: 2;
1311
- readonly LIVE: 3;
1312
- readonly DOCUMENT_WITH_LIVE: 4;
1313
- readonly EXTERNAL: 5;
1314
- readonly GHOST: 6;
1315
- };
1316
- export type ImageSource = (typeof ImageSource)[keyof typeof ImageSource];
1317
- /**
1318
- *
1319
- * @export
1320
- * @interface MatchAndSearchRequestAllOfImages
1321
- */
1322
- export interface MatchAndSearchRequestAllOfImages {
1323
- /**
1324
- *
1325
- * @type {ImageData}
1326
- * @memberof MatchAndSearchRequestAllOfImages
1327
- */
1328
- 'content'?: ImageData;
1329
- /**
1330
- *
1331
- * @type {ImageSource}
1332
- * @memberof MatchAndSearchRequestAllOfImages
1333
- */
1334
- 'type'?: ImageSource;
1335
- }
1336
- /**
1337
- *
1338
- * @export
1339
- * @interface MatchAndSearchRequestAllOf
1340
- */
1341
- export interface MatchAndSearchRequestAllOf {
1342
- /**
1343
- * Session identificator.
1344
- * @type {string}
1345
- * @memberof MatchAndSearchRequestAllOf
1346
- */
1347
- 'tag'?: string;
1348
- /**
1349
- * Array of Person images.
1350
- * @type {Array<MatchAndSearchRequestAllOfImages>}
1351
- * @memberof MatchAndSearchRequestAllOf
1352
- */
1353
- 'images'?: Array<MatchAndSearchRequestAllOfImages>;
1354
- }
1355
- /**
1356
- * Regula FaceSDK Web API
1357
- * Regula FaceSDK Web API # 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
1358
- *
1359
- * The version of the OpenAPI document: 5.2.0
1360
- *
1361
- *
1362
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1363
- * https://openapi-generator.tech
1364
- * Do not edit the class manually.
1365
- */
1366
- /**
1367
- * If a person is not found, a new person entry is created using the descriptor calculated while searching.
1368
- * @export
1369
- * @interface SearchParametersCreatePerson
1370
- */
1371
- export interface SearchParametersCreatePerson {
1372
- /**
1373
- * Person\'s name.
1374
- * @type {string}
1375
- * @memberof SearchParametersCreatePerson
1376
- */
1377
- 'name'?: string;
1378
- /**
1379
- * A free-form object containing person\'s extended attributes.
1380
- * @type {{ [key: string]: object; }}
1381
- * @memberof SearchParametersCreatePerson
1382
- */
1383
- 'metadata'?: {
1384
- [key: string]: object;
1385
- };
1386
- }
1387
- /**
1388
- * Request search data.
1389
- * @export
1390
- * @interface SearchParameters
1391
- */
1392
- export interface SearchParameters {
1393
- /**
1394
- *
1395
- * @type {SearchParametersCreatePerson}
1396
- * @memberof SearchParameters
1397
- */
1398
- 'createPerson'?: SearchParametersCreatePerson;
1399
- /**
1400
- * IDs of the groups in which the search is performed.
1401
- * @type {Array<number>}
1402
- * @memberof SearchParameters
1403
- */
1404
- 'groupIds'?: Array<number>;
1405
- }
1406
- /**
1407
- * @type MatchAndSearchRequest
1408
- * @export
1409
- */
1410
- export type MatchAndSearchRequest = MatchAndSearchRequestAllOf & SearchParameters;
1411
- /**
1412
- *
1413
- * @export
1414
- * @interface MatchAndSearchResponseAllOfDetections
1415
- */
1416
- export interface MatchAndSearchResponseAllOfDetections {
1417
- /**
1418
- *
1419
- * @type {Array<FacesResponse>}
1420
- * @memberof MatchAndSearchResponseAllOfDetections
1421
- */
1422
- 'faces'?: Array<FacesResponse>;
1423
- /**
1424
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1425
- * @type {number}
1426
- * @memberof MatchAndSearchResponseAllOfDetections
1427
- */
1428
- 'imageIndex'?: number;
1429
- /**
1430
- *
1431
- * @type {FaceSDKResultCode}
1432
- * @memberof MatchAndSearchResponseAllOfDetections
1433
- */
1434
- 'status'?: FaceSDKResultCode;
1435
- }
1436
- /**
1437
- *
1438
- * @export
1439
- * @interface MatchImageResult
1440
- */
1441
- export interface MatchImageResult {
1442
- /**
1443
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1444
- * @type {number}
1445
- * @memberof MatchImageResult
1446
- */
1447
- 'firstIndex': number;
1448
- /**
1449
- * The detected face index number.
1450
- * @type {number}
1451
- * @memberof MatchImageResult
1452
- */
1453
- 'firstFaceIndex'?: number;
1454
- /**
1455
- *
1456
- * @type {ImageSource}
1457
- * @memberof MatchImageResult
1458
- */
1459
- 'first'?: ImageSource;
1460
- /**
1461
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1462
- * @type {number}
1463
- * @memberof MatchImageResult
1464
- */
1465
- 'secondIndex': number;
1466
- /**
1467
- * The detected face index number.
1468
- * @type {number}
1469
- * @memberof MatchImageResult
1470
- */
1471
- 'secondFaceIndex'?: number;
1472
- /**
1473
- *
1474
- * @type {ImageSource}
1475
- * @memberof MatchImageResult
1476
- */
1477
- 'second'?: ImageSource;
1478
- /**
1479
- * A dimensionless number that shows how similar the compared faces are. 0—absolutely identical faces.
1480
- * @type {number}
1481
- * @memberof MatchImageResult
1482
- */
1483
- 'score'?: number;
1484
- /**
1485
- * The detected faces similarity, %. 100%—absolutely identical faces, 0%—absolutely not identical.
1486
- * @type {number}
1487
- * @memberof MatchImageResult
1488
- */
1489
- 'similarity'?: number;
1490
- }
1491
- /**
1492
- *
1493
- * @export
1494
- * @interface MatchAndSearchResponseAllOf
1495
- */
1496
- export interface MatchAndSearchResponseAllOf {
1497
- /**
1498
- *
1499
- * @type {Array<MatchImageResult>}
1500
- * @memberof MatchAndSearchResponseAllOf
1501
- */
1502
- 'results'?: Array<MatchImageResult>;
1503
- /**
1504
- *
1505
- * @type {number}
1506
- * @memberof MatchAndSearchResponseAllOf
1507
- */
1508
- 'elapsedTime'?: number;
1509
- /**
1510
- * A free-form object containing person\'s extended attributes.
1511
- * @type {{ [key: string]: object; }}
1512
- * @memberof MatchAndSearchResponseAllOf
1513
- */
1514
- 'metadata'?: {
1515
- [key: string]: object;
1516
- };
1517
- /**
1518
- *
1519
- * @type {Array<MatchAndSearchResponseAllOfDetections>}
1520
- * @memberof MatchAndSearchResponseAllOf
1521
- */
1522
- 'detections'?: Array<MatchAndSearchResponseAllOfDetections>;
1523
- }
1524
- /**
1525
- * @type MatchAndSearchResponse
1526
- * @export
1527
- */
1528
- export type MatchAndSearchResponse = FaceSDKResult & MatchAndSearchResponseAllOf;
1529
- /**
1530
- *
1531
- * @export
1532
- * @interface MatchImage
1533
- */
1534
- export interface MatchImage {
1535
- /**
1536
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1537
- * @type {number}
1538
- * @memberof MatchImage
1539
- */
1540
- 'index'?: number;
1541
- /**
1542
- *
1543
- * @type {ImageSource}
1544
- * @memberof MatchImage
1545
- */
1546
- 'type'?: ImageSource;
1547
- /**
1548
- *
1549
- * @type {ImageData}
1550
- * @memberof MatchImage
1551
- */
1552
- 'data': ImageData;
1553
- /**
1554
- * Whether to detect all faces in the image. If set to false, only the most central face is detected.
1555
- * @type {boolean}
1556
- * @memberof MatchImage
1557
- */
1558
- 'detectAll'?: boolean;
1559
- }
1560
- /**
1561
- *
1562
- * @export
1563
- * @interface MatchImageDetection
1564
- */
1565
- export interface MatchImageDetection {
1566
- /**
1567
- * The array of detected faces.
1568
- * @type {Array<DetectionFace>}
1569
- * @memberof MatchImageDetection
1570
- */
1571
- 'faces'?: Array<DetectionFace>;
1572
- /**
1573
- * The image index number. Can be given; if not given, the index numbers are set automatically starting from 0. All index numbers must be whole and unique—not repeated.
1574
- * @type {number}
1575
- * @memberof MatchImageDetection
1576
- */
1577
- 'imageIndex': number;
1578
- /**
1579
- *
1580
- * @type {FaceSDKResultCode}
1581
- * @memberof MatchImageDetection
1582
- */
1583
- 'status': FaceSDKResultCode;
1584
- }
1585
- /**
1586
- *
1587
- * @export
1588
- * @interface MatchRequest
1589
- */
1590
- export interface MatchRequest {
1591
- /**
1592
- * Session identificator.
1593
- * @type {string}
1594
- * @memberof MatchRequest
1595
- */
1596
- 'tag'?: string;
1597
- /**
1598
- * Whether to return thumbnails: Base64 cropped images that contain vertically aligned faces.
1599
- * @type {boolean}
1600
- * @memberof MatchRequest
1601
- */
1602
- 'thumbnails'?: boolean;
1603
- /**
1604
- * The array of all images included in the comparison.
1605
- * @type {Array<MatchImage>}
1606
- * @memberof MatchRequest
1607
- */
1608
- 'images': Array<MatchImage>;
1609
- }
1610
- /**
1611
- *
1612
- * @export
1613
- * @interface MatchResponseAllOf
1614
- */
1615
- export interface MatchResponseAllOf {
1616
- /**
1617
- * The array of detected faces.
1618
- * @type {Array<MatchImageDetection>}
1619
- * @memberof MatchResponseAllOf
1620
- */
1621
- 'detections'?: Array<MatchImageDetection>;
1622
- /**
1623
- * The array of matching results.
1624
- * @type {Array<MatchImageResult>}
1625
- * @memberof MatchResponseAllOf
1626
- */
1627
- 'results'?: Array<MatchImageResult>;
1628
- }
1629
- /**
1630
- * @type MatchResponse
1631
- * @export
1632
- */
1633
- export type MatchResponse = FaceSDKResult & MatchResponseAllOf;
1634
- /**
1635
- * Regula FaceSDK Web API
1636
- * Regula FaceSDK Web API # 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
1637
- *
1638
- * The version of the OpenAPI document: 5.2.0
1639
- *
1640
- *
1641
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1642
- * https://openapi-generator.tech
1643
- * Do not edit the class manually.
1644
- */
1645
- /**
1646
- *
1647
- * @export
1648
- * @interface OperationLog
1649
- */
1650
- export interface OperationLog {
1651
- /**
1652
- * Status code.
1653
- * @type {number}
1654
- * @memberof OperationLog
1655
- */
1656
- 'statusCode'?: number;
1657
- /**
1658
- * Error type.
1659
- * @type {string}
1660
- * @memberof OperationLog
1661
- */
1662
- 'type'?: string;
1663
- /**
1664
- * Error message.
1665
- * @type {string}
1666
- * @memberof OperationLog
1667
- */
1668
- 'msg'?: string;
1669
- }
1670
- /**
1671
- * Regula FaceSDK Web API
1672
- * Regula FaceSDK Web API # 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
1673
- *
1674
- * The version of the OpenAPI document: 5.2.0
1675
- *
1676
- *
1677
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1678
- * https://openapi-generator.tech
1679
- * Do not edit the class manually.
1680
- */
1681
- /**
1682
- * The array of identified persons.
1683
- * @export
1684
- * @interface SearchDetection
1685
- */
1686
- export interface SearchDetection {
1687
- /**
1688
- * Internal.
1689
- * @type {number}
1690
- * @memberof SearchDetection
1691
- */
1692
- 'code'?: number;
1693
- /**
1694
- * Base64 of the aligned and cropped portrait.
1695
- * @type {string}
1696
- * @memberof SearchDetection
1697
- */
1698
- 'crop'?: string;
1699
- /**
1700
- * Internal.
1701
- * @type {number}
1702
- * @memberof SearchDetection
1703
- */
1704
- 'detectorType'?: number;
1705
- /**
1706
- * Internal.
1707
- * @type {string}
1708
- * @memberof SearchDetection
1709
- */
1710
- 'hash'?: string;
1711
- /**
1712
- * Internal.
1713
- * @type {number}
1714
- * @memberof SearchDetection
1715
- */
1716
- 'idx'?: number;
1717
- /**
1718
- * Internal.
1719
- * @type {string}
1720
- * @memberof SearchDetection
1721
- */
1722
- 'image'?: string;
1723
- /**
1724
- * Absolute coordinates (x,y) of five points of each detected face: left eye, right eye, nose, left point of lips, right point of lips.
1725
- * @type {Array<Array<number>>}
1726
- * @memberof SearchDetection
1727
- */
1728
- 'landmarks'?: Array<Array<number>>;
1729
- /**
1730
- * Internal.
1731
- * @type {number}
1732
- * @memberof SearchDetection
1733
- */
1734
- 'landmarksType'?: number;
1735
- /**
1736
- * Internal.
1737
- * @type {string}
1738
- * @memberof SearchDetection
1739
- */
1740
- 'msg'?: string;
1741
- /**
1742
- * The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
1743
- * @type {Array<number>}
1744
- * @memberof SearchDetection
1745
- */
1746
- 'roi'?: Array<number>;
1747
- /**
1748
- *
1749
- * @type {string}
1750
- * @memberof SearchDetection
1751
- */
1752
- 'versionSDK'?: string;
1753
- }
1754
- /**
1755
- * Person data.
1756
- * @export
1757
- * @interface SearchPersonAllOf
1758
- */
1759
- export interface SearchPersonAllOf {
1760
- /**
1761
- *
1762
- * @type {SearchDetection}
1763
- * @memberof SearchPersonAllOf
1764
- */
1765
- 'detection'?: SearchDetection;
1766
- /**
1767
- * Array of Person images.
1768
- * @type {Array<RecognizeImage>}
1769
- * @memberof SearchPersonAllOf
1770
- */
1771
- 'images'?: Array<RecognizeImage>;
1772
- }
1773
- /**
1774
- * @type SearchPerson
1775
- * @export
1776
- */
1777
- export type SearchPerson = Person & SearchPersonAllOf;
1778
- /**
1779
- *
1780
- * @export
1781
- * @interface PersonCreatedResponse
1782
- */
1783
- export interface PersonCreatedResponse {
1784
- /**
1785
- * Result code.
1786
- * @type {number}
1787
- * @memberof PersonCreatedResponse
1788
- */
1789
- 'code'?: number;
1790
- /**
1791
- * Array of Person images.
1792
- * @type {Array<SearchPerson>}
1793
- * @memberof PersonCreatedResponse
1794
- */
1795
- 'persons'?: Array<SearchPerson>;
1796
- /**
1797
- * A free-form object containing person\'s extended attributes.
1798
- * @type {{ [key: string]: object; }}
1799
- * @memberof PersonCreatedResponse
1800
- */
1801
- 'metadata'?: {
1802
- [key: string]: object;
1803
- };
1804
- }
1805
- /**
1806
- *
1807
- * @export
1808
- * @interface PersonsPageAllOf
1809
- */
1810
- export interface PersonsPageAllOf {
1811
- /**
1812
- *
1813
- * @type {Array<Person>}
1814
- * @memberof PersonsPageAllOf
1815
- */
1816
- 'items'?: Array<Person>;
1817
- }
1818
- /**
1819
- * @type PersonsPage
1820
- * @export
1821
- */
1822
- export type PersonsPage = Page & PersonsPageAllOf;
1823
- /**
1824
- * Regula FaceSDK Web API
1825
- * Regula FaceSDK Web API # 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
1826
- *
1827
- * The version of the OpenAPI document: 5.2.0
1828
- *
1829
- *
1830
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1831
- * https://openapi-generator.tech
1832
- * Do not edit the class manually.
1833
- */
1834
- /**
1835
- *
1836
- * @export
1837
- * @interface SearchBadParams
1838
- */
1839
- export interface SearchBadParams {
1840
- /**
1841
- *
1842
- * @type {string}
1843
- * @memberof SearchBadParams
1844
- */
1845
- 'msg'?: string;
1846
- /**
1847
- *
1848
- * @type {number}
1849
- * @memberof SearchBadParams
1850
- */
1851
- 'statusCode'?: number;
1852
- /**
1853
- *
1854
- * @type {string}
1855
- * @memberof SearchBadParams
1856
- */
1857
- 'type'?: string;
1858
- }
1859
- /**
1860
- * @type SearchRequest
1861
- * @export
1862
- */
1863
- export type SearchRequest = ImageFields & SearchParameters;
1864
- /**
1865
- *
1866
- * @export
1867
- * @interface SearchResult
1868
- */
1869
- export interface SearchResult {
1870
- /**
1871
- * Search result code.
1872
- * @type {number}
1873
- * @memberof SearchResult
1874
- */
1875
- 'code'?: number;
1876
- /**
1877
- * Person data.
1878
- * @type {Array<SearchPerson>}
1879
- * @memberof SearchResult
1880
- */
1881
- 'persons'?: Array<SearchPerson>;
1882
- }
1883
- /**
1884
- * Regula FaceSDK Web API
1885
- * Regula FaceSDK Web API # 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
1886
- *
1887
- * The version of the OpenAPI document: 5.2.0
1888
- *
1889
- *
1890
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1891
- * https://openapi-generator.tech
1892
- * Do not edit the class manually.
1893
- */
1894
- /**
1895
- *
1896
- * @export
1897
- * @interface TransactionInfo
1898
- */
1899
- export interface TransactionInfo {
1900
- /**
1901
- * Result code, one of the FaceSDKResultCode enum values. See the enum: https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/
1902
- * @type {number}
1903
- * @memberof TransactionInfo
1904
- */
1905
- 'code'?: number;
1906
- /**
1907
- * Whether the liveness detection is confirmed (0) or not (1).
1908
- * @type {number}
1909
- * @memberof TransactionInfo
1910
- */
1911
- 'status'?: number;
1912
- /**
1913
- * Session identificator.
1914
- * @type {string}
1915
- * @memberof TransactionInfo
1916
- */
1917
- 'tag'?: string;
1918
- /**
1919
- * Transaction ID, there can be several transactions within one session.
1920
- * @type {string}
1921
- * @memberof TransactionInfo
1922
- */
1923
- 'transactionId'?: string;
1924
- /**
1925
- * Link to the session video.
1926
- * @type {string}
1927
- * @memberof TransactionInfo
1928
- */
1929
- 'video'?: string;
1930
- /**
1931
- * List of base64 images
1932
- * @type {Array<string>}
1933
- * @memberof TransactionInfo
1934
- */
1935
- 'images'?: Array<string>;
1936
- /**
1937
- * Approximate age with an accuracy of +/-3 years.
1938
- * @type {number}
1939
- * @memberof TransactionInfo
1940
- */
1941
- 'estimatedAge'?: number;
1942
- /**
1943
- * Link to the portrait.
1944
- * @type {string}
1945
- * @memberof TransactionInfo
1946
- */
1947
- 'portrait'?: string;
1948
- /**
1949
- * A free-form object containing person\'s extended attributes.
1950
- * @type {{ [key: string]: object; }}
1951
- * @memberof TransactionInfo
1952
- */
1953
- 'metadata'?: {
1954
- [key: string]: object;
1955
- };
1956
- }
1957
- /**
1958
- * Regula FaceSDK Web API
1959
- * Regula FaceSDK Web API # 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
1960
- *
1961
- * The version of the OpenAPI document: 5.2.0
1962
- *
1963
- *
1964
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1965
- * https://openapi-generator.tech
1966
- * Do not edit the class manually.
1967
- */
1968
- /**
1969
- * Update group.
1970
- * @export
1971
- * @interface UpdateGroup
1972
- */
1973
- export interface UpdateGroup {
1974
- /**
1975
- * Add items.
1976
- * @type {Array<string>}
1977
- * @memberof UpdateGroup
1978
- */
1979
- 'addItems'?: Array<string>;
1980
- /**
1981
- * Remove items.
1982
- * @type {Array<string>}
1983
- * @memberof UpdateGroup
1984
- */
1985
- 'removeItems'?: Array<string>;
1986
- }
1987
- declare class MatchingApi {
1988
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1989
- match(compareRequest: MatchRequest, xRequestID: string, options?: AxiosRequestConfig): Promise<MatchResponse>;
1990
- detect(detectRequest: DetectRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<DetectResponse>;
1991
- }
1992
- declare class GroupApi {
1993
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
1994
- createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<Group>;
1995
- deleteGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
1996
- getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): Promise<GroupPage>;
1997
- getAllPersonsByGroupId(page: number, size: number, groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<PersonsPage>;
1998
- getGroup(groupId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<Group>;
1999
- updateGroup(groupId: string, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2000
- updatePersonsInGroup(groupId: string, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2001
- }
2002
- declare class PersonApi {
2003
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2004
- createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
2005
- addImageToPerson(personId: string, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<Image>;
2006
- deleteImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2007
- deletePerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2008
- getAllGroupsByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<GroupPage>;
2009
- getAllImagesByPersonId(page: number, size: number, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<ImagePage>;
2010
- getImageOfPerson(imageId: string, personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<unknown>;
2011
- getPerson(personId: string, xRequestID?: string, options?: AxiosRequestConfig): Promise<Person>;
2012
- updatePerson(personId: string, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): Promise<void>;
2013
- }
2014
- declare class SearchApi {
2015
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2016
- search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<SearchResult>;
2017
- }
2018
- declare class DiagnosticsApi {
2019
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2020
- readiness(xRequestID?: string, options?: AxiosRequestConfig): Promise<Record<string, unknown>>;
2021
- }
2022
- declare class Liveness20Api {
2023
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2024
- getLivenessTransactionInfo(transactionId: number, options?: AxiosRequestConfig): Promise<TransactionInfo>;
2025
- }
2026
- export class FaceSdk {
2027
- protected basePath: string;
2028
- protected axios: AxiosInstance;
2029
- matchingApi: MatchingApi;
2030
- groupApi: GroupApi;
2031
- personApi: PersonApi;
2032
- searchApi: SearchApi;
2033
- diagnosticsApi: DiagnosticsApi;
2034
- livenessApi: Liveness20Api;
2035
- constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2036
- }