idmission-web-sdk 1.0.398 → 1.0.400
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 +46 -130
- package/dist/components/CompositeWizard.d.ts +3 -3
- package/dist/components/common/debug.d.ts +3 -6
- package/dist/components/customer_flows/CustomerBiometricsEnrollment.d.ts +2 -17
- package/dist/components/customer_flows/CustomerIdAndBiometricsEnrollment.d.ts +6 -21
- package/dist/components/customer_flows/CustomerIdentification.d.ts +2 -17
- package/dist/components/customer_flows/CustomerVerification.d.ts +2 -17
- package/dist/components/customer_flows/DocumentCapture.d.ts +6 -17
- package/dist/components/customer_flows/FaceValidation.d.ts +2 -19
- package/dist/components/customer_flows/IdAndFaceValidation.d.ts +7 -22
- package/dist/components/customer_flows/IdValidation.d.ts +5 -26
- package/dist/components/customer_flows/SignatureKYC.d.ts +2 -21
- package/dist/components/customer_flows/VideoIdValidation.d.ts +2 -21
- package/dist/components/document_capture/DocumentCaptureStateProvider.d.ts +1 -1
- package/dist/components/id_capture/CapturedDocuments.d.ts +3 -5
- package/dist/components/id_capture/HighPerformanceObjectDetectionModelsProvider.d.ts +36 -0
- package/dist/components/id_capture/IdCapture.d.ts +6 -6
- package/dist/components/id_capture/IdCaptureModelsProvider.d.ts +35 -21
- package/dist/components/id_capture/IdCaptureStateProvider.d.ts +3 -7
- package/dist/components/id_capture/IdCaptureWizard.d.ts +2 -2
- package/dist/components/selfie_capture/HighPerformanceSelfieGuidanceModelsProvider.d.ts +42 -0
- package/dist/components/selfie_capture/SelfieCapture.d.ts +1 -1
- package/dist/components/selfie_capture/SelfieGuidanceModelsProvider.d.ts +3 -21
- package/dist/components/submission/Errors.d.ts +1 -1
- package/dist/components/submission/SubmissionProvider.d.ts +5 -26
- package/dist/components/submission/TokenIssuerNotAllowedErrorOverlay.d.ts +2 -0
- package/dist/components/submission/TokenMissingErrorOverlay.d.ts +2 -0
- package/dist/components/submission/TokenPublicKeyErrorOverlay.d.ts +5 -0
- package/dist/contexts/SelfieGuidanceModelsContext.d.ts +15 -0
- package/dist/contexts/SubmissionContext.d.ts +4 -13
- package/dist/index.d.ts +1 -7
- package/dist/lib/barcode/Scan.d.ts +1 -2
- package/dist/lib/models/DocumentDetection.d.ts +25 -69
- package/dist/lib/models/FaceDetection.d.ts +4 -33
- package/dist/lib/models/Focus.d.ts +9 -33
- package/dist/lib/models/preloadModels.d.ts +2 -9
- package/dist/lib/utils/cropping.d.ts +2 -3
- package/dist/lib/utils/dataUrlToBase64.d.ts +0 -2
- package/dist/lib/utils/logger.d.ts +0 -2
- package/dist/sdk2.cjs.development.js +8961 -2994
- package/dist/sdk2.cjs.development.js.map +1 -1
- package/dist/sdk2.cjs.production.js +1 -1
- package/dist/sdk2.cjs.production.js.map +1 -1
- package/dist/sdk2.esm.js +8964 -2995
- package/dist/sdk2.esm.js.map +1 -1
- package/dist/sdk2.umd.development.js +9003 -3035
- package/dist/sdk2.umd.development.js.map +1 -1
- package/dist/sdk2.umd.production.js +1 -1
- package/dist/sdk2.umd.production.js.map +1 -1
- package/dist/stories/Components/CompositeWizard/FaceLivenessAndIdCapture.stories.d.ts +9 -0
- package/dist/stories/Components/HighPerformanceFaceDetection/Minimal.stories.d.ts +12 -12
- package/dist/stories/Components/HighPerformanceFaceDetection/Original.stories.d.ts +8 -0
- package/dist/stories/CustomerFlows/CustomerBiometricsEnrollment.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerIdAndBiometricsEnrollment.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerIdentification.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/CustomerVerification.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/DocumentCapture.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/FaceValidation.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/IdAndFaceValidation.stories.d.ts +1 -6
- package/dist/stories/CustomerFlows/IdValidation.stories.d.ts +10 -23
- package/dist/stories/CustomerFlows/SignatureKYC.stories.d.ts +1 -5
- package/dist/stories/CustomerFlows/VideoIdValidation.stories.d.ts +2 -15
- package/dist/stories/Experiments/BarcodeReader.stories.d.ts +7 -0
- package/dist/stories/Experiments/VideoCapture.stories.d.ts +1 -1
- package/dist/stories/{Experiments/SpeedTest.stories.d.ts → models/DocumentDetection.stories.d.ts} +2 -2
- package/dist/stories/models/FocusModel.stories.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/id_capture/DocumentDetectionModelProvider.d.ts +0 -29
- package/dist/components/id_capture/FocusModelProvider.d.ts +0 -22
- package/dist/components/submission/AuthUrlNotAllowedOverlay.d.ts +0 -2
- package/dist/components/submission/SessionIdMissingOverlay.d.ts +0 -2
- package/dist/components/submission/SessionValidationErrorOverlay.d.ts +0 -6
- package/dist/components/submission/SessionValidationFailedOverlay.d.ts +0 -2
- package/dist/contexts/AuthStateContext.d.ts +0 -33
- package/dist/lib/models/CapabilityProbing.d.ts +0 -14
- package/dist/lib/models/FrameLoop.d.ts +0 -7
- package/dist/lib/models/VisionRuntime.d.ts +0 -2
- package/dist/lib/models/helpers.d.ts +0 -9
- package/dist/lib/utils/isMobile.d.ts +0 -1
- package/dist/stories/Auth.stories.d.ts +0 -8
- package/dist/stories/utils/sessions.d.ts +0 -13
- package/dist/stories/utils/useLocalStorage.d.ts +0 -1
package/README.md
CHANGED
|
@@ -6,16 +6,21 @@ Storybook: https://websdk2test.idmission.com
|
|
|
6
6
|
|
|
7
7
|
## Getting Started
|
|
8
8
|
|
|
9
|
-
Before using the IDmission WebSDK, you
|
|
9
|
+
Before using the IDmission WebSDK, you should make sure you can fetch a token. New customers receive their token generation credentials via email. If you haven't received them, reach out to support@idmission.com.
|
|
10
10
|
|
|
11
11
|
To test that your credentials are valid:
|
|
12
12
|
```bash
|
|
13
|
-
curl
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
curl --location --request POST 'https://auth.idmission.com/auth/realms/identity/protocol/openid-connect/token' \
|
|
14
|
+
--header 'Content-Type: application/x-www-form-urlencoded' \
|
|
15
|
+
--data-urlencode 'grant_type=password' \
|
|
16
|
+
--data-urlencode 'client_id=' \
|
|
17
|
+
--data-urlencode 'client_secret=' \
|
|
18
|
+
--data-urlencode 'username=' \
|
|
19
|
+
--data-urlencode 'password=' \
|
|
20
|
+
--data-urlencode 'scope=api_access'
|
|
16
21
|
```
|
|
17
22
|
|
|
18
|
-
Prior to initializing the WebSDK on the client, you should generate a
|
|
23
|
+
Prior to initializing the WebSDK on the client, you should generate a token on your server using these credentials. Be careful not to leak them on the client side! The generated token is safe to pass to the client, but the secrets used to generate them are not. If you have inadvertently leaked your client secret, react out to support@idmission.com to rotate your credentials.
|
|
19
24
|
|
|
20
25
|
If you are using NodeJS, check out our [auth client for server-side JavaScript](https://www.npmjs.com/package/idmission-auth-client).
|
|
21
26
|
|
|
@@ -30,7 +35,7 @@ import React from 'react'
|
|
|
30
35
|
import { render } from 'react-dom'
|
|
31
36
|
import { IdValidation } from 'idmission-web-sdk'
|
|
32
37
|
|
|
33
|
-
render(<IdValidation
|
|
38
|
+
render(<IdValidation submissionToken={YOUR_TOKEN} />, document.getElementById('root'))
|
|
34
39
|
```
|
|
35
40
|
|
|
36
41
|
## Basic Usage in HTML
|
|
@@ -53,7 +58,7 @@ You may subscribe to the `idmission-web-sdk.ready` event to be notified when loa
|
|
|
53
58
|
Then you may call any render method below, for example `renderIdValidation`, like so:
|
|
54
59
|
```html
|
|
55
60
|
<script type="module">
|
|
56
|
-
IDmissionSDK.renderIdValidation('#target-element', {
|
|
61
|
+
IDmissionSDK.renderIdValidation('#target-element', { submissionToken: 'my-idmission-token' });
|
|
57
62
|
</script>
|
|
58
63
|
```
|
|
59
64
|
|
|
@@ -66,14 +71,8 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
66
71
|
**Props**
|
|
67
72
|
|
|
68
73
|
<table>
|
|
69
|
-
<tr><td><code>
|
|
70
|
-
<tr><td><code>
|
|
71
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
72
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
73
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
74
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
75
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
76
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
74
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
75
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
77
76
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
78
77
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
79
78
|
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the IDValidation flow with a valid ID. Arguments: same as onComplete.</td></tr>
|
|
@@ -85,19 +84,14 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
85
84
|
<tr><td><code>captureSignature</code> (optional)</td><td>boolean indicating whether the user should be prompted to sign the screen before submission. Defaults to false.</td></tr>
|
|
86
85
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
87
86
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
88
|
-
<tr><td><code>
|
|
87
|
+
<tr><td><code>idCaptureRequirement</code> (optional)</td><td>string to indicate which types of documents should be captured. Valid values: idCard, passport, idCardOrPassport, idCardAndPassport. Default is idCardOrPassport.</td></tr>
|
|
89
88
|
<tr><td><code>idCaptureRequirement</code> (optional)</td><td>string to indicate which types of documents should be captured. Valid values: idCard, passport, idCardOrPassport, idCardAndPassport. Default is idCardOrPassport.</td></tr>
|
|
90
89
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
91
90
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8.</td></tr>
|
|
92
91
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75.</td></tr>
|
|
93
|
-
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards
|
|
94
|
-
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports
|
|
92
|
+
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards.</td></tr>
|
|
93
|
+
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports.</td></tr>
|
|
95
94
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
96
|
-
<tr><td><code>instructions</code> (optional)</td><td>React element or string to render on the instructions screen.</td></tr>
|
|
97
|
-
<tr><td><code>guideType</code> (optional)</td><td>string to indicate what type of guides to use during capture. Using fit is highly recommended in order to capture the best quality image. Valid values: fit, overlay. Defaults to fit.</td></tr>
|
|
98
|
-
<tr><td><code>portraitGuidesOnMobile</code> (optional)</td><td>boolean to indicate whether guide images should be rotated on mobile. Defaults to false.</td></tr>
|
|
99
|
-
<tr><td><code>rotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
|
|
100
|
-
<tr><td><code>precapturedDocuments</code> (optional)</td><td>object to allow documents that have been previously captured to be submitted. Valid keys: idCardFront, idCardBack, passport.</td></tr>
|
|
101
95
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
102
96
|
<tr><td><code>needImmediateResponse</code> (optional)</td><td>boolean to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true.</td></tr>
|
|
103
97
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human. Defaults to false.</td></tr>
|
|
@@ -114,10 +108,8 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
114
108
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
115
109
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
116
110
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
117
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
118
111
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
119
112
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Colors table below.</td></tr>
|
|
120
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
121
113
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
|
|
122
114
|
<tr><td><code>geolocationEnabled</code> (optional)</td><td>boolean flag to indicate whether users should be prompted to share their location. Defaults to true.</td></tr>
|
|
123
115
|
<tr><td><code>geolocationRequired</code> (optional)</td><td>boolean flag to indicate whether users should be blocked from proceeding if they block location access. Defaults to false.</td></tr>
|
|
@@ -208,7 +200,7 @@ Render a fullscreen ID capture component that instructs the user to photograph b
|
|
|
208
200
|
|
|
209
201
|
```js
|
|
210
202
|
IDmissionSDK.renderIdValidation('#target-element', {
|
|
211
|
-
|
|
203
|
+
submissionToken: 'my-idmission-token',
|
|
212
204
|
onApproved: (submissionResponse) => {
|
|
213
205
|
alert('Your ID has been validated, proceed to the next checkpoint.')
|
|
214
206
|
},
|
|
@@ -225,14 +217,8 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
225
217
|
**Props**
|
|
226
218
|
|
|
227
219
|
<table>
|
|
228
|
-
<tr><td><code>
|
|
229
|
-
<tr><td><code>
|
|
230
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
231
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
232
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
233
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
234
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
235
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
220
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
221
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
236
222
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
237
223
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the FaceValidation flow, regardless of whether they are approved or denied. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
238
224
|
<tr><td><code>onApproved</code> (optional)</td><td>callback function that fires when the user completes the FaceValidation flow and passes the realness check. Arguments: same as onComplete.</td></tr>
|
|
@@ -242,7 +228,6 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
242
228
|
<tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
|
|
243
229
|
<tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
|
|
244
230
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
245
|
-
<tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
246
231
|
<tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
247
232
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
248
233
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
@@ -252,13 +237,13 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
252
237
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
253
238
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
254
239
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
255
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
256
240
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
257
241
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Colors table below.</td></tr>
|
|
258
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
259
242
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
|
|
260
243
|
<tr><td><code>geolocationEnabled</code> (optional)</td><td>boolean flag to indicate whether users should be prompted to share their location. Defaults to true.</td></tr>
|
|
261
244
|
<tr><td><code>geolocationRequired</code> (optional)</td><td>boolean flag to indicate whether users should be blocked from proceeding if they block location access. Defaults to false.</td></tr>
|
|
245
|
+
<tr><td><code>geolocationEnabled</code> (optional)</td><td>boolean flag to indicate whether users should be prompted to share their location. Defaults to true.</td></tr>
|
|
246
|
+
<tr><td><code>geolocationRequired</code> (optional)</td><td>boolean flag to indicate whether users should be blocked from proceeding if they block location access. Defaults to false.</td></tr>
|
|
262
247
|
<tr><td><code>debugMode</code> (optional)</td><td>boolean flag to enable on-screen prediction information output. Defaults to false.</td></tr>
|
|
263
248
|
</table>
|
|
264
249
|
|
|
@@ -328,7 +313,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
328
313
|
|
|
329
314
|
```js
|
|
330
315
|
IDmissionSDK.renderFaceValidation('#target-element', {
|
|
331
|
-
|
|
316
|
+
submissionToken: 'my-idmission-token',
|
|
332
317
|
onApproved: (submissionResponse) => {
|
|
333
318
|
alert('Your face is real, proceed to the next checkpoint.')
|
|
334
319
|
},
|
|
@@ -345,14 +330,8 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
345
330
|
**Props**
|
|
346
331
|
|
|
347
332
|
<table>
|
|
348
|
-
<tr><td><code>
|
|
349
|
-
<tr><td><code>
|
|
350
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
351
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
352
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
353
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
354
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
355
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
333
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
334
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
356
335
|
<tr><td><code>onBeforeLivenessCheck</code> (optional)</td><td>callback function that fires immediately prior to liveness check, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The liveness check request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
357
336
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
358
337
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed both flows. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
@@ -366,21 +345,15 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
366
345
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
367
346
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
368
347
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
369
|
-
<tr><td><code>
|
|
370
|
-
<tr><td><code>idCaptureLoadingOverlayMode</code> (optional)</td><td>string indicating which ID capture loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
348
|
+
<tr><td><code>idCaptureRequirement</code> (optional)</td><td>string to indicate which types of documents should be captured. Valid values: idCard, passport, idCardOrPassport, idCardAndPassport. Default is idCardOrPassport.</td></tr>
|
|
371
349
|
<tr><td><code>idCaptureRequirement</code> (optional)</td><td>string to indicate which types of documents should be captured. Valid values: idCard, passport, idCardOrPassport, idCardAndPassport. Default is idCardOrPassport.</td></tr>
|
|
372
350
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
373
351
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8.</td></tr>
|
|
374
352
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75.</td></tr>
|
|
375
|
-
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards
|
|
376
|
-
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports
|
|
377
|
-
<tr><td><code>faceLivenessLoadingOverlayMode</code> (optional)</td><td>string indicating which face liveness loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
353
|
+
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards.</td></tr>
|
|
354
|
+
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports.</td></tr>
|
|
378
355
|
<tr><td><code>faceLivenessTimeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
379
356
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
380
|
-
<tr><td><code>idCaptureInstructions</code> (optional)</td><td>React element or string to render on the instructions screen.</td></tr>
|
|
381
|
-
<tr><td><code>idCaptureGuideType</code> (optional)</td><td>string to indicate what type of guides to use during capture. Using fit is highly recommended in order to capture the best quality image. Valid values: fit, overlay. Defaults to fit.</td></tr>
|
|
382
|
-
<tr><td><code>idCapturePortraitGuidesOnMobile</code> (optional)</td><td>boolean to indicate whether guide images should be rotated on mobile. Defaults to false.</td></tr>
|
|
383
|
-
<tr><td><code>idCaptureRotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
|
|
384
357
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
385
358
|
<tr><td><code>needImmediateResponse</code> (optional)</td><td>boolean to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true.</td></tr>
|
|
386
359
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human. Defaults to false.</td></tr>
|
|
@@ -397,8 +370,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
397
370
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
398
371
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
399
372
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
400
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
401
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
402
373
|
<tr><td><code>assets.idCapture</code> (optional)</td><td>object containing any asset overrides, for available options consult the ID Capture Assets table above.</td></tr>
|
|
403
374
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
404
375
|
<tr><td><code>colors.idCapture</code> (optional)</td><td>object containing any color overrides, for available options consult the ID Capture Colors table above.</td></tr>
|
|
@@ -416,7 +387,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
416
387
|
|
|
417
388
|
```js
|
|
418
389
|
IDmissionSDK.renderIdAndFaceValidation('#target-element', {
|
|
419
|
-
|
|
390
|
+
submissionToken: 'my-idmission-token',
|
|
420
391
|
onApproved: (submissionResponse) => {
|
|
421
392
|
alert('Your ID has been validated and your face is real, proceed to the next checkpoint.')
|
|
422
393
|
},
|
|
@@ -433,14 +404,8 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
433
404
|
**Props**
|
|
434
405
|
|
|
435
406
|
<table>
|
|
436
|
-
<tr><td><code>
|
|
437
|
-
<tr><td><code>
|
|
438
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
439
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
440
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
441
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
442
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
443
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
407
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
408
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
444
409
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to use for the customer to be enrolled. Overrides <code>personalData.uniqueNumber</code> if both are specified.</td></tr>
|
|
445
410
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
446
411
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdAndBiometricsEnrollment flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
@@ -454,20 +419,14 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
454
419
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
455
420
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
456
421
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
457
|
-
<tr><td><code>idCaptureLoadingOverlayMode</code> (optional)</td><td>string indicating which ID capture loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
458
422
|
<tr><td><code>idCaptureRequirement</code> (optional)</td><td>string to indicate which types of documents should be captured. Valid values: idCard, passport, idCardOrPassport, idCardAndPassport. Default is idCardOrPassport.</td></tr>
|
|
459
423
|
<tr><td><code>idAutoCaptureEnabled</code> (optional)</td><td>boolean to indicate whether photos should be captured automatically when guidance conditions are met. Default is `true`.</td></tr>
|
|
460
424
|
<tr><td><code>idCardAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for ID cards. Defaults to 0.8.</td></tr>
|
|
461
425
|
<tr><td><code>passportAutoCaptureScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which document detection guidance score condition is considered to be met for passports. Defaults to 0.75.</td></tr>
|
|
462
|
-
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards
|
|
463
|
-
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports
|
|
464
|
-
<tr><td><code>faceLivenessLoadingOverlayMode</code> (optional)</td><td>string indicating which face liveness loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
426
|
+
<tr><td><code>idCardFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for ID cards.</td></tr>
|
|
427
|
+
<tr><td><code>passportFocusScoreThreshold</code> (optional)</td><td>number between 0 and 1 at which focus guidance score condition is considered to be met for passports.</td></tr>
|
|
465
428
|
<tr><td><code>faceLivenessTimeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
466
429
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
467
|
-
<tr><td><code>idCaptureInstructions</code> (optional)</td><td>React element or string to render on the instructions screen.</td></tr>
|
|
468
|
-
<tr><td><code>idCaptureGuideType</code> (optional)</td><td>string to indicate what type of guides to use during capture. Using fit is highly recommended in order to capture the best quality image. Valid values: fit, overlay. Defaults to fit.</td></tr>
|
|
469
|
-
<tr><td><code>idCapturePortraitGuidesOnMobile</code> (optional)</td><td>boolean to indicate whether guide images should be rotated on mobile. Defaults to false.</td></tr>
|
|
470
|
-
<tr><td><code>idCaptureRotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
|
|
471
430
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
472
431
|
<tr><td><code>needImmediateResponse</code> (optional)</td><td>boolean to indicate if validation of the minimum resolution for an ID document image should be triggered. Defaults to true.</td></tr>
|
|
473
432
|
<tr><td><code>manualReviewRequired</code> (optional)</td><td>boolean flag to indicate whether responses should always be reviewed by a human. Defaults to false.</td></tr>
|
|
@@ -486,8 +445,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
486
445
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
487
446
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
488
447
|
<tr><td><code>webhooksFireOnReview</code> (optional)</td><td>boolean flag to indicate whether customer-configured webhooks should be invoked upon ID being marked for manual review. Defaults to false.</td></tr>
|
|
489
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
490
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
491
448
|
<tr><td><code>assets.idCapture</code> (optional)</td><td>object containing any asset overrides, for available options consult the ID Capture Assets table above.</td></tr>
|
|
492
449
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
493
450
|
<tr><td><code>colors.idCapture</code> (optional)</td><td>object containing any color overrides, for available options consult the ID Capture Colors table above.</td></tr>
|
|
@@ -507,7 +464,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
507
464
|
|
|
508
465
|
```js
|
|
509
466
|
IDmissionSDK.renderCustomerIdAndBiometricsEnrollment('#target-element', {
|
|
510
|
-
|
|
467
|
+
submissionToken: 'my-idmission-token',
|
|
511
468
|
enrollmentId: 'some-guy',
|
|
512
469
|
});
|
|
513
470
|
```
|
|
@@ -519,14 +476,8 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
519
476
|
**Props**
|
|
520
477
|
|
|
521
478
|
<table>
|
|
522
|
-
<tr><td><code>
|
|
523
|
-
<tr><td><code>
|
|
524
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
525
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
526
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
527
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
528
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
529
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
479
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
480
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
530
481
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to use for the customer to be enrolled. Overrides <code>personalData.uniqueNumber</code> if both are specified.</td></tr>
|
|
531
482
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
532
483
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerBiometricsEnrollment flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
@@ -540,7 +491,6 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
540
491
|
<tr><td><code>captureSignatureVideo</code> (optional)</td><td>boolean indicating whether the user should be prompted to record themselves signing the screen before submission. Defaults to false.</td></tr>
|
|
541
492
|
<tr><td><code>captureAdditionalDocuments</code> (optional)</td><td>array of additional documents to be captured. Each element includes a name and description.</td></tr>
|
|
542
493
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
543
|
-
<tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
544
494
|
<tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
545
495
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
546
496
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
@@ -552,8 +502,6 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
552
502
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
553
503
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
554
504
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
555
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
556
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
557
505
|
<tr><td><code>assets.faceLiveness</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
558
506
|
<tr><td><code>colors.faceLiveness</code> (optional)</td><td>object containing any color overrides, for available options consult the Face Liveness Colors table above.</td></tr>
|
|
559
507
|
<tr><td><code>colors.videoSignatureCapture</code> (optional)</td><td>object containing any color overrides, for available options consult the videoSignatureCapture fields in the ID Capture Colors table above.</td></tr>
|
|
@@ -570,7 +518,7 @@ Render a fullscreen capture component that performs FaceValidation, and then sto
|
|
|
570
518
|
|
|
571
519
|
```js
|
|
572
520
|
IDmissionSDK.renderCustomerBiometricsEnrollment('#target-element', {
|
|
573
|
-
|
|
521
|
+
submissionToken: 'my-idmission-token',
|
|
574
522
|
enrollmentId: 'some-guy',
|
|
575
523
|
});
|
|
576
524
|
```
|
|
@@ -582,14 +530,8 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
582
530
|
**Props**
|
|
583
531
|
|
|
584
532
|
<table>
|
|
585
|
-
<tr><td><code>
|
|
586
|
-
<tr><td><code>
|
|
587
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
588
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
589
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
590
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
591
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
592
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
533
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
534
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
593
535
|
<tr><td><code>enrollmentId</code></td><td>the unique identifier to match from previously enrolled customers.</td></tr>
|
|
594
536
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
595
537
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerVerification flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
@@ -600,7 +542,6 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
600
542
|
<tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
|
|
601
543
|
<tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
|
|
602
544
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
603
|
-
<tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
604
545
|
<tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
605
546
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
606
547
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
@@ -610,8 +551,6 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
610
551
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
611
552
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
612
553
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
613
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
614
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
615
554
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Face Liveness Assets table above.</td></tr>
|
|
616
555
|
<tr><td><code>colors</code> (optional)</td><td>object containing any color overrides, for available options consult the Face Liveness Colors table above.</td></tr>
|
|
617
556
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Face Liveness Verbiage table above.</td></tr>
|
|
@@ -624,7 +563,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
624
563
|
|
|
625
564
|
```js
|
|
626
565
|
IDmissionSDK.renderCustomerVerification('#target-element', {
|
|
627
|
-
|
|
566
|
+
submissionToken: 'my-idmission-token',
|
|
628
567
|
enrollmentId: 'some-guy',
|
|
629
568
|
});
|
|
630
569
|
```
|
|
@@ -636,14 +575,8 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
636
575
|
**Props**
|
|
637
576
|
|
|
638
577
|
<table>
|
|
639
|
-
<tr><td><code>
|
|
640
|
-
<tr><td><code>
|
|
641
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
642
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
643
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
644
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
645
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
646
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
578
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
579
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
647
580
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
648
581
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
649
582
|
<tr><td><code>onCustomerMatched</code> (optional)</td><td>callback function that fires when the user has completed the CustomerIdentification flow and matches a pre-registered customer <code>enrollmentId</code> in IDmission's database. The SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check.</td></tr>
|
|
@@ -652,8 +585,6 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
652
585
|
<tr><td><code>onExitAfterFailure</code> (optional)</td><td>callback function that fires when the user clicks the exit button after failing the realness check.</td></tr>
|
|
653
586
|
<tr><td><code>onUserCancel</code> (optional)</td><td>callback function that fires when the user clicks the exit button from the loading overlay, declining to engage with IDmission. Binding this callback results in the cancel button being rendered on the loading overlay.</td></tr>
|
|
654
587
|
<tr><td><code>onCameraAccessDenied</code> (optional)</td><td>callback function that fires when camera access is denied or lost.</td></tr>
|
|
655
|
-
<tr><td><code>loadingOverlayMode</code> (optional)</td><td>string indicating which loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
656
|
-
<tr><td><code>timeoutDurationMs</code> (optional)</td><td>the duration of time in milliseconds that the user may try to pass the realness check. Defaults to 15000 (15 seconds).</td></tr>
|
|
657
588
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
658
589
|
<tr><td><code>lang</code> (optional)</td><td>language code to use. Supported values: 'auto' (detect based on user's OS), 'en' (English), 'es' (Spanish). Defaults to auto.</td></tr>
|
|
659
590
|
<tr><td><code>companyId</code> (optional)</td><td>company identifier to include with submission.</td></tr>
|
|
@@ -663,8 +594,6 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
663
594
|
<tr><td><code>webhooksStripSpecialCharacters</code> (optional)</td><td>boolean flag to indicate whether non-alphanumeric characters should be removed from the submission data when customer-configured webhooks are invoked. Defaults to true.</td></tr>
|
|
664
595
|
<tr><td><code>webhooksSendInputImages</code> (optional)</td><td>boolean flag to indicate whether raw user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
665
596
|
<tr><td><code>webhooksSendProcessedImages</code> (optional)</td><td>boolean flag to indicate whether processed user-captured images should be included in the submission data when customer-configured webhooks are invoked. Defaults to false.</td></tr>
|
|
666
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
667
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
668
597
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
669
598
|
<tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
|
|
670
599
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
|
|
@@ -735,7 +664,7 @@ Render a fullscreen capture component that analyzes frames from the user's front
|
|
|
735
664
|
**Example**
|
|
736
665
|
|
|
737
666
|
```js
|
|
738
|
-
IDmissionSDK.renderCustomerIdentification('#target-element', {
|
|
667
|
+
IDmissionSDK.renderCustomerIdentification('#target-element', { submissionToken: 'my-idmission-token' });
|
|
739
668
|
```
|
|
740
669
|
|
|
741
670
|
### VideoIdValidation
|
|
@@ -745,14 +674,8 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
745
674
|
**Props**
|
|
746
675
|
|
|
747
676
|
<table>
|
|
748
|
-
<tr><td><code>
|
|
749
|
-
<tr><td><code>
|
|
750
|
-
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to submit data to. Default: https://portal-api.idmission.com/swagger</td></tr>
|
|
751
|
-
<tr><td><code>documentServiceUrl</code> (optional)</td><td>URL to upload image/video/audio assets to via [tus](https://tus.io/). Default: https://portal-api.idmission.com/files/</td></tr>
|
|
752
|
-
<tr><td><code>onBeforeDocumentUpload</code> (optional)</td><td>callback function that fires immediately prior to each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document contents before it is exchanged for a document token. The document content and metadata are passed in as parameters and a promise resolving to void or false should be returned. If the returned promise resolves to false, the document will not be uploaded.</td></tr>
|
|
753
|
-
<tr><td><code>onDocumentUploadProgress</code> (optional)</td><td>callback function that fires when progress information is available for a document upload. The progress info and metadata are passed in as parameters.</td></tr>
|
|
754
|
-
<tr><td><code>onDocumentUploaded</code> (optional)</td><td>callback function that fires immediately after each document upload, giving the client application an opportunity to specify custom asynchronous logic that captures the document token. The document token and metadata are passed in as parameters.</td></tr>
|
|
755
|
-
<tr><td><code>onDocumentUploadFailed</code> (optional)</td><td>callback function that fires when a document failed to upload. The error and metadata are passed in as parameters.</td></tr>
|
|
677
|
+
<tr><td><code>submissionToken</code></td><td>a token generated with your IDmission credentials.</td></tr>
|
|
678
|
+
<tr><td><code>submissionUrl</code> (optional)</td><td>URL to hit with all API requests. Default: https://api.idmission.com</td></tr>
|
|
756
679
|
<tr><td><code>onBeforeSubmit</code> (optional)</td><td>callback function that fires immediately prior to submission, giving the client application an opportunity to specify custom asynchronous logic that mutates the request before it executes. The submission request is passed in as a parameter and a promise resolving to the updated request should be returned.</td></tr>
|
|
757
680
|
<tr><td><code>onSubmit</code> (optional)</td><td>callback function that fires when the user has completed the flow instead of making a call to IDmission's servers, allowing customers to specify their own submission logic. Arguments: the request payload that would have been dispatched to IDmission's API, which contains the images/documents/video submitted by the user. Note that when this parameter is supplied, `onComplete` will never fire, and the customer will need to implement their own error handling/retry logic. Use at your own risk!</td></tr>
|
|
758
681
|
<tr><td><code>onComplete</code> (optional)</td><td>callback function that fires when the user has completed the VideoIdValidation flow. Arguments: the SubmissionResponse from IDmission's API is passed as an argument to the customer's application for further handling, which indicates whether the user passed the validation check, and the request payload dispatched to IDmission's API, which contains the images submitted by the user.</td></tr>
|
|
@@ -793,13 +716,6 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
793
716
|
<tr><td><code>skipSuccessScreen</code> (optional)</td><td>boolean or async function to indicate whether to proceed automatically after capture guidance is satisfied. If an async function is supplied returning a boolean, it will be evaluated at the time of capture guidance satisfaction. Defaults to false.</td></tr>
|
|
794
717
|
<tr><td><code>skipIdCapture</code> (optional)</td><td>boolean to indicate whether to skip the initial ID capture flow. Note that when this flag is set, submission to IDmission's servers will not be attempted; it should be used in tandem with onSubmit. Defaults to false.</td></tr>
|
|
795
718
|
<tr><td><code>skipShowIdCardBack</code> (optional)</td><td>boolean or async function to indicate whether to instruct the user to show the back of their ID card during video capture. If an async function is supplied returning a boolean, it will be evaluated at the time of ID front video capture completion. Defaults to false.</td></tr>
|
|
796
|
-
<tr><td><code>idCaptureLoadingOverlayMode</code> (optional)</td><td>string indicating which ID capture loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
797
|
-
<tr><td><code>idCaptureGuideType</code> (optional)</td><td>string to indicate what type of guides to use during capture. Using fit is highly recommended in order to capture the best quality image. Valid values: fit, overlay. Defaults to fit.</td></tr>
|
|
798
|
-
<tr><td><code>idCapturePortraitGuidesOnMobile</code> (optional)</td><td>boolean to indicate whether guide images should be rotated on mobile. Defaults to false.</td></tr>
|
|
799
|
-
<tr><td><code>idCaptureRotateLoadingOverlayImageWhenPortrait</code> (optional)</td><td>boolean to indicate whether loading overlay image should be rotated on when mobile guides are rotated. Defaults to true.</td></tr>
|
|
800
|
-
<tr><td><code>faceLivenessLoadingOverlayMode</code> (optional)</td><td>string indicating which face liveness loading overlay screen should be used. Supported values: default and legacy. Defaults to default.</td></tr>
|
|
801
|
-
<tr><td><code>sendBase64DocumentsInSwaggerProxy</code> (optional)</td><td>boolean flag to enable download and replace behavior for documents in the Swagger Proxy API. Defaults to false.</td></tr>
|
|
802
|
-
<tr><td><code>theme</code> (optional)</td><td>name of an included theme or object containing theme properties.</td></tr>
|
|
803
719
|
<tr><td><code>assets</code> (optional)</td><td>object containing any asset overrides, for available options consult the Assets table below.</td></tr>
|
|
804
720
|
<tr><td><code>colors</code> (optional)</td><td>object containing any asset overrides, for available options consult the Colors table below.</td></tr>
|
|
805
721
|
<tr><td><code>verbiage</code> (optional)</td><td>object containing any verbiage overrides, for available options consult the Verbiage table below.</td></tr>
|
|
@@ -850,7 +766,7 @@ Render a fullscreen capture component that performs IDValidation and FaceValidat
|
|
|
850
766
|
**Example**
|
|
851
767
|
|
|
852
768
|
```js
|
|
853
|
-
IDmissionSDK.renderVideoIdValidation('#target-element', {
|
|
769
|
+
IDmissionSDK.renderVideoIdValidation('#target-element', { submissionToken: 'my-idmission-token' });
|
|
854
770
|
```
|
|
855
771
|
|
|
856
772
|
## Other Functionality
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IdCaptureWizardProps } from './id_capture/IdCaptureWizard';
|
|
3
3
|
import { FaceLivenessWizardProps } from './face_liveness/FaceLivenessWizard';
|
|
4
|
-
import { SubmissionAction, SubmissionResponse } from '../contexts/SubmissionContext';
|
|
4
|
+
import { SubmissionAction, SubmissionEnvironment, SubmissionResponse } from '../contexts/SubmissionContext';
|
|
5
5
|
import { AdditionalDocumentCaptureWizardProps } from './additional_document_capture/AdditionalDocumentCaptureWizard';
|
|
6
6
|
import { SignatureCaptureProps } from './signature_capture/SignatureCapture';
|
|
7
7
|
import { VideoSignatureWizardProps } from './video_signature_capture/VideoSignatureWizard';
|
|
@@ -22,10 +22,10 @@ export type CompositeWizardComponentProps = {
|
|
|
22
22
|
debugMode?: boolean;
|
|
23
23
|
};
|
|
24
24
|
export type CompositeWizardProps = CompositeWizardComponentProps & {
|
|
25
|
-
|
|
25
|
+
submissionToken: string;
|
|
26
26
|
submissionAction?: SubmissionAction;
|
|
27
|
+
submissionEnvironment?: SubmissionEnvironment;
|
|
27
28
|
submissionUrl?: string;
|
|
28
|
-
authUrl?: string;
|
|
29
29
|
onComplete?: (submissionResponse: SubmissionResponse) => void;
|
|
30
30
|
};
|
|
31
31
|
export declare const CompositeWizard: (props: CompositeWizardProps) => ReactElement;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import { DetectedObject } from '../../lib/models/DocumentDetection';
|
|
3
|
-
import { Face, FaceKeypoint } from '
|
|
4
|
-
export declare
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
export declare const DebugStatsPaneDiv: import("styled-components").IStyledComponent<"web", {
|
|
3
|
+
import { Face, FaceKeypoint } from '../selfie_capture/HighPerformanceSelfieGuidanceModelsProvider';
|
|
4
|
+
export declare const DebugStatsPane: import("styled-components").IStyledComponent<"web", {
|
|
8
5
|
ref?: React.LegacyRef<HTMLSpanElement> | undefined;
|
|
9
6
|
key?: React.Key | null | undefined;
|
|
10
7
|
defaultChecked?: boolean | undefined;
|
|
@@ -316,7 +313,7 @@ export type DetectedObjectDebugBoxProps = {
|
|
|
316
313
|
flipX?: boolean;
|
|
317
314
|
color?: string;
|
|
318
315
|
};
|
|
319
|
-
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color,
|
|
316
|
+
export declare function IdCaptureDetectedObjectDebugBox({ obj, flipX, color, }: DetectedObjectDebugBoxProps): ReactElement;
|
|
320
317
|
export type SelfieCaptureFaceDebugBoxProps = {
|
|
321
318
|
face: Face;
|
|
322
319
|
scaling: DebugScalingDetails;
|