@onfido/api 3.0.0 → 3.2.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 +38 -12
- package/dist/api.d.ts +733 -141
- package/dist/api.js +289 -69
- package/dist/common.js +1 -40
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +733 -141
- package/dist/esm/api.js +287 -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,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
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.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentSharedFileTypeEnum = exports.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = 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
|
+
exports.UploadDocumentSideEnum = exports.UploadDocumentFileTypeEnum = exports.ListWorkflowRunsSortEnum = exports.DefaultApi = void 0;
|
|
26
27
|
const axios_1 = require("axios");
|
|
27
28
|
// URLSearchParams not necessarily used
|
|
28
29
|
// @ts-ignore
|
|
@@ -32,6 +33,24 @@ const url_1 = require("url");
|
|
|
32
33
|
const common_1 = require("./common");
|
|
33
34
|
// @ts-ignore
|
|
34
35
|
const base_1 = require("./base");
|
|
36
|
+
const file_transfer_1 = require("./file-transfer");
|
|
37
|
+
const axios_2 = require("axios");
|
|
38
|
+
axios_1.default.interceptors.response.use((response) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
if (response.headers instanceof axios_2.AxiosHeaders && response.headers['content-type']) {
|
|
40
|
+
if (!response.headers['content-type'].toString().includes('application/json')) {
|
|
41
|
+
const contentDisposition = response.headers['content-disposition'];
|
|
42
|
+
var filename = "";
|
|
43
|
+
if (contentDisposition && contentDisposition != "") {
|
|
44
|
+
const matcher = contentDisposition.match(/filename=['\"]?([^'\"\s]+)['\"]?/);
|
|
45
|
+
if (matcher != null) {
|
|
46
|
+
filename = matcher[1].replace(/.*[/\\\\]/g, "");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
response.data = new file_transfer_1.FileTransfer(response.data, filename);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return response;
|
|
53
|
+
}));
|
|
35
54
|
exports.CheckStatusEnum = {
|
|
36
55
|
InProgress: 'in_progress',
|
|
37
56
|
AwaitingApplicant: 'awaiting_applicant',
|
|
@@ -363,6 +382,30 @@ exports.DocumentSideEnum = {
|
|
|
363
382
|
Back: 'back',
|
|
364
383
|
UnknownDefaultOpenApi: '11184809'
|
|
365
384
|
};
|
|
385
|
+
exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = {
|
|
386
|
+
Superior: 'superior',
|
|
387
|
+
Strong: 'strong',
|
|
388
|
+
Fair: 'fair',
|
|
389
|
+
Weak: 'weak',
|
|
390
|
+
Unacceptable: 'unacceptable',
|
|
391
|
+
UnspecifiedIdentityEvidenceStrength: 'unspecified_identity_evidence_strength',
|
|
392
|
+
UnknownDefaultOpenApi: '11184809'
|
|
393
|
+
};
|
|
394
|
+
exports.DocumentPropertiesHasIssuanceConfirmationEnum = {
|
|
395
|
+
True: 'true',
|
|
396
|
+
False: 'false',
|
|
397
|
+
Unspecified: 'unspecified',
|
|
398
|
+
UnknownDefaultOpenApi: '11184809'
|
|
399
|
+
};
|
|
400
|
+
exports.DocumentPropertiesSecurityTierEnum = {
|
|
401
|
+
Tier1: 'tier_1',
|
|
402
|
+
Tier2: 'tier_2',
|
|
403
|
+
Tier3: 'tier_3',
|
|
404
|
+
Tier4: 'tier_4',
|
|
405
|
+
Tier5: 'tier_5',
|
|
406
|
+
UnspecifiedSecurityTier: 'unspecified_security_tier',
|
|
407
|
+
UnknownDefaultOpenApi: '11184809'
|
|
408
|
+
};
|
|
366
409
|
exports.DocumentSharedFileTypeEnum = {
|
|
367
410
|
Jpg: 'jpg',
|
|
368
411
|
Png: 'png',
|
|
@@ -407,6 +450,30 @@ exports.DocumentTypes = {
|
|
|
407
450
|
InternationalDrivingLicence: 'international_driving_licence',
|
|
408
451
|
UnknownDefaultOpenApi: '11184809'
|
|
409
452
|
};
|
|
453
|
+
exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = {
|
|
454
|
+
Superior: 'superior',
|
|
455
|
+
Strong: 'strong',
|
|
456
|
+
Fair: 'fair',
|
|
457
|
+
Weak: 'weak',
|
|
458
|
+
Unacceptable: 'unacceptable',
|
|
459
|
+
UnspecifiedIdentityEvidenceStrength: 'unspecified_identity_evidence_strength',
|
|
460
|
+
UnknownDefaultOpenApi: '11184809'
|
|
461
|
+
};
|
|
462
|
+
exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = {
|
|
463
|
+
True: 'true',
|
|
464
|
+
False: 'false',
|
|
465
|
+
Unspecified: 'unspecified',
|
|
466
|
+
UnknownDefaultOpenApi: '11184809'
|
|
467
|
+
};
|
|
468
|
+
exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = {
|
|
469
|
+
Tier1: 'tier_1',
|
|
470
|
+
Tier2: 'tier_2',
|
|
471
|
+
Tier3: 'tier_3',
|
|
472
|
+
Tier4: 'tier_4',
|
|
473
|
+
Tier5: 'tier_5',
|
|
474
|
+
UnspecifiedSecurityTier: 'unspecified_security_tier',
|
|
475
|
+
UnknownDefaultOpenApi: '11184809'
|
|
476
|
+
};
|
|
410
477
|
exports.ExtractionDocumentClassificationSubtypeEnum = {
|
|
411
478
|
Full: 'full',
|
|
412
479
|
NotFull: 'not_full',
|
|
@@ -580,6 +647,16 @@ exports.WatchlistMonitorReportNameEnum = {
|
|
|
580
647
|
Aml: 'watchlist_aml',
|
|
581
648
|
UnknownDefaultOpenApi: '11184809'
|
|
582
649
|
};
|
|
650
|
+
exports.WatchlistMonitorBuilderReportNameEnum = {
|
|
651
|
+
Standard: 'watchlist_standard',
|
|
652
|
+
Aml: 'watchlist_aml',
|
|
653
|
+
UnknownDefaultOpenApi: '11184809'
|
|
654
|
+
};
|
|
655
|
+
exports.WatchlistMonitorSharedReportNameEnum = {
|
|
656
|
+
Standard: 'watchlist_standard',
|
|
657
|
+
Aml: 'watchlist_aml',
|
|
658
|
+
UnknownDefaultOpenApi: '11184809'
|
|
659
|
+
};
|
|
583
660
|
/**
|
|
584
661
|
*
|
|
585
662
|
* @export
|
|
@@ -677,17 +754,17 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
677
754
|
* @summary Complete Task
|
|
678
755
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
679
756
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
680
|
-
* @param {
|
|
757
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
681
758
|
* @param {*} [options] Override http request option.
|
|
682
759
|
* @throws {RequiredError}
|
|
683
760
|
*/
|
|
684
|
-
completeTask: (workflowRunId, taskId,
|
|
761
|
+
completeTask: (workflowRunId, taskId, completeTaskBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
685
762
|
// verify required parameter 'workflowRunId' is not null or undefined
|
|
686
763
|
(0, common_1.assertParamExists)('completeTask', 'workflowRunId', workflowRunId);
|
|
687
764
|
// verify required parameter 'taskId' is not null or undefined
|
|
688
765
|
(0, common_1.assertParamExists)('completeTask', 'taskId', taskId);
|
|
689
|
-
// verify required parameter '
|
|
690
|
-
(0, common_1.assertParamExists)('completeTask', '
|
|
766
|
+
// verify required parameter 'completeTaskBuilder' is not null or undefined
|
|
767
|
+
(0, common_1.assertParamExists)('completeTask', 'completeTaskBuilder', completeTaskBuilder);
|
|
691
768
|
const localVarPath = `/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete`
|
|
692
769
|
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
693
770
|
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
@@ -706,7 +783,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
706
783
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
707
784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
785
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
709
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
786
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeTaskBuilder, localVarRequestOptions, configuration);
|
|
710
787
|
return {
|
|
711
788
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
712
789
|
options: localVarRequestOptions,
|
|
@@ -776,16 +853,47 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
776
853
|
options: localVarRequestOptions,
|
|
777
854
|
};
|
|
778
855
|
}),
|
|
856
|
+
/**
|
|
857
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
858
|
+
* @summary Create Timeline File for Workflow Run
|
|
859
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
860
|
+
* @param {*} [options] Override http request option.
|
|
861
|
+
* @throws {RequiredError}
|
|
862
|
+
*/
|
|
863
|
+
createTimelineFile: (workflowRunId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
864
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
865
|
+
(0, common_1.assertParamExists)('createTimelineFile', 'workflowRunId', workflowRunId);
|
|
866
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file`
|
|
867
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)));
|
|
868
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
869
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
870
|
+
let baseOptions;
|
|
871
|
+
if (configuration) {
|
|
872
|
+
baseOptions = configuration.baseOptions;
|
|
873
|
+
}
|
|
874
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
875
|
+
const localVarHeaderParameter = {};
|
|
876
|
+
const localVarQueryParameter = {};
|
|
877
|
+
// authentication Token required
|
|
878
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
879
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
880
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
881
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
882
|
+
return {
|
|
883
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
884
|
+
options: localVarRequestOptions,
|
|
885
|
+
};
|
|
886
|
+
}),
|
|
779
887
|
/**
|
|
780
888
|
* Creates a new monitor for the applicant
|
|
781
889
|
* @summary Create monitor
|
|
782
|
-
* @param {
|
|
890
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
783
891
|
* @param {*} [options] Override http request option.
|
|
784
892
|
* @throws {RequiredError}
|
|
785
893
|
*/
|
|
786
|
-
createWatchlistMonitor: (
|
|
787
|
-
// verify required parameter '
|
|
788
|
-
(0, common_1.assertParamExists)('createWatchlistMonitor', '
|
|
894
|
+
createWatchlistMonitor: (watchlistMonitorBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
895
|
+
// verify required parameter 'watchlistMonitorBuilder' is not null or undefined
|
|
896
|
+
(0, common_1.assertParamExists)('createWatchlistMonitor', 'watchlistMonitorBuilder', watchlistMonitorBuilder);
|
|
789
897
|
const localVarPath = `/watchlist_monitors`;
|
|
790
898
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
791
899
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -802,7 +910,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
802
910
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
803
911
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
804
912
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
805
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
913
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(watchlistMonitorBuilder, localVarRequestOptions, configuration);
|
|
806
914
|
return {
|
|
807
915
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
808
916
|
options: localVarRequestOptions,
|
|
@@ -1623,6 +1731,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1623
1731
|
options: localVarRequestOptions,
|
|
1624
1732
|
};
|
|
1625
1733
|
}),
|
|
1734
|
+
/**
|
|
1735
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
1736
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
1737
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
1738
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
1739
|
+
* @param {*} [options] Override http request option.
|
|
1740
|
+
* @throws {RequiredError}
|
|
1741
|
+
*/
|
|
1742
|
+
findTimelineFile: (workflowRunId, timelineFileId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1743
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1744
|
+
(0, common_1.assertParamExists)('findTimelineFile', 'workflowRunId', workflowRunId);
|
|
1745
|
+
// verify required parameter 'timelineFileId' is not null or undefined
|
|
1746
|
+
(0, common_1.assertParamExists)('findTimelineFile', 'timelineFileId', timelineFileId);
|
|
1747
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file/{timeline_file_id}`
|
|
1748
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
1749
|
+
.replace(`{${"timeline_file_id"}}`, encodeURIComponent(String(timelineFileId)));
|
|
1750
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1751
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1752
|
+
let baseOptions;
|
|
1753
|
+
if (configuration) {
|
|
1754
|
+
baseOptions = configuration.baseOptions;
|
|
1755
|
+
}
|
|
1756
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1757
|
+
const localVarHeaderParameter = {};
|
|
1758
|
+
const localVarQueryParameter = {};
|
|
1759
|
+
// authentication Token required
|
|
1760
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1761
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1762
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1763
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1764
|
+
return {
|
|
1765
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1766
|
+
options: localVarRequestOptions,
|
|
1767
|
+
};
|
|
1768
|
+
}),
|
|
1626
1769
|
/**
|
|
1627
1770
|
* Retrieves a single monitor
|
|
1628
1771
|
* @summary Retrieve monitor
|
|
@@ -1723,9 +1866,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1723
1866
|
* @param {*} [options] Override http request option.
|
|
1724
1867
|
* @throws {RequiredError}
|
|
1725
1868
|
*/
|
|
1726
|
-
|
|
1869
|
+
forceReportCreationFromWatchlistMonitor: (monitorId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1727
1870
|
// verify required parameter 'monitorId' is not null or undefined
|
|
1728
|
-
(0, common_1.assertParamExists)('
|
|
1871
|
+
(0, common_1.assertParamExists)('forceReportCreationFromWatchlistMonitor', 'monitorId', monitorId);
|
|
1729
1872
|
const localVarPath = `/watchlist_monitors/{monitor_id}/new_report`
|
|
1730
1873
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
1731
1874
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2481,15 +2624,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2481
2624
|
* Update the status of the given matches
|
|
2482
2625
|
* @summary Set match status (BETA)
|
|
2483
2626
|
* @param {string} monitorId
|
|
2484
|
-
* @param {
|
|
2627
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
2485
2628
|
* @param {*} [options] Override http request option.
|
|
2486
2629
|
* @throws {RequiredError}
|
|
2487
2630
|
*/
|
|
2488
|
-
|
|
2631
|
+
updateWatchlistMonitorMatch: (monitorId, watchlistMonitorMatchesUpdater, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2489
2632
|
// verify required parameter 'monitorId' is not null or undefined
|
|
2490
|
-
(0, common_1.assertParamExists)('
|
|
2491
|
-
// verify required parameter '
|
|
2492
|
-
(0, common_1.assertParamExists)('
|
|
2633
|
+
(0, common_1.assertParamExists)('updateWatchlistMonitorMatch', 'monitorId', monitorId);
|
|
2634
|
+
// verify required parameter 'watchlistMonitorMatchesUpdater' is not null or undefined
|
|
2635
|
+
(0, common_1.assertParamExists)('updateWatchlistMonitorMatch', 'watchlistMonitorMatchesUpdater', watchlistMonitorMatchesUpdater);
|
|
2493
2636
|
const localVarPath = `/watchlist_monitors/{monitor_id}/matches`
|
|
2494
2637
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
2495
2638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2507,7 +2650,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2507
2650
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2508
2651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2509
2652
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2510
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
2653
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(watchlistMonitorMatchesUpdater, localVarRequestOptions, configuration);
|
|
2511
2654
|
return {
|
|
2512
2655
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2513
2656
|
options: localVarRequestOptions,
|
|
@@ -2554,7 +2697,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2554
2697
|
* @summary Upload a document
|
|
2555
2698
|
* @param {string} type The type of document
|
|
2556
2699
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
2557
|
-
* @param {
|
|
2700
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
2558
2701
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
2559
2702
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
2560
2703
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -2599,7 +2742,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2599
2742
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2600
2743
|
}
|
|
2601
2744
|
if (file !== undefined) {
|
|
2602
|
-
localVarFormParams.append('file', file);
|
|
2745
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2603
2746
|
}
|
|
2604
2747
|
if (validateImageQuality !== undefined) {
|
|
2605
2748
|
localVarFormParams.append('validate_image_quality', String(validateImageQuality));
|
|
@@ -2621,7 +2764,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2621
2764
|
* 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
2765
|
* @summary Upload ID photo
|
|
2623
2766
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
2624
|
-
* @param {
|
|
2767
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2625
2768
|
* @param {*} [options] Override http request option.
|
|
2626
2769
|
* @throws {RequiredError}
|
|
2627
2770
|
*/
|
|
@@ -2643,7 +2786,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2643
2786
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2644
2787
|
}
|
|
2645
2788
|
if (file !== undefined) {
|
|
2646
|
-
localVarFormParams.append('file', file);
|
|
2789
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2647
2790
|
}
|
|
2648
2791
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2649
2792
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2659,7 +2802,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2659
2802
|
* 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
2803
|
* @summary Upload live photo
|
|
2661
2804
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
2662
|
-
* @param {
|
|
2805
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2663
2806
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
2664
2807
|
* @param {*} [options] Override http request option.
|
|
2665
2808
|
* @throws {RequiredError}
|
|
@@ -2682,7 +2825,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2682
2825
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2683
2826
|
}
|
|
2684
2827
|
if (file !== undefined) {
|
|
2685
|
-
localVarFormParams.append('file', file);
|
|
2828
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2686
2829
|
}
|
|
2687
2830
|
if (advancedValidation !== undefined) {
|
|
2688
2831
|
localVarFormParams.append('advanced_validation', String(advancedValidation));
|
|
@@ -2728,14 +2871,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
2728
2871
|
* @summary Complete Task
|
|
2729
2872
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
2730
2873
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
2731
|
-
* @param {
|
|
2874
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
2732
2875
|
* @param {*} [options] Override http request option.
|
|
2733
2876
|
* @throws {RequiredError}
|
|
2734
2877
|
*/
|
|
2735
|
-
completeTask(workflowRunId, taskId,
|
|
2878
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
2736
2879
|
var _a, _b, _c;
|
|
2737
2880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2738
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId,
|
|
2881
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId, completeTaskBuilder, options);
|
|
2739
2882
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2740
2883
|
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
2884
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2773,17 +2916,33 @@ const DefaultApiFp = function (configuration) {
|
|
|
2773
2916
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2774
2917
|
});
|
|
2775
2918
|
},
|
|
2919
|
+
/**
|
|
2920
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
2921
|
+
* @summary Create Timeline File for Workflow Run
|
|
2922
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
2923
|
+
* @param {*} [options] Override http request option.
|
|
2924
|
+
* @throws {RequiredError}
|
|
2925
|
+
*/
|
|
2926
|
+
createTimelineFile(workflowRunId, options) {
|
|
2927
|
+
var _a, _b, _c;
|
|
2928
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2929
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTimelineFile(workflowRunId, options);
|
|
2930
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2931
|
+
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;
|
|
2932
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2933
|
+
});
|
|
2934
|
+
},
|
|
2776
2935
|
/**
|
|
2777
2936
|
* Creates a new monitor for the applicant
|
|
2778
2937
|
* @summary Create monitor
|
|
2779
|
-
* @param {
|
|
2938
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
2780
2939
|
* @param {*} [options] Override http request option.
|
|
2781
2940
|
* @throws {RequiredError}
|
|
2782
2941
|
*/
|
|
2783
|
-
createWatchlistMonitor(
|
|
2942
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
2784
2943
|
var _a, _b, _c;
|
|
2785
2944
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2786
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(
|
|
2945
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(watchlistMonitorBuilder, options);
|
|
2787
2946
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2788
2947
|
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
2948
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3206,6 +3365,23 @@ const DefaultApiFp = function (configuration) {
|
|
|
3206
3365
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3207
3366
|
});
|
|
3208
3367
|
},
|
|
3368
|
+
/**
|
|
3369
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
3370
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
3371
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3372
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
3373
|
+
* @param {*} [options] Override http request option.
|
|
3374
|
+
* @throws {RequiredError}
|
|
3375
|
+
*/
|
|
3376
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
3377
|
+
var _a, _b, _c;
|
|
3378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3379
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.findTimelineFile(workflowRunId, timelineFileId, options);
|
|
3380
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3381
|
+
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;
|
|
3382
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3383
|
+
});
|
|
3384
|
+
},
|
|
3209
3385
|
/**
|
|
3210
3386
|
* Retrieves a single monitor
|
|
3211
3387
|
* @summary Retrieve monitor
|
|
@@ -3261,12 +3437,12 @@ const DefaultApiFp = function (configuration) {
|
|
|
3261
3437
|
* @param {*} [options] Override http request option.
|
|
3262
3438
|
* @throws {RequiredError}
|
|
3263
3439
|
*/
|
|
3264
|
-
|
|
3440
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
3265
3441
|
var _a, _b, _c;
|
|
3266
3442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3267
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.forceReportCreationFromWatchlistMonitor(monitorId, options);
|
|
3268
3444
|
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.
|
|
3445
|
+
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
3446
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3271
3447
|
});
|
|
3272
3448
|
},
|
|
@@ -3632,16 +3808,16 @@ const DefaultApiFp = function (configuration) {
|
|
|
3632
3808
|
* Update the status of the given matches
|
|
3633
3809
|
* @summary Set match status (BETA)
|
|
3634
3810
|
* @param {string} monitorId
|
|
3635
|
-
* @param {
|
|
3811
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
3636
3812
|
* @param {*} [options] Override http request option.
|
|
3637
3813
|
* @throws {RequiredError}
|
|
3638
3814
|
*/
|
|
3639
|
-
|
|
3815
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
3640
3816
|
var _a, _b, _c;
|
|
3641
3817
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3642
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3818
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options);
|
|
3643
3819
|
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.
|
|
3820
|
+
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
3821
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3646
3822
|
});
|
|
3647
3823
|
},
|
|
@@ -3667,7 +3843,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3667
3843
|
* @summary Upload a document
|
|
3668
3844
|
* @param {string} type The type of document
|
|
3669
3845
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
3670
|
-
* @param {
|
|
3846
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
3671
3847
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
3672
3848
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
3673
3849
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -3689,7 +3865,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3689
3865
|
* 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
3866
|
* @summary Upload ID photo
|
|
3691
3867
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
3692
|
-
* @param {
|
|
3868
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3693
3869
|
* @param {*} [options] Override http request option.
|
|
3694
3870
|
* @throws {RequiredError}
|
|
3695
3871
|
*/
|
|
@@ -3706,7 +3882,7 @@ const DefaultApiFp = function (configuration) {
|
|
|
3706
3882
|
* 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
3883
|
* @summary Upload live photo
|
|
3708
3884
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
3709
|
-
* @param {
|
|
3885
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3710
3886
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
3711
3887
|
* @param {*} [options] Override http request option.
|
|
3712
3888
|
* @throws {RequiredError}
|
|
@@ -3745,12 +3921,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3745
3921
|
* @summary Complete Task
|
|
3746
3922
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
3747
3923
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
3748
|
-
* @param {
|
|
3924
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
3749
3925
|
* @param {*} [options] Override http request option.
|
|
3750
3926
|
* @throws {RequiredError}
|
|
3751
3927
|
*/
|
|
3752
|
-
completeTask(workflowRunId, taskId,
|
|
3753
|
-
return localVarFp.completeTask(workflowRunId, taskId,
|
|
3928
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
3929
|
+
return localVarFp.completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(axios, basePath));
|
|
3754
3930
|
},
|
|
3755
3931
|
/**
|
|
3756
3932
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -3772,15 +3948,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3772
3948
|
createCheck(checkBuilder, options) {
|
|
3773
3949
|
return localVarFp.createCheck(checkBuilder, options).then((request) => request(axios, basePath));
|
|
3774
3950
|
},
|
|
3951
|
+
/**
|
|
3952
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
3953
|
+
* @summary Create Timeline File for Workflow Run
|
|
3954
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3955
|
+
* @param {*} [options] Override http request option.
|
|
3956
|
+
* @throws {RequiredError}
|
|
3957
|
+
*/
|
|
3958
|
+
createTimelineFile(workflowRunId, options) {
|
|
3959
|
+
return localVarFp.createTimelineFile(workflowRunId, options).then((request) => request(axios, basePath));
|
|
3960
|
+
},
|
|
3775
3961
|
/**
|
|
3776
3962
|
* Creates a new monitor for the applicant
|
|
3777
3963
|
* @summary Create monitor
|
|
3778
|
-
* @param {
|
|
3964
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
3779
3965
|
* @param {*} [options] Override http request option.
|
|
3780
3966
|
* @throws {RequiredError}
|
|
3781
3967
|
*/
|
|
3782
|
-
createWatchlistMonitor(
|
|
3783
|
-
return localVarFp.createWatchlistMonitor(
|
|
3968
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
3969
|
+
return localVarFp.createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(axios, basePath));
|
|
3784
3970
|
},
|
|
3785
3971
|
/**
|
|
3786
3972
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4043,6 +4229,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4043
4229
|
findTask(workflowRunId, taskId, options) {
|
|
4044
4230
|
return localVarFp.findTask(workflowRunId, taskId, options).then((request) => request(axios, basePath));
|
|
4045
4231
|
},
|
|
4232
|
+
/**
|
|
4233
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4234
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4235
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4236
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4237
|
+
* @param {*} [options] Override http request option.
|
|
4238
|
+
* @throws {RequiredError}
|
|
4239
|
+
*/
|
|
4240
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4241
|
+
return localVarFp.findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(axios, basePath));
|
|
4242
|
+
},
|
|
4046
4243
|
/**
|
|
4047
4244
|
* Retrieves a single monitor
|
|
4048
4245
|
* @summary Retrieve monitor
|
|
@@ -4080,8 +4277,8 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4080
4277
|
* @param {*} [options] Override http request option.
|
|
4081
4278
|
* @throws {RequiredError}
|
|
4082
4279
|
*/
|
|
4083
|
-
|
|
4084
|
-
return localVarFp.
|
|
4280
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4281
|
+
return localVarFp.forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(axios, basePath));
|
|
4085
4282
|
},
|
|
4086
4283
|
/**
|
|
4087
4284
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -4313,12 +4510,12 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4313
4510
|
* Update the status of the given matches
|
|
4314
4511
|
* @summary Set match status (BETA)
|
|
4315
4512
|
* @param {string} monitorId
|
|
4316
|
-
* @param {
|
|
4513
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
4317
4514
|
* @param {*} [options] Override http request option.
|
|
4318
4515
|
* @throws {RequiredError}
|
|
4319
4516
|
*/
|
|
4320
|
-
|
|
4321
|
-
return localVarFp.
|
|
4517
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
4518
|
+
return localVarFp.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(axios, basePath));
|
|
4322
4519
|
},
|
|
4323
4520
|
/**
|
|
4324
4521
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -4336,7 +4533,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4336
4533
|
* @summary Upload a document
|
|
4337
4534
|
* @param {string} type The type of document
|
|
4338
4535
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
4339
|
-
* @param {
|
|
4536
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
4340
4537
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
4341
4538
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
4342
4539
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -4352,7 +4549,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4352
4549
|
* 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
4550
|
* @summary Upload ID photo
|
|
4354
4551
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
4355
|
-
* @param {
|
|
4552
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4356
4553
|
* @param {*} [options] Override http request option.
|
|
4357
4554
|
* @throws {RequiredError}
|
|
4358
4555
|
*/
|
|
@@ -4363,7 +4560,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4363
4560
|
* 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
4561
|
* @summary Upload live photo
|
|
4365
4562
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
4366
|
-
* @param {
|
|
4563
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4367
4564
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
4368
4565
|
* @param {*} [options] Override http request option.
|
|
4369
4566
|
* @throws {RequiredError}
|
|
@@ -4397,13 +4594,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4397
4594
|
* @summary Complete Task
|
|
4398
4595
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
4399
4596
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
4400
|
-
* @param {
|
|
4597
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
4401
4598
|
* @param {*} [options] Override http request option.
|
|
4402
4599
|
* @throws {RequiredError}
|
|
4403
4600
|
* @memberof DefaultApi
|
|
4404
4601
|
*/
|
|
4405
|
-
completeTask(workflowRunId, taskId,
|
|
4406
|
-
return (0, exports.DefaultApiFp)(this.configuration).completeTask(workflowRunId, taskId,
|
|
4602
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
4603
|
+
return (0, exports.DefaultApiFp)(this.configuration).completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4407
4604
|
}
|
|
4408
4605
|
/**
|
|
4409
4606
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -4427,16 +4624,27 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4427
4624
|
createCheck(checkBuilder, options) {
|
|
4428
4625
|
return (0, exports.DefaultApiFp)(this.configuration).createCheck(checkBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4429
4626
|
}
|
|
4627
|
+
/**
|
|
4628
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
4629
|
+
* @summary Create Timeline File for Workflow Run
|
|
4630
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4631
|
+
* @param {*} [options] Override http request option.
|
|
4632
|
+
* @throws {RequiredError}
|
|
4633
|
+
* @memberof DefaultApi
|
|
4634
|
+
*/
|
|
4635
|
+
createTimelineFile(workflowRunId, options) {
|
|
4636
|
+
return (0, exports.DefaultApiFp)(this.configuration).createTimelineFile(workflowRunId, options).then((request) => request(this.axios, this.basePath));
|
|
4637
|
+
}
|
|
4430
4638
|
/**
|
|
4431
4639
|
* Creates a new monitor for the applicant
|
|
4432
4640
|
* @summary Create monitor
|
|
4433
|
-
* @param {
|
|
4641
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
4434
4642
|
* @param {*} [options] Override http request option.
|
|
4435
4643
|
* @throws {RequiredError}
|
|
4436
4644
|
* @memberof DefaultApi
|
|
4437
4645
|
*/
|
|
4438
|
-
createWatchlistMonitor(
|
|
4439
|
-
return (0, exports.DefaultApiFp)(this.configuration).createWatchlistMonitor(
|
|
4646
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
4647
|
+
return (0, exports.DefaultApiFp)(this.configuration).createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4440
4648
|
}
|
|
4441
4649
|
/**
|
|
4442
4650
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4725,6 +4933,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4725
4933
|
findTask(workflowRunId, taskId, options) {
|
|
4726
4934
|
return (0, exports.DefaultApiFp)(this.configuration).findTask(workflowRunId, taskId, options).then((request) => request(this.axios, this.basePath));
|
|
4727
4935
|
}
|
|
4936
|
+
/**
|
|
4937
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4938
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4939
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4940
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4941
|
+
* @param {*} [options] Override http request option.
|
|
4942
|
+
* @throws {RequiredError}
|
|
4943
|
+
* @memberof DefaultApi
|
|
4944
|
+
*/
|
|
4945
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4946
|
+
return (0, exports.DefaultApiFp)(this.configuration).findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(this.axios, this.basePath));
|
|
4947
|
+
}
|
|
4728
4948
|
/**
|
|
4729
4949
|
* Retrieves a single monitor
|
|
4730
4950
|
* @summary Retrieve monitor
|
|
@@ -4766,8 +4986,8 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
4766
4986
|
* @throws {RequiredError}
|
|
4767
4987
|
* @memberof DefaultApi
|
|
4768
4988
|
*/
|
|
4769
|
-
|
|
4770
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
4989
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4990
|
+
return (0, exports.DefaultApiFp)(this.configuration).forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(this.axios, this.basePath));
|
|
4771
4991
|
}
|
|
4772
4992
|
/**
|
|
4773
4993
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -5021,13 +5241,13 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5021
5241
|
* Update the status of the given matches
|
|
5022
5242
|
* @summary Set match status (BETA)
|
|
5023
5243
|
* @param {string} monitorId
|
|
5024
|
-
* @param {
|
|
5244
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
5025
5245
|
* @param {*} [options] Override http request option.
|
|
5026
5246
|
* @throws {RequiredError}
|
|
5027
5247
|
* @memberof DefaultApi
|
|
5028
5248
|
*/
|
|
5029
|
-
|
|
5030
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
5249
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
5250
|
+
return (0, exports.DefaultApiFp)(this.configuration).updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(this.axios, this.basePath));
|
|
5031
5251
|
}
|
|
5032
5252
|
/**
|
|
5033
5253
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -5046,7 +5266,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5046
5266
|
* @summary Upload a document
|
|
5047
5267
|
* @param {string} type The type of document
|
|
5048
5268
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
5049
|
-
* @param {
|
|
5269
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
5050
5270
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
5051
5271
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
5052
5272
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -5063,7 +5283,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5063
5283
|
* 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
5284
|
* @summary Upload ID photo
|
|
5065
5285
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
5066
|
-
* @param {
|
|
5286
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5067
5287
|
* @param {*} [options] Override http request option.
|
|
5068
5288
|
* @throws {RequiredError}
|
|
5069
5289
|
* @memberof DefaultApi
|
|
@@ -5075,7 +5295,7 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
5075
5295
|
* 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
5296
|
* @summary Upload live photo
|
|
5077
5297
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
5078
|
-
* @param {
|
|
5298
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5079
5299
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
5080
5300
|
* @param {*} [options] Override http request option.
|
|
5081
5301
|
* @throws {RequiredError}
|