@incodetech/core 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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/ae-signature.d.ts +2 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/authentication.d.ts +3 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BCm7eGoK.d.ts → authenticationManager-Ce1nLm5y.d.ts} +1 -1
- package/dist/{authenticationManager-Cmio9w7i.esm.js → authenticationManager-DW449fW3.esm.js} +2 -2
- package/dist/{authenticationStateMachine-CrkXvIhE.esm.js → authenticationStateMachine-CrvxMmoJ.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{deepsightLoader-Be2xONxN.esm.js → deepsightLoader-BCxEZjuI.esm.js} +1 -1
- package/dist/document-capture.d.ts +2 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/{documentCaptureManager-CBP2DkPr.d.ts → documentCaptureManager-pEqMY_Oo.d.ts} +2 -104
- package/dist/dynamic-forms.d.ts +2 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dposae2l.d.ts → dynamicFormsManager-BYac2uEY.d.ts} +2 -48
- package/dist/{dynamicFormsManager-Fi2O2RUM.esm.js → dynamicFormsManager-DI0sCyVB.esm.js} +1 -1
- package/dist/ekyb.d.ts +2 -1
- package/dist/ekyb.esm.js +3 -2
- package/dist/{ekybManager-CObZ7foB.esm.js → ekybManager-D46NN7cx.esm.js} +1 -1
- package/dist/{ekybManager-CBX0tM04.d.ts → ekybManager-Dzswb_b8.d.ts} +3 -48
- package/dist/{ekybStateMachine-Cw4pz_hf.esm.js → ekybStateMachine-DX7KeqlM.esm.js} +2 -170
- package/dist/ekyc.esm.js +3 -2
- package/dist/{ekycManager-CI7sN4Ln.esm.js → ekycManager-DRrG5I6e.esm.js} +1 -1
- package/dist/{ekycStateMachine-DFQdmBXl.esm.js → ekycStateMachine-DRbbavZy.esm.js} +2 -223
- package/dist/ekycUtils-Dew1rBG0.esm.js +223 -0
- package/dist/electronic-signature.d.ts +2 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/extensibility.d.ts +12 -11
- package/dist/extensibility.esm.js +9 -9
- package/dist/{faceCaptureManagerFactory-DPf1rRsd.d.ts → faceCaptureManagerFactory-BUE6z9iY.d.ts} +2 -4
- package/dist/{faceCaptureManagerFactory-CeUzH_6U.esm.js → faceCaptureManagerFactory-BcntOvvC.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CtiVwaPe.esm.js → faceCaptureSetup-BUAw6zY_.esm.js} +2 -2
- package/dist/flow.d.ts +44 -1
- package/dist/flow.esm.js +4 -11
- package/dist/flowServices-BU1mMxoQ.esm.js +596 -0
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-bZDyI0gy.esm.js → geolocationManager-zeqAcVHC.esm.js} +1 -1
- package/dist/id-ocr.d.ts +2 -1
- package/dist/id.d.ts +2 -1
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Dqn6U25Q.esm.js → idCaptureManager-BqmmPXFm.esm.js} +3 -4
- package/dist/idCaptureManager-CtsYvX-Z.d.ts +405 -0
- package/dist/{idCaptureStateMachine-B7atraNp.esm.js → idCaptureStateMachine-CnKkMNrI.esm.js} +8 -50
- package/dist/{idOcrManager-B-JyjyPb.d.ts → idOcrManager-DlYG277_.d.ts} +2 -163
- package/dist/{index-CKbmDFNq.d.ts → index-DGcdhk8Y.d.ts} +2 -64
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -1
- package/dist/{mandatoryConsentManager-Bc9AKBft.d.ts → mandatoryConsentManager-Ck2e2W4o.d.ts} +6 -25
- package/dist/{onDeviceFaceResults-CbO3AqMC.esm.js → onDeviceFaceResults-CWMT6JTR.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/qe-signature.d.ts +2 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-YhyXG0Ch.esm.js → recordingService-CfT3nmFO.esm.js} +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/{redirectToMobileManager-NVQM3o5P.d.ts → redirectToMobileManager-DZlJhqvq.d.ts} +2 -40
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-CgmJu62N.esm.js → selfieManager-D-QJUh3X.esm.js} +2 -2
- package/dist/{selfieManager-Dq9wNlcg.d.ts → selfieManager-LabfZln4.d.ts} +1 -1
- package/dist/{selfieStateMachine-C_piZ4gb.esm.js → selfieStateMachine-BH-U-y6R.esm.js} +2 -2
- package/dist/session-BU4MkUEc.esm.js +1 -0
- package/dist/session.d.ts +2 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-B5tU3IQv.esm.js → sessionInitializer-DT7IYwRx.esm.js} +58 -11
- package/dist/{setup-BBfVpTog.d.ts → setup-B1WTXTQV.d.ts} +15 -0
- package/dist/{setup-Cx9IY17e.esm.js → setup-DXdKnXXf.esm.js} +21 -7
- package/dist/types-B4BObr_7.d.ts +105 -0
- package/dist/types-BAvkiv6L.d.ts +6 -0
- package/dist/types-BQgIv5p8.d.ts +21 -0
- package/dist/types-BfHiko5D.d.ts +48 -0
- package/dist/types-CBJI9n6h.d.ts +163 -0
- package/dist/{idCaptureManager-DTe_5dcI.d.ts → types-D0ohdBDu.d.ts} +2 -407
- package/dist/types-DPIDuhut2.d.ts +40 -0
- package/dist/types-DWaEoU0I.d.ts +64 -0
- package/dist/types-xIEGXWk8.d.ts +48 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +16 -11
- package/package.json +1 -1
- package/dist/flowServices-Caz-Bdol.esm.js +0 -209
- package/dist/session-CoL4WBRi.esm.js +0 -1
- package/dist/videoSelfieSteps-DHcibfYH.esm.js +0 -57
- package/dist/{dynamicFormsStateMachine-DiPpuHgF.esm.js → dynamicFormsStateMachine-BQqAwNQ-.esm.js} +1 -1
- package/dist/{electronicSignatureManager-DGFwHdro.esm.js → electronicSignatureManager-BXIpAJ5m.esm.js} +1 -1
- package/dist/{geolocationStateMachine-ByU6-nbM.esm.js → geolocationStateMachine-DxSETS9_.esm.js} +1 -1
|
@@ -2,168 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
|
|
6
|
-
type IdOcrConfig = {
|
|
7
|
-
/** Allows user to edit OCR information @default false */
|
|
8
|
-
editableOcr?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* When true (from flow/onboarding), after the first ID OCR step completes the
|
|
11
|
-
* machine loads and optionally edits OCR for the second captured ID.
|
|
12
|
-
*/
|
|
13
|
-
secondId?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Session flow id (injected by orchestrated flow UI). When listed in `CPFFlowIds`
|
|
16
|
-
* (`idOcrConsts`), only the CPF field is shown and validated; it maps to `documentNumber` on OCR.
|
|
17
|
-
*/
|
|
18
|
-
flowId?: string;
|
|
19
|
-
};
|
|
20
|
-
type NameBean = {
|
|
21
|
-
fullName?: string;
|
|
22
|
-
firstName?: string;
|
|
23
|
-
middleName?: string;
|
|
24
|
-
givenName?: string;
|
|
25
|
-
nameSuffix?: string;
|
|
26
|
-
paternalLastName?: string;
|
|
27
|
-
maternalLastName?: string;
|
|
28
|
-
lastNameMrz?: string;
|
|
29
|
-
};
|
|
30
|
-
type AddressBean = {
|
|
31
|
-
street?: string;
|
|
32
|
-
colony?: string;
|
|
33
|
-
postalCode?: string;
|
|
34
|
-
city?: string;
|
|
35
|
-
state?: string;
|
|
36
|
-
label?: string;
|
|
37
|
-
confidentGeolocation?: boolean;
|
|
38
|
-
};
|
|
39
|
-
type AddressStatements = {
|
|
40
|
-
_id: string;
|
|
41
|
-
dateType: string;
|
|
42
|
-
addressStatementTimestamp: number;
|
|
43
|
-
};
|
|
44
|
-
type OcrData = {
|
|
45
|
-
name: NameBean;
|
|
46
|
-
givenName?: string;
|
|
47
|
-
firstName?: string;
|
|
48
|
-
middleName?: string;
|
|
49
|
-
nameSuffix?: string;
|
|
50
|
-
mothersSurname?: string;
|
|
51
|
-
fathersSurname?: string;
|
|
52
|
-
nickName?: string;
|
|
53
|
-
address?: string;
|
|
54
|
-
street?: string;
|
|
55
|
-
colony?: string;
|
|
56
|
-
postalCode?: string;
|
|
57
|
-
city?: string;
|
|
58
|
-
state?: string;
|
|
59
|
-
stateCode?: string;
|
|
60
|
-
countryCode?: string;
|
|
61
|
-
addressFields?: AddressBean;
|
|
62
|
-
fullAddress?: boolean;
|
|
63
|
-
invalidAddress?: boolean;
|
|
64
|
-
checkedAddress?: string;
|
|
65
|
-
checkedAddressBean?: AddressBean;
|
|
66
|
-
exteriorNumber?: string;
|
|
67
|
-
interiorNumber?: string;
|
|
68
|
-
addressFromStatement?: string;
|
|
69
|
-
addressFieldsFromStatement?: AddressBean;
|
|
70
|
-
invalidAddressFromStatement?: boolean;
|
|
71
|
-
addressStatementEmissionDate?: number;
|
|
72
|
-
documentType?: string;
|
|
73
|
-
addressStatementTimestamps?: AddressStatements[];
|
|
74
|
-
poaName?: string;
|
|
75
|
-
typeOfId?: string;
|
|
76
|
-
documentFrontSubtype?: string;
|
|
77
|
-
documentBackSubtype?: string;
|
|
78
|
-
birthDate?: number | string;
|
|
79
|
-
gender?: string;
|
|
80
|
-
claveDeElector?: string;
|
|
81
|
-
curp?: string;
|
|
82
|
-
numeroEmisionCredencial?: string;
|
|
83
|
-
cic?: string;
|
|
84
|
-
ocr?: string;
|
|
85
|
-
documentNumber?: string;
|
|
86
|
-
personalNumber?: string;
|
|
87
|
-
refNumber?: string;
|
|
88
|
-
nue?: string;
|
|
89
|
-
externalId?: string;
|
|
90
|
-
issuedAt?: string;
|
|
91
|
-
expireAt?: string;
|
|
92
|
-
expirationDate?: number;
|
|
93
|
-
issueDate?: number;
|
|
94
|
-
registrationDate?: number;
|
|
95
|
-
issuingCountry?: string;
|
|
96
|
-
issuingState?: string;
|
|
97
|
-
birthPlace?: string;
|
|
98
|
-
issuingAuthority?: string;
|
|
99
|
-
height?: string;
|
|
100
|
-
weight?: string;
|
|
101
|
-
eyeColor?: string;
|
|
102
|
-
hairColor?: string;
|
|
103
|
-
bloodType?: string;
|
|
104
|
-
maritalStatus?: string;
|
|
105
|
-
nationality?: string;
|
|
106
|
-
nationalityMrz?: string;
|
|
107
|
-
classes?: string;
|
|
108
|
-
cond?: string;
|
|
109
|
-
mentions?: string;
|
|
110
|
-
restrictions?: string;
|
|
111
|
-
mrz1?: string;
|
|
112
|
-
mrz2?: string;
|
|
113
|
-
mrz3?: string;
|
|
114
|
-
fullNameMrz?: string;
|
|
115
|
-
documentNumberCheckDigit?: string;
|
|
116
|
-
dateOfBirthCheckDigit?: string;
|
|
117
|
-
expirationDateCheckDigit?: string;
|
|
118
|
-
fathersName?: string;
|
|
119
|
-
mothersName?: string;
|
|
120
|
-
federalRevenueNumber?: string;
|
|
121
|
-
originDocumentId?: string;
|
|
122
|
-
driversLicenseCategory?: string;
|
|
123
|
-
controlNumber?: string;
|
|
124
|
-
renach?: string;
|
|
125
|
-
ocrReliabilityConfidence?: number;
|
|
126
|
-
ocrDataConfidence?: unknown;
|
|
127
|
-
};
|
|
128
|
-
type UpdateOcrDataParams = {
|
|
129
|
-
address?: string;
|
|
130
|
-
documentNumber?: string;
|
|
131
|
-
name?: string;
|
|
132
|
-
firstName?: string;
|
|
133
|
-
lastName?: string;
|
|
134
|
-
paternalLastName?: string;
|
|
135
|
-
maternalLastName?: string;
|
|
136
|
-
personalNumber?: string;
|
|
137
|
-
curp?: string;
|
|
138
|
-
email?: string;
|
|
139
|
-
birthDate?: string;
|
|
140
|
-
expireAt?: string;
|
|
141
|
-
gender?: string;
|
|
142
|
-
issuingCountry?: string;
|
|
143
|
-
};
|
|
144
|
-
type ValidationRule = {
|
|
145
|
-
type: 'required';
|
|
146
|
-
} | {
|
|
147
|
-
type: 'minAge';
|
|
148
|
-
years: number;
|
|
149
|
-
} | {
|
|
150
|
-
type: 'cpf';
|
|
151
|
-
};
|
|
152
|
-
type OcrFieldConfig = {
|
|
153
|
-
key: keyof UpdateOcrDataParams;
|
|
154
|
-
labelKey: string;
|
|
155
|
-
type: 'text' | 'date' | 'radio';
|
|
156
|
-
options?: {
|
|
157
|
-
label: string;
|
|
158
|
-
value: string;
|
|
159
|
-
}[];
|
|
160
|
-
validation?: ValidationRule[];
|
|
161
|
-
required: boolean;
|
|
162
|
-
};
|
|
163
|
-
type UpdateOcrResponse = {
|
|
164
|
-
success: boolean;
|
|
165
|
-
};
|
|
166
|
-
//#endregion
|
|
5
|
+
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CBJI9n6h.js";
|
|
167
6
|
//#region src/modules/id-ocr/idOcrStateMachine.d.ts
|
|
168
7
|
type IdOcrOcrDocument = 'first' | 'second';
|
|
169
8
|
type IdOcrContext = {
|
|
@@ -632,4 +471,4 @@ declare function createIdOcrManagerFromActor(actor: IdOcrActor): Manager<IdOcrSt
|
|
|
632
471
|
};
|
|
633
472
|
type IdOcrManager = ReturnType<typeof createIdOcrManager>;
|
|
634
473
|
//#endregion
|
|
635
|
-
export { IdOcrActor as a,
|
|
474
|
+
export { IdOcrActor as a, createIdOcrManagerFromActor as i, IdOcrState as n, IdOcrOcrDocument as o, createIdOcrManager as r, idOcrStateMachine as s, IdOcrManager as t };
|
|
@@ -2,69 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
|
|
6
|
-
type ElectronicSignatureVariant = 'ae' | 'qe';
|
|
7
|
-
type ElectronicSignatureConfig = {
|
|
8
|
-
variant?: ElectronicSignatureVariant;
|
|
9
|
-
uploadDocument?: boolean;
|
|
10
|
-
downloadDocument?: boolean;
|
|
11
|
-
};
|
|
12
|
-
type ElectronicSignatureDocument = {
|
|
13
|
-
documentRef: string;
|
|
14
|
-
documentUrl: string;
|
|
15
|
-
};
|
|
16
|
-
type SignedDocument = {
|
|
17
|
-
/**
|
|
18
|
-
* Whether the signing endpoint acknowledged this document as signed. Set from
|
|
19
|
-
* either the AES signed-PDF URL or the QES `{ success: true }` acknowledgment.
|
|
20
|
-
*/
|
|
21
|
-
signed: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* URL of the signed PDF when the endpoint returns one (AES `/process/sign`).
|
|
24
|
-
* QES `/process/signQes` returns only `{ success: true }` with no document
|
|
25
|
-
* URL, so this is absent for the QE variant.
|
|
26
|
-
*/
|
|
27
|
-
signedDocumentUrl?: string;
|
|
28
|
-
};
|
|
29
|
-
declare const AE_CONSENT_KEYS: readonly ["terms", "signElectronically", "signDisplayed"];
|
|
30
|
-
declare const QE_CONSENT_KEYS: readonly ["issuance", "qesAcknowledgement", "qscdConfirmation", "termsAgreement", "documentsReviewed"];
|
|
31
|
-
type AeConsentKey = (typeof AE_CONSENT_KEYS)[number];
|
|
32
|
-
type QeConsentKey = (typeof QE_CONSENT_KEYS)[number];
|
|
33
|
-
type ConsentKey = AeConsentKey | QeConsentKey;
|
|
34
|
-
type ConsentChecks = Partial<Record<ConsentKey, boolean>>;
|
|
35
|
-
declare function getConsentKeys(variant: ElectronicSignatureVariant): readonly ConsentKey[];
|
|
36
|
-
declare function getDefaultConsentChecks(variant: ElectronicSignatureVariant): ConsentChecks;
|
|
37
|
-
declare function areAllConsented(checks: ConsentChecks): boolean;
|
|
38
|
-
type UnsignedDocsResponse = {
|
|
39
|
-
documents: ElectronicSignatureDocument[];
|
|
40
|
-
};
|
|
41
|
-
type ElectronicSignatureErrorSource = 'upload' | 'fetchDocs' | 'signing';
|
|
42
|
-
type ElectronicSignatureContext = {
|
|
43
|
-
config: ElectronicSignatureConfig;
|
|
44
|
-
getFileData: () => ArrayBuffer | null;
|
|
45
|
-
documents: ElectronicSignatureDocument[];
|
|
46
|
-
signedDocuments: SignedDocument[];
|
|
47
|
-
fileName: string | null;
|
|
48
|
-
fileSize: number | null;
|
|
49
|
-
fileUrl: string | null;
|
|
50
|
-
/**
|
|
51
|
-
* Upload destination for the single document this session may hold.
|
|
52
|
-
* Generated exactly once (`POST /generateDocumentUploadUrl` creates a
|
|
53
|
-
* server-side document) and reused across upload retries so a session can
|
|
54
|
-
* never accumulate more than one document — see the AES "two documents"
|
|
55
|
-
* bug where a retry created a second, unremovable document.
|
|
56
|
-
*/
|
|
57
|
-
preSignedUrl: string | null;
|
|
58
|
-
consentChecks: ConsentChecks;
|
|
59
|
-
viewingDocumentUrl: string | null;
|
|
60
|
-
errorMessage: string;
|
|
61
|
-
errorSource: ElectronicSignatureErrorSource | null;
|
|
62
|
-
};
|
|
63
|
-
type ElectronicSignatureInput = {
|
|
64
|
-
config: ElectronicSignatureConfig;
|
|
65
|
-
getFileData: () => ArrayBuffer | null;
|
|
66
|
-
};
|
|
67
|
-
//#endregion
|
|
5
|
+
import { a as ElectronicSignatureConfig, c as ElectronicSignatureInput, f as SignedDocument, i as ConsentKey, l as ElectronicSignatureVariant, o as ElectronicSignatureContext, p as UnsignedDocsResponse, r as ConsentChecks, s as ElectronicSignatureDocument } from "./types-DWaEoU0I.js";
|
|
68
6
|
//#region src/modules/electronic-signature/electronicSignatureStateMachine.d.ts
|
|
69
7
|
declare const electronicSignatureMachine: StateMachine<ElectronicSignatureContext, {
|
|
70
8
|
type: "LOAD";
|
|
@@ -1323,4 +1261,4 @@ declare function createElectronicSignatureManager(options: {
|
|
|
1323
1261
|
};
|
|
1324
1262
|
type ElectronicSignatureManager = ReturnType<typeof createElectronicSignatureManager>;
|
|
1325
1263
|
//#endregion
|
|
1326
|
-
export {
|
|
1264
|
+
export { electronicSignatureMachine as i, ElectronicSignatureState as n, createElectronicSignatureManager as r, ElectronicSignatureManager as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-
|
|
1
|
+
import { a as isConfigured, c as setup, o as reset, t as SetupOptions } from "./setup-B1WTXTQV.js";
|
|
2
2
|
export { type SetupOptions, isConfigured, reset, setup };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as reset, o as setup, r as isConfigured } from "./setup-
|
|
1
|
+
import { i as reset, o as setup, r as isConfigured } from "./setup-DXdKnXXf.esm.js";
|
|
2
2
|
export { isConfigured, reset, setup };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as MandatoryConsentConfig } from "./types-BQgIv5p8.js";
|
|
2
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, t as MandatoryConsentManager } from "./mandatoryConsentManager-Ck2e2W4o.js";
|
|
2
3
|
export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
|
package/dist/{mandatoryConsentManager-Bc9AKBft.d.ts → mandatoryConsentManager-Ck2e2W4o.d.ts}
RENAMED
|
@@ -2,26 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import "./StateMachine-EDpYWy0i.js";
|
|
3
3
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
|
-
import {
|
|
6
|
-
//#region src/modules/mandatory-consent/types.d.ts
|
|
7
|
-
type RegulatoryConsentType = 'MANDATORY' | 'ML';
|
|
8
|
-
type MandatoryConsentConfig = {
|
|
9
|
-
consentType: RegulationTypes;
|
|
10
|
-
language?: string;
|
|
11
|
-
/** 'MANDATORY' (default) for MANDATORY_CONSENT, 'ML' for ML_CONSENT. */
|
|
12
|
-
type?: RegulatoryConsentType;
|
|
13
|
-
};
|
|
14
|
-
type MandatoryConsent = {
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
text: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
consentType: string;
|
|
20
|
-
};
|
|
21
|
-
type FetchMandatoryConsentResponse = {
|
|
22
|
-
consents: MandatoryConsent[];
|
|
23
|
-
};
|
|
24
|
-
//#endregion
|
|
5
|
+
import { n as MandatoryConsent, r as MandatoryConsentConfig, t as FetchMandatoryConsentResponse } from "./types-BQgIv5p8.js";
|
|
25
6
|
//#region src/modules/mandatory-consent/mandatoryConsentStateMachine.d.ts
|
|
26
7
|
type MandatoryConsentContext = {
|
|
27
8
|
config: MandatoryConsentConfig;
|
|
@@ -80,14 +61,14 @@ declare const mandatoryConsentMachine: StateMachine<MandatoryConsentContext, {
|
|
|
80
61
|
type: "clearError";
|
|
81
62
|
params: NonReducibleUnknown;
|
|
82
63
|
};
|
|
83
|
-
resetContext: {
|
|
84
|
-
type: "resetContext";
|
|
85
|
-
params: NonReducibleUnknown;
|
|
86
|
-
};
|
|
87
64
|
toggleSigned: {
|
|
88
65
|
type: "toggleSigned";
|
|
89
66
|
params: NonReducibleUnknown;
|
|
90
67
|
};
|
|
68
|
+
resetContext: {
|
|
69
|
+
type: "resetContext";
|
|
70
|
+
params: NonReducibleUnknown;
|
|
71
|
+
};
|
|
91
72
|
}>, {
|
|
92
73
|
type: "canSubmit";
|
|
93
74
|
params: unknown;
|
|
@@ -420,4 +401,4 @@ declare function createMandatoryConsentManagerFromActor(actor: MandatoryConsentA
|
|
|
420
401
|
};
|
|
421
402
|
type MandatoryConsentManager = ReturnType<typeof createMandatoryConsentManager>;
|
|
422
403
|
//#endregion
|
|
423
|
-
export { MandatoryConsentActor as a, createMandatoryConsentManagerFromActor as i, MandatoryConsentState as n, mandatoryConsentMachine as o, createMandatoryConsentManager as r,
|
|
404
|
+
export { MandatoryConsentActor as a, createMandatoryConsentManagerFromActor as i, MandatoryConsentState as n, mandatoryConsentMachine as o, createMandatoryConsentManager as r, MandatoryConsentManager as t };
|
|
@@ -516,7 +516,7 @@ async function stopRecording(session) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
async function initializeDeepsightSession(options) {
|
|
519
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
519
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BCxEZjuI.esm.js");
|
|
520
520
|
return loadDeepsightSession({
|
|
521
521
|
ds: options.ds,
|
|
522
522
|
storage: options.storage
|
package/dist/personhood.esm.js
CHANGED
|
@@ -4,13 +4,13 @@ import { t as api } from "./api-BDTZNnca.esm.js";
|
|
|
4
4
|
import { a as createApi$1, t as getStoredHttpConfig } from "./clientLifecycle-BX83zwtT.esm.js";
|
|
5
5
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { _ as getDeviceFingerprintInfo, g as getThumbmarkId, n as getFingerprintEnabled, p as isBrowserSimulation, v as BrowserEnvironmentProvider } from "./sessionInitializer-DT7IYwRx.esm.js";
|
|
8
8
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
9
9
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
10
10
|
import { i as requestPermission, t as checkPermission } from "./permissionServices-CkHL1BjH.esm.js";
|
|
11
11
|
import { a as stopCameraStream, r as requestCameraAccess } from "./camera-BmFEyPP_.esm.js";
|
|
12
12
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
13
|
-
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
13
|
+
import { f as stopStream, l as startDetection, s as initializeDeepsightSession, v as FaceDetectionProvider } from "./onDeviceFaceResults-CWMT6JTR.esm.js";
|
|
14
14
|
import { t as sleep } from "./ITimerCapability-DgdDzp8G.esm.js";
|
|
15
15
|
import { t as StreamCanvasCapture } from "./StreamCanvasCapture-D2XcXCZ4.esm.js";
|
|
16
16
|
//#region ../infra/src/crypto/randomUUID.ts
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as ElectronicSignatureConfig, g as getDefaultConsentChecks, i as ConsentKey, m as areAllConsented, r as ConsentChecks, s as ElectronicSignatureDocument, u as QE_CONSENT_KEYS } from "./types-DWaEoU0I.js";
|
|
3
|
+
import { i as electronicSignatureMachine, n as ElectronicSignatureState } from "./index-DGcdhk8Y.js";
|
|
3
4
|
//#region src/modules/qe-signature/index.d.ts
|
|
4
5
|
type QeSignatureConfig = Omit<ElectronicSignatureConfig, 'variant'>;
|
|
5
6
|
declare function createQeSignatureManager(options: {
|
package/dist/qe-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-
|
|
1
|
+
import { a as areAllConsented, i as QE_CONSENT_KEYS, n as electronicSignatureMachine, s as getDefaultConsentChecks, t as createElectronicSignatureManager } from "./electronicSignatureManager-BXIpAJ5m.esm.js";
|
|
2
2
|
//#region src/modules/qe-signature/index.ts
|
|
3
3
|
function createQeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
3
3
|
import { t as isAndroid } from "./platform-Cd_yWGNG.esm.js";
|
|
4
|
-
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-
|
|
4
|
+
import { d as stopRecording, g as uploadDeepsightVideo, u as startRecordingSession } from "./onDeviceFaceResults-CWMT6JTR.esm.js";
|
|
5
5
|
import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CUsftWlH.esm.js";
|
|
6
6
|
//#region src/internal/manualReview/manualReviewService.ts
|
|
7
7
|
async function flagFaceManualReview() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
|
|
2
|
+
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, o as redirectToMobileMachine, r as createRedirectToMobileManager, t as RedirectToMobileManager } from "./redirectToMobileManager-DZlJhqvq.js";
|
|
2
3
|
//#region src/modules/redirect-to-mobile/redirectToMobileServices.d.ts
|
|
3
4
|
declare const defaultRedirectToMobileServices: RedirectToMobileServices;
|
|
4
5
|
//#endregion
|
package/dist/{redirectToMobileManager-NVQM3o5P.d.ts → redirectToMobileManager-DZlJhqvq.d.ts}
RENAMED
|
@@ -1,45 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
3
|
import "./Actor-iTq7YY48.js";
|
|
4
|
-
|
|
5
|
-
type RedirectToMobileConfig = {
|
|
6
|
-
flowId?: string;
|
|
7
|
-
url?: string;
|
|
8
|
-
disableSmsOption?: boolean;
|
|
9
|
-
addContinueToDesktop?: boolean;
|
|
10
|
-
qrPhishingResistance?: boolean;
|
|
11
|
-
authHint?: string;
|
|
12
|
-
externalId?: string;
|
|
13
|
-
lang?: string;
|
|
14
|
-
};
|
|
15
|
-
type OnboardingStatus = 'ONBOARDING_FINISHED' | 'ONBOARDING_IN_PROGRESS' | 'ONBOARDING_NOT_STARTED';
|
|
16
|
-
type OnboardingStatusResponse = {
|
|
17
|
-
onboardingStatus: OnboardingStatus;
|
|
18
|
-
};
|
|
19
|
-
type RedirectUrlResponse = {
|
|
20
|
-
url: string;
|
|
21
|
-
};
|
|
22
|
-
type QrRefreshResponse = {
|
|
23
|
-
urlUuid: string;
|
|
24
|
-
};
|
|
25
|
-
type StartInfoResponse = {
|
|
26
|
-
phonePrefix: string;
|
|
27
|
-
ipIsoCode: string;
|
|
28
|
-
};
|
|
29
|
-
type SendRedirectSmsParams = {
|
|
30
|
-
smsType: 'DESKTOP_ONBOARDING';
|
|
31
|
-
uuid: string;
|
|
32
|
-
params?: string[];
|
|
33
|
-
};
|
|
34
|
-
type RedirectToMobileServices = {
|
|
35
|
-
fetchRedirectUrl: (signal?: AbortSignal) => Promise<RedirectUrlResponse>;
|
|
36
|
-
fetchOnboardingStatus: (signal?: AbortSignal) => Promise<OnboardingStatusResponse>;
|
|
37
|
-
sendRedirectSms: (params: SendRedirectSmsParams, signal?: AbortSignal) => Promise<void>;
|
|
38
|
-
addPhoneForRedirect: (phone: string, signal?: AbortSignal) => Promise<void>;
|
|
39
|
-
refreshQrUuid: (onboardingId: string, signal?: AbortSignal) => Promise<QrRefreshResponse>;
|
|
40
|
-
fetchStartInfo: (signal?: AbortSignal) => Promise<StartInfoResponse>;
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
4
|
+
import { n as RedirectToMobileServices, t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
|
|
43
5
|
//#region src/modules/redirect-to-mobile/redirectToMobileStateMachine.d.ts
|
|
44
6
|
declare const redirectToMobileMachine: any;
|
|
45
7
|
type RedirectToMobileMachine = typeof redirectToMobileMachine;
|
|
@@ -174,4 +136,4 @@ declare function createRedirectToMobileManagerFromActor(actor: RedirectToMobileA
|
|
|
174
136
|
};
|
|
175
137
|
type RedirectToMobileManager = ReturnType<typeof createRedirectToMobileManager>;
|
|
176
138
|
//#endregion
|
|
177
|
-
export { RedirectToMobileActor as a,
|
|
139
|
+
export { RedirectToMobileActor as a, createRedirectToMobileManagerFromActor as i, RedirectToMobileState as n, redirectToMobileMachine as o, createRedirectToMobileManager as r, RedirectToMobileManager as t };
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
2
|
-
import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-
|
|
2
|
+
import { a as SelfieCaptureOnlyMachine, c as SelfieActor, g as SelfieConfig, h as SelfieCaptureOnlyConfig, i as SelfieCaptureOnlyActor, l as SelfieMachine, n as FaceCaptureManagerState, o as selfieCaptureOnlyMachine, r as CreateSelfieCaptureOnlyActorOptions, t as FaceCaptureManager, u as selfieMachine } from "./faceCaptureManagerFactory-BUE6z9iY.js";
|
|
3
3
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
4
4
|
import { t as DeepsightService } from "./deepsightService-CR-CYdka.js";
|
|
5
5
|
import { a as FaceCapturedImageData, i as FaceCaptureOnlyResponse, n as DetectionStatus, o as FaceErrorCode } from "./types-DMMk51Ec.js";
|
|
6
6
|
import { n as PermissionStatus, t as PermissionResult } from "./types-BT-aiBYV.js";
|
|
7
|
-
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
7
|
+
import { a as ProcessFaceResponse, i as createSelfieManagerFromActor, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-LabfZln4.js";
|
|
8
8
|
//#region src/modules/selfie/selfieCaptureOnlyManager.d.ts
|
|
9
9
|
type SelfieCaptureOnlyState = FaceCaptureManagerState;
|
|
10
10
|
type SelfieCaptureOnlyManager = FaceCaptureManager;
|
package/dist/selfie.esm.js
CHANGED
|
@@ -2,12 +2,12 @@ import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor, r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
5
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BUAw6zY_.esm.js";
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BcntOvvC.esm.js";
|
|
7
7
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
8
8
|
import { r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
|
|
9
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
10
|
-
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-
|
|
9
|
+
import { t as selfieMachine } from "./selfieStateMachine-BH-U-y6R.esm.js";
|
|
10
|
+
import { n as createSelfieManagerFromActor, t as createSelfieManager } from "./selfieManager-D-QJUh3X.esm.js";
|
|
11
11
|
import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-B-QfsCQY.esm.js";
|
|
12
12
|
//#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
|
|
13
13
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-BrWOTaVG.esm.js";
|
|
2
2
|
import { n as eventModuleNames } from "./events-Dy8PyVO5.esm.js";
|
|
3
3
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-BcntOvvC.esm.js";
|
|
5
5
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-P6aUarE9.esm.js";
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-BH-U-y6R.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-BUE6z9iY.js";
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
6
6
|
type ProcessFaceResponse = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-BUAw6zY_.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CWMT6JTR.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { i as uploadSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-BAEYvNVr.esm.js";
|
|
7
7
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./sessionInitializer-DT7IYwRx.esm.js";
|
package/dist/session.d.ts
CHANGED
|
@@ -204,6 +204,8 @@ type SessionInitOptions = {
|
|
|
204
204
|
hostingApp?: string;
|
|
205
205
|
/** Abort signal for cancellation */
|
|
206
206
|
signal?: AbortSignal;
|
|
207
|
+
/** Set to `true` to preload Flow configuration during session activation. */
|
|
208
|
+
preloadFlow?: boolean;
|
|
207
209
|
};
|
|
208
210
|
type SessionInitResult = {
|
|
209
211
|
features: Features;
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as getApi } from "./api-BDTZNnca.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-CfRg7iAr.esm.js";
|
|
3
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { i as initializeSession } from "./sessionInitializer-DT7IYwRx.esm.js";
|
|
4
4
|
import { r as toIncodeApiError, t as IncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
5
|
-
import "./session-
|
|
5
|
+
import "./session-BU4MkUEc.esm.js";
|
|
6
6
|
import { n as getFinishStatus } from "./flowCompletionService-D5oIlcza.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
@@ -1614,7 +1614,7 @@ function isBrowserSimulation(browserEnv) {
|
|
|
1614
1614
|
}
|
|
1615
1615
|
//#endregion
|
|
1616
1616
|
//#region src/internal/version/sdkVersion.ts
|
|
1617
|
-
const SDK_VERSION = "0.0.0-dev-20260723-
|
|
1617
|
+
const SDK_VERSION = "0.0.0-dev-20260723-397b76d8";
|
|
1618
1618
|
//#endregion
|
|
1619
1619
|
//#region src/internal/fingerprint/fingerprintService.ts
|
|
1620
1620
|
function formatOsVersion(os) {
|
|
@@ -1647,6 +1647,35 @@ async function submitDeviceFingerprint(options = {}, dependencies) {
|
|
|
1647
1647
|
return response.data;
|
|
1648
1648
|
}
|
|
1649
1649
|
//#endregion
|
|
1650
|
+
//#region src/internal/session/standaloneFlowPolicy.ts
|
|
1651
|
+
let standaloneFlowPolicy = Object.freeze({
|
|
1652
|
+
enabled: true,
|
|
1653
|
+
mergeConfig: false
|
|
1654
|
+
});
|
|
1655
|
+
let flowPreloader;
|
|
1656
|
+
function resolveStandaloneFlowPolicy(flow) {
|
|
1657
|
+
return Object.freeze({
|
|
1658
|
+
enabled: flow !== false,
|
|
1659
|
+
mergeConfig: flow !== false && (typeof flow === "object" ? flow : {}).mergeConfig === true
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1662
|
+
function setStandaloneFlowPolicy(policy) {
|
|
1663
|
+
standaloneFlowPolicy = policy;
|
|
1664
|
+
}
|
|
1665
|
+
function getStandaloneFlowPolicy() {
|
|
1666
|
+
return standaloneFlowPolicy;
|
|
1667
|
+
}
|
|
1668
|
+
function registerFlowPreloader(preloader) {
|
|
1669
|
+
flowPreloader = preloader;
|
|
1670
|
+
}
|
|
1671
|
+
function preloadSessionFlow() {
|
|
1672
|
+
return flowPreloader?.() ?? Promise.resolve();
|
|
1673
|
+
}
|
|
1674
|
+
function resetStandaloneFlowPolicy() {
|
|
1675
|
+
standaloneFlowPolicy = resolveStandaloneFlowPolicy(void 0);
|
|
1676
|
+
flowPreloader = void 0;
|
|
1677
|
+
}
|
|
1678
|
+
//#endregion
|
|
1650
1679
|
//#region src/internal/session/sessionInitializer.ts
|
|
1651
1680
|
let sessionInitialized = false;
|
|
1652
1681
|
let cachedFeatures = null;
|
|
@@ -1662,6 +1691,13 @@ function setClientFingerprintEnabled(enabled) {
|
|
|
1662
1691
|
function resolveDisableIpify(serverDisableIpify) {
|
|
1663
1692
|
return !clientIpLookupEnabled || serverDisableIpify;
|
|
1664
1693
|
}
|
|
1694
|
+
function preloadOptionalFlow() {
|
|
1695
|
+
try {
|
|
1696
|
+
return preloadSessionFlow().catch(() => void 0);
|
|
1697
|
+
} catch {
|
|
1698
|
+
return Promise.resolve();
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1665
1701
|
let cachedFingerprintSuccess = false;
|
|
1666
1702
|
let cachedFingerprintResult;
|
|
1667
1703
|
let sessionInitPromise = null;
|
|
@@ -1695,19 +1731,29 @@ let sessionInitPromise = null;
|
|
|
1695
1731
|
* ```
|
|
1696
1732
|
*/
|
|
1697
1733
|
async function initializeSession(options = {}) {
|
|
1698
|
-
const { token, hostingApp, signal } = options;
|
|
1734
|
+
const { token, hostingApp, signal, preloadFlow } = options;
|
|
1735
|
+
let triLinkPromise = Promise.resolve();
|
|
1699
1736
|
if (token !== void 0 && token !== getToken()) {
|
|
1700
1737
|
setToken(token);
|
|
1701
1738
|
resetSessionInit();
|
|
1702
|
-
if (isTRIStarted())
|
|
1739
|
+
if (isTRIStarted()) triLinkPromise = linkSessionWithTRI(token);
|
|
1740
|
+
}
|
|
1741
|
+
const flowPreloadPromise = getToken() && preloadFlow === true ? preloadOptionalFlow() : Promise.resolve();
|
|
1742
|
+
await triLinkPromise;
|
|
1743
|
+
if (sessionInitialized && cachedFeatures) {
|
|
1744
|
+
await flowPreloadPromise;
|
|
1745
|
+
return {
|
|
1746
|
+
features: cachedFeatures,
|
|
1747
|
+
disableIpify: cachedDisableIpify,
|
|
1748
|
+
fingerprintSuccess: cachedFingerprintSuccess,
|
|
1749
|
+
fingerprintResult: cachedFingerprintResult
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
if (sessionInitPromise) {
|
|
1753
|
+
const result = await sessionInitPromise;
|
|
1754
|
+
await flowPreloadPromise;
|
|
1755
|
+
return result;
|
|
1703
1756
|
}
|
|
1704
|
-
if (sessionInitialized && cachedFeatures) return {
|
|
1705
|
-
features: cachedFeatures,
|
|
1706
|
-
disableIpify: cachedDisableIpify,
|
|
1707
|
-
fingerprintSuccess: cachedFingerprintSuccess,
|
|
1708
|
-
fingerprintResult: cachedFingerprintResult
|
|
1709
|
-
};
|
|
1710
|
-
if (sessionInitPromise) return sessionInitPromise;
|
|
1711
1757
|
sessionInitPromise = (async () => {
|
|
1712
1758
|
let features;
|
|
1713
1759
|
let serverDisableIpify = false;
|
|
@@ -1760,6 +1806,7 @@ async function initializeSession(options = {}) {
|
|
|
1760
1806
|
cachedDisableIpify = disableIpify;
|
|
1761
1807
|
cachedFingerprintSuccess = fingerprintSuccess;
|
|
1762
1808
|
cachedFingerprintResult = fingerprintResult;
|
|
1809
|
+
await flowPreloadPromise;
|
|
1763
1810
|
return {
|
|
1764
1811
|
features,
|
|
1765
1812
|
disableIpify,
|
|
@@ -1807,4 +1854,4 @@ function resetSessionInit() {
|
|
|
1807
1854
|
resetDeviceStatsQueue();
|
|
1808
1855
|
}
|
|
1809
1856
|
//#endregion
|
|
1810
|
-
export { resetSessionInit as a,
|
|
1857
|
+
export { getDeviceFingerprintInfo as _, resetSessionInit as a, getStandaloneFlowPolicy as c, resolveStandaloneFlowPolicy as d, setStandaloneFlowPolicy as f, getThumbmarkId as g, FingerprintProvider as h, initializeSession as i, registerFlowPreloader as l, IpifyProvider as m, getFingerprintEnabled as n, setClientFingerprintEnabled as o, isBrowserSimulation as p, getSessionFingerprintResult as r, setClientIpLookupEnabled as s, getDisableIpify as t, resetStandaloneFlowPolicy as u, BrowserEnvironmentProvider as v };
|