@incodetech/welcome 1.94.0 → 1.95.0-20261027125024.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/THIRD-PARTY-NOTICES.txt +18 -0
- package/dist/THIRD-PARTY-NOTICES.txt +18 -0
- package/dist/onBoarding.d.ts +49 -13
- package/dist/onBoarding.mjs +20123 -19160
- package/dist/onBoarding.umd.js +2093 -1669
- package/dist/recorderModule-C37Ga2Wf.mjs +14058 -0
- package/package.json +11 -5
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Mediabunny 1.56.2
|
|
2
|
+
Copyright (c) 2026-present, Vanilagy and contributors
|
|
3
|
+
|
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
|
|
8
|
+
The SDK and its embedded classic recorder worker include bundled,
|
|
9
|
+
minified portions of Mediabunny. Mediabunny source files are unmodified.
|
|
10
|
+
The corresponding source code (including the license and source files)
|
|
11
|
+
for this exact version is available at:
|
|
12
|
+
https://registry.npmjs.org/mediabunny/-/mediabunny-1.56.2.tgz
|
|
13
|
+
|
|
14
|
+
Project: https://github.com/Vanilagy/mediabunny
|
|
15
|
+
|
|
16
|
+
This notice covers the recorder's Mediabunny dependency; other bundled
|
|
17
|
+
dependencies retain their own license notices. It is not a grant of
|
|
18
|
+
codec patent rights.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Mediabunny 1.56.2
|
|
2
|
+
Copyright (c) 2026-present, Vanilagy and contributors
|
|
3
|
+
|
|
4
|
+
This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
|
|
8
|
+
The SDK and its embedded classic recorder worker include bundled,
|
|
9
|
+
minified portions of Mediabunny. Mediabunny source files are unmodified.
|
|
10
|
+
The corresponding source code (including the license and source files)
|
|
11
|
+
for this exact version is available at:
|
|
12
|
+
https://registry.npmjs.org/mediabunny/-/mediabunny-1.56.2.tgz
|
|
13
|
+
|
|
14
|
+
Project: https://github.com/Vanilagy/mediabunny
|
|
15
|
+
|
|
16
|
+
This notice covers the recorder's Mediabunny dependency; other bundled
|
|
17
|
+
dependencies retain their own license notices. It is not a grant of
|
|
18
|
+
codec patent rights.
|
package/dist/onBoarding.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export declare type AddDocumentResponse = {
|
|
|
124
124
|
|
|
125
125
|
export declare type AddDocumentStatus = 'SUCCESS' | 'PROCESS_DOC_ERROR' | 'SESSION_ERROR' | 'ADD_NEXT_PAGE' | 'OPTIONAL_PAGE_CAPTURE' | 'CLASSIFICATION_ERROR' | 'MULTI_PAGE_CLASSIFICATION_ERROR' | 'V5C_REGISTRATION_NUMBER_MISMATCH' | 'V5C_REFERENCE_NUMBER_MISMATCH' | 'V5C_NUMBER_MISMATCH' | 'FSL_AGREEMENT_REFERENCE_MISMATCH' | 'FSL_NAME_MISMATCH' | 'MANDATORY_FIELD_MISSING' | 'UNSUPPORTED_PAGE_NUMBERS' | 'VALIDATION_ERROR' | 'UNEXPECTED_ERROR' | 'FINALIZE_ERROR_NO_PAGES' | 'UNSUPPORTED_MP_DOCUMENT_TYPE';
|
|
126
126
|
|
|
127
|
-
export declare function addEvent(event: Event_2): Promise<void | WebClientResponse<any
|
|
127
|
+
export declare function addEvent(event: Event_2): Promise<(void | WebClientResponse<any>)[]>;
|
|
128
128
|
|
|
129
129
|
declare function addFrontSecondId({ token, image, onProgress }: {
|
|
130
130
|
token: any;
|
|
@@ -528,6 +528,9 @@ declare type CaptureParams = {
|
|
|
528
528
|
sharpness?: number;
|
|
529
529
|
shouldSkipGlareBack?: boolean;
|
|
530
530
|
shouldSkipGlareFront?: boolean;
|
|
531
|
+
/** Backend `CaptureType`: `AUTO` | `MANUAL` | `UPLOAD`. The only source of
|
|
532
|
+
* the session's front/back/selfie capture type — the backend no longer
|
|
533
|
+
* derives it from the `capture*` / `manualCapture*` interview events. */
|
|
531
534
|
captureType?: string;
|
|
532
535
|
shouldAddGlare?: boolean;
|
|
533
536
|
recordingId?: string;
|
|
@@ -629,6 +632,24 @@ declare type Consent = {
|
|
|
629
632
|
description: string;
|
|
630
633
|
};
|
|
631
634
|
|
|
635
|
+
/**
|
|
636
|
+
* Continues the session behind a desktop→mobile handoff link (`?uuid=` from
|
|
637
|
+
* `renderRedirectToMobile`) through `POST /omni/session/continue`. Only `uuid`
|
|
638
|
+
* and `urlUuid` are sent, and the response `sessionId` becomes `interviewId`.
|
|
639
|
+
* `createNewSession` with `uuid` does the same.
|
|
640
|
+
*
|
|
641
|
+
* Each call spends one continue of a server-set limit (two by default) inside
|
|
642
|
+
* 48 hours of the session start. A refused continue throws `{ status }`:
|
|
643
|
+
* 4026 unknown or expired link, 4086 window passed, 4087 limit reached,
|
|
644
|
+
* 4088 session no longer active.
|
|
645
|
+
*/
|
|
646
|
+
export declare function continueSession({ uuid, urlUuid, version, disableFingerprint, }: {
|
|
647
|
+
uuid: string;
|
|
648
|
+
urlUuid?: string;
|
|
649
|
+
version?: string;
|
|
650
|
+
disableFingerprint?: boolean;
|
|
651
|
+
}): Promise<Session>;
|
|
652
|
+
|
|
632
653
|
declare type CrashReport = {
|
|
633
654
|
message: string;
|
|
634
655
|
stack: string;
|
|
@@ -677,6 +698,7 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
677
698
|
}): {
|
|
678
699
|
createSession: typeof createSession;
|
|
679
700
|
createNewSession: typeof createNewSession;
|
|
701
|
+
continueSession: typeof continueSession;
|
|
680
702
|
updateSession: typeof updateSession;
|
|
681
703
|
publishKeys: typeof initializeEncryption;
|
|
682
704
|
capture: typeof capture;
|
|
@@ -753,7 +775,7 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
753
775
|
token: string;
|
|
754
776
|
}) => Promise<{
|
|
755
777
|
redirectionUrl: string;
|
|
756
|
-
action: "none" | "
|
|
778
|
+
action: "none" | "rejected" | "approved";
|
|
757
779
|
scoreStatus: TotalScore;
|
|
758
780
|
}>;
|
|
759
781
|
renderLogin: typeof renderLogin_2;
|
|
@@ -1160,10 +1182,12 @@ declare type CreateError<TSpecificErrors extends string = never> = {
|
|
|
1160
1182
|
};
|
|
1161
1183
|
|
|
1162
1184
|
export declare function createNewSession({ externalId, externalCustomerId, configurationId, uuid, interviewId, customFields, language: _language, version, urlUuid, integrationReference, loginHint, disableFingerprint, }?: {
|
|
1185
|
+
/** @deprecated */
|
|
1163
1186
|
externalId?: string;
|
|
1164
1187
|
externalCustomerId?: string;
|
|
1165
1188
|
configurationId?: string;
|
|
1166
1189
|
uuid?: string;
|
|
1190
|
+
/** @deprecated */
|
|
1167
1191
|
interviewId?: string;
|
|
1168
1192
|
customFields?: object;
|
|
1169
1193
|
language?: string;
|
|
@@ -1185,10 +1209,14 @@ declare type CreateRedirectUrlType = {
|
|
|
1185
1209
|
session: LooseSession;
|
|
1186
1210
|
};
|
|
1187
1211
|
|
|
1212
|
+
/**
|
|
1213
|
+
* @param externalId - Deprecated.
|
|
1214
|
+
*/
|
|
1188
1215
|
export declare function createSession(_countryCode: string, externalId?: string, { externalCustomerId, configurationId, uuid, interviewId, customFields, language, forceProductionMode, urlUuid, }?: {
|
|
1189
1216
|
externalCustomerId?: string;
|
|
1190
1217
|
configurationId?: string;
|
|
1191
1218
|
uuid?: string;
|
|
1219
|
+
/** @deprecated */
|
|
1192
1220
|
interviewId?: string;
|
|
1193
1221
|
customFields?: object;
|
|
1194
1222
|
language?: string;
|
|
@@ -1700,7 +1728,7 @@ declare interface FaceProcessingPipelineResult {
|
|
|
1700
1728
|
|
|
1701
1729
|
export declare type FaceSuccess = SendFaceImageResponse;
|
|
1702
1730
|
|
|
1703
|
-
declare const FEATURE_FLAGS: readonly ["id_text_barcode_readability", "selfie_local_lenses_check_web", "id_model_hebrew_back_id", "id_face_readability", "id_face_detector", "ml_capture_core_enabled", "new_id_capture_ux_least_risky_clients", "enable_sentry_web", "id_test_aa", "id_iou_check", "iad_checks", "iad_c_checks", "fdm", "new_fingerprint", "mp_test_hashed_id", "id_quality_backend_validation", "id_video_recording_enabled", "enable_app_logs"];
|
|
1731
|
+
declare const FEATURE_FLAGS: readonly ["id_text_barcode_readability", "selfie_local_lenses_check_web", "id_model_hebrew_back_id", "id_face_readability", "id_face_detector", "ml_capture_core_enabled", "new_id_capture_ux_least_risky_clients", "enable_sentry_web", "id_test_aa", "id_iou_check", "iad_checks", "iad_c_checks", "fdm", "new_fingerprint", "mp_test_hashed_id", "id_quality_backend_validation", "id_video_recording_enabled", "enable_app_logs", "selfie_video_recorder_v2_web", "incode_device_fingerprint"];
|
|
1704
1732
|
|
|
1705
1733
|
declare type FeatureConfig = {
|
|
1706
1734
|
enabled: boolean;
|
|
@@ -1892,7 +1920,7 @@ declare type FlowModuleConfig = {
|
|
|
1892
1920
|
prefillSource?: string;
|
|
1893
1921
|
};
|
|
1894
1922
|
EXTERNAL_VERIFICATION: {
|
|
1895
|
-
source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'MX_CIVIL_REGISTER_2' | 'BR_GOVT_1' | 'BR_TAX_PHONE_REGISTER' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'GB_2X2' | 'ES_PHONE_REGISTER_2' | 'FI_NATIONAL_ID' | 'CL_1' | 'AR_1' | 'AR_CREDIT_BUR_1' | 'AR_RES_REGISTER' | 'GR_1' | 'GT_1' | 'CO_CIVIL_REGISTER_1' | 'BR_CPF_1' | 'NG_MONO_BVN' | 'NG_MONO_NIN' | 'PH_RES_CREDIT' | 'VE_CIVIL_REGISTER' | 'PE_CIVIL_REGISTER_2' | 'IDENTIFY_AFRICA_KE' | 'NL_CONSUMER_POP_REG_TELCO' | 'NL_CIVIL_REG_CREDIT_TELCO' | 'FI_CONSUMER_POP_REG_TELCO' | 'DK_CIVIL_REG_CREDIT_TELCO' | 'BE_CREDIT_TELCO' | 'NO_CONS_POP_REG' | 'DE_PHONE_MOBILE_REGISTER' | 'RISK_ADDONS_ONLY';
|
|
1923
|
+
source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'MX_CIVIL_REGISTER_2' | 'BR_GOVT_1' | 'BR_TAX_PHONE_REGISTER' | 'CA_RES_CREDIT' | 'CA_TELCO' | 'UK_CREDIT_BUREAU_1' | 'GB_2X2' | 'ES_PHONE_REGISTER_2' | 'FI_NATIONAL_ID' | 'CL_1' | 'CL_CIVIL_REGISTER_3' | 'AR_1' | 'AR_CREDIT_BUR_1' | 'AR_RES_REGISTER' | 'GR_1' | 'GT_1' | 'CO_CIVIL_REGISTER_1' | 'BR_CPF_1' | 'NG_MONO_BVN' | 'NG_MONO_NIN' | 'PH_RES_CREDIT' | 'VE_CIVIL_REGISTER' | 'PE_CIVIL_REGISTER_2' | 'IDENTIFY_AFRICA_KE' | 'INDIA_PASSPORT_1' | 'NL_CONSUMER_POP_REG_TELCO' | 'NL_CIVIL_REG_CREDIT_TELCO' | 'FI_CONSUMER_POP_REG_TELCO' | 'DK_CIVIL_REG_CREDIT_TELCO' | 'BE_CREDIT_TELCO' | 'IT_CIVIL_REG_CREDIT_TELCO' | 'PT_CIVIL_REG_CREDIT_TELCO' | 'EC_PHONE_REGISTER' | 'NO_CONS_POP_REG' | 'DE_PHONE_MOBILE_REGISTER' | 'SG_PHONE_REGISTER' | 'INDIA_PAN_1' | 'RISK_ADDONS_ONLY';
|
|
1896
1924
|
checkName: boolean;
|
|
1897
1925
|
nameSource: EKYCFieldSource;
|
|
1898
1926
|
nameDisplayMode: EKYCFieldDisplayMode;
|
|
@@ -2743,6 +2771,18 @@ declare type InitializeParams = {
|
|
|
2743
2771
|
|
|
2744
2772
|
export declare const initializeStatsig: ({ flowId, apiKey, sessionIdentifier, apiURL, clientExperimentId, }: InitializeParams) => Promise<void>;
|
|
2745
2773
|
|
|
2774
|
+
declare interface InitialStreamOptions extends CaptureOptions {
|
|
2775
|
+
vs: string;
|
|
2776
|
+
di: string;
|
|
2777
|
+
ew: number;
|
|
2778
|
+
eh: number;
|
|
2779
|
+
i14: boolean;
|
|
2780
|
+
pa: boolean;
|
|
2781
|
+
ds: boolean;
|
|
2782
|
+
fdm?: boolean;
|
|
2783
|
+
hs?: MediaStream;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2746
2786
|
declare function initWatchList({ token }: {
|
|
2747
2787
|
token: string;
|
|
2748
2788
|
}): Promise<any>;
|
|
@@ -2967,7 +3007,7 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
2967
3007
|
initialize(webLibPath: string, webLibPathSimd: string, glueCodePath: string, useSimd: boolean, versionsFile: string, workflows: Map<WasmWorkflow, Array<string>>): Promise<boolean>;
|
|
2968
3008
|
static getInstance(): MlWasmJSApi;
|
|
2969
3009
|
wrp(obj: any, constructorName: string): any;
|
|
2970
|
-
|
|
3010
|
+
startCameraCycle(options: InitialStreamOptions, onNewFrame: () => void, onFirstFrame: () => void, onCameraReady: (audioStream: MediaStream | null) => void, onCameraFailed: (error: unknown) => void): Promise<void>;
|
|
2971
3011
|
/** Returns a copy; the frame `pse(target)` uploads is the WASM's own.
|
|
2972
3012
|
* Throws when no protected session is open rather than falling back. */
|
|
2973
3013
|
mcp(target: number): HTMLCanvasElement;
|
|
@@ -3034,12 +3074,6 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
3034
3074
|
* Full reset
|
|
3035
3075
|
*/
|
|
3036
3076
|
reset(): void;
|
|
3037
|
-
/**
|
|
3038
|
-
* Registers the frame-cycle callbacks WASM pushes notifications through.
|
|
3039
|
-
* @param {Function} onNewFrame - fired once per newly generated frame
|
|
3040
|
-
* @param {Function} onFirstFrame - fired once per capture session
|
|
3041
|
-
*/
|
|
3042
|
-
sfc(onNewFrame: () => void, onFirstFrame: () => void): void;
|
|
3043
3077
|
/**
|
|
3044
3078
|
* Process one frame using one of the workflows
|
|
3045
3079
|
* @param {WasmWorkflow} type - workflow type
|
|
@@ -3092,7 +3126,6 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
3092
3126
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
3093
3127
|
getCheck(): string;
|
|
3094
3128
|
getMetadata(): string;
|
|
3095
|
-
prc(isDeepsightEnabled: boolean, contrastSharpnessSaturationCheckEnabled?: boolean, fdm?: boolean): Promise<void>;
|
|
3096
3129
|
poc(isDeepsightEnabled: boolean, output: object): Promise<void>;
|
|
3097
3130
|
ssl(isDeepsightEnabled: boolean): void;
|
|
3098
3131
|
stl(): void;
|
|
@@ -3749,6 +3782,7 @@ declare type RenderCameraProps = {
|
|
|
3749
3782
|
sendBase64?: boolean;
|
|
3750
3783
|
documentType?: string;
|
|
3751
3784
|
showPreview?: boolean;
|
|
3785
|
+
/** VideoSelfie source; disposal-only before protected WASM acquisition. */
|
|
3752
3786
|
stream?: unknown;
|
|
3753
3787
|
nativeCamera?: boolean;
|
|
3754
3788
|
hideRetake?: boolean;
|
|
@@ -5225,6 +5259,7 @@ declare const tokens: {
|
|
|
5225
5259
|
readonly bold: "2px";
|
|
5226
5260
|
};
|
|
5227
5261
|
readonly button: {
|
|
5262
|
+
readonly borderRadius: string;
|
|
5228
5263
|
readonly primary: {
|
|
5229
5264
|
readonly surface: {
|
|
5230
5265
|
readonly default: string;
|
|
@@ -5678,6 +5713,7 @@ declare type WebcamProps = {
|
|
|
5678
5713
|
permissionMessage?: string;
|
|
5679
5714
|
permissionBackgroundColor?: string;
|
|
5680
5715
|
onLog?: (log: any) => void;
|
|
5716
|
+
/** VideoSelfie source; disposal-only input before WASM-owned acquisition on protected paths. */
|
|
5681
5717
|
stream?: MediaStream;
|
|
5682
5718
|
onError: (error: any) => void;
|
|
5683
5719
|
token?: string;
|
|
@@ -5731,7 +5767,7 @@ declare type WebcamRef = {
|
|
|
5731
5767
|
setIsLoadingCamera: Dispatch<SetStateAction<boolean>>;
|
|
5732
5768
|
resetWebcam: (autoPlayOnInit: boolean) => Promise<void>;
|
|
5733
5769
|
/** Tell the host to drop every camera handle it holds, synchronously — a
|
|
5734
|
-
*
|
|
5770
|
+
* replacement camera step or `poc()` is about to run. */
|
|
5735
5771
|
suspendHostStream: () => void;
|
|
5736
5772
|
/** Hand the host the post-call stream so it can re-take its handle. */
|
|
5737
5773
|
restoreHostStream: () => Promise<void>;
|