@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/esm/api.js
CHANGED
|
@@ -29,6 +29,24 @@ import { URL } from 'url';
|
|
|
29
29
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
32
|
+
import { FileTransfer } from './file-transfer';
|
|
33
|
+
import { AxiosHeaders } from 'axios';
|
|
34
|
+
globalAxios.interceptors.response.use((response) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
if (response.headers instanceof AxiosHeaders && response.headers['content-type']) {
|
|
36
|
+
if (!response.headers['content-type'].toString().includes('application/json')) {
|
|
37
|
+
const contentDisposition = response.headers['content-disposition'];
|
|
38
|
+
var filename = "";
|
|
39
|
+
if (contentDisposition && contentDisposition != "") {
|
|
40
|
+
const matcher = contentDisposition.match(/filename=['\"]?([^'\"\s]+)['\"]?/);
|
|
41
|
+
if (matcher != null) {
|
|
42
|
+
filename = matcher[1].replace(/.*[/\\\\]/g, "");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
response.data = new FileTransfer(response.data, filename);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return response;
|
|
49
|
+
}));
|
|
32
50
|
export const CheckStatusEnum = {
|
|
33
51
|
InProgress: 'in_progress',
|
|
34
52
|
AwaitingApplicant: 'awaiting_applicant',
|
|
@@ -360,6 +378,30 @@ export const DocumentSideEnum = {
|
|
|
360
378
|
Back: 'back',
|
|
361
379
|
UnknownDefaultOpenApi: '11184809'
|
|
362
380
|
};
|
|
381
|
+
export const DocumentPropertiesNistIdentityEvidenceStrengthEnum = {
|
|
382
|
+
Superior: 'superior',
|
|
383
|
+
Strong: 'strong',
|
|
384
|
+
Fair: 'fair',
|
|
385
|
+
Weak: 'weak',
|
|
386
|
+
Unacceptable: 'unacceptable',
|
|
387
|
+
UnspecifiedIdentityEvidenceStrength: 'unspecified_identity_evidence_strength',
|
|
388
|
+
UnknownDefaultOpenApi: '11184809'
|
|
389
|
+
};
|
|
390
|
+
export const DocumentPropertiesHasIssuanceConfirmationEnum = {
|
|
391
|
+
True: 'true',
|
|
392
|
+
False: 'false',
|
|
393
|
+
Unspecified: 'unspecified',
|
|
394
|
+
UnknownDefaultOpenApi: '11184809'
|
|
395
|
+
};
|
|
396
|
+
export const DocumentPropertiesSecurityTierEnum = {
|
|
397
|
+
Tier1: 'tier_1',
|
|
398
|
+
Tier2: 'tier_2',
|
|
399
|
+
Tier3: 'tier_3',
|
|
400
|
+
Tier4: 'tier_4',
|
|
401
|
+
Tier5: 'tier_5',
|
|
402
|
+
UnspecifiedSecurityTier: 'unspecified_security_tier',
|
|
403
|
+
UnknownDefaultOpenApi: '11184809'
|
|
404
|
+
};
|
|
363
405
|
export const DocumentSharedFileTypeEnum = {
|
|
364
406
|
Jpg: 'jpg',
|
|
365
407
|
Png: 'png',
|
|
@@ -404,6 +446,30 @@ export const DocumentTypes = {
|
|
|
404
446
|
InternationalDrivingLicence: 'international_driving_licence',
|
|
405
447
|
UnknownDefaultOpenApi: '11184809'
|
|
406
448
|
};
|
|
449
|
+
export const DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = {
|
|
450
|
+
Superior: 'superior',
|
|
451
|
+
Strong: 'strong',
|
|
452
|
+
Fair: 'fair',
|
|
453
|
+
Weak: 'weak',
|
|
454
|
+
Unacceptable: 'unacceptable',
|
|
455
|
+
UnspecifiedIdentityEvidenceStrength: 'unspecified_identity_evidence_strength',
|
|
456
|
+
UnknownDefaultOpenApi: '11184809'
|
|
457
|
+
};
|
|
458
|
+
export const DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = {
|
|
459
|
+
True: 'true',
|
|
460
|
+
False: 'false',
|
|
461
|
+
Unspecified: 'unspecified',
|
|
462
|
+
UnknownDefaultOpenApi: '11184809'
|
|
463
|
+
};
|
|
464
|
+
export const DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = {
|
|
465
|
+
Tier1: 'tier_1',
|
|
466
|
+
Tier2: 'tier_2',
|
|
467
|
+
Tier3: 'tier_3',
|
|
468
|
+
Tier4: 'tier_4',
|
|
469
|
+
Tier5: 'tier_5',
|
|
470
|
+
UnspecifiedSecurityTier: 'unspecified_security_tier',
|
|
471
|
+
UnknownDefaultOpenApi: '11184809'
|
|
472
|
+
};
|
|
407
473
|
export const ExtractionDocumentClassificationSubtypeEnum = {
|
|
408
474
|
Full: 'full',
|
|
409
475
|
NotFull: 'not_full',
|
|
@@ -577,6 +643,16 @@ export const WatchlistMonitorReportNameEnum = {
|
|
|
577
643
|
Aml: 'watchlist_aml',
|
|
578
644
|
UnknownDefaultOpenApi: '11184809'
|
|
579
645
|
};
|
|
646
|
+
export const WatchlistMonitorBuilderReportNameEnum = {
|
|
647
|
+
Standard: 'watchlist_standard',
|
|
648
|
+
Aml: 'watchlist_aml',
|
|
649
|
+
UnknownDefaultOpenApi: '11184809'
|
|
650
|
+
};
|
|
651
|
+
export const WatchlistMonitorSharedReportNameEnum = {
|
|
652
|
+
Standard: 'watchlist_standard',
|
|
653
|
+
Aml: 'watchlist_aml',
|
|
654
|
+
UnknownDefaultOpenApi: '11184809'
|
|
655
|
+
};
|
|
580
656
|
/**
|
|
581
657
|
*
|
|
582
658
|
* @export
|
|
@@ -674,17 +750,17 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
674
750
|
* @summary Complete Task
|
|
675
751
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
676
752
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
677
|
-
* @param {
|
|
753
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
678
754
|
* @param {*} [options] Override http request option.
|
|
679
755
|
* @throws {RequiredError}
|
|
680
756
|
*/
|
|
681
|
-
completeTask: (workflowRunId, taskId,
|
|
757
|
+
completeTask: (workflowRunId, taskId, completeTaskBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
682
758
|
// verify required parameter 'workflowRunId' is not null or undefined
|
|
683
759
|
assertParamExists('completeTask', 'workflowRunId', workflowRunId);
|
|
684
760
|
// verify required parameter 'taskId' is not null or undefined
|
|
685
761
|
assertParamExists('completeTask', 'taskId', taskId);
|
|
686
|
-
// verify required parameter '
|
|
687
|
-
assertParamExists('completeTask', '
|
|
762
|
+
// verify required parameter 'completeTaskBuilder' is not null or undefined
|
|
763
|
+
assertParamExists('completeTask', 'completeTaskBuilder', completeTaskBuilder);
|
|
688
764
|
const localVarPath = `/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete`
|
|
689
765
|
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
690
766
|
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
@@ -703,7 +779,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
703
779
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
704
780
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
705
781
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
706
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
782
|
+
localVarRequestOptions.data = serializeDataIfNeeded(completeTaskBuilder, localVarRequestOptions, configuration);
|
|
707
783
|
return {
|
|
708
784
|
url: toPathString(localVarUrlObj),
|
|
709
785
|
options: localVarRequestOptions,
|
|
@@ -773,16 +849,47 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
773
849
|
options: localVarRequestOptions,
|
|
774
850
|
};
|
|
775
851
|
}),
|
|
852
|
+
/**
|
|
853
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
854
|
+
* @summary Create Timeline File for Workflow Run
|
|
855
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
createTimelineFile: (workflowRunId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
860
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
861
|
+
assertParamExists('createTimelineFile', 'workflowRunId', workflowRunId);
|
|
862
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file`
|
|
863
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)));
|
|
864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
866
|
+
let baseOptions;
|
|
867
|
+
if (configuration) {
|
|
868
|
+
baseOptions = configuration.baseOptions;
|
|
869
|
+
}
|
|
870
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
871
|
+
const localVarHeaderParameter = {};
|
|
872
|
+
const localVarQueryParameter = {};
|
|
873
|
+
// authentication Token required
|
|
874
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
875
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
877
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
878
|
+
return {
|
|
879
|
+
url: toPathString(localVarUrlObj),
|
|
880
|
+
options: localVarRequestOptions,
|
|
881
|
+
};
|
|
882
|
+
}),
|
|
776
883
|
/**
|
|
777
884
|
* Creates a new monitor for the applicant
|
|
778
885
|
* @summary Create monitor
|
|
779
|
-
* @param {
|
|
886
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
780
887
|
* @param {*} [options] Override http request option.
|
|
781
888
|
* @throws {RequiredError}
|
|
782
889
|
*/
|
|
783
|
-
createWatchlistMonitor: (
|
|
784
|
-
// verify required parameter '
|
|
785
|
-
assertParamExists('createWatchlistMonitor', '
|
|
890
|
+
createWatchlistMonitor: (watchlistMonitorBuilder, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
891
|
+
// verify required parameter 'watchlistMonitorBuilder' is not null or undefined
|
|
892
|
+
assertParamExists('createWatchlistMonitor', 'watchlistMonitorBuilder', watchlistMonitorBuilder);
|
|
786
893
|
const localVarPath = `/watchlist_monitors`;
|
|
787
894
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
788
895
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -799,7 +906,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
799
906
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
800
907
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
801
908
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
802
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
909
|
+
localVarRequestOptions.data = serializeDataIfNeeded(watchlistMonitorBuilder, localVarRequestOptions, configuration);
|
|
803
910
|
return {
|
|
804
911
|
url: toPathString(localVarUrlObj),
|
|
805
912
|
options: localVarRequestOptions,
|
|
@@ -1620,6 +1727,41 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1620
1727
|
options: localVarRequestOptions,
|
|
1621
1728
|
};
|
|
1622
1729
|
}),
|
|
1730
|
+
/**
|
|
1731
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
1732
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
1733
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
1734
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
1735
|
+
* @param {*} [options] Override http request option.
|
|
1736
|
+
* @throws {RequiredError}
|
|
1737
|
+
*/
|
|
1738
|
+
findTimelineFile: (workflowRunId, timelineFileId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1739
|
+
// verify required parameter 'workflowRunId' is not null or undefined
|
|
1740
|
+
assertParamExists('findTimelineFile', 'workflowRunId', workflowRunId);
|
|
1741
|
+
// verify required parameter 'timelineFileId' is not null or undefined
|
|
1742
|
+
assertParamExists('findTimelineFile', 'timelineFileId', timelineFileId);
|
|
1743
|
+
const localVarPath = `/workflow_runs/{workflow_run_id}/timeline_file/{timeline_file_id}`
|
|
1744
|
+
.replace(`{${"workflow_run_id"}}`, encodeURIComponent(String(workflowRunId)))
|
|
1745
|
+
.replace(`{${"timeline_file_id"}}`, encodeURIComponent(String(timelineFileId)));
|
|
1746
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1747
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1748
|
+
let baseOptions;
|
|
1749
|
+
if (configuration) {
|
|
1750
|
+
baseOptions = configuration.baseOptions;
|
|
1751
|
+
}
|
|
1752
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1753
|
+
const localVarHeaderParameter = {};
|
|
1754
|
+
const localVarQueryParameter = {};
|
|
1755
|
+
// authentication Token required
|
|
1756
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1759
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1760
|
+
return {
|
|
1761
|
+
url: toPathString(localVarUrlObj),
|
|
1762
|
+
options: localVarRequestOptions,
|
|
1763
|
+
};
|
|
1764
|
+
}),
|
|
1623
1765
|
/**
|
|
1624
1766
|
* Retrieves a single monitor
|
|
1625
1767
|
* @summary Retrieve monitor
|
|
@@ -1720,9 +1862,9 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
1720
1862
|
* @param {*} [options] Override http request option.
|
|
1721
1863
|
* @throws {RequiredError}
|
|
1722
1864
|
*/
|
|
1723
|
-
|
|
1865
|
+
forceReportCreationFromWatchlistMonitor: (monitorId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1724
1866
|
// verify required parameter 'monitorId' is not null or undefined
|
|
1725
|
-
assertParamExists('
|
|
1867
|
+
assertParamExists('forceReportCreationFromWatchlistMonitor', 'monitorId', monitorId);
|
|
1726
1868
|
const localVarPath = `/watchlist_monitors/{monitor_id}/new_report`
|
|
1727
1869
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
1728
1870
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2478,15 +2620,15 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2478
2620
|
* Update the status of the given matches
|
|
2479
2621
|
* @summary Set match status (BETA)
|
|
2480
2622
|
* @param {string} monitorId
|
|
2481
|
-
* @param {
|
|
2623
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
2482
2624
|
* @param {*} [options] Override http request option.
|
|
2483
2625
|
* @throws {RequiredError}
|
|
2484
2626
|
*/
|
|
2485
|
-
|
|
2627
|
+
updateWatchlistMonitorMatch: (monitorId, watchlistMonitorMatchesUpdater, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2486
2628
|
// verify required parameter 'monitorId' is not null or undefined
|
|
2487
|
-
assertParamExists('
|
|
2488
|
-
// verify required parameter '
|
|
2489
|
-
assertParamExists('
|
|
2629
|
+
assertParamExists('updateWatchlistMonitorMatch', 'monitorId', monitorId);
|
|
2630
|
+
// verify required parameter 'watchlistMonitorMatchesUpdater' is not null or undefined
|
|
2631
|
+
assertParamExists('updateWatchlistMonitorMatch', 'watchlistMonitorMatchesUpdater', watchlistMonitorMatchesUpdater);
|
|
2490
2632
|
const localVarPath = `/watchlist_monitors/{monitor_id}/matches`
|
|
2491
2633
|
.replace(`{${"monitor_id"}}`, encodeURIComponent(String(monitorId)));
|
|
2492
2634
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -2504,7 +2646,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2504
2646
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2505
2647
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2506
2648
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2507
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
2649
|
+
localVarRequestOptions.data = serializeDataIfNeeded(watchlistMonitorMatchesUpdater, localVarRequestOptions, configuration);
|
|
2508
2650
|
return {
|
|
2509
2651
|
url: toPathString(localVarUrlObj),
|
|
2510
2652
|
options: localVarRequestOptions,
|
|
@@ -2551,7 +2693,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2551
2693
|
* @summary Upload a document
|
|
2552
2694
|
* @param {string} type The type of document
|
|
2553
2695
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
2554
|
-
* @param {
|
|
2696
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
2555
2697
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
2556
2698
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
2557
2699
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -2596,7 +2738,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2596
2738
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2597
2739
|
}
|
|
2598
2740
|
if (file !== undefined) {
|
|
2599
|
-
localVarFormParams.append('file', file);
|
|
2741
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2600
2742
|
}
|
|
2601
2743
|
if (validateImageQuality !== undefined) {
|
|
2602
2744
|
localVarFormParams.append('validate_image_quality', String(validateImageQuality));
|
|
@@ -2618,7 +2760,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2618
2760
|
* 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.
|
|
2619
2761
|
* @summary Upload ID photo
|
|
2620
2762
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
2621
|
-
* @param {
|
|
2763
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2622
2764
|
* @param {*} [options] Override http request option.
|
|
2623
2765
|
* @throws {RequiredError}
|
|
2624
2766
|
*/
|
|
@@ -2640,7 +2782,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2640
2782
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2641
2783
|
}
|
|
2642
2784
|
if (file !== undefined) {
|
|
2643
|
-
localVarFormParams.append('file', file);
|
|
2785
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2644
2786
|
}
|
|
2645
2787
|
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2646
2788
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2656,7 +2798,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2656
2798
|
* 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.
|
|
2657
2799
|
* @summary Upload live photo
|
|
2658
2800
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
2659
|
-
* @param {
|
|
2801
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
2660
2802
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
2661
2803
|
* @param {*} [options] Override http request option.
|
|
2662
2804
|
* @throws {RequiredError}
|
|
@@ -2679,7 +2821,7 @@ export const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
2679
2821
|
localVarFormParams.append('applicant_id', applicantId);
|
|
2680
2822
|
}
|
|
2681
2823
|
if (file !== undefined) {
|
|
2682
|
-
localVarFormParams.append('file', file);
|
|
2824
|
+
localVarFormParams.append('file', file.buffer, file.filename);
|
|
2683
2825
|
}
|
|
2684
2826
|
if (advancedValidation !== undefined) {
|
|
2685
2827
|
localVarFormParams.append('advanced_validation', String(advancedValidation));
|
|
@@ -2724,14 +2866,14 @@ export const DefaultApiFp = function (configuration) {
|
|
|
2724
2866
|
* @summary Complete Task
|
|
2725
2867
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
2726
2868
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
2727
|
-
* @param {
|
|
2869
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
2728
2870
|
* @param {*} [options] Override http request option.
|
|
2729
2871
|
* @throws {RequiredError}
|
|
2730
2872
|
*/
|
|
2731
|
-
completeTask(workflowRunId, taskId,
|
|
2873
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
2732
2874
|
var _a, _b, _c;
|
|
2733
2875
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2734
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId,
|
|
2876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.completeTask(workflowRunId, taskId, completeTaskBuilder, options);
|
|
2735
2877
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2736
2878
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.completeTask']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2737
2879
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2769,17 +2911,33 @@ export const DefaultApiFp = function (configuration) {
|
|
|
2769
2911
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2770
2912
|
});
|
|
2771
2913
|
},
|
|
2914
|
+
/**
|
|
2915
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
2916
|
+
* @summary Create Timeline File for Workflow Run
|
|
2917
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
2918
|
+
* @param {*} [options] Override http request option.
|
|
2919
|
+
* @throws {RequiredError}
|
|
2920
|
+
*/
|
|
2921
|
+
createTimelineFile(workflowRunId, options) {
|
|
2922
|
+
var _a, _b, _c;
|
|
2923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createTimelineFile(workflowRunId, options);
|
|
2925
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2926
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.createTimelineFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2927
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2928
|
+
});
|
|
2929
|
+
},
|
|
2772
2930
|
/**
|
|
2773
2931
|
* Creates a new monitor for the applicant
|
|
2774
2932
|
* @summary Create monitor
|
|
2775
|
-
* @param {
|
|
2933
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
2776
2934
|
* @param {*} [options] Override http request option.
|
|
2777
2935
|
* @throws {RequiredError}
|
|
2778
2936
|
*/
|
|
2779
|
-
createWatchlistMonitor(
|
|
2937
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
2780
2938
|
var _a, _b, _c;
|
|
2781
2939
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2782
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(
|
|
2940
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWatchlistMonitor(watchlistMonitorBuilder, options);
|
|
2783
2941
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2784
2942
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.createWatchlistMonitor']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2785
2943
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3202,6 +3360,23 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3202
3360
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3203
3361
|
});
|
|
3204
3362
|
},
|
|
3363
|
+
/**
|
|
3364
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
3365
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
3366
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3367
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
3368
|
+
* @param {*} [options] Override http request option.
|
|
3369
|
+
* @throws {RequiredError}
|
|
3370
|
+
*/
|
|
3371
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
3372
|
+
var _a, _b, _c;
|
|
3373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3374
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.findTimelineFile(workflowRunId, timelineFileId, options);
|
|
3375
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3376
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.findTimelineFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3377
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3378
|
+
});
|
|
3379
|
+
},
|
|
3205
3380
|
/**
|
|
3206
3381
|
* Retrieves a single monitor
|
|
3207
3382
|
* @summary Retrieve monitor
|
|
@@ -3257,12 +3432,12 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3257
3432
|
* @param {*} [options] Override http request option.
|
|
3258
3433
|
* @throws {RequiredError}
|
|
3259
3434
|
*/
|
|
3260
|
-
|
|
3435
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
3261
3436
|
var _a, _b, _c;
|
|
3262
3437
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3263
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3438
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.forceReportCreationFromWatchlistMonitor(monitorId, options);
|
|
3264
3439
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3265
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.
|
|
3440
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.forceReportCreationFromWatchlistMonitor']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3266
3441
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3267
3442
|
});
|
|
3268
3443
|
},
|
|
@@ -3628,16 +3803,16 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3628
3803
|
* Update the status of the given matches
|
|
3629
3804
|
* @summary Set match status (BETA)
|
|
3630
3805
|
* @param {string} monitorId
|
|
3631
|
-
* @param {
|
|
3806
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
3632
3807
|
* @param {*} [options] Override http request option.
|
|
3633
3808
|
* @throws {RequiredError}
|
|
3634
3809
|
*/
|
|
3635
|
-
|
|
3810
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
3636
3811
|
var _a, _b, _c;
|
|
3637
3812
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3638
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3813
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options);
|
|
3639
3814
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3640
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.
|
|
3815
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DefaultApi.updateWatchlistMonitorMatch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3641
3816
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3642
3817
|
});
|
|
3643
3818
|
},
|
|
@@ -3663,7 +3838,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3663
3838
|
* @summary Upload a document
|
|
3664
3839
|
* @param {string} type The type of document
|
|
3665
3840
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
3666
|
-
* @param {
|
|
3841
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
3667
3842
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
3668
3843
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
3669
3844
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -3685,7 +3860,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3685
3860
|
* 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.
|
|
3686
3861
|
* @summary Upload ID photo
|
|
3687
3862
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
3688
|
-
* @param {
|
|
3863
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3689
3864
|
* @param {*} [options] Override http request option.
|
|
3690
3865
|
* @throws {RequiredError}
|
|
3691
3866
|
*/
|
|
@@ -3702,7 +3877,7 @@ export const DefaultApiFp = function (configuration) {
|
|
|
3702
3877
|
* 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.
|
|
3703
3878
|
* @summary Upload live photo
|
|
3704
3879
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
3705
|
-
* @param {
|
|
3880
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
3706
3881
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
3707
3882
|
* @param {*} [options] Override http request option.
|
|
3708
3883
|
* @throws {RequiredError}
|
|
@@ -3740,12 +3915,12 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3740
3915
|
* @summary Complete Task
|
|
3741
3916
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
3742
3917
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
3743
|
-
* @param {
|
|
3918
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
3744
3919
|
* @param {*} [options] Override http request option.
|
|
3745
3920
|
* @throws {RequiredError}
|
|
3746
3921
|
*/
|
|
3747
|
-
completeTask(workflowRunId, taskId,
|
|
3748
|
-
return localVarFp.completeTask(workflowRunId, taskId,
|
|
3922
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
3923
|
+
return localVarFp.completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(axios, basePath));
|
|
3749
3924
|
},
|
|
3750
3925
|
/**
|
|
3751
3926
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -3767,15 +3942,25 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
3767
3942
|
createCheck(checkBuilder, options) {
|
|
3768
3943
|
return localVarFp.createCheck(checkBuilder, options).then((request) => request(axios, basePath));
|
|
3769
3944
|
},
|
|
3945
|
+
/**
|
|
3946
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
3947
|
+
* @summary Create Timeline File for Workflow Run
|
|
3948
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
3949
|
+
* @param {*} [options] Override http request option.
|
|
3950
|
+
* @throws {RequiredError}
|
|
3951
|
+
*/
|
|
3952
|
+
createTimelineFile(workflowRunId, options) {
|
|
3953
|
+
return localVarFp.createTimelineFile(workflowRunId, options).then((request) => request(axios, basePath));
|
|
3954
|
+
},
|
|
3770
3955
|
/**
|
|
3771
3956
|
* Creates a new monitor for the applicant
|
|
3772
3957
|
* @summary Create monitor
|
|
3773
|
-
* @param {
|
|
3958
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
3774
3959
|
* @param {*} [options] Override http request option.
|
|
3775
3960
|
* @throws {RequiredError}
|
|
3776
3961
|
*/
|
|
3777
|
-
createWatchlistMonitor(
|
|
3778
|
-
return localVarFp.createWatchlistMonitor(
|
|
3962
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
3963
|
+
return localVarFp.createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(axios, basePath));
|
|
3779
3964
|
},
|
|
3780
3965
|
/**
|
|
3781
3966
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4038,6 +4223,17 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4038
4223
|
findTask(workflowRunId, taskId, options) {
|
|
4039
4224
|
return localVarFp.findTask(workflowRunId, taskId, options).then((request) => request(axios, basePath));
|
|
4040
4225
|
},
|
|
4226
|
+
/**
|
|
4227
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4228
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4229
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4230
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4231
|
+
* @param {*} [options] Override http request option.
|
|
4232
|
+
* @throws {RequiredError}
|
|
4233
|
+
*/
|
|
4234
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4235
|
+
return localVarFp.findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(axios, basePath));
|
|
4236
|
+
},
|
|
4041
4237
|
/**
|
|
4042
4238
|
* Retrieves a single monitor
|
|
4043
4239
|
* @summary Retrieve monitor
|
|
@@ -4075,8 +4271,8 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4075
4271
|
* @param {*} [options] Override http request option.
|
|
4076
4272
|
* @throws {RequiredError}
|
|
4077
4273
|
*/
|
|
4078
|
-
|
|
4079
|
-
return localVarFp.
|
|
4274
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4275
|
+
return localVarFp.forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(axios, basePath));
|
|
4080
4276
|
},
|
|
4081
4277
|
/**
|
|
4082
4278
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -4308,12 +4504,12 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4308
4504
|
* Update the status of the given matches
|
|
4309
4505
|
* @summary Set match status (BETA)
|
|
4310
4506
|
* @param {string} monitorId
|
|
4311
|
-
* @param {
|
|
4507
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
4312
4508
|
* @param {*} [options] Override http request option.
|
|
4313
4509
|
* @throws {RequiredError}
|
|
4314
4510
|
*/
|
|
4315
|
-
|
|
4316
|
-
return localVarFp.
|
|
4511
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
4512
|
+
return localVarFp.updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(axios, basePath));
|
|
4317
4513
|
},
|
|
4318
4514
|
/**
|
|
4319
4515
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -4331,7 +4527,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4331
4527
|
* @summary Upload a document
|
|
4332
4528
|
* @param {string} type The type of document
|
|
4333
4529
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
4334
|
-
* @param {
|
|
4530
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
4335
4531
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
4336
4532
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
4337
4533
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -4347,7 +4543,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4347
4543
|
* 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.
|
|
4348
4544
|
* @summary Upload ID photo
|
|
4349
4545
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
4350
|
-
* @param {
|
|
4546
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4351
4547
|
* @param {*} [options] Override http request option.
|
|
4352
4548
|
* @throws {RequiredError}
|
|
4353
4549
|
*/
|
|
@@ -4358,7 +4554,7 @@ export const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
4358
4554
|
* 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.
|
|
4359
4555
|
* @summary Upload live photo
|
|
4360
4556
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
4361
|
-
* @param {
|
|
4557
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
4362
4558
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
4363
4559
|
* @param {*} [options] Override http request option.
|
|
4364
4560
|
* @throws {RequiredError}
|
|
@@ -4391,13 +4587,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
4391
4587
|
* @summary Complete Task
|
|
4392
4588
|
* @param {string} workflowRunId The unique identifier of the Workflow Run to which the Task belongs.
|
|
4393
4589
|
* @param {string} taskId The identifier of the Task you want to complete.
|
|
4394
|
-
* @param {
|
|
4590
|
+
* @param {CompleteTaskBuilder} completeTaskBuilder
|
|
4395
4591
|
* @param {*} [options] Override http request option.
|
|
4396
4592
|
* @throws {RequiredError}
|
|
4397
4593
|
* @memberof DefaultApi
|
|
4398
4594
|
*/
|
|
4399
|
-
completeTask(workflowRunId, taskId,
|
|
4400
|
-
return DefaultApiFp(this.configuration).completeTask(workflowRunId, taskId,
|
|
4595
|
+
completeTask(workflowRunId, taskId, completeTaskBuilder, options) {
|
|
4596
|
+
return DefaultApiFp(this.configuration).completeTask(workflowRunId, taskId, completeTaskBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4401
4597
|
}
|
|
4402
4598
|
/**
|
|
4403
4599
|
* Creates a single applicant. Returns an applicant object.
|
|
@@ -4421,16 +4617,27 @@ export class DefaultApi extends BaseAPI {
|
|
|
4421
4617
|
createCheck(checkBuilder, options) {
|
|
4422
4618
|
return DefaultApiFp(this.configuration).createCheck(checkBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4423
4619
|
}
|
|
4620
|
+
/**
|
|
4621
|
+
* Triggers the generation of the Timeline File for the designated Workflow Run.
|
|
4622
|
+
* @summary Create Timeline File for Workflow Run
|
|
4623
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4624
|
+
* @param {*} [options] Override http request option.
|
|
4625
|
+
* @throws {RequiredError}
|
|
4626
|
+
* @memberof DefaultApi
|
|
4627
|
+
*/
|
|
4628
|
+
createTimelineFile(workflowRunId, options) {
|
|
4629
|
+
return DefaultApiFp(this.configuration).createTimelineFile(workflowRunId, options).then((request) => request(this.axios, this.basePath));
|
|
4630
|
+
}
|
|
4424
4631
|
/**
|
|
4425
4632
|
* Creates a new monitor for the applicant
|
|
4426
4633
|
* @summary Create monitor
|
|
4427
|
-
* @param {
|
|
4634
|
+
* @param {WatchlistMonitorBuilder} watchlistMonitorBuilder
|
|
4428
4635
|
* @param {*} [options] Override http request option.
|
|
4429
4636
|
* @throws {RequiredError}
|
|
4430
4637
|
* @memberof DefaultApi
|
|
4431
4638
|
*/
|
|
4432
|
-
createWatchlistMonitor(
|
|
4433
|
-
return DefaultApiFp(this.configuration).createWatchlistMonitor(
|
|
4639
|
+
createWatchlistMonitor(watchlistMonitorBuilder, options) {
|
|
4640
|
+
return DefaultApiFp(this.configuration).createWatchlistMonitor(watchlistMonitorBuilder, options).then((request) => request(this.axios, this.basePath));
|
|
4434
4641
|
}
|
|
4435
4642
|
/**
|
|
4436
4643
|
* Registers a webhook. Returns a webhook object.
|
|
@@ -4719,6 +4926,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
4719
4926
|
findTask(workflowRunId, taskId, options) {
|
|
4720
4927
|
return DefaultApiFp(this.configuration).findTask(workflowRunId, taskId, options).then((request) => request(this.axios, this.basePath));
|
|
4721
4928
|
}
|
|
4929
|
+
/**
|
|
4930
|
+
* Retrieves the Timeline File for the designated Workflow Run.
|
|
4931
|
+
* @summary Retrieve Timeline File for Workflow Run
|
|
4932
|
+
* @param {string} workflowRunId The unique identifier of the Workflow Run.
|
|
4933
|
+
* @param {string} timelineFileId The unique identifier for the Timefile File.
|
|
4934
|
+
* @param {*} [options] Override http request option.
|
|
4935
|
+
* @throws {RequiredError}
|
|
4936
|
+
* @memberof DefaultApi
|
|
4937
|
+
*/
|
|
4938
|
+
findTimelineFile(workflowRunId, timelineFileId, options) {
|
|
4939
|
+
return DefaultApiFp(this.configuration).findTimelineFile(workflowRunId, timelineFileId, options).then((request) => request(this.axios, this.basePath));
|
|
4940
|
+
}
|
|
4722
4941
|
/**
|
|
4723
4942
|
* Retrieves a single monitor
|
|
4724
4943
|
* @summary Retrieve monitor
|
|
@@ -4760,8 +4979,8 @@ export class DefaultApi extends BaseAPI {
|
|
|
4760
4979
|
* @throws {RequiredError}
|
|
4761
4980
|
* @memberof DefaultApi
|
|
4762
4981
|
*/
|
|
4763
|
-
|
|
4764
|
-
return DefaultApiFp(this.configuration).
|
|
4982
|
+
forceReportCreationFromWatchlistMonitor(monitorId, options) {
|
|
4983
|
+
return DefaultApiFp(this.configuration).forceReportCreationFromWatchlistMonitor(monitorId, options).then((request) => request(this.axios, this.basePath));
|
|
4765
4984
|
}
|
|
4766
4985
|
/**
|
|
4767
4986
|
* Generates an SDK token. Returns a token object containing the SDK token.
|
|
@@ -5015,13 +5234,13 @@ export class DefaultApi extends BaseAPI {
|
|
|
5015
5234
|
* Update the status of the given matches
|
|
5016
5235
|
* @summary Set match status (BETA)
|
|
5017
5236
|
* @param {string} monitorId
|
|
5018
|
-
* @param {
|
|
5237
|
+
* @param {WatchlistMonitorMatchesUpdater} watchlistMonitorMatchesUpdater
|
|
5019
5238
|
* @param {*} [options] Override http request option.
|
|
5020
5239
|
* @throws {RequiredError}
|
|
5021
5240
|
* @memberof DefaultApi
|
|
5022
5241
|
*/
|
|
5023
|
-
|
|
5024
|
-
return DefaultApiFp(this.configuration).
|
|
5242
|
+
updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options) {
|
|
5243
|
+
return DefaultApiFp(this.configuration).updateWatchlistMonitorMatch(monitorId, watchlistMonitorMatchesUpdater, options).then((request) => request(this.axios, this.basePath));
|
|
5025
5244
|
}
|
|
5026
5245
|
/**
|
|
5027
5246
|
* Edits a webhook. Returns the updated webhook object.
|
|
@@ -5040,7 +5259,7 @@ export class DefaultApi extends BaseAPI {
|
|
|
5040
5259
|
* @summary Upload a document
|
|
5041
5260
|
* @param {string} type The type of document
|
|
5042
5261
|
* @param {string} applicantId The ID of the applicant whose document is being uploaded.
|
|
5043
|
-
* @param {
|
|
5262
|
+
* @param {FileTransfer} file The file to be uploaded.
|
|
5044
5263
|
* @param {UploadDocumentFileTypeEnum} [fileType] The file type of the uploaded file
|
|
5045
5264
|
* @param {UploadDocumentSideEnum} [side] The side of the document, if applicable. The possible values are front and back
|
|
5046
5265
|
* @param {CountryCodes} [issuingCountry] The issuing country of the document, a 3-letter ISO code.
|
|
@@ -5057,7 +5276,7 @@ export class DefaultApi extends BaseAPI {
|
|
|
5057
5276
|
* 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.
|
|
5058
5277
|
* @summary Upload ID photo
|
|
5059
5278
|
* @param {string} [applicantId] The ID of the applicant whose ID photo is being uploaded.
|
|
5060
|
-
* @param {
|
|
5279
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5061
5280
|
* @param {*} [options] Override http request option.
|
|
5062
5281
|
* @throws {RequiredError}
|
|
5063
5282
|
* @memberof DefaultApi
|
|
@@ -5069,7 +5288,7 @@ export class DefaultApi extends BaseAPI {
|
|
|
5069
5288
|
* 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.
|
|
5070
5289
|
* @summary Upload live photo
|
|
5071
5290
|
* @param {string} [applicantId] The ID of the applicant whose live photo is being uploaded.
|
|
5072
|
-
* @param {
|
|
5291
|
+
* @param {FileTransfer} [file] The file to be uploaded.
|
|
5073
5292
|
* @param {boolean} [advancedValidation] Validates that the live photo contains exactly one face.
|
|
5074
5293
|
* @param {*} [options] Override http request option.
|
|
5075
5294
|
* @throws {RequiredError}
|