@regulaforensics/facesdk-webclient 4.1.3 → 4.1.5
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/cjs-es5/api/group-api.js +99 -50
- package/dist/cjs-es5/api/matching-api.js +116 -19
- package/dist/cjs-es5/api/person-api.js +141 -71
- package/dist/cjs-es5/api/search-api.js +15 -8
- package/dist/cjs-es5/ext/group-api.js +15 -15
- package/dist/cjs-es5/ext/matching-api.js +5 -5
- package/dist/cjs-es5/ext/person-api.js +21 -21
- package/dist/cjs-es5/ext/search-api.js +3 -3
- package/dist/cjs-es5/models/index.js +10 -2
- package/dist/cjs-es5/models/match-and-search-request-all-of-images.js +16 -0
- package/dist/cjs-es5/models/match-and-search-request-all-of.js +16 -0
- package/dist/cjs-es5/models/match-and-search-request.js +16 -0
- package/dist/cjs-es5/models/match-and-search-response-all-of-detections.js +16 -0
- package/dist/cjs-es5/models/match-and-search-response-all-of.js +16 -0
- package/dist/cjs-es5/models/match-and-search-response.js +16 -0
- package/dist/cjs-es5/models/person-with-images-all-of.js +16 -0
- package/dist/cjs-es5/models/person-with-images.js +16 -0
- package/dist/cjs-es5/models/search-parameters.js +16 -0
- package/dist/esm-es5/api/group-api.js +99 -50
- package/dist/esm-es5/api/matching-api.js +116 -19
- package/dist/esm-es5/api/person-api.js +141 -71
- package/dist/esm-es5/api/search-api.js +15 -8
- package/dist/esm-es5/ext/group-api.js +15 -15
- package/dist/esm-es5/ext/matching-api.js +5 -5
- package/dist/esm-es5/ext/person-api.js +21 -21
- package/dist/esm-es5/ext/search-api.js +3 -3
- package/dist/esm-es5/models/index.js +10 -2
- package/dist/esm-es5/models/match-and-search-request-all-of-images.js +14 -0
- package/dist/esm-es5/models/match-and-search-request-all-of.js +14 -0
- package/dist/esm-es5/models/match-and-search-request.js +14 -0
- package/dist/esm-es5/models/match-and-search-response-all-of-detections.js +14 -0
- package/dist/esm-es5/models/match-and-search-response-all-of.js +14 -0
- package/dist/esm-es5/models/match-and-search-response.js +14 -0
- package/dist/esm-es5/models/person-with-images-all-of.js +14 -0
- package/dist/esm-es5/models/person-with-images.js +14 -0
- package/dist/esm-es5/models/search-parameters.js +14 -0
- package/package.json +1 -1
- package/src/api/group-api.ts +105 -49
- package/src/api/matching-api.ts +115 -18
- package/src/api/person-api.ts +150 -70
- package/src/api/search-api.ts +15 -7
- package/src/ext/group-api.ts +14 -14
- package/src/ext/matching-api.ts +4 -4
- package/src/ext/person-api.ts +20 -20
- package/src/ext/search-api.ts +2 -2
- package/src/models/crop.ts +1 -1
- package/src/models/image.ts +12 -0
- package/src/models/index.ts +9 -1
- package/src/models/match-and-search-request-all-of-images.ts +38 -0
- package/src/models/match-and-search-request-all-of.ts +31 -0
- package/src/models/match-and-search-request.ts +26 -0
- package/src/models/match-and-search-response-all-of-detections.ts +45 -0
- package/src/models/match-and-search-response-all-of.ts +50 -0
- package/src/models/match-and-search-response.ts +28 -0
- package/src/models/person-with-images-all-of.ts +31 -0
- package/src/models/person-with-images.ts +26 -0
- package/src/models/recognize-image-all-of.ts +6 -0
- package/src/models/search-parameters.ts +42 -0
- package/src/models/search-request.ts +2 -2
package/src/api/search-api.ts
CHANGED
|
@@ -36,10 +36,11 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
36
36
|
*
|
|
37
37
|
* @summary Find person by image in groups.
|
|
38
38
|
* @param {SearchRequest} searchRequest
|
|
39
|
+
* @param {string} [xRequestID]
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
42
|
-
search: async (searchRequest: SearchRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
search: async (searchRequest: SearchRequest, xRequestID?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
44
|
// verify required parameter 'searchRequest' is not null or undefined
|
|
44
45
|
assertParamExists('search', 'searchRequest', searchRequest)
|
|
45
46
|
const localVarPath = `/api/search`;
|
|
@@ -54,6 +55,10 @@ export const SearchApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
54
55
|
const localVarHeaderParameter = {} as any;
|
|
55
56
|
const localVarQueryParameter = {} as any;
|
|
56
57
|
|
|
58
|
+
if (xRequestID !== undefined && xRequestID !== null) {
|
|
59
|
+
localVarHeaderParameter['X-RequestID'] = String(xRequestID);
|
|
60
|
+
}
|
|
61
|
+
|
|
57
62
|
|
|
58
63
|
|
|
59
64
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -82,11 +87,12 @@ export const SearchApiFp = function(configuration?: Configuration) {
|
|
|
82
87
|
*
|
|
83
88
|
* @summary Find person by image in groups.
|
|
84
89
|
* @param {SearchRequest} searchRequest
|
|
90
|
+
* @param {string} [xRequestID]
|
|
85
91
|
* @param {*} [options] Override http request option.
|
|
86
92
|
* @throws {RequiredError}
|
|
87
93
|
*/
|
|
88
|
-
async search(searchRequest: SearchRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResult>> {
|
|
89
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.search(searchRequest, options);
|
|
94
|
+
async search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchResult>> {
|
|
95
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.search(searchRequest, xRequestID, options);
|
|
90
96
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
91
97
|
},
|
|
92
98
|
}
|
|
@@ -103,11 +109,12 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
|
|
|
103
109
|
*
|
|
104
110
|
* @summary Find person by image in groups.
|
|
105
111
|
* @param {SearchRequest} searchRequest
|
|
112
|
+
* @param {string} [xRequestID]
|
|
106
113
|
* @param {*} [options] Override http request option.
|
|
107
114
|
* @throws {RequiredError}
|
|
108
115
|
*/
|
|
109
|
-
search(searchRequest: SearchRequest, options?: any): AxiosPromise<SearchResult> {
|
|
110
|
-
return localVarFp.search(searchRequest, options).then((request) => request(axios, basePath));
|
|
116
|
+
search(searchRequest: SearchRequest, xRequestID?: string, options?: any): AxiosPromise<SearchResult> {
|
|
117
|
+
return localVarFp.search(searchRequest, xRequestID, options).then((request) => request(axios, basePath));
|
|
111
118
|
},
|
|
112
119
|
};
|
|
113
120
|
};
|
|
@@ -123,11 +130,12 @@ export class SearchApi extends BaseAPI {
|
|
|
123
130
|
*
|
|
124
131
|
* @summary Find person by image in groups.
|
|
125
132
|
* @param {SearchRequest} searchRequest
|
|
133
|
+
* @param {string} [xRequestID]
|
|
126
134
|
* @param {*} [options] Override http request option.
|
|
127
135
|
* @throws {RequiredError}
|
|
128
136
|
* @memberof SearchApi
|
|
129
137
|
*/
|
|
130
|
-
public search(searchRequest: SearchRequest, options?: AxiosRequestConfig) {
|
|
131
|
-
return SearchApiFp(this.configuration).search(searchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
138
|
+
public search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig) {
|
|
139
|
+
return SearchApiFp(this.configuration).search(searchRequest, xRequestID, options).then((request) => request(this.axios, this.basePath));
|
|
132
140
|
}
|
|
133
141
|
}
|
package/src/ext/group-api.ts
CHANGED
|
@@ -3,32 +3,32 @@ import {GroupToCreate, UpdateGroup} from "../models";
|
|
|
3
3
|
import {AxiosRequestConfig} from "axios";
|
|
4
4
|
|
|
5
5
|
export class GroupApi extends GenGroupApi {
|
|
6
|
-
createGroup(groupToCreate: GroupToCreate, options?: AxiosRequestConfig): any {
|
|
7
|
-
return super.createGroup(groupToCreate, options).then(r => r.data);
|
|
6
|
+
createGroup(groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
7
|
+
return super.createGroup(groupToCreate, xRequestID, options).then(r => r.data);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
deleteGroup(groupId: number, options?: AxiosRequestConfig): any {
|
|
11
|
-
return super.deleteGroup(groupId, options).then(r => r.data);
|
|
10
|
+
deleteGroup(groupId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
11
|
+
return super.deleteGroup(groupId, xRequestID, options).then(r => r.data);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
getAllGroups(page: number, size: number, options?: AxiosRequestConfig): any {
|
|
15
|
-
return super.getAllGroups(page, size, options).then(r => r.data);
|
|
14
|
+
getAllGroups(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
15
|
+
return super.getAllGroups(page, size, xRequestID, options).then(r => r.data);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
getAllPersonsByGroupId(page: number, size: number, groupId: number, options?: AxiosRequestConfig): any {
|
|
19
|
-
return super.getAllPersonsByGroupId(page, size, groupId, options).then(r => r.data);
|
|
18
|
+
getAllPersonsByGroupId(page: number, size: number, groupId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
19
|
+
return super.getAllPersonsByGroupId(page, size, groupId, xRequestID, options).then(r => r.data);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
getGroup(groupId: number, options?: AxiosRequestConfig): any {
|
|
23
|
-
return super.getGroup(groupId, options).then(r => r.data);
|
|
22
|
+
getGroup(groupId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
23
|
+
return super.getGroup(groupId, xRequestID, options).then(r => r.data);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
updateGroup(groupId: number, groupToCreate: GroupToCreate, options?: AxiosRequestConfig): any {
|
|
27
|
-
return super.updateGroup(groupId, groupToCreate, options).then(r => r.data);
|
|
26
|
+
updateGroup(groupId: number, groupToCreate: GroupToCreate, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
27
|
+
return super.updateGroup(groupId, groupToCreate, xRequestID, options).then(r => r.data);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
updatePersonsInGroup(groupId: number, updateGroup: UpdateGroup, options?: AxiosRequestConfig): any {
|
|
31
|
-
return super.updatePersonsInGroup(groupId, updateGroup, options).then(r => r.data);
|
|
30
|
+
updatePersonsInGroup(groupId: number, updateGroup: UpdateGroup, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
31
|
+
return super.updatePersonsInGroup(groupId, updateGroup, xRequestID, options).then(r => r.data);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
}
|
package/src/ext/matching-api.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as converter from "base64-arraybuffer";
|
|
|
6
6
|
|
|
7
7
|
export class MatchingApi extends GenMatchingApi {
|
|
8
8
|
|
|
9
|
-
match(compareRequest: MatchRequest, options?: any): any {
|
|
9
|
+
match(compareRequest: MatchRequest, xRequestID: string, options?: any): any {
|
|
10
10
|
for (const image of compareRequest.images) {
|
|
11
11
|
if (!image.type) {
|
|
12
12
|
image.type = ImageSource.LIVE
|
|
@@ -16,13 +16,13 @@ export class MatchingApi extends GenMatchingApi {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
return super.match(compareRequest, options).then(r => r.data);
|
|
19
|
+
return super.match(compareRequest, xRequestID, options).then(r => r.data);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
detect(detectRequest: DetectRequest, options?: any): any {
|
|
22
|
+
detect(detectRequest: DetectRequest, xRequestID? : string, options?: any): any {
|
|
23
23
|
if (detectRequest.image && typeof detectRequest.image !== "string") {
|
|
24
24
|
detectRequest.image = converter.encode(detectRequest.image)
|
|
25
25
|
}
|
|
26
|
-
return super.detect(detectRequest, options).then(r => r.data)
|
|
26
|
+
return super.detect(detectRequest, xRequestID, options).then(r => r.data)
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/ext/person-api.ts
CHANGED
|
@@ -6,46 +6,46 @@ import {ImageFields, PersonFields} from "../models";
|
|
|
6
6
|
import {AxiosRequestConfig} from "axios";
|
|
7
7
|
|
|
8
8
|
export class PersonApi extends GenPersonApi {
|
|
9
|
-
createPerson(personFields: PersonFields, options?: AxiosRequestConfig): any {
|
|
10
|
-
return super.createPerson(personFields, options).then(r => r.data);
|
|
9
|
+
createPerson(personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
10
|
+
return super.createPerson(personFields, xRequestID, options).then(r => r.data);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
addImageToPerson(personId: number, imageFields: ImageFields, options?: AxiosRequestConfig): any {
|
|
13
|
+
addImageToPerson(personId: number, imageFields: ImageFields, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
14
14
|
if (imageFields.image.content && typeof imageFields.image.content !== "string") {
|
|
15
15
|
imageFields.image.content = converter.encode(imageFields.image.content)
|
|
16
16
|
}
|
|
17
|
-
return super.addImageToPerson(personId, imageFields, options).then(r => r.data);
|
|
17
|
+
return super.addImageToPerson(personId, imageFields, xRequestID, options).then(r => r.data);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
deleteImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): any {
|
|
21
|
-
return super.deleteImageOfPerson(imageId, personId, options).then(r => r.data);
|
|
20
|
+
deleteImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
21
|
+
return super.deleteImageOfPerson(imageId, personId, xRequestID, options).then(r => r.data);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
deletePerson(personId: number, options?: AxiosRequestConfig): any {
|
|
25
|
-
return super.deletePerson(personId, options).then(r => r.data);
|
|
24
|
+
deletePerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
25
|
+
return super.deletePerson(personId, xRequestID, options).then(r => r.data);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
getAllGroupsByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): any {
|
|
29
|
-
return super.getAllGroupsByPersonId(page, size, personId, options).then(r => r.data);
|
|
28
|
+
getAllGroupsByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
29
|
+
return super.getAllGroupsByPersonId(page, size, personId, xRequestID, options).then(r => r.data);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
getAllImagesByPersonId(page: number, size: number, personId: number, options?: AxiosRequestConfig): any {
|
|
33
|
-
return super.getAllImagesByPersonId(page, size, personId, options).then(r => r.data);
|
|
32
|
+
getAllImagesByPersonId(page: number, size: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
33
|
+
return super.getAllImagesByPersonId(page, size, personId, xRequestID, options).then(r => r.data);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
getAllPersons(page: number, size: number, options?: AxiosRequestConfig): any {
|
|
37
|
-
return super.getAllPersons(page, size, options).then(r => r.data);
|
|
36
|
+
getAllPersons(page: number, size: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
37
|
+
return super.getAllPersons(page, size, xRequestID, options).then(r => r.data);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
getImageOfPerson(imageId: number, personId: number, options?: AxiosRequestConfig): any {
|
|
41
|
-
return super.getImageOfPerson(imageId, personId, options).then(r => r.data);
|
|
40
|
+
getImageOfPerson(imageId: number, personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
41
|
+
return super.getImageOfPerson(imageId, personId, xRequestID, options).then(r => r.data);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
getPerson(personId: number, options?: AxiosRequestConfig): any {
|
|
45
|
-
return super.getPerson(personId, options).then(r => r.data);
|
|
44
|
+
getPerson(personId: number, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
45
|
+
return super.getPerson(personId, xRequestID, options).then(r => r.data);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
updatePerson(personId: number, personFields: PersonFields, options?: AxiosRequestConfig): any {
|
|
49
|
-
return super.updatePerson(personId, personFields, options).then(r => r.data);
|
|
48
|
+
updatePerson(personId: number, personFields: PersonFields, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
49
|
+
return super.updatePerson(personId, personFields, xRequestID, options).then(r => r.data);
|
|
50
50
|
}
|
|
51
51
|
}
|
package/src/ext/search-api.ts
CHANGED
|
@@ -5,10 +5,10 @@ import {AxiosRequestConfig} from "axios";
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export class SearchApi extends GenSearchApi {
|
|
8
|
-
search(searchRequest: SearchRequest, options?: AxiosRequestConfig): any {
|
|
8
|
+
search(searchRequest: SearchRequest, xRequestID?: string, options?: AxiosRequestConfig): any {
|
|
9
9
|
if (searchRequest.image.content && typeof searchRequest.image.content !== "string") {
|
|
10
10
|
searchRequest.image.content = converter.encode(searchRequest.image.content)
|
|
11
11
|
}
|
|
12
|
-
return super.search(searchRequest, options).then(r => r.data);
|
|
12
|
+
return super.search(searchRequest, xRequestID, options).then(r => r.data);
|
|
13
13
|
}
|
|
14
14
|
}
|
package/src/models/crop.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface Crop {
|
|
|
34
34
|
*/
|
|
35
35
|
'padColor'?: Array<number>;
|
|
36
36
|
/**
|
|
37
|
-
* The resize value in case type matches this value.
|
|
37
|
+
* The resize value in case type matches this value. If it doesn\'t, no resize is done.
|
|
38
38
|
* @type {Array<number>}
|
|
39
39
|
* @memberof Crop
|
|
40
40
|
*/
|
package/src/models/image.ts
CHANGED
|
@@ -38,6 +38,12 @@ export interface Image {
|
|
|
38
38
|
* @memberof Image
|
|
39
39
|
*/
|
|
40
40
|
'created_at'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The returned image update date.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Image
|
|
45
|
+
*/
|
|
46
|
+
'updated_at'?: string;
|
|
41
47
|
/**
|
|
42
48
|
* The returned image S3 path.
|
|
43
49
|
* @type {string}
|
|
@@ -50,5 +56,11 @@ export interface Image {
|
|
|
50
56
|
* @memberof Image
|
|
51
57
|
*/
|
|
52
58
|
'url'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A free-form object containing person\'s extended attributes.
|
|
61
|
+
* @type {{ [key: string]: object; }}
|
|
62
|
+
* @memberof Image
|
|
63
|
+
*/
|
|
64
|
+
'metadata'?: { [key: string]: object; };
|
|
53
65
|
}
|
|
54
66
|
|
package/src/models/index.ts
CHANGED
|
@@ -24,6 +24,12 @@ export * from './image-fields-image';
|
|
|
24
24
|
export * from './image-page';
|
|
25
25
|
export * from './image-page-all-of';
|
|
26
26
|
export * from './image-source';
|
|
27
|
+
export * from './match-and-search-request';
|
|
28
|
+
export * from './match-and-search-request-all-of';
|
|
29
|
+
export * from './match-and-search-request-all-of-images';
|
|
30
|
+
export * from './match-and-search-response';
|
|
31
|
+
export * from './match-and-search-response-all-of';
|
|
32
|
+
export * from './match-and-search-response-all-of-detections';
|
|
27
33
|
export * from './match-image';
|
|
28
34
|
export * from './match-image-detection';
|
|
29
35
|
export * from './match-image-result';
|
|
@@ -36,6 +42,8 @@ export * from './page';
|
|
|
36
42
|
export * from './person';
|
|
37
43
|
export * from './person-all-of';
|
|
38
44
|
export * from './person-fields';
|
|
45
|
+
export * from './person-with-images';
|
|
46
|
+
export * from './person-with-images-all-of';
|
|
39
47
|
export * from './persons-page';
|
|
40
48
|
export * from './persons-page-all-of';
|
|
41
49
|
export * from './process-param';
|
|
@@ -45,9 +53,9 @@ export * from './quality-details-groups';
|
|
|
45
53
|
export * from './quality-request';
|
|
46
54
|
export * from './recognize-image';
|
|
47
55
|
export * from './recognize-image-all-of';
|
|
56
|
+
export * from './search-parameters';
|
|
48
57
|
export * from './search-person';
|
|
49
58
|
export * from './search-person-all-of';
|
|
50
59
|
export * from './search-request';
|
|
51
|
-
export * from './search-request-all-of';
|
|
52
60
|
export * from './search-result';
|
|
53
61
|
export * from './update-group';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ImageSource } from './image-source';
|
|
17
|
+
import { ImageData } from './image-data';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface MatchAndSearchRequestAllOfImages
|
|
23
|
+
*/
|
|
24
|
+
export interface MatchAndSearchRequestAllOfImages {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ImageData}
|
|
28
|
+
* @memberof MatchAndSearchRequestAllOfImages
|
|
29
|
+
*/
|
|
30
|
+
'content'?: ImageData;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ImageSource}
|
|
34
|
+
* @memberof MatchAndSearchRequestAllOfImages
|
|
35
|
+
*/
|
|
36
|
+
'type'?: ImageSource;
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { MatchAndSearchRequestAllOfImages } from './match-and-search-request-all-of-images';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface MatchAndSearchRequestAllOf
|
|
22
|
+
*/
|
|
23
|
+
export interface MatchAndSearchRequestAllOf {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<MatchAndSearchRequestAllOfImages>}
|
|
27
|
+
* @memberof MatchAndSearchRequestAllOf
|
|
28
|
+
*/
|
|
29
|
+
'images'?: Array<MatchAndSearchRequestAllOfImages>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { MatchAndSearchRequestAllOf } from './match-and-search-request-all-of';
|
|
17
|
+
import { MatchAndSearchRequestAllOfImages } from './match-and-search-request-all-of-images';
|
|
18
|
+
import { SearchParameters } from './search-parameters';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type MatchAndSearchRequest
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export type MatchAndSearchRequest = MatchAndSearchRequestAllOf & SearchParameters;
|
|
25
|
+
|
|
26
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { DetectionFace } from './detection-face';
|
|
17
|
+
import { FaceSDKResultCode } from './face-sdkresult-code';
|
|
18
|
+
import { PersonWithImages } from './person-with-images';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface MatchAndSearchResponseAllOfDetections
|
|
24
|
+
*/
|
|
25
|
+
export interface MatchAndSearchResponseAllOfDetections {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DetectionFace & object>}
|
|
29
|
+
* @memberof MatchAndSearchResponseAllOfDetections
|
|
30
|
+
*/
|
|
31
|
+
'faces'?: Array<DetectionFace & object>;
|
|
32
|
+
/**
|
|
33
|
+
* Image index used to identify input photos between themselves. If not specified, than input list index is used.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof MatchAndSearchResponseAllOfDetections
|
|
36
|
+
*/
|
|
37
|
+
'imageIndex'?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {FaceSDKResultCode}
|
|
41
|
+
* @memberof MatchAndSearchResponseAllOfDetections
|
|
42
|
+
*/
|
|
43
|
+
'status'?: FaceSDKResultCode;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { MatchAndSearchResponseAllOfDetections } from './match-and-search-response-all-of-detections';
|
|
17
|
+
import { MatchImageResult } from './match-image-result';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface MatchAndSearchResponseAllOf
|
|
23
|
+
*/
|
|
24
|
+
export interface MatchAndSearchResponseAllOf {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<MatchAndSearchResponseAllOfDetections>}
|
|
28
|
+
* @memberof MatchAndSearchResponseAllOf
|
|
29
|
+
*/
|
|
30
|
+
'detections'?: Array<MatchAndSearchResponseAllOfDetections>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {MatchImageResult}
|
|
34
|
+
* @memberof MatchAndSearchResponseAllOf
|
|
35
|
+
*/
|
|
36
|
+
'results'?: MatchImageResult;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof MatchAndSearchResponseAllOf
|
|
41
|
+
*/
|
|
42
|
+
'elapsedTime'?: number;
|
|
43
|
+
/**
|
|
44
|
+
* A free-form object containing person\'s extended attributes.
|
|
45
|
+
* @type {{ [key: string]: object; }}
|
|
46
|
+
* @memberof MatchAndSearchResponseAllOf
|
|
47
|
+
*/
|
|
48
|
+
'metadata'?: { [key: string]: object; };
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { FaceSDKResult } from './face-sdkresult';
|
|
17
|
+
import { FaceSDKResultCode } from './face-sdkresult-code';
|
|
18
|
+
import { MatchAndSearchResponseAllOf } from './match-and-search-response-all-of';
|
|
19
|
+
import { MatchAndSearchResponseAllOfDetections } from './match-and-search-response-all-of-detections';
|
|
20
|
+
import { MatchImageResult } from './match-image-result';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @type MatchAndSearchResponse
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export type MatchAndSearchResponse = FaceSDKResult & MatchAndSearchResponseAllOf;
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { RecognizeImage } from './recognize-image';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PersonWithImagesAllOf
|
|
22
|
+
*/
|
|
23
|
+
export interface PersonWithImagesAllOf {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Array<RecognizeImage>}
|
|
27
|
+
* @memberof PersonWithImagesAllOf
|
|
28
|
+
*/
|
|
29
|
+
'images'?: Array<RecognizeImage>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Person } from './person';
|
|
17
|
+
import { PersonWithImagesAllOf } from './person-with-images-all-of';
|
|
18
|
+
import { RecognizeImage } from './recognize-image';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @type PersonWithImages
|
|
22
|
+
* @export
|
|
23
|
+
*/
|
|
24
|
+
export type PersonWithImages = Person & PersonWithImagesAllOf;
|
|
25
|
+
|
|
26
|
+
|
|
@@ -26,5 +26,11 @@ export interface RecognizeImageAllOf {
|
|
|
26
26
|
* @memberof RecognizeImageAllOf
|
|
27
27
|
*/
|
|
28
28
|
'similarity'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The similarity distance score: the lower the distance, the higher the face\'s similarity.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof RecognizeImageAllOf
|
|
33
|
+
*/
|
|
34
|
+
'distance'?: number;
|
|
29
35
|
}
|
|
30
36
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Regula FaceSDK Web API
|
|
5
|
+
* 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
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 4.1.3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Request search data.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SearchParameters
|
|
21
|
+
*/
|
|
22
|
+
export interface SearchParameters {
|
|
23
|
+
/**
|
|
24
|
+
* The number of returned Persons limit.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof SearchParameters
|
|
27
|
+
*/
|
|
28
|
+
'limit'?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The similarity distance threshold.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof SearchParameters
|
|
33
|
+
*/
|
|
34
|
+
'threshold'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The IDs of the groups in which the search is performed.
|
|
37
|
+
* @type {Array<number>}
|
|
38
|
+
* @memberof SearchParameters
|
|
39
|
+
*/
|
|
40
|
+
'group_ids'?: Array<number>;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import { ImageFields } from './image-fields';
|
|
17
17
|
import { ImageFieldsImage } from './image-fields-image';
|
|
18
|
-
import {
|
|
18
|
+
import { SearchParameters } from './search-parameters';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @type SearchRequest
|
|
22
22
|
* @export
|
|
23
23
|
*/
|
|
24
|
-
export type SearchRequest = ImageFields &
|
|
24
|
+
export type SearchRequest = ImageFields & SearchParameters;
|
|
25
25
|
|
|
26
26
|
|