@incodetech/welcome 1.94.0 → 1.95.0-20261028095503.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 +57 -13
- package/dist/onBoarding.mjs +19572 -17876
- package/dist/onBoarding.umd.js +2213 -1640
- 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;
|
|
@@ -912,12 +934,19 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
912
934
|
readonly forms: "FORMS";
|
|
913
935
|
readonly customModule: "CUSTOM_MODULE";
|
|
914
936
|
readonly mDocWallet: "MDOC_WALLET";
|
|
937
|
+
readonly identityReuse: "IDENTITY_REUSE";
|
|
915
938
|
};
|
|
916
939
|
eventScreenNames: {
|
|
917
940
|
readonly idOcrLoading: "ID_OCR.loading";
|
|
918
941
|
readonly idOcrInputting: "ID_OCR.inputting";
|
|
919
942
|
readonly idOcrSubmitting: "ID_OCR.submitting";
|
|
920
943
|
readonly idOcrError: "ID_OCR.error";
|
|
944
|
+
readonly identityReuseIdle: "IDENTITY_REUSE.idle";
|
|
945
|
+
readonly identityReuseLoading: "IDENTITY_REUSE.loading";
|
|
946
|
+
readonly identityReuseDocumentsFound: "IDENTITY_REUSE.documentsFound";
|
|
947
|
+
readonly identityReuseSubmitting: "IDENTITY_REUSE.submitting";
|
|
948
|
+
readonly identityReuseFinished: "IDENTITY_REUSE.finished";
|
|
949
|
+
readonly identityReuseError: "IDENTITY_REUSE.error";
|
|
921
950
|
readonly faceMatch: "FACE_MATCH";
|
|
922
951
|
readonly faceCaptureTutorial: "SELFIE_CAPTURE_TUTORIAL";
|
|
923
952
|
readonly faceCaptureCamera: "SELFIE_CAMERA_CAPTURE";
|
|
@@ -1160,10 +1189,12 @@ declare type CreateError<TSpecificErrors extends string = never> = {
|
|
|
1160
1189
|
};
|
|
1161
1190
|
|
|
1162
1191
|
export declare function createNewSession({ externalId, externalCustomerId, configurationId, uuid, interviewId, customFields, language: _language, version, urlUuid, integrationReference, loginHint, disableFingerprint, }?: {
|
|
1192
|
+
/** @deprecated */
|
|
1163
1193
|
externalId?: string;
|
|
1164
1194
|
externalCustomerId?: string;
|
|
1165
1195
|
configurationId?: string;
|
|
1166
1196
|
uuid?: string;
|
|
1197
|
+
/** @deprecated */
|
|
1167
1198
|
interviewId?: string;
|
|
1168
1199
|
customFields?: object;
|
|
1169
1200
|
language?: string;
|
|
@@ -1185,10 +1216,14 @@ declare type CreateRedirectUrlType = {
|
|
|
1185
1216
|
session: LooseSession;
|
|
1186
1217
|
};
|
|
1187
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* @param externalId - Deprecated.
|
|
1221
|
+
*/
|
|
1188
1222
|
export declare function createSession(_countryCode: string, externalId?: string, { externalCustomerId, configurationId, uuid, interviewId, customFields, language, forceProductionMode, urlUuid, }?: {
|
|
1189
1223
|
externalCustomerId?: string;
|
|
1190
1224
|
configurationId?: string;
|
|
1191
1225
|
uuid?: string;
|
|
1226
|
+
/** @deprecated */
|
|
1192
1227
|
interviewId?: string;
|
|
1193
1228
|
customFields?: object;
|
|
1194
1229
|
language?: string;
|
|
@@ -1611,6 +1646,7 @@ export declare const eventModuleNames: {
|
|
|
1611
1646
|
readonly forms: "FORMS";
|
|
1612
1647
|
readonly customModule: "CUSTOM_MODULE";
|
|
1613
1648
|
readonly mDocWallet: "MDOC_WALLET";
|
|
1649
|
+
readonly identityReuse: "IDENTITY_REUSE";
|
|
1614
1650
|
};
|
|
1615
1651
|
|
|
1616
1652
|
export declare const executeFlow: ({ element, token, onSuccess, onError, onEvent, flow, uiConfig, config, authHint, }: {
|
|
@@ -1700,7 +1736,7 @@ declare interface FaceProcessingPipelineResult {
|
|
|
1700
1736
|
|
|
1701
1737
|
export declare type FaceSuccess = SendFaceImageResponse;
|
|
1702
1738
|
|
|
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"];
|
|
1739
|
+
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
1740
|
|
|
1705
1741
|
declare type FeatureConfig = {
|
|
1706
1742
|
enabled: boolean;
|
|
@@ -1892,7 +1928,7 @@ declare type FlowModuleConfig = {
|
|
|
1892
1928
|
prefillSource?: string;
|
|
1893
1929
|
};
|
|
1894
1930
|
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';
|
|
1931
|
+
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
1932
|
checkName: boolean;
|
|
1897
1933
|
nameSource: EKYCFieldSource;
|
|
1898
1934
|
nameDisplayMode: EKYCFieldDisplayMode;
|
|
@@ -2743,6 +2779,18 @@ declare type InitializeParams = {
|
|
|
2743
2779
|
|
|
2744
2780
|
export declare const initializeStatsig: ({ flowId, apiKey, sessionIdentifier, apiURL, clientExperimentId, }: InitializeParams) => Promise<void>;
|
|
2745
2781
|
|
|
2782
|
+
declare interface InitialStreamOptions extends CaptureOptions {
|
|
2783
|
+
vs: string;
|
|
2784
|
+
di: string;
|
|
2785
|
+
ew: number;
|
|
2786
|
+
eh: number;
|
|
2787
|
+
i14: boolean;
|
|
2788
|
+
pa: boolean;
|
|
2789
|
+
ds: boolean;
|
|
2790
|
+
fdm?: boolean;
|
|
2791
|
+
hs?: MediaStream;
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2746
2794
|
declare function initWatchList({ token }: {
|
|
2747
2795
|
token: string;
|
|
2748
2796
|
}): Promise<any>;
|
|
@@ -2967,7 +3015,7 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
2967
3015
|
initialize(webLibPath: string, webLibPathSimd: string, glueCodePath: string, useSimd: boolean, versionsFile: string, workflows: Map<WasmWorkflow, Array<string>>): Promise<boolean>;
|
|
2968
3016
|
static getInstance(): MlWasmJSApi;
|
|
2969
3017
|
wrp(obj: any, constructorName: string): any;
|
|
2970
|
-
|
|
3018
|
+
startCameraCycle(options: InitialStreamOptions, onNewFrame: () => void, onFirstFrame: () => void, onCameraReady: (audioStream: MediaStream | null) => void, onCameraFailed: (error: unknown) => void): Promise<void>;
|
|
2971
3019
|
/** Returns a copy; the frame `pse(target)` uploads is the WASM's own.
|
|
2972
3020
|
* Throws when no protected session is open rather than falling back. */
|
|
2973
3021
|
mcp(target: number): HTMLCanvasElement;
|
|
@@ -3034,12 +3082,6 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
3034
3082
|
* Full reset
|
|
3035
3083
|
*/
|
|
3036
3084
|
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
3085
|
/**
|
|
3044
3086
|
* Process one frame using one of the workflows
|
|
3045
3087
|
* @param {WasmWorkflow} type - workflow type
|
|
@@ -3092,7 +3134,6 @@ declare class MlWasmJSApi extends WebClient {
|
|
|
3092
3134
|
setBackgroundMode(backgroundMode: boolean): void;
|
|
3093
3135
|
getCheck(): string;
|
|
3094
3136
|
getMetadata(): string;
|
|
3095
|
-
prc(isDeepsightEnabled: boolean, contrastSharpnessSaturationCheckEnabled?: boolean, fdm?: boolean): Promise<void>;
|
|
3096
3137
|
poc(isDeepsightEnabled: boolean, output: object): Promise<void>;
|
|
3097
3138
|
ssl(isDeepsightEnabled: boolean): void;
|
|
3098
3139
|
stl(): void;
|
|
@@ -3749,6 +3790,7 @@ declare type RenderCameraProps = {
|
|
|
3749
3790
|
sendBase64?: boolean;
|
|
3750
3791
|
documentType?: string;
|
|
3751
3792
|
showPreview?: boolean;
|
|
3793
|
+
/** VideoSelfie source; disposal-only before protected WASM acquisition. */
|
|
3752
3794
|
stream?: unknown;
|
|
3753
3795
|
nativeCamera?: boolean;
|
|
3754
3796
|
hideRetake?: boolean;
|
|
@@ -5225,6 +5267,7 @@ declare const tokens: {
|
|
|
5225
5267
|
readonly bold: "2px";
|
|
5226
5268
|
};
|
|
5227
5269
|
readonly button: {
|
|
5270
|
+
readonly borderRadius: string;
|
|
5228
5271
|
readonly primary: {
|
|
5229
5272
|
readonly surface: {
|
|
5230
5273
|
readonly default: string;
|
|
@@ -5678,6 +5721,7 @@ declare type WebcamProps = {
|
|
|
5678
5721
|
permissionMessage?: string;
|
|
5679
5722
|
permissionBackgroundColor?: string;
|
|
5680
5723
|
onLog?: (log: any) => void;
|
|
5724
|
+
/** VideoSelfie source; disposal-only input before WASM-owned acquisition on protected paths. */
|
|
5681
5725
|
stream?: MediaStream;
|
|
5682
5726
|
onError: (error: any) => void;
|
|
5683
5727
|
token?: string;
|
|
@@ -5731,7 +5775,7 @@ declare type WebcamRef = {
|
|
|
5731
5775
|
setIsLoadingCamera: Dispatch<SetStateAction<boolean>>;
|
|
5732
5776
|
resetWebcam: (autoPlayOnInit: boolean) => Promise<void>;
|
|
5733
5777
|
/** Tell the host to drop every camera handle it holds, synchronously — a
|
|
5734
|
-
*
|
|
5778
|
+
* replacement camera step or `poc()` is about to run. */
|
|
5735
5779
|
suspendHostStream: () => void;
|
|
5736
5780
|
/** Hand the host the post-call stream so it can re-take its handle. */
|
|
5737
5781
|
restoreHostStream: () => Promise<void>;
|