@incodetech/core 0.0.0-dev-20260630-e8bce8aa → 0.0.0-dev-20260630-efb9ecd6

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 (39) hide show
  1. package/dist/ae-signature.d.ts +1 -1
  2. package/dist/certificate-issuance.d.ts +28 -28
  3. package/dist/consent.d.ts +1 -1
  4. package/dist/{consentManager-Ddp-0HQg.d.ts → consentManager-BpmxVePQ.d.ts} +47 -47
  5. package/dist/cpf-ocr.d.ts +1 -1
  6. package/dist/{cpfOcrManager-Cl_cyNk-.d.ts → cpfOcrManager-CjVmnYQ8.d.ts} +17 -17
  7. package/dist/document-capture.d.ts +248 -248
  8. package/dist/document-upload.d.ts +46 -46
  9. package/dist/ekyb.esm.js +3 -3
  10. package/dist/{ekybStateMachine-zsYp4Rhk.esm.js → ekybStateMachine-ChOS0sJe.esm.js} +1 -1
  11. package/dist/electronic-signature.d.ts +1 -1
  12. package/dist/extensibility.d.ts +4 -4
  13. package/dist/extensibility.esm.js +3 -3
  14. package/dist/flow.d.ts +2 -2
  15. package/dist/flow.esm.js +2 -2
  16. package/dist/{flowServices-Bii-fnfx.esm.js → flowServices-p1XpGJ3W.esm.js} +1 -1
  17. package/dist/home.d.ts +10 -10
  18. package/dist/id-ocr.d.ts +55 -55
  19. package/dist/id-verification.d.ts +25 -25
  20. package/dist/id.esm.js +3 -3
  21. package/dist/{idCaptureManager-Dv4dybjo.esm.js → idCaptureManager-CZH5yD0H.esm.js} +1 -1
  22. package/dist/{idCaptureStateMachine-DWriZMwM.esm.js → idCaptureStateMachine-wQip1nRc.esm.js} +160 -81
  23. package/dist/identity-reuse.d.ts +1 -1
  24. package/dist/{identityReuseManager-YLY8KphJ.d.ts → identityReuseManager-tQU_-eVb.d.ts} +34 -34
  25. package/dist/{index-B4ako_0m.d.ts → index-C2gegqY_.d.ts} +168 -168
  26. package/dist/index.esm.js +2 -2
  27. package/dist/mandatory-consent.d.ts +1 -1
  28. package/dist/{mandatoryConsentManager-DxeDgqvY.d.ts → mandatoryConsentManager-DliQMHHH.d.ts} +47 -47
  29. package/dist/qe-signature.d.ts +1 -1
  30. package/dist/session.esm.js +1 -1
  31. package/dist/{sessionInitializer-BbhUpl1D.esm.js → sessionInitializer-CXlHfW46.esm.js} +1 -1
  32. package/dist/{setup-CHA3v4vs.esm.js → setup-DSLEOYaM.esm.js} +1 -1
  33. package/dist/trust-graph.d.ts +2 -2
  34. package/dist/video-selfie.d.ts +2 -2
  35. package/dist/video-selfie.esm.js +2 -2
  36. package/dist/wasm.esm.js +2 -2
  37. package/dist/workflow.d.ts +159 -159
  38. package/dist/workflow.esm.js +5 -5
  39. package/package.json +1 -1
@@ -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-BbhUpl1D.esm.js";
6
+ import { t as getDisableIpify } from "./sessionInitializer-CXlHfW46.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
- * Read a File's bytes and return the raw base64 payload (the portion after
705
- * `data:<mime>;base64,`). The backend's `/omni/add/*-id/v2` endpoints reject
706
- * full data-URLs with `IllegalArgumentException: Illegal base64 character 3a`,
707
- * so the prefix must be stripped before posting. Mirrors the live-camera
708
- * path in `packages/infra/src/media/canvas.ts:getBase64Image()`.
709
- */
710
- function fileToBase64Payload(file) {
711
- return new Promise((resolve, reject) => {
712
- const reader = new FileReader();
713
- reader.onload = () => {
714
- const result = reader.result;
715
- if (typeof result !== "string") {
716
- reject(/* @__PURE__ */ new Error("FileReader produced non-string result"));
717
- return;
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 uploadManualIdFile({
734
- side: input.side,
735
- base64Image,
736
- retry: input.retry,
737
- onlyFront: input.onlyFront,
738
- isSecondId: input.isSecondId,
739
- extractIdFace: input.extractIdFace,
740
- signal
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 getUploadResponseFromEvent = (event) => {
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
- if (!("output" in event)) return {};
804
- if (!event.output.skipBackIdCapture) return {};
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
- if (!("output" in event)) return {};
810
- const response = event.output;
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
- guard: "manualUploadResponseHasError",
925
- target: "checkRetries",
926
- actions: [
927
- "decrementManualUploadRetries",
928
- "setManualUploadErrorFromResponse",
929
- "markErrorSideFront"
930
- ]
931
- }, {
932
- target: "selecting",
933
- actions: [
934
- "markFrontUploaded",
935
- "recordSkipBackFromResponse",
936
- "clearManualUploadError"
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
- guard: "manualUploadResponseHasError",
960
- target: "checkRetries",
961
- actions: [
962
- "decrementManualUploadRetries",
963
- "setManualUploadErrorFromResponse",
964
- "markErrorSideBack"
965
- ]
966
- }, {
967
- target: "selecting",
968
- actions: ["markBackUploaded", "clearManualUploadError"]
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
- guard: "manualUploadResponseHasError",
992
- target: "checkRetries",
993
- actions: [
994
- "decrementManualUploadRetries",
995
- "setManualUploadErrorFromResponse",
996
- "markErrorSidePassport"
997
- ]
998
- }, {
999
- target: "selecting",
1000
- actions: ["markPassportUploaded", "clearManualUploadError"]
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: [
@@ -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-YLY8KphJ.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-tQU_-eVb.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 xstate175 from "xstate";
3
+ import * as xstate1353 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: xstate175.StateMachine<IdentityReuseContext, {
79
+ declare const identityReuseMachine: xstate1353.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]: xstate175.ActorRefFromLogic<xstate175.PromiseActorLogic<FetchDocumentsResponse, void, xstate175.EventObject>> | xstate175.ActorRefFromLogic<xstate175.PromiseActorLogic<SubmitResponse, SubmitParams, xstate175.EventObject>> | undefined;
92
- }, xstate175.Values<{
91
+ [x: string]: xstate1353.ActorRefFromLogic<xstate1353.PromiseActorLogic<FetchDocumentsResponse, void, xstate1353.EventObject>> | xstate1353.ActorRefFromLogic<xstate1353.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1353.EventObject>> | undefined;
92
+ }, xstate1353.Values<{
93
93
  fetchDocuments: {
94
94
  src: "fetchDocuments";
95
- logic: xstate175.PromiseActorLogic<FetchDocumentsResponse, void, xstate175.EventObject>;
95
+ logic: xstate1353.PromiseActorLogic<FetchDocumentsResponse, void, xstate1353.EventObject>;
96
96
  id: string | undefined;
97
97
  };
98
98
  submitDocument: {
99
99
  src: "submitDocument";
100
- logic: xstate175.PromiseActorLogic<SubmitResponse, SubmitParams, xstate175.EventObject>;
100
+ logic: xstate1353.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1353.EventObject>;
101
101
  id: string | undefined;
102
102
  };
103
- }>, xstate175.Values<{
103
+ }>, xstate1353.Values<{
104
104
  setDocuments: {
105
105
  type: "setDocuments";
106
- params: xstate175.NonReducibleUnknown;
106
+ params: xstate1353.NonReducibleUnknown;
107
107
  };
108
108
  setError: {
109
109
  type: "setError";
110
- params: xstate175.NonReducibleUnknown;
111
- };
112
- setSelectedDocument: {
113
- type: "setSelectedDocument";
114
- params: xstate175.NonReducibleUnknown;
110
+ params: xstate1353.NonReducibleUnknown;
115
111
  };
116
112
  clearError: {
117
113
  type: "clearError";
118
- params: xstate175.NonReducibleUnknown;
114
+ params: xstate1353.NonReducibleUnknown;
115
+ };
116
+ setSelectedDocument: {
117
+ type: "setSelectedDocument";
118
+ params: xstate1353.NonReducibleUnknown;
119
119
  };
120
- }>, xstate175.Values<{
120
+ }>, xstate1353.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" | "documentsFound" | "submitting", string, IdentityReuseInput, xstate175.NonReducibleUnknown, xstate175.EventObject, xstate175.MetaObject, {
129
+ }>, never, "error" | "idle" | "finished" | "loading" | "submitting" | "documentsFound", string, IdentityReuseInput, xstate1353.NonReducibleUnknown, xstate1353.EventObject, xstate1353.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: xstate175.PromiseActorLogic<FetchDocumentsResponse, void, xstate175.EventObject>;
138
+ logic: xstate1353.PromiseActorLogic<FetchDocumentsResponse, void, xstate1353.EventObject>;
139
139
  id: string | undefined;
140
140
  } extends infer T ? T extends {
141
141
  src: "fetchDocuments";
142
- logic: xstate175.PromiseActorLogic<FetchDocumentsResponse, void, xstate175.EventObject>;
142
+ logic: xstate1353.PromiseActorLogic<FetchDocumentsResponse, void, xstate1353.EventObject>;
143
143
  id: string | undefined;
144
144
  } ? T extends {
145
145
  src: TSrc;
146
- } ? xstate175.ConditionalRequired<[options?: ({
146
+ } ? xstate1353.ConditionalRequired<[options?: ({
147
147
  id?: T["id"] | undefined;
148
148
  systemId?: string;
149
- input?: xstate175.InputFrom<T["logic"]> | undefined;
149
+ input?: xstate1353.InputFrom<T["logic"]> | undefined;
150
150
  syncSnapshot?: boolean;
151
- } & { [K in xstate175.RequiredActorOptions<T>]: unknown }) | undefined], xstate175.IsNotNever<xstate175.RequiredActorOptions<T>>> : never : never : never) | ({
151
+ } & { [K in xstate1353.RequiredActorOptions<T>]: unknown }) | undefined], xstate1353.IsNotNever<xstate1353.RequiredActorOptions<T>>> : never : never : never) | ({
152
152
  src: "submitDocument";
153
- logic: xstate175.PromiseActorLogic<SubmitResponse, SubmitParams, xstate175.EventObject>;
153
+ logic: xstate1353.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1353.EventObject>;
154
154
  id: string | undefined;
155
155
  } extends infer T_1 ? T_1 extends {
156
156
  src: "submitDocument";
157
- logic: xstate175.PromiseActorLogic<SubmitResponse, SubmitParams, xstate175.EventObject>;
157
+ logic: xstate1353.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1353.EventObject>;
158
158
  id: string | undefined;
159
159
  } ? T_1 extends {
160
160
  src: TSrc;
161
- } ? xstate175.ConditionalRequired<[options?: ({
161
+ } ? xstate1353.ConditionalRequired<[options?: ({
162
162
  id?: T_1["id"] | undefined;
163
163
  systemId?: string;
164
- input?: xstate175.InputFrom<T_1["logic"]> | undefined;
164
+ input?: xstate1353.InputFrom<T_1["logic"]> | undefined;
165
165
  syncSnapshot?: boolean;
166
- } & { [K_1 in xstate175.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate175.IsNotNever<xstate175.RequiredActorOptions<T_1>>> : never : never : never)): xstate175.ActorRefFromLogic<xstate175.GetConcreteByKey<xstate175.Values<{
166
+ } & { [K_1 in xstate1353.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate1353.IsNotNever<xstate1353.RequiredActorOptions<T_1>>> : never : never : never)): xstate1353.ActorRefFromLogic<xstate1353.GetConcreteByKey<xstate1353.Values<{
167
167
  fetchDocuments: {
168
168
  src: "fetchDocuments";
169
- logic: xstate175.PromiseActorLogic<FetchDocumentsResponse, void, xstate175.EventObject>;
169
+ logic: xstate1353.PromiseActorLogic<FetchDocumentsResponse, void, xstate1353.EventObject>;
170
170
  id: string | undefined;
171
171
  };
172
172
  submitDocument: {
173
173
  src: "submitDocument";
174
- logic: xstate175.PromiseActorLogic<SubmitResponse, SubmitParams, xstate175.EventObject>;
174
+ logic: xstate1353.PromiseActorLogic<SubmitResponse, SubmitParams, xstate1353.EventObject>;
175
175
  id: string | undefined;
176
176
  };
177
177
  }>, "src", TSrc>["logic"]>;
178
- <TLogic extends xstate175.AnyActorLogic>(src: TLogic, ...[options]: xstate175.ConditionalRequired<[options?: ({
178
+ <TLogic extends xstate1353.AnyActorLogic>(src: TLogic, ...[options]: xstate1353.ConditionalRequired<[options?: ({
179
179
  id?: never;
180
180
  systemId?: string;
181
- input?: xstate175.InputFrom<TLogic> | undefined;
181
+ input?: xstate1353.InputFrom<TLogic> | undefined;
182
182
  syncSnapshot?: boolean;
183
- } & { [K in xstate175.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate175.IsNotNever<xstate175.RequiredLogicInput<TLogic>>>): xstate175.ActorRefFromLogic<TLogic>;
183
+ } & { [K in xstate1353.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate1353.IsNotNever<xstate1353.RequiredLogicInput<TLogic>>>): xstate1353.ActorRefFromLogic<TLogic>;
184
184
  };
185
185
  input: IdentityReuseInput;
186
- self: xstate175.ActorRef<xstate175.MachineSnapshot<IdentityReuseContext, {
186
+ self: xstate1353.ActorRef<xstate1353.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, xstate175.AnyActorRef | undefined>, xstate175.StateValue, string, unknown, any, any>, {
197
+ }, Record<string, xstate1353.AnyActorRef | undefined>, xstate1353.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
- }, xstate175.AnyEventObject>;
208
+ }, xstate1353.AnyEventObject>;
209
209
  }) => {
210
210
  config: IdentityReuseConfig;
211
211
  documents: never[];