@incodetech/core 0.0.0-dev-20260630-e8bce8aa → 0.0.0-dev-20260630-c00616f1
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/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Ddp-0HQg.d.ts → consentManager-v6ZhuhJV.d.ts} +50 -50
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-Cl_cyNk-.d.ts → cpfOcrManager-CylomTa8.d.ts} +20 -20
- package/dist/document-capture.d.ts +222 -222
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-zsYp4Rhk.esm.js → ekybStateMachine-Di8Bewzw.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow.d.ts +2 -2
- package/dist/flow.esm.js +2 -2
- package/dist/{flowServices-Bii-fnfx.esm.js → flowServices-DamtUYfB.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Dv4dybjo.esm.js → idCaptureManager-CqZgl1VA.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-DWriZMwM.esm.js → idCaptureStateMachine-XbHV0Oi9.esm.js} +160 -81
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-YLY8KphJ.d.ts → identityReuseManager-D9A5R-kS.d.ts} +34 -34
- package/dist/{index-B4ako_0m.d.ts → index-v4SLsZ7f.d.ts} +168 -168
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-DxeDgqvY.d.ts → mandatoryConsentManager-CekN7itE.d.ts} +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-BbhUpl1D.esm.js → sessionInitializer-DdgL_pka.esm.js} +1 -1
- package/dist/{setup-CHA3v4vs.esm.js → setup-UxZyBFRF.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +105 -105
- package/dist/workflow.esm.js +4 -4
- package/package.json +3 -3
package/dist/{idCaptureStateMachine-DWriZMwM.esm.js → idCaptureStateMachine-XbHV0Oi9.esm.js}
RENAMED
|
@@ -3,7 +3,7 @@ import { r as getToken, t as api } from "./api-DsbUi7TO.esm.js";
|
|
|
3
3
|
import { v as revokeObjectURL } from "./events-CqGY1yMq.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-BzMJFAPV.esm.js";
|
|
5
5
|
import { t as addDeviceStats } from "./stats-CYcScXcO.esm.js";
|
|
6
|
-
import { t as getDisableIpify } from "./sessionInitializer-
|
|
6
|
+
import { t as getDisableIpify } from "./sessionInitializer-DdgL_pka.esm.js";
|
|
7
7
|
import { n as isDesktop } from "./platform-uIVQUnJP.esm.js";
|
|
8
8
|
import { a as fromPromise, i as fromCallback, n as sendTo, o as and, r as assign, t as setup } from "./xstate.esm-h2zbOb-8.esm.js";
|
|
9
9
|
import { n as invokeRequestPermissionActor, t as checkPermission } from "./permissionServices-DylQrLrh.esm.js";
|
|
@@ -390,6 +390,61 @@ function mapFailReasonToErrorKey(response, expectedTab) {
|
|
|
390
390
|
return null;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../infra/src/media/imageFile.ts
|
|
395
|
+
const DEFAULT_IMAGE_MIME_TYPE = "image/jpeg";
|
|
396
|
+
const DEFAULT_IMAGE_QUALITY = .92;
|
|
397
|
+
const canNormalizeImageFile = (file) => file.type.startsWith("image/") && typeof document !== "undefined" && typeof Image !== "undefined" && typeof URL !== "undefined" && typeof URL.createObjectURL === "function";
|
|
398
|
+
const readFileAsDataUrl = (file) => new Promise((resolve, reject) => {
|
|
399
|
+
const reader = new FileReader();
|
|
400
|
+
reader.onload = () => {
|
|
401
|
+
const result = reader.result;
|
|
402
|
+
if (typeof result === "string") {
|
|
403
|
+
resolve(result);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
reject(/* @__PURE__ */ new Error("FileReader produced non-string result"));
|
|
407
|
+
};
|
|
408
|
+
reader.onerror = () => {
|
|
409
|
+
reject(reader.error ?? /* @__PURE__ */ new Error("FileReader failed"));
|
|
410
|
+
};
|
|
411
|
+
reader.readAsDataURL(file);
|
|
412
|
+
});
|
|
413
|
+
const loadImage = (url) => new Promise((resolve, reject) => {
|
|
414
|
+
const image = new Image();
|
|
415
|
+
image.onload = () => resolve(image);
|
|
416
|
+
image.onerror = () => reject(/* @__PURE__ */ new Error("Image decoding failed"));
|
|
417
|
+
image.src = url;
|
|
418
|
+
});
|
|
419
|
+
const fileToCanvasDataUrl = async (file, options) => {
|
|
420
|
+
const objectUrl = URL.createObjectURL(file);
|
|
421
|
+
try {
|
|
422
|
+
const image = await loadImage(objectUrl);
|
|
423
|
+
const width = image.naturalWidth || image.width;
|
|
424
|
+
const height = image.naturalHeight || image.height;
|
|
425
|
+
if (width <= 0 || height <= 0) return readFileAsDataUrl(file);
|
|
426
|
+
const canvas = document.createElement("canvas");
|
|
427
|
+
canvas.width = width;
|
|
428
|
+
canvas.height = height;
|
|
429
|
+
const context = canvas.getContext("2d");
|
|
430
|
+
if (!context) return readFileAsDataUrl(file);
|
|
431
|
+
context.fillStyle = "#fff";
|
|
432
|
+
context.fillRect(0, 0, width, height);
|
|
433
|
+
context.drawImage(image, 0, 0, width, height);
|
|
434
|
+
return canvas.toDataURL(options.mimeType ?? DEFAULT_IMAGE_MIME_TYPE, options.quality ?? DEFAULT_IMAGE_QUALITY);
|
|
435
|
+
} finally {
|
|
436
|
+
URL.revokeObjectURL(objectUrl);
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
const imageFileToDataUrl = async (file, options = {}) => {
|
|
440
|
+
if (!canNormalizeImageFile(file)) return readFileAsDataUrl(file);
|
|
441
|
+
try {
|
|
442
|
+
return await fileToCanvasDataUrl(file, options);
|
|
443
|
+
} catch {
|
|
444
|
+
return readFileAsDataUrl(file);
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
|
|
393
448
|
//#endregion
|
|
394
449
|
//#region src/modules/id/idCameraStream.ts
|
|
395
450
|
async function getIdCameraStream(deviceId) {
|
|
@@ -700,49 +755,47 @@ async function uploadManualIdFile(params) {
|
|
|
700
755
|
|
|
701
756
|
//#endregion
|
|
702
757
|
//#region src/modules/id/manualUpload/manualUploadServices.ts
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
const commaIndex = result.indexOf(",");
|
|
720
|
-
resolve(commaIndex === -1 ? result : result.slice(commaIndex + 1));
|
|
721
|
-
};
|
|
722
|
-
reader.onerror = () => {
|
|
723
|
-
reject(reader.error ?? /* @__PURE__ */ new Error("FileReader failed"));
|
|
724
|
-
};
|
|
725
|
-
reader.readAsDataURL(file);
|
|
726
|
-
});
|
|
727
|
-
}
|
|
758
|
+
const stripDataUrlPrefix = (dataUrl) => {
|
|
759
|
+
const commaIndex = dataUrl.indexOf(",");
|
|
760
|
+
return commaIndex === -1 ? dataUrl : dataUrl.slice(commaIndex + 1);
|
|
761
|
+
};
|
|
762
|
+
const getBase64PayloadByteLength = (payload) => {
|
|
763
|
+
const normalized = payload.replace(/\s/g, "");
|
|
764
|
+
let padding = 0;
|
|
765
|
+
if (normalized.endsWith("==")) padding = 2;
|
|
766
|
+
else if (normalized.endsWith("=")) padding = 1;
|
|
767
|
+
return Math.max(0, Math.floor(normalized.length * 3 / 4) - padding);
|
|
768
|
+
};
|
|
769
|
+
const isBase64PayloadWithinSize = (payload, maxBytes) => getBase64PayloadByteLength(payload) <= maxBytes;
|
|
770
|
+
const fileToBase64Payload = async (file) => {
|
|
771
|
+
return stripDataUrlPrefix(await imageFileToDataUrl(file));
|
|
772
|
+
};
|
|
728
773
|
|
|
729
774
|
//#endregion
|
|
730
775
|
//#region src/modules/id/manualUpload/manualUploadStateMachine.ts
|
|
731
776
|
const uploadManualFileActor = fromPromise(async ({ input, signal }) => {
|
|
732
777
|
const base64Image = await fileToBase64Payload(input.file);
|
|
733
|
-
return
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
778
|
+
if (!isBase64PayloadWithinSize(base64Image, MANUAL_UPLOAD_MAX_FILE_SIZE_BYTES)) return { type: "fileTooLarge" };
|
|
779
|
+
return {
|
|
780
|
+
type: "uploaded",
|
|
781
|
+
response: await uploadManualIdFile({
|
|
782
|
+
side: input.side,
|
|
783
|
+
base64Image,
|
|
784
|
+
retry: input.retry,
|
|
785
|
+
onlyFront: input.onlyFront,
|
|
786
|
+
isSecondId: input.isSecondId,
|
|
787
|
+
extractIdFace: input.extractIdFace,
|
|
788
|
+
signal
|
|
789
|
+
})
|
|
790
|
+
};
|
|
742
791
|
});
|
|
743
|
-
const
|
|
792
|
+
const getUploadOutputFromEvent = (event) => {
|
|
744
793
|
if ("output" in event) return event.output;
|
|
745
794
|
};
|
|
795
|
+
const getUploadResponseFromEvent = (event) => {
|
|
796
|
+
const output = getUploadOutputFromEvent(event);
|
|
797
|
+
return output?.type === "uploaded" ? output.response : void 0;
|
|
798
|
+
};
|
|
746
799
|
const _manualUploadMachine = setup({
|
|
747
800
|
types: {
|
|
748
801
|
context: {},
|
|
@@ -800,14 +853,15 @@ const _manualUploadMachine = setup({
|
|
|
800
853
|
errorSide: null
|
|
801
854
|
})),
|
|
802
855
|
recordSkipBackFromResponse: assign(({ event }) => {
|
|
803
|
-
|
|
804
|
-
if (!
|
|
856
|
+
const response = getUploadResponseFromEvent(event);
|
|
857
|
+
if (!response) return {};
|
|
858
|
+
if (!response.skipBackIdCapture) return {};
|
|
805
859
|
return { skipBackFromServer: true };
|
|
806
860
|
}),
|
|
807
861
|
decrementManualUploadRetries: assign(({ context }) => ({ retriesLeft: Math.max(0, context.retriesLeft - 1) })),
|
|
808
862
|
setManualUploadErrorFromResponse: assign(({ context, event }) => {
|
|
809
|
-
|
|
810
|
-
|
|
863
|
+
const response = getUploadResponseFromEvent(event);
|
|
864
|
+
if (!response) return {};
|
|
811
865
|
return { errorMessage: mapFailReasonToErrorKey(response, context.activeTab) ?? "manualIdUpload.generic" };
|
|
812
866
|
}),
|
|
813
867
|
setManualUploadGenericError: assign(() => ({ errorMessage: "manualIdUpload.generic" })),
|
|
@@ -846,7 +900,8 @@ const _manualUploadMachine = setup({
|
|
|
846
900
|
const response = getUploadResponseFromEvent(event);
|
|
847
901
|
if (!response) return false;
|
|
848
902
|
return mapFailReasonToErrorKey(response, context.activeTab) !== null;
|
|
849
|
-
}
|
|
903
|
+
},
|
|
904
|
+
manualUploadPayloadTooLarge: ({ event }) => getUploadOutputFromEvent(event)?.type === "fileTooLarge"
|
|
850
905
|
}
|
|
851
906
|
}).createMachine({
|
|
852
907
|
id: "manualUpload",
|
|
@@ -920,22 +975,30 @@ const _manualUploadMachine = setup({
|
|
|
920
975
|
isSecondId: context.isSecondId,
|
|
921
976
|
extractIdFace: context.extractIdFace
|
|
922
977
|
}),
|
|
923
|
-
onDone: [
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
"
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
978
|
+
onDone: [
|
|
979
|
+
{
|
|
980
|
+
guard: "manualUploadPayloadTooLarge",
|
|
981
|
+
target: "selecting",
|
|
982
|
+
actions: ["setManualUploadFileTooLargeError", "markErrorSideFront"]
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
guard: "manualUploadResponseHasError",
|
|
986
|
+
target: "checkRetries",
|
|
987
|
+
actions: [
|
|
988
|
+
"decrementManualUploadRetries",
|
|
989
|
+
"setManualUploadErrorFromResponse",
|
|
990
|
+
"markErrorSideFront"
|
|
991
|
+
]
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
target: "selecting",
|
|
995
|
+
actions: [
|
|
996
|
+
"markFrontUploaded",
|
|
997
|
+
"recordSkipBackFromResponse",
|
|
998
|
+
"clearManualUploadError"
|
|
999
|
+
]
|
|
1000
|
+
}
|
|
1001
|
+
],
|
|
939
1002
|
onError: {
|
|
940
1003
|
target: "checkRetries",
|
|
941
1004
|
actions: [
|
|
@@ -955,18 +1018,26 @@ const _manualUploadMachine = setup({
|
|
|
955
1018
|
onlyFront: false,
|
|
956
1019
|
isSecondId: context.isSecondId
|
|
957
1020
|
}),
|
|
958
|
-
onDone: [
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
"
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
1021
|
+
onDone: [
|
|
1022
|
+
{
|
|
1023
|
+
guard: "manualUploadPayloadTooLarge",
|
|
1024
|
+
target: "selecting",
|
|
1025
|
+
actions: ["setManualUploadFileTooLargeError", "markErrorSideBack"]
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
guard: "manualUploadResponseHasError",
|
|
1029
|
+
target: "checkRetries",
|
|
1030
|
+
actions: [
|
|
1031
|
+
"decrementManualUploadRetries",
|
|
1032
|
+
"setManualUploadErrorFromResponse",
|
|
1033
|
+
"markErrorSideBack"
|
|
1034
|
+
]
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
target: "selecting",
|
|
1038
|
+
actions: ["markBackUploaded", "clearManualUploadError"]
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
970
1041
|
onError: {
|
|
971
1042
|
target: "checkRetries",
|
|
972
1043
|
actions: [
|
|
@@ -987,18 +1058,26 @@ const _manualUploadMachine = setup({
|
|
|
987
1058
|
isSecondId: context.isSecondId,
|
|
988
1059
|
extractIdFace: context.extractIdFace
|
|
989
1060
|
}),
|
|
990
|
-
onDone: [
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
"
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1061
|
+
onDone: [
|
|
1062
|
+
{
|
|
1063
|
+
guard: "manualUploadPayloadTooLarge",
|
|
1064
|
+
target: "selecting",
|
|
1065
|
+
actions: ["setManualUploadFileTooLargeError", "markErrorSidePassport"]
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
guard: "manualUploadResponseHasError",
|
|
1069
|
+
target: "checkRetries",
|
|
1070
|
+
actions: [
|
|
1071
|
+
"decrementManualUploadRetries",
|
|
1072
|
+
"setManualUploadErrorFromResponse",
|
|
1073
|
+
"markErrorSidePassport"
|
|
1074
|
+
]
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
target: "selecting",
|
|
1078
|
+
actions: ["markPassportUploaded", "clearManualUploadError"]
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1002
1081
|
onError: {
|
|
1003
1082
|
target: "checkRetries",
|
|
1004
1083
|
actions: [
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./Manager-BylDhZIB.js";
|
|
2
2
|
import "./Actor-DYjXVMQm.js";
|
|
3
|
-
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-
|
|
3
|
+
import { c as identityReuseMachine, d as ReusableDocument, f as SubmitResponse, i as createIdentityReuseManagerFromActor, l as FetchDocumentsResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as IdentityReuseConfig } from "./identityReuseManager-D9A5R-kS.js";
|
|
4
4
|
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-BylDhZIB.js";
|
|
2
2
|
import { t as ActorRefFrom } from "./Actor-DYjXVMQm.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as xstate1077 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:
|
|
79
|
+
declare const identityReuseMachine: xstate1077.StateMachine<IdentityReuseContext, {
|
|
80
80
|
type: "LOAD";
|
|
81
81
|
} | {
|
|
82
82
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -88,36 +88,36 @@ declare const identityReuseMachine: xstate175.StateMachine<IdentityReuseContext,
|
|
|
88
88
|
} | {
|
|
89
89
|
type: "RETRY";
|
|
90
90
|
}, {
|
|
91
|
-
[x: string]:
|
|
92
|
-
},
|
|
91
|
+
[x: string]: xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<FetchDocumentsResponse, void, xstate1077.EventObject>> | xstate1077.ActorRefFromLogic<xstate1077.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1077.EventObject>> | undefined;
|
|
92
|
+
}, xstate1077.Values<{
|
|
93
93
|
fetchDocuments: {
|
|
94
94
|
src: "fetchDocuments";
|
|
95
|
-
logic:
|
|
95
|
+
logic: xstate1077.PromiseActorLogic<FetchDocumentsResponse, void, xstate1077.EventObject>;
|
|
96
96
|
id: string | undefined;
|
|
97
97
|
};
|
|
98
98
|
submitDocument: {
|
|
99
99
|
src: "submitDocument";
|
|
100
|
-
logic:
|
|
100
|
+
logic: xstate1077.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1077.EventObject>;
|
|
101
101
|
id: string | undefined;
|
|
102
102
|
};
|
|
103
|
-
}>,
|
|
103
|
+
}>, xstate1077.Values<{
|
|
104
104
|
setDocuments: {
|
|
105
105
|
type: "setDocuments";
|
|
106
|
-
params:
|
|
106
|
+
params: xstate1077.NonReducibleUnknown;
|
|
107
|
+
};
|
|
108
|
+
clearError: {
|
|
109
|
+
type: "clearError";
|
|
110
|
+
params: xstate1077.NonReducibleUnknown;
|
|
107
111
|
};
|
|
108
112
|
setError: {
|
|
109
113
|
type: "setError";
|
|
110
|
-
params:
|
|
114
|
+
params: xstate1077.NonReducibleUnknown;
|
|
111
115
|
};
|
|
112
116
|
setSelectedDocument: {
|
|
113
117
|
type: "setSelectedDocument";
|
|
114
|
-
params:
|
|
115
|
-
};
|
|
116
|
-
clearError: {
|
|
117
|
-
type: "clearError";
|
|
118
|
-
params: xstate175.NonReducibleUnknown;
|
|
118
|
+
params: xstate1077.NonReducibleUnknown;
|
|
119
119
|
};
|
|
120
|
-
}>,
|
|
120
|
+
}>, xstate1077.Values<{
|
|
121
121
|
hasDocuments: {
|
|
122
122
|
type: "hasDocuments";
|
|
123
123
|
params: unknown;
|
|
@@ -126,7 +126,7 @@ declare const identityReuseMachine: xstate175.StateMachine<IdentityReuseContext,
|
|
|
126
126
|
type: "hasSelection";
|
|
127
127
|
params: unknown;
|
|
128
128
|
};
|
|
129
|
-
}>, never, "error" | "idle" | "finished" | "loading" | "
|
|
129
|
+
}>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, xstate1077.NonReducibleUnknown, xstate1077.EventObject, xstate1077.MetaObject, {
|
|
130
130
|
readonly id: "identityReuse";
|
|
131
131
|
readonly initial: "idle";
|
|
132
132
|
readonly context: ({
|
|
@@ -135,55 +135,55 @@ declare const identityReuseMachine: xstate175.StateMachine<IdentityReuseContext,
|
|
|
135
135
|
spawn: {
|
|
136
136
|
<TSrc extends "fetchDocuments" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
137
137
|
src: "fetchDocuments";
|
|
138
|
-
logic:
|
|
138
|
+
logic: xstate1077.PromiseActorLogic<FetchDocumentsResponse, void, xstate1077.EventObject>;
|
|
139
139
|
id: string | undefined;
|
|
140
140
|
} extends infer T ? T extends {
|
|
141
141
|
src: "fetchDocuments";
|
|
142
|
-
logic:
|
|
142
|
+
logic: xstate1077.PromiseActorLogic<FetchDocumentsResponse, void, xstate1077.EventObject>;
|
|
143
143
|
id: string | undefined;
|
|
144
144
|
} ? T extends {
|
|
145
145
|
src: TSrc;
|
|
146
|
-
} ?
|
|
146
|
+
} ? xstate1077.ConditionalRequired<[options?: ({
|
|
147
147
|
id?: T["id"] | undefined;
|
|
148
148
|
systemId?: string;
|
|
149
|
-
input?:
|
|
149
|
+
input?: xstate1077.InputFrom<T["logic"]> | undefined;
|
|
150
150
|
syncSnapshot?: boolean;
|
|
151
|
-
} & { [K in
|
|
151
|
+
} & { [K in xstate1077.RequiredActorOptions<T>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
152
152
|
src: "submitDocument";
|
|
153
|
-
logic:
|
|
153
|
+
logic: xstate1077.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1077.EventObject>;
|
|
154
154
|
id: string | undefined;
|
|
155
155
|
} extends infer T_1 ? T_1 extends {
|
|
156
156
|
src: "submitDocument";
|
|
157
|
-
logic:
|
|
157
|
+
logic: xstate1077.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1077.EventObject>;
|
|
158
158
|
id: string | undefined;
|
|
159
159
|
} ? T_1 extends {
|
|
160
160
|
src: TSrc;
|
|
161
|
-
} ?
|
|
161
|
+
} ? xstate1077.ConditionalRequired<[options?: ({
|
|
162
162
|
id?: T_1["id"] | undefined;
|
|
163
163
|
systemId?: string;
|
|
164
|
-
input?:
|
|
164
|
+
input?: xstate1077.InputFrom<T_1["logic"]> | undefined;
|
|
165
165
|
syncSnapshot?: boolean;
|
|
166
|
-
} & { [K_1 in
|
|
166
|
+
} & { [K_1 in xstate1077.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredActorOptions<T_1>>> : never : never : never)): xstate1077.ActorRefFromLogic<xstate1077.GetConcreteByKey<xstate1077.Values<{
|
|
167
167
|
fetchDocuments: {
|
|
168
168
|
src: "fetchDocuments";
|
|
169
|
-
logic:
|
|
169
|
+
logic: xstate1077.PromiseActorLogic<FetchDocumentsResponse, void, xstate1077.EventObject>;
|
|
170
170
|
id: string | undefined;
|
|
171
171
|
};
|
|
172
172
|
submitDocument: {
|
|
173
173
|
src: "submitDocument";
|
|
174
|
-
logic:
|
|
174
|
+
logic: xstate1077.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1077.EventObject>;
|
|
175
175
|
id: string | undefined;
|
|
176
176
|
};
|
|
177
177
|
}>, "src", TSrc>["logic"]>;
|
|
178
|
-
<TLogic extends
|
|
178
|
+
<TLogic extends xstate1077.AnyActorLogic>(src: TLogic, ...[options]: xstate1077.ConditionalRequired<[options?: ({
|
|
179
179
|
id?: never;
|
|
180
180
|
systemId?: string;
|
|
181
|
-
input?:
|
|
181
|
+
input?: xstate1077.InputFrom<TLogic> | undefined;
|
|
182
182
|
syncSnapshot?: boolean;
|
|
183
|
-
} & { [K in
|
|
183
|
+
} & { [K in xstate1077.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1077.IsNotNever<xstate1077.RequiredLogicInput<TLogic>>>): xstate1077.ActorRefFromLogic<TLogic>;
|
|
184
184
|
};
|
|
185
185
|
input: IdentityReuseInput;
|
|
186
|
-
self:
|
|
186
|
+
self: xstate1077.ActorRef<xstate1077.MachineSnapshot<IdentityReuseContext, {
|
|
187
187
|
type: "LOAD";
|
|
188
188
|
} | {
|
|
189
189
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -194,7 +194,7 @@ declare const identityReuseMachine: xstate175.StateMachine<IdentityReuseContext,
|
|
|
194
194
|
type: "SKIP";
|
|
195
195
|
} | {
|
|
196
196
|
type: "RETRY";
|
|
197
|
-
}, Record<string,
|
|
197
|
+
}, Record<string, xstate1077.AnyActorRef | undefined>, xstate1077.StateValue, string, unknown, any, any>, {
|
|
198
198
|
type: "LOAD";
|
|
199
199
|
} | {
|
|
200
200
|
type: "DOCUMENT_CHOSEN";
|
|
@@ -205,7 +205,7 @@ declare const identityReuseMachine: xstate175.StateMachine<IdentityReuseContext,
|
|
|
205
205
|
type: "SKIP";
|
|
206
206
|
} | {
|
|
207
207
|
type: "RETRY";
|
|
208
|
-
},
|
|
208
|
+
}, xstate1077.AnyEventObject>;
|
|
209
209
|
}) => {
|
|
210
210
|
config: IdentityReuseConfig;
|
|
211
211
|
documents: never[];
|