@nexeraid/identity-schemas 1.12.22-dev → 1.12.23-dev

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 (80) hide show
  1. package/dist/chainalysis.schema-9e5926b9.esm.js +2316 -0
  2. package/dist/chainalysis.schema-a9079d73.cjs.prod.js +2582 -0
  3. package/dist/chainalysis.schema-ab6cda47.cjs.dev.js +2582 -0
  4. package/dist/declarations/src/index.d.ts +4 -4
  5. package/dist/declarations/src/index.d.ts.map +1 -1
  6. package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts +1735 -0
  7. package/dist/declarations/src/providers/big/BIGBitRankVerifiedScore.schema.d.ts.map +1 -0
  8. package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts +759 -0
  9. package/dist/declarations/src/providers/chainalysis/chainalysis.schema.d.ts.map +1 -0
  10. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts +5735 -0
  11. package/dist/declarations/src/providers/comply-advantage/comply-advantage.schema.d.ts.map +1 -0
  12. package/dist/declarations/src/providers/customers.schema.d.ts +92 -0
  13. package/dist/declarations/src/providers/customers.schema.d.ts.map +1 -0
  14. package/dist/declarations/src/providers/index.d.ts +16 -0
  15. package/dist/declarations/src/providers/index.d.ts.map +1 -0
  16. package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts +1582 -0
  17. package/dist/declarations/src/providers/ipquality/ipquality.schema.d.ts.map +1 -0
  18. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts +307 -0
  19. package/dist/declarations/src/providers/kyb-sessions.schema.d.ts.map +1 -0
  20. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts +969 -0
  21. package/dist/declarations/src/providers/kyc-sessions.schema.d.ts.map +1 -0
  22. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts +604 -0
  23. package/dist/declarations/src/providers/merkle-science/merkle-science.schema.d.ts.map +1 -0
  24. package/dist/declarations/src/providers/provider.schema.d.ts +10861 -0
  25. package/dist/declarations/src/providers/provider.schema.d.ts.map +1 -0
  26. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts +3991 -0
  27. package/dist/declarations/src/providers/scorechain/scorechain.schema.d.ts.map +1 -0
  28. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts +6460 -0
  29. package/dist/declarations/src/providers/sumsub/sumsub-applicant.schema.d.ts.map +1 -0
  30. package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts +12 -0
  31. package/dist/declarations/src/providers/sumsub/sumsub-reject.schema.d.ts.map +1 -0
  32. package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts +187 -0
  33. package/dist/declarations/src/providers/sumsub/sumsub-webhooks.schema.d.ts.map +1 -0
  34. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts +314 -0
  35. package/dist/declarations/src/providers/sumsub/sumsub.schema.d.ts.map +1 -0
  36. package/dist/declarations/src/providers/synaps/synaps.schema.d.ts +4071 -0
  37. package/dist/declarations/src/providers/synaps/synaps.schema.d.ts.map +1 -0
  38. package/dist/declarations/src/webhooks/alert.schema.d.ts +98 -0
  39. package/dist/declarations/src/webhooks/alert.schema.d.ts.map +1 -0
  40. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts +43 -0
  41. package/dist/declarations/src/webhooks/alert.webhooks.schema.d.ts.map +1 -0
  42. package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts +479 -0
  43. package/dist/declarations/src/webhooks/customer.webhooks.schema.d.ts.map +1 -0
  44. package/dist/declarations/src/webhooks/index.d.ts +7 -0
  45. package/dist/declarations/src/webhooks/index.d.ts.map +1 -0
  46. package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts +195 -0
  47. package/dist/declarations/src/webhooks/scenario-webhook.schema.d.ts.map +1 -0
  48. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts +12605 -0
  49. package/dist/declarations/src/webhooks/send-verification-flow-webhook.schema.d.ts.map +1 -0
  50. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts +53321 -0
  51. package/dist/declarations/src/webhooks/svix.webhooks.schema.d.ts.map +1 -0
  52. package/dist/{frontend-utilities.schema-c327466a.cjs.prod.js → frontend-utilities.schema-9951d168.cjs.prod.js} +1 -1
  53. package/dist/{frontend-utilities.schema-1699cc67.esm.js → frontend-utilities.schema-c150e92a.esm.js} +1 -1
  54. package/dist/{frontend-utilities.schema-9b6dbb5e.cjs.dev.js → frontend-utilities.schema-c3ccca7b.cjs.dev.js} +1 -1
  55. package/dist/{identity-api.schema-6c0e3df3.cjs.prod.js → identity-api.schema-181d93d3.cjs.prod.js} +1266 -1271
  56. package/dist/{identity-api.schema-b7ca0eb2.esm.js → identity-api.schema-2df73bbd.esm.js} +1265 -1272
  57. package/dist/{identity-api.schema-5be99363.cjs.dev.js → identity-api.schema-8832ddec.cjs.dev.js} +1266 -1271
  58. package/dist/nexeraid-identity-schemas.cjs.dev.js +2 -2
  59. package/dist/nexeraid-identity-schemas.cjs.prod.js +2 -2
  60. package/dist/nexeraid-identity-schemas.esm.js +3 -3
  61. package/dist/package.json +15 -3
  62. package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.js +1 -1
  63. package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.js +1 -1
  64. package/identity/dist/nexeraid-identity-schemas-identity.esm.js +1 -1
  65. package/package.json +15 -3
  66. package/providers/dist/nexeraid-identity-schemas-providers.cjs.d.ts +2 -0
  67. package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.js +276 -0
  68. package/providers/dist/nexeraid-identity-schemas-providers.cjs.js +7 -0
  69. package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.js +276 -0
  70. package/providers/dist/nexeraid-identity-schemas-providers.esm.js +4 -0
  71. package/providers/package.json +4 -0
  72. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.js +2 -2
  73. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.js +2 -2
  74. package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.js +2 -2
  75. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.d.ts +2 -0
  76. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.js +662 -0
  77. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.js +7 -0
  78. package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.js +662 -0
  79. package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.js +580 -0
  80. package/webhooks/package.json +4 -0
@@ -0,0 +1,4071 @@
1
+ import { z } from "zod";
2
+ export declare const Statuses: readonly ["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"];
3
+ export declare const Status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
4
+ export type Status = z.infer<typeof Status>;
5
+ export declare const WebhookPayload: z.ZodObject<{
6
+ reason: z.ZodString;
7
+ service: z.ZodString;
8
+ session_id: z.ZodString;
9
+ status: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>>>>;
10
+ step_id: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ reason: string;
13
+ service: string;
14
+ session_id: string;
15
+ step_id: string;
16
+ status?: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION" | null | undefined;
17
+ }, {
18
+ reason: string;
19
+ service: string;
20
+ session_id: string;
21
+ step_id: string;
22
+ status?: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION" | null | undefined;
23
+ }>;
24
+ export type WebhookPayload = z.infer<typeof WebhookPayload>;
25
+ export declare const NestedSession: z.ZodObject<{
26
+ alias: z.ZodString;
27
+ id: z.ZodString;
28
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
29
+ sandbox: z.ZodBoolean;
30
+ steps: z.ZodArray<z.ZodObject<{
31
+ id: z.ZodString;
32
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
33
+ type: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ id: string;
36
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
37
+ type: string;
38
+ }, {
39
+ id: string;
40
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
41
+ type: string;
42
+ }>, "many">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ id: string;
45
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
46
+ sandbox: boolean;
47
+ alias: string;
48
+ steps: {
49
+ id: string;
50
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
51
+ type: string;
52
+ }[];
53
+ }, {
54
+ id: string;
55
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
56
+ sandbox: boolean;
57
+ alias: string;
58
+ steps: {
59
+ id: string;
60
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
61
+ type: string;
62
+ }[];
63
+ }>;
64
+ export declare const Session: z.ZodObject<{
65
+ app: z.ZodObject<{
66
+ name: z.ZodString;
67
+ id: z.ZodString;
68
+ }, "strip", z.ZodTypeAny, {
69
+ id: string;
70
+ name: string;
71
+ }, {
72
+ id: string;
73
+ name: string;
74
+ }>;
75
+ session: z.ZodObject<{
76
+ alias: z.ZodString;
77
+ id: z.ZodString;
78
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
79
+ sandbox: z.ZodBoolean;
80
+ steps: z.ZodArray<z.ZodObject<{
81
+ id: z.ZodString;
82
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
83
+ type: z.ZodString;
84
+ }, "strip", z.ZodTypeAny, {
85
+ id: string;
86
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
87
+ type: string;
88
+ }, {
89
+ id: string;
90
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
91
+ type: string;
92
+ }>, "many">;
93
+ }, "strip", z.ZodTypeAny, {
94
+ id: string;
95
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
96
+ sandbox: boolean;
97
+ alias: string;
98
+ steps: {
99
+ id: string;
100
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
101
+ type: string;
102
+ }[];
103
+ }, {
104
+ id: string;
105
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
106
+ sandbox: boolean;
107
+ alias: string;
108
+ steps: {
109
+ id: string;
110
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
111
+ type: string;
112
+ }[];
113
+ }>;
114
+ }, "strip", z.ZodTypeAny, {
115
+ app: {
116
+ id: string;
117
+ name: string;
118
+ };
119
+ session: {
120
+ id: string;
121
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
122
+ sandbox: boolean;
123
+ alias: string;
124
+ steps: {
125
+ id: string;
126
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
127
+ type: string;
128
+ }[];
129
+ };
130
+ }, {
131
+ app: {
132
+ id: string;
133
+ name: string;
134
+ };
135
+ session: {
136
+ id: string;
137
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
138
+ sandbox: boolean;
139
+ alias: string;
140
+ steps: {
141
+ id: string;
142
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
143
+ type: string;
144
+ }[];
145
+ };
146
+ }>;
147
+ export type Session = z.infer<typeof Session>;
148
+ export declare const SessionWithoutSteps: z.ZodObject<{
149
+ app: z.ZodObject<{
150
+ name: z.ZodString;
151
+ id: z.ZodString;
152
+ }, "strip", z.ZodTypeAny, {
153
+ id: string;
154
+ name: string;
155
+ }, {
156
+ id: string;
157
+ name: string;
158
+ }>;
159
+ session: z.ZodObject<Omit<{
160
+ alias: z.ZodString;
161
+ id: z.ZodString;
162
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
163
+ sandbox: z.ZodBoolean;
164
+ steps: z.ZodArray<z.ZodObject<{
165
+ id: z.ZodString;
166
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
167
+ type: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ id: string;
170
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
171
+ type: string;
172
+ }, {
173
+ id: string;
174
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
175
+ type: string;
176
+ }>, "many">;
177
+ }, "steps">, "strip", z.ZodTypeAny, {
178
+ id: string;
179
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
180
+ sandbox: boolean;
181
+ alias: string;
182
+ }, {
183
+ id: string;
184
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
185
+ sandbox: boolean;
186
+ alias: string;
187
+ }>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ app: {
190
+ id: string;
191
+ name: string;
192
+ };
193
+ session: {
194
+ id: string;
195
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
196
+ sandbox: boolean;
197
+ alias: string;
198
+ };
199
+ }, {
200
+ app: {
201
+ id: string;
202
+ name: string;
203
+ };
204
+ session: {
205
+ id: string;
206
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
207
+ sandbox: boolean;
208
+ alias: string;
209
+ };
210
+ }>;
211
+ export type SessionWithoutSteps = z.infer<typeof SessionWithoutSteps>;
212
+ export declare const StepTypes: readonly ["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"];
213
+ export declare const StepType: z.ZodEnum<["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"]>;
214
+ export type StepType = z.infer<typeof StepType>;
215
+ export declare const ReasonCodes: readonly ["FORGED_REJECTION", "DOCUMENT_HIDDEN", "BAD_ENVIRONMENT", "BLACK_WHITE_PICTURE", "BAD_QUALITY", "DOCUMENT_COMPLIANCE", "IDENTITY_DOCUMENT_EXPIRED", "DOCUMENT_INVALID_FRONT_SIDE", "DOCUMENT_INVALID_BACK_SIDE", "IDENTITY_DOCUMENT_DOB_DATE_MINOR", "RESTRICTED_NATIONALITY_TYPE", "DUPLICATE_USER", ""];
216
+ export declare const ReasonCode: z.ZodEnum<["FORGED_REJECTION", "DOCUMENT_HIDDEN", "BAD_ENVIRONMENT", "BLACK_WHITE_PICTURE", "BAD_QUALITY", "DOCUMENT_COMPLIANCE", "IDENTITY_DOCUMENT_EXPIRED", "DOCUMENT_INVALID_FRONT_SIDE", "DOCUMENT_INVALID_BACK_SIDE", "IDENTITY_DOCUMENT_DOB_DATE_MINOR", "RESTRICTED_NATIONALITY_TYPE", "DUPLICATE_USER", ""]>;
217
+ export type ReasonCode = z.infer<typeof ReasonCode>;
218
+ export declare const File: z.ZodObject<{
219
+ url: z.ZodString;
220
+ type: z.ZodString;
221
+ size: z.ZodNumber;
222
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ type: string;
225
+ url: string;
226
+ size: number;
227
+ base64?: string | null | undefined;
228
+ }, {
229
+ type: string;
230
+ url: string;
231
+ size: number;
232
+ base64?: string | null | undefined;
233
+ }>;
234
+ export type File = z.infer<typeof File>;
235
+ export declare const DocumentIdTypes: readonly ["PASSPORT", "NATIONAL_ID", "DRIVER_LICENSE", "RESIDENT_PERMIT", ""];
236
+ export declare const DocumentIdType: z.ZodEnum<["PASSPORT", "NATIONAL_ID", "DRIVER_LICENSE", "RESIDENT_PERMIT", ""]>;
237
+ export type DocumentIdType = z.infer<typeof DocumentIdType>;
238
+ export declare const DocumentIdMetadata: z.ZodObject<{
239
+ country: z.ZodString;
240
+ type: z.ZodEnum<["PASSPORT", "NATIONAL_ID", "DRIVER_LICENSE", "RESIDENT_PERMIT", ""]>;
241
+ fields: z.ZodObject<{
242
+ firstname: z.ZodString;
243
+ lastname: z.ZodString;
244
+ birth_date: z.ZodString;
245
+ document_expiration: z.ZodString;
246
+ document_number: z.ZodString;
247
+ nationality: z.ZodString;
248
+ }, "strip", z.ZodTypeAny, {
249
+ firstname: string;
250
+ lastname: string;
251
+ birth_date: string;
252
+ document_expiration: string;
253
+ document_number: string;
254
+ nationality: string;
255
+ }, {
256
+ firstname: string;
257
+ lastname: string;
258
+ birth_date: string;
259
+ document_expiration: string;
260
+ document_number: string;
261
+ nationality: string;
262
+ }>;
263
+ files: z.ZodObject<{
264
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
265
+ url: z.ZodString;
266
+ type: z.ZodString;
267
+ size: z.ZodNumber;
268
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
269
+ }, "strip", z.ZodTypeAny, {
270
+ type: string;
271
+ url: string;
272
+ size: number;
273
+ base64?: string | null | undefined;
274
+ }, {
275
+ type: string;
276
+ url: string;
277
+ size: number;
278
+ base64?: string | null | undefined;
279
+ }>>>;
280
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
281
+ url: z.ZodString;
282
+ type: z.ZodString;
283
+ size: z.ZodNumber;
284
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ type: string;
287
+ url: string;
288
+ size: number;
289
+ base64?: string | null | undefined;
290
+ }, {
291
+ type: string;
292
+ url: string;
293
+ size: number;
294
+ base64?: string | null | undefined;
295
+ }>>>;
296
+ face: z.ZodOptional<z.ZodNullable<z.ZodObject<{
297
+ url: z.ZodString;
298
+ type: z.ZodString;
299
+ size: z.ZodNumber;
300
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ type: string;
303
+ url: string;
304
+ size: number;
305
+ base64?: string | null | undefined;
306
+ }, {
307
+ type: string;
308
+ url: string;
309
+ size: number;
310
+ base64?: string | null | undefined;
311
+ }>>>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ front?: {
314
+ type: string;
315
+ url: string;
316
+ size: number;
317
+ base64?: string | null | undefined;
318
+ } | null | undefined;
319
+ back?: {
320
+ type: string;
321
+ url: string;
322
+ size: number;
323
+ base64?: string | null | undefined;
324
+ } | null | undefined;
325
+ face?: {
326
+ type: string;
327
+ url: string;
328
+ size: number;
329
+ base64?: string | null | undefined;
330
+ } | null | undefined;
331
+ }, {
332
+ front?: {
333
+ type: string;
334
+ url: string;
335
+ size: number;
336
+ base64?: string | null | undefined;
337
+ } | null | undefined;
338
+ back?: {
339
+ type: string;
340
+ url: string;
341
+ size: number;
342
+ base64?: string | null | undefined;
343
+ } | null | undefined;
344
+ face?: {
345
+ type: string;
346
+ url: string;
347
+ size: number;
348
+ base64?: string | null | undefined;
349
+ } | null | undefined;
350
+ }>;
351
+ original_files: z.ZodObject<{
352
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
353
+ url: z.ZodString;
354
+ type: z.ZodString;
355
+ size: z.ZodNumber;
356
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ type: string;
359
+ url: string;
360
+ size: number;
361
+ base64?: string | null | undefined;
362
+ }, {
363
+ type: string;
364
+ url: string;
365
+ size: number;
366
+ base64?: string | null | undefined;
367
+ }>>>;
368
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
369
+ url: z.ZodString;
370
+ type: z.ZodString;
371
+ size: z.ZodNumber;
372
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
373
+ }, "strip", z.ZodTypeAny, {
374
+ type: string;
375
+ url: string;
376
+ size: number;
377
+ base64?: string | null | undefined;
378
+ }, {
379
+ type: string;
380
+ url: string;
381
+ size: number;
382
+ base64?: string | null | undefined;
383
+ }>>>;
384
+ }, "strip", z.ZodTypeAny, {
385
+ front?: {
386
+ type: string;
387
+ url: string;
388
+ size: number;
389
+ base64?: string | null | undefined;
390
+ } | null | undefined;
391
+ back?: {
392
+ type: string;
393
+ url: string;
394
+ size: number;
395
+ base64?: string | null | undefined;
396
+ } | null | undefined;
397
+ }, {
398
+ front?: {
399
+ type: string;
400
+ url: string;
401
+ size: number;
402
+ base64?: string | null | undefined;
403
+ } | null | undefined;
404
+ back?: {
405
+ type: string;
406
+ url: string;
407
+ size: number;
408
+ base64?: string | null | undefined;
409
+ } | null | undefined;
410
+ }>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
413
+ country: string;
414
+ fields: {
415
+ firstname: string;
416
+ lastname: string;
417
+ birth_date: string;
418
+ document_expiration: string;
419
+ document_number: string;
420
+ nationality: string;
421
+ };
422
+ files: {
423
+ front?: {
424
+ type: string;
425
+ url: string;
426
+ size: number;
427
+ base64?: string | null | undefined;
428
+ } | null | undefined;
429
+ back?: {
430
+ type: string;
431
+ url: string;
432
+ size: number;
433
+ base64?: string | null | undefined;
434
+ } | null | undefined;
435
+ face?: {
436
+ type: string;
437
+ url: string;
438
+ size: number;
439
+ base64?: string | null | undefined;
440
+ } | null | undefined;
441
+ };
442
+ original_files: {
443
+ front?: {
444
+ type: string;
445
+ url: string;
446
+ size: number;
447
+ base64?: string | null | undefined;
448
+ } | null | undefined;
449
+ back?: {
450
+ type: string;
451
+ url: string;
452
+ size: number;
453
+ base64?: string | null | undefined;
454
+ } | null | undefined;
455
+ };
456
+ }, {
457
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
458
+ country: string;
459
+ fields: {
460
+ firstname: string;
461
+ lastname: string;
462
+ birth_date: string;
463
+ document_expiration: string;
464
+ document_number: string;
465
+ nationality: string;
466
+ };
467
+ files: {
468
+ front?: {
469
+ type: string;
470
+ url: string;
471
+ size: number;
472
+ base64?: string | null | undefined;
473
+ } | null | undefined;
474
+ back?: {
475
+ type: string;
476
+ url: string;
477
+ size: number;
478
+ base64?: string | null | undefined;
479
+ } | null | undefined;
480
+ face?: {
481
+ type: string;
482
+ url: string;
483
+ size: number;
484
+ base64?: string | null | undefined;
485
+ } | null | undefined;
486
+ };
487
+ original_files: {
488
+ front?: {
489
+ type: string;
490
+ url: string;
491
+ size: number;
492
+ base64?: string | null | undefined;
493
+ } | null | undefined;
494
+ back?: {
495
+ type: string;
496
+ url: string;
497
+ size: number;
498
+ base64?: string | null | undefined;
499
+ } | null | undefined;
500
+ };
501
+ }>;
502
+ export declare const ProofOfAddressDocumentTypes: readonly ["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"];
503
+ export declare const ProofOfAddressDocumentType: z.ZodEnum<["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"]>;
504
+ export type ProofOfAddressDocumentType = z.infer<typeof ProofOfAddressDocumentType>;
505
+ export declare const ProofOfAddressMetadata: z.ZodObject<{
506
+ country: z.ZodString;
507
+ type: z.ZodEnum<["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"]>;
508
+ host_id_document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
509
+ files: z.ZodObject<{
510
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
511
+ url: z.ZodString;
512
+ type: z.ZodString;
513
+ size: z.ZodNumber;
514
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
515
+ }, "strip", z.ZodTypeAny, {
516
+ type: string;
517
+ url: string;
518
+ size: number;
519
+ base64?: string | null | undefined;
520
+ }, {
521
+ type: string;
522
+ url: string;
523
+ size: number;
524
+ base64?: string | null | undefined;
525
+ }>>>;
526
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
527
+ url: z.ZodString;
528
+ type: z.ZodString;
529
+ size: z.ZodNumber;
530
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: string;
533
+ url: string;
534
+ size: number;
535
+ base64?: string | null | undefined;
536
+ }, {
537
+ type: string;
538
+ url: string;
539
+ size: number;
540
+ base64?: string | null | undefined;
541
+ }>>>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ proof?: {
544
+ type: string;
545
+ url: string;
546
+ size: number;
547
+ base64?: string | null | undefined;
548
+ } | null | undefined;
549
+ accomodation?: {
550
+ type: string;
551
+ url: string;
552
+ size: number;
553
+ base64?: string | null | undefined;
554
+ } | null | undefined;
555
+ }, {
556
+ proof?: {
557
+ type: string;
558
+ url: string;
559
+ size: number;
560
+ base64?: string | null | undefined;
561
+ } | null | undefined;
562
+ accomodation?: {
563
+ type: string;
564
+ url: string;
565
+ size: number;
566
+ base64?: string | null | undefined;
567
+ } | null | undefined;
568
+ }>;
569
+ original_files: z.ZodObject<{
570
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
571
+ url: z.ZodString;
572
+ type: z.ZodString;
573
+ size: z.ZodNumber;
574
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ type: string;
577
+ url: string;
578
+ size: number;
579
+ base64?: string | null | undefined;
580
+ }, {
581
+ type: string;
582
+ url: string;
583
+ size: number;
584
+ base64?: string | null | undefined;
585
+ }>>>;
586
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
587
+ url: z.ZodString;
588
+ type: z.ZodString;
589
+ size: z.ZodNumber;
590
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ type: string;
593
+ url: string;
594
+ size: number;
595
+ base64?: string | null | undefined;
596
+ }, {
597
+ type: string;
598
+ url: string;
599
+ size: number;
600
+ base64?: string | null | undefined;
601
+ }>>>;
602
+ }, "strip", z.ZodTypeAny, {
603
+ proof?: {
604
+ type: string;
605
+ url: string;
606
+ size: number;
607
+ base64?: string | null | undefined;
608
+ } | null | undefined;
609
+ accomodation?: {
610
+ type: string;
611
+ url: string;
612
+ size: number;
613
+ base64?: string | null | undefined;
614
+ } | null | undefined;
615
+ }, {
616
+ proof?: {
617
+ type: string;
618
+ url: string;
619
+ size: number;
620
+ base64?: string | null | undefined;
621
+ } | null | undefined;
622
+ accomodation?: {
623
+ type: string;
624
+ url: string;
625
+ size: number;
626
+ base64?: string | null | undefined;
627
+ } | null | undefined;
628
+ }>;
629
+ fields: z.ZodObject<{
630
+ address: z.ZodString;
631
+ city: z.ZodString;
632
+ zipcode: z.ZodString;
633
+ issuing_date: z.ZodString;
634
+ }, "strip", z.ZodTypeAny, {
635
+ city: string;
636
+ address: string;
637
+ zipcode: string;
638
+ issuing_date: string;
639
+ }, {
640
+ city: string;
641
+ address: string;
642
+ zipcode: string;
643
+ issuing_date: string;
644
+ }>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
647
+ country: string;
648
+ fields: {
649
+ city: string;
650
+ address: string;
651
+ zipcode: string;
652
+ issuing_date: string;
653
+ };
654
+ files: {
655
+ proof?: {
656
+ type: string;
657
+ url: string;
658
+ size: number;
659
+ base64?: string | null | undefined;
660
+ } | null | undefined;
661
+ accomodation?: {
662
+ type: string;
663
+ url: string;
664
+ size: number;
665
+ base64?: string | null | undefined;
666
+ } | null | undefined;
667
+ };
668
+ original_files: {
669
+ proof?: {
670
+ type: string;
671
+ url: string;
672
+ size: number;
673
+ base64?: string | null | undefined;
674
+ } | null | undefined;
675
+ accomodation?: {
676
+ type: string;
677
+ url: string;
678
+ size: number;
679
+ base64?: string | null | undefined;
680
+ } | null | undefined;
681
+ };
682
+ host_id_document: {};
683
+ }, {
684
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
685
+ country: string;
686
+ fields: {
687
+ city: string;
688
+ address: string;
689
+ zipcode: string;
690
+ issuing_date: string;
691
+ };
692
+ files: {
693
+ proof?: {
694
+ type: string;
695
+ url: string;
696
+ size: number;
697
+ base64?: string | null | undefined;
698
+ } | null | undefined;
699
+ accomodation?: {
700
+ type: string;
701
+ url: string;
702
+ size: number;
703
+ base64?: string | null | undefined;
704
+ } | null | undefined;
705
+ };
706
+ original_files: {
707
+ proof?: {
708
+ type: string;
709
+ url: string;
710
+ size: number;
711
+ base64?: string | null | undefined;
712
+ } | null | undefined;
713
+ accomodation?: {
714
+ type: string;
715
+ url: string;
716
+ size: number;
717
+ base64?: string | null | undefined;
718
+ } | null | undefined;
719
+ };
720
+ host_id_document: {};
721
+ }>;
722
+ export type ProofOfAddressMetadata = z.infer<typeof ProofOfAddressMetadata>;
723
+ export declare const LivenessMetadata: z.ZodObject<{
724
+ liveness: z.ZodObject<{
725
+ file: z.ZodObject<{
726
+ url: z.ZodString;
727
+ type: z.ZodString;
728
+ size: z.ZodNumber;
729
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ type: string;
732
+ url: string;
733
+ size: number;
734
+ base64?: string | null | undefined;
735
+ }, {
736
+ type: string;
737
+ url: string;
738
+ size: number;
739
+ base64?: string | null | undefined;
740
+ }>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ file: {
743
+ type: string;
744
+ url: string;
745
+ size: number;
746
+ base64?: string | null | undefined;
747
+ };
748
+ }, {
749
+ file: {
750
+ type: string;
751
+ url: string;
752
+ size: number;
753
+ base64?: string | null | undefined;
754
+ };
755
+ }>;
756
+ }, "strip", z.ZodTypeAny, {
757
+ liveness: {
758
+ file: {
759
+ type: string;
760
+ url: string;
761
+ size: number;
762
+ base64?: string | null | undefined;
763
+ };
764
+ };
765
+ }, {
766
+ liveness: {
767
+ file: {
768
+ type: string;
769
+ url: string;
770
+ size: number;
771
+ base64?: string | null | undefined;
772
+ };
773
+ };
774
+ }>;
775
+ export type LivenessMetadata = z.infer<typeof LivenessMetadata>;
776
+ export declare const PhoneMetadata: z.ZodObject<{
777
+ phone: z.ZodObject<{
778
+ number: z.ZodString;
779
+ calling_code: z.ZodString;
780
+ method: z.ZodString;
781
+ country: z.ZodString;
782
+ }, "strip", z.ZodTypeAny, {
783
+ number: string;
784
+ country: string;
785
+ calling_code: string;
786
+ method: string;
787
+ }, {
788
+ number: string;
789
+ country: string;
790
+ calling_code: string;
791
+ method: string;
792
+ }>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ phone: {
795
+ number: string;
796
+ country: string;
797
+ calling_code: string;
798
+ method: string;
799
+ };
800
+ }, {
801
+ phone: {
802
+ number: string;
803
+ country: string;
804
+ calling_code: string;
805
+ method: string;
806
+ };
807
+ }>;
808
+ export declare const EmailMetadata: z.ZodObject<{
809
+ email: z.ZodObject<{
810
+ value: z.ZodString;
811
+ }, "strip", z.ZodTypeAny, {
812
+ value: string;
813
+ }, {
814
+ value: string;
815
+ }>;
816
+ }, "strip", z.ZodTypeAny, {
817
+ email: {
818
+ value: string;
819
+ };
820
+ }, {
821
+ email: {
822
+ value: string;
823
+ };
824
+ }>;
825
+ export declare const AMLMetadata: z.ZodObject<{
826
+ aml: z.ZodObject<{
827
+ customer_info: z.ZodObject<{
828
+ firstname: z.ZodString;
829
+ lastname: z.ZodString;
830
+ birth_date: z.ZodString;
831
+ nationality: z.ZodString;
832
+ country: z.ZodString;
833
+ }, "strip", z.ZodTypeAny, {
834
+ country: string;
835
+ firstname: string;
836
+ lastname: string;
837
+ birth_date: string;
838
+ nationality: string;
839
+ }, {
840
+ country: string;
841
+ firstname: string;
842
+ lastname: string;
843
+ birth_date: string;
844
+ nationality: string;
845
+ }>;
846
+ hits: z.ZodArray<z.ZodObject<{
847
+ fields: z.ZodArray<z.ZodUnknown, "many">;
848
+ aliases: z.ZodArray<z.ZodString, "many">;
849
+ media: z.ZodArray<z.ZodObject<{
850
+ date: z.ZodString;
851
+ snippet: z.ZodString;
852
+ title: z.ZodString;
853
+ url: z.ZodString;
854
+ }, "strip", z.ZodTypeAny, {
855
+ date: string;
856
+ title: string;
857
+ url: string;
858
+ snippet: string;
859
+ }, {
860
+ date: string;
861
+ title: string;
862
+ url: string;
863
+ snippet: string;
864
+ }>, "many">;
865
+ info: z.ZodObject<{
866
+ full_name: z.ZodString;
867
+ birth_date: z.ZodString;
868
+ nationality: z.ZodString;
869
+ }, "strip", z.ZodTypeAny, {
870
+ birth_date: string;
871
+ nationality: string;
872
+ full_name: string;
873
+ }, {
874
+ birth_date: string;
875
+ nationality: string;
876
+ full_name: string;
877
+ }>;
878
+ type: z.ZodArray<z.ZodString, "many">;
879
+ }, "strip", z.ZodTypeAny, {
880
+ type: string[];
881
+ fields: unknown[];
882
+ media: {
883
+ date: string;
884
+ title: string;
885
+ url: string;
886
+ snippet: string;
887
+ }[];
888
+ aliases: string[];
889
+ info: {
890
+ birth_date: string;
891
+ nationality: string;
892
+ full_name: string;
893
+ };
894
+ }, {
895
+ type: string[];
896
+ fields: unknown[];
897
+ media: {
898
+ date: string;
899
+ title: string;
900
+ url: string;
901
+ snippet: string;
902
+ }[];
903
+ aliases: string[];
904
+ info: {
905
+ birth_date: string;
906
+ nationality: string;
907
+ full_name: string;
908
+ };
909
+ }>, "many">;
910
+ total_hits: z.ZodNumber;
911
+ action_required: z.ZodBoolean;
912
+ monitored: z.ZodBoolean;
913
+ }, "strip", z.ZodTypeAny, {
914
+ total_hits: number;
915
+ hits: {
916
+ type: string[];
917
+ fields: unknown[];
918
+ media: {
919
+ date: string;
920
+ title: string;
921
+ url: string;
922
+ snippet: string;
923
+ }[];
924
+ aliases: string[];
925
+ info: {
926
+ birth_date: string;
927
+ nationality: string;
928
+ full_name: string;
929
+ };
930
+ }[];
931
+ customer_info: {
932
+ country: string;
933
+ firstname: string;
934
+ lastname: string;
935
+ birth_date: string;
936
+ nationality: string;
937
+ };
938
+ action_required: boolean;
939
+ monitored: boolean;
940
+ }, {
941
+ total_hits: number;
942
+ hits: {
943
+ type: string[];
944
+ fields: unknown[];
945
+ media: {
946
+ date: string;
947
+ title: string;
948
+ url: string;
949
+ snippet: string;
950
+ }[];
951
+ aliases: string[];
952
+ info: {
953
+ birth_date: string;
954
+ nationality: string;
955
+ full_name: string;
956
+ };
957
+ }[];
958
+ customer_info: {
959
+ country: string;
960
+ firstname: string;
961
+ lastname: string;
962
+ birth_date: string;
963
+ nationality: string;
964
+ };
965
+ action_required: boolean;
966
+ monitored: boolean;
967
+ }>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ aml: {
970
+ total_hits: number;
971
+ hits: {
972
+ type: string[];
973
+ fields: unknown[];
974
+ media: {
975
+ date: string;
976
+ title: string;
977
+ url: string;
978
+ snippet: string;
979
+ }[];
980
+ aliases: string[];
981
+ info: {
982
+ birth_date: string;
983
+ nationality: string;
984
+ full_name: string;
985
+ };
986
+ }[];
987
+ customer_info: {
988
+ country: string;
989
+ firstname: string;
990
+ lastname: string;
991
+ birth_date: string;
992
+ nationality: string;
993
+ };
994
+ action_required: boolean;
995
+ monitored: boolean;
996
+ };
997
+ }, {
998
+ aml: {
999
+ total_hits: number;
1000
+ hits: {
1001
+ type: string[];
1002
+ fields: unknown[];
1003
+ media: {
1004
+ date: string;
1005
+ title: string;
1006
+ url: string;
1007
+ snippet: string;
1008
+ }[];
1009
+ aliases: string[];
1010
+ info: {
1011
+ birth_date: string;
1012
+ nationality: string;
1013
+ full_name: string;
1014
+ };
1015
+ }[];
1016
+ customer_info: {
1017
+ country: string;
1018
+ firstname: string;
1019
+ lastname: string;
1020
+ birth_date: string;
1021
+ nationality: string;
1022
+ };
1023
+ action_required: boolean;
1024
+ monitored: boolean;
1025
+ };
1026
+ }>;
1027
+ export declare const Step: z.ZodObject<{
1028
+ id: z.ZodString;
1029
+ type: z.ZodEnum<["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"]>;
1030
+ metadata: z.ZodObject<{
1031
+ ip: z.ZodString;
1032
+ user_agent: z.ZodString;
1033
+ platform: z.ZodString;
1034
+ browser_name: z.ZodString;
1035
+ browser_version: z.ZodString;
1036
+ device: z.ZodString;
1037
+ customer_language: z.ZodString;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ ip: string;
1040
+ user_agent: string;
1041
+ platform: string;
1042
+ browser_name: string;
1043
+ browser_version: string;
1044
+ device: string;
1045
+ customer_language: string;
1046
+ }, {
1047
+ ip: string;
1048
+ user_agent: string;
1049
+ platform: string;
1050
+ browser_name: string;
1051
+ browser_version: string;
1052
+ device: string;
1053
+ customer_language: string;
1054
+ }>;
1055
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
1056
+ reason: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1057
+ code: z.ZodEnum<["FORGED_REJECTION", "DOCUMENT_HIDDEN", "BAD_ENVIRONMENT", "BLACK_WHITE_PICTURE", "BAD_QUALITY", "DOCUMENT_COMPLIANCE", "IDENTITY_DOCUMENT_EXPIRED", "DOCUMENT_INVALID_FRONT_SIDE", "DOCUMENT_INVALID_BACK_SIDE", "IDENTITY_DOCUMENT_DOB_DATE_MINOR", "RESTRICTED_NATIONALITY_TYPE", "DUPLICATE_USER", ""]>;
1058
+ message: z.ZodObject<{
1059
+ original: z.ZodString;
1060
+ translated: z.ZodString;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ original: string;
1063
+ translated: string;
1064
+ }, {
1065
+ original: string;
1066
+ translated: string;
1067
+ }>;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
1070
+ message: {
1071
+ original: string;
1072
+ translated: string;
1073
+ };
1074
+ }, {
1075
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
1076
+ message: {
1077
+ original: string;
1078
+ translated: string;
1079
+ };
1080
+ }>>>;
1081
+ document: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1082
+ country: z.ZodString;
1083
+ type: z.ZodEnum<["PASSPORT", "NATIONAL_ID", "DRIVER_LICENSE", "RESIDENT_PERMIT", ""]>;
1084
+ fields: z.ZodObject<{
1085
+ firstname: z.ZodString;
1086
+ lastname: z.ZodString;
1087
+ birth_date: z.ZodString;
1088
+ document_expiration: z.ZodString;
1089
+ document_number: z.ZodString;
1090
+ nationality: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ firstname: string;
1093
+ lastname: string;
1094
+ birth_date: string;
1095
+ document_expiration: string;
1096
+ document_number: string;
1097
+ nationality: string;
1098
+ }, {
1099
+ firstname: string;
1100
+ lastname: string;
1101
+ birth_date: string;
1102
+ document_expiration: string;
1103
+ document_number: string;
1104
+ nationality: string;
1105
+ }>;
1106
+ files: z.ZodObject<{
1107
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1108
+ url: z.ZodString;
1109
+ type: z.ZodString;
1110
+ size: z.ZodNumber;
1111
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1112
+ }, "strip", z.ZodTypeAny, {
1113
+ type: string;
1114
+ url: string;
1115
+ size: number;
1116
+ base64?: string | null | undefined;
1117
+ }, {
1118
+ type: string;
1119
+ url: string;
1120
+ size: number;
1121
+ base64?: string | null | undefined;
1122
+ }>>>;
1123
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1124
+ url: z.ZodString;
1125
+ type: z.ZodString;
1126
+ size: z.ZodNumber;
1127
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1128
+ }, "strip", z.ZodTypeAny, {
1129
+ type: string;
1130
+ url: string;
1131
+ size: number;
1132
+ base64?: string | null | undefined;
1133
+ }, {
1134
+ type: string;
1135
+ url: string;
1136
+ size: number;
1137
+ base64?: string | null | undefined;
1138
+ }>>>;
1139
+ face: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1140
+ url: z.ZodString;
1141
+ type: z.ZodString;
1142
+ size: z.ZodNumber;
1143
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ type: string;
1146
+ url: string;
1147
+ size: number;
1148
+ base64?: string | null | undefined;
1149
+ }, {
1150
+ type: string;
1151
+ url: string;
1152
+ size: number;
1153
+ base64?: string | null | undefined;
1154
+ }>>>;
1155
+ }, "strip", z.ZodTypeAny, {
1156
+ front?: {
1157
+ type: string;
1158
+ url: string;
1159
+ size: number;
1160
+ base64?: string | null | undefined;
1161
+ } | null | undefined;
1162
+ back?: {
1163
+ type: string;
1164
+ url: string;
1165
+ size: number;
1166
+ base64?: string | null | undefined;
1167
+ } | null | undefined;
1168
+ face?: {
1169
+ type: string;
1170
+ url: string;
1171
+ size: number;
1172
+ base64?: string | null | undefined;
1173
+ } | null | undefined;
1174
+ }, {
1175
+ front?: {
1176
+ type: string;
1177
+ url: string;
1178
+ size: number;
1179
+ base64?: string | null | undefined;
1180
+ } | null | undefined;
1181
+ back?: {
1182
+ type: string;
1183
+ url: string;
1184
+ size: number;
1185
+ base64?: string | null | undefined;
1186
+ } | null | undefined;
1187
+ face?: {
1188
+ type: string;
1189
+ url: string;
1190
+ size: number;
1191
+ base64?: string | null | undefined;
1192
+ } | null | undefined;
1193
+ }>;
1194
+ original_files: z.ZodObject<{
1195
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1196
+ url: z.ZodString;
1197
+ type: z.ZodString;
1198
+ size: z.ZodNumber;
1199
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ type: string;
1202
+ url: string;
1203
+ size: number;
1204
+ base64?: string | null | undefined;
1205
+ }, {
1206
+ type: string;
1207
+ url: string;
1208
+ size: number;
1209
+ base64?: string | null | undefined;
1210
+ }>>>;
1211
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1212
+ url: z.ZodString;
1213
+ type: z.ZodString;
1214
+ size: z.ZodNumber;
1215
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ type: string;
1218
+ url: string;
1219
+ size: number;
1220
+ base64?: string | null | undefined;
1221
+ }, {
1222
+ type: string;
1223
+ url: string;
1224
+ size: number;
1225
+ base64?: string | null | undefined;
1226
+ }>>>;
1227
+ }, "strip", z.ZodTypeAny, {
1228
+ front?: {
1229
+ type: string;
1230
+ url: string;
1231
+ size: number;
1232
+ base64?: string | null | undefined;
1233
+ } | null | undefined;
1234
+ back?: {
1235
+ type: string;
1236
+ url: string;
1237
+ size: number;
1238
+ base64?: string | null | undefined;
1239
+ } | null | undefined;
1240
+ }, {
1241
+ front?: {
1242
+ type: string;
1243
+ url: string;
1244
+ size: number;
1245
+ base64?: string | null | undefined;
1246
+ } | null | undefined;
1247
+ back?: {
1248
+ type: string;
1249
+ url: string;
1250
+ size: number;
1251
+ base64?: string | null | undefined;
1252
+ } | null | undefined;
1253
+ }>;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
1256
+ country: string;
1257
+ fields: {
1258
+ firstname: string;
1259
+ lastname: string;
1260
+ birth_date: string;
1261
+ document_expiration: string;
1262
+ document_number: string;
1263
+ nationality: string;
1264
+ };
1265
+ files: {
1266
+ front?: {
1267
+ type: string;
1268
+ url: string;
1269
+ size: number;
1270
+ base64?: string | null | undefined;
1271
+ } | null | undefined;
1272
+ back?: {
1273
+ type: string;
1274
+ url: string;
1275
+ size: number;
1276
+ base64?: string | null | undefined;
1277
+ } | null | undefined;
1278
+ face?: {
1279
+ type: string;
1280
+ url: string;
1281
+ size: number;
1282
+ base64?: string | null | undefined;
1283
+ } | null | undefined;
1284
+ };
1285
+ original_files: {
1286
+ front?: {
1287
+ type: string;
1288
+ url: string;
1289
+ size: number;
1290
+ base64?: string | null | undefined;
1291
+ } | null | undefined;
1292
+ back?: {
1293
+ type: string;
1294
+ url: string;
1295
+ size: number;
1296
+ base64?: string | null | undefined;
1297
+ } | null | undefined;
1298
+ };
1299
+ }, {
1300
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
1301
+ country: string;
1302
+ fields: {
1303
+ firstname: string;
1304
+ lastname: string;
1305
+ birth_date: string;
1306
+ document_expiration: string;
1307
+ document_number: string;
1308
+ nationality: string;
1309
+ };
1310
+ files: {
1311
+ front?: {
1312
+ type: string;
1313
+ url: string;
1314
+ size: number;
1315
+ base64?: string | null | undefined;
1316
+ } | null | undefined;
1317
+ back?: {
1318
+ type: string;
1319
+ url: string;
1320
+ size: number;
1321
+ base64?: string | null | undefined;
1322
+ } | null | undefined;
1323
+ face?: {
1324
+ type: string;
1325
+ url: string;
1326
+ size: number;
1327
+ base64?: string | null | undefined;
1328
+ } | null | undefined;
1329
+ };
1330
+ original_files: {
1331
+ front?: {
1332
+ type: string;
1333
+ url: string;
1334
+ size: number;
1335
+ base64?: string | null | undefined;
1336
+ } | null | undefined;
1337
+ back?: {
1338
+ type: string;
1339
+ url: string;
1340
+ size: number;
1341
+ base64?: string | null | undefined;
1342
+ } | null | undefined;
1343
+ };
1344
+ }>, z.ZodObject<{
1345
+ country: z.ZodString;
1346
+ type: z.ZodEnum<["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"]>;
1347
+ host_id_document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1348
+ files: z.ZodObject<{
1349
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1350
+ url: z.ZodString;
1351
+ type: z.ZodString;
1352
+ size: z.ZodNumber;
1353
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ type: string;
1356
+ url: string;
1357
+ size: number;
1358
+ base64?: string | null | undefined;
1359
+ }, {
1360
+ type: string;
1361
+ url: string;
1362
+ size: number;
1363
+ base64?: string | null | undefined;
1364
+ }>>>;
1365
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1366
+ url: z.ZodString;
1367
+ type: z.ZodString;
1368
+ size: z.ZodNumber;
1369
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ type: string;
1372
+ url: string;
1373
+ size: number;
1374
+ base64?: string | null | undefined;
1375
+ }, {
1376
+ type: string;
1377
+ url: string;
1378
+ size: number;
1379
+ base64?: string | null | undefined;
1380
+ }>>>;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ proof?: {
1383
+ type: string;
1384
+ url: string;
1385
+ size: number;
1386
+ base64?: string | null | undefined;
1387
+ } | null | undefined;
1388
+ accomodation?: {
1389
+ type: string;
1390
+ url: string;
1391
+ size: number;
1392
+ base64?: string | null | undefined;
1393
+ } | null | undefined;
1394
+ }, {
1395
+ proof?: {
1396
+ type: string;
1397
+ url: string;
1398
+ size: number;
1399
+ base64?: string | null | undefined;
1400
+ } | null | undefined;
1401
+ accomodation?: {
1402
+ type: string;
1403
+ url: string;
1404
+ size: number;
1405
+ base64?: string | null | undefined;
1406
+ } | null | undefined;
1407
+ }>;
1408
+ original_files: z.ZodObject<{
1409
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1410
+ url: z.ZodString;
1411
+ type: z.ZodString;
1412
+ size: z.ZodNumber;
1413
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ type: string;
1416
+ url: string;
1417
+ size: number;
1418
+ base64?: string | null | undefined;
1419
+ }, {
1420
+ type: string;
1421
+ url: string;
1422
+ size: number;
1423
+ base64?: string | null | undefined;
1424
+ }>>>;
1425
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1426
+ url: z.ZodString;
1427
+ type: z.ZodString;
1428
+ size: z.ZodNumber;
1429
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1430
+ }, "strip", z.ZodTypeAny, {
1431
+ type: string;
1432
+ url: string;
1433
+ size: number;
1434
+ base64?: string | null | undefined;
1435
+ }, {
1436
+ type: string;
1437
+ url: string;
1438
+ size: number;
1439
+ base64?: string | null | undefined;
1440
+ }>>>;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ proof?: {
1443
+ type: string;
1444
+ url: string;
1445
+ size: number;
1446
+ base64?: string | null | undefined;
1447
+ } | null | undefined;
1448
+ accomodation?: {
1449
+ type: string;
1450
+ url: string;
1451
+ size: number;
1452
+ base64?: string | null | undefined;
1453
+ } | null | undefined;
1454
+ }, {
1455
+ proof?: {
1456
+ type: string;
1457
+ url: string;
1458
+ size: number;
1459
+ base64?: string | null | undefined;
1460
+ } | null | undefined;
1461
+ accomodation?: {
1462
+ type: string;
1463
+ url: string;
1464
+ size: number;
1465
+ base64?: string | null | undefined;
1466
+ } | null | undefined;
1467
+ }>;
1468
+ fields: z.ZodObject<{
1469
+ address: z.ZodString;
1470
+ city: z.ZodString;
1471
+ zipcode: z.ZodString;
1472
+ issuing_date: z.ZodString;
1473
+ }, "strip", z.ZodTypeAny, {
1474
+ city: string;
1475
+ address: string;
1476
+ zipcode: string;
1477
+ issuing_date: string;
1478
+ }, {
1479
+ city: string;
1480
+ address: string;
1481
+ zipcode: string;
1482
+ issuing_date: string;
1483
+ }>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
1486
+ country: string;
1487
+ fields: {
1488
+ city: string;
1489
+ address: string;
1490
+ zipcode: string;
1491
+ issuing_date: string;
1492
+ };
1493
+ files: {
1494
+ proof?: {
1495
+ type: string;
1496
+ url: string;
1497
+ size: number;
1498
+ base64?: string | null | undefined;
1499
+ } | null | undefined;
1500
+ accomodation?: {
1501
+ type: string;
1502
+ url: string;
1503
+ size: number;
1504
+ base64?: string | null | undefined;
1505
+ } | null | undefined;
1506
+ };
1507
+ original_files: {
1508
+ proof?: {
1509
+ type: string;
1510
+ url: string;
1511
+ size: number;
1512
+ base64?: string | null | undefined;
1513
+ } | null | undefined;
1514
+ accomodation?: {
1515
+ type: string;
1516
+ url: string;
1517
+ size: number;
1518
+ base64?: string | null | undefined;
1519
+ } | null | undefined;
1520
+ };
1521
+ host_id_document: {};
1522
+ }, {
1523
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
1524
+ country: string;
1525
+ fields: {
1526
+ city: string;
1527
+ address: string;
1528
+ zipcode: string;
1529
+ issuing_date: string;
1530
+ };
1531
+ files: {
1532
+ proof?: {
1533
+ type: string;
1534
+ url: string;
1535
+ size: number;
1536
+ base64?: string | null | undefined;
1537
+ } | null | undefined;
1538
+ accomodation?: {
1539
+ type: string;
1540
+ url: string;
1541
+ size: number;
1542
+ base64?: string | null | undefined;
1543
+ } | null | undefined;
1544
+ };
1545
+ original_files: {
1546
+ proof?: {
1547
+ type: string;
1548
+ url: string;
1549
+ size: number;
1550
+ base64?: string | null | undefined;
1551
+ } | null | undefined;
1552
+ accomodation?: {
1553
+ type: string;
1554
+ url: string;
1555
+ size: number;
1556
+ base64?: string | null | undefined;
1557
+ } | null | undefined;
1558
+ };
1559
+ host_id_document: {};
1560
+ }>]>>>;
1561
+ verification: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
1562
+ liveness: z.ZodObject<{
1563
+ file: z.ZodObject<{
1564
+ url: z.ZodString;
1565
+ type: z.ZodString;
1566
+ size: z.ZodNumber;
1567
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ type: string;
1570
+ url: string;
1571
+ size: number;
1572
+ base64?: string | null | undefined;
1573
+ }, {
1574
+ type: string;
1575
+ url: string;
1576
+ size: number;
1577
+ base64?: string | null | undefined;
1578
+ }>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ file: {
1581
+ type: string;
1582
+ url: string;
1583
+ size: number;
1584
+ base64?: string | null | undefined;
1585
+ };
1586
+ }, {
1587
+ file: {
1588
+ type: string;
1589
+ url: string;
1590
+ size: number;
1591
+ base64?: string | null | undefined;
1592
+ };
1593
+ }>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ liveness: {
1596
+ file: {
1597
+ type: string;
1598
+ url: string;
1599
+ size: number;
1600
+ base64?: string | null | undefined;
1601
+ };
1602
+ };
1603
+ }, {
1604
+ liveness: {
1605
+ file: {
1606
+ type: string;
1607
+ url: string;
1608
+ size: number;
1609
+ base64?: string | null | undefined;
1610
+ };
1611
+ };
1612
+ }>, z.ZodObject<{
1613
+ phone: z.ZodObject<{
1614
+ number: z.ZodString;
1615
+ calling_code: z.ZodString;
1616
+ method: z.ZodString;
1617
+ country: z.ZodString;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ number: string;
1620
+ country: string;
1621
+ calling_code: string;
1622
+ method: string;
1623
+ }, {
1624
+ number: string;
1625
+ country: string;
1626
+ calling_code: string;
1627
+ method: string;
1628
+ }>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ phone: {
1631
+ number: string;
1632
+ country: string;
1633
+ calling_code: string;
1634
+ method: string;
1635
+ };
1636
+ }, {
1637
+ phone: {
1638
+ number: string;
1639
+ country: string;
1640
+ calling_code: string;
1641
+ method: string;
1642
+ };
1643
+ }>, z.ZodObject<{
1644
+ email: z.ZodObject<{
1645
+ value: z.ZodString;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ value: string;
1648
+ }, {
1649
+ value: string;
1650
+ }>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ email: {
1653
+ value: string;
1654
+ };
1655
+ }, {
1656
+ email: {
1657
+ value: string;
1658
+ };
1659
+ }>, z.ZodObject<{
1660
+ aml: z.ZodObject<{
1661
+ customer_info: z.ZodObject<{
1662
+ firstname: z.ZodString;
1663
+ lastname: z.ZodString;
1664
+ birth_date: z.ZodString;
1665
+ nationality: z.ZodString;
1666
+ country: z.ZodString;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ country: string;
1669
+ firstname: string;
1670
+ lastname: string;
1671
+ birth_date: string;
1672
+ nationality: string;
1673
+ }, {
1674
+ country: string;
1675
+ firstname: string;
1676
+ lastname: string;
1677
+ birth_date: string;
1678
+ nationality: string;
1679
+ }>;
1680
+ hits: z.ZodArray<z.ZodObject<{
1681
+ fields: z.ZodArray<z.ZodUnknown, "many">;
1682
+ aliases: z.ZodArray<z.ZodString, "many">;
1683
+ media: z.ZodArray<z.ZodObject<{
1684
+ date: z.ZodString;
1685
+ snippet: z.ZodString;
1686
+ title: z.ZodString;
1687
+ url: z.ZodString;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ date: string;
1690
+ title: string;
1691
+ url: string;
1692
+ snippet: string;
1693
+ }, {
1694
+ date: string;
1695
+ title: string;
1696
+ url: string;
1697
+ snippet: string;
1698
+ }>, "many">;
1699
+ info: z.ZodObject<{
1700
+ full_name: z.ZodString;
1701
+ birth_date: z.ZodString;
1702
+ nationality: z.ZodString;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ birth_date: string;
1705
+ nationality: string;
1706
+ full_name: string;
1707
+ }, {
1708
+ birth_date: string;
1709
+ nationality: string;
1710
+ full_name: string;
1711
+ }>;
1712
+ type: z.ZodArray<z.ZodString, "many">;
1713
+ }, "strip", z.ZodTypeAny, {
1714
+ type: string[];
1715
+ fields: unknown[];
1716
+ media: {
1717
+ date: string;
1718
+ title: string;
1719
+ url: string;
1720
+ snippet: string;
1721
+ }[];
1722
+ aliases: string[];
1723
+ info: {
1724
+ birth_date: string;
1725
+ nationality: string;
1726
+ full_name: string;
1727
+ };
1728
+ }, {
1729
+ type: string[];
1730
+ fields: unknown[];
1731
+ media: {
1732
+ date: string;
1733
+ title: string;
1734
+ url: string;
1735
+ snippet: string;
1736
+ }[];
1737
+ aliases: string[];
1738
+ info: {
1739
+ birth_date: string;
1740
+ nationality: string;
1741
+ full_name: string;
1742
+ };
1743
+ }>, "many">;
1744
+ total_hits: z.ZodNumber;
1745
+ action_required: z.ZodBoolean;
1746
+ monitored: z.ZodBoolean;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ total_hits: number;
1749
+ hits: {
1750
+ type: string[];
1751
+ fields: unknown[];
1752
+ media: {
1753
+ date: string;
1754
+ title: string;
1755
+ url: string;
1756
+ snippet: string;
1757
+ }[];
1758
+ aliases: string[];
1759
+ info: {
1760
+ birth_date: string;
1761
+ nationality: string;
1762
+ full_name: string;
1763
+ };
1764
+ }[];
1765
+ customer_info: {
1766
+ country: string;
1767
+ firstname: string;
1768
+ lastname: string;
1769
+ birth_date: string;
1770
+ nationality: string;
1771
+ };
1772
+ action_required: boolean;
1773
+ monitored: boolean;
1774
+ }, {
1775
+ total_hits: number;
1776
+ hits: {
1777
+ type: string[];
1778
+ fields: unknown[];
1779
+ media: {
1780
+ date: string;
1781
+ title: string;
1782
+ url: string;
1783
+ snippet: string;
1784
+ }[];
1785
+ aliases: string[];
1786
+ info: {
1787
+ birth_date: string;
1788
+ nationality: string;
1789
+ full_name: string;
1790
+ };
1791
+ }[];
1792
+ customer_info: {
1793
+ country: string;
1794
+ firstname: string;
1795
+ lastname: string;
1796
+ birth_date: string;
1797
+ nationality: string;
1798
+ };
1799
+ action_required: boolean;
1800
+ monitored: boolean;
1801
+ }>;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ aml: {
1804
+ total_hits: number;
1805
+ hits: {
1806
+ type: string[];
1807
+ fields: unknown[];
1808
+ media: {
1809
+ date: string;
1810
+ title: string;
1811
+ url: string;
1812
+ snippet: string;
1813
+ }[];
1814
+ aliases: string[];
1815
+ info: {
1816
+ birth_date: string;
1817
+ nationality: string;
1818
+ full_name: string;
1819
+ };
1820
+ }[];
1821
+ customer_info: {
1822
+ country: string;
1823
+ firstname: string;
1824
+ lastname: string;
1825
+ birth_date: string;
1826
+ nationality: string;
1827
+ };
1828
+ action_required: boolean;
1829
+ monitored: boolean;
1830
+ };
1831
+ }, {
1832
+ aml: {
1833
+ total_hits: number;
1834
+ hits: {
1835
+ type: string[];
1836
+ fields: unknown[];
1837
+ media: {
1838
+ date: string;
1839
+ title: string;
1840
+ url: string;
1841
+ snippet: string;
1842
+ }[];
1843
+ aliases: string[];
1844
+ info: {
1845
+ birth_date: string;
1846
+ nationality: string;
1847
+ full_name: string;
1848
+ };
1849
+ }[];
1850
+ customer_info: {
1851
+ country: string;
1852
+ firstname: string;
1853
+ lastname: string;
1854
+ birth_date: string;
1855
+ nationality: string;
1856
+ };
1857
+ action_required: boolean;
1858
+ monitored: boolean;
1859
+ };
1860
+ }>]>>>;
1861
+ }, "strip", z.ZodTypeAny, {
1862
+ id: string;
1863
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
1864
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
1865
+ metadata: {
1866
+ ip: string;
1867
+ user_agent: string;
1868
+ platform: string;
1869
+ browser_name: string;
1870
+ browser_version: string;
1871
+ device: string;
1872
+ customer_language: string;
1873
+ };
1874
+ verification?: {
1875
+ liveness: {
1876
+ file: {
1877
+ type: string;
1878
+ url: string;
1879
+ size: number;
1880
+ base64?: string | null | undefined;
1881
+ };
1882
+ };
1883
+ } | {
1884
+ phone: {
1885
+ number: string;
1886
+ country: string;
1887
+ calling_code: string;
1888
+ method: string;
1889
+ };
1890
+ } | {
1891
+ email: {
1892
+ value: string;
1893
+ };
1894
+ } | {
1895
+ aml: {
1896
+ total_hits: number;
1897
+ hits: {
1898
+ type: string[];
1899
+ fields: unknown[];
1900
+ media: {
1901
+ date: string;
1902
+ title: string;
1903
+ url: string;
1904
+ snippet: string;
1905
+ }[];
1906
+ aliases: string[];
1907
+ info: {
1908
+ birth_date: string;
1909
+ nationality: string;
1910
+ full_name: string;
1911
+ };
1912
+ }[];
1913
+ customer_info: {
1914
+ country: string;
1915
+ firstname: string;
1916
+ lastname: string;
1917
+ birth_date: string;
1918
+ nationality: string;
1919
+ };
1920
+ action_required: boolean;
1921
+ monitored: boolean;
1922
+ };
1923
+ } | null | undefined;
1924
+ reason?: {
1925
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
1926
+ message: {
1927
+ original: string;
1928
+ translated: string;
1929
+ };
1930
+ } | null | undefined;
1931
+ document?: {
1932
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
1933
+ country: string;
1934
+ fields: {
1935
+ firstname: string;
1936
+ lastname: string;
1937
+ birth_date: string;
1938
+ document_expiration: string;
1939
+ document_number: string;
1940
+ nationality: string;
1941
+ };
1942
+ files: {
1943
+ front?: {
1944
+ type: string;
1945
+ url: string;
1946
+ size: number;
1947
+ base64?: string | null | undefined;
1948
+ } | null | undefined;
1949
+ back?: {
1950
+ type: string;
1951
+ url: string;
1952
+ size: number;
1953
+ base64?: string | null | undefined;
1954
+ } | null | undefined;
1955
+ face?: {
1956
+ type: string;
1957
+ url: string;
1958
+ size: number;
1959
+ base64?: string | null | undefined;
1960
+ } | null | undefined;
1961
+ };
1962
+ original_files: {
1963
+ front?: {
1964
+ type: string;
1965
+ url: string;
1966
+ size: number;
1967
+ base64?: string | null | undefined;
1968
+ } | null | undefined;
1969
+ back?: {
1970
+ type: string;
1971
+ url: string;
1972
+ size: number;
1973
+ base64?: string | null | undefined;
1974
+ } | null | undefined;
1975
+ };
1976
+ } | {
1977
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
1978
+ country: string;
1979
+ fields: {
1980
+ city: string;
1981
+ address: string;
1982
+ zipcode: string;
1983
+ issuing_date: string;
1984
+ };
1985
+ files: {
1986
+ proof?: {
1987
+ type: string;
1988
+ url: string;
1989
+ size: number;
1990
+ base64?: string | null | undefined;
1991
+ } | null | undefined;
1992
+ accomodation?: {
1993
+ type: string;
1994
+ url: string;
1995
+ size: number;
1996
+ base64?: string | null | undefined;
1997
+ } | null | undefined;
1998
+ };
1999
+ original_files: {
2000
+ proof?: {
2001
+ type: string;
2002
+ url: string;
2003
+ size: number;
2004
+ base64?: string | null | undefined;
2005
+ } | null | undefined;
2006
+ accomodation?: {
2007
+ type: string;
2008
+ url: string;
2009
+ size: number;
2010
+ base64?: string | null | undefined;
2011
+ } | null | undefined;
2012
+ };
2013
+ host_id_document: {};
2014
+ } | null | undefined;
2015
+ }, {
2016
+ id: string;
2017
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2018
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
2019
+ metadata: {
2020
+ ip: string;
2021
+ user_agent: string;
2022
+ platform: string;
2023
+ browser_name: string;
2024
+ browser_version: string;
2025
+ device: string;
2026
+ customer_language: string;
2027
+ };
2028
+ verification?: {
2029
+ liveness: {
2030
+ file: {
2031
+ type: string;
2032
+ url: string;
2033
+ size: number;
2034
+ base64?: string | null | undefined;
2035
+ };
2036
+ };
2037
+ } | {
2038
+ phone: {
2039
+ number: string;
2040
+ country: string;
2041
+ calling_code: string;
2042
+ method: string;
2043
+ };
2044
+ } | {
2045
+ email: {
2046
+ value: string;
2047
+ };
2048
+ } | {
2049
+ aml: {
2050
+ total_hits: number;
2051
+ hits: {
2052
+ type: string[];
2053
+ fields: unknown[];
2054
+ media: {
2055
+ date: string;
2056
+ title: string;
2057
+ url: string;
2058
+ snippet: string;
2059
+ }[];
2060
+ aliases: string[];
2061
+ info: {
2062
+ birth_date: string;
2063
+ nationality: string;
2064
+ full_name: string;
2065
+ };
2066
+ }[];
2067
+ customer_info: {
2068
+ country: string;
2069
+ firstname: string;
2070
+ lastname: string;
2071
+ birth_date: string;
2072
+ nationality: string;
2073
+ };
2074
+ action_required: boolean;
2075
+ monitored: boolean;
2076
+ };
2077
+ } | null | undefined;
2078
+ reason?: {
2079
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
2080
+ message: {
2081
+ original: string;
2082
+ translated: string;
2083
+ };
2084
+ } | null | undefined;
2085
+ document?: {
2086
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
2087
+ country: string;
2088
+ fields: {
2089
+ firstname: string;
2090
+ lastname: string;
2091
+ birth_date: string;
2092
+ document_expiration: string;
2093
+ document_number: string;
2094
+ nationality: string;
2095
+ };
2096
+ files: {
2097
+ front?: {
2098
+ type: string;
2099
+ url: string;
2100
+ size: number;
2101
+ base64?: string | null | undefined;
2102
+ } | null | undefined;
2103
+ back?: {
2104
+ type: string;
2105
+ url: string;
2106
+ size: number;
2107
+ base64?: string | null | undefined;
2108
+ } | null | undefined;
2109
+ face?: {
2110
+ type: string;
2111
+ url: string;
2112
+ size: number;
2113
+ base64?: string | null | undefined;
2114
+ } | null | undefined;
2115
+ };
2116
+ original_files: {
2117
+ front?: {
2118
+ type: string;
2119
+ url: string;
2120
+ size: number;
2121
+ base64?: string | null | undefined;
2122
+ } | null | undefined;
2123
+ back?: {
2124
+ type: string;
2125
+ url: string;
2126
+ size: number;
2127
+ base64?: string | null | undefined;
2128
+ } | null | undefined;
2129
+ };
2130
+ } | {
2131
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
2132
+ country: string;
2133
+ fields: {
2134
+ city: string;
2135
+ address: string;
2136
+ zipcode: string;
2137
+ issuing_date: string;
2138
+ };
2139
+ files: {
2140
+ proof?: {
2141
+ type: string;
2142
+ url: string;
2143
+ size: number;
2144
+ base64?: string | null | undefined;
2145
+ } | null | undefined;
2146
+ accomodation?: {
2147
+ type: string;
2148
+ url: string;
2149
+ size: number;
2150
+ base64?: string | null | undefined;
2151
+ } | null | undefined;
2152
+ };
2153
+ original_files: {
2154
+ proof?: {
2155
+ type: string;
2156
+ url: string;
2157
+ size: number;
2158
+ base64?: string | null | undefined;
2159
+ } | null | undefined;
2160
+ accomodation?: {
2161
+ type: string;
2162
+ url: string;
2163
+ size: number;
2164
+ base64?: string | null | undefined;
2165
+ } | null | undefined;
2166
+ };
2167
+ host_id_document: {};
2168
+ } | null | undefined;
2169
+ }>;
2170
+ export type Step = z.infer<typeof Step>;
2171
+ export declare const SynapsSessionEvent: z.ZodObject<{
2172
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
2173
+ alias: z.ZodString;
2174
+ sandbox: z.ZodBoolean;
2175
+ }, "strip", z.ZodTypeAny, {
2176
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2177
+ sandbox: boolean;
2178
+ alias: string;
2179
+ }, {
2180
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2181
+ sandbox: boolean;
2182
+ alias: string;
2183
+ }>;
2184
+ export type SynapsSessionEvent = z.infer<typeof SynapsSessionEvent>;
2185
+ export declare const SynapsStepEvent: z.ZodObject<{
2186
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
2187
+ type: z.ZodEnum<["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"]>;
2188
+ sandbox: z.ZodBoolean;
2189
+ metadata: z.ZodObject<{
2190
+ ip: z.ZodString;
2191
+ user_agent: z.ZodString;
2192
+ platform: z.ZodString;
2193
+ browser_name: z.ZodString;
2194
+ browser_version: z.ZodString;
2195
+ device: z.ZodString;
2196
+ customer_language: z.ZodString;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ ip: string;
2199
+ user_agent: string;
2200
+ platform: string;
2201
+ browser_name: string;
2202
+ browser_version: string;
2203
+ device: string;
2204
+ customer_language: string;
2205
+ }, {
2206
+ ip: string;
2207
+ user_agent: string;
2208
+ platform: string;
2209
+ browser_name: string;
2210
+ browser_version: string;
2211
+ device: string;
2212
+ customer_language: string;
2213
+ }>;
2214
+ }, "strip", z.ZodTypeAny, {
2215
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2216
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
2217
+ sandbox: boolean;
2218
+ metadata: {
2219
+ ip: string;
2220
+ user_agent: string;
2221
+ platform: string;
2222
+ browser_name: string;
2223
+ browser_version: string;
2224
+ device: string;
2225
+ customer_language: string;
2226
+ };
2227
+ }, {
2228
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2229
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
2230
+ sandbox: boolean;
2231
+ metadata: {
2232
+ ip: string;
2233
+ user_agent: string;
2234
+ platform: string;
2235
+ browser_name: string;
2236
+ browser_version: string;
2237
+ device: string;
2238
+ customer_language: string;
2239
+ };
2240
+ }>;
2241
+ export type SynapsStepEvent = z.infer<typeof SynapsStepEvent>;
2242
+ export declare const typeToHumanReadable: (type: StepType) => string;
2243
+ export declare const SynapsSessionRequest: z.ZodObject<{
2244
+ sessionId: z.ZodString;
2245
+ }, "strip", z.ZodTypeAny, {
2246
+ sessionId: string;
2247
+ }, {
2248
+ sessionId: string;
2249
+ }>;
2250
+ export type SynapsSessionRequest = z.infer<typeof SynapsSessionRequest>;
2251
+ export declare const SESSION_NOT_FOUND: z.ZodObject<{
2252
+ code: z.ZodNumber;
2253
+ message: z.ZodLiteral<"This session is not found">;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ code: number;
2256
+ message: "This session is not found";
2257
+ }, {
2258
+ code: number;
2259
+ message: "This session is not found";
2260
+ }>;
2261
+ export declare const UNKNOWN_ERROR: z.ZodObject<{
2262
+ code: z.ZodLiteral<1>;
2263
+ message: z.ZodLiteral<"Synaps unknown error">;
2264
+ }, "strip", z.ZodTypeAny, {
2265
+ code: 1;
2266
+ message: "Synaps unknown error";
2267
+ }, {
2268
+ code: 1;
2269
+ message: "Synaps unknown error";
2270
+ }>;
2271
+ export declare const RESULT_PARSER_ERROR: z.ZodObject<{
2272
+ code: z.ZodLiteral<2>;
2273
+ message: z.ZodString;
2274
+ data: z.ZodString;
2275
+ }, "strip", z.ZodTypeAny, {
2276
+ code: 2;
2277
+ message: string;
2278
+ data: string;
2279
+ }, {
2280
+ code: 2;
2281
+ message: string;
2282
+ data: string;
2283
+ }>;
2284
+ export declare const SynapsSessionErrorResponse: z.ZodUnion<[z.ZodObject<{
2285
+ code: z.ZodNumber;
2286
+ message: z.ZodLiteral<"This session is not found">;
2287
+ }, "strip", z.ZodTypeAny, {
2288
+ code: number;
2289
+ message: "This session is not found";
2290
+ }, {
2291
+ code: number;
2292
+ message: "This session is not found";
2293
+ }>, z.ZodObject<{
2294
+ code: z.ZodLiteral<1>;
2295
+ message: z.ZodLiteral<"Synaps unknown error">;
2296
+ }, "strip", z.ZodTypeAny, {
2297
+ code: 1;
2298
+ message: "Synaps unknown error";
2299
+ }, {
2300
+ code: 1;
2301
+ message: "Synaps unknown error";
2302
+ }>, z.ZodObject<{
2303
+ code: z.ZodLiteral<2>;
2304
+ message: z.ZodString;
2305
+ data: z.ZodString;
2306
+ }, "strip", z.ZodTypeAny, {
2307
+ code: 2;
2308
+ message: string;
2309
+ data: string;
2310
+ }, {
2311
+ code: 2;
2312
+ message: string;
2313
+ data: string;
2314
+ }>]>;
2315
+ export declare const SynapsSessionResponse: z.ZodUnion<[z.ZodObject<{
2316
+ success: z.ZodLiteral<true>;
2317
+ data: z.ZodObject<{
2318
+ app: z.ZodObject<{
2319
+ name: z.ZodString;
2320
+ id: z.ZodString;
2321
+ }, "strip", z.ZodTypeAny, {
2322
+ id: string;
2323
+ name: string;
2324
+ }, {
2325
+ id: string;
2326
+ name: string;
2327
+ }>;
2328
+ session: z.ZodObject<{
2329
+ alias: z.ZodString;
2330
+ id: z.ZodString;
2331
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
2332
+ sandbox: z.ZodBoolean;
2333
+ steps: z.ZodArray<z.ZodObject<{
2334
+ id: z.ZodString;
2335
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
2336
+ type: z.ZodString;
2337
+ }, "strip", z.ZodTypeAny, {
2338
+ id: string;
2339
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2340
+ type: string;
2341
+ }, {
2342
+ id: string;
2343
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2344
+ type: string;
2345
+ }>, "many">;
2346
+ }, "strip", z.ZodTypeAny, {
2347
+ id: string;
2348
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2349
+ sandbox: boolean;
2350
+ alias: string;
2351
+ steps: {
2352
+ id: string;
2353
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2354
+ type: string;
2355
+ }[];
2356
+ }, {
2357
+ id: string;
2358
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2359
+ sandbox: boolean;
2360
+ alias: string;
2361
+ steps: {
2362
+ id: string;
2363
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2364
+ type: string;
2365
+ }[];
2366
+ }>;
2367
+ }, "strip", z.ZodTypeAny, {
2368
+ app: {
2369
+ id: string;
2370
+ name: string;
2371
+ };
2372
+ session: {
2373
+ id: string;
2374
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2375
+ sandbox: boolean;
2376
+ alias: string;
2377
+ steps: {
2378
+ id: string;
2379
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2380
+ type: string;
2381
+ }[];
2382
+ };
2383
+ }, {
2384
+ app: {
2385
+ id: string;
2386
+ name: string;
2387
+ };
2388
+ session: {
2389
+ id: string;
2390
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2391
+ sandbox: boolean;
2392
+ alias: string;
2393
+ steps: {
2394
+ id: string;
2395
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2396
+ type: string;
2397
+ }[];
2398
+ };
2399
+ }>;
2400
+ }, "strip", z.ZodTypeAny, {
2401
+ data: {
2402
+ app: {
2403
+ id: string;
2404
+ name: string;
2405
+ };
2406
+ session: {
2407
+ id: string;
2408
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2409
+ sandbox: boolean;
2410
+ alias: string;
2411
+ steps: {
2412
+ id: string;
2413
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2414
+ type: string;
2415
+ }[];
2416
+ };
2417
+ };
2418
+ success: true;
2419
+ }, {
2420
+ data: {
2421
+ app: {
2422
+ id: string;
2423
+ name: string;
2424
+ };
2425
+ session: {
2426
+ id: string;
2427
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2428
+ sandbox: boolean;
2429
+ alias: string;
2430
+ steps: {
2431
+ id: string;
2432
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
2433
+ type: string;
2434
+ }[];
2435
+ };
2436
+ };
2437
+ success: true;
2438
+ }>, z.ZodObject<{
2439
+ success: z.ZodLiteral<false>;
2440
+ error: z.ZodUnion<[z.ZodObject<{
2441
+ code: z.ZodNumber;
2442
+ message: z.ZodLiteral<"This session is not found">;
2443
+ }, "strip", z.ZodTypeAny, {
2444
+ code: number;
2445
+ message: "This session is not found";
2446
+ }, {
2447
+ code: number;
2448
+ message: "This session is not found";
2449
+ }>, z.ZodObject<{
2450
+ code: z.ZodLiteral<1>;
2451
+ message: z.ZodLiteral<"Synaps unknown error">;
2452
+ }, "strip", z.ZodTypeAny, {
2453
+ code: 1;
2454
+ message: "Synaps unknown error";
2455
+ }, {
2456
+ code: 1;
2457
+ message: "Synaps unknown error";
2458
+ }>, z.ZodObject<{
2459
+ code: z.ZodLiteral<2>;
2460
+ message: z.ZodString;
2461
+ data: z.ZodString;
2462
+ }, "strip", z.ZodTypeAny, {
2463
+ code: 2;
2464
+ message: string;
2465
+ data: string;
2466
+ }, {
2467
+ code: 2;
2468
+ message: string;
2469
+ data: string;
2470
+ }>]>;
2471
+ }, "strip", z.ZodTypeAny, {
2472
+ error: {
2473
+ code: number;
2474
+ message: "This session is not found";
2475
+ } | {
2476
+ code: 1;
2477
+ message: "Synaps unknown error";
2478
+ } | {
2479
+ code: 2;
2480
+ message: string;
2481
+ data: string;
2482
+ };
2483
+ success: false;
2484
+ }, {
2485
+ error: {
2486
+ code: number;
2487
+ message: "This session is not found";
2488
+ } | {
2489
+ code: 1;
2490
+ message: "Synaps unknown error";
2491
+ } | {
2492
+ code: 2;
2493
+ message: string;
2494
+ data: string;
2495
+ };
2496
+ success: false;
2497
+ }>]>;
2498
+ export type SynapsSessionResponse = z.infer<typeof SynapsSessionResponse>;
2499
+ export declare const SynapsStepRequest: z.ZodObject<{
2500
+ sessionId: z.ZodString;
2501
+ stepId: z.ZodString;
2502
+ }, "strip", z.ZodTypeAny, {
2503
+ sessionId: string;
2504
+ stepId: string;
2505
+ }, {
2506
+ sessionId: string;
2507
+ stepId: string;
2508
+ }>;
2509
+ export type SynapsStepRequest = z.infer<typeof SynapsStepRequest>;
2510
+ export declare const STEP_NOT_FOUND: z.ZodObject<{
2511
+ code: z.ZodNumber;
2512
+ message: z.ZodLiteral<"This step ID is invalid">;
2513
+ }, "strip", z.ZodTypeAny, {
2514
+ code: number;
2515
+ message: "This step ID is invalid";
2516
+ }, {
2517
+ code: number;
2518
+ message: "This step ID is invalid";
2519
+ }>;
2520
+ export declare const SynapsStepErrorResponse: z.ZodUnion<[z.ZodObject<{
2521
+ code: z.ZodNumber;
2522
+ message: z.ZodLiteral<"This step ID is invalid">;
2523
+ }, "strip", z.ZodTypeAny, {
2524
+ code: number;
2525
+ message: "This step ID is invalid";
2526
+ }, {
2527
+ code: number;
2528
+ message: "This step ID is invalid";
2529
+ }>, z.ZodObject<{
2530
+ code: z.ZodLiteral<1>;
2531
+ message: z.ZodLiteral<"Synaps unknown error">;
2532
+ }, "strip", z.ZodTypeAny, {
2533
+ code: 1;
2534
+ message: "Synaps unknown error";
2535
+ }, {
2536
+ code: 1;
2537
+ message: "Synaps unknown error";
2538
+ }>, z.ZodObject<{
2539
+ code: z.ZodLiteral<2>;
2540
+ message: z.ZodString;
2541
+ data: z.ZodString;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ code: 2;
2544
+ message: string;
2545
+ data: string;
2546
+ }, {
2547
+ code: 2;
2548
+ message: string;
2549
+ data: string;
2550
+ }>]>;
2551
+ export declare const SynapsStepResponse: z.ZodUnion<[z.ZodObject<{
2552
+ success: z.ZodLiteral<true>;
2553
+ data: z.ZodObject<{
2554
+ id: z.ZodString;
2555
+ type: z.ZodEnum<["ID_DOCUMENT", "LIVENESS", "PROOF_OF_ADDRESS", "PHONE", "EMAIL"]>;
2556
+ metadata: z.ZodObject<{
2557
+ ip: z.ZodString;
2558
+ user_agent: z.ZodString;
2559
+ platform: z.ZodString;
2560
+ browser_name: z.ZodString;
2561
+ browser_version: z.ZodString;
2562
+ device: z.ZodString;
2563
+ customer_language: z.ZodString;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ ip: string;
2566
+ user_agent: string;
2567
+ platform: string;
2568
+ browser_name: string;
2569
+ browser_version: string;
2570
+ device: string;
2571
+ customer_language: string;
2572
+ }, {
2573
+ ip: string;
2574
+ user_agent: string;
2575
+ platform: string;
2576
+ browser_name: string;
2577
+ browser_version: string;
2578
+ device: string;
2579
+ customer_language: string;
2580
+ }>;
2581
+ status: z.ZodEnum<["APPROVED", "SUBMISSION_REQUIRED", "RESUBMISSION_REQUIRED", "REJECTED", "PENDING_VERIFICATION"]>;
2582
+ reason: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2583
+ code: z.ZodEnum<["FORGED_REJECTION", "DOCUMENT_HIDDEN", "BAD_ENVIRONMENT", "BLACK_WHITE_PICTURE", "BAD_QUALITY", "DOCUMENT_COMPLIANCE", "IDENTITY_DOCUMENT_EXPIRED", "DOCUMENT_INVALID_FRONT_SIDE", "DOCUMENT_INVALID_BACK_SIDE", "IDENTITY_DOCUMENT_DOB_DATE_MINOR", "RESTRICTED_NATIONALITY_TYPE", "DUPLICATE_USER", ""]>;
2584
+ message: z.ZodObject<{
2585
+ original: z.ZodString;
2586
+ translated: z.ZodString;
2587
+ }, "strip", z.ZodTypeAny, {
2588
+ original: string;
2589
+ translated: string;
2590
+ }, {
2591
+ original: string;
2592
+ translated: string;
2593
+ }>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
2596
+ message: {
2597
+ original: string;
2598
+ translated: string;
2599
+ };
2600
+ }, {
2601
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
2602
+ message: {
2603
+ original: string;
2604
+ translated: string;
2605
+ };
2606
+ }>>>;
2607
+ document: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
2608
+ country: z.ZodString;
2609
+ type: z.ZodEnum<["PASSPORT", "NATIONAL_ID", "DRIVER_LICENSE", "RESIDENT_PERMIT", ""]>;
2610
+ fields: z.ZodObject<{
2611
+ firstname: z.ZodString;
2612
+ lastname: z.ZodString;
2613
+ birth_date: z.ZodString;
2614
+ document_expiration: z.ZodString;
2615
+ document_number: z.ZodString;
2616
+ nationality: z.ZodString;
2617
+ }, "strip", z.ZodTypeAny, {
2618
+ firstname: string;
2619
+ lastname: string;
2620
+ birth_date: string;
2621
+ document_expiration: string;
2622
+ document_number: string;
2623
+ nationality: string;
2624
+ }, {
2625
+ firstname: string;
2626
+ lastname: string;
2627
+ birth_date: string;
2628
+ document_expiration: string;
2629
+ document_number: string;
2630
+ nationality: string;
2631
+ }>;
2632
+ files: z.ZodObject<{
2633
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2634
+ url: z.ZodString;
2635
+ type: z.ZodString;
2636
+ size: z.ZodNumber;
2637
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2638
+ }, "strip", z.ZodTypeAny, {
2639
+ type: string;
2640
+ url: string;
2641
+ size: number;
2642
+ base64?: string | null | undefined;
2643
+ }, {
2644
+ type: string;
2645
+ url: string;
2646
+ size: number;
2647
+ base64?: string | null | undefined;
2648
+ }>>>;
2649
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2650
+ url: z.ZodString;
2651
+ type: z.ZodString;
2652
+ size: z.ZodNumber;
2653
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2654
+ }, "strip", z.ZodTypeAny, {
2655
+ type: string;
2656
+ url: string;
2657
+ size: number;
2658
+ base64?: string | null | undefined;
2659
+ }, {
2660
+ type: string;
2661
+ url: string;
2662
+ size: number;
2663
+ base64?: string | null | undefined;
2664
+ }>>>;
2665
+ face: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2666
+ url: z.ZodString;
2667
+ type: z.ZodString;
2668
+ size: z.ZodNumber;
2669
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2670
+ }, "strip", z.ZodTypeAny, {
2671
+ type: string;
2672
+ url: string;
2673
+ size: number;
2674
+ base64?: string | null | undefined;
2675
+ }, {
2676
+ type: string;
2677
+ url: string;
2678
+ size: number;
2679
+ base64?: string | null | undefined;
2680
+ }>>>;
2681
+ }, "strip", z.ZodTypeAny, {
2682
+ front?: {
2683
+ type: string;
2684
+ url: string;
2685
+ size: number;
2686
+ base64?: string | null | undefined;
2687
+ } | null | undefined;
2688
+ back?: {
2689
+ type: string;
2690
+ url: string;
2691
+ size: number;
2692
+ base64?: string | null | undefined;
2693
+ } | null | undefined;
2694
+ face?: {
2695
+ type: string;
2696
+ url: string;
2697
+ size: number;
2698
+ base64?: string | null | undefined;
2699
+ } | null | undefined;
2700
+ }, {
2701
+ front?: {
2702
+ type: string;
2703
+ url: string;
2704
+ size: number;
2705
+ base64?: string | null | undefined;
2706
+ } | null | undefined;
2707
+ back?: {
2708
+ type: string;
2709
+ url: string;
2710
+ size: number;
2711
+ base64?: string | null | undefined;
2712
+ } | null | undefined;
2713
+ face?: {
2714
+ type: string;
2715
+ url: string;
2716
+ size: number;
2717
+ base64?: string | null | undefined;
2718
+ } | null | undefined;
2719
+ }>;
2720
+ original_files: z.ZodObject<{
2721
+ front: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2722
+ url: z.ZodString;
2723
+ type: z.ZodString;
2724
+ size: z.ZodNumber;
2725
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ type: string;
2728
+ url: string;
2729
+ size: number;
2730
+ base64?: string | null | undefined;
2731
+ }, {
2732
+ type: string;
2733
+ url: string;
2734
+ size: number;
2735
+ base64?: string | null | undefined;
2736
+ }>>>;
2737
+ back: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2738
+ url: z.ZodString;
2739
+ type: z.ZodString;
2740
+ size: z.ZodNumber;
2741
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2742
+ }, "strip", z.ZodTypeAny, {
2743
+ type: string;
2744
+ url: string;
2745
+ size: number;
2746
+ base64?: string | null | undefined;
2747
+ }, {
2748
+ type: string;
2749
+ url: string;
2750
+ size: number;
2751
+ base64?: string | null | undefined;
2752
+ }>>>;
2753
+ }, "strip", z.ZodTypeAny, {
2754
+ front?: {
2755
+ type: string;
2756
+ url: string;
2757
+ size: number;
2758
+ base64?: string | null | undefined;
2759
+ } | null | undefined;
2760
+ back?: {
2761
+ type: string;
2762
+ url: string;
2763
+ size: number;
2764
+ base64?: string | null | undefined;
2765
+ } | null | undefined;
2766
+ }, {
2767
+ front?: {
2768
+ type: string;
2769
+ url: string;
2770
+ size: number;
2771
+ base64?: string | null | undefined;
2772
+ } | null | undefined;
2773
+ back?: {
2774
+ type: string;
2775
+ url: string;
2776
+ size: number;
2777
+ base64?: string | null | undefined;
2778
+ } | null | undefined;
2779
+ }>;
2780
+ }, "strip", z.ZodTypeAny, {
2781
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
2782
+ country: string;
2783
+ fields: {
2784
+ firstname: string;
2785
+ lastname: string;
2786
+ birth_date: string;
2787
+ document_expiration: string;
2788
+ document_number: string;
2789
+ nationality: string;
2790
+ };
2791
+ files: {
2792
+ front?: {
2793
+ type: string;
2794
+ url: string;
2795
+ size: number;
2796
+ base64?: string | null | undefined;
2797
+ } | null | undefined;
2798
+ back?: {
2799
+ type: string;
2800
+ url: string;
2801
+ size: number;
2802
+ base64?: string | null | undefined;
2803
+ } | null | undefined;
2804
+ face?: {
2805
+ type: string;
2806
+ url: string;
2807
+ size: number;
2808
+ base64?: string | null | undefined;
2809
+ } | null | undefined;
2810
+ };
2811
+ original_files: {
2812
+ front?: {
2813
+ type: string;
2814
+ url: string;
2815
+ size: number;
2816
+ base64?: string | null | undefined;
2817
+ } | null | undefined;
2818
+ back?: {
2819
+ type: string;
2820
+ url: string;
2821
+ size: number;
2822
+ base64?: string | null | undefined;
2823
+ } | null | undefined;
2824
+ };
2825
+ }, {
2826
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
2827
+ country: string;
2828
+ fields: {
2829
+ firstname: string;
2830
+ lastname: string;
2831
+ birth_date: string;
2832
+ document_expiration: string;
2833
+ document_number: string;
2834
+ nationality: string;
2835
+ };
2836
+ files: {
2837
+ front?: {
2838
+ type: string;
2839
+ url: string;
2840
+ size: number;
2841
+ base64?: string | null | undefined;
2842
+ } | null | undefined;
2843
+ back?: {
2844
+ type: string;
2845
+ url: string;
2846
+ size: number;
2847
+ base64?: string | null | undefined;
2848
+ } | null | undefined;
2849
+ face?: {
2850
+ type: string;
2851
+ url: string;
2852
+ size: number;
2853
+ base64?: string | null | undefined;
2854
+ } | null | undefined;
2855
+ };
2856
+ original_files: {
2857
+ front?: {
2858
+ type: string;
2859
+ url: string;
2860
+ size: number;
2861
+ base64?: string | null | undefined;
2862
+ } | null | undefined;
2863
+ back?: {
2864
+ type: string;
2865
+ url: string;
2866
+ size: number;
2867
+ base64?: string | null | undefined;
2868
+ } | null | undefined;
2869
+ };
2870
+ }>, z.ZodObject<{
2871
+ country: z.ZodString;
2872
+ type: z.ZodEnum<["ELECTRICITY_BILL", "INTERNET_BILL", "LANDLINE_BILL", "WATER_BILL", "GAS_BILL", "BANK_STATEMENT"]>;
2873
+ host_id_document: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2874
+ files: z.ZodObject<{
2875
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2876
+ url: z.ZodString;
2877
+ type: z.ZodString;
2878
+ size: z.ZodNumber;
2879
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2880
+ }, "strip", z.ZodTypeAny, {
2881
+ type: string;
2882
+ url: string;
2883
+ size: number;
2884
+ base64?: string | null | undefined;
2885
+ }, {
2886
+ type: string;
2887
+ url: string;
2888
+ size: number;
2889
+ base64?: string | null | undefined;
2890
+ }>>>;
2891
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2892
+ url: z.ZodString;
2893
+ type: z.ZodString;
2894
+ size: z.ZodNumber;
2895
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2896
+ }, "strip", z.ZodTypeAny, {
2897
+ type: string;
2898
+ url: string;
2899
+ size: number;
2900
+ base64?: string | null | undefined;
2901
+ }, {
2902
+ type: string;
2903
+ url: string;
2904
+ size: number;
2905
+ base64?: string | null | undefined;
2906
+ }>>>;
2907
+ }, "strip", z.ZodTypeAny, {
2908
+ proof?: {
2909
+ type: string;
2910
+ url: string;
2911
+ size: number;
2912
+ base64?: string | null | undefined;
2913
+ } | null | undefined;
2914
+ accomodation?: {
2915
+ type: string;
2916
+ url: string;
2917
+ size: number;
2918
+ base64?: string | null | undefined;
2919
+ } | null | undefined;
2920
+ }, {
2921
+ proof?: {
2922
+ type: string;
2923
+ url: string;
2924
+ size: number;
2925
+ base64?: string | null | undefined;
2926
+ } | null | undefined;
2927
+ accomodation?: {
2928
+ type: string;
2929
+ url: string;
2930
+ size: number;
2931
+ base64?: string | null | undefined;
2932
+ } | null | undefined;
2933
+ }>;
2934
+ original_files: z.ZodObject<{
2935
+ proof: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2936
+ url: z.ZodString;
2937
+ type: z.ZodString;
2938
+ size: z.ZodNumber;
2939
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2940
+ }, "strip", z.ZodTypeAny, {
2941
+ type: string;
2942
+ url: string;
2943
+ size: number;
2944
+ base64?: string | null | undefined;
2945
+ }, {
2946
+ type: string;
2947
+ url: string;
2948
+ size: number;
2949
+ base64?: string | null | undefined;
2950
+ }>>>;
2951
+ accomodation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2952
+ url: z.ZodString;
2953
+ type: z.ZodString;
2954
+ size: z.ZodNumber;
2955
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ type: string;
2958
+ url: string;
2959
+ size: number;
2960
+ base64?: string | null | undefined;
2961
+ }, {
2962
+ type: string;
2963
+ url: string;
2964
+ size: number;
2965
+ base64?: string | null | undefined;
2966
+ }>>>;
2967
+ }, "strip", z.ZodTypeAny, {
2968
+ proof?: {
2969
+ type: string;
2970
+ url: string;
2971
+ size: number;
2972
+ base64?: string | null | undefined;
2973
+ } | null | undefined;
2974
+ accomodation?: {
2975
+ type: string;
2976
+ url: string;
2977
+ size: number;
2978
+ base64?: string | null | undefined;
2979
+ } | null | undefined;
2980
+ }, {
2981
+ proof?: {
2982
+ type: string;
2983
+ url: string;
2984
+ size: number;
2985
+ base64?: string | null | undefined;
2986
+ } | null | undefined;
2987
+ accomodation?: {
2988
+ type: string;
2989
+ url: string;
2990
+ size: number;
2991
+ base64?: string | null | undefined;
2992
+ } | null | undefined;
2993
+ }>;
2994
+ fields: z.ZodObject<{
2995
+ address: z.ZodString;
2996
+ city: z.ZodString;
2997
+ zipcode: z.ZodString;
2998
+ issuing_date: z.ZodString;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ city: string;
3001
+ address: string;
3002
+ zipcode: string;
3003
+ issuing_date: string;
3004
+ }, {
3005
+ city: string;
3006
+ address: string;
3007
+ zipcode: string;
3008
+ issuing_date: string;
3009
+ }>;
3010
+ }, "strip", z.ZodTypeAny, {
3011
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3012
+ country: string;
3013
+ fields: {
3014
+ city: string;
3015
+ address: string;
3016
+ zipcode: string;
3017
+ issuing_date: string;
3018
+ };
3019
+ files: {
3020
+ proof?: {
3021
+ type: string;
3022
+ url: string;
3023
+ size: number;
3024
+ base64?: string | null | undefined;
3025
+ } | null | undefined;
3026
+ accomodation?: {
3027
+ type: string;
3028
+ url: string;
3029
+ size: number;
3030
+ base64?: string | null | undefined;
3031
+ } | null | undefined;
3032
+ };
3033
+ original_files: {
3034
+ proof?: {
3035
+ type: string;
3036
+ url: string;
3037
+ size: number;
3038
+ base64?: string | null | undefined;
3039
+ } | null | undefined;
3040
+ accomodation?: {
3041
+ type: string;
3042
+ url: string;
3043
+ size: number;
3044
+ base64?: string | null | undefined;
3045
+ } | null | undefined;
3046
+ };
3047
+ host_id_document: {};
3048
+ }, {
3049
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3050
+ country: string;
3051
+ fields: {
3052
+ city: string;
3053
+ address: string;
3054
+ zipcode: string;
3055
+ issuing_date: string;
3056
+ };
3057
+ files: {
3058
+ proof?: {
3059
+ type: string;
3060
+ url: string;
3061
+ size: number;
3062
+ base64?: string | null | undefined;
3063
+ } | null | undefined;
3064
+ accomodation?: {
3065
+ type: string;
3066
+ url: string;
3067
+ size: number;
3068
+ base64?: string | null | undefined;
3069
+ } | null | undefined;
3070
+ };
3071
+ original_files: {
3072
+ proof?: {
3073
+ type: string;
3074
+ url: string;
3075
+ size: number;
3076
+ base64?: string | null | undefined;
3077
+ } | null | undefined;
3078
+ accomodation?: {
3079
+ type: string;
3080
+ url: string;
3081
+ size: number;
3082
+ base64?: string | null | undefined;
3083
+ } | null | undefined;
3084
+ };
3085
+ host_id_document: {};
3086
+ }>]>>>;
3087
+ verification: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
3088
+ liveness: z.ZodObject<{
3089
+ file: z.ZodObject<{
3090
+ url: z.ZodString;
3091
+ type: z.ZodString;
3092
+ size: z.ZodNumber;
3093
+ base64: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3094
+ }, "strip", z.ZodTypeAny, {
3095
+ type: string;
3096
+ url: string;
3097
+ size: number;
3098
+ base64?: string | null | undefined;
3099
+ }, {
3100
+ type: string;
3101
+ url: string;
3102
+ size: number;
3103
+ base64?: string | null | undefined;
3104
+ }>;
3105
+ }, "strip", z.ZodTypeAny, {
3106
+ file: {
3107
+ type: string;
3108
+ url: string;
3109
+ size: number;
3110
+ base64?: string | null | undefined;
3111
+ };
3112
+ }, {
3113
+ file: {
3114
+ type: string;
3115
+ url: string;
3116
+ size: number;
3117
+ base64?: string | null | undefined;
3118
+ };
3119
+ }>;
3120
+ }, "strip", z.ZodTypeAny, {
3121
+ liveness: {
3122
+ file: {
3123
+ type: string;
3124
+ url: string;
3125
+ size: number;
3126
+ base64?: string | null | undefined;
3127
+ };
3128
+ };
3129
+ }, {
3130
+ liveness: {
3131
+ file: {
3132
+ type: string;
3133
+ url: string;
3134
+ size: number;
3135
+ base64?: string | null | undefined;
3136
+ };
3137
+ };
3138
+ }>, z.ZodObject<{
3139
+ phone: z.ZodObject<{
3140
+ number: z.ZodString;
3141
+ calling_code: z.ZodString;
3142
+ method: z.ZodString;
3143
+ country: z.ZodString;
3144
+ }, "strip", z.ZodTypeAny, {
3145
+ number: string;
3146
+ country: string;
3147
+ calling_code: string;
3148
+ method: string;
3149
+ }, {
3150
+ number: string;
3151
+ country: string;
3152
+ calling_code: string;
3153
+ method: string;
3154
+ }>;
3155
+ }, "strip", z.ZodTypeAny, {
3156
+ phone: {
3157
+ number: string;
3158
+ country: string;
3159
+ calling_code: string;
3160
+ method: string;
3161
+ };
3162
+ }, {
3163
+ phone: {
3164
+ number: string;
3165
+ country: string;
3166
+ calling_code: string;
3167
+ method: string;
3168
+ };
3169
+ }>, z.ZodObject<{
3170
+ email: z.ZodObject<{
3171
+ value: z.ZodString;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ value: string;
3174
+ }, {
3175
+ value: string;
3176
+ }>;
3177
+ }, "strip", z.ZodTypeAny, {
3178
+ email: {
3179
+ value: string;
3180
+ };
3181
+ }, {
3182
+ email: {
3183
+ value: string;
3184
+ };
3185
+ }>, z.ZodObject<{
3186
+ aml: z.ZodObject<{
3187
+ customer_info: z.ZodObject<{
3188
+ firstname: z.ZodString;
3189
+ lastname: z.ZodString;
3190
+ birth_date: z.ZodString;
3191
+ nationality: z.ZodString;
3192
+ country: z.ZodString;
3193
+ }, "strip", z.ZodTypeAny, {
3194
+ country: string;
3195
+ firstname: string;
3196
+ lastname: string;
3197
+ birth_date: string;
3198
+ nationality: string;
3199
+ }, {
3200
+ country: string;
3201
+ firstname: string;
3202
+ lastname: string;
3203
+ birth_date: string;
3204
+ nationality: string;
3205
+ }>;
3206
+ hits: z.ZodArray<z.ZodObject<{
3207
+ fields: z.ZodArray<z.ZodUnknown, "many">;
3208
+ aliases: z.ZodArray<z.ZodString, "many">;
3209
+ media: z.ZodArray<z.ZodObject<{
3210
+ date: z.ZodString;
3211
+ snippet: z.ZodString;
3212
+ title: z.ZodString;
3213
+ url: z.ZodString;
3214
+ }, "strip", z.ZodTypeAny, {
3215
+ date: string;
3216
+ title: string;
3217
+ url: string;
3218
+ snippet: string;
3219
+ }, {
3220
+ date: string;
3221
+ title: string;
3222
+ url: string;
3223
+ snippet: string;
3224
+ }>, "many">;
3225
+ info: z.ZodObject<{
3226
+ full_name: z.ZodString;
3227
+ birth_date: z.ZodString;
3228
+ nationality: z.ZodString;
3229
+ }, "strip", z.ZodTypeAny, {
3230
+ birth_date: string;
3231
+ nationality: string;
3232
+ full_name: string;
3233
+ }, {
3234
+ birth_date: string;
3235
+ nationality: string;
3236
+ full_name: string;
3237
+ }>;
3238
+ type: z.ZodArray<z.ZodString, "many">;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ type: string[];
3241
+ fields: unknown[];
3242
+ media: {
3243
+ date: string;
3244
+ title: string;
3245
+ url: string;
3246
+ snippet: string;
3247
+ }[];
3248
+ aliases: string[];
3249
+ info: {
3250
+ birth_date: string;
3251
+ nationality: string;
3252
+ full_name: string;
3253
+ };
3254
+ }, {
3255
+ type: string[];
3256
+ fields: unknown[];
3257
+ media: {
3258
+ date: string;
3259
+ title: string;
3260
+ url: string;
3261
+ snippet: string;
3262
+ }[];
3263
+ aliases: string[];
3264
+ info: {
3265
+ birth_date: string;
3266
+ nationality: string;
3267
+ full_name: string;
3268
+ };
3269
+ }>, "many">;
3270
+ total_hits: z.ZodNumber;
3271
+ action_required: z.ZodBoolean;
3272
+ monitored: z.ZodBoolean;
3273
+ }, "strip", z.ZodTypeAny, {
3274
+ total_hits: number;
3275
+ hits: {
3276
+ type: string[];
3277
+ fields: unknown[];
3278
+ media: {
3279
+ date: string;
3280
+ title: string;
3281
+ url: string;
3282
+ snippet: string;
3283
+ }[];
3284
+ aliases: string[];
3285
+ info: {
3286
+ birth_date: string;
3287
+ nationality: string;
3288
+ full_name: string;
3289
+ };
3290
+ }[];
3291
+ customer_info: {
3292
+ country: string;
3293
+ firstname: string;
3294
+ lastname: string;
3295
+ birth_date: string;
3296
+ nationality: string;
3297
+ };
3298
+ action_required: boolean;
3299
+ monitored: boolean;
3300
+ }, {
3301
+ total_hits: number;
3302
+ hits: {
3303
+ type: string[];
3304
+ fields: unknown[];
3305
+ media: {
3306
+ date: string;
3307
+ title: string;
3308
+ url: string;
3309
+ snippet: string;
3310
+ }[];
3311
+ aliases: string[];
3312
+ info: {
3313
+ birth_date: string;
3314
+ nationality: string;
3315
+ full_name: string;
3316
+ };
3317
+ }[];
3318
+ customer_info: {
3319
+ country: string;
3320
+ firstname: string;
3321
+ lastname: string;
3322
+ birth_date: string;
3323
+ nationality: string;
3324
+ };
3325
+ action_required: boolean;
3326
+ monitored: boolean;
3327
+ }>;
3328
+ }, "strip", z.ZodTypeAny, {
3329
+ aml: {
3330
+ total_hits: number;
3331
+ hits: {
3332
+ type: string[];
3333
+ fields: unknown[];
3334
+ media: {
3335
+ date: string;
3336
+ title: string;
3337
+ url: string;
3338
+ snippet: string;
3339
+ }[];
3340
+ aliases: string[];
3341
+ info: {
3342
+ birth_date: string;
3343
+ nationality: string;
3344
+ full_name: string;
3345
+ };
3346
+ }[];
3347
+ customer_info: {
3348
+ country: string;
3349
+ firstname: string;
3350
+ lastname: string;
3351
+ birth_date: string;
3352
+ nationality: string;
3353
+ };
3354
+ action_required: boolean;
3355
+ monitored: boolean;
3356
+ };
3357
+ }, {
3358
+ aml: {
3359
+ total_hits: number;
3360
+ hits: {
3361
+ type: string[];
3362
+ fields: unknown[];
3363
+ media: {
3364
+ date: string;
3365
+ title: string;
3366
+ url: string;
3367
+ snippet: string;
3368
+ }[];
3369
+ aliases: string[];
3370
+ info: {
3371
+ birth_date: string;
3372
+ nationality: string;
3373
+ full_name: string;
3374
+ };
3375
+ }[];
3376
+ customer_info: {
3377
+ country: string;
3378
+ firstname: string;
3379
+ lastname: string;
3380
+ birth_date: string;
3381
+ nationality: string;
3382
+ };
3383
+ action_required: boolean;
3384
+ monitored: boolean;
3385
+ };
3386
+ }>]>>>;
3387
+ }, "strip", z.ZodTypeAny, {
3388
+ id: string;
3389
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
3390
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
3391
+ metadata: {
3392
+ ip: string;
3393
+ user_agent: string;
3394
+ platform: string;
3395
+ browser_name: string;
3396
+ browser_version: string;
3397
+ device: string;
3398
+ customer_language: string;
3399
+ };
3400
+ verification?: {
3401
+ liveness: {
3402
+ file: {
3403
+ type: string;
3404
+ url: string;
3405
+ size: number;
3406
+ base64?: string | null | undefined;
3407
+ };
3408
+ };
3409
+ } | {
3410
+ phone: {
3411
+ number: string;
3412
+ country: string;
3413
+ calling_code: string;
3414
+ method: string;
3415
+ };
3416
+ } | {
3417
+ email: {
3418
+ value: string;
3419
+ };
3420
+ } | {
3421
+ aml: {
3422
+ total_hits: number;
3423
+ hits: {
3424
+ type: string[];
3425
+ fields: unknown[];
3426
+ media: {
3427
+ date: string;
3428
+ title: string;
3429
+ url: string;
3430
+ snippet: string;
3431
+ }[];
3432
+ aliases: string[];
3433
+ info: {
3434
+ birth_date: string;
3435
+ nationality: string;
3436
+ full_name: string;
3437
+ };
3438
+ }[];
3439
+ customer_info: {
3440
+ country: string;
3441
+ firstname: string;
3442
+ lastname: string;
3443
+ birth_date: string;
3444
+ nationality: string;
3445
+ };
3446
+ action_required: boolean;
3447
+ monitored: boolean;
3448
+ };
3449
+ } | null | undefined;
3450
+ reason?: {
3451
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
3452
+ message: {
3453
+ original: string;
3454
+ translated: string;
3455
+ };
3456
+ } | null | undefined;
3457
+ document?: {
3458
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
3459
+ country: string;
3460
+ fields: {
3461
+ firstname: string;
3462
+ lastname: string;
3463
+ birth_date: string;
3464
+ document_expiration: string;
3465
+ document_number: string;
3466
+ nationality: string;
3467
+ };
3468
+ files: {
3469
+ front?: {
3470
+ type: string;
3471
+ url: string;
3472
+ size: number;
3473
+ base64?: string | null | undefined;
3474
+ } | null | undefined;
3475
+ back?: {
3476
+ type: string;
3477
+ url: string;
3478
+ size: number;
3479
+ base64?: string | null | undefined;
3480
+ } | null | undefined;
3481
+ face?: {
3482
+ type: string;
3483
+ url: string;
3484
+ size: number;
3485
+ base64?: string | null | undefined;
3486
+ } | null | undefined;
3487
+ };
3488
+ original_files: {
3489
+ front?: {
3490
+ type: string;
3491
+ url: string;
3492
+ size: number;
3493
+ base64?: string | null | undefined;
3494
+ } | null | undefined;
3495
+ back?: {
3496
+ type: string;
3497
+ url: string;
3498
+ size: number;
3499
+ base64?: string | null | undefined;
3500
+ } | null | undefined;
3501
+ };
3502
+ } | {
3503
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3504
+ country: string;
3505
+ fields: {
3506
+ city: string;
3507
+ address: string;
3508
+ zipcode: string;
3509
+ issuing_date: string;
3510
+ };
3511
+ files: {
3512
+ proof?: {
3513
+ type: string;
3514
+ url: string;
3515
+ size: number;
3516
+ base64?: string | null | undefined;
3517
+ } | null | undefined;
3518
+ accomodation?: {
3519
+ type: string;
3520
+ url: string;
3521
+ size: number;
3522
+ base64?: string | null | undefined;
3523
+ } | null | undefined;
3524
+ };
3525
+ original_files: {
3526
+ proof?: {
3527
+ type: string;
3528
+ url: string;
3529
+ size: number;
3530
+ base64?: string | null | undefined;
3531
+ } | null | undefined;
3532
+ accomodation?: {
3533
+ type: string;
3534
+ url: string;
3535
+ size: number;
3536
+ base64?: string | null | undefined;
3537
+ } | null | undefined;
3538
+ };
3539
+ host_id_document: {};
3540
+ } | null | undefined;
3541
+ }, {
3542
+ id: string;
3543
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
3544
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
3545
+ metadata: {
3546
+ ip: string;
3547
+ user_agent: string;
3548
+ platform: string;
3549
+ browser_name: string;
3550
+ browser_version: string;
3551
+ device: string;
3552
+ customer_language: string;
3553
+ };
3554
+ verification?: {
3555
+ liveness: {
3556
+ file: {
3557
+ type: string;
3558
+ url: string;
3559
+ size: number;
3560
+ base64?: string | null | undefined;
3561
+ };
3562
+ };
3563
+ } | {
3564
+ phone: {
3565
+ number: string;
3566
+ country: string;
3567
+ calling_code: string;
3568
+ method: string;
3569
+ };
3570
+ } | {
3571
+ email: {
3572
+ value: string;
3573
+ };
3574
+ } | {
3575
+ aml: {
3576
+ total_hits: number;
3577
+ hits: {
3578
+ type: string[];
3579
+ fields: unknown[];
3580
+ media: {
3581
+ date: string;
3582
+ title: string;
3583
+ url: string;
3584
+ snippet: string;
3585
+ }[];
3586
+ aliases: string[];
3587
+ info: {
3588
+ birth_date: string;
3589
+ nationality: string;
3590
+ full_name: string;
3591
+ };
3592
+ }[];
3593
+ customer_info: {
3594
+ country: string;
3595
+ firstname: string;
3596
+ lastname: string;
3597
+ birth_date: string;
3598
+ nationality: string;
3599
+ };
3600
+ action_required: boolean;
3601
+ monitored: boolean;
3602
+ };
3603
+ } | null | undefined;
3604
+ reason?: {
3605
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
3606
+ message: {
3607
+ original: string;
3608
+ translated: string;
3609
+ };
3610
+ } | null | undefined;
3611
+ document?: {
3612
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
3613
+ country: string;
3614
+ fields: {
3615
+ firstname: string;
3616
+ lastname: string;
3617
+ birth_date: string;
3618
+ document_expiration: string;
3619
+ document_number: string;
3620
+ nationality: string;
3621
+ };
3622
+ files: {
3623
+ front?: {
3624
+ type: string;
3625
+ url: string;
3626
+ size: number;
3627
+ base64?: string | null | undefined;
3628
+ } | null | undefined;
3629
+ back?: {
3630
+ type: string;
3631
+ url: string;
3632
+ size: number;
3633
+ base64?: string | null | undefined;
3634
+ } | null | undefined;
3635
+ face?: {
3636
+ type: string;
3637
+ url: string;
3638
+ size: number;
3639
+ base64?: string | null | undefined;
3640
+ } | null | undefined;
3641
+ };
3642
+ original_files: {
3643
+ front?: {
3644
+ type: string;
3645
+ url: string;
3646
+ size: number;
3647
+ base64?: string | null | undefined;
3648
+ } | null | undefined;
3649
+ back?: {
3650
+ type: string;
3651
+ url: string;
3652
+ size: number;
3653
+ base64?: string | null | undefined;
3654
+ } | null | undefined;
3655
+ };
3656
+ } | {
3657
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3658
+ country: string;
3659
+ fields: {
3660
+ city: string;
3661
+ address: string;
3662
+ zipcode: string;
3663
+ issuing_date: string;
3664
+ };
3665
+ files: {
3666
+ proof?: {
3667
+ type: string;
3668
+ url: string;
3669
+ size: number;
3670
+ base64?: string | null | undefined;
3671
+ } | null | undefined;
3672
+ accomodation?: {
3673
+ type: string;
3674
+ url: string;
3675
+ size: number;
3676
+ base64?: string | null | undefined;
3677
+ } | null | undefined;
3678
+ };
3679
+ original_files: {
3680
+ proof?: {
3681
+ type: string;
3682
+ url: string;
3683
+ size: number;
3684
+ base64?: string | null | undefined;
3685
+ } | null | undefined;
3686
+ accomodation?: {
3687
+ type: string;
3688
+ url: string;
3689
+ size: number;
3690
+ base64?: string | null | undefined;
3691
+ } | null | undefined;
3692
+ };
3693
+ host_id_document: {};
3694
+ } | null | undefined;
3695
+ }>;
3696
+ }, "strip", z.ZodTypeAny, {
3697
+ data: {
3698
+ id: string;
3699
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
3700
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
3701
+ metadata: {
3702
+ ip: string;
3703
+ user_agent: string;
3704
+ platform: string;
3705
+ browser_name: string;
3706
+ browser_version: string;
3707
+ device: string;
3708
+ customer_language: string;
3709
+ };
3710
+ verification?: {
3711
+ liveness: {
3712
+ file: {
3713
+ type: string;
3714
+ url: string;
3715
+ size: number;
3716
+ base64?: string | null | undefined;
3717
+ };
3718
+ };
3719
+ } | {
3720
+ phone: {
3721
+ number: string;
3722
+ country: string;
3723
+ calling_code: string;
3724
+ method: string;
3725
+ };
3726
+ } | {
3727
+ email: {
3728
+ value: string;
3729
+ };
3730
+ } | {
3731
+ aml: {
3732
+ total_hits: number;
3733
+ hits: {
3734
+ type: string[];
3735
+ fields: unknown[];
3736
+ media: {
3737
+ date: string;
3738
+ title: string;
3739
+ url: string;
3740
+ snippet: string;
3741
+ }[];
3742
+ aliases: string[];
3743
+ info: {
3744
+ birth_date: string;
3745
+ nationality: string;
3746
+ full_name: string;
3747
+ };
3748
+ }[];
3749
+ customer_info: {
3750
+ country: string;
3751
+ firstname: string;
3752
+ lastname: string;
3753
+ birth_date: string;
3754
+ nationality: string;
3755
+ };
3756
+ action_required: boolean;
3757
+ monitored: boolean;
3758
+ };
3759
+ } | null | undefined;
3760
+ reason?: {
3761
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
3762
+ message: {
3763
+ original: string;
3764
+ translated: string;
3765
+ };
3766
+ } | null | undefined;
3767
+ document?: {
3768
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
3769
+ country: string;
3770
+ fields: {
3771
+ firstname: string;
3772
+ lastname: string;
3773
+ birth_date: string;
3774
+ document_expiration: string;
3775
+ document_number: string;
3776
+ nationality: string;
3777
+ };
3778
+ files: {
3779
+ front?: {
3780
+ type: string;
3781
+ url: string;
3782
+ size: number;
3783
+ base64?: string | null | undefined;
3784
+ } | null | undefined;
3785
+ back?: {
3786
+ type: string;
3787
+ url: string;
3788
+ size: number;
3789
+ base64?: string | null | undefined;
3790
+ } | null | undefined;
3791
+ face?: {
3792
+ type: string;
3793
+ url: string;
3794
+ size: number;
3795
+ base64?: string | null | undefined;
3796
+ } | null | undefined;
3797
+ };
3798
+ original_files: {
3799
+ front?: {
3800
+ type: string;
3801
+ url: string;
3802
+ size: number;
3803
+ base64?: string | null | undefined;
3804
+ } | null | undefined;
3805
+ back?: {
3806
+ type: string;
3807
+ url: string;
3808
+ size: number;
3809
+ base64?: string | null | undefined;
3810
+ } | null | undefined;
3811
+ };
3812
+ } | {
3813
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3814
+ country: string;
3815
+ fields: {
3816
+ city: string;
3817
+ address: string;
3818
+ zipcode: string;
3819
+ issuing_date: string;
3820
+ };
3821
+ files: {
3822
+ proof?: {
3823
+ type: string;
3824
+ url: string;
3825
+ size: number;
3826
+ base64?: string | null | undefined;
3827
+ } | null | undefined;
3828
+ accomodation?: {
3829
+ type: string;
3830
+ url: string;
3831
+ size: number;
3832
+ base64?: string | null | undefined;
3833
+ } | null | undefined;
3834
+ };
3835
+ original_files: {
3836
+ proof?: {
3837
+ type: string;
3838
+ url: string;
3839
+ size: number;
3840
+ base64?: string | null | undefined;
3841
+ } | null | undefined;
3842
+ accomodation?: {
3843
+ type: string;
3844
+ url: string;
3845
+ size: number;
3846
+ base64?: string | null | undefined;
3847
+ } | null | undefined;
3848
+ };
3849
+ host_id_document: {};
3850
+ } | null | undefined;
3851
+ };
3852
+ success: true;
3853
+ }, {
3854
+ data: {
3855
+ id: string;
3856
+ status: "APPROVED" | "SUBMISSION_REQUIRED" | "RESUBMISSION_REQUIRED" | "REJECTED" | "PENDING_VERIFICATION";
3857
+ type: "EMAIL" | "PHONE" | "ID_DOCUMENT" | "LIVENESS" | "PROOF_OF_ADDRESS";
3858
+ metadata: {
3859
+ ip: string;
3860
+ user_agent: string;
3861
+ platform: string;
3862
+ browser_name: string;
3863
+ browser_version: string;
3864
+ device: string;
3865
+ customer_language: string;
3866
+ };
3867
+ verification?: {
3868
+ liveness: {
3869
+ file: {
3870
+ type: string;
3871
+ url: string;
3872
+ size: number;
3873
+ base64?: string | null | undefined;
3874
+ };
3875
+ };
3876
+ } | {
3877
+ phone: {
3878
+ number: string;
3879
+ country: string;
3880
+ calling_code: string;
3881
+ method: string;
3882
+ };
3883
+ } | {
3884
+ email: {
3885
+ value: string;
3886
+ };
3887
+ } | {
3888
+ aml: {
3889
+ total_hits: number;
3890
+ hits: {
3891
+ type: string[];
3892
+ fields: unknown[];
3893
+ media: {
3894
+ date: string;
3895
+ title: string;
3896
+ url: string;
3897
+ snippet: string;
3898
+ }[];
3899
+ aliases: string[];
3900
+ info: {
3901
+ birth_date: string;
3902
+ nationality: string;
3903
+ full_name: string;
3904
+ };
3905
+ }[];
3906
+ customer_info: {
3907
+ country: string;
3908
+ firstname: string;
3909
+ lastname: string;
3910
+ birth_date: string;
3911
+ nationality: string;
3912
+ };
3913
+ action_required: boolean;
3914
+ monitored: boolean;
3915
+ };
3916
+ } | null | undefined;
3917
+ reason?: {
3918
+ code: "" | "FORGED_REJECTION" | "DOCUMENT_HIDDEN" | "BAD_ENVIRONMENT" | "BLACK_WHITE_PICTURE" | "BAD_QUALITY" | "DOCUMENT_COMPLIANCE" | "IDENTITY_DOCUMENT_EXPIRED" | "DOCUMENT_INVALID_FRONT_SIDE" | "DOCUMENT_INVALID_BACK_SIDE" | "IDENTITY_DOCUMENT_DOB_DATE_MINOR" | "RESTRICTED_NATIONALITY_TYPE" | "DUPLICATE_USER";
3919
+ message: {
3920
+ original: string;
3921
+ translated: string;
3922
+ };
3923
+ } | null | undefined;
3924
+ document?: {
3925
+ type: "" | "PASSPORT" | "NATIONAL_ID" | "DRIVER_LICENSE" | "RESIDENT_PERMIT";
3926
+ country: string;
3927
+ fields: {
3928
+ firstname: string;
3929
+ lastname: string;
3930
+ birth_date: string;
3931
+ document_expiration: string;
3932
+ document_number: string;
3933
+ nationality: string;
3934
+ };
3935
+ files: {
3936
+ front?: {
3937
+ type: string;
3938
+ url: string;
3939
+ size: number;
3940
+ base64?: string | null | undefined;
3941
+ } | null | undefined;
3942
+ back?: {
3943
+ type: string;
3944
+ url: string;
3945
+ size: number;
3946
+ base64?: string | null | undefined;
3947
+ } | null | undefined;
3948
+ face?: {
3949
+ type: string;
3950
+ url: string;
3951
+ size: number;
3952
+ base64?: string | null | undefined;
3953
+ } | null | undefined;
3954
+ };
3955
+ original_files: {
3956
+ front?: {
3957
+ type: string;
3958
+ url: string;
3959
+ size: number;
3960
+ base64?: string | null | undefined;
3961
+ } | null | undefined;
3962
+ back?: {
3963
+ type: string;
3964
+ url: string;
3965
+ size: number;
3966
+ base64?: string | null | undefined;
3967
+ } | null | undefined;
3968
+ };
3969
+ } | {
3970
+ type: "ELECTRICITY_BILL" | "INTERNET_BILL" | "LANDLINE_BILL" | "WATER_BILL" | "GAS_BILL" | "BANK_STATEMENT";
3971
+ country: string;
3972
+ fields: {
3973
+ city: string;
3974
+ address: string;
3975
+ zipcode: string;
3976
+ issuing_date: string;
3977
+ };
3978
+ files: {
3979
+ proof?: {
3980
+ type: string;
3981
+ url: string;
3982
+ size: number;
3983
+ base64?: string | null | undefined;
3984
+ } | null | undefined;
3985
+ accomodation?: {
3986
+ type: string;
3987
+ url: string;
3988
+ size: number;
3989
+ base64?: string | null | undefined;
3990
+ } | null | undefined;
3991
+ };
3992
+ original_files: {
3993
+ proof?: {
3994
+ type: string;
3995
+ url: string;
3996
+ size: number;
3997
+ base64?: string | null | undefined;
3998
+ } | null | undefined;
3999
+ accomodation?: {
4000
+ type: string;
4001
+ url: string;
4002
+ size: number;
4003
+ base64?: string | null | undefined;
4004
+ } | null | undefined;
4005
+ };
4006
+ host_id_document: {};
4007
+ } | null | undefined;
4008
+ };
4009
+ success: true;
4010
+ }>, z.ZodObject<{
4011
+ success: z.ZodLiteral<false>;
4012
+ error: z.ZodUnion<[z.ZodObject<{
4013
+ code: z.ZodNumber;
4014
+ message: z.ZodLiteral<"This step ID is invalid">;
4015
+ }, "strip", z.ZodTypeAny, {
4016
+ code: number;
4017
+ message: "This step ID is invalid";
4018
+ }, {
4019
+ code: number;
4020
+ message: "This step ID is invalid";
4021
+ }>, z.ZodObject<{
4022
+ code: z.ZodLiteral<1>;
4023
+ message: z.ZodLiteral<"Synaps unknown error">;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ code: 1;
4026
+ message: "Synaps unknown error";
4027
+ }, {
4028
+ code: 1;
4029
+ message: "Synaps unknown error";
4030
+ }>, z.ZodObject<{
4031
+ code: z.ZodLiteral<2>;
4032
+ message: z.ZodString;
4033
+ data: z.ZodString;
4034
+ }, "strip", z.ZodTypeAny, {
4035
+ code: 2;
4036
+ message: string;
4037
+ data: string;
4038
+ }, {
4039
+ code: 2;
4040
+ message: string;
4041
+ data: string;
4042
+ }>]>;
4043
+ }, "strip", z.ZodTypeAny, {
4044
+ error: {
4045
+ code: 1;
4046
+ message: "Synaps unknown error";
4047
+ } | {
4048
+ code: 2;
4049
+ message: string;
4050
+ data: string;
4051
+ } | {
4052
+ code: number;
4053
+ message: "This step ID is invalid";
4054
+ };
4055
+ success: false;
4056
+ }, {
4057
+ error: {
4058
+ code: 1;
4059
+ message: "Synaps unknown error";
4060
+ } | {
4061
+ code: 2;
4062
+ message: string;
4063
+ data: string;
4064
+ } | {
4065
+ code: number;
4066
+ message: "This step ID is invalid";
4067
+ };
4068
+ success: false;
4069
+ }>]>;
4070
+ export type SynapsStepResponse = z.infer<typeof SynapsStepResponse>;
4071
+ //# sourceMappingURL=synaps.schema.d.ts.map