@incodetech/core 0.0.0-dev-20260813-2991a679 → 0.0.0-dev-20260817-9145f76e

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 (69) hide show
  1. package/dist/{BrowserDiagnosticsCryptoProvider-DmU3XcUT.esm.js → BrowserDiagnosticsCryptoProvider-CKmnKTyR.esm.js} +1 -1
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-C9ewfTXC.esm.js → apiError-CmniHhRw.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-SxqzvmHf.esm.js → authenticationManager-CrTjKPXr.esm.js} +2 -2
  6. package/dist/{authenticationStateMachine-BSia2svd.esm.js → authenticationStateMachine-tZtVdbtV.esm.js} +2 -2
  7. package/dist/certificate-issuance.d.ts +2 -302
  8. package/dist/certificate-issuance.esm.js +2 -65
  9. package/dist/certificateIssuanceManager-Ci4symEA.esm.js +69 -0
  10. package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
  11. package/dist/{deepsightLoader-CxhndUYz.esm.js → deepsightLoader-C0Jt4Ss8.esm.js} +3 -3
  12. package/dist/document-capture.d.ts +1 -1
  13. package/dist/document-upload.d.ts +4 -4
  14. package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DS9wf7bv.d.ts} +66 -66
  15. package/dist/dynamic-forms.d.ts +2 -2
  16. package/dist/dynamic-forms.esm.js +2 -2
  17. package/dist/{dynamicFormsManager-BmQJxHYZ.esm.js → dynamicFormsManager-I5_JnnvY.esm.js} +1 -1
  18. package/dist/{dynamicFormsManager-DhveFHPS.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +1 -1
  19. package/dist/{dynamicFormsStateMachine-BgAfJJQH.esm.js → dynamicFormsStateMachine-DpZpPl0y.esm.js} +1 -1
  20. package/dist/ekyb.esm.js +3 -3
  21. package/dist/{ekybManager-CUXrRyZ2.esm.js → ekybManager-DB1i-Z_I.esm.js} +1 -1
  22. package/dist/{ekybStateMachine-DH3uM8DO.esm.js → ekybStateMachine-BYejw9RL.esm.js} +1 -1
  23. package/dist/electronic-signature.esm.js +1 -1
  24. package/dist/{electronicSignatureManager-BV9xT0cc.esm.js → electronicSignatureManager-CQe4K9hz.esm.js} +1 -1
  25. package/dist/extensibility.d.ts +7 -6
  26. package/dist/extensibility.esm.js +11 -10
  27. package/dist/{faceCaptureManagerFactory-C8oK6tdq.esm.js → faceCaptureManagerFactory-DTab6Rl4.esm.js} +1 -1
  28. package/dist/{faceCaptureSetup-C9-Fzm8d.esm.js → faceCaptureSetup-DphTnEII.esm.js} +2 -2
  29. package/dist/flow.d.ts +3 -3
  30. package/dist/flow.esm.js +3 -3
  31. package/dist/{flowCompletionService-B3suP9s_.esm.js → flowCompletionService-C5rPBcRK.esm.js} +1 -1
  32. package/dist/{flowServices-j7UZkYFu.esm.js → flowServices-BPddvC6e.esm.js} +3 -3
  33. package/dist/geolocation.esm.js +2 -2
  34. package/dist/{geolocationManager-D4AIjfeN.esm.js → geolocationManager-BR2bvUOb.esm.js} +1 -1
  35. package/dist/{geolocationStateMachine-BeEwZnQx.esm.js → geolocationStateMachine-DqLBE79T.esm.js} +1 -1
  36. package/dist/id-ocr.d.ts +2 -2
  37. package/dist/id-selfie-flow.esm.js +6 -6
  38. package/dist/id.d.ts +2 -2
  39. package/dist/id.esm.js +3 -3
  40. package/dist/{idCaptureManager-CWmt6dp7.esm.js → idCaptureManager-CF47nHa3.esm.js} +2 -2
  41. package/dist/{idCaptureManager-DCypF_2I.d.ts → idCaptureManager-DVWM-L4V.d.ts} +1 -1
  42. package/dist/{idCaptureServices-wlaNQ3ib.esm.js → idCaptureServices-CzgSBLXN.esm.js} +2 -2
  43. package/dist/{idCaptureStateMachine-C6711mJz.esm.js → idCaptureStateMachine-DP-PiYZm.esm.js} +7 -7
  44. package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
  45. package/dist/index.esm.js +1 -1
  46. package/dist/{onDeviceFaceResults-wU4uSbN-.esm.js → onDeviceFaceResults-S2hHqItf.esm.js} +3 -3
  47. package/dist/personhood.esm.js +3 -3
  48. package/dist/qe-signature.esm.js +1 -1
  49. package/dist/{recordingService-CyT_8BPw.esm.js → recordingService-DPENlj_C.esm.js} +1 -1
  50. package/dist/{runChildModule-Cy8-2m9V.esm.js → runChildModule-CggsCQfX.esm.js} +1 -1
  51. package/dist/selfie.esm.js +4 -4
  52. package/dist/{selfieManager-BcCcnW3q.esm.js → selfieManager-Ch6SEjFI.esm.js} +2 -2
  53. package/dist/{selfieStateMachine-DOEFt4Bo.esm.js → selfieStateMachine-DHcXwGsF.esm.js} +2 -2
  54. package/dist/{session-qR0DAVjz.esm.js → session-Coy5UfuE.esm.js} +4 -4
  55. package/dist/session.esm.js +4 -4
  56. package/dist/{sessionInitializer-DAr2DSlY.esm.js → sessionInitializer-DAsBLJIM.esm.js} +2 -2
  57. package/dist/{setup-GQkY_66u.esm.js → setup-DMd9eq7P.esm.js} +4 -4
  58. package/dist/trueSight-BlqgvkVR.esm.js +1 -0
  59. package/dist/{trueSightService-Bf7-wYag.esm.js → trueSightService-Bfegag2d.esm.js} +2 -2
  60. package/dist/video-selfie.esm.js +3 -3
  61. package/dist/{videoSelfieCameraWarmer-CVFHbQua.esm.js → videoSelfieCameraWarmer-DSAUh1NC.esm.js} +2 -2
  62. package/dist/wasm.esm.js +1 -1
  63. package/dist/workflow.d.ts +4 -4
  64. package/dist/workflow.esm.js +14 -14
  65. package/package.json +1 -1
  66. package/dist/trueSight-XzLKY-t_.esm.js +0 -1
  67. /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
  68. /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
  69. /package/dist/{types-GqIocZi-2.d.ts → types-GqIocZi-.d.ts} +0 -0
@@ -18,7 +18,7 @@ function decodeTruesightKey(s0Base64, s1Base64) {
18
18
  */
19
19
  function getTruesightKey() {
20
20
  try {
21
- const key = decodeTruesightKey("5D0nPlA87ZpQtwyn4H9A2pJ2bhpGZZ6ieWkOlpXuJZQ=", "qU+fxOlGqkFmd9k5tjv2KoJBRh2555HjZoSeRcScXeQ=");
21
+ const key = decodeTruesightKey("e6P0ZkIWv4y59XYNAANxalsV6nDtpTPSf/qAT724bws=", "OsFG7L8MNd74pIErnGngw8A77P3F1iEqBQD07gQxLeI=");
22
22
  return key.length === KEY_LENGTH_BYTES ? key : null;
23
23
  } catch {
24
24
  return null;
@@ -1,4 +1,4 @@
1
- import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-BV9xT0cc.esm.js";
1
+ import { c as getDefaultConsentChecks, i as AE_CONSENT_KEYS, o as areAllConsented, r as electronicSignatureMachine, t as createElectronicSignatureManager } from "./electronicSignatureManager-CQe4K9hz.esm.js";
2
2
  //#region src/modules/ae-signature/index.ts
3
3
  function createAeSignatureManager(options) {
4
4
  return createElectronicSignatureManager({ config: {
@@ -1,4 +1,4 @@
1
- import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-Bf7-wYag.esm.js";
1
+ import { l as trueSightLog, u as categoryForEndpoint } from "./trueSightService-Bfegag2d.esm.js";
2
2
  //#region src/internal/http/apiError.ts
3
3
  /**
4
4
  * Incode API error.
@@ -1,3 +1,3 @@
1
- import { t as authenticationMachine } from "./authenticationStateMachine-BSia2svd.esm.js";
2
- import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-SxqzvmHf.esm.js";
1
+ import { t as authenticationMachine } from "./authenticationStateMachine-tZtVdbtV.esm.js";
2
+ import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-CrTjKPXr.esm.js";
3
3
  export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-Ep56I-f_.esm.js";
2
2
  import { t as BrowserStorageProvider } from "./BrowserStorageProvider-k-FDkC4W.esm.js";
3
3
  import { n as eventModuleNames } from "./events-CxfNJVZW.esm.js";
4
4
  import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
- import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-C8oK6tdq.esm.js";
6
- import { t as authenticationMachine } from "./authenticationStateMachine-BSia2svd.esm.js";
5
+ import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DTab6Rl4.esm.js";
6
+ import { t as authenticationMachine } from "./authenticationStateMachine-tZtVdbtV.esm.js";
7
7
  //#region src/modules/authentication/authenticationActor.ts
8
8
  function createAuthenticationActor(options) {
9
9
  const dependencies = options.dependencies ?? {
@@ -3,8 +3,8 @@ import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
3
3
  import { t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
4
4
  import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
5
5
  import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
6
- import { t as faceCaptureMachine } from "./faceCaptureSetup-C9-Fzm8d.esm.js";
7
- import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-wU4uSbN-.esm.js";
6
+ import { t as faceCaptureMachine } from "./faceCaptureSetup-DphTnEII.esm.js";
7
+ import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-S2hHqItf.esm.js";
8
8
  import { t as getDeviceClass } from "./getDeviceClass-Sh0zhEv7.esm.js";
9
9
  import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
10
10
  //#region src/modules/authentication/authenticationErrorUtils.ts
@@ -1,307 +1,7 @@
1
- import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
2
- import "./StateMachine-EDpYWy0i.js";
3
- import { t as Manager } from "./Manager-CQQ99QOI.js";
4
- import "./Actor-iTq7YY48.js";
5
- //#region src/modules/certificate-issuance/certificateIssuanceConstants.d.ts
6
- declare const MIN_PASSWORD_LENGTH = 8;
7
- declare const PASSWORD_VALIDATION_KEYS: readonly ["length", "uppercase", "lowercase", "number"];
8
- declare const REQUIREMENT_I18N_KEYS: Record<PasswordValidationKey, string>;
9
- //#endregion
10
- //#region src/modules/certificate-issuance/types.d.ts
11
- type CertificateIssuanceType = 'ONE_TIME' | 'SHORT_TERM' | 'LONG_TERM';
12
- /**
13
- * Configuration for the certificate issuance module.
14
- */
15
- type CertificateIssuanceConfig = {
16
- /** Issuance region (from flow `moduleConfiguration`) */
17
- region: string;
18
- /** Certificate validity period */
19
- type: CertificateIssuanceType;
20
- };
21
- type IssueCertificateResponse = {
22
- blob: Blob;
23
- };
24
- type PasswordValidations = {
25
- length: boolean;
26
- uppercase: boolean;
27
- lowercase: boolean;
28
- number: boolean;
29
- };
30
- type PasswordValidationKey = (typeof PASSWORD_VALIDATION_KEYS)[number];
31
- //#endregion
32
- //#region src/modules/certificate-issuance/certificateIssuanceStateMachine.d.ts
33
- type CertificateIssuanceContext = {
34
- config: CertificateIssuanceConfig;
35
- password: string;
36
- passwordValidations: PasswordValidations;
37
- certificateBlob: Blob | undefined;
38
- };
39
- type CertificateIssuanceInput = {
40
- config: CertificateIssuanceConfig;
41
- };
42
- declare const certificateIssuanceMachine: StateMachine<CertificateIssuanceContext, {
43
- type: "LOAD";
44
- } | {
45
- type: "PASSWORD_CHANGED";
46
- password: string;
47
- } | {
48
- type: "SUBMIT_PASSWORD";
49
- } | {
50
- type: "DOWNLOADED";
51
- } | {
52
- type: "DOWNLOAD_FAILED";
53
- } | {
54
- type: "FINISH";
55
- }, {
56
- [x: string]: ActorRefFromLogic<PromiseActorLogic<IssueCertificateResponse, {
57
- password: string;
58
- }, EventObject>> | undefined;
59
- }, {
60
- src: "issueCertificate";
61
- logic: PromiseActorLogic<IssueCertificateResponse, {
62
- password: string;
63
- }, EventObject>;
64
- id: string | undefined;
65
- }, Values<{
66
- setPassword: {
67
- type: "setPassword";
68
- params: NonReducibleUnknown;
69
- };
70
- setBlob: {
71
- type: "setBlob";
72
- params: NonReducibleUnknown;
73
- };
74
- }>, {
75
- type: "isPasswordValid";
76
- params: unknown;
77
- }, never, "error" | "idle" | "processing" | "success" | "finished" | "password" | "downloaded", string, CertificateIssuanceInput, NonReducibleUnknown, EventObject, MetaObject, {
78
- readonly id: "certificateIssuance";
79
- readonly initial: "idle";
80
- readonly context: ({ input }: {
81
- spawn: {
82
- <TSrc extends "issueCertificate">(logic: TSrc, ...[options]: {
83
- src: "issueCertificate";
84
- logic: PromiseActorLogic<IssueCertificateResponse, {
85
- password: string;
86
- }, EventObject>;
87
- id: string | undefined;
88
- } extends (infer T) ? T extends {
89
- src: "issueCertificate";
90
- logic: PromiseActorLogic<IssueCertificateResponse, {
91
- password: string;
92
- }, EventObject>;
93
- id: string | undefined;
94
- } ? T extends {
95
- src: TSrc;
96
- } ? ConditionalRequired<[options?: ({
97
- id?: T["id"] | undefined;
98
- systemId?: string;
99
- input?: InputFrom<T["logic"]> | undefined;
100
- syncSnapshot?: boolean;
101
- } & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never): ActorRefFromLogic<GetConcreteByKey<{
102
- src: "issueCertificate";
103
- logic: PromiseActorLogic<IssueCertificateResponse, {
104
- password: string;
105
- }, EventObject>;
106
- id: string | undefined;
107
- }, "src", TSrc>["logic"]>;
108
- <TLogic extends AnyActorLogic>(src: TLogic, ...[options]: ConditionalRequired<[options?: ({
109
- id?: never;
110
- systemId?: string;
111
- input?: InputFrom<TLogic> | undefined;
112
- syncSnapshot?: boolean;
113
- } & { [K in RequiredLogicInput<TLogic>]: unknown; }) | undefined], IsNotNever<RequiredLogicInput<TLogic>>>): ActorRefFromLogic<TLogic>;
114
- };
115
- input: CertificateIssuanceInput;
116
- self: ActorRef<MachineSnapshot<CertificateIssuanceContext, {
117
- type: "LOAD";
118
- } | {
119
- type: "PASSWORD_CHANGED";
120
- password: string;
121
- } | {
122
- type: "SUBMIT_PASSWORD";
123
- } | {
124
- type: "DOWNLOADED";
125
- } | {
126
- type: "DOWNLOAD_FAILED";
127
- } | {
128
- type: "FINISH";
129
- }, Record<string, AnyActorRef | undefined>, StateValue, string, unknown, any, any>, {
130
- type: "LOAD";
131
- } | {
132
- type: "PASSWORD_CHANGED";
133
- password: string;
134
- } | {
135
- type: "SUBMIT_PASSWORD";
136
- } | {
137
- type: "DOWNLOADED";
138
- } | {
139
- type: "DOWNLOAD_FAILED";
140
- } | {
141
- type: "FINISH";
142
- }, AnyEventObject>;
143
- }) => {
144
- config: CertificateIssuanceConfig;
145
- password: string;
146
- passwordValidations: PasswordValidations;
147
- certificateBlob: undefined;
148
- };
149
- readonly states: {
150
- readonly idle: {
151
- readonly on: {
152
- readonly LOAD: {
153
- readonly target: "password";
154
- };
155
- };
156
- };
157
- readonly password: {
158
- readonly on: {
159
- readonly PASSWORD_CHANGED: {
160
- readonly actions: "setPassword";
161
- };
162
- readonly SUBMIT_PASSWORD: {
163
- readonly target: "processing";
164
- readonly guard: "isPasswordValid";
165
- };
166
- };
167
- };
168
- readonly processing: {
169
- readonly invoke: {
170
- readonly id: "issueCertificate";
171
- readonly src: "issueCertificate";
172
- readonly input: ({ context }: {
173
- context: CertificateIssuanceContext;
174
- event: {
175
- type: "LOAD";
176
- } | {
177
- type: "PASSWORD_CHANGED";
178
- password: string;
179
- } | {
180
- type: "SUBMIT_PASSWORD";
181
- } | {
182
- type: "DOWNLOADED";
183
- } | {
184
- type: "DOWNLOAD_FAILED";
185
- } | {
186
- type: "FINISH";
187
- };
188
- self: ActorRef<MachineSnapshot<CertificateIssuanceContext, {
189
- type: "LOAD";
190
- } | {
191
- type: "PASSWORD_CHANGED";
192
- password: string;
193
- } | {
194
- type: "SUBMIT_PASSWORD";
195
- } | {
196
- type: "DOWNLOADED";
197
- } | {
198
- type: "DOWNLOAD_FAILED";
199
- } | {
200
- type: "FINISH";
201
- }, Record<string, AnyActorRef>, StateValue, string, unknown, any, any>, {
202
- type: "LOAD";
203
- } | {
204
- type: "PASSWORD_CHANGED";
205
- password: string;
206
- } | {
207
- type: "SUBMIT_PASSWORD";
208
- } | {
209
- type: "DOWNLOADED";
210
- } | {
211
- type: "DOWNLOAD_FAILED";
212
- } | {
213
- type: "FINISH";
214
- }, AnyEventObject>;
215
- }) => {
216
- password: string;
217
- };
218
- readonly onDone: {
219
- readonly target: "success";
220
- readonly actions: "setBlob";
221
- };
222
- readonly onError: {
223
- readonly target: "error";
224
- };
225
- };
226
- };
227
- readonly success: {
228
- readonly on: {
229
- readonly DOWNLOADED: {
230
- readonly target: "downloaded";
231
- };
232
- readonly DOWNLOAD_FAILED: {
233
- readonly target: "error";
234
- };
235
- readonly FINISH: {
236
- readonly target: "finished";
237
- };
238
- };
239
- };
240
- readonly downloaded: {
241
- readonly on: {
242
- readonly FINISH: {
243
- readonly target: "finished";
244
- };
245
- };
246
- };
247
- readonly error: {
248
- readonly after: {
249
- readonly 3000: {
250
- readonly target: "finished";
251
- };
252
- };
253
- };
254
- readonly finished: {
255
- readonly type: "final";
256
- };
257
- };
258
- }>;
259
- //#endregion
260
- //#region src/modules/certificate-issuance/certificateIssuanceActor.d.ts
261
- type CreateCertificateIssuanceActorOptions = {
262
- config: CertificateIssuanceConfig;
263
- };
264
- //#endregion
265
- //#region src/modules/certificate-issuance/certificateIssuanceManager.d.ts
266
- type CertificateIssuanceIdleState = {
267
- status: 'idle';
268
- };
269
- type CertificateIssuancePasswordState = {
270
- status: 'password';
271
- password: string;
272
- passwordValidations: PasswordValidations;
273
- canSubmit: boolean;
274
- };
275
- type CertificateIssuanceProcessingState = {
276
- status: 'processing';
277
- };
278
- type CertificateIssuanceErrorState = {
279
- status: 'error';
280
- };
281
- type CertificateIssuanceSuccessState = {
282
- status: 'success';
283
- blob: Blob;
284
- };
285
- type CertificateIssuanceDownloadedState = {
286
- status: 'downloaded';
287
- };
288
- type CertificateIssuanceFinishedState = {
289
- status: 'finished';
290
- };
291
- type CertificateIssuanceState = CertificateIssuanceIdleState | CertificateIssuancePasswordState | CertificateIssuanceProcessingState | CertificateIssuanceSuccessState | CertificateIssuanceDownloadedState | CertificateIssuanceErrorState | CertificateIssuanceFinishedState;
292
- declare function createCertificateIssuanceManager(options: CreateCertificateIssuanceActorOptions): Manager<CertificateIssuanceState> & {
293
- load(): void;
294
- setPassword(password: string): void;
295
- submitPassword(): void;
296
- markDownloaded(): void;
297
- reportDownloadError(): void;
298
- finish(): void;
299
- };
300
- type CertificateIssuanceManager = ReturnType<typeof createCertificateIssuanceManager>;
301
- //#endregion
1
+ import { a as CertificateIssuanceActor, c as CertificateIssuanceType, d as PasswordValidations, f as MIN_PASSWORD_LENGTH, i as createCertificateIssuanceManagerFromActor, l as IssueCertificateResponse, m as REQUIREMENT_I18N_KEYS, n as CertificateIssuanceState, o as certificateIssuanceMachine, p as PASSWORD_VALIDATION_KEYS, r as createCertificateIssuanceManager, s as CertificateIssuanceConfig, t as CertificateIssuanceManager, u as PasswordValidationKey } from "./certificateIssuanceManager-DCgEidHz.js";
302
2
  //#region src/modules/certificate-issuance/certificateIssuanceUtils.d.ts
303
3
  declare function emptyPasswordValidations(): PasswordValidations;
304
4
  declare function validatePassword(value: string): PasswordValidations;
305
5
  declare function isPasswordValid(validations: PasswordValidations): boolean;
306
6
  //#endregion
307
- export { type CertificateIssuanceConfig, type CertificateIssuanceManager, type CertificateIssuanceState, type CertificateIssuanceType, type IssueCertificateResponse, MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, type PasswordValidationKey, type PasswordValidations, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, emptyPasswordValidations, isPasswordValid, validatePassword };
7
+ export { type CertificateIssuanceActor, type CertificateIssuanceConfig, type CertificateIssuanceManager, type CertificateIssuanceState, type CertificateIssuanceType, type IssueCertificateResponse, MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, type PasswordValidationKey, type PasswordValidations, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
@@ -1,66 +1,3 @@
1
- import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
2
- import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
1
  import { a as MIN_PASSWORD_LENGTH, i as validatePassword, n as emptyPasswordValidations, o as PASSWORD_VALIDATION_KEYS, r as isPasswordValid, s as REQUIREMENT_I18N_KEYS, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-COd7_l2T.esm.js";
4
- //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
5
- /**
6
- * Creates and starts a certificate issuance actor.
7
- */
8
- function createCertificateIssuanceActor(options) {
9
- return createActor(certificateIssuanceMachine, { input: { config: options.config } }).start();
10
- }
11
- //#endregion
12
- //#region src/modules/certificate-issuance/certificateIssuanceManager.ts
13
- function mapState(snapshot) {
14
- const typedSnapshot = snapshot;
15
- const { context } = typedSnapshot;
16
- if (typedSnapshot.matches("password")) return {
17
- status: "password",
18
- password: context.password,
19
- passwordValidations: context.passwordValidations,
20
- canSubmit: isPasswordValid(context.passwordValidations)
21
- };
22
- if (typedSnapshot.matches("processing")) return { status: "processing" };
23
- if (typedSnapshot.matches("error")) return { status: "error" };
24
- if (typedSnapshot.matches("success")) return {
25
- status: "success",
26
- blob: context.certificateBlob
27
- };
28
- if (typedSnapshot.matches("downloaded")) return { status: "downloaded" };
29
- if (typedSnapshot.matches("finished")) return { status: "finished" };
30
- return { status: "idle" };
31
- }
32
- function createApi({ actor }) {
33
- return {
34
- load() {
35
- actor.send({ type: "LOAD" });
36
- },
37
- setPassword(password) {
38
- actor.send({
39
- type: "PASSWORD_CHANGED",
40
- password
41
- });
42
- },
43
- submitPassword() {
44
- actor.send({ type: "SUBMIT_PASSWORD" });
45
- },
46
- markDownloaded() {
47
- actor.send({ type: "DOWNLOADED" });
48
- },
49
- reportDownloadError() {
50
- actor.send({ type: "DOWNLOAD_FAILED" });
51
- },
52
- finish() {
53
- actor.send({ type: "FINISH" });
54
- }
55
- };
56
- }
57
- function createCertificateIssuanceManager(options) {
58
- return createManager({
59
- actor: createCertificateIssuanceActor(options),
60
- mapState,
61
- createApi,
62
- instrumentation: createManagerInstrumentation(eventModuleNames.certificateIssuance)
63
- });
64
- }
65
- //#endregion
66
- export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, emptyPasswordValidations, isPasswordValid, validatePassword };
2
+ import { n as createCertificateIssuanceManagerFromActor, t as createCertificateIssuanceManager } from "./certificateIssuanceManager-Ci4symEA.esm.js";
3
+ export { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, certificateIssuanceMachine, createCertificateIssuanceManager, createCertificateIssuanceManagerFromActor, emptyPasswordValidations, isPasswordValid, validatePassword };
@@ -0,0 +1,69 @@
1
+ import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CxfNJVZW.esm.js";
2
+ import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
3
+ import { r as isPasswordValid, t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-COd7_l2T.esm.js";
4
+ //#region src/modules/certificate-issuance/certificateIssuanceActor.ts
5
+ /**
6
+ * Creates and starts a certificate issuance actor.
7
+ */
8
+ function createCertificateIssuanceActor(options) {
9
+ return createActor(certificateIssuanceMachine, { input: { config: options.config } }).start();
10
+ }
11
+ //#endregion
12
+ //#region src/modules/certificate-issuance/certificateIssuanceManager.ts
13
+ function mapState(snapshot) {
14
+ const typedSnapshot = snapshot;
15
+ const { context } = typedSnapshot;
16
+ if (typedSnapshot.matches("password")) return {
17
+ status: "password",
18
+ password: context.password,
19
+ passwordValidations: context.passwordValidations,
20
+ canSubmit: isPasswordValid(context.passwordValidations)
21
+ };
22
+ if (typedSnapshot.matches("processing")) return { status: "processing" };
23
+ if (typedSnapshot.matches("error")) return { status: "error" };
24
+ if (typedSnapshot.matches("success")) return {
25
+ status: "success",
26
+ blob: context.certificateBlob
27
+ };
28
+ if (typedSnapshot.matches("downloaded")) return { status: "downloaded" };
29
+ if (typedSnapshot.matches("finished")) return { status: "finished" };
30
+ return { status: "idle" };
31
+ }
32
+ function createApi({ actor }) {
33
+ return {
34
+ load() {
35
+ actor.send({ type: "LOAD" });
36
+ },
37
+ setPassword(password) {
38
+ actor.send({
39
+ type: "PASSWORD_CHANGED",
40
+ password
41
+ });
42
+ },
43
+ submitPassword() {
44
+ actor.send({ type: "SUBMIT_PASSWORD" });
45
+ },
46
+ markDownloaded() {
47
+ actor.send({ type: "DOWNLOADED" });
48
+ },
49
+ reportDownloadError() {
50
+ actor.send({ type: "DOWNLOAD_FAILED" });
51
+ },
52
+ finish() {
53
+ actor.send({ type: "FINISH" });
54
+ }
55
+ };
56
+ }
57
+ function createCertificateIssuanceManager(options) {
58
+ return createCertificateIssuanceManagerFromActor(createCertificateIssuanceActor(options));
59
+ }
60
+ function createCertificateIssuanceManagerFromActor(actor) {
61
+ return createManager({
62
+ actor,
63
+ mapState,
64
+ createApi,
65
+ instrumentation: createManagerInstrumentation(eventModuleNames.certificateIssuance)
66
+ });
67
+ }
68
+ //#endregion
69
+ export { createCertificateIssuanceManagerFromActor as n, createCertificateIssuanceManager as t };