@incodetech/core 0.0.0-dev-20260416-64c00e5 → 0.0.0-dev-20260416-e8e67a4
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 +1 -1
- package/dist/consent.d.ts +50 -50
- package/dist/document-capture.d.ts +67 -67
- package/dist/document-upload.d.ts +40 -40
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/identity-reuse.d.ts +47 -47
- package/dist/{index-D98KKBR4.d.ts → index-BfG6VHnt.d.ts} +119 -119
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/{setup-C6BD15Qy.d.ts → setup-B1NHjpFM.d.ts} +13 -6
- package/dist/{setup-BRuOCm5T.esm.js → setup-DTuM389Q.esm.js} +11 -4
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +112 -112
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as setup, n as isConfigured, r as reset } from "./setup-
|
|
1
|
+
import { a as setup, n as isConfigured, r as reset } from "./setup-DTuM389Q.esm.js";
|
|
2
2
|
import "./BaseWasmProvider-D2uvIbAN.esm.js";
|
|
3
3
|
import "./WasmUtilProvider-OnSlurfW.esm.js";
|
|
4
4
|
import "./api-BhYI_G8R.esm.js";
|
|
@@ -3,7 +3,7 @@ import "./Actor-Cqaw-2DF.js";
|
|
|
3
3
|
import "./camera-C1Lz6NFz.js";
|
|
4
4
|
import "./types-DGwsRYfm.js";
|
|
5
5
|
import { a as RegulationTypes } from "./types-Bk2AoUFA.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as xstate1083 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/mandatory-consent/types.d.ts
|
|
9
9
|
type MandatoryConsentConfig = {
|
|
@@ -30,7 +30,7 @@ type MandatoryConsentContext = {
|
|
|
30
30
|
type MandatoryConsentInput = {
|
|
31
31
|
config: MandatoryConsentConfig;
|
|
32
32
|
};
|
|
33
|
-
declare const mandatoryConsentMachine:
|
|
33
|
+
declare const mandatoryConsentMachine: xstate1083.StateMachine<MandatoryConsentContext, {
|
|
34
34
|
type: "LOAD";
|
|
35
35
|
} | {
|
|
36
36
|
type: "TOGGLE";
|
|
@@ -43,53 +43,53 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
43
43
|
} | {
|
|
44
44
|
type: "RESET";
|
|
45
45
|
}, {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: xstate1083.ActorRefFromLogic<xstate1083.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
47
47
|
config: MandatoryConsentConfig;
|
|
48
|
-
},
|
|
48
|
+
}, xstate1083.EventObject>> | xstate1083.ActorRefFromLogic<xstate1083.PromiseActorLogic<void, {
|
|
49
49
|
consentId: string;
|
|
50
50
|
isSigned: boolean;
|
|
51
|
-
},
|
|
52
|
-
},
|
|
51
|
+
}, xstate1083.EventObject>> | undefined;
|
|
52
|
+
}, xstate1083.Values<{
|
|
53
53
|
fetchConsent: {
|
|
54
54
|
src: "fetchConsent";
|
|
55
|
-
logic:
|
|
55
|
+
logic: xstate1083.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
56
56
|
config: MandatoryConsentConfig;
|
|
57
|
-
},
|
|
57
|
+
}, xstate1083.EventObject>;
|
|
58
58
|
id: string | undefined;
|
|
59
59
|
};
|
|
60
60
|
submitConsent: {
|
|
61
61
|
src: "submitConsent";
|
|
62
|
-
logic:
|
|
62
|
+
logic: xstate1083.PromiseActorLogic<void, {
|
|
63
63
|
consentId: string;
|
|
64
64
|
isSigned: boolean;
|
|
65
|
-
},
|
|
65
|
+
}, xstate1083.EventObject>;
|
|
66
66
|
id: string | undefined;
|
|
67
67
|
};
|
|
68
|
-
}>,
|
|
68
|
+
}>, xstate1083.Values<{
|
|
69
69
|
setConsent: {
|
|
70
70
|
type: "setConsent";
|
|
71
|
-
params:
|
|
72
|
-
};
|
|
73
|
-
toggleSigned: {
|
|
74
|
-
type: "toggleSigned";
|
|
75
|
-
params: xstate0.NonReducibleUnknown;
|
|
71
|
+
params: xstate1083.NonReducibleUnknown;
|
|
76
72
|
};
|
|
77
73
|
setError: {
|
|
78
74
|
type: "setError";
|
|
79
|
-
params:
|
|
75
|
+
params: xstate1083.NonReducibleUnknown;
|
|
80
76
|
};
|
|
81
77
|
clearError: {
|
|
82
78
|
type: "clearError";
|
|
83
|
-
params:
|
|
79
|
+
params: xstate1083.NonReducibleUnknown;
|
|
84
80
|
};
|
|
85
81
|
resetContext: {
|
|
86
82
|
type: "resetContext";
|
|
87
|
-
params:
|
|
83
|
+
params: xstate1083.NonReducibleUnknown;
|
|
84
|
+
};
|
|
85
|
+
toggleSigned: {
|
|
86
|
+
type: "toggleSigned";
|
|
87
|
+
params: xstate1083.NonReducibleUnknown;
|
|
88
88
|
};
|
|
89
89
|
}>, {
|
|
90
90
|
type: "canSubmit";
|
|
91
91
|
params: unknown;
|
|
92
|
-
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput,
|
|
92
|
+
}, never, "error" | "idle" | "closed" | "finished" | "loading" | "display" | "submitting", string, MandatoryConsentInput, xstate1083.NonReducibleUnknown, xstate1083.EventObject, xstate1083.MetaObject, {
|
|
93
93
|
readonly id: "mandatoryConsent";
|
|
94
94
|
readonly initial: "idle";
|
|
95
95
|
readonly context: ({
|
|
@@ -98,70 +98,70 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
98
98
|
spawn: {
|
|
99
99
|
<TSrc extends "fetchConsent" | "submitConsent">(logic: TSrc, ...[options]: ({
|
|
100
100
|
src: "fetchConsent";
|
|
101
|
-
logic:
|
|
101
|
+
logic: xstate1083.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
102
102
|
config: MandatoryConsentConfig;
|
|
103
|
-
},
|
|
103
|
+
}, xstate1083.EventObject>;
|
|
104
104
|
id: string | undefined;
|
|
105
105
|
} extends infer T ? T extends {
|
|
106
106
|
src: "fetchConsent";
|
|
107
|
-
logic:
|
|
107
|
+
logic: xstate1083.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
108
108
|
config: MandatoryConsentConfig;
|
|
109
|
-
},
|
|
109
|
+
}, xstate1083.EventObject>;
|
|
110
110
|
id: string | undefined;
|
|
111
111
|
} ? T extends {
|
|
112
112
|
src: TSrc;
|
|
113
|
-
} ?
|
|
113
|
+
} ? xstate1083.ConditionalRequired<[options?: ({
|
|
114
114
|
id?: T["id"] | undefined;
|
|
115
115
|
systemId?: string;
|
|
116
|
-
input?:
|
|
116
|
+
input?: xstate1083.InputFrom<T["logic"]> | undefined;
|
|
117
117
|
syncSnapshot?: boolean;
|
|
118
|
-
} & { [K in
|
|
118
|
+
} & { [K in xstate1083.RequiredActorOptions<T>]: unknown }) | undefined], xstate1083.IsNotNever<xstate1083.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
119
119
|
src: "submitConsent";
|
|
120
|
-
logic:
|
|
120
|
+
logic: xstate1083.PromiseActorLogic<void, {
|
|
121
121
|
consentId: string;
|
|
122
122
|
isSigned: boolean;
|
|
123
|
-
},
|
|
123
|
+
}, xstate1083.EventObject>;
|
|
124
124
|
id: string | undefined;
|
|
125
125
|
} extends infer T_1 ? T_1 extends {
|
|
126
126
|
src: "submitConsent";
|
|
127
|
-
logic:
|
|
127
|
+
logic: xstate1083.PromiseActorLogic<void, {
|
|
128
128
|
consentId: string;
|
|
129
129
|
isSigned: boolean;
|
|
130
|
-
},
|
|
130
|
+
}, xstate1083.EventObject>;
|
|
131
131
|
id: string | undefined;
|
|
132
132
|
} ? T_1 extends {
|
|
133
133
|
src: TSrc;
|
|
134
|
-
} ?
|
|
134
|
+
} ? xstate1083.ConditionalRequired<[options?: ({
|
|
135
135
|
id?: T_1["id"] | undefined;
|
|
136
136
|
systemId?: string;
|
|
137
|
-
input?:
|
|
137
|
+
input?: xstate1083.InputFrom<T_1["logic"]> | undefined;
|
|
138
138
|
syncSnapshot?: boolean;
|
|
139
|
-
} & { [K_1 in
|
|
139
|
+
} & { [K_1 in xstate1083.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1083.IsNotNever<xstate1083.RequiredActorOptions<T_1>>> : never : never : never)): xstate1083.ActorRefFromLogic<xstate1083.GetConcreteByKey<xstate1083.Values<{
|
|
140
140
|
fetchConsent: {
|
|
141
141
|
src: "fetchConsent";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate1083.PromiseActorLogic<FetchMandatoryConsentResponse, {
|
|
143
143
|
config: MandatoryConsentConfig;
|
|
144
|
-
},
|
|
144
|
+
}, xstate1083.EventObject>;
|
|
145
145
|
id: string | undefined;
|
|
146
146
|
};
|
|
147
147
|
submitConsent: {
|
|
148
148
|
src: "submitConsent";
|
|
149
|
-
logic:
|
|
149
|
+
logic: xstate1083.PromiseActorLogic<void, {
|
|
150
150
|
consentId: string;
|
|
151
151
|
isSigned: boolean;
|
|
152
|
-
},
|
|
152
|
+
}, xstate1083.EventObject>;
|
|
153
153
|
id: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}>, "src", TSrc>["logic"]>;
|
|
156
|
-
<TLogic extends
|
|
156
|
+
<TLogic extends xstate1083.AnyActorLogic>(src: TLogic, ...[options]: xstate1083.ConditionalRequired<[options?: ({
|
|
157
157
|
id?: never;
|
|
158
158
|
systemId?: string;
|
|
159
|
-
input?:
|
|
159
|
+
input?: xstate1083.InputFrom<TLogic> | undefined;
|
|
160
160
|
syncSnapshot?: boolean;
|
|
161
|
-
} & { [K in
|
|
161
|
+
} & { [K in xstate1083.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1083.IsNotNever<xstate1083.RequiredLogicInput<TLogic>>>): xstate1083.ActorRefFromLogic<TLogic>;
|
|
162
162
|
};
|
|
163
163
|
input: MandatoryConsentInput;
|
|
164
|
-
self:
|
|
164
|
+
self: xstate1083.ActorRef<xstate1083.MachineSnapshot<MandatoryConsentContext, {
|
|
165
165
|
type: "LOAD";
|
|
166
166
|
} | {
|
|
167
167
|
type: "TOGGLE";
|
|
@@ -173,7 +173,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
173
173
|
type: "RETRY";
|
|
174
174
|
} | {
|
|
175
175
|
type: "RESET";
|
|
176
|
-
}, Record<string,
|
|
176
|
+
}, Record<string, xstate1083.AnyActorRef | undefined>, xstate1083.StateValue, string, unknown, any, any>, {
|
|
177
177
|
type: "LOAD";
|
|
178
178
|
} | {
|
|
179
179
|
type: "TOGGLE";
|
|
@@ -185,7 +185,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
185
185
|
type: "RETRY";
|
|
186
186
|
} | {
|
|
187
187
|
type: "RESET";
|
|
188
|
-
},
|
|
188
|
+
}, xstate1083.AnyEventObject>;
|
|
189
189
|
}) => {
|
|
190
190
|
config: MandatoryConsentConfig;
|
|
191
191
|
consent: undefined;
|
|
@@ -222,7 +222,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
222
222
|
} | {
|
|
223
223
|
type: "RESET";
|
|
224
224
|
};
|
|
225
|
-
self:
|
|
225
|
+
self: xstate1083.ActorRef<xstate1083.MachineSnapshot<MandatoryConsentContext, {
|
|
226
226
|
type: "LOAD";
|
|
227
227
|
} | {
|
|
228
228
|
type: "TOGGLE";
|
|
@@ -234,7 +234,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
234
234
|
type: "RETRY";
|
|
235
235
|
} | {
|
|
236
236
|
type: "RESET";
|
|
237
|
-
}, Record<string,
|
|
237
|
+
}, Record<string, xstate1083.AnyActorRef>, xstate1083.StateValue, string, unknown, any, any>, {
|
|
238
238
|
type: "LOAD";
|
|
239
239
|
} | {
|
|
240
240
|
type: "TOGGLE";
|
|
@@ -246,7 +246,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
246
246
|
type: "RETRY";
|
|
247
247
|
} | {
|
|
248
248
|
type: "RESET";
|
|
249
|
-
},
|
|
249
|
+
}, xstate1083.AnyEventObject>;
|
|
250
250
|
}) => {
|
|
251
251
|
config: MandatoryConsentConfig;
|
|
252
252
|
};
|
|
@@ -299,7 +299,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
299
299
|
} | {
|
|
300
300
|
type: "RESET";
|
|
301
301
|
};
|
|
302
|
-
self:
|
|
302
|
+
self: xstate1083.ActorRef<xstate1083.MachineSnapshot<MandatoryConsentContext, {
|
|
303
303
|
type: "LOAD";
|
|
304
304
|
} | {
|
|
305
305
|
type: "TOGGLE";
|
|
@@ -311,7 +311,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
311
311
|
type: "RETRY";
|
|
312
312
|
} | {
|
|
313
313
|
type: "RESET";
|
|
314
|
-
}, Record<string,
|
|
314
|
+
}, Record<string, xstate1083.AnyActorRef>, xstate1083.StateValue, string, unknown, any, any>, {
|
|
315
315
|
type: "LOAD";
|
|
316
316
|
} | {
|
|
317
317
|
type: "TOGGLE";
|
|
@@ -323,7 +323,7 @@ declare const mandatoryConsentMachine: xstate0.StateMachine<MandatoryConsentCont
|
|
|
323
323
|
type: "RETRY";
|
|
324
324
|
} | {
|
|
325
325
|
type: "RESET";
|
|
326
|
-
},
|
|
326
|
+
}, xstate1083.AnyEventObject>;
|
|
327
327
|
}) => {
|
|
328
328
|
consentId: string;
|
|
329
329
|
isSigned: boolean;
|
package/dist/qe-signature.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C1r-74H0.js";
|
|
2
2
|
import "./Actor-Cqaw-2DF.js";
|
|
3
|
-
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-
|
|
3
|
+
import { c as ConsentKey, f as QE_CONSENT_KEYS, g as getDefaultConsentChecks, i as electronicSignatureMachine, l as ElectronicSignatureConfig, m as areAllConsented, n as ElectronicSignatureState, s as ConsentChecks, u as ElectronicSignatureDocument } from "./index-BfG6VHnt.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/qe-signature/index.d.ts
|
|
6
6
|
|
|
@@ -36,9 +36,9 @@ type SetupOptions = {
|
|
|
36
36
|
timeout?: number;
|
|
37
37
|
/**
|
|
38
38
|
* WASM warmup config.
|
|
39
|
-
* - Omit (default):
|
|
40
|
-
* - `false`:
|
|
41
|
-
* - Object:
|
|
39
|
+
* - Omit (default): does not load WASM.
|
|
40
|
+
* - `false`: explicitly disable WASM loading.
|
|
41
|
+
* - Object: load WASM with CDN defaults plus any overrides you provide.
|
|
42
42
|
*/
|
|
43
43
|
wasm?: WasmConfig | false;
|
|
44
44
|
/** Optional hosting app identifier for fingerprint tracking */
|
|
@@ -48,7 +48,7 @@ type SetupOptions = {
|
|
|
48
48
|
* Initializes the SDK with the provided configuration.
|
|
49
49
|
* Must be called before using any SDK functionality.
|
|
50
50
|
*
|
|
51
|
-
* WASM loads
|
|
51
|
+
* WASM loads only when `options.wasm` is provided as an object.
|
|
52
52
|
*
|
|
53
53
|
* @param options - Configuration options for the SDK
|
|
54
54
|
*
|
|
@@ -56,12 +56,19 @@ type SetupOptions = {
|
|
|
56
56
|
* ```ts
|
|
57
57
|
* import { setup } from '@incodetech/core';
|
|
58
58
|
*
|
|
59
|
-
* // Zero-config: WASM
|
|
59
|
+
* // Zero-config: no WASM warmup
|
|
60
60
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token' });
|
|
61
61
|
*
|
|
62
|
-
* //
|
|
62
|
+
* // Explicitly disable WASM
|
|
63
63
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
64
64
|
*
|
|
65
|
+
* // Use CDN defaults for paths and preload only one pipeline
|
|
66
|
+
* await setup({
|
|
67
|
+
* apiURL: 'https://api.incode.com',
|
|
68
|
+
* token: 'session-token',
|
|
69
|
+
* wasm: { pipelines: ['selfie'] },
|
|
70
|
+
* });
|
|
71
|
+
*
|
|
65
72
|
* // Self-hosted / custom version (full or partial path overrides)
|
|
66
73
|
* await setup({
|
|
67
74
|
* apiURL: 'https://api.incode.com',
|
|
@@ -335,7 +335,7 @@ let configured = false;
|
|
|
335
335
|
* Initializes the SDK with the provided configuration.
|
|
336
336
|
* Must be called before using any SDK functionality.
|
|
337
337
|
*
|
|
338
|
-
* WASM loads
|
|
338
|
+
* WASM loads only when `options.wasm` is provided as an object.
|
|
339
339
|
*
|
|
340
340
|
* @param options - Configuration options for the SDK
|
|
341
341
|
*
|
|
@@ -343,12 +343,19 @@ let configured = false;
|
|
|
343
343
|
* ```ts
|
|
344
344
|
* import { setup } from '@incodetech/core';
|
|
345
345
|
*
|
|
346
|
-
* // Zero-config: WASM
|
|
346
|
+
* // Zero-config: no WASM warmup
|
|
347
347
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token' });
|
|
348
348
|
*
|
|
349
|
-
* //
|
|
349
|
+
* // Explicitly disable WASM
|
|
350
350
|
* await setup({ apiURL: 'https://api.incode.com', token: 'session-token', wasm: false });
|
|
351
351
|
*
|
|
352
|
+
* // Use CDN defaults for paths and preload only one pipeline
|
|
353
|
+
* await setup({
|
|
354
|
+
* apiURL: 'https://api.incode.com',
|
|
355
|
+
* token: 'session-token',
|
|
356
|
+
* wasm: { pipelines: ['selfie'] },
|
|
357
|
+
* });
|
|
358
|
+
*
|
|
352
359
|
* // Self-hosted / custom version (full or partial path overrides)
|
|
353
360
|
* await setup({
|
|
354
361
|
* apiURL: 'https://api.incode.com',
|
|
@@ -393,7 +400,7 @@ async function setup(options) {
|
|
|
393
400
|
}
|
|
394
401
|
}
|
|
395
402
|
configured = true;
|
|
396
|
-
const effectiveWasm = options.wasm
|
|
403
|
+
const effectiveWasm = options.wasm ? resolveWasmConfig(options.wasm) : void 0;
|
|
397
404
|
if (effectiveWasm) {
|
|
398
405
|
await warmupWasm(effectiveWasm);
|
|
399
406
|
await (await WasmUtilProvider.getInstance()).initialize({
|
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-BoNCXpou.js";
|
|
2
|
-
import { n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-
|
|
2
|
+
import { n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-B1NHjpFM.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
5
5
|
/** The WASM version bundled and tested with this SDK release. */
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-
|
|
1
|
+
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-DTuM389Q.esm.js";
|
|
2
2
|
import { n as warmupWasm } from "./BaseWasmProvider-D2uvIbAN.esm.js";
|
|
3
3
|
import "./WasmUtilProvider-OnSlurfW.esm.js";
|
|
4
4
|
import "./api-BhYI_G8R.esm.js";
|