@incodetech/core 2.1.1-rc.4 → 2.1.1-rc.6

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.
Files changed (50) hide show
  1. package/dist/authentication.esm.js +6 -6
  2. package/dist/{authenticationManager-CWDi2BOI.esm.js → authenticationManager-DuMSpelF.esm.js} +2 -2
  3. package/dist/{authenticationStateMachine-DRY2mmrq.esm.js → authenticationStateMachine-CDG0SMYg.esm.js} +2 -2
  4. package/dist/certificate-issuance.d.ts +28 -28
  5. package/dist/consent.d.ts +1 -1
  6. package/dist/{consentManager-B-WC41zN.d.ts → consentManager-2EPNWwaG.d.ts} +50 -50
  7. package/dist/cpf-ocr.d.ts +1 -1
  8. package/dist/{cpfOcrManager-UxwjbB41.d.ts → cpfOcrManager-Bg7WqgVy.d.ts} +17 -17
  9. package/dist/{deepsightLoader-C9gah1-E.esm.js → deepsightLoader-CmbuFd4Q.esm.js} +1 -1
  10. package/dist/document-capture.d.ts +242 -242
  11. package/dist/document-upload.d.ts +43 -43
  12. package/dist/ekyb.esm.js +3 -3
  13. package/dist/{ekybStateMachine-BMKWlvbJ.esm.js → ekybStateMachine-D5vj8UG_.esm.js} +1 -1
  14. package/dist/extensibility.d.ts +5 -5
  15. package/dist/extensibility.esm.js +11 -11
  16. package/dist/{faceCaptureManagerFactory-s4wRwMou.esm.js → faceCaptureManagerFactory-B65bYWfD.esm.js} +1 -1
  17. package/dist/{faceCaptureSetup-TCy7nC4v.esm.js → faceCaptureSetup-CoQ5A9Il.esm.js} +2 -2
  18. package/dist/flow.d.ts +2 -2
  19. package/dist/flow.esm.js +18 -5
  20. package/dist/{flowServices-CC4Yjo3i.esm.js → flowServices-CYMfu_12.esm.js} +1 -1
  21. package/dist/home.d.ts +10 -10
  22. package/dist/id-ocr.d.ts +1 -1
  23. package/dist/id-verification.d.ts +25 -25
  24. package/dist/id.esm.js +5 -5
  25. package/dist/{idCaptureManager-da-Mg75H.esm.js → idCaptureManager-Cq1DSv6P.esm.js} +1 -1
  26. package/dist/{idCaptureStateMachine-CUT5BnrJ.esm.js → idCaptureStateMachine-BqjYsLFf.esm.js} +4 -4
  27. package/dist/{idOcrManager-Bppyh7Va.d.ts → idOcrManager-CXtyyf3I.d.ts} +52 -52
  28. package/dist/identity-reuse.d.ts +1 -1
  29. package/dist/{identityReuseManager-RvT_j2U6.d.ts → identityReuseManager-BNf21Y6b.d.ts} +31 -31
  30. package/dist/index.esm.js +2 -2
  31. package/dist/mandatory-consent.d.ts +1 -1
  32. package/dist/{mandatoryConsentManager-WqeJ-BGT.d.ts → mandatoryConsentManager-s6xcax0K.d.ts} +50 -50
  33. package/dist/{onDeviceFaceResults-B1TzNaDk.esm.js → onDeviceFaceResults-CAfvpjnC.esm.js} +1 -1
  34. package/dist/personhood.d.ts +10 -0
  35. package/dist/personhood.esm.js +11 -5
  36. package/dist/{recordingService-CgIREjnH.esm.js → recordingService-Df_A6oXO.esm.js} +1 -1
  37. package/dist/selfie.esm.js +6 -6
  38. package/dist/{selfieManager-D2H9WmPP.esm.js → selfieManager-CtS5wYEo.esm.js} +2 -2
  39. package/dist/{selfieStateMachine-Bx1SgEqB.esm.js → selfieStateMachine-CiMhj8YP.esm.js} +2 -2
  40. package/dist/session.esm.js +1 -1
  41. package/dist/{sessionInitializer-8p-JWZlA.esm.js → sessionInitializer-DfN3wUch.esm.js} +1 -1
  42. package/dist/{setup-B4yV-INl.esm.js → setup-_SH3lJGQ.esm.js} +2 -2
  43. package/dist/trust-graph.d.ts +2 -2
  44. package/dist/video-selfie.d.ts +2 -2
  45. package/dist/video-selfie.esm.js +3 -3
  46. package/dist/wasm.d.ts +1 -1
  47. package/dist/wasm.esm.js +2 -2
  48. package/dist/workflow.d.ts +105 -105
  49. package/dist/workflow.esm.js +9 -9
  50. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { t as Manager } from "./Manager-goNPc_h_.js";
2
2
  import { t as ActorRefFrom } from "./Actor-BwgmOPkb.js";
3
- import * as xstate920 from "xstate";
3
+ import * as xstate969 from "xstate";
4
4
 
5
5
  //#region src/modules/identity-reuse/types.d.ts
6
6
 
@@ -76,7 +76,7 @@ type IdentityReuseContext = {
76
76
  type IdentityReuseInput = {
77
77
  config: IdentityReuseConfig;
78
78
  };
79
- declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext, {
79
+ declare const identityReuseMachine: xstate969.StateMachine<IdentityReuseContext, {
80
80
  type: "LOAD";
81
81
  } | {
82
82
  type: "DOCUMENT_CHOSEN";
@@ -88,36 +88,36 @@ declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext,
88
88
  } | {
89
89
  type: "RETRY";
90
90
  }, {
91
- [x: string]: xstate920.ActorRefFromLogic<xstate920.PromiseActorLogic<FetchDocumentsResponse, void, xstate920.EventObject>> | xstate920.ActorRefFromLogic<xstate920.PromiseActorLogic<SubmitResponse, SubmitParams, xstate920.EventObject>> | undefined;
92
- }, xstate920.Values<{
91
+ [x: string]: xstate969.ActorRefFromLogic<xstate969.PromiseActorLogic<FetchDocumentsResponse, void, xstate969.EventObject>> | xstate969.ActorRefFromLogic<xstate969.PromiseActorLogic<SubmitResponse, SubmitParams, xstate969.EventObject>> | undefined;
92
+ }, xstate969.Values<{
93
93
  fetchDocuments: {
94
94
  src: "fetchDocuments";
95
- logic: xstate920.PromiseActorLogic<FetchDocumentsResponse, void, xstate920.EventObject>;
95
+ logic: xstate969.PromiseActorLogic<FetchDocumentsResponse, void, xstate969.EventObject>;
96
96
  id: string | undefined;
97
97
  };
98
98
  submitDocument: {
99
99
  src: "submitDocument";
100
- logic: xstate920.PromiseActorLogic<SubmitResponse, SubmitParams, xstate920.EventObject>;
100
+ logic: xstate969.PromiseActorLogic<SubmitResponse, SubmitParams, xstate969.EventObject>;
101
101
  id: string | undefined;
102
102
  };
103
- }>, xstate920.Values<{
103
+ }>, xstate969.Values<{
104
104
  setDocuments: {
105
105
  type: "setDocuments";
106
- params: xstate920.NonReducibleUnknown;
106
+ params: xstate969.NonReducibleUnknown;
107
107
  };
108
108
  setError: {
109
109
  type: "setError";
110
- params: xstate920.NonReducibleUnknown;
110
+ params: xstate969.NonReducibleUnknown;
111
111
  };
112
112
  clearError: {
113
113
  type: "clearError";
114
- params: xstate920.NonReducibleUnknown;
114
+ params: xstate969.NonReducibleUnknown;
115
115
  };
116
116
  setSelectedDocument: {
117
117
  type: "setSelectedDocument";
118
- params: xstate920.NonReducibleUnknown;
118
+ params: xstate969.NonReducibleUnknown;
119
119
  };
120
- }>, xstate920.Values<{
120
+ }>, xstate969.Values<{
121
121
  hasDocuments: {
122
122
  type: "hasDocuments";
123
123
  params: unknown;
@@ -126,7 +126,7 @@ declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext,
126
126
  type: "hasSelection";
127
127
  params: unknown;
128
128
  };
129
- }>, never, "error" | "idle" | "finished" | "loading" | "documentsFound" | "submitting", string, IdentityReuseInput, xstate920.NonReducibleUnknown, xstate920.EventObject, xstate920.MetaObject, {
129
+ }>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, xstate969.NonReducibleUnknown, xstate969.EventObject, xstate969.MetaObject, {
130
130
  readonly id: "identityReuse";
131
131
  readonly initial: "idle";
132
132
  readonly context: ({
@@ -135,55 +135,55 @@ declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext,
135
135
  spawn: {
136
136
  <TSrc extends "fetchDocuments" | "submitDocument">(logic: TSrc, ...[options]: ({
137
137
  src: "fetchDocuments";
138
- logic: xstate920.PromiseActorLogic<FetchDocumentsResponse, void, xstate920.EventObject>;
138
+ logic: xstate969.PromiseActorLogic<FetchDocumentsResponse, void, xstate969.EventObject>;
139
139
  id: string | undefined;
140
140
  } extends infer T ? T extends {
141
141
  src: "fetchDocuments";
142
- logic: xstate920.PromiseActorLogic<FetchDocumentsResponse, void, xstate920.EventObject>;
142
+ logic: xstate969.PromiseActorLogic<FetchDocumentsResponse, void, xstate969.EventObject>;
143
143
  id: string | undefined;
144
144
  } ? T extends {
145
145
  src: TSrc;
146
- } ? xstate920.ConditionalRequired<[options?: ({
146
+ } ? xstate969.ConditionalRequired<[options?: ({
147
147
  id?: T["id"] | undefined;
148
148
  systemId?: string;
149
- input?: xstate920.InputFrom<T["logic"]> | undefined;
149
+ input?: xstate969.InputFrom<T["logic"]> | undefined;
150
150
  syncSnapshot?: boolean;
151
- } & { [K in xstate920.RequiredActorOptions<T>]: unknown }) | undefined], xstate920.IsNotNever<xstate920.RequiredActorOptions<T>>> : never : never : never) | ({
151
+ } & { [K in xstate969.RequiredActorOptions<T>]: unknown }) | undefined], xstate969.IsNotNever<xstate969.RequiredActorOptions<T>>> : never : never : never) | ({
152
152
  src: "submitDocument";
153
- logic: xstate920.PromiseActorLogic<SubmitResponse, SubmitParams, xstate920.EventObject>;
153
+ logic: xstate969.PromiseActorLogic<SubmitResponse, SubmitParams, xstate969.EventObject>;
154
154
  id: string | undefined;
155
155
  } extends infer T_1 ? T_1 extends {
156
156
  src: "submitDocument";
157
- logic: xstate920.PromiseActorLogic<SubmitResponse, SubmitParams, xstate920.EventObject>;
157
+ logic: xstate969.PromiseActorLogic<SubmitResponse, SubmitParams, xstate969.EventObject>;
158
158
  id: string | undefined;
159
159
  } ? T_1 extends {
160
160
  src: TSrc;
161
- } ? xstate920.ConditionalRequired<[options?: ({
161
+ } ? xstate969.ConditionalRequired<[options?: ({
162
162
  id?: T_1["id"] | undefined;
163
163
  systemId?: string;
164
- input?: xstate920.InputFrom<T_1["logic"]> | undefined;
164
+ input?: xstate969.InputFrom<T_1["logic"]> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K_1 in xstate920.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate920.IsNotNever<xstate920.RequiredActorOptions<T_1>>> : never : never : never)): xstate920.ActorRefFromLogic<xstate920.GetConcreteByKey<xstate920.Values<{
166
+ } & { [K_1 in xstate969.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate969.IsNotNever<xstate969.RequiredActorOptions<T_1>>> : never : never : never)): xstate969.ActorRefFromLogic<xstate969.GetConcreteByKey<xstate969.Values<{
167
167
  fetchDocuments: {
168
168
  src: "fetchDocuments";
169
- logic: xstate920.PromiseActorLogic<FetchDocumentsResponse, void, xstate920.EventObject>;
169
+ logic: xstate969.PromiseActorLogic<FetchDocumentsResponse, void, xstate969.EventObject>;
170
170
  id: string | undefined;
171
171
  };
172
172
  submitDocument: {
173
173
  src: "submitDocument";
174
- logic: xstate920.PromiseActorLogic<SubmitResponse, SubmitParams, xstate920.EventObject>;
174
+ logic: xstate969.PromiseActorLogic<SubmitResponse, SubmitParams, xstate969.EventObject>;
175
175
  id: string | undefined;
176
176
  };
177
177
  }>, "src", TSrc>["logic"]>;
178
- <TLogic extends xstate920.AnyActorLogic>(src: TLogic, ...[options]: xstate920.ConditionalRequired<[options?: ({
178
+ <TLogic extends xstate969.AnyActorLogic>(src: TLogic, ...[options]: xstate969.ConditionalRequired<[options?: ({
179
179
  id?: never;
180
180
  systemId?: string;
181
- input?: xstate920.InputFrom<TLogic> | undefined;
181
+ input?: xstate969.InputFrom<TLogic> | undefined;
182
182
  syncSnapshot?: boolean;
183
- } & { [K in xstate920.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate920.IsNotNever<xstate920.RequiredLogicInput<TLogic>>>): xstate920.ActorRefFromLogic<TLogic>;
183
+ } & { [K in xstate969.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate969.IsNotNever<xstate969.RequiredLogicInput<TLogic>>>): xstate969.ActorRefFromLogic<TLogic>;
184
184
  };
185
185
  input: IdentityReuseInput;
186
- self: xstate920.ActorRef<xstate920.MachineSnapshot<IdentityReuseContext, {
186
+ self: xstate969.ActorRef<xstate969.MachineSnapshot<IdentityReuseContext, {
187
187
  type: "LOAD";
188
188
  } | {
189
189
  type: "DOCUMENT_CHOSEN";
@@ -194,7 +194,7 @@ declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext,
194
194
  type: "SKIP";
195
195
  } | {
196
196
  type: "RETRY";
197
- }, Record<string, xstate920.AnyActorRef | undefined>, xstate920.StateValue, string, unknown, any, any>, {
197
+ }, Record<string, xstate969.AnyActorRef | undefined>, xstate969.StateValue, string, unknown, any, any>, {
198
198
  type: "LOAD";
199
199
  } | {
200
200
  type: "DOCUMENT_CHOSEN";
@@ -205,7 +205,7 @@ declare const identityReuseMachine: xstate920.StateMachine<IdentityReuseContext,
205
205
  type: "SKIP";
206
206
  } | {
207
207
  type: "RETRY";
208
- }, xstate920.AnyEventObject>;
208
+ }, xstate969.AnyEventObject>;
209
209
  }) => {
210
210
  config: IdentityReuseConfig;
211
211
  documents: never[];
package/dist/index.esm.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./WasmUtilProvider-BgzcXBdl.esm.js";
2
- import { i as reset, o as setup, r as isConfigured } from "./setup-B4yV-INl.esm.js";
2
+ import { i as reset, o as setup, r as isConfigured } from "./setup-_SH3lJGQ.esm.js";
3
3
  import "./BrowserTimerProvider-CHloo0eQ.esm.js";
4
4
  import "./api-DsbUi7TO.esm.js";
5
5
  import "./clientLifecycle-VyzRfALg.esm.js";
6
6
  import "./events-1wxZ97yf.esm.js";
7
7
  import "./endpoints-CwrFQfW7.esm.js";
8
8
  import "./stats-BVy52wLy.esm.js";
9
- import "./sessionInitializer-8p-JWZlA.esm.js";
9
+ import "./sessionInitializer-DfN3wUch.esm.js";
10
10
  import "./browserSimulation-CWJhFPZ2.esm.js";
11
11
  import "./platform-0Ot-bF_a.esm.js";
12
12
  import "./getBrowser-1yNcfFZR.esm.js";
@@ -7,5 +7,5 @@ import "./types-BgjMAEXl.js";
7
7
  import "./canvas-90BqS0NF.js";
8
8
  import "./createFaceAvatar-CpdYp9Iy.js";
9
9
  import "./types-BUgeB2X6.js";
10
- import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-WqeJ-BGT.js";
10
+ import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, o as mandatoryConsentMachine, r as createMandatoryConsentManager, s as MandatoryConsentConfig, t as MandatoryConsentManager } from "./mandatoryConsentManager-s6xcax0K.js";
11
11
  export { type MandatoryConsentActor, type MandatoryConsentConfig, type MandatoryConsentManager, type MandatoryConsentState, createMandatoryConsentManager, createMandatoryConsentManagerFromActor, mandatoryConsentMachine };
@@ -1,7 +1,7 @@
1
1
  import { t as Manager } from "./Manager-goNPc_h_.js";
2
2
  import { t as ActorRefFrom } from "./Actor-BwgmOPkb.js";
3
3
  import { a as RegulationTypes } from "./types-BUgeB2X6.js";
4
- import * as xstate978 from "xstate";
4
+ import * as xstate1516 from "xstate";
5
5
 
6
6
  //#region src/modules/mandatory-consent/types.d.ts
7
7
  type RegulatoryConsentType = 'MANDATORY' | 'ML';
@@ -32,7 +32,7 @@ type MandatoryConsentContext = {
32
32
  type MandatoryConsentInput = {
33
33
  config: MandatoryConsentConfig;
34
34
  };
35
- declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentContext, {
35
+ declare const mandatoryConsentMachine: xstate1516.StateMachine<MandatoryConsentContext, {
36
36
  type: "LOAD";
37
37
  } | {
38
38
  type: "TOGGLE";
@@ -45,53 +45,53 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
45
45
  } | {
46
46
  type: "RESET";
47
47
  }, {
48
- [x: string]: xstate978.ActorRefFromLogic<xstate978.PromiseActorLogic<FetchMandatoryConsentResponse, {
48
+ [x: string]: xstate1516.ActorRefFromLogic<xstate1516.PromiseActorLogic<FetchMandatoryConsentResponse, {
49
49
  config: MandatoryConsentConfig;
50
- }, xstate978.EventObject>> | xstate978.ActorRefFromLogic<xstate978.PromiseActorLogic<void, {
50
+ }, xstate1516.EventObject>> | xstate1516.ActorRefFromLogic<xstate1516.PromiseActorLogic<void, {
51
51
  consentId: string;
52
52
  isSigned: boolean;
53
- }, xstate978.EventObject>> | undefined;
54
- }, xstate978.Values<{
53
+ }, xstate1516.EventObject>> | undefined;
54
+ }, xstate1516.Values<{
55
55
  fetchConsent: {
56
56
  src: "fetchConsent";
57
- logic: xstate978.PromiseActorLogic<FetchMandatoryConsentResponse, {
57
+ logic: xstate1516.PromiseActorLogic<FetchMandatoryConsentResponse, {
58
58
  config: MandatoryConsentConfig;
59
- }, xstate978.EventObject>;
59
+ }, xstate1516.EventObject>;
60
60
  id: string | undefined;
61
61
  };
62
62
  submitConsent: {
63
63
  src: "submitConsent";
64
- logic: xstate978.PromiseActorLogic<void, {
64
+ logic: xstate1516.PromiseActorLogic<void, {
65
65
  consentId: string;
66
66
  isSigned: boolean;
67
- }, xstate978.EventObject>;
67
+ }, xstate1516.EventObject>;
68
68
  id: string | undefined;
69
69
  };
70
- }>, xstate978.Values<{
70
+ }>, xstate1516.Values<{
71
71
  setConsent: {
72
72
  type: "setConsent";
73
- params: xstate978.NonReducibleUnknown;
73
+ params: xstate1516.NonReducibleUnknown;
74
74
  };
75
75
  setError: {
76
76
  type: "setError";
77
- params: xstate978.NonReducibleUnknown;
77
+ params: xstate1516.NonReducibleUnknown;
78
78
  };
79
79
  clearError: {
80
80
  type: "clearError";
81
- params: xstate978.NonReducibleUnknown;
82
- };
83
- toggleSigned: {
84
- type: "toggleSigned";
85
- params: xstate978.NonReducibleUnknown;
81
+ params: xstate1516.NonReducibleUnknown;
86
82
  };
87
83
  resetContext: {
88
84
  type: "resetContext";
89
- params: xstate978.NonReducibleUnknown;
85
+ params: xstate1516.NonReducibleUnknown;
86
+ };
87
+ toggleSigned: {
88
+ type: "toggleSigned";
89
+ params: xstate1516.NonReducibleUnknown;
90
90
  };
91
91
  }>, {
92
92
  type: "canSubmit";
93
93
  params: unknown;
94
- }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate978.NonReducibleUnknown, xstate978.EventObject, xstate978.MetaObject, {
94
+ }, never, "error" | "idle" | "closed" | "finished" | "loading" | "submitting" | "display", string, MandatoryConsentInput, xstate1516.NonReducibleUnknown, xstate1516.EventObject, xstate1516.MetaObject, {
95
95
  readonly id: "mandatoryConsent";
96
96
  readonly initial: "idle";
97
97
  readonly context: ({
@@ -100,70 +100,70 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
100
100
  spawn: {
101
101
  <TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
102
102
  src: "fetchConsent";
103
- logic: xstate978.PromiseActorLogic<FetchMandatoryConsentResponse, {
103
+ logic: xstate1516.PromiseActorLogic<FetchMandatoryConsentResponse, {
104
104
  config: MandatoryConsentConfig;
105
- }, xstate978.EventObject>;
105
+ }, xstate1516.EventObject>;
106
106
  id: string | undefined;
107
107
  } extends infer T ? T extends {
108
108
  src: "fetchConsent";
109
- logic: xstate978.PromiseActorLogic<FetchMandatoryConsentResponse, {
109
+ logic: xstate1516.PromiseActorLogic<FetchMandatoryConsentResponse, {
110
110
  config: MandatoryConsentConfig;
111
- }, xstate978.EventObject>;
111
+ }, xstate1516.EventObject>;
112
112
  id: string | undefined;
113
113
  } ? T extends {
114
114
  src: TSrc;
115
- } ? xstate978.ConditionalRequired<[options?: ({
115
+ } ? xstate1516.ConditionalRequired<[options?: ({
116
116
  id?: T["id"] | undefined;
117
117
  systemId?: string;
118
- input?: xstate978.InputFrom<T["logic"]> | undefined;
118
+ input?: xstate1516.InputFrom<T["logic"]> | undefined;
119
119
  syncSnapshot?: boolean;
120
- } & { [K in xstate978.RequiredActorOptions<T>]: unknown }) | undefined], xstate978.IsNotNever<xstate978.RequiredActorOptions<T>>> : never : never : never) | ({
120
+ } & { [K in xstate1516.RequiredActorOptions<T>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredActorOptions<T>>> : never : never : never) | ({
121
121
  src: "submitConsent";
122
- logic: xstate978.PromiseActorLogic<void, {
122
+ logic: xstate1516.PromiseActorLogic<void, {
123
123
  consentId: string;
124
124
  isSigned: boolean;
125
- }, xstate978.EventObject>;
125
+ }, xstate1516.EventObject>;
126
126
  id: string | undefined;
127
127
  } extends infer T_1 ? T_1 extends {
128
128
  src: "submitConsent";
129
- logic: xstate978.PromiseActorLogic<void, {
129
+ logic: xstate1516.PromiseActorLogic<void, {
130
130
  consentId: string;
131
131
  isSigned: boolean;
132
- }, xstate978.EventObject>;
132
+ }, xstate1516.EventObject>;
133
133
  id: string | undefined;
134
134
  } ? T_1 extends {
135
135
  src: TSrc;
136
- } ? xstate978.ConditionalRequired<[options?: ({
136
+ } ? xstate1516.ConditionalRequired<[options?: ({
137
137
  id?: T_1["id"] | undefined;
138
138
  systemId?: string;
139
- input?: xstate978.InputFrom<T_1["logic"]> | undefined;
139
+ input?: xstate1516.InputFrom<T_1["logic"]> | undefined;
140
140
  syncSnapshot?: boolean;
141
- } & { [K_1 in xstate978.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate978.IsNotNever<xstate978.RequiredActorOptions<T_1>>> : never : never : never)): xstate978.ActorRefFromLogic<xstate978.GetConcreteByKey<xstate978.Values<{
141
+ } & { [K_1 in xstate1516.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredActorOptions<T_1>>> : never : never : never)): xstate1516.ActorRefFromLogic<xstate1516.GetConcreteByKey<xstate1516.Values<{
142
142
  fetchConsent: {
143
143
  src: "fetchConsent";
144
- logic: xstate978.PromiseActorLogic<FetchMandatoryConsentResponse, {
144
+ logic: xstate1516.PromiseActorLogic<FetchMandatoryConsentResponse, {
145
145
  config: MandatoryConsentConfig;
146
- }, xstate978.EventObject>;
146
+ }, xstate1516.EventObject>;
147
147
  id: string | undefined;
148
148
  };
149
149
  submitConsent: {
150
150
  src: "submitConsent";
151
- logic: xstate978.PromiseActorLogic<void, {
151
+ logic: xstate1516.PromiseActorLogic<void, {
152
152
  consentId: string;
153
153
  isSigned: boolean;
154
- }, xstate978.EventObject>;
154
+ }, xstate1516.EventObject>;
155
155
  id: string | undefined;
156
156
  };
157
157
  }>, "src", TSrc>["logic"]>;
158
- <TLogic extends xstate978.AnyActorLogic>(src: TLogic, ...[options]: xstate978.ConditionalRequired<[options?: ({
158
+ <TLogic extends xstate1516.AnyActorLogic>(src: TLogic, ...[options]: xstate1516.ConditionalRequired<[options?: ({
159
159
  id?: never;
160
160
  systemId?: string;
161
- input?: xstate978.InputFrom<TLogic> | undefined;
161
+ input?: xstate1516.InputFrom<TLogic> | undefined;
162
162
  syncSnapshot?: boolean;
163
- } & { [K in xstate978.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate978.IsNotNever<xstate978.RequiredLogicInput<TLogic>>>): xstate978.ActorRefFromLogic<TLogic>;
163
+ } & { [K in xstate1516.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1516.IsNotNever<xstate1516.RequiredLogicInput<TLogic>>>): xstate1516.ActorRefFromLogic<TLogic>;
164
164
  };
165
165
  input: MandatoryConsentInput;
166
- self: xstate978.ActorRef<xstate978.MachineSnapshot<MandatoryConsentContext, {
166
+ self: xstate1516.ActorRef<xstate1516.MachineSnapshot<MandatoryConsentContext, {
167
167
  type: "LOAD";
168
168
  } | {
169
169
  type: "TOGGLE";
@@ -175,7 +175,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
175
175
  type: "RETRY";
176
176
  } | {
177
177
  type: "RESET";
178
- }, Record<string, xstate978.AnyActorRef | undefined>, xstate978.StateValue, string, unknown, any, any>, {
178
+ }, Record<string, xstate1516.AnyActorRef | undefined>, xstate1516.StateValue, string, unknown, any, any>, {
179
179
  type: "LOAD";
180
180
  } | {
181
181
  type: "TOGGLE";
@@ -187,7 +187,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
187
187
  type: "RETRY";
188
188
  } | {
189
189
  type: "RESET";
190
- }, xstate978.AnyEventObject>;
190
+ }, xstate1516.AnyEventObject>;
191
191
  }) => {
192
192
  config: MandatoryConsentConfig;
193
193
  consent: undefined;
@@ -224,7 +224,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
224
224
  } | {
225
225
  type: "RESET";
226
226
  };
227
- self: xstate978.ActorRef<xstate978.MachineSnapshot<MandatoryConsentContext, {
227
+ self: xstate1516.ActorRef<xstate1516.MachineSnapshot<MandatoryConsentContext, {
228
228
  type: "LOAD";
229
229
  } | {
230
230
  type: "TOGGLE";
@@ -236,7 +236,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
236
236
  type: "RETRY";
237
237
  } | {
238
238
  type: "RESET";
239
- }, Record<string, xstate978.AnyActorRef>, xstate978.StateValue, string, unknown, any, any>, {
239
+ }, Record<string, xstate1516.AnyActorRef>, xstate1516.StateValue, string, unknown, any, any>, {
240
240
  type: "LOAD";
241
241
  } | {
242
242
  type: "TOGGLE";
@@ -248,7 +248,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
248
248
  type: "RETRY";
249
249
  } | {
250
250
  type: "RESET";
251
- }, xstate978.AnyEventObject>;
251
+ }, xstate1516.AnyEventObject>;
252
252
  }) => {
253
253
  config: MandatoryConsentConfig;
254
254
  };
@@ -301,7 +301,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
301
301
  } | {
302
302
  type: "RESET";
303
303
  };
304
- self: xstate978.ActorRef<xstate978.MachineSnapshot<MandatoryConsentContext, {
304
+ self: xstate1516.ActorRef<xstate1516.MachineSnapshot<MandatoryConsentContext, {
305
305
  type: "LOAD";
306
306
  } | {
307
307
  type: "TOGGLE";
@@ -313,7 +313,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
313
313
  type: "RETRY";
314
314
  } | {
315
315
  type: "RESET";
316
- }, Record<string, xstate978.AnyActorRef>, xstate978.StateValue, string, unknown, any, any>, {
316
+ }, Record<string, xstate1516.AnyActorRef>, xstate1516.StateValue, string, unknown, any, any>, {
317
317
  type: "LOAD";
318
318
  } | {
319
319
  type: "TOGGLE";
@@ -325,7 +325,7 @@ declare const mandatoryConsentMachine: xstate978.StateMachine<MandatoryConsentCo
325
325
  type: "RETRY";
326
326
  } | {
327
327
  type: "RESET";
328
- }, xstate978.AnyEventObject>;
328
+ }, xstate1516.AnyEventObject>;
329
329
  }) => {
330
330
  consentId: string;
331
331
  isSigned: boolean;
@@ -580,7 +580,7 @@ async function stopRecording$1(session) {
580
580
  }
581
581
  }
582
582
  async function initializeDeepsightSession(options) {
583
- const { loadDeepsightSession } = await import("./deepsightLoader-C9gah1-E.esm.js");
583
+ const { loadDeepsightSession } = await import("./deepsightLoader-CmbuFd4Q.esm.js");
584
584
  return loadDeepsightSession({
585
585
  ds: options.ds,
586
586
  storage: options.storage
@@ -238,6 +238,16 @@ type PersonhoodConfig = {
238
238
  * Default: `false`.
239
239
  */
240
240
  autoComplete?: boolean;
241
+ /**
242
+ * Enables Deepsight (injection-attack detection) for the session. The flag is
243
+ * handed to the WASM utility API, which latches it on: once any call in the
244
+ * session sees `true` the IAD challenges keep running. Leaving it unset (or
245
+ * `false`) means the challenges are skipped for the whole session, so never
246
+ * hardcode `false` here on a Deepsight-enabled organization.
247
+ *
248
+ * Default: `false`.
249
+ */
250
+ ds?: boolean;
241
251
  };
242
252
  type PersonhoodDependencies = {
243
253
  storage: IStorageCapability;
@@ -5,7 +5,7 @@ import { a as createApi_default, t as getStoredHttpConfig } from "./clientLifecy
5
5
  import { n as eventModuleNames } from "./events-1wxZ97yf.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
7
7
  import "./stats-BVy52wLy.esm.js";
8
- import { d as BrowserEnvironmentProvider, n as getFingerprintEnabled, u as getDeviceFingerprintInfo } from "./sessionInitializer-8p-JWZlA.esm.js";
8
+ import { d as BrowserEnvironmentProvider, n as getFingerprintEnabled, u as getDeviceFingerprintInfo } from "./sessionInitializer-DfN3wUch.esm.js";
9
9
  import { n as getThumbmarkId, t as isBrowserSimulation } from "./browserSimulation-CWJhFPZ2.esm.js";
10
10
  import "./platform-0Ot-bF_a.esm.js";
11
11
  import "./getBrowser-1yNcfFZR.esm.js";
@@ -15,7 +15,7 @@ import "./MotionSensorProvider-D95kOKVK.esm.js";
15
15
  import { i as requestPermission, t as checkPermission } from "./permissionServices-BElIOcoJ.esm.js";
16
16
  import { a as stopCameraStream, r as requestCameraAccess } from "./camera-CxxXV0VN.esm.js";
17
17
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
18
- import { b as FaceDetectionProvider, f as stopStream, l as startDetection, s as initializeDeepsightSession } from "./onDeviceFaceResults-B1TzNaDk.esm.js";
18
+ import { b as FaceDetectionProvider, f as stopStream, l as startDetection, s as initializeDeepsightSession } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
19
19
  import { t as sleep } from "./ITimerCapability-DJ73P4RK.esm.js";
20
20
  import "./canvas-Pi10hG_l.esm.js";
21
21
  import "./backCameraStream-ChrMTJv-.esm.js";
@@ -77,7 +77,7 @@ const PERSONHOOD_CAMERA_CONSTRAINTS = {
77
77
  async function initializePersonhoodDeepsight(params) {
78
78
  return initializeDeepsightSession({
79
79
  storage: params.storage,
80
- ds: false
80
+ ds: params.ds
81
81
  });
82
82
  }
83
83
  /**
@@ -806,7 +806,10 @@ const _personhoodMachine = setup({
806
806
  return initializePersonhoodCamera({ deepsightService: input.deepsightService });
807
807
  }),
808
808
  initializeDeepsight: fromPromise(async ({ input }) => {
809
- return initializePersonhoodDeepsight({ storage: input.dependencies.storage });
809
+ return initializePersonhoodDeepsight({
810
+ storage: input.dependencies.storage,
811
+ ds: input.ds
812
+ });
810
813
  }),
811
814
  collectSignals: fromPromise(async () => {
812
815
  return collectDeviceBehavioralSignals();
@@ -1038,7 +1041,10 @@ const _personhoodMachine = setup({
1038
1041
  running: { invoke: {
1039
1042
  id: "initializeDeepsight",
1040
1043
  src: "initializeDeepsight",
1041
- input: ({ context }) => ({ dependencies: context.dependencies }),
1044
+ input: ({ context }) => ({
1045
+ dependencies: context.dependencies,
1046
+ ds: context.config.ds
1047
+ }),
1042
1048
  onDone: {
1043
1049
  target: "done",
1044
1050
  actions: "setDeepsightServiceFromEvent"
@@ -1,7 +1,7 @@
1
1
  import { t as api } from "./api-DsbUi7TO.esm.js";
2
2
  import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
3
3
  import { t as isAndroid } from "./platform-0Ot-bF_a.esm.js";
4
- import { d as stopRecording, u as startRecordingSession, v as uploadDeepsightVideo } from "./onDeviceFaceResults-B1TzNaDk.esm.js";
4
+ import { d as stopRecording, u as startRecordingSession, v as uploadDeepsightVideo } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
5
5
  import { t as getAdaptiveMediaRecorderOptions } from "./mediaRecorderOptions-CClCKAiF.esm.js";
6
6
 
7
7
  //#region src/internal/manualReview/manualReviewService.ts
@@ -7,15 +7,15 @@ import "./browserSimulation-CWJhFPZ2.esm.js";
7
7
  import "./platform-0Ot-bF_a.esm.js";
8
8
  import "./getBrowser-1yNcfFZR.esm.js";
9
9
  import { a as fromPromise, r as assign, s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
10
- import { t as faceCaptureMachine } from "./faceCaptureSetup-TCy7nC4v.esm.js";
10
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CoQ5A9Il.esm.js";
11
11
  import "./wasmDsFlagSync-Ch0mFJNT.esm.js";
12
12
  import "./BrowserVisibilityObserverProvider-GBS6XSii.esm.js";
13
13
  import "./MotionSensorProvider-D95kOKVK.esm.js";
14
14
  import "./permissionServices-BElIOcoJ.esm.js";
15
15
  import "./camera-CxxXV0VN.esm.js";
16
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-s4wRwMou.esm.js";
16
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B65bYWfD.esm.js";
17
17
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
18
- import { p as processFace } from "./onDeviceFaceResults-B1TzNaDk.esm.js";
18
+ import { p as processFace } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
19
19
  import "./ITimerCapability-DJ73P4RK.esm.js";
20
20
  import "./canvas-Pi10hG_l.esm.js";
21
21
  import "./backCameraStream-ChrMTJv-.esm.js";
@@ -27,10 +27,10 @@ import "./types-BKLb3C42.esm.js";
27
27
  import "./createFaceAvatar-BZSg2MNo.esm.js";
28
28
  import "./StreamCanvasCapture-CAqUdVkM.esm.js";
29
29
  import "./permissionGuards-BPZGWaL4.esm.js";
30
- import "./recordingService-CgIREjnH.esm.js";
30
+ import "./recordingService-Df_A6oXO.esm.js";
31
31
  import "./mediaRecorderOptions-CClCKAiF.esm.js";
32
- import { t as selfieMachine } from "./selfieStateMachine-Bx1SgEqB.esm.js";
33
- import { t as createSelfieManager } from "./selfieManager-D2H9WmPP.esm.js";
32
+ import { t as selfieMachine } from "./selfieStateMachine-CiMhj8YP.esm.js";
33
+ import { t as createSelfieManager } from "./selfieManager-CtS5wYEo.esm.js";
34
34
  import { t as invokeOnCaptureCallback } from "./invokeOnCaptureCallback-CCS2Ruzi.esm.js";
35
35
 
36
36
  //#region src/modules/selfie/selfieCaptureOnlyStateMachine.ts
@@ -1,9 +1,9 @@
1
1
  import { t as WasmUtilProvider } from "./WasmUtilProvider-BgzcXBdl.esm.js";
2
2
  import { n as eventModuleNames } from "./events-1wxZ97yf.esm.js";
3
3
  import { s as createActor } from "./xstate.esm-nY3M5UYm.esm.js";
4
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-s4wRwMou.esm.js";
4
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-B65bYWfD.esm.js";
5
5
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-fZsibQTR.esm.js";
6
- import { t as selfieMachine } from "./selfieStateMachine-Bx1SgEqB.esm.js";
6
+ import { t as selfieMachine } from "./selfieStateMachine-CiMhj8YP.esm.js";
7
7
 
8
8
  //#region src/modules/selfie/selfieActor.ts
9
9
  function createSelfieActor(options) {
@@ -1,6 +1,6 @@
1
1
  import { a as fromPromise, r as assign } from "./xstate.esm-nY3M5UYm.esm.js";
2
- import { t as faceCaptureMachine } from "./faceCaptureSetup-TCy7nC4v.esm.js";
3
- import { i as prepareOnDeviceFaceUpload, m as uploadSelfie, n as isOnDeviceMode, p as processFace, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-B1TzNaDk.esm.js";
2
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-CoQ5A9Il.esm.js";
3
+ import { i as prepareOnDeviceFaceUpload, m as uploadSelfie, n as isOnDeviceMode, p as processFace, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-CAfvpjnC.esm.js";
4
4
  import { t as FACE_ERROR_CODES } from "./types-BKLb3C42.esm.js";
5
5
 
6
6
  //#region src/modules/selfie/selfieErrorUtils.ts
@@ -3,7 +3,7 @@ import "./api-DsbUi7TO.esm.js";
3
3
  import "./events-1wxZ97yf.esm.js";
4
4
  import "./endpoints-CwrFQfW7.esm.js";
5
5
  import "./stats-BVy52wLy.esm.js";
6
- import { i as initializeSession } from "./sessionInitializer-8p-JWZlA.esm.js";
6
+ import { i as initializeSession } from "./sessionInitializer-DfN3wUch.esm.js";
7
7
  import "./browserSimulation-CWJhFPZ2.esm.js";
8
8
  import "./platform-0Ot-bF_a.esm.js";
9
9
  import "./getBrowser-1yNcfFZR.esm.js";
@@ -351,7 +351,7 @@ function resetFeatureConfigCache() {
351
351
 
352
352
  //#endregion
353
353
  //#region src/internal/version/sdkVersion.ts
354
- const SDK_VERSION = "2.1.1-rc.4";
354
+ const SDK_VERSION = "2.1.1-rc.6";
355
355
 
356
356
  //#endregion
357
357
  //#region src/internal/fingerprint/fingerprintService.ts
@@ -5,13 +5,13 @@ import { i as upgradeToWasmHttpClient, n as installFreshHttpClient, r as resetHt
5
5
  import { _ as getAnalyticsBatcher, h as createAnalyticsBatchingService, v as resetAnalyticsBatcher, y as setAnalyticsBatcher } from "./events-1wxZ97yf.esm.js";
6
6
  import { t as endpoints } from "./endpoints-CwrFQfW7.esm.js";
7
7
  import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-BVy52wLy.esm.js";
8
- import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-8p-JWZlA.esm.js";
8
+ import { a as resetSessionInit, i as initializeSession, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled } from "./sessionInitializer-DfN3wUch.esm.js";
9
9
  import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-CFAPtAUM.esm.js";
10
10
 
11
11
  //#region ../infra/src/wasm/wasmDefaults.ts
12
12
  const WASM_CDN_BASE_URL = "https://cdn.incodesmile.com/ml-wasm-kit-release";
13
13
  /** The WASM version bundled and tested with this SDK release. */
14
- const DEFAULT_WASM_VERSION = "v2.14.07-post7-post2";
14
+ const DEFAULT_WASM_VERSION = "v2.14.07-post7-post3";
15
15
  const PATH_KEYS = [
16
16
  "wasmPath",
17
17
  "wasmSimdPath",