@regulaforensics/facesdk-webclient 4.1.6 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs-es5/api/liveness-api.js +355 -0
- package/dist/cjs-es5/api/liveness20-api.js +432 -0
- package/dist/cjs-es5/api.js +2 -1
- package/dist/cjs-es5/models/face-quality-scenarios.js +2 -1
- package/dist/cjs-es5/models/image-source.js +3 -2
- package/dist/cjs-es5/models/index.js +2 -1
- package/dist/cjs-es5/models/liveness-transaction.js +16 -0
- package/dist/esm-es5/api/liveness-api.js +352 -0
- package/dist/esm-es5/api/liveness20-api.js +429 -0
- package/dist/esm-es5/api.js +2 -1
- package/dist/esm-es5/models/face-quality-scenarios.js +2 -1
- package/dist/esm-es5/models/image-source.js +3 -2
- package/dist/esm-es5/models/index.js +2 -1
- package/dist/esm-es5/models/liveness-transaction.js +14 -0
- package/package.json +1 -1
- package/src/api/liveness-api.ts +268 -0
- package/src/api/liveness20-api.ts +340 -0
- package/src/api.ts +1 -0
- package/src/models/face-quality-scenarios.ts +1 -0
- package/src/models/image-source.ts +2 -1
- package/src/models/index.ts +1 -0
- package/src/models/liveness-transaction.ts +78 -0
- package/src/models/search-parameters.ts +1 -1
|
@@ -0,0 +1,268 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
/**
|
|
24
|
+
* LivenessApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
export const LivenessApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Liveness 2.0 metadata
|
|
32
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
livenessMetadata: async (eRRORUNKNOWN: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37
|
+
// verify required parameter 'eRRORUNKNOWN' is not null or undefined
|
|
38
|
+
assertParamExists('livenessMetadata', 'eRRORUNKNOWN', eRRORUNKNOWN)
|
|
39
|
+
const localVarPath = `/api/v2/liveness/metadata`;
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48
|
+
const localVarHeaderParameter = {} as any;
|
|
49
|
+
const localVarQueryParameter = {} as any;
|
|
50
|
+
|
|
51
|
+
if (eRRORUNKNOWN !== undefined) {
|
|
52
|
+
localVarQueryParameter[''] = eRRORUNKNOWN;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
59
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
url: toPathString(localVarUrlObj),
|
|
63
|
+
options: localVarRequestOptions,
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @summary Liveness 2.0 portrait
|
|
69
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
livenessPortrait: async (eRRORUNKNOWN: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
74
|
+
// verify required parameter 'eRRORUNKNOWN' is not null or undefined
|
|
75
|
+
assertParamExists('livenessPortrait', 'eRRORUNKNOWN', eRRORUNKNOWN)
|
|
76
|
+
const localVarPath = `/api/v2/liveness/portrait`;
|
|
77
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
78
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
79
|
+
let baseOptions;
|
|
80
|
+
if (configuration) {
|
|
81
|
+
baseOptions = configuration.baseOptions;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
85
|
+
const localVarHeaderParameter = {} as any;
|
|
86
|
+
const localVarQueryParameter = {} as any;
|
|
87
|
+
|
|
88
|
+
if (eRRORUNKNOWN !== undefined) {
|
|
89
|
+
localVarQueryParameter[''] = eRRORUNKNOWN;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
97
|
+
|
|
98
|
+
return {
|
|
99
|
+
url: toPathString(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Liveness 2.0 video
|
|
106
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
livenessVideo: async (eRRORUNKNOWN: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
111
|
+
// verify required parameter 'eRRORUNKNOWN' is not null or undefined
|
|
112
|
+
assertParamExists('livenessVideo', 'eRRORUNKNOWN', eRRORUNKNOWN)
|
|
113
|
+
const localVarPath = `/api/v2/liveness/video`;
|
|
114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
116
|
+
let baseOptions;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
122
|
+
const localVarHeaderParameter = {} as any;
|
|
123
|
+
const localVarQueryParameter = {} as any;
|
|
124
|
+
|
|
125
|
+
if (eRRORUNKNOWN !== undefined) {
|
|
126
|
+
localVarQueryParameter[''] = eRRORUNKNOWN;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
134
|
+
|
|
135
|
+
return {
|
|
136
|
+
url: toPathString(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* LivenessApi - functional programming interface
|
|
145
|
+
* @export
|
|
146
|
+
*/
|
|
147
|
+
export const LivenessApiFp = function(configuration?: Configuration) {
|
|
148
|
+
const localVarAxiosParamCreator = LivenessApiAxiosParamCreator(configuration)
|
|
149
|
+
return {
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Liveness 2.0 metadata
|
|
153
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
async livenessMetadata(eRRORUNKNOWN: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> {
|
|
158
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessMetadata(eRRORUNKNOWN, options);
|
|
159
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @summary Liveness 2.0 portrait
|
|
164
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
async livenessPortrait(eRRORUNKNOWN: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessPortrait(eRRORUNKNOWN, options);
|
|
170
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Liveness 2.0 video
|
|
175
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
async livenessVideo(eRRORUNKNOWN: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
180
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessVideo(eRRORUNKNOWN, options);
|
|
181
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
182
|
+
},
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* LivenessApi - factory interface
|
|
188
|
+
* @export
|
|
189
|
+
*/
|
|
190
|
+
export const LivenessApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
191
|
+
const localVarFp = LivenessApiFp(configuration)
|
|
192
|
+
return {
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @summary Liveness 2.0 metadata
|
|
196
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
livenessMetadata(eRRORUNKNOWN: number, options?: any): AxiosPromise<{ [key: string]: object; }> {
|
|
201
|
+
return localVarFp.livenessMetadata(eRRORUNKNOWN, options).then((request) => request(axios, basePath));
|
|
202
|
+
},
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Liveness 2.0 portrait
|
|
206
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
livenessPortrait(eRRORUNKNOWN: number, options?: any): AxiosPromise<any> {
|
|
211
|
+
return localVarFp.livenessPortrait(eRRORUNKNOWN, options).then((request) => request(axios, basePath));
|
|
212
|
+
},
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @summary Liveness 2.0 video
|
|
216
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
livenessVideo(eRRORUNKNOWN: number, options?: any): AxiosPromise<any> {
|
|
221
|
+
return localVarFp.livenessVideo(eRRORUNKNOWN, options).then((request) => request(axios, basePath));
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* LivenessApi - object-oriented interface
|
|
228
|
+
* @export
|
|
229
|
+
* @class LivenessApi
|
|
230
|
+
* @extends {BaseAPI}
|
|
231
|
+
*/
|
|
232
|
+
export class LivenessApi extends BaseAPI {
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @summary Liveness 2.0 metadata
|
|
236
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
* @memberof LivenessApi
|
|
240
|
+
*/
|
|
241
|
+
public livenessMetadata(eRRORUNKNOWN: number, options?: AxiosRequestConfig) {
|
|
242
|
+
return LivenessApiFp(this.configuration).livenessMetadata(eRRORUNKNOWN, options).then((request) => request(this.axios, this.basePath));
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @summary Liveness 2.0 portrait
|
|
248
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
* @memberof LivenessApi
|
|
252
|
+
*/
|
|
253
|
+
public livenessPortrait(eRRORUNKNOWN: number, options?: AxiosRequestConfig) {
|
|
254
|
+
return LivenessApiFp(this.configuration).livenessPortrait(eRRORUNKNOWN, options).then((request) => request(this.axios, this.basePath));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary Liveness 2.0 video
|
|
260
|
+
* @param {number} eRRORUNKNOWN ID of the current liveness transaction.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof LivenessApi
|
|
264
|
+
*/
|
|
265
|
+
public livenessVideo(eRRORUNKNOWN: number, options?: AxiosRequestConfig) {
|
|
266
|
+
return LivenessApiFp(this.configuration).livenessVideo(eRRORUNKNOWN, options).then((request) => request(this.axios, this.basePath));
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { LivenessTransaction } from '../models';
|
|
25
|
+
/**
|
|
26
|
+
* Liveness20Api - axios parameter creator
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const Liveness20ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary liveness
|
|
34
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
35
|
+
* @param {*} [options] Override http request option.
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
*/
|
|
38
|
+
getLivenessTransaction: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
39
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
40
|
+
assertParamExists('getLivenessTransaction', 'transactionId', transactionId)
|
|
41
|
+
const localVarPath = `/api/v2/liveness`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
50
|
+
const localVarHeaderParameter = {} as any;
|
|
51
|
+
const localVarQueryParameter = {} as any;
|
|
52
|
+
|
|
53
|
+
if (transactionId !== undefined) {
|
|
54
|
+
localVarQueryParameter['transactionId'] = transactionId;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary metadata
|
|
71
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
livenessMetadata: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
76
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
77
|
+
assertParamExists('livenessMetadata', 'transactionId', transactionId)
|
|
78
|
+
const localVarPath = `/api/v2/liveness/metadata`;
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
87
|
+
const localVarHeaderParameter = {} as any;
|
|
88
|
+
const localVarQueryParameter = {} as any;
|
|
89
|
+
|
|
90
|
+
if (transactionId !== undefined) {
|
|
91
|
+
localVarQueryParameter['transactionId'] = transactionId;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
url: toPathString(localVarUrlObj),
|
|
102
|
+
options: localVarRequestOptions,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @summary portrait
|
|
108
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
livenessPortrait: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
113
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
114
|
+
assertParamExists('livenessPortrait', 'transactionId', transactionId)
|
|
115
|
+
const localVarPath = `/api/v2/liveness/portrait`;
|
|
116
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
+
let baseOptions;
|
|
119
|
+
if (configuration) {
|
|
120
|
+
baseOptions = configuration.baseOptions;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
124
|
+
const localVarHeaderParameter = {} as any;
|
|
125
|
+
const localVarQueryParameter = {} as any;
|
|
126
|
+
|
|
127
|
+
if (transactionId !== undefined) {
|
|
128
|
+
localVarQueryParameter['transactionId'] = transactionId;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
+
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary video
|
|
145
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
146
|
+
* @param {*} [options] Override http request option.
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
*/
|
|
149
|
+
livenessVideo: async (transactionId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
|
+
// verify required parameter 'transactionId' is not null or undefined
|
|
151
|
+
assertParamExists('livenessVideo', 'transactionId', transactionId)
|
|
152
|
+
const localVarPath = `/api/v2/liveness/video`;
|
|
153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
155
|
+
let baseOptions;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
161
|
+
const localVarHeaderParameter = {} as any;
|
|
162
|
+
const localVarQueryParameter = {} as any;
|
|
163
|
+
|
|
164
|
+
if (transactionId !== undefined) {
|
|
165
|
+
localVarQueryParameter['transactionId'] = transactionId;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
173
|
+
|
|
174
|
+
return {
|
|
175
|
+
url: toPathString(localVarUrlObj),
|
|
176
|
+
options: localVarRequestOptions,
|
|
177
|
+
};
|
|
178
|
+
},
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Liveness20Api - functional programming interface
|
|
184
|
+
* @export
|
|
185
|
+
*/
|
|
186
|
+
export const Liveness20ApiFp = function(configuration?: Configuration) {
|
|
187
|
+
const localVarAxiosParamCreator = Liveness20ApiAxiosParamCreator(configuration)
|
|
188
|
+
return {
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary liveness
|
|
192
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
async getLivenessTransaction(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LivenessTransaction>> {
|
|
197
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLivenessTransaction(transactionId, options);
|
|
198
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary metadata
|
|
203
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
async livenessMetadata(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: object; }>> {
|
|
208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessMetadata(transactionId, options);
|
|
209
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
210
|
+
},
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @summary portrait
|
|
214
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
215
|
+
* @param {*} [options] Override http request option.
|
|
216
|
+
* @throws {RequiredError}
|
|
217
|
+
*/
|
|
218
|
+
async livenessPortrait(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessPortrait(transactionId, options);
|
|
220
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
221
|
+
},
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @summary video
|
|
225
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
async livenessVideo(transactionId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.livenessVideo(transactionId, options);
|
|
231
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
|
+
},
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Liveness20Api - factory interface
|
|
238
|
+
* @export
|
|
239
|
+
*/
|
|
240
|
+
export const Liveness20ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
241
|
+
const localVarFp = Liveness20ApiFp(configuration)
|
|
242
|
+
return {
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary liveness
|
|
246
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
*/
|
|
250
|
+
getLivenessTransaction(transactionId: number, options?: any): AxiosPromise<LivenessTransaction> {
|
|
251
|
+
return localVarFp.getLivenessTransaction(transactionId, options).then((request) => request(axios, basePath));
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @summary metadata
|
|
256
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
livenessMetadata(transactionId: number, options?: any): AxiosPromise<{ [key: string]: object; }> {
|
|
261
|
+
return localVarFp.livenessMetadata(transactionId, options).then((request) => request(axios, basePath));
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @summary portrait
|
|
266
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
livenessPortrait(transactionId: number, options?: any): AxiosPromise<any> {
|
|
271
|
+
return localVarFp.livenessPortrait(transactionId, options).then((request) => request(axios, basePath));
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary video
|
|
276
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
livenessVideo(transactionId: number, options?: any): AxiosPromise<any> {
|
|
281
|
+
return localVarFp.livenessVideo(transactionId, options).then((request) => request(axios, basePath));
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Liveness20Api - object-oriented interface
|
|
288
|
+
* @export
|
|
289
|
+
* @class Liveness20Api
|
|
290
|
+
* @extends {BaseAPI}
|
|
291
|
+
*/
|
|
292
|
+
export class Liveness20Api extends BaseAPI {
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary liveness
|
|
296
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
* @memberof Liveness20Api
|
|
300
|
+
*/
|
|
301
|
+
public getLivenessTransaction(transactionId: number, options?: AxiosRequestConfig) {
|
|
302
|
+
return Liveness20ApiFp(this.configuration).getLivenessTransaction(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @summary metadata
|
|
308
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof Liveness20Api
|
|
312
|
+
*/
|
|
313
|
+
public livenessMetadata(transactionId: number, options?: AxiosRequestConfig) {
|
|
314
|
+
return Liveness20ApiFp(this.configuration).livenessMetadata(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @summary portrait
|
|
320
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
321
|
+
* @param {*} [options] Override http request option.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
* @memberof Liveness20Api
|
|
324
|
+
*/
|
|
325
|
+
public livenessPortrait(transactionId: number, options?: AxiosRequestConfig) {
|
|
326
|
+
return Liveness20ApiFp(this.configuration).livenessPortrait(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary video
|
|
332
|
+
* @param {number} transactionId ID of the current liveness transaction.
|
|
333
|
+
* @param {*} [options] Override http request option.
|
|
334
|
+
* @throws {RequiredError}
|
|
335
|
+
* @memberof Liveness20Api
|
|
336
|
+
*/
|
|
337
|
+
public livenessVideo(transactionId: number, options?: AxiosRequestConfig) {
|
|
338
|
+
return Liveness20ApiFp(this.configuration).livenessVideo(transactionId, options).then((request) => request(this.axios, this.basePath));
|
|
339
|
+
}
|
|
340
|
+
}
|
package/src/api.ts
CHANGED
package/src/models/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from './image-fields-image';
|
|
|
26
26
|
export * from './image-page';
|
|
27
27
|
export * from './image-page-all-of';
|
|
28
28
|
export * from './image-source';
|
|
29
|
+
export * from './liveness-transaction';
|
|
29
30
|
export * from './match-and-search-request';
|
|
30
31
|
export * from './match-and-search-request-all-of';
|
|
31
32
|
export * from './match-and-search-request-all-of-images';
|