@incodetech/welcome 1.91.0 → 1.92.0-20260717234719.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/onBoarding.d.ts +153 -33
- package/dist/onBoarding.mjs +17841 -16304
- package/dist/onBoarding.umd.js +364 -328
- package/package.json +1 -1
package/dist/onBoarding.d.ts
CHANGED
|
@@ -29,6 +29,17 @@ export declare const addBankInfo: ({ token, bankData, }: {
|
|
|
29
29
|
bankData: BankData;
|
|
30
30
|
}) => Promise<any>;
|
|
31
31
|
|
|
32
|
+
declare type AddBarcodeV3Response = {
|
|
33
|
+
countryCode?: string;
|
|
34
|
+
/** Flag that signals if front id capture must be executed after the barcode is added. */
|
|
35
|
+
forceFrontIdCapture?: boolean;
|
|
36
|
+
/** When true, server-side id validation completed (Process ID not required). */
|
|
37
|
+
idValidationCompleted?: boolean;
|
|
38
|
+
isDocumentExpired?: boolean;
|
|
39
|
+
sessionStatus?: string;
|
|
40
|
+
success?: boolean;
|
|
41
|
+
};
|
|
42
|
+
|
|
32
43
|
declare function addConferenceEvent({ token, interviewId, opentokSessionId, eventType, details, eventSource, }: {
|
|
33
44
|
token: any;
|
|
34
45
|
interviewId: any;
|
|
@@ -238,6 +249,8 @@ declare type Answer = {
|
|
|
238
249
|
|
|
239
250
|
export { api }
|
|
240
251
|
|
|
252
|
+
export declare function applyDashboardTheme(token: string, urlTheme?: UrlTheme): Promise<DashboardTheme>;
|
|
253
|
+
|
|
241
254
|
export declare function approve({ token }: LooseSession): Promise<{
|
|
242
255
|
customerId: string;
|
|
243
256
|
totalScore: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL';
|
|
@@ -734,12 +747,12 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
734
747
|
}) => Promise<{
|
|
735
748
|
success: boolean;
|
|
736
749
|
}>;
|
|
737
|
-
addBarcode: ({ token, rawBarcode }: {
|
|
750
|
+
addBarcode: ({ token, rawBarcode, processId, metrics, }: {
|
|
738
751
|
token: string;
|
|
739
752
|
rawBarcode: string;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}>>;
|
|
753
|
+
processId?: boolean;
|
|
754
|
+
metrics?: Pdf417DecodeResult;
|
|
755
|
+
}) => Promise<WebClientResponse<AddBarcodeV3Response>>;
|
|
743
756
|
renderRetrySteps: typeof renderRetrySteps;
|
|
744
757
|
isDesktop: () => boolean;
|
|
745
758
|
addFrontSecondId: typeof addFrontSecondId;
|
|
@@ -847,6 +860,7 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
847
860
|
readonly otp: "OTP";
|
|
848
861
|
readonly signature: "SIGNATURE";
|
|
849
862
|
readonly ekyc: "EXTERNAL_VERIFICATION";
|
|
863
|
+
readonly payments: "PAYMENTS";
|
|
850
864
|
readonly globalWatchList: "GLOBAL_WATCHLIST";
|
|
851
865
|
readonly customWatchList: "CUSTOM_WATCHLIST";
|
|
852
866
|
readonly email: "EMAIL";
|
|
@@ -955,6 +969,10 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
955
969
|
readonly ekycProgress: "EKYC_PROGRESS";
|
|
956
970
|
readonly ekycSucceeded: "EKYC_SUCCEEDED";
|
|
957
971
|
readonly ekycFailed: "EKYC_FAILED";
|
|
972
|
+
readonly paymentsInput: "PAYMENTS_INPUT";
|
|
973
|
+
readonly paymentsProgress: "PAYMENTS_PROGRESS";
|
|
974
|
+
readonly paymentsSucceeded: "PAYMENTS_SUCCEEDED";
|
|
975
|
+
readonly paymentsFailed: "PAYMENTS_FAILED";
|
|
958
976
|
readonly forms: "FORMS";
|
|
959
977
|
readonly globalWatchListInput: "GLOBAL_WATCHLIST_INPUT";
|
|
960
978
|
readonly globalWatchListProgress: "GLOBAL_WATCHLIST_PROGRESS";
|
|
@@ -1060,7 +1078,7 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
1060
1078
|
}) => {
|
|
1061
1079
|
close: () => void;
|
|
1062
1080
|
};
|
|
1063
|
-
executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, urlUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
1081
|
+
executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, urlUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, uiConfig, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
1064
1082
|
getWorkflowConfig: ({ token }: {
|
|
1065
1083
|
token: any;
|
|
1066
1084
|
}) => Promise<any>;
|
|
@@ -1089,8 +1107,10 @@ export declare function create({ apiKey, apiURL, lang, encrypt, translations, th
|
|
|
1089
1107
|
|
|
1090
1108
|
declare type CreateError<TSpecificErrors extends string = never> = {
|
|
1091
1109
|
message: string;
|
|
1092
|
-
code: TSpecificErrors | 'WEBCAM_ERROR' | typeof PERMISSION_ERROR_CODES.DENIED | typeof PERMISSION_ERROR_CODES.REFRESH | 'FETCH_FLOW_ERROR' | 'UNKNOWN_ERROR' | 'USER_CANCELLED' | 'MODULE_NOT_FOUND';
|
|
1110
|
+
code: TSpecificErrors | 'WEBCAM_ERROR' | typeof PERMISSION_ERROR_CODES.DENIED | typeof PERMISSION_ERROR_CODES.REFRESH | 'FETCH_FLOW_ERROR' | 'SESSION_EXPIRED' | 'INVALID_TOKEN' | 'UNKNOWN_ERROR' | 'USER_CANCELLED' | 'MODULE_NOT_FOUND';
|
|
1093
1111
|
error?: Error;
|
|
1112
|
+
type?: string;
|
|
1113
|
+
statusCode?: number;
|
|
1094
1114
|
};
|
|
1095
1115
|
|
|
1096
1116
|
export declare function createNewSession({ externalId, externalCustomerId, configurationId, uuid, interviewId, customFields, language: _language, version, urlUuid, integrationReference, loginHint, disableFingerprint, }?: {
|
|
@@ -1199,6 +1219,11 @@ declare type CustomTheme = {
|
|
|
1199
1219
|
|
|
1200
1220
|
export declare const CustomWatchList: ({ token, onSuccess }: WatchListProps) => JSX_2.Element;
|
|
1201
1221
|
|
|
1222
|
+
declare type DashboardTheme = {
|
|
1223
|
+
customTheme: CustomTheme;
|
|
1224
|
+
theme: IncodeTheme;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1202
1227
|
declare type DeepPartial<T> = {
|
|
1203
1228
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
1204
1229
|
};
|
|
@@ -1391,7 +1416,11 @@ declare interface EkybProps {
|
|
|
1391
1416
|
|
|
1392
1417
|
export declare function Ekyc({ goNext, verificationFields: configFields, verificationFieldsDisplayMode, fieldsCountry, source, token, flow, riskAddons: riskAddonsFromProps, uiConfig, onClose, hideHeaderBranding, hideFooterBranding, }: InformationVerificationProps): JSX_2.Element;
|
|
1393
1418
|
|
|
1394
|
-
declare type EKYCFieldDisplayMode = '
|
|
1419
|
+
declare type EKYCFieldDisplayMode = 'hidden' | 'readOnly' | 'editable';
|
|
1420
|
+
|
|
1421
|
+
declare type EKYCFieldDisplayMode_2 = 'editable' | 'readOnly' | 'hidden';
|
|
1422
|
+
|
|
1423
|
+
declare type EKYCFieldSource = 'userInput' | 'document' | 'poa' | 'phoneModuleInput' | 'emailModuleInput';
|
|
1395
1424
|
|
|
1396
1425
|
export declare function Email({ onSuccess, token, onError, otpVerification, uiConfig, }: EmailOrchestratorProps): JSX_2.Element;
|
|
1397
1426
|
|
|
@@ -1475,6 +1504,7 @@ export declare const eventModuleNames: {
|
|
|
1475
1504
|
readonly otp: "OTP";
|
|
1476
1505
|
readonly signature: "SIGNATURE";
|
|
1477
1506
|
readonly ekyc: "EXTERNAL_VERIFICATION";
|
|
1507
|
+
readonly payments: "PAYMENTS";
|
|
1478
1508
|
readonly globalWatchList: "GLOBAL_WATCHLIST";
|
|
1479
1509
|
readonly customWatchList: "CUSTOM_WATCHLIST";
|
|
1480
1510
|
readonly email: "EMAIL";
|
|
@@ -1504,7 +1534,7 @@ declare type ExecuteFlowProps = {
|
|
|
1504
1534
|
authHint?: string;
|
|
1505
1535
|
};
|
|
1506
1536
|
|
|
1507
|
-
export declare const executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, urlUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
1537
|
+
export declare const executeWorkflow: ({ element, token, workflowId, apiURL, customModuleCallback, onSuccess, onError, wfConfig, authHint, urlUuid, uuid, redirectUrl, clientId, showFinishScreen, skipDesktopRedirect, uiConfig, }: WorkflowPropsWithToken | WorkflowPropsWithoutToken) => Promise<void>;
|
|
1508
1538
|
|
|
1509
1539
|
declare type ExternalResolution = {
|
|
1510
1540
|
width: number;
|
|
@@ -1553,7 +1583,7 @@ declare type FaceMatchProps = {
|
|
|
1553
1583
|
|
|
1554
1584
|
export declare type FaceSuccess = SendFaceImageResponse;
|
|
1555
1585
|
|
|
1556
|
-
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", "new_id_capture_ux_least_risky_clients", "enable_sentry_web", "id_test_aa", "id_iou_check", "iad_checks", "iad_c_checks", "new_fingerprint", "mp_test_hashed_id", "darwinium_profiling", "id_quality_backend_validation", "
|
|
1586
|
+
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", "new_fingerprint", "mp_test_hashed_id", "darwinium_profiling", "id_quality_backend_validation", "id_video_recording_enabled", "enable_app_logs"];
|
|
1557
1587
|
|
|
1558
1588
|
declare type FeatureConfig = {
|
|
1559
1589
|
enabled: boolean;
|
|
@@ -1745,37 +1775,63 @@ declare type FlowModuleConfig = {
|
|
|
1745
1775
|
prefillSource?: string;
|
|
1746
1776
|
};
|
|
1747
1777
|
EXTERNAL_VERIFICATION: {
|
|
1748
|
-
source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_PHONE_REGISTER_2' | 'CL_1' | 'AR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1' | 'NG_MONO_BVN' | 'NG_MONO_NIN' | 'PH_RES_CREDIT';
|
|
1778
|
+
source: 'US_DRIVERS_LICENSE_1' | 'US_TELCO_1' | 'US_TELCO_2' | 'US_CONSUMER_1' | 'US_CREDIT_BUREAU_1' | 'MX_CONSUMER_1' | 'BR_GOVT_1' | 'CA_RES_CREDIT' | 'UK_CREDIT_BUREAU_1' | 'ES_PHONE_REGISTER_2' | 'CL_1' | 'AR_1' | 'AR_CREDIT_BUR_1' | 'GR_1' | 'GT_1' | 'BR_CPF_1' | 'NG_MONO_BVN' | 'NG_MONO_NIN' | 'PH_RES_CREDIT' | 'RISK_ADDONS_ONLY';
|
|
1749
1779
|
checkName: boolean;
|
|
1750
|
-
nameSource:
|
|
1780
|
+
nameSource: EKYCFieldSource;
|
|
1781
|
+
nameDisplayMode: EKYCFieldDisplayMode;
|
|
1751
1782
|
checkEmail: boolean;
|
|
1752
|
-
emailSource:
|
|
1783
|
+
emailSource: EKYCFieldSource;
|
|
1784
|
+
emailDisplayMode: EKYCFieldDisplayMode;
|
|
1753
1785
|
checkAddress: boolean;
|
|
1754
|
-
addressSource:
|
|
1786
|
+
addressSource: EKYCFieldSource;
|
|
1787
|
+
addressDisplayMode: EKYCFieldDisplayMode;
|
|
1755
1788
|
checkPhone: boolean;
|
|
1756
|
-
phoneSource:
|
|
1789
|
+
phoneSource: EKYCFieldSource;
|
|
1790
|
+
phoneDisplayMode: EKYCFieldDisplayMode;
|
|
1757
1791
|
checkSsn: boolean;
|
|
1758
|
-
ssnSource:
|
|
1792
|
+
ssnSource: EKYCFieldSource;
|
|
1793
|
+
ssnDisplayMode: EKYCFieldDisplayMode;
|
|
1759
1794
|
checkDob: boolean;
|
|
1760
|
-
dobSource:
|
|
1795
|
+
dobSource: EKYCFieldSource;
|
|
1796
|
+
dobDisplayMode: EKYCFieldDisplayMode;
|
|
1761
1797
|
checkNationality: boolean;
|
|
1762
|
-
nationalitySource:
|
|
1798
|
+
nationalitySource: EKYCFieldSource;
|
|
1799
|
+
nationalityDisplayMode: EKYCFieldDisplayMode;
|
|
1763
1800
|
checkDlNumber: boolean;
|
|
1764
|
-
dlNumberSource:
|
|
1801
|
+
dlNumberSource: EKYCFieldSource;
|
|
1802
|
+
dlNumberDisplayMode: EKYCFieldDisplayMode;
|
|
1765
1803
|
checkDlState: boolean;
|
|
1766
|
-
dlStateSource:
|
|
1804
|
+
dlStateSource: EKYCFieldSource;
|
|
1805
|
+
dlStateDisplayMode: EKYCFieldDisplayMode;
|
|
1767
1806
|
checkDlExpireAt: boolean;
|
|
1768
|
-
dlExpireAtSource:
|
|
1807
|
+
dlExpireAtSource: EKYCFieldSource;
|
|
1808
|
+
dlExpireAtDisplayMode: EKYCFieldDisplayMode;
|
|
1769
1809
|
checkLast4SSN: boolean;
|
|
1770
|
-
last4SSNSource:
|
|
1810
|
+
last4SSNSource: EKYCFieldSource;
|
|
1811
|
+
last4SSNDisplayMode: EKYCFieldDisplayMode;
|
|
1771
1812
|
checkIdNum: boolean;
|
|
1772
|
-
idNumSource:
|
|
1813
|
+
idNumSource: EKYCFieldSource;
|
|
1814
|
+
idNumDisplayMode: EKYCFieldDisplayMode;
|
|
1773
1815
|
checkIdNum1: boolean;
|
|
1774
|
-
idNum1Source:
|
|
1816
|
+
idNum1Source: EKYCFieldSource;
|
|
1817
|
+
idNum1DisplayMode: EKYCFieldDisplayMode;
|
|
1775
1818
|
checkGender: boolean;
|
|
1776
|
-
genderSource:
|
|
1819
|
+
genderSource: EKYCFieldSource;
|
|
1820
|
+
genderDisplayMode: EKYCFieldDisplayMode;
|
|
1777
1821
|
riskAddons?: ('phoneCheck' | 'advancedPhoneCheck' | 'emailCheck')[];
|
|
1778
1822
|
};
|
|
1823
|
+
/**
|
|
1824
|
+
* [ENG-50562] Payments module. Card verification only for now; a
|
|
1825
|
+
* `BANK_ACCOUNT_VERIFICATION` source follows. Mandatory card fields (number,
|
|
1826
|
+
* expiry, postal code) are always shown; `checkName`/`checkAddress` are the
|
|
1827
|
+
* eKYC-style toggles for the optional groups. `source` string values are
|
|
1828
|
+
* provisional pending the BE ticket.
|
|
1829
|
+
*/
|
|
1830
|
+
PAYMENTS: {
|
|
1831
|
+
source: 'CARD_VERIFICATION';
|
|
1832
|
+
checkName: boolean;
|
|
1833
|
+
checkAddress: boolean;
|
|
1834
|
+
};
|
|
1779
1835
|
EMAIL: {
|
|
1780
1836
|
otpVerification: boolean;
|
|
1781
1837
|
otpExpirationInMinutes: number;
|
|
@@ -1920,8 +1976,19 @@ declare type FlowModuleConfig = {
|
|
|
1920
1976
|
type: 'ONE_TIME' | 'SHORT_TERM' | 'LONG_TERM';
|
|
1921
1977
|
};
|
|
1922
1978
|
WATCHLIST_BUSINESS: {
|
|
1923
|
-
|
|
1924
|
-
|
|
1979
|
+
/** `eKYBData` reuses the country collected in an earlier eKYB step. */
|
|
1980
|
+
countrySource: 'userInput' | 'eKYBData';
|
|
1981
|
+
/** `eKYBData` reuses the business name collected in an earlier eKYB step. */
|
|
1982
|
+
businessNameSource: 'userInput' | 'eKYBData';
|
|
1983
|
+
watchlistTypeEnabled?: boolean;
|
|
1984
|
+
watchlistTypes?: string[];
|
|
1985
|
+
fuzziness?: number;
|
|
1986
|
+
subscribe?: boolean;
|
|
1987
|
+
searchProfileEnabled?: boolean;
|
|
1988
|
+
/** [ENG-47976] Collect the business date of incorporation in the w4b form. */
|
|
1989
|
+
dateOfIncorporationEnabled?: boolean;
|
|
1990
|
+
/** [ENG-47976] Collect the business tax ID in the w4b form. */
|
|
1991
|
+
taxIdEnabled?: boolean;
|
|
1925
1992
|
};
|
|
1926
1993
|
ANTIFRAUD: EmptyConfig;
|
|
1927
1994
|
CHECKBOX_SIGNATURE: EmptyConfig;
|
|
@@ -1974,7 +2041,7 @@ declare type FlowRendererProps = {
|
|
|
1974
2041
|
isV2?: boolean;
|
|
1975
2042
|
};
|
|
1976
2043
|
|
|
1977
|
-
export declare function Forms({ onSuccess, onError, token, flowId, screens: propsScreens, }: FormsProps): JSX_2.Element;
|
|
2044
|
+
export declare function Forms({ onSuccess, onError, token, flowId, screens: propsScreens, prefillValue, }: FormsProps): JSX_2.Element;
|
|
1978
2045
|
|
|
1979
2046
|
declare type FormsProps = {
|
|
1980
2047
|
onSuccess: () => void;
|
|
@@ -1982,6 +2049,7 @@ declare type FormsProps = {
|
|
|
1982
2049
|
token: string;
|
|
1983
2050
|
flowId?: string;
|
|
1984
2051
|
screens: Screen_2[];
|
|
2052
|
+
prefillValue?: string;
|
|
1985
2053
|
};
|
|
1986
2054
|
|
|
1987
2055
|
export declare function FrontId({ ...props }: {
|
|
@@ -2153,6 +2221,15 @@ export declare function getOtpStatus({ token, }: {
|
|
|
2153
2221
|
token: string;
|
|
2154
2222
|
}): Promise<any>;
|
|
2155
2223
|
|
|
2224
|
+
/**
|
|
2225
|
+
* Derive the visible optional field groups from the module configuration.
|
|
2226
|
+
* `checkName` / `checkAddress` are the eKYC-style toggles set in provisioning.
|
|
2227
|
+
*/
|
|
2228
|
+
export declare function getPaymentFields(moduleConfiguration: {
|
|
2229
|
+
checkName?: boolean;
|
|
2230
|
+
checkAddress?: boolean;
|
|
2231
|
+
}): PaymentFields;
|
|
2232
|
+
|
|
2156
2233
|
export declare function getPhone(token: LooseSession): Promise<{
|
|
2157
2234
|
phone: string;
|
|
2158
2235
|
}>;
|
|
@@ -2454,7 +2531,7 @@ declare interface InformationVerificationProps {
|
|
|
2454
2531
|
goNext: () => void;
|
|
2455
2532
|
verificationFields?: VerificationFields;
|
|
2456
2533
|
verificationFieldsDisplayMode?: {
|
|
2457
|
-
[key: string]:
|
|
2534
|
+
[key: string]: EKYCFieldDisplayMode_2;
|
|
2458
2535
|
};
|
|
2459
2536
|
fieldsCountry?: string;
|
|
2460
2537
|
source?: string | null;
|
|
@@ -2832,6 +2909,29 @@ declare type Overall = {
|
|
|
2832
2909
|
value: string;
|
|
2833
2910
|
};
|
|
2834
2911
|
|
|
2912
|
+
/**
|
|
2913
|
+
* Which optional field groups the card form should render. Mandatory card
|
|
2914
|
+
* fields (number, expiry, postal code) are always shown, so they are not part
|
|
2915
|
+
* of this map. Mirrors eKYC's `getEKYCFields` shape but far smaller.
|
|
2916
|
+
*/
|
|
2917
|
+
declare interface PaymentFields {
|
|
2918
|
+
name: boolean;
|
|
2919
|
+
address: boolean;
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
export declare function PaymentVerification({ goNext, paymentFields: fieldsFromProps, token, flow, uiConfig, onClose, hideHeaderBranding, hideFooterBranding, }: PaymentVerificationProps): JSX_2.Element;
|
|
2923
|
+
|
|
2924
|
+
declare interface PaymentVerificationProps {
|
|
2925
|
+
goNext: () => void;
|
|
2926
|
+
paymentFields?: PaymentFields;
|
|
2927
|
+
token: string;
|
|
2928
|
+
flow?: Partial<Flow>;
|
|
2929
|
+
uiConfig?: UiConfig;
|
|
2930
|
+
onClose?: () => void;
|
|
2931
|
+
hideHeaderBranding?: boolean;
|
|
2932
|
+
hideFooterBranding?: boolean;
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2835
2935
|
declare type Pdf417DecodeResult = {
|
|
2836
2936
|
text: string;
|
|
2837
2937
|
ecLevel: string;
|
|
@@ -2986,12 +3086,13 @@ export declare function processGovernmentValidation({ token }: {
|
|
|
2986
3086
|
token: any;
|
|
2987
3087
|
}): Promise<any>;
|
|
2988
3088
|
|
|
2989
|
-
export declare function ProcessId({ goNext, isSecondId, token, onDocumentExpired, uiConfig, }: {
|
|
3089
|
+
export declare function ProcessId({ goNext, isSecondId, isIdV2, token, onDocumentExpired, uiConfig, }: {
|
|
2990
3090
|
goNext: any;
|
|
2991
3091
|
isSecondId?: boolean;
|
|
3092
|
+
isIdV2?: boolean;
|
|
2992
3093
|
token: any;
|
|
2993
|
-
onDocumentExpired
|
|
2994
|
-
uiConfig
|
|
3094
|
+
onDocumentExpired?: any;
|
|
3095
|
+
uiConfig?: any;
|
|
2995
3096
|
}): JSX_2.Element;
|
|
2996
3097
|
|
|
2997
3098
|
export declare function processId({ token, queueName }: {
|
|
@@ -3169,7 +3270,7 @@ declare function renderBiometricConsent(element: any, { token, onSuccess, onCanc
|
|
|
3169
3270
|
|
|
3170
3271
|
declare function renderBiometricConsent_2(element: any, { token, onSuccess, consentId }: CombinedConsentProps): void;
|
|
3171
3272
|
|
|
3172
|
-
export declare function renderCamera(type: string, element: Element, { onSuccess, onError, numberOfTries, onLog, permissionMessage, permissionBackgroundColor, token, timeout, sendBase64, documentType, showPreview, stream, nativeCamera, hideRetake, showTutorial, showPaperDLTutorial, onlyCapture, scanPdf417, videoTutorialSrc, showCustomCameraPermissionScreen, isSecondId, fullScreen, assistedOnboarding, isRecordingEnabled, onRestartOnboarding, showDoublePermissionsRequest, onlyAllowCapture, onlyUpload, onlyPdf, disableFullScreen, onStreamReady, showAutoCaptureIDOverlay, showManualCaptureIDOverlay, skipProcessFace, defaultHorizontalMask, isFixedMask, blurrinessStrictMode, isKiosk, ageAssurance, publishAudio, zoomLevel, idDetectedTimeout, flipVerticallyImage, disableZoomCheck, hatCheckEnabled, lensesCheckEnabled, maskCheckEnabled, eyesClosedCheckEnabled, isDeepsightEnabled, isVideoLivenessEnabled, tutorialText, allowSkipDocumentCapture, extractIdFace, }: RenderCameraProps): {
|
|
3273
|
+
export declare function renderCamera(type: string, element: Element, { onSuccess, onError, numberOfTries, onLog, permissionMessage, permissionBackgroundColor, token, timeout, sendBase64, documentType, showPreview, stream, nativeCamera, hideRetake, showTutorial, showPaperDLTutorial, onlyCapture, scanPdf417, videoTutorialSrc, showCustomCameraPermissionScreen, isSecondId, fullScreen, assistedOnboarding, isRecordingEnabled, onRestartOnboarding, showDoublePermissionsRequest, onlyAllowCapture, onlyUpload, onlyPdf, disableFullScreen, onStreamReady, showAutoCaptureIDOverlay, showManualCaptureIDOverlay, skipProcessFace, defaultHorizontalMask, isFixedMask, blurrinessStrictMode, isKiosk, ageAssurance, publishAudio, zoomLevel, idDetectedTimeout, flipVerticallyImage, disableZoomCheck, hatCheckEnabled, lensesCheckEnabled, maskCheckEnabled, eyesClosedCheckEnabled, isDeepsightEnabled, isVideoLivenessEnabled, tutorialText, allowSkipDocumentCapture, extractIdFace, uiConfig, onClose, }: RenderCameraProps): {
|
|
3173
3274
|
close: typeof emptyFunc;
|
|
3174
3275
|
};
|
|
3175
3276
|
|
|
@@ -3230,6 +3331,18 @@ declare type RenderCameraProps = {
|
|
|
3230
3331
|
isDeepsightEnabled?: boolean;
|
|
3231
3332
|
isVideoLivenessEnabled?: boolean;
|
|
3232
3333
|
allowSkipDocumentCapture?: boolean;
|
|
3334
|
+
/** [ENG-49420] Per-SDK/per-flow UI customization for the V2 document capture
|
|
3335
|
+
* screen (`renderCamera('document', …)`). Forwarded to `DocumentCapture`,
|
|
3336
|
+
* which feeds `theming.designTokens` / `branding` / `closeButton` into
|
|
3337
|
+
* `IncodeProvider`. Only consumed by the `document` type; other capture
|
|
3338
|
+
* types ignore it. Added alongside the move to the V2 `DocumentCapture`
|
|
3339
|
+
* component so document capture can be themed without dashboard (org-level)
|
|
3340
|
+
* config. */
|
|
3341
|
+
uiConfig?: UiConfig | null;
|
|
3342
|
+
/** [ENG-49420] Handler invoked when the user closes the document capture
|
|
3343
|
+
* screen via the `uiConfig.closeButton` X. Without it, a configured close
|
|
3344
|
+
* button renders but does nothing. */
|
|
3345
|
+
onClose?: () => void;
|
|
3233
3346
|
/** [ENG-44176] When `false`, the SDK forwards `extractIdFace=false` to
|
|
3234
3347
|
* `POST /omni/add/front-id` (v1 + v2), so the backend skips biometric face
|
|
3235
3348
|
* extraction. Omitted / `true` preserves current behavior. Only applied to
|
|
@@ -4845,6 +4958,10 @@ declare type UploadFrontIdResponse = {
|
|
|
4845
4958
|
regulationType?: RegulationTypes;
|
|
4846
4959
|
};
|
|
4847
4960
|
|
|
4961
|
+
declare type UrlTheme = Partial<IncodeTheme> & {
|
|
4962
|
+
isUrlTheme?: boolean;
|
|
4963
|
+
};
|
|
4964
|
+
|
|
4848
4965
|
export declare const useFlowRedirect: ({ flow, onSkip, forceSkipRedirect, }: UseFlowRedirectOptions) => {
|
|
4849
4966
|
showRedirect: boolean;
|
|
4850
4967
|
onSkip: () => void;
|
|
@@ -4856,7 +4973,7 @@ declare type UseFlowRedirectOptions = {
|
|
|
4856
4973
|
forceSkipRedirect?: boolean;
|
|
4857
4974
|
};
|
|
4858
4975
|
|
|
4859
|
-
export declare function useIdDetection({ getCanvas, onCapture, onBestFrame, mode, }: UseIdDetectionProps): {
|
|
4976
|
+
export declare function useIdDetection({ getCanvas, onCapture, onBestFrame, onBarcodeDecoded, mode, }: UseIdDetectionProps): {
|
|
4860
4977
|
startDetection: () => void;
|
|
4861
4978
|
stopDetection: () => void;
|
|
4862
4979
|
detectionState: string;
|
|
@@ -4885,6 +5002,7 @@ declare type UseIdDetectionProps = {
|
|
|
4885
5002
|
getCanvas: GetCanvas_2;
|
|
4886
5003
|
onCapture: OnCapture;
|
|
4887
5004
|
onBestFrame?: () => void;
|
|
5005
|
+
onBarcodeDecoded?: (decoded: Pdf417DecodeResult) => void;
|
|
4888
5006
|
mode: Mode;
|
|
4889
5007
|
};
|
|
4890
5008
|
|
|
@@ -4947,6 +5065,8 @@ declare function verifyOTP({ code, token }: {
|
|
|
4947
5065
|
token: any;
|
|
4948
5066
|
}): Promise<any>;
|
|
4949
5067
|
|
|
5068
|
+
export declare function verifyPayment(verifyEntity: any, token: any): Promise<any>;
|
|
5069
|
+
|
|
4950
5070
|
export declare function VideoSelfie(props: RecorderProps): JSX_2.Element;
|
|
4951
5071
|
|
|
4952
5072
|
declare type VideoSelfieModule = 'selfie' | 'front' | 'back' | 'poa' | 'questions' | 'speech';
|