@silexpert/core 2.0.44 → 2.0.46

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 (85) hide show
  1. package/dist/api/resources/KycMandate.d.ts +7 -0
  2. package/dist/api/resources/KycMandate.d.ts.map +1 -0
  3. package/dist/api/resources/KycMandate.js +10 -0
  4. package/dist/api/resources/KycMandate.js.map +1 -0
  5. package/dist/api/resources/Vialink.d.ts +7 -0
  6. package/dist/api/resources/Vialink.d.ts.map +1 -0
  7. package/dist/api/resources/Vialink.js +10 -0
  8. package/dist/api/resources/Vialink.js.map +1 -0
  9. package/dist/api/resources.d.ts +4 -0
  10. package/dist/api/resources.d.ts.map +1 -1
  11. package/dist/api/resources.js +4 -0
  12. package/dist/api/resources.js.map +1 -1
  13. package/dist/types/Enum/Country.d.ts +1 -0
  14. package/dist/types/Enum/Country.d.ts.map +1 -1
  15. package/dist/types/Enum/Country.js +516 -230
  16. package/dist/types/Enum/Country.js.map +1 -1
  17. package/dist/types/Enum/InpiType.d.ts +290 -0
  18. package/dist/types/Enum/InpiType.d.ts.map +1 -1
  19. package/dist/types/Enum/InpiType.js +290 -0
  20. package/dist/types/Enum/InpiType.js.map +1 -1
  21. package/dist/types/Enum/LegalForm.d.ts +0 -1
  22. package/dist/types/Enum/LegalForm.d.ts.map +1 -1
  23. package/dist/types/Enum/LegalForm.js +104 -33
  24. package/dist/types/Enum/LegalForm.js.map +1 -1
  25. package/dist/types/Enum/RegistrationSource.d.ts +2 -1
  26. package/dist/types/Enum/RegistrationSource.d.ts.map +1 -1
  27. package/dist/types/Enum/RegistrationSource.js +1 -0
  28. package/dist/types/Enum/RegistrationSource.js.map +1 -1
  29. package/dist/types/Enum/VehicleType.js +1 -1
  30. package/dist/types/Enum/VehicleType.js.map +1 -1
  31. package/dist/types/Interface/api/config/ConfigType.d.ts +14 -0
  32. package/dist/types/Interface/api/config/ConfigType.d.ts.map +1 -1
  33. package/dist/types/Interface/api/config/ConfigType.js.map +1 -1
  34. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts +41 -0
  35. package/dist/types/Interface/api/docoon/DocoonLegalEntity.d.ts.map +1 -0
  36. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js +2 -0
  37. package/dist/types/Interface/api/docoon/DocoonLegalEntity.js.map +1 -0
  38. package/dist/types/Interface/api/docoon/Read.d.ts +59 -0
  39. package/dist/types/Interface/api/docoon/Read.d.ts.map +1 -1
  40. package/dist/types/Interface/api/docoon/Read.js.map +1 -1
  41. package/dist/types/Interface/api/inpi/inpi.d.ts +1 -0
  42. package/dist/types/Interface/api/inpi/inpi.d.ts.map +1 -1
  43. package/dist/types/Interface/api/inpi/inpi.js.map +1 -1
  44. package/dist/types/Interface/api/kyc/Create.d.ts +87 -0
  45. package/dist/types/Interface/api/kyc/Create.d.ts.map +1 -0
  46. package/dist/types/Interface/api/kyc/Create.js +105 -0
  47. package/dist/types/Interface/api/kyc/Create.js.map +1 -0
  48. package/dist/types/Interface/api/kyc/Read.d.ts +830 -0
  49. package/dist/types/Interface/api/kyc/Read.d.ts.map +1 -0
  50. package/dist/types/Interface/api/kyc/Read.js +2 -0
  51. package/dist/types/Interface/api/kyc/Read.js.map +1 -0
  52. package/dist/types/Interface/api/kyc/kyc.d.ts +157 -0
  53. package/dist/types/Interface/api/kyc/kyc.d.ts.map +1 -0
  54. package/dist/types/Interface/api/kyc/kyc.js +6 -0
  55. package/dist/types/Interface/api/kyc/kyc.js.map +1 -0
  56. package/dist/types/Interface/api/user/RegisterProspect.d.ts +5 -1
  57. package/dist/types/Interface/api/user/RegisterProspect.d.ts.map +1 -1
  58. package/dist/types/Interface/api/user/RegisterProspect.js.map +1 -1
  59. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +24 -0
  60. package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -0
  61. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +23 -0
  62. package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -0
  63. package/dist/types/index.d.ts +4 -0
  64. package/dist/types/index.d.ts.map +1 -1
  65. package/dist/types/index.js +4 -0
  66. package/dist/types/index.js.map +1 -1
  67. package/package.json +1 -1
  68. package/ts/api/resources/KycMandate.ts +12 -0
  69. package/ts/api/resources/Vialink.ts +12 -0
  70. package/ts/api/resources.ts +4 -0
  71. package/ts/types/Enum/Country.ts +517 -230
  72. package/ts/types/Enum/InpiType.ts +291 -0
  73. package/ts/types/Enum/LegalForm.ts +104 -34
  74. package/ts/types/Enum/RegistrationSource.ts +1 -0
  75. package/ts/types/Enum/VehicleType.ts +1 -1
  76. package/ts/types/Interface/api/config/ConfigType.ts +15 -0
  77. package/ts/types/Interface/api/docoon/DocoonLegalEntity.ts +79 -0
  78. package/ts/types/Interface/api/docoon/Read.ts +60 -0
  79. package/ts/types/Interface/api/inpi/inpi.ts +1 -0
  80. package/ts/types/Interface/api/kyc/Create.ts +136 -0
  81. package/ts/types/Interface/api/kyc/Read.ts +842 -0
  82. package/ts/types/Interface/api/kyc/kyc.ts +190 -0
  83. package/ts/types/Interface/api/user/RegisterProspect.ts +5 -1
  84. package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +26 -0
  85. package/ts/types/index.ts +4 -0
@@ -0,0 +1,842 @@
1
+ export interface LegalRepresentative {
2
+ type: 'INDIVIDU' | 'ENTREPRISE';
3
+ siren?: string;
4
+ firstNames?: string;
5
+ lastName?: string;
6
+ roleEntreprise?: string;
7
+ }
8
+
9
+ export interface OAuthCredentials {
10
+ access_token: string;
11
+ expires_in: number;
12
+ scope: string;
13
+ jti: string;
14
+ sub: string;
15
+ token_type: string;
16
+ api_key_info: {
17
+ email: string;
18
+ id: string;
19
+ application_name: string;
20
+ };
21
+ }
22
+
23
+ export interface ReadKycPerson {
24
+ firsName: string;
25
+ lastName: string;
26
+ usageName: string;
27
+ gender: string;
28
+ nationality: string;
29
+ email: string;
30
+ phone: string;
31
+ birthData: {
32
+ date: string;
33
+ place: string;
34
+ department: string;
35
+ };
36
+ address: {
37
+ number: string;
38
+ street: string;
39
+ zipCode: string;
40
+ city: string;
41
+ province: string;
42
+ country: string;
43
+ };
44
+ company: string;
45
+ locale: string;
46
+ createdAt: string;
47
+ updatedAt: string;
48
+ _links: {
49
+ curies: PersonCurry[];
50
+ self: PersonLink;
51
+ 'vl:space': PersonLink;
52
+ 'vl:person-referers': PersonnLinkReferers;
53
+ 'vl:legal-entity': PersonLink;
54
+ 'vl:copied-from': PersonLink;
55
+ 'lastest-version': PersonLink;
56
+ 'version-history': PersonLink[];
57
+ };
58
+ _embedded: any; // to defined
59
+ }
60
+
61
+ export type PersonLink = {
62
+ href: string;
63
+ };
64
+
65
+ export type PersonnLinkReferers = PersonLink & {
66
+ templated: true;
67
+ };
68
+
69
+ export type PersonCurry = PersonLink & {
70
+ name: string;
71
+ templated: boolean;
72
+ };
73
+
74
+ export interface ReadKycFolder {
75
+ title: string;
76
+ status: 'DRAFT' | 'IN_PROGRESS' | 'COMPLETED' | 'REJECTED' | 'ACTION_NEEDED' | 'CANCELLED' | 'EXPIRED';
77
+ expiresOn: string;
78
+ metadata: { key: string; value: string }[];
79
+ createdAt: string;
80
+ updatedAt: string;
81
+ notificationDelay: any;
82
+ _links: {
83
+ curies: FolderLink[];
84
+ self: FolderLink;
85
+ 'vl:space': FolderLink;
86
+ 'vl-steps': FolderLink;
87
+ 'vl-participants': FolderLink;
88
+ 'vl-notifications': FolderLink;
89
+ };
90
+ _embedded: any; // to defined
91
+ }
92
+
93
+ export type FolderLink = {
94
+ href: string;
95
+ templated: boolean;
96
+ type?: string;
97
+ depreciation?: string;
98
+ name: string;
99
+ profile?: string;
100
+ tilte?: string;
101
+ hreflang?: string;
102
+ };
103
+ export interface PostFolderResponse {
104
+ _links: {
105
+ 'vl:folder': {
106
+ href: string;
107
+ templated: boolean;
108
+ type: string;
109
+ deprecation: string;
110
+ name: string;
111
+ profile: string;
112
+ tilte: string;
113
+ hreflang: string;
114
+ };
115
+ };
116
+ }
117
+
118
+ export interface ReadKycFolderParticipants {
119
+ _embedded: {
120
+ 'vl:participant': {
121
+ createdAt: string;
122
+ updatedAt: string;
123
+ token: string;
124
+ delegable: boolean;
125
+ _links: {
126
+ self: {
127
+ href: string;
128
+ };
129
+ 'vl:folder': {
130
+ href: string;
131
+ };
132
+ 'vl:step': [
133
+ {
134
+ href: string;
135
+ },
136
+ {
137
+ href: string;
138
+ },
139
+ {
140
+ href: string;
141
+ },
142
+ {
143
+ href: string;
144
+ },
145
+ ];
146
+ 'vl:steps': {
147
+ href: string;
148
+ };
149
+ 'vl:challenge-builder': {
150
+ href: string;
151
+ };
152
+ 'vl:redirection': {
153
+ href: string;
154
+ };
155
+ 'vl:challenge': {
156
+ href: string;
157
+ };
158
+ 'vl:pool': {
159
+ href: string;
160
+ };
161
+ 'vl:contact': {
162
+ href: string;
163
+ };
164
+ 'vl:public': {
165
+ href: string;
166
+ };
167
+ };
168
+ _embedded: {
169
+ 'vl:step': {
170
+ type: string;
171
+ status: string;
172
+ minScore: number;
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ comment: string | null;
176
+ _links: {
177
+ 'vl:control': {
178
+ href: string;
179
+ };
180
+ self: {
181
+ href: string;
182
+ };
183
+ 'vl:folder': {
184
+ href: string;
185
+ };
186
+ 'vl:participant': {
187
+ href: string;
188
+ };
189
+ 'vl:notifications': {
190
+ href: string;
191
+ };
192
+ 'vl:contact': {
193
+ href: string;
194
+ };
195
+ 'vl:public': {
196
+ href: string;
197
+ };
198
+ 'vl:capture'?: {
199
+ href: string;
200
+ };
201
+ prev?: {
202
+ href: string;
203
+ };
204
+ 'vl:form'?: {
205
+ href: string;
206
+ };
207
+ 'vl:file'?:
208
+ | {
209
+ href: string;
210
+ }
211
+ | { href: string }[];
212
+ 'vl:form-editor'?: {
213
+ href: string;
214
+ };
215
+ 'vl:envelope'?: {
216
+ href: string;
217
+ };
218
+ };
219
+ _embedded: {
220
+ 'vl:rule': {
221
+ rules: {
222
+ compliant: boolean;
223
+ complete: boolean;
224
+ type: string;
225
+ number: number;
226
+ customType: string | null;
227
+ withControl: boolean;
228
+ operation: string;
229
+ }[];
230
+ compliant: boolean;
231
+ complete: boolean;
232
+ operation: string;
233
+ _embedded: {
234
+ 'vl:rule': {
235
+ compliant: boolean;
236
+ complete: boolean;
237
+ operation: string;
238
+ withControl: boolean;
239
+ number: number;
240
+ type: string;
241
+ _links?: {
242
+ 'vl:file': {
243
+ href: string;
244
+ };
245
+ };
246
+ _embedded: {
247
+ 'vl:document': {
248
+ type: string;
249
+ subType: string;
250
+ number: number;
251
+ status: string;
252
+ origin: string;
253
+ score: number;
254
+ createdAt: string;
255
+ documentValues: string | null;
256
+ _links: {
257
+ self: {
258
+ href: string;
259
+ };
260
+ };
261
+ _embedded: {
262
+ 'vl:check-result': {
263
+ name: string;
264
+ value: string;
265
+ }[];
266
+ 'vl:sheet': {
267
+ side: string;
268
+ fileName: string;
269
+ subTypes: [string];
270
+ identifier: string;
271
+ _links: {
272
+ self: {
273
+ href: string;
274
+ };
275
+ };
276
+ }[];
277
+ };
278
+ };
279
+ 'vl:file': {
280
+ contentType: string;
281
+ contentLength: number | null;
282
+ expiresOn: string | null;
283
+ createdAt: string;
284
+ updatedAt: string;
285
+ fileName: string;
286
+ metadata: {
287
+ key: string;
288
+ value: string;
289
+ }[];
290
+ classificationMethod: string;
291
+ type: string;
292
+ subType: string;
293
+ language: string;
294
+ trusted: boolean;
295
+ _links: {
296
+ 'vl:space': {
297
+ href: string;
298
+ };
299
+ 'vl:bucket': {
300
+ href: string;
301
+ };
302
+ 'vl:file-referers': {
303
+ href: string;
304
+ templated: boolean;
305
+ };
306
+ 'version-history': {
307
+ href: string;
308
+ };
309
+ 'latest-version': {
310
+ href: string;
311
+ };
312
+ previous: {
313
+ href: string;
314
+ };
315
+ self: {
316
+ href: string;
317
+ };
318
+ 'vl:file-content': {
319
+ href: string;
320
+ type: string;
321
+ };
322
+ 'vl:curies': {
323
+ href: string;
324
+ name: string;
325
+ templated: boolean;
326
+ };
327
+ };
328
+ };
329
+ };
330
+ }[];
331
+ };
332
+ };
333
+ 'vl:smart-upload': {
334
+ enabled: boolean;
335
+ bundleCutting: boolean;
336
+ };
337
+ };
338
+ }[];
339
+ 'vl:contact': {
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ locale: string;
343
+ firstName: string;
344
+ lastName: string;
345
+ usageName: string | null;
346
+ gender: string | null;
347
+ nationality: string | null;
348
+ email: string | null;
349
+ phone: string | null;
350
+ birthData: string | null;
351
+ address: string | null;
352
+ _links: {
353
+ 'vl:space': {
354
+ href: string;
355
+ };
356
+ 'vl:person-referers': {
357
+ href: string;
358
+ templated: boolean;
359
+ };
360
+ 'version-history': {
361
+ href: string;
362
+ };
363
+ 'latest-version': {
364
+ href: string;
365
+ };
366
+ self: {
367
+ href: string;
368
+ };
369
+ 'vl:curies': {
370
+ href: string;
371
+ name: string;
372
+ templated: boolean;
373
+ };
374
+ };
375
+ };
376
+ };
377
+ }[];
378
+ };
379
+ _links: {
380
+ self: {
381
+ href: string;
382
+ };
383
+ curies: {
384
+ name: string;
385
+ href: string;
386
+ templated: boolean;
387
+ }[];
388
+ };
389
+ }
390
+
391
+ export interface ReadKycFolderSteps {
392
+ _embedded: {
393
+ 'vl:step': {
394
+ type: string;
395
+ status: string;
396
+ minScore: number;
397
+ createdAt: string;
398
+ updatedAt: string;
399
+ comment: string | null;
400
+ _links: {
401
+ 'vl:control': {
402
+ href: string;
403
+ };
404
+ self: {
405
+ href: string;
406
+ };
407
+ 'vl:folder': {
408
+ href: string;
409
+ };
410
+ 'vl:participant': {
411
+ href: string;
412
+ };
413
+ 'vl:notifications': {
414
+ href: string;
415
+ };
416
+ 'vl:contact': {
417
+ href: string;
418
+ };
419
+ 'vl:public': {
420
+ href: string;
421
+ };
422
+ 'vl:capture'?: {
423
+ href: string;
424
+ };
425
+ prev?: {
426
+ href: string;
427
+ };
428
+ 'vl:form'?: {
429
+ href: string;
430
+ };
431
+ 'vl:file'?:
432
+ | {
433
+ href: string;
434
+ }
435
+ | { href: string }[];
436
+ 'vl:form-editor'?: {
437
+ href: string;
438
+ };
439
+ 'vl:envelope'?: {
440
+ href: string;
441
+ };
442
+ };
443
+ _embedded: {
444
+ 'vl:rule': {
445
+ rules: {
446
+ compliant: boolean;
447
+ complete: boolean;
448
+ type: string;
449
+ number: number;
450
+ customType: string | null;
451
+ withControl: boolean;
452
+ operation: string;
453
+ }[];
454
+ compliant: boolean;
455
+ complete: boolean;
456
+ operation: string;
457
+ _embedded: {
458
+ 'vl:rule': {
459
+ compliant: boolean;
460
+ complete: boolean;
461
+ operation: string;
462
+ withControl: boolean;
463
+ number: number;
464
+ type: string;
465
+ _links?: {
466
+ 'vl:file': {
467
+ href: string;
468
+ };
469
+ };
470
+ _embedded: {
471
+ 'vl:document': {
472
+ type: string;
473
+ subType: string;
474
+ number: number;
475
+ status: string;
476
+ origin: string;
477
+ score: number;
478
+ createdAt: string;
479
+ documentValues: string | null;
480
+ _links: {
481
+ self: {
482
+ href: string;
483
+ };
484
+ };
485
+ _embedded: {
486
+ 'vl:check-result': {
487
+ name: string;
488
+ value: string;
489
+ }[];
490
+ 'vl:sheet': {
491
+ side: string;
492
+ fileName: string;
493
+ subTypes: [string];
494
+ identifier: string;
495
+ _links: {
496
+ self: {
497
+ href: string;
498
+ };
499
+ };
500
+ }[];
501
+ };
502
+ };
503
+ 'vl:file': {
504
+ contentType: string;
505
+ contentLength: number | null;
506
+ expiresOn: string | null;
507
+ createdAt: string;
508
+ updatedAt: string;
509
+ fileName: string;
510
+ metadata: {
511
+ key: string;
512
+ value: string;
513
+ }[];
514
+ classificationMethod: string;
515
+ type: string;
516
+ subType: string;
517
+ language: string;
518
+ trusted: boolean;
519
+ _links: {
520
+ 'vl:space': {
521
+ href: string;
522
+ };
523
+ 'vl:bucket': {
524
+ href: string;
525
+ };
526
+ 'vl:file-referers': {
527
+ href: string;
528
+ templated: boolean;
529
+ };
530
+ 'version-history': {
531
+ href: string;
532
+ };
533
+ 'latest-version': {
534
+ href: string;
535
+ };
536
+ previous: {
537
+ href: string;
538
+ };
539
+ self: {
540
+ href: string;
541
+ };
542
+ 'vl:file-content': {
543
+ href: string;
544
+ type: string;
545
+ };
546
+ 'vl:curies': {
547
+ href: string;
548
+ name: string;
549
+ templated: boolean;
550
+ };
551
+ };
552
+ };
553
+ };
554
+ }[];
555
+ };
556
+ };
557
+ 'vl:smart-upload': {
558
+ enabled: boolean;
559
+ bundleCutting: boolean;
560
+ };
561
+ };
562
+ }[];
563
+ }; // to defined
564
+ _links: {
565
+ curies: FolderLink[];
566
+ self: FolderLink;
567
+ };
568
+ }
569
+
570
+ export interface ReadTemplate {
571
+ fileName: string;
572
+ type?: string;
573
+ subType?: string;
574
+ language?: string;
575
+ classificationMethod?: string; // VIALINK | CUSTOMER
576
+ trusted?: boolean;
577
+ locked?: boolean;
578
+ metadata?: { key: string; value: string }[];
579
+ contentType: string;
580
+ expiresOn?: string;
581
+ createdAt: string;
582
+ updatedAt: string;
583
+ scanResult: string; // PENDING | CLEAN | INFECTED
584
+ _links: {
585
+ curries?: FolderLink[];
586
+ self: FolderLink;
587
+ 'vl:space': FolderLink;
588
+ 'vl:bucket': FolderLink;
589
+ 'vl:file-content': FolderLink;
590
+ 'vl:file-referers': FolderLink;
591
+ 'vl:copied-from'?: FolderLink;
592
+ 'vl:thumbnail'?: FolderLink;
593
+ 'vl:watermark'?: FolderLink;
594
+ about?: FolderLink;
595
+ collection?: FolderLink;
596
+ item?: FolderLink;
597
+ preview?: FolderLink;
598
+ next?: FolderLink;
599
+ previous?: FolderLink;
600
+ 'latest-version': FolderLink;
601
+ 'version-history': FolderLink;
602
+ };
603
+ _embedded: any; // to define
604
+ }
605
+
606
+ export interface ReadKycFormBuilder {
607
+ _embedded?: any; // to define
608
+ _links: {
609
+ curies?: FolderLink[];
610
+ self: FolderLink;
611
+ 'vl:space': FolderLink;
612
+ 'vl:file': FolderLink;
613
+ 'vl:editors'?: FolderLink;
614
+ 'vl:fields'?: FolderLink;
615
+ 'vl:referers'?: FolderLink;
616
+ };
617
+ }
618
+
619
+ export interface ReadKycEnvelope {
620
+ status?: string; // IN_PROGRESS | SIGNED
621
+ signedAt?: string;
622
+ tosAcceptedAt?: string;
623
+ createdAt: string;
624
+ updatedAt: string;
625
+ _embedded?: any; // to defined
626
+ _links: {
627
+ curies?: FolderLink[];
628
+ 'vl:space': FolderLink;
629
+ 'vl:envelope-documents': FolderLink;
630
+ 'vl:envelope-proof'?: FolderLink;
631
+ 'vl:envelope-signer': FolderLink;
632
+ };
633
+ }
634
+
635
+ export interface ReadKycControl {
636
+ id?: string;
637
+ spaceId: string;
638
+ spaceName?: string;
639
+ status: string; // CREATED | QUEUING | PROCESSING | DONE | MODIFIED | ERROR
640
+ controlProfileId: string;
641
+ controlProfileName?: string;
642
+ subscriberId?: string;
643
+ subscriber?: KycSubscriber;
644
+ createdAt?: string;
645
+ lastModified?: string;
646
+ completeness?: KycCntrolCompleteness[];
647
+ score?: number;
648
+ result?: KycControlResult;
649
+ }
650
+
651
+ export type KycSubscriber = {
652
+ id?: string;
653
+ spaceId?: string;
654
+ type: string; // PERSON | LEGAL_ENTITY | SOLE_PROPRIETORSHIP
655
+ address?: {
656
+ address?: string;
657
+ city?: string;
658
+ province?: string;
659
+ zipCode?: string;
660
+ countryIso?: string;
661
+ };
662
+ complementaryData: {
663
+ origin: string; // DOCUMENT | DATASOURCE | INTERNAL | INTERNALDS
664
+ type: string; // IMAGE | JSON | VALUE | VALIDATION
665
+ key: string;
666
+ data?: string; // if validation type then OK | KO | NONE | NA | ERROR
667
+ jsonableType?: string;
668
+ pageNumber?: number;
669
+ };
670
+ additionalData?: any[]; // to defined
671
+ contact?: string;
672
+ // for person type
673
+ email?: string;
674
+ firstName?: string;
675
+ lastName?: string;
676
+ usageName?: string;
677
+ nationalityIso?: string;
678
+ gender?: string; // MALE | FEMALE
679
+ birthday?: string;
680
+ placeOfBirth?: string;
681
+ departmentOfBirth?: string;
682
+ phoneNumber?: string;
683
+ // for legal entity type
684
+ siren?: string;
685
+ legalName?: string;
686
+ legalForm?: string;
687
+ registrationDate?: string;
688
+ // both for SOLE_PROPRIETORSHIP
689
+ };
690
+
691
+ export type KycCntrolCompleteness = {
692
+ type: string;
693
+ number: number;
694
+ side: string; // FRONT | BACK
695
+ available: boolean;
696
+ status?: string; // UPLOADING | UPLOADED | QUEUING | PROCESSING | ERROR | INVALID_DOC_ERROR | MODIFIED | CHECKED
697
+ };
698
+
699
+ export type KycControlResult = {
700
+ status?: string; // OK | PENDING | KO
701
+ score: number;
702
+ checkResults: KycControlResultCheckResults[];
703
+ nbPerformedChecks: number;
704
+ nbConfiguredChecks: number;
705
+ scores: KycControlResultScores;
706
+ scoresPerDocument: KycControlResultScores;
707
+ };
708
+
709
+ export type KycControlResultCheckResults = {
710
+ id?: number;
711
+ type: string; // SIMPLE | CROSS | SUBSCRIBER
712
+ name: string;
713
+ value: string; // OK | KO | NONE | NA | ERROR
714
+ weight: number;
715
+ critical: boolean;
716
+ sources: {
717
+ type: string; // DOCUMENT | INTERNAL | DATASOURCE | BARCODE | CONFIGURATION
718
+ documentId?: number;
719
+ documentType?: string;
720
+ number: number;
721
+ value: string;
722
+ label: string;
723
+ }[];
724
+ paramters?: { name: string; value: string }[];
725
+ public: boolean;
726
+ };
727
+
728
+ export type KycControlResultScores = { [key: string]: number };
729
+
730
+ export interface ReadKycCaptureControl {
731
+ verificationType?: string;
732
+ providerName?: string; // INLP | PVID | FACE_MATCHING | NONE;
733
+ _embedded: {
734
+ 'vl:identity'?: {
735
+ firstName: string;
736
+ lastName: string;
737
+ birthDate: string;
738
+ _links: {
739
+ curies?: FolderLink[];
740
+ self: FolderLink;
741
+ 'vl:capture': FolderLink;
742
+ };
743
+ _embedded: any;
744
+ };
745
+ 'vl:capture-proof'?: {
746
+ _links: {
747
+ curies?: FolderLink[];
748
+ self: FolderLink;
749
+ 'vl:capture': FolderLink;
750
+ 'vl:file': FolderLink;
751
+ };
752
+ _embedded: any;
753
+ };
754
+ 'vl:last-attempt': {
755
+ providerName: string;
756
+ outcome: string;
757
+ overallResult?: string; // OK | KO | UNKNOWN
758
+ faceMatching?: string; // OK | KO
759
+ liveness?: string; // OK | KO
760
+ attemptedAt?: string;
761
+ remainingAttempts: number;
762
+ _links: {
763
+ curies?: FolderLink[];
764
+ self: FolderLink;
765
+ 'vl:capture': FolderLink;
766
+ };
767
+ _embedded: any;
768
+ };
769
+ 'vl:gdpr-content': {
770
+ timestamp: string;
771
+ status: string; // UNKNOWN | GRANTED | DENIED
772
+ comment?: string;
773
+ _links: {
774
+ curies?: FolderLink[];
775
+ self: FolderLink;
776
+ 'vl:capture': FolderLink;
777
+ };
778
+ _embedded: any;
779
+ };
780
+ 'vl:available-providers': {
781
+ providers: string; // FACE_MATCHING | PVID | INLP
782
+ _links: {
783
+ curies?: FolderLink[];
784
+ self: FolderLink;
785
+ 'vl:capture': FolderLink;
786
+ };
787
+ _embedded: any;
788
+ };
789
+ };
790
+ verificationLevel: string;
791
+ maxAttempts: number;
792
+ createdAt: string;
793
+ updatedAt: string;
794
+ _links: {
795
+ curies?: FolderLink[];
796
+ self: FolderLink;
797
+ 'vl:space': FolderLink;
798
+ 'vl:contact': FolderLink;
799
+ 'vl:capture-image'?: FolderLink;
800
+ 'vl:capture-proof'?: FolderLink;
801
+ 'vl:last-attempt'?: FolderLink;
802
+ 'vl:gdpr-content'?: FolderLink;
803
+ };
804
+ }
805
+
806
+ export interface ReadKycCaptureProof {
807
+ _links: {
808
+ self: {
809
+ href: string;
810
+ };
811
+ 'vl:capture': {
812
+ href: string;
813
+ };
814
+ 'vl:file': {
815
+ href: string;
816
+ };
817
+ curries: {
818
+ name: string;
819
+ href: string;
820
+ templated: boolean;
821
+ }[];
822
+ };
823
+ }
824
+
825
+ export interface ReadKycSignatureProof {
826
+ _links: {
827
+ self: {
828
+ href: string;
829
+ };
830
+ 'vl:envelope': {
831
+ href: string;
832
+ };
833
+ 'vl:file': {
834
+ href: string;
835
+ };
836
+ curries: {
837
+ name: string;
838
+ href: string;
839
+ templated: boolean;
840
+ }[];
841
+ };
842
+ }