@onfido/api 5.6.0 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -22,8 +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.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = 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.ReportConfigurationFacialSimilarityUseCaseEnum = 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.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentSideEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.CheckStatus = exports.CheckResponseResultEnum = exports.CheckResultEnum = exports.ApplicantConsentName = void 0;
26
- exports.UploadDocumentSideEnum = exports.ListWorkflowRunsSortEnum = void 0;
25
+ exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WorkflowRunStatus = exports.WorkflowRunLinkLanguageEnum = exports.WebhookEventType = exports.WebhookEventResourceType = exports.WebhookEventObjectStatus = 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.ReportConfigurationFacialSimilarityUseCaseEnum = exports.RepeatAttemptsListRepeatAttemptsInnerResultEnum = exports.RepeatAttemptsListRepeatAttemptsInnerNamesEnum = exports.RepeatAttemptsListRepeatAttemptsInnerDateOfBirthEnum = exports.ProofOfAddressPropertiesDocumentTypeEnum = exports.PasskeyUpdaterStateEnum = exports.PasskeyStateEnum = exports.IdNumberTypeEnum = exports.ExtractionExtractedDataGenderEnum = exports.ExtractionDocumentClassificationSubtypeEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesSecurityTierEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesHasIssuanceConfirmationEnum = exports.DocumentWithDriverVerificationReportAllOfPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentTypes = exports.DocumentSharedSideEnum = exports.DocumentPropertiesSecurityTierEnum = exports.DocumentPropertiesHasIssuanceConfirmationEnum = exports.DocumentPropertiesNistIdentityEvidenceStrengthEnum = exports.DocumentSideEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceBiometricCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceDocumentCaptureEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceIpReputationEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceAuthenticationTypeEnum = exports.DeviceIntelligenceBreakdownPropertiesDeviceSdkSourceEnum = exports.CountryCodes = exports.CheckStatus = exports.CheckResponseResultEnum = exports.CheckResultEnum = exports.ApplicantConsentName = void 0;
26
+ exports.UploadDocumentSideEnum = exports.ListWorkflowRunsSortEnum = exports.DefaultApi = exports.DefaultApiFactory = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // URLSearchParams not necessarily used
29
29
  // @ts-ignore
@@ -558,6 +558,16 @@ exports.IdNumberTypeEnum = {
558
558
  Other: 'other',
559
559
  UnknownDefaultOpenApi: '11184809'
560
560
  };
561
+ exports.PasskeyStateEnum = {
562
+ Active: 'ACTIVE',
563
+ Inactive: 'INACTIVE',
564
+ UnknownDefaultOpenApi: '11184809'
565
+ };
566
+ exports.PasskeyUpdaterStateEnum = {
567
+ Active: 'ACTIVE',
568
+ Inactive: 'INACTIVE',
569
+ UnknownDefaultOpenApi: '11184809'
570
+ };
561
571
  exports.ProofOfAddressPropertiesDocumentTypeEnum = {
562
572
  BankBuildingSocietyStatement: 'bank_building_society_statement',
563
573
  UtilityBill: 'utility_bill',
@@ -1123,6 +1133,72 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1123
1133
  options: localVarRequestOptions,
1124
1134
  };
1125
1135
  }),
1136
+ /**
1137
+ * Deletes a passkey.
1138
+ * @summary Delete passkey
1139
+ * @param {string} username Username that owns the passkey.
1140
+ * @param {string} passkeyId Passkey ID.
1141
+ * @param {*} [options] Override http request option.
1142
+ * @throws {RequiredError}
1143
+ */
1144
+ deletePasskey: (username, passkeyId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1145
+ // verify required parameter 'username' is not null or undefined
1146
+ (0, common_1.assertParamExists)('deletePasskey', 'username', username);
1147
+ // verify required parameter 'passkeyId' is not null or undefined
1148
+ (0, common_1.assertParamExists)('deletePasskey', 'passkeyId', passkeyId);
1149
+ const localVarPath = `/passkeys/{username}/{passkey_id}`
1150
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
1151
+ .replace(`{${"passkey_id"}}`, encodeURIComponent(String(passkeyId)));
1152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1153
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1154
+ let baseOptions;
1155
+ if (configuration) {
1156
+ baseOptions = configuration.baseOptions;
1157
+ }
1158
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1159
+ const localVarHeaderParameter = {};
1160
+ const localVarQueryParameter = {};
1161
+ // authentication Token required
1162
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1163
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1166
+ return {
1167
+ url: (0, common_1.toPathString)(localVarUrlObj),
1168
+ options: localVarRequestOptions,
1169
+ };
1170
+ }),
1171
+ /**
1172
+ * Removes every passkey for the username.
1173
+ * @summary Delete passkeys
1174
+ * @param {string} username Username whose passkeys will be deleted.
1175
+ * @param {*} [options] Override http request option.
1176
+ * @throws {RequiredError}
1177
+ */
1178
+ deletePasskeys: (username, options = {}) => __awaiter(this, void 0, void 0, function* () {
1179
+ // verify required parameter 'username' is not null or undefined
1180
+ (0, common_1.assertParamExists)('deletePasskeys', 'username', username);
1181
+ const localVarPath = `/passkeys/{username}`
1182
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
1183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1184
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1185
+ let baseOptions;
1186
+ if (configuration) {
1187
+ baseOptions = configuration.baseOptions;
1188
+ }
1189
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1190
+ const localVarHeaderParameter = {};
1191
+ const localVarQueryParameter = {};
1192
+ // authentication Token required
1193
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1197
+ return {
1198
+ url: (0, common_1.toPathString)(localVarUrlObj),
1199
+ options: localVarRequestOptions,
1200
+ };
1201
+ }),
1126
1202
  /**
1127
1203
  * Deactivates the given monitor
1128
1204
  * @summary Delete monitor
@@ -1604,6 +1680,45 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1604
1680
  options: localVarRequestOptions,
1605
1681
  };
1606
1682
  }),
1683
+ /**
1684
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
1685
+ * @summary Retrieves the signed document or signing transaction receipt
1686
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
1687
+ * @param {string} id The unique identifier of the file which you want to retrieve.
1688
+ * @param {*} [options] Override http request option.
1689
+ * @throws {RequiredError}
1690
+ */
1691
+ downloadSesDocument: (workflowRunId, id, options = {}) => __awaiter(this, void 0, void 0, function* () {
1692
+ // verify required parameter 'workflowRunId' is not null or undefined
1693
+ (0, common_1.assertParamExists)('downloadSesDocument', 'workflowRunId', workflowRunId);
1694
+ // verify required parameter 'id' is not null or undefined
1695
+ (0, common_1.assertParamExists)('downloadSesDocument', 'id', id);
1696
+ const localVarPath = `/simple_electronic_signature/documents`;
1697
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1698
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1699
+ let baseOptions;
1700
+ if (configuration) {
1701
+ baseOptions = configuration.baseOptions;
1702
+ }
1703
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1704
+ const localVarHeaderParameter = {};
1705
+ const localVarQueryParameter = {};
1706
+ // authentication Token required
1707
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1708
+ if (workflowRunId !== undefined) {
1709
+ localVarQueryParameter['workflow_run_id'] = workflowRunId;
1710
+ }
1711
+ if (id !== undefined) {
1712
+ localVarQueryParameter['id'] = id;
1713
+ }
1714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1716
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1717
+ return {
1718
+ url: (0, common_1.toPathString)(localVarUrlObj),
1719
+ options: localVarRequestOptions,
1720
+ };
1721
+ }),
1607
1722
  /**
1608
1723
  * Retrieves the signed evidence file for the designated Workflow Run
1609
1724
  * @summary Retrieve Workflow Run Evidence Summary File
@@ -1635,6 +1750,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1635
1750
  options: localVarRequestOptions,
1636
1751
  };
1637
1752
  }),
1753
+ /**
1754
+ * Downloads specific signing documents belonging to an applicant. If successful, the response will be the binary data representing the pdf.
1755
+ * @summary Download signing document
1756
+ * @param {string} signingDocumentId
1757
+ * @param {*} [options] Override http request option.
1758
+ * @throws {RequiredError}
1759
+ */
1760
+ downloadSigningDocument: (signingDocumentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1761
+ // verify required parameter 'signingDocumentId' is not null or undefined
1762
+ (0, common_1.assertParamExists)('downloadSigningDocument', 'signingDocumentId', signingDocumentId);
1763
+ const localVarPath = `/signing_documents/{signing_document_id}/download`
1764
+ .replace(`{${"signing_document_id"}}`, encodeURIComponent(String(signingDocumentId)));
1765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1766
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1767
+ let baseOptions;
1768
+ if (configuration) {
1769
+ baseOptions = configuration.baseOptions;
1770
+ }
1771
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1772
+ const localVarHeaderParameter = {};
1773
+ const localVarQueryParameter = {};
1774
+ // authentication Token required
1775
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1776
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1779
+ return {
1780
+ url: (0, common_1.toPathString)(localVarUrlObj),
1781
+ options: localVarRequestOptions,
1782
+ };
1783
+ }),
1638
1784
  /**
1639
1785
  * Extract information from a document
1640
1786
  * @summary Autofill
@@ -1948,6 +2094,41 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1948
2094
  options: localVarRequestOptions,
1949
2095
  };
1950
2096
  }),
2097
+ /**
2098
+ * Returns a passkey\'s details.
2099
+ * @summary Retrieve passkey
2100
+ * @param {string} username Username that owns the passkey.
2101
+ * @param {string} passkeyId Passkey ID.
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ */
2105
+ findPasskey: (username, passkeyId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2106
+ // verify required parameter 'username' is not null or undefined
2107
+ (0, common_1.assertParamExists)('findPasskey', 'username', username);
2108
+ // verify required parameter 'passkeyId' is not null or undefined
2109
+ (0, common_1.assertParamExists)('findPasskey', 'passkeyId', passkeyId);
2110
+ const localVarPath = `/passkeys/{username}/{passkey_id}`
2111
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
2112
+ .replace(`{${"passkey_id"}}`, encodeURIComponent(String(passkeyId)));
2113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2114
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
2115
+ let baseOptions;
2116
+ if (configuration) {
2117
+ baseOptions = configuration.baseOptions;
2118
+ }
2119
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2120
+ const localVarHeaderParameter = {};
2121
+ const localVarQueryParameter = {};
2122
+ // authentication Token required
2123
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2124
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2127
+ return {
2128
+ url: (0, common_1.toPathString)(localVarUrlObj),
2129
+ options: localVarRequestOptions,
2130
+ };
2131
+ }),
1951
2132
  /**
1952
2133
  * A single report can be retrieved using this endpoint with the corresponding unique identifier.
1953
2134
  * @summary Retrieve report
@@ -1979,6 +2160,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1979
2160
  options: localVarRequestOptions,
1980
2161
  };
1981
2162
  }),
2163
+ /**
2164
+ * A single signing document can be retrieved by calling this endpoint with the signing document\'s unique identifier.
2165
+ * @summary Retrieve signing document
2166
+ * @param {string} signingDocumentId
2167
+ * @param {*} [options] Override http request option.
2168
+ * @throws {RequiredError}
2169
+ */
2170
+ findSigningDocument: (signingDocumentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2171
+ // verify required parameter 'signingDocumentId' is not null or undefined
2172
+ (0, common_1.assertParamExists)('findSigningDocument', 'signingDocumentId', signingDocumentId);
2173
+ const localVarPath = `/signing_documents/{signing_document_id}`
2174
+ .replace(`{${"signing_document_id"}}`, encodeURIComponent(String(signingDocumentId)));
2175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2176
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
2177
+ let baseOptions;
2178
+ if (configuration) {
2179
+ baseOptions = configuration.baseOptions;
2180
+ }
2181
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2182
+ const localVarHeaderParameter = {};
2183
+ const localVarQueryParameter = {};
2184
+ // authentication Token required
2185
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2186
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2188
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2189
+ return {
2190
+ url: (0, common_1.toPathString)(localVarUrlObj),
2191
+ options: localVarRequestOptions,
2192
+ };
2193
+ }),
1982
2194
  /**
1983
2195
  * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
1984
2196
  * @summary Retrieve Task
@@ -2442,6 +2654,37 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2442
2654
  options: localVarRequestOptions,
2443
2655
  };
2444
2656
  }),
2657
+ /**
2658
+ * Returns every passkey registered under the supplied username.
2659
+ * @summary List passkeys
2660
+ * @param {string} username Username that owns the passkeys.
2661
+ * @param {*} [options] Override http request option.
2662
+ * @throws {RequiredError}
2663
+ */
2664
+ listPasskeys: (username, options = {}) => __awaiter(this, void 0, void 0, function* () {
2665
+ // verify required parameter 'username' is not null or undefined
2666
+ (0, common_1.assertParamExists)('listPasskeys', 'username', username);
2667
+ const localVarPath = `/passkeys/{username}`
2668
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
2669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2670
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
2671
+ let baseOptions;
2672
+ if (configuration) {
2673
+ baseOptions = configuration.baseOptions;
2674
+ }
2675
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2676
+ const localVarHeaderParameter = {};
2677
+ const localVarQueryParameter = {};
2678
+ // authentication Token required
2679
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2680
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2681
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2682
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2683
+ return {
2684
+ url: (0, common_1.toPathString)(localVarUrlObj),
2685
+ options: localVarRequestOptions,
2686
+ };
2687
+ }),
2445
2688
  /**
2446
2689
  * Returns all repeat attempts for a given Document report
2447
2690
  * @summary Retrieve repeat attempts
@@ -2506,6 +2749,39 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2506
2749
  options: localVarRequestOptions,
2507
2750
  };
2508
2751
  }),
2752
+ /**
2753
+ * All signing documents belonging to an applicant can be listed from this endpoint
2754
+ * @summary List signing documents
2755
+ * @param {string} applicantId
2756
+ * @param {*} [options] Override http request option.
2757
+ * @throws {RequiredError}
2758
+ */
2759
+ listSigningDocuments: (applicantId, options = {}) => __awaiter(this, void 0, void 0, function* () {
2760
+ // verify required parameter 'applicantId' is not null or undefined
2761
+ (0, common_1.assertParamExists)('listSigningDocuments', 'applicantId', applicantId);
2762
+ const localVarPath = `/signing_documents`;
2763
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2764
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
2765
+ let baseOptions;
2766
+ if (configuration) {
2767
+ baseOptions = configuration.baseOptions;
2768
+ }
2769
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2770
+ const localVarHeaderParameter = {};
2771
+ const localVarQueryParameter = {};
2772
+ // authentication Token required
2773
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2774
+ if (applicantId !== undefined) {
2775
+ localVarQueryParameter['applicant_id'] = applicantId;
2776
+ }
2777
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2779
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2780
+ return {
2781
+ url: (0, common_1.toPathString)(localVarUrlObj),
2782
+ options: localVarRequestOptions,
2783
+ };
2784
+ }),
2509
2785
  /**
2510
2786
  * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
2511
2787
  * @summary List Tasks
@@ -2907,6 +3183,46 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2907
3183
  options: localVarRequestOptions,
2908
3184
  };
2909
3185
  }),
3186
+ /**
3187
+ * Updates a passkey\'s state.
3188
+ * @summary Update passkey
3189
+ * @param {string} username Username that owns the passkey.
3190
+ * @param {string} passkeyId Passkey ID.
3191
+ * @param {PasskeyUpdater} passkeyUpdater Passkey update payload.
3192
+ * @param {*} [options] Override http request option.
3193
+ * @throws {RequiredError}
3194
+ */
3195
+ updatePasskey: (username, passkeyId, passkeyUpdater, options = {}) => __awaiter(this, void 0, void 0, function* () {
3196
+ // verify required parameter 'username' is not null or undefined
3197
+ (0, common_1.assertParamExists)('updatePasskey', 'username', username);
3198
+ // verify required parameter 'passkeyId' is not null or undefined
3199
+ (0, common_1.assertParamExists)('updatePasskey', 'passkeyId', passkeyId);
3200
+ // verify required parameter 'passkeyUpdater' is not null or undefined
3201
+ (0, common_1.assertParamExists)('updatePasskey', 'passkeyUpdater', passkeyUpdater);
3202
+ const localVarPath = `/passkeys/{username}/{passkey_id}`
3203
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3204
+ .replace(`{${"passkey_id"}}`, encodeURIComponent(String(passkeyId)));
3205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3206
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3207
+ let baseOptions;
3208
+ if (configuration) {
3209
+ baseOptions = configuration.baseOptions;
3210
+ }
3211
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3212
+ const localVarHeaderParameter = {};
3213
+ const localVarQueryParameter = {};
3214
+ // authentication Token required
3215
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3216
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3217
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3219
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3220
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(passkeyUpdater, localVarRequestOptions, configuration);
3221
+ return {
3222
+ url: (0, common_1.toPathString)(localVarUrlObj),
3223
+ options: localVarRequestOptions,
3224
+ };
3225
+ }),
2910
3226
  /**
2911
3227
  * Update the status of the given matches
2912
3228
  * @summary Set match status (BETA)
@@ -3127,6 +3443,48 @@ const DefaultApiAxiosParamCreator = function (configuration) {
3127
3443
  options: localVarRequestOptions,
3128
3444
  };
3129
3445
  }),
3446
+ /**
3447
+ * Signing documents are uploaded using this endpoint. Signing documents must be uploaded as a multipart form. The only valid file type is pdf. The file size must be between 2KB and 3MB.
3448
+ * @summary Upload a signing document
3449
+ * @param {string} applicantId The ID of the applicant whose signing document is being uploaded.
3450
+ * @param {FileTransfer} file The file to be uploaded.
3451
+ * @param {*} [options] Override http request option.
3452
+ * @throws {RequiredError}
3453
+ */
3454
+ uploadSigningDocument: (applicantId, file, options = {}) => __awaiter(this, void 0, void 0, function* () {
3455
+ // verify required parameter 'applicantId' is not null or undefined
3456
+ (0, common_1.assertParamExists)('uploadSigningDocument', 'applicantId', applicantId);
3457
+ // verify required parameter 'file' is not null or undefined
3458
+ (0, common_1.assertParamExists)('uploadSigningDocument', 'file', file);
3459
+ const localVarPath = `/signing_documents`;
3460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3461
+ const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
3462
+ let baseOptions;
3463
+ if (configuration) {
3464
+ baseOptions = configuration.baseOptions;
3465
+ }
3466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3467
+ const localVarHeaderParameter = {};
3468
+ const localVarQueryParameter = {};
3469
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
3470
+ // authentication Token required
3471
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
3472
+ if (applicantId !== undefined) {
3473
+ localVarFormParams.append('applicant_id', applicantId);
3474
+ }
3475
+ if (file !== undefined) {
3476
+ localVarFormParams.append('file', file.buffer, file.filename);
3477
+ }
3478
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
3479
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3480
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3481
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3482
+ localVarRequestOptions.data = localVarFormParams;
3483
+ return {
3484
+ url: (0, common_1.toPathString)(localVarUrlObj),
3485
+ options: localVarRequestOptions,
3486
+ };
3487
+ }),
3130
3488
  };
3131
3489
  };
3132
3490
  exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
@@ -3283,6 +3641,39 @@ const DefaultApiFp = function (configuration) {
3283
3641
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3284
3642
  });
3285
3643
  },
3644
+ /**
3645
+ * Deletes a passkey.
3646
+ * @summary Delete passkey
3647
+ * @param {string} username Username that owns the passkey.
3648
+ * @param {string} passkeyId Passkey ID.
3649
+ * @param {*} [options] Override http request option.
3650
+ * @throws {RequiredError}
3651
+ */
3652
+ deletePasskey(username, passkeyId, options) {
3653
+ var _a, _b, _c;
3654
+ return __awaiter(this, void 0, void 0, function* () {
3655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePasskey(username, passkeyId, options);
3656
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3657
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deletePasskey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3658
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3659
+ });
3660
+ },
3661
+ /**
3662
+ * Removes every passkey for the username.
3663
+ * @summary Delete passkeys
3664
+ * @param {string} username Username whose passkeys will be deleted.
3665
+ * @param {*} [options] Override http request option.
3666
+ * @throws {RequiredError}
3667
+ */
3668
+ deletePasskeys(username, options) {
3669
+ var _a, _b, _c;
3670
+ return __awaiter(this, void 0, void 0, function* () {
3671
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePasskeys(username, options);
3672
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3673
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deletePasskeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3674
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3675
+ });
3676
+ },
3286
3677
  /**
3287
3678
  * Deactivates the given monitor
3288
3679
  * @summary Delete monitor
@@ -3525,6 +3916,23 @@ const DefaultApiFp = function (configuration) {
3525
3916
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3526
3917
  });
3527
3918
  },
3919
+ /**
3920
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
3921
+ * @summary Retrieves the signed document or signing transaction receipt
3922
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
3923
+ * @param {string} id The unique identifier of the file which you want to retrieve.
3924
+ * @param {*} [options] Override http request option.
3925
+ * @throws {RequiredError}
3926
+ */
3927
+ downloadSesDocument(workflowRunId, id, options) {
3928
+ var _a, _b, _c;
3929
+ return __awaiter(this, void 0, void 0, function* () {
3930
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadSesDocument(workflowRunId, id, options);
3931
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3932
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadSesDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3933
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3934
+ });
3935
+ },
3528
3936
  /**
3529
3937
  * Retrieves the signed evidence file for the designated Workflow Run
3530
3938
  * @summary Retrieve Workflow Run Evidence Summary File
@@ -3541,6 +3949,22 @@ const DefaultApiFp = function (configuration) {
3541
3949
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3542
3950
  });
3543
3951
  },
3952
+ /**
3953
+ * Downloads specific signing documents belonging to an applicant. If successful, the response will be the binary data representing the pdf.
3954
+ * @summary Download signing document
3955
+ * @param {string} signingDocumentId
3956
+ * @param {*} [options] Override http request option.
3957
+ * @throws {RequiredError}
3958
+ */
3959
+ downloadSigningDocument(signingDocumentId, options) {
3960
+ var _a, _b, _c;
3961
+ return __awaiter(this, void 0, void 0, function* () {
3962
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadSigningDocument(signingDocumentId, options);
3963
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3964
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.downloadSigningDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3965
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3966
+ });
3967
+ },
3544
3968
  /**
3545
3969
  * Extract information from a document
3546
3970
  * @summary Autofill
@@ -3701,6 +4125,23 @@ const DefaultApiFp = function (configuration) {
3701
4125
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3702
4126
  });
3703
4127
  },
4128
+ /**
4129
+ * Returns a passkey\'s details.
4130
+ * @summary Retrieve passkey
4131
+ * @param {string} username Username that owns the passkey.
4132
+ * @param {string} passkeyId Passkey ID.
4133
+ * @param {*} [options] Override http request option.
4134
+ * @throws {RequiredError}
4135
+ */
4136
+ findPasskey(username, passkeyId, options) {
4137
+ var _a, _b, _c;
4138
+ return __awaiter(this, void 0, void 0, function* () {
4139
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.findPasskey(username, passkeyId, options);
4140
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4141
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.findPasskey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4143
+ });
4144
+ },
3704
4145
  /**
3705
4146
  * A single report can be retrieved using this endpoint with the corresponding unique identifier.
3706
4147
  * @summary Retrieve report
@@ -3717,6 +4158,22 @@ const DefaultApiFp = function (configuration) {
3717
4158
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3718
4159
  });
3719
4160
  },
4161
+ /**
4162
+ * A single signing document can be retrieved by calling this endpoint with the signing document\'s unique identifier.
4163
+ * @summary Retrieve signing document
4164
+ * @param {string} signingDocumentId
4165
+ * @param {*} [options] Override http request option.
4166
+ * @throws {RequiredError}
4167
+ */
4168
+ findSigningDocument(signingDocumentId, options) {
4169
+ var _a, _b, _c;
4170
+ return __awaiter(this, void 0, void 0, function* () {
4171
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.findSigningDocument(signingDocumentId, options);
4172
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4173
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.findSigningDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4175
+ });
4176
+ },
3720
4177
  /**
3721
4178
  * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
3722
4179
  * @summary Retrieve Task
@@ -3945,6 +4402,22 @@ const DefaultApiFp = function (configuration) {
3945
4402
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3946
4403
  });
3947
4404
  },
4405
+ /**
4406
+ * Returns every passkey registered under the supplied username.
4407
+ * @summary List passkeys
4408
+ * @param {string} username Username that owns the passkeys.
4409
+ * @param {*} [options] Override http request option.
4410
+ * @throws {RequiredError}
4411
+ */
4412
+ listPasskeys(username, options) {
4413
+ var _a, _b, _c;
4414
+ return __awaiter(this, void 0, void 0, function* () {
4415
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPasskeys(username, options);
4416
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4417
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.listPasskeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4418
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4419
+ });
4420
+ },
3948
4421
  /**
3949
4422
  * Returns all repeat attempts for a given Document report
3950
4423
  * @summary Retrieve repeat attempts
@@ -3977,6 +4450,22 @@ const DefaultApiFp = function (configuration) {
3977
4450
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3978
4451
  });
3979
4452
  },
4453
+ /**
4454
+ * All signing documents belonging to an applicant can be listed from this endpoint
4455
+ * @summary List signing documents
4456
+ * @param {string} applicantId
4457
+ * @param {*} [options] Override http request option.
4458
+ * @throws {RequiredError}
4459
+ */
4460
+ listSigningDocuments(applicantId, options) {
4461
+ var _a, _b, _c;
4462
+ return __awaiter(this, void 0, void 0, function* () {
4463
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSigningDocuments(applicantId, options);
4464
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4465
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.listSigningDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4466
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4467
+ });
4468
+ },
3980
4469
  /**
3981
4470
  * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
3982
4471
  * @summary List Tasks
@@ -4174,6 +4663,24 @@ const DefaultApiFp = function (configuration) {
4174
4663
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4175
4664
  });
4176
4665
  },
4666
+ /**
4667
+ * Updates a passkey\'s state.
4668
+ * @summary Update passkey
4669
+ * @param {string} username Username that owns the passkey.
4670
+ * @param {string} passkeyId Passkey ID.
4671
+ * @param {PasskeyUpdater} passkeyUpdater Passkey update payload.
4672
+ * @param {*} [options] Override http request option.
4673
+ * @throws {RequiredError}
4674
+ */
4675
+ updatePasskey(username, passkeyId, passkeyUpdater, options) {
4676
+ var _a, _b, _c;
4677
+ return __awaiter(this, void 0, void 0, function* () {
4678
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePasskey(username, passkeyId, passkeyUpdater, options);
4679
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4680
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.updatePasskey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4681
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4682
+ });
4683
+ },
4177
4684
  /**
4178
4685
  * Update the status of the given matches
4179
4686
  * @summary Set match status (BETA)
@@ -4266,6 +4773,23 @@ const DefaultApiFp = function (configuration) {
4266
4773
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4267
4774
  });
4268
4775
  },
4776
+ /**
4777
+ * Signing documents are uploaded using this endpoint. Signing documents must be uploaded as a multipart form. The only valid file type is pdf. The file size must be between 2KB and 3MB.
4778
+ * @summary Upload a signing document
4779
+ * @param {string} applicantId The ID of the applicant whose signing document is being uploaded.
4780
+ * @param {FileTransfer} file The file to be uploaded.
4781
+ * @param {*} [options] Override http request option.
4782
+ * @throws {RequiredError}
4783
+ */
4784
+ uploadSigningDocument(applicantId, file, options) {
4785
+ var _a, _b, _c;
4786
+ return __awaiter(this, void 0, void 0, function* () {
4787
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadSigningDocument(applicantId, file, options);
4788
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4789
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.uploadSigningDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4790
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4791
+ });
4792
+ },
4269
4793
  };
4270
4794
  };
4271
4795
  exports.DefaultApiFp = DefaultApiFp;
@@ -4368,6 +4892,27 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4368
4892
  deleteApplicant(applicantId, options) {
4369
4893
  return localVarFp.deleteApplicant(applicantId, options).then((request) => request(axios, basePath));
4370
4894
  },
4895
+ /**
4896
+ * Deletes a passkey.
4897
+ * @summary Delete passkey
4898
+ * @param {string} username Username that owns the passkey.
4899
+ * @param {string} passkeyId Passkey ID.
4900
+ * @param {*} [options] Override http request option.
4901
+ * @throws {RequiredError}
4902
+ */
4903
+ deletePasskey(username, passkeyId, options) {
4904
+ return localVarFp.deletePasskey(username, passkeyId, options).then((request) => request(axios, basePath));
4905
+ },
4906
+ /**
4907
+ * Removes every passkey for the username.
4908
+ * @summary Delete passkeys
4909
+ * @param {string} username Username whose passkeys will be deleted.
4910
+ * @param {*} [options] Override http request option.
4911
+ * @throws {RequiredError}
4912
+ */
4913
+ deletePasskeys(username, options) {
4914
+ return localVarFp.deletePasskeys(username, options).then((request) => request(axios, basePath));
4915
+ },
4371
4916
  /**
4372
4917
  * Deactivates the given monitor
4373
4918
  * @summary Delete monitor
@@ -4520,6 +5065,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4520
5065
  downloadQesDocument(workflowRunId, fileId, options) {
4521
5066
  return localVarFp.downloadQesDocument(workflowRunId, fileId, options).then((request) => request(axios, basePath));
4522
5067
  },
5068
+ /**
5069
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
5070
+ * @summary Retrieves the signed document or signing transaction receipt
5071
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
5072
+ * @param {string} id The unique identifier of the file which you want to retrieve.
5073
+ * @param {*} [options] Override http request option.
5074
+ * @throws {RequiredError}
5075
+ */
5076
+ downloadSesDocument(workflowRunId, id, options) {
5077
+ return localVarFp.downloadSesDocument(workflowRunId, id, options).then((request) => request(axios, basePath));
5078
+ },
4523
5079
  /**
4524
5080
  * Retrieves the signed evidence file for the designated Workflow Run
4525
5081
  * @summary Retrieve Workflow Run Evidence Summary File
@@ -4530,6 +5086,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4530
5086
  downloadSignedEvidenceFile(workflowRunId, options) {
4531
5087
  return localVarFp.downloadSignedEvidenceFile(workflowRunId, options).then((request) => request(axios, basePath));
4532
5088
  },
5089
+ /**
5090
+ * Downloads specific signing documents belonging to an applicant. If successful, the response will be the binary data representing the pdf.
5091
+ * @summary Download signing document
5092
+ * @param {string} signingDocumentId
5093
+ * @param {*} [options] Override http request option.
5094
+ * @throws {RequiredError}
5095
+ */
5096
+ downloadSigningDocument(signingDocumentId, options) {
5097
+ return localVarFp.downloadSigningDocument(signingDocumentId, options).then((request) => request(axios, basePath));
5098
+ },
4533
5099
  /**
4534
5100
  * Extract information from a document
4535
5101
  * @summary Autofill
@@ -4630,6 +5196,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4630
5196
  findMotionCapture(motionCaptureId, options) {
4631
5197
  return localVarFp.findMotionCapture(motionCaptureId, options).then((request) => request(axios, basePath));
4632
5198
  },
5199
+ /**
5200
+ * Returns a passkey\'s details.
5201
+ * @summary Retrieve passkey
5202
+ * @param {string} username Username that owns the passkey.
5203
+ * @param {string} passkeyId Passkey ID.
5204
+ * @param {*} [options] Override http request option.
5205
+ * @throws {RequiredError}
5206
+ */
5207
+ findPasskey(username, passkeyId, options) {
5208
+ return localVarFp.findPasskey(username, passkeyId, options).then((request) => request(axios, basePath));
5209
+ },
4633
5210
  /**
4634
5211
  * A single report can be retrieved using this endpoint with the corresponding unique identifier.
4635
5212
  * @summary Retrieve report
@@ -4640,6 +5217,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4640
5217
  findReport(reportId, options) {
4641
5218
  return localVarFp.findReport(reportId, options).then((request) => request(axios, basePath));
4642
5219
  },
5220
+ /**
5221
+ * A single signing document can be retrieved by calling this endpoint with the signing document\'s unique identifier.
5222
+ * @summary Retrieve signing document
5223
+ * @param {string} signingDocumentId
5224
+ * @param {*} [options] Override http request option.
5225
+ * @throws {RequiredError}
5226
+ */
5227
+ findSigningDocument(signingDocumentId, options) {
5228
+ return localVarFp.findSigningDocument(signingDocumentId, options).then((request) => request(axios, basePath));
5229
+ },
4643
5230
  /**
4644
5231
  * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
4645
5232
  * @summary Retrieve Task
@@ -4784,6 +5371,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4784
5371
  listMotionCaptures(applicantId, options) {
4785
5372
  return localVarFp.listMotionCaptures(applicantId, options).then((request) => request(axios, basePath));
4786
5373
  },
5374
+ /**
5375
+ * Returns every passkey registered under the supplied username.
5376
+ * @summary List passkeys
5377
+ * @param {string} username Username that owns the passkeys.
5378
+ * @param {*} [options] Override http request option.
5379
+ * @throws {RequiredError}
5380
+ */
5381
+ listPasskeys(username, options) {
5382
+ return localVarFp.listPasskeys(username, options).then((request) => request(axios, basePath));
5383
+ },
4787
5384
  /**
4788
5385
  * Returns all repeat attempts for a given Document report
4789
5386
  * @summary Retrieve repeat attempts
@@ -4804,6 +5401,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4804
5401
  listReports(checkId, options) {
4805
5402
  return localVarFp.listReports(checkId, options).then((request) => request(axios, basePath));
4806
5403
  },
5404
+ /**
5405
+ * All signing documents belonging to an applicant can be listed from this endpoint
5406
+ * @summary List signing documents
5407
+ * @param {string} applicantId
5408
+ * @param {*} [options] Override http request option.
5409
+ * @throws {RequiredError}
5410
+ */
5411
+ listSigningDocuments(applicantId, options) {
5412
+ return localVarFp.listSigningDocuments(applicantId, options).then((request) => request(axios, basePath));
5413
+ },
4807
5414
  /**
4808
5415
  * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
4809
5416
  * @summary List Tasks
@@ -4929,6 +5536,18 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4929
5536
  updateApplicant(applicantId, applicantUpdater, options) {
4930
5537
  return localVarFp.updateApplicant(applicantId, applicantUpdater, options).then((request) => request(axios, basePath));
4931
5538
  },
5539
+ /**
5540
+ * Updates a passkey\'s state.
5541
+ * @summary Update passkey
5542
+ * @param {string} username Username that owns the passkey.
5543
+ * @param {string} passkeyId Passkey ID.
5544
+ * @param {PasskeyUpdater} passkeyUpdater Passkey update payload.
5545
+ * @param {*} [options] Override http request option.
5546
+ * @throws {RequiredError}
5547
+ */
5548
+ updatePasskey(username, passkeyId, passkeyUpdater, options) {
5549
+ return localVarFp.updatePasskey(username, passkeyId, passkeyUpdater, options).then((request) => request(axios, basePath));
5550
+ },
4932
5551
  /**
4933
5552
  * Update the status of the given matches
4934
5553
  * @summary Set match status (BETA)
@@ -4991,6 +5610,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4991
5610
  uploadLivePhoto(applicantId, file, advancedValidation, options) {
4992
5611
  return localVarFp.uploadLivePhoto(applicantId, file, advancedValidation, options).then((request) => request(axios, basePath));
4993
5612
  },
5613
+ /**
5614
+ * Signing documents are uploaded using this endpoint. Signing documents must be uploaded as a multipart form. The only valid file type is pdf. The file size must be between 2KB and 3MB.
5615
+ * @summary Upload a signing document
5616
+ * @param {string} applicantId The ID of the applicant whose signing document is being uploaded.
5617
+ * @param {FileTransfer} file The file to be uploaded.
5618
+ * @param {*} [options] Override http request option.
5619
+ * @throws {RequiredError}
5620
+ */
5621
+ uploadSigningDocument(applicantId, file, options) {
5622
+ return localVarFp.uploadSigningDocument(applicantId, file, options).then((request) => request(axios, basePath));
5623
+ },
4994
5624
  };
4995
5625
  };
4996
5626
  exports.DefaultApiFactory = DefaultApiFactory;
@@ -5102,6 +5732,29 @@ class DefaultApi extends base_1.BaseAPI {
5102
5732
  deleteApplicant(applicantId, options) {
5103
5733
  return (0, exports.DefaultApiFp)(this.configuration).deleteApplicant(applicantId, options).then((request) => request(this.axios, this.basePath));
5104
5734
  }
5735
+ /**
5736
+ * Deletes a passkey.
5737
+ * @summary Delete passkey
5738
+ * @param {string} username Username that owns the passkey.
5739
+ * @param {string} passkeyId Passkey ID.
5740
+ * @param {*} [options] Override http request option.
5741
+ * @throws {RequiredError}
5742
+ * @memberof DefaultApi
5743
+ */
5744
+ deletePasskey(username, passkeyId, options) {
5745
+ return (0, exports.DefaultApiFp)(this.configuration).deletePasskey(username, passkeyId, options).then((request) => request(this.axios, this.basePath));
5746
+ }
5747
+ /**
5748
+ * Removes every passkey for the username.
5749
+ * @summary Delete passkeys
5750
+ * @param {string} username Username whose passkeys will be deleted.
5751
+ * @param {*} [options] Override http request option.
5752
+ * @throws {RequiredError}
5753
+ * @memberof DefaultApi
5754
+ */
5755
+ deletePasskeys(username, options) {
5756
+ return (0, exports.DefaultApiFp)(this.configuration).deletePasskeys(username, options).then((request) => request(this.axios, this.basePath));
5757
+ }
5105
5758
  /**
5106
5759
  * Deactivates the given monitor
5107
5760
  * @summary Delete monitor
@@ -5269,6 +5922,18 @@ class DefaultApi extends base_1.BaseAPI {
5269
5922
  downloadQesDocument(workflowRunId, fileId, options) {
5270
5923
  return (0, exports.DefaultApiFp)(this.configuration).downloadQesDocument(workflowRunId, fileId, options).then((request) => request(this.axios, this.basePath));
5271
5924
  }
5925
+ /**
5926
+ * Retrieves the signed document or signing transaction receipt depending on the id provided.
5927
+ * @summary Retrieves the signed document or signing transaction receipt
5928
+ * @param {string} workflowRunId The unique identifier of the Workflow Run for which you want to retrieve the signed document.
5929
+ * @param {string} id The unique identifier of the file which you want to retrieve.
5930
+ * @param {*} [options] Override http request option.
5931
+ * @throws {RequiredError}
5932
+ * @memberof DefaultApi
5933
+ */
5934
+ downloadSesDocument(workflowRunId, id, options) {
5935
+ return (0, exports.DefaultApiFp)(this.configuration).downloadSesDocument(workflowRunId, id, options).then((request) => request(this.axios, this.basePath));
5936
+ }
5272
5937
  /**
5273
5938
  * Retrieves the signed evidence file for the designated Workflow Run
5274
5939
  * @summary Retrieve Workflow Run Evidence Summary File
@@ -5280,6 +5945,17 @@ class DefaultApi extends base_1.BaseAPI {
5280
5945
  downloadSignedEvidenceFile(workflowRunId, options) {
5281
5946
  return (0, exports.DefaultApiFp)(this.configuration).downloadSignedEvidenceFile(workflowRunId, options).then((request) => request(this.axios, this.basePath));
5282
5947
  }
5948
+ /**
5949
+ * Downloads specific signing documents belonging to an applicant. If successful, the response will be the binary data representing the pdf.
5950
+ * @summary Download signing document
5951
+ * @param {string} signingDocumentId
5952
+ * @param {*} [options] Override http request option.
5953
+ * @throws {RequiredError}
5954
+ * @memberof DefaultApi
5955
+ */
5956
+ downloadSigningDocument(signingDocumentId, options) {
5957
+ return (0, exports.DefaultApiFp)(this.configuration).downloadSigningDocument(signingDocumentId, options).then((request) => request(this.axios, this.basePath));
5958
+ }
5283
5959
  /**
5284
5960
  * Extract information from a document
5285
5961
  * @summary Autofill
@@ -5390,6 +6066,18 @@ class DefaultApi extends base_1.BaseAPI {
5390
6066
  findMotionCapture(motionCaptureId, options) {
5391
6067
  return (0, exports.DefaultApiFp)(this.configuration).findMotionCapture(motionCaptureId, options).then((request) => request(this.axios, this.basePath));
5392
6068
  }
6069
+ /**
6070
+ * Returns a passkey\'s details.
6071
+ * @summary Retrieve passkey
6072
+ * @param {string} username Username that owns the passkey.
6073
+ * @param {string} passkeyId Passkey ID.
6074
+ * @param {*} [options] Override http request option.
6075
+ * @throws {RequiredError}
6076
+ * @memberof DefaultApi
6077
+ */
6078
+ findPasskey(username, passkeyId, options) {
6079
+ return (0, exports.DefaultApiFp)(this.configuration).findPasskey(username, passkeyId, options).then((request) => request(this.axios, this.basePath));
6080
+ }
5393
6081
  /**
5394
6082
  * A single report can be retrieved using this endpoint with the corresponding unique identifier.
5395
6083
  * @summary Retrieve report
@@ -5401,6 +6089,17 @@ class DefaultApi extends base_1.BaseAPI {
5401
6089
  findReport(reportId, options) {
5402
6090
  return (0, exports.DefaultApiFp)(this.configuration).findReport(reportId, options).then((request) => request(this.axios, this.basePath));
5403
6091
  }
6092
+ /**
6093
+ * A single signing document can be retrieved by calling this endpoint with the signing document\'s unique identifier.
6094
+ * @summary Retrieve signing document
6095
+ * @param {string} signingDocumentId
6096
+ * @param {*} [options] Override http request option.
6097
+ * @throws {RequiredError}
6098
+ * @memberof DefaultApi
6099
+ */
6100
+ findSigningDocument(signingDocumentId, options) {
6101
+ return (0, exports.DefaultApiFp)(this.configuration).findSigningDocument(signingDocumentId, options).then((request) => request(this.axios, this.basePath));
6102
+ }
5404
6103
  /**
5405
6104
  * A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
5406
6105
  * @summary Retrieve Task
@@ -5559,6 +6258,17 @@ class DefaultApi extends base_1.BaseAPI {
5559
6258
  listMotionCaptures(applicantId, options) {
5560
6259
  return (0, exports.DefaultApiFp)(this.configuration).listMotionCaptures(applicantId, options).then((request) => request(this.axios, this.basePath));
5561
6260
  }
6261
+ /**
6262
+ * Returns every passkey registered under the supplied username.
6263
+ * @summary List passkeys
6264
+ * @param {string} username Username that owns the passkeys.
6265
+ * @param {*} [options] Override http request option.
6266
+ * @throws {RequiredError}
6267
+ * @memberof DefaultApi
6268
+ */
6269
+ listPasskeys(username, options) {
6270
+ return (0, exports.DefaultApiFp)(this.configuration).listPasskeys(username, options).then((request) => request(this.axios, this.basePath));
6271
+ }
5562
6272
  /**
5563
6273
  * Returns all repeat attempts for a given Document report
5564
6274
  * @summary Retrieve repeat attempts
@@ -5581,6 +6291,17 @@ class DefaultApi extends base_1.BaseAPI {
5581
6291
  listReports(checkId, options) {
5582
6292
  return (0, exports.DefaultApiFp)(this.configuration).listReports(checkId, options).then((request) => request(this.axios, this.basePath));
5583
6293
  }
6294
+ /**
6295
+ * All signing documents belonging to an applicant can be listed from this endpoint
6296
+ * @summary List signing documents
6297
+ * @param {string} applicantId
6298
+ * @param {*} [options] Override http request option.
6299
+ * @throws {RequiredError}
6300
+ * @memberof DefaultApi
6301
+ */
6302
+ listSigningDocuments(applicantId, options) {
6303
+ return (0, exports.DefaultApiFp)(this.configuration).listSigningDocuments(applicantId, options).then((request) => request(this.axios, this.basePath));
6304
+ }
5584
6305
  /**
5585
6306
  * The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
5586
6307
  * @summary List Tasks
@@ -5718,6 +6439,19 @@ class DefaultApi extends base_1.BaseAPI {
5718
6439
  updateApplicant(applicantId, applicantUpdater, options) {
5719
6440
  return (0, exports.DefaultApiFp)(this.configuration).updateApplicant(applicantId, applicantUpdater, options).then((request) => request(this.axios, this.basePath));
5720
6441
  }
6442
+ /**
6443
+ * Updates a passkey\'s state.
6444
+ * @summary Update passkey
6445
+ * @param {string} username Username that owns the passkey.
6446
+ * @param {string} passkeyId Passkey ID.
6447
+ * @param {PasskeyUpdater} passkeyUpdater Passkey update payload.
6448
+ * @param {*} [options] Override http request option.
6449
+ * @throws {RequiredError}
6450
+ * @memberof DefaultApi
6451
+ */
6452
+ updatePasskey(username, passkeyId, passkeyUpdater, options) {
6453
+ return (0, exports.DefaultApiFp)(this.configuration).updatePasskey(username, passkeyId, passkeyUpdater, options).then((request) => request(this.axios, this.basePath));
6454
+ }
5721
6455
  /**
5722
6456
  * Update the status of the given matches
5723
6457
  * @summary Set match status (BETA)
@@ -5785,6 +6519,18 @@ class DefaultApi extends base_1.BaseAPI {
5785
6519
  uploadLivePhoto(applicantId, file, advancedValidation, options) {
5786
6520
  return (0, exports.DefaultApiFp)(this.configuration).uploadLivePhoto(applicantId, file, advancedValidation, options).then((request) => request(this.axios, this.basePath));
5787
6521
  }
6522
+ /**
6523
+ * Signing documents are uploaded using this endpoint. Signing documents must be uploaded as a multipart form. The only valid file type is pdf. The file size must be between 2KB and 3MB.
6524
+ * @summary Upload a signing document
6525
+ * @param {string} applicantId The ID of the applicant whose signing document is being uploaded.
6526
+ * @param {FileTransfer} file The file to be uploaded.
6527
+ * @param {*} [options] Override http request option.
6528
+ * @throws {RequiredError}
6529
+ * @memberof DefaultApi
6530
+ */
6531
+ uploadSigningDocument(applicantId, file, options) {
6532
+ return (0, exports.DefaultApiFp)(this.configuration).uploadSigningDocument(applicantId, file, options).then((request) => request(this.axios, this.basePath));
6533
+ }
5788
6534
  }
5789
6535
  exports.DefaultApi = DefaultApi;
5790
6536
  /**