@onfido/api 3.0.0 → 3.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/README.md +35 -12
- package/dist/api.d.ts +487 -141
- package/dist/api.js +240 -69
- package/dist/common.js +1 -40
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +487 -141
- package/dist/esm/api.js +239 -68
- package/dist/esm/common.js +1 -40
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/file-transfer.d.ts +10 -0
- package/dist/esm/file-transfer.js +13 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/file-transfer.d.ts +10 -0
- package/dist/file-transfer.js +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
package/dist/api.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.UploadDocumentSideEnum = exports.UploadDocumentFileTypeEnum = exports.ListWorkflowRunsSortEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunSharedLinkLanguageEnum = exports.WorkflowRunResponseStatusEnum = exports.WorkflowRunStatusEnum = exports.WebhookEventType = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentSharedFileTypeEnum = exports.DocumentSideEnum = exports.DocumentFileTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.ConsentItemNameEnum = exports.CheckResponseResultEnum = exports.CheckResponseStatusEnum = exports.CheckResultEnum = exports.CheckStatusEnum = void 0;
|
|
25
|
+
exports.UploadDocumentSideEnum = exports.UploadDocumentFileTypeEnum = exports.ListWorkflowRunsSortEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunSharedLinkLanguageEnum = exports.WorkflowRunResponseStatusEnum = exports.WorkflowRunStatusEnum = exports.WebhookEventType = exports.WatchlistMonitorSharedReportNameEnum = exports.WatchlistMonitorBuilderReportNameEnum = exports.WatchlistMonitorReportNameEnum = exports.UsDrivingLicenceSharedGenderEnum = exports.UsDrivingLicenceSharedEyeColorCodeEnum = exports.UsDrivingLicenceSharedDocumentCategoryEnum = exports.UsDrivingLicenceBuilderGenderEnum = exports.UsDrivingLicenceBuilderEyeColorCodeEnum = exports.UsDrivingLicenceBuilderDocumentCategoryEnum = exports.ResultsFeedbackExpectedResultEnum = exports.ReportSubResult = exports.ReportStatus = exports.ReportResult = exports.ReportName = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentSharedFileTypeEnum = exports.DocumentSideEnum = exports.DocumentFileTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.ConsentItemNameEnum = exports.CheckResponseResultEnum = exports.CheckResponseStatusEnum = exports.CheckResultEnum = exports.CheckStatusEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// URLSearchParams not necessarily used
|
|
28
28
|
// @ts-ignore
|
|
@@ -32,6 +32,24 @@ const url_1 = require("url");
|
|
|
32
32
|
const common_1 = require("./common");
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
const base_1 = require("./base");
|
|
35
|
+
const file_transfer_1 = require("./file-transfer");
|
|
36
|
+
const axios_2 = require("axios");
|
|
37
|
+
axios_1.default.interceptors.response.use((response) => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
|
+
if (response.headers instanceof axios_2.AxiosHeaders && response.headers['content-type']) {
|
|
39
|
+
if (!response.headers['content-type'].toString().includes('application/json')) {
|
|
40
|
+
const contentDisposition = response.headers['content-disposition'];
|
|
41
|
+
var filename = "";
|
|
42
|
+
if (contentDisposition && contentDisposition != "") {
|
|
43
|
+
const matcher = contentDisposition.match(/filename=['\"]?([^'\"\s]+)['\"]?/);
|
|
44
|
+
if (matcher != null) {
|
|
45
|
+
filename = matcher[1].replace(/.*[/\\\\]/g, "");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
response.data = new file_transfer_1.FileTransfer(response.data, filename);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return response;
|
|
52
|
+
}));
|
|
35
53
|
exports.CheckStatusEnum = {
|
|
36
54
|
InProgress: 'in_progress',
|
|
37
55
|
AwaitingApplicant: 'awaiting_applicant',
|
|
@@ -580,6 +598,16 @@ exports.WatchlistMonitorReportNameEnum = {
|
|
|
580
598
|
Aml: 'watchlist_aml',
|
|
581
599
|
UnknownDefaultOpenApi: '11184809'
|
|
582
600
|
};
|
|
601
|
+
exports.WatchlistMonitorBuilderReportNameEnum = {
|
|
602
|
+
Standard: 'watchlist_standard',
|
|
603
|
+
Aml: 'watchlist_aml',
|
|
604
|
+
UnknownDefaultOpenApi: '11184809'
|
|
605
|
+
};
|
|
606
|
+
exports.WatchlistMonitorSharedReportNameEnum = {
|
|
607
|
+
Standard: 'watchlist_standard',
|
|
608
|
+
Aml: 'watchlist_aml',
|
|
609
|
+
UnknownDefaultOpenApi: '11184809'
|
|
610
|
+
};
|
|
583
611
|
/**
|
|
584
612
|
*
|
|
585
613
|
* @export
|
|
@@ -677,17 +705,17 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
677
705
|
* @summary Complete Task
|
|
678
706
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
679
707
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
680
|
-
* @param {
|
|
708
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
681
709
|
* @param {*} [options] Override http request option.
|
|
682
710
|
* @throws {RequiredError}
|
|
683
711
|
*/
|
|
684
|
-
completeTask: (workflowRunId, taskId,
|
|
712
|
+
completeTask: (workflowRunId, taskId, completeTaskBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
685
713
|
// verify required parameter 'workflowRunId' is not null or undefined
|
|
686
714
|
(0, common_1.assertParamExists)('completeTask', 'workflowRunId', workflowRunId);
|
|
687
715
|
// verify required parameter 'taskId' is not null or undefined
|
|
688
716
|
(0, common_1.assertParamExists)('completeTask', 'taskId', taskId);
|
|
689
|
-
// verify required parameter '
|
|
690
|
-
(0, common_1.assertParamExists)('completeTask', '
|
|
717
|
+
// verify required parameter 'completeTaskBuilder' is not null or undefined
|
|
718
|
+
(0, common_1.assertParamExists)('completeTask', 'completeTaskBuilder', completeTaskBuilder);
|
|
691
719
|
const localVarPath = `/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete`
|
|
692
720
|
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
693
721
|
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
@@ -706,7 +734,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
706
734
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
707
735
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
736
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
709
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
737
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeTaskBuilder, localVarRequestOptions, configuration);
|
|
710
738
|
return {
|
|
711
739
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
712
740
|
options: localVarRequestOptions,
|
|
@@ -776,16 +804,47 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
776
804
|
options: localVarRequestOptions,
|
|
777
805
|
};
|
|
778
806
|
}),
|
|
807
|
+
/**
|
|
808
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
809
|
+
* @summary Create Timeline File for Workflow Run
|
|
810
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
createTimelineFile: (workflowRunId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
816
|
+
(0, common_1.assertParamExists)('createTimelineFile', 'workflowRunId', workflowRunId);
|
|
817
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file`
|
|
818
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)));
|
|
819
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
820
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
821
|
+
let baseOptions;
|
|
822
|
+
if (configuration) {
|
|
823
|
+
baseOptions = configuration.baseOptions;
|
|
824
|
+
}
|
|
825
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
826
|
+
const localVarHeaderParameter = {};
|
|
827
|
+
const localVarQueryParameter = {};
|
|
828
|
+
// authentication Token required
|
|
829
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
830
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
831
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
832
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
833
|
+
return {
|
|
834
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
835
|
+
options: localVarRequestOptions,
|
|
836
|
+
};
|
|
837
|
+
}),
|
|
779
838
|
/**
|
|
780
839
|
* Creates a new monitor for the applicant
|
|
781
840
|
* @summary Create monitor
|
|
782
|
-
* @param {
|
|
841
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
783
842
|
* @param {*} [options] Override http request option.
|
|
784
843
|
* @throws {RequiredError}
|
|
785
844
|
*/
|
|
786
|
-
createWatchlistMonitor: (
|
|
787
|
-
// verify required parameter '
|
|
788
|
-
(0, common_1.assertParamExists)('createWatchlistMonitor', '
|
|
845
|
+
createWatchlistMonitor: (watchlistMonitorBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
846
|
+
// verify required parameter 'watchlistMonitorBuilder' is not null or undefined
|
|
847
|
+
(0, common_1.assertParamExists)('createWatchlistMonitor', 'watchlistMonitorBuilder', watchlistMonitorBuilder);
|
|
789
848
|
const localVarPath = `/watchlist_monitors`;
|
|
790
849
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
791
850
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -802,7 +861,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
802
861
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
803
862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
804
863
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
805
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
864
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(watchlistMonitorBuilder, localVarRequestOptions, configuration);
|
|
806
865
|
return {
|
|
807
866
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
808
867
|
options: localVarRequestOptions,
|
|
@@ -1623,6 +1682,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1623
1682
|
options: localVarRequestOptions,
|
|
1624
1683
|
};
|
|
1625
1684
|
}),
|
|
1685
|
+
/**
|
|
1686
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
1687
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
1688
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
1689
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
1690
|
+
* @param {*} [options] Override http request option.
|
|
1691
|
+
* @throws {RequiredError}
|
|
1692
|
+
*/
|
|
1693
|
+
findTimelineFile: (workflowRunId, timelineFileId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1694
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1695
|
+
(0, common_1.assertParamExists)('findTimelineFile', 'workflowRunId', workflowRunId);
|
|
1696
|
+
// verify required parameter 'timelineFileId' is not null or undefined
|
|
1697
|
+
(0, common_1.assertParamExists)('findTimelineFile', 'timelineFileId', timelineFileId);
|
|
1698
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file/{timeline_file_id}`
|
|
1699
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
1700
|
+
.replace(`{${"timeline_file_id"}}`, encodeURIComponent(String(timelineFileId)));
|
|
1701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1702
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1703
|
+
let baseOptions;
|
|
1704
|
+
if (configuration) {
|
|
1705
|
+
baseOptions = configuration.baseOptions;
|
|
1706
|
+
}
|
|
1707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1708
|
+
const localVarHeaderParameter = {};
|
|
1709
|
+
const localVarQueryParameter = {};
|
|
1710
|
+
// authentication Token required
|
|
1711
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1712
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1713
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1714
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1715
|
+
return {
|
|
1716
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1717
|
+
options: localVarRequestOptions,
|
|
1718
|
+
};
|
|
1719
|
+
}),
|
|
1626
1720
|
/**
|
|
1627
1721
|
* Retrieves a single monitor
|
|
1628
1722
|
* @summary Retrieve monitor
|
|
@@ -1723,9 +1817,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1723
1817
|
* @param {*} [options] Override http request option.
|
|
1724
1818
|
* @throws {RequiredError}
|
|
1725
1819
|
*/
|
|
1726
|
-
|
|
1820
|
+
forceReportCreationFromWatchlistMonitor: (monitorId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1727
1821
|
// verify required parameter 'monitorId' is not null or undefined
|
|
1728
|
-
(0, common_1.assertParamExists)('
|
|
1822
|
+
(0, common_1.assertParamExists)('forceReportCreationFromWatchlistMonitor', 'monitorId', monitorId);
|
|
1729
1823
|
const localVarPath = `/watchlist_monitors/{monitor_id}/new_report`
|
|
1730
1824
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
1731
1825
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2481,15 +2575,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2481
2575
|
* Update the status of the given matches
|
|
2482
2576
|
* @summary Set match status (BETA)
|
|
2483
2577
|
* @param {string} monitorId
|
|
2484
|
-
* @param {
|
|
2578
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
2485
2579
|
* @param {*} [options] Override http request option.
|
|
2486
2580
|
* @throws {RequiredError}
|
|
2487
2581
|
*/
|
|
2488
|
-
|
|
2582
|
+
updateWatchlistMonitorMatch: (monitorId, watchlistMonitorMatchesUpdater, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2489
2583
|
// verify required parameter 'monitorId' is not null or undefined
|
|
2490
|
-
(0, common_1.assertParamExists)('
|
|
2491
|
-
// verify required parameter '
|
|
2492
|
-
(0, common_1.assertParamExists)('
|
|
2584
|
+
(0, common_1.assertParamExists)('updateWatchlistMonitorMatch', 'monitorId', monitorId);
|
|
2585
|
+
// verify required parameter 'watchlistMonitorMatchesUpdater' is not null or undefined
|
|
2586
|
+
(0, common_1.assertParamExists)('updateWatchlistMonitorMatch', 'watchlistMonitorMatchesUpdater', watchlistMonitorMatchesUpdater);
|
|
2493
2587
|
const localVarPath = `/watchlist_monitors/{monitor_id}/matches`
|
|
2494
2588
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
2495
2589
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2507,7 +2601,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2507
2601
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2508
2602
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2509
2603
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2510
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2604
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(watchlistMonitorMatchesUpdater, localVarRequestOptions, configuration);
|
|
2511
2605
|
return {
|
|
2512
2606
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2513
2607
|
options: localVarRequestOptions,
|
|
@@ -2554,7 +2648,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2554
2648
|
* @summary Upload a document
|
|
2555
2649
|
* @param {string} type The type of document
|
|
2556
2650
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
2557
|
-
* @param {
|
|
2651
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
2558
2652
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
2559
2653
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
2560
2654
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -2599,7 +2693,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2599
2693
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2600
2694
|
}
|
|
2601
2695
|
if (file !== undefined) {
|
|
2602
|
-
localVarFormParams.append('file', file);
|
|
2696
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2603
2697
|
}
|
|
2604
2698
|
if (validateImageQuality !== undefined) {
|
|
2605
2699
|
localVarFormParams.append('validate_image_quality', String(validateImageQuality));
|
|
@@ -2621,7 +2715,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2621
2715
|
* You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
|
|
2622
2716
|
* @summary Upload ID photo
|
|
2623
2717
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
2624
|
-
* @param {
|
|
2718
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2625
2719
|
* @param {*} [options] Override http request option.
|
|
2626
2720
|
* @throws {RequiredError}
|
|
2627
2721
|
*/
|
|
@@ -2643,7 +2737,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2643
2737
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2644
2738
|
}
|
|
2645
2739
|
if (file !== undefined) {
|
|
2646
|
-
localVarFormParams.append('file', file);
|
|
2740
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2647
2741
|
}
|
|
2648
2742
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2649
2743
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2659,7 +2753,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2659
2753
|
* You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
|
|
2660
2754
|
* @summary Upload live photo
|
|
2661
2755
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
2662
|
-
* @param {
|
|
2756
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2663
2757
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
2664
2758
|
* @param {*} [options] Override http request option.
|
|
2665
2759
|
* @throws {RequiredError}
|
|
@@ -2682,7 +2776,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2682
2776
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2683
2777
|
}
|
|
2684
2778
|
if (file !== undefined) {
|
|
2685
|
-
localVarFormParams.append('file', file);
|
|
2779
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2686
2780
|
}
|
|
2687
2781
|
if (advancedValidation !== undefined) {
|
|
2688
2782
|
localVarFormParams.append('advanced_validation', String(advancedValidation));
|
|
@@ -2728,14 +2822,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
2728
2822
|
* @summary Complete Task
|
|
2729
2823
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
2730
2824
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
2731
|
-
* @param {
|
|
2825
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
2732
2826
|
* @param {*} [options] Override http request option.
|
|
2733
2827
|
* @throws {RequiredError}
|
|
2734
2828
|
*/
|
|
2735
|
-
completeTask(workflowRunId, taskId,
|
|
2829
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
2736
2830
|
var _a, _b, _c;
|
|
2737
2831
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2738
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId,
|
|
2832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId, completeTaskBuilder, options);
|
|
2739
2833
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2740
2834
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.completeTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2741
2835
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2773,17 +2867,33 @@ const DefaultApiFp = function (configuration) {
|
|
|
2773
2867
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2774
2868
|
});
|
|
2775
2869
|
},
|
|
2870
|
+
/**
|
|
2871
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
2872
|
+
* @summary Create Timeline File for Workflow Run
|
|
2873
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
2874
|
+
* @param {*} [options] Override http request option.
|
|
2875
|
+
* @throws {RequiredError}
|
|
2876
|
+
*/
|
|
2877
|
+
createTimelineFile(workflowRunId, options) {
|
|
2878
|
+
var _a, _b, _c;
|
|
2879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2880
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTimelineFile(workflowRunId, options);
|
|
2881
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2882
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.createTimelineFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2884
|
+
});
|
|
2885
|
+
},
|
|
2776
2886
|
/**
|
|
2777
2887
|
* Creates a new monitor for the applicant
|
|
2778
2888
|
* @summary Create monitor
|
|
2779
|
-
* @param {
|
|
2889
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
2780
2890
|
* @param {*} [options] Override http request option.
|
|
2781
2891
|
* @throws {RequiredError}
|
|
2782
2892
|
*/
|
|
2783
|
-
createWatchlistMonitor(
|
|
2893
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
2784
2894
|
var _a, _b, _c;
|
|
2785
2895
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2786
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(
|
|
2896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(watchlistMonitorBuilder, options);
|
|
2787
2897
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2788
2898
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.createWatchlistMonitor']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2789
2899
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3206,6 +3316,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
3206
3316
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3207
3317
|
});
|
|
3208
3318
|
},
|
|
3319
|
+
/**
|
|
3320
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
3321
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
3322
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3323
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
3324
|
+
* @param {*} [options] Override http request option.
|
|
3325
|
+
* @throws {RequiredError}
|
|
3326
|
+
*/
|
|
3327
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
3328
|
+
var _a, _b, _c;
|
|
3329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3330
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.findTimelineFile(workflowRunId, timelineFileId, options);
|
|
3331
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3332
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.findTimelineFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3333
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3334
|
+
});
|
|
3335
|
+
},
|
|
3209
3336
|
/**
|
|
3210
3337
|
* Retrieves a single monitor
|
|
3211
3338
|
* @summary Retrieve monitor
|
|
@@ -3261,12 +3388,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
3261
3388
|
* @param {*} [options] Override http request option.
|
|
3262
3389
|
* @throws {RequiredError}
|
|
3263
3390
|
*/
|
|
3264
|
-
|
|
3391
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
3265
3392
|
var _a, _b, _c;
|
|
3266
3393
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3267
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3394
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.forceReportCreationFromWatchlistMonitor(monitorId, options);
|
|
3268
3395
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3269
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
3396
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.forceReportCreationFromWatchlistMonitor']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3270
3397
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3271
3398
|
});
|
|
3272
3399
|
},
|
|
@@ -3632,16 +3759,16 @@ const DefaultApiFp = function (configuration) {
|
|
|
3632
3759
|
* Update the status of the given matches
|
|
3633
3760
|
* @summary Set match status (BETA)
|
|
3634
3761
|
* @param {string} monitorId
|
|
3635
|
-
* @param {
|
|
3762
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
3636
3763
|
* @param {*} [options] Override http request option.
|
|
3637
3764
|
* @throws {RequiredError}
|
|
3638
3765
|
*/
|
|
3639
|
-
|
|
3766
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
3640
3767
|
var _a, _b, _c;
|
|
3641
3768
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3642
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3769
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options);
|
|
3643
3770
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3644
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.
|
|
3771
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.updateWatchlistMonitorMatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3645
3772
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3646
3773
|
});
|
|
3647
3774
|
},
|
|
@@ -3667,7 +3794,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3667
3794
|
* @summary Upload a document
|
|
3668
3795
|
* @param {string} type The type of document
|
|
3669
3796
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
3670
|
-
* @param {
|
|
3797
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
3671
3798
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
3672
3799
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
3673
3800
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -3689,7 +3816,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3689
3816
|
* You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
|
|
3690
3817
|
* @summary Upload ID photo
|
|
3691
3818
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
3692
|
-
* @param {
|
|
3819
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3693
3820
|
* @param {*} [options] Override http request option.
|
|
3694
3821
|
* @throws {RequiredError}
|
|
3695
3822
|
*/
|
|
@@ -3706,7 +3833,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3706
3833
|
* You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
|
|
3707
3834
|
* @summary Upload live photo
|
|
3708
3835
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
3709
|
-
* @param {
|
|
3836
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3710
3837
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
3711
3838
|
* @param {*} [options] Override http request option.
|
|
3712
3839
|
* @throws {RequiredError}
|
|
@@ -3745,12 +3872,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3745
3872
|
* @summary Complete Task
|
|
3746
3873
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
3747
3874
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
3748
|
-
* @param {
|
|
3875
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
3749
3876
|
* @param {*} [options] Override http request option.
|
|
3750
3877
|
* @throws {RequiredError}
|
|
3751
3878
|
*/
|
|
3752
|
-
completeTask(workflowRunId, taskId,
|
|
3753
|
-
return localVarFp.completeTask(workflowRunId, taskId,
|
|
3879
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
3880
|
+
return localVarFp.completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(axios, basePath));
|
|
3754
3881
|
},
|
|
3755
3882
|
/**
|
|
3756
3883
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -3772,15 +3899,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3772
3899
|
createCheck(checkBuilder, options) {
|
|
3773
3900
|
return localVarFp.createCheck(checkBuilder, options).then((request) => request(axios, basePath));
|
|
3774
3901
|
},
|
|
3902
|
+
/**
|
|
3903
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
3904
|
+
* @summary Create Timeline File for Workflow Run
|
|
3905
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3906
|
+
* @param {*} [options] Override http request option.
|
|
3907
|
+
* @throws {RequiredError}
|
|
3908
|
+
*/
|
|
3909
|
+
createTimelineFile(workflowRunId, options) {
|
|
3910
|
+
return localVarFp.createTimelineFile(workflowRunId, options).then((request) => request(axios, basePath));
|
|
3911
|
+
},
|
|
3775
3912
|
/**
|
|
3776
3913
|
* Creates a new monitor for the applicant
|
|
3777
3914
|
* @summary Create monitor
|
|
3778
|
-
* @param {
|
|
3915
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
3779
3916
|
* @param {*} [options] Override http request option.
|
|
3780
3917
|
* @throws {RequiredError}
|
|
3781
3918
|
*/
|
|
3782
|
-
createWatchlistMonitor(
|
|
3783
|
-
return localVarFp.createWatchlistMonitor(
|
|
3919
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
3920
|
+
return localVarFp.createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(axios, basePath));
|
|
3784
3921
|
},
|
|
3785
3922
|
/**
|
|
3786
3923
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4043,6 +4180,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4043
4180
|
findTask(workflowRunId, taskId, options) {
|
|
4044
4181
|
return localVarFp.findTask(workflowRunId, taskId, options).then((request) => request(axios, basePath));
|
|
4045
4182
|
},
|
|
4183
|
+
/**
|
|
4184
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4185
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4186
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4187
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4188
|
+
* @param {*} [options] Override http request option.
|
|
4189
|
+
* @throws {RequiredError}
|
|
4190
|
+
*/
|
|
4191
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4192
|
+
return localVarFp.findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(axios, basePath));
|
|
4193
|
+
},
|
|
4046
4194
|
/**
|
|
4047
4195
|
* Retrieves a single monitor
|
|
4048
4196
|
* @summary Retrieve monitor
|
|
@@ -4080,8 +4228,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4080
4228
|
* @param {*} [options] Override http request option.
|
|
4081
4229
|
* @throws {RequiredError}
|
|
4082
4230
|
*/
|
|
4083
|
-
|
|
4084
|
-
return localVarFp.
|
|
4231
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4232
|
+
return localVarFp.forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(axios, basePath));
|
|
4085
4233
|
},
|
|
4086
4234
|
/**
|
|
4087
4235
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -4313,12 +4461,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4313
4461
|
* Update the status of the given matches
|
|
4314
4462
|
* @summary Set match status (BETA)
|
|
4315
4463
|
* @param {string} monitorId
|
|
4316
|
-
* @param {
|
|
4464
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
4317
4465
|
* @param {*} [options] Override http request option.
|
|
4318
4466
|
* @throws {RequiredError}
|
|
4319
4467
|
*/
|
|
4320
|
-
|
|
4321
|
-
return localVarFp.
|
|
4468
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
4469
|
+
return localVarFp.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(axios, basePath));
|
|
4322
4470
|
},
|
|
4323
4471
|
/**
|
|
4324
4472
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -4336,7 +4484,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4336
4484
|
* @summary Upload a document
|
|
4337
4485
|
* @param {string} type The type of document
|
|
4338
4486
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
4339
|
-
* @param {
|
|
4487
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
4340
4488
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
4341
4489
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
4342
4490
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -4352,7 +4500,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4352
4500
|
* You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
|
|
4353
4501
|
* @summary Upload ID photo
|
|
4354
4502
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
4355
|
-
* @param {
|
|
4503
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4356
4504
|
* @param {*} [options] Override http request option.
|
|
4357
4505
|
* @throws {RequiredError}
|
|
4358
4506
|
*/
|
|
@@ -4363,7 +4511,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4363
4511
|
* You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
|
|
4364
4512
|
* @summary Upload live photo
|
|
4365
4513
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
4366
|
-
* @param {
|
|
4514
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4367
4515
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
4368
4516
|
* @param {*} [options] Override http request option.
|
|
4369
4517
|
* @throws {RequiredError}
|
|
@@ -4397,13 +4545,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4397
4545
|
* @summary Complete Task
|
|
4398
4546
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
4399
4547
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
4400
|
-
* @param {
|
|
4548
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
4401
4549
|
* @param {*} [options] Override http request option.
|
|
4402
4550
|
* @throws {RequiredError}
|
|
4403
4551
|
* @memberof DefaultApi
|
|
4404
4552
|
*/
|
|
4405
|
-
completeTask(workflowRunId, taskId,
|
|
4406
|
-
return (0, exports.DefaultApiFp)(this.configuration).completeTask(workflowRunId, taskId,
|
|
4553
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
4554
|
+
return (0, exports.DefaultApiFp)(this.configuration).completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4407
4555
|
}
|
|
4408
4556
|
/**
|
|
4409
4557
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -4427,16 +4575,27 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4427
4575
|
createCheck(checkBuilder, options) {
|
|
4428
4576
|
return (0, exports.DefaultApiFp)(this.configuration).createCheck(checkBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4429
4577
|
}
|
|
4578
|
+
/**
|
|
4579
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
4580
|
+
* @summary Create Timeline File for Workflow Run
|
|
4581
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4582
|
+
* @param {*} [options] Override http request option.
|
|
4583
|
+
* @throws {RequiredError}
|
|
4584
|
+
* @memberof DefaultApi
|
|
4585
|
+
*/
|
|
4586
|
+
createTimelineFile(workflowRunId, options) {
|
|
4587
|
+
return (0, exports.DefaultApiFp)(this.configuration).createTimelineFile(workflowRunId, options).then((request) => request(this.axios, this.basePath));
|
|
4588
|
+
}
|
|
4430
4589
|
/**
|
|
4431
4590
|
* Creates a new monitor for the applicant
|
|
4432
4591
|
* @summary Create monitor
|
|
4433
|
-
* @param {
|
|
4592
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
4434
4593
|
* @param {*} [options] Override http request option.
|
|
4435
4594
|
* @throws {RequiredError}
|
|
4436
4595
|
* @memberof DefaultApi
|
|
4437
4596
|
*/
|
|
4438
|
-
createWatchlistMonitor(
|
|
4439
|
-
return (0, exports.DefaultApiFp)(this.configuration).createWatchlistMonitor(
|
|
4597
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
4598
|
+
return (0, exports.DefaultApiFp)(this.configuration).createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4440
4599
|
}
|
|
4441
4600
|
/**
|
|
4442
4601
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4725,6 +4884,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4725
4884
|
findTask(workflowRunId, taskId, options) {
|
|
4726
4885
|
return (0, exports.DefaultApiFp)(this.configuration).findTask(workflowRunId, taskId, options).then((request) => request(this.axios, this.basePath));
|
|
4727
4886
|
}
|
|
4887
|
+
/**
|
|
4888
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4889
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4890
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4891
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4892
|
+
* @param {*} [options] Override http request option.
|
|
4893
|
+
* @throws {RequiredError}
|
|
4894
|
+
* @memberof DefaultApi
|
|
4895
|
+
*/
|
|
4896
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4897
|
+
return (0, exports.DefaultApiFp)(this.configuration).findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(this.axios, this.basePath));
|
|
4898
|
+
}
|
|
4728
4899
|
/**
|
|
4729
4900
|
* Retrieves a single monitor
|
|
4730
4901
|
* @summary Retrieve monitor
|
|
@@ -4766,8 +4937,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4766
4937
|
* @throws {RequiredError}
|
|
4767
4938
|
* @memberof DefaultApi
|
|
4768
4939
|
*/
|
|
4769
|
-
|
|
4770
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
4940
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4941
|
+
return (0, exports.DefaultApiFp)(this.configuration).forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(this.axios, this.basePath));
|
|
4771
4942
|
}
|
|
4772
4943
|
/**
|
|
4773
4944
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -5021,13 +5192,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5021
5192
|
* Update the status of the given matches
|
|
5022
5193
|
* @summary Set match status (BETA)
|
|
5023
5194
|
* @param {string} monitorId
|
|
5024
|
-
* @param {
|
|
5195
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
5025
5196
|
* @param {*} [options] Override http request option.
|
|
5026
5197
|
* @throws {RequiredError}
|
|
5027
5198
|
* @memberof DefaultApi
|
|
5028
5199
|
*/
|
|
5029
|
-
|
|
5030
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
5200
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
5201
|
+
return (0, exports.DefaultApiFp)(this.configuration).updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(this.axios, this.basePath));
|
|
5031
5202
|
}
|
|
5032
5203
|
/**
|
|
5033
5204
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -5046,7 +5217,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5046
5217
|
* @summary Upload a document
|
|
5047
5218
|
* @param {string} type The type of document
|
|
5048
5219
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
5049
|
-
* @param {
|
|
5220
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
5050
5221
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
5051
5222
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
5052
5223
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -5063,7 +5234,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5063
5234
|
* You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
|
|
5064
5235
|
* @summary Upload ID photo
|
|
5065
5236
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
5066
|
-
* @param {
|
|
5237
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5067
5238
|
* @param {*} [options] Override http request option.
|
|
5068
5239
|
* @throws {RequiredError}
|
|
5069
5240
|
* @memberof DefaultApi
|
|
@@ -5075,7 +5246,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5075
5246
|
* You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
|
|
5076
5247
|
* @summary Upload live photo
|
|
5077
5248
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
5078
|
-
* @param {
|
|
5249
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5079
5250
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
5080
5251
|
* @param {*} [options] Override http request option.
|
|
5081
5252
|
* @throws {RequiredError}
|