@sanctum-key/react-native-sdk 1.0.9 → 1.0.10

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 (24) hide show
  1. package/build/package.json +1 -1
  2. package/build/src/components/KYCElements/CountrySelection.d.ts.map +1 -1
  3. package/build/src/components/KYCElements/CountrySelection.js +259 -63
  4. package/build/src/components/KYCElements/CountrySelection.js.map +1 -1
  5. package/build/src/components/KYCElements/IDCardCapture.d.ts.map +1 -1
  6. package/build/src/components/KYCElements/IDCardCapture.js +222 -69
  7. package/build/src/components/KYCElements/IDCardCapture.js.map +1 -1
  8. package/build/src/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -1
  9. package/build/src/components/KYCElements/PhoneVerificationTemplate.js +160 -21
  10. package/build/src/components/KYCElements/PhoneVerificationTemplate.js.map +1 -1
  11. package/build/src/config/region_mapping.json +727 -0
  12. package/build/src/modules/api/CardAuthentification.d.ts.map +1 -1
  13. package/build/src/modules/api/CardAuthentification.js +3 -7
  14. package/build/src/modules/api/CardAuthentification.js.map +1 -1
  15. package/build/src/modules/api/KYCService.d.ts +1 -2
  16. package/build/src/modules/api/KYCService.d.ts.map +1 -1
  17. package/build/src/modules/api/KYCService.js +106 -59
  18. package/build/src/modules/api/KYCService.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/KYCElements/CountrySelection.tsx +300 -74
  21. package/src/components/KYCElements/IDCardCapture.tsx +310 -156
  22. package/src/components/KYCElements/PhoneVerificationTemplate.tsx +201 -29
  23. package/src/modules/api/CardAuthentification.ts +5 -8
  24. package/src/modules/api/KYCService.ts +167 -105
@@ -0,0 +1,727 @@
1
+ {
2
+ "Belgium": {
3
+ "passport": {
4
+ "root": [
5
+ {
6
+ "py_file": "belgium_01.py",
7
+ "front": "MRZ",
8
+ "mrz_type": "TD3"
9
+ }
10
+ ]
11
+ }
12
+ },
13
+ "Benin": {
14
+ "passport": {
15
+ "root": [
16
+ {
17
+ "py_file": "benin_01.py",
18
+ "front": "MRZ",
19
+ "mrz_type": "TD3"
20
+ },
21
+ {
22
+ "py_file": "benin_02.py",
23
+ "front": "MRZ",
24
+ "mrz_type": "TD3"
25
+ }
26
+ ]
27
+ }
28
+ },
29
+ "Brazil": {
30
+ "passport": {
31
+ "root": [
32
+ {
33
+ "py_file": "brazil_01.py",
34
+ "front": "MRZ",
35
+ "mrz_type": "TD3"
36
+ },
37
+ {
38
+ "py_file": "brazil_02.py",
39
+ "front": "MRZ",
40
+ "mrz_type": "TD3"
41
+ }
42
+ ]
43
+ }
44
+ },
45
+ "Britain": {
46
+ "passport": {
47
+ "root": [
48
+ {
49
+ "py_file": "britain_01.py",
50
+ "front": "MRZ",
51
+ "mrz_type": "TD3"
52
+ },
53
+ {
54
+ "py_file": "britain_02.py",
55
+ "front": "MRZ",
56
+ "mrz_type": "TD3"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ "Burkina Faso": {
62
+ "passport": {
63
+ "root": [
64
+ {
65
+ "py_file": "burkina_faso_01.py",
66
+ "front": "MRZ",
67
+ "mrz_type": "TD3"
68
+ }
69
+ ]
70
+ }
71
+ },
72
+ "Cameroon": {
73
+ "identity_card": {
74
+ "root": [
75
+ {
76
+ "py_file": "cameroon_id_back_1_1_new.py",
77
+ "back": "MRZ",
78
+ "mrz_type": "TD1"
79
+ },
80
+ {
81
+ "py_file": "cameroon_id_back_2_1.py",
82
+ "keys_found": null
83
+ },
84
+ {
85
+ "py_file": "cameroon_id_back_2_2.py",
86
+ "keys_found": null
87
+ },
88
+ {
89
+ "py_file": "cameroon_id_back_3_1.py",
90
+ "back": "MRZ",
91
+ "mrz_type": "TD2"
92
+ },
93
+ {
94
+ "py_file": "cameroon_id_back_3_2.py",
95
+ "back": "MRZ",
96
+ "mrz_type": "TD1"
97
+ },
98
+ {
99
+ "py_file": "cameroon_id_front_1_1_new.py",
100
+ "keys_found": null
101
+ },
102
+ {
103
+ "py_file": "cameroon_id_front_2_2.py",
104
+ "keys_found": null
105
+ },
106
+ {
107
+ "py_file": "cameroon_id_front_3_1.py",
108
+ "keys_found": null
109
+ },
110
+ {
111
+ "py_file": "cameroon_id_front_3_2.py",
112
+ "keys_found": null
113
+ }
114
+ ]
115
+ },
116
+ "passport": {
117
+ "root": [
118
+ {
119
+ "py_file": "cameroon_01.py",
120
+ "front": "MRZ",
121
+ "mrz_type": "TD3"
122
+ },
123
+ {
124
+ "py_file": "cameroon_02.py",
125
+ "front": "MRZ",
126
+ "mrz_type": "TD3"
127
+ }
128
+ ]
129
+ }
130
+ },
131
+ "Canada": {
132
+ "drivers_licence": {
133
+ "Alberta": [
134
+ {
135
+ "py_file": "alberta_back.py",
136
+ "back": "2D_barcode"
137
+ },
138
+ {
139
+ "py_file": "alberta_front.py",
140
+ "front": "2D_barcode"
141
+ }
142
+ ],
143
+ "British Columbia": [
144
+ {
145
+ "py_file": "british_columbia_back.py",
146
+ "back": "2D_barcode"
147
+ },
148
+ {
149
+ "py_file": "british_columbia_front.py",
150
+ "keys_found": null
151
+ },
152
+ {
153
+ "py_file": "british_columbia_front_01.py",
154
+ "keys_found": null
155
+ }
156
+ ],
157
+ "Manitoba": [
158
+ {
159
+ "py_file": "manitoba_back.py",
160
+ "back": "2D_barcode"
161
+ },
162
+ {
163
+ "py_file": "manitoba_front.py",
164
+ "keys_found": null
165
+ }
166
+ ],
167
+ "New Brunswick": [
168
+ {
169
+ "py_file": "new_brunswick_back.py",
170
+ "back": "2D_barcode"
171
+ },
172
+ {
173
+ "py_file": "new_brunswick_front.py",
174
+ "keys_found": null
175
+ }
176
+ ],
177
+ "Newfoundland and Labrador": [
178
+ {
179
+ "py_file": "newfoundland_back.py",
180
+ "back": "2D_barcode"
181
+ },
182
+ {
183
+ "py_file": "newfoundland_front.py",
184
+ "keys_found": null
185
+ }
186
+ ],
187
+ "Northwest Territories": [
188
+ {
189
+ "py_file": "northwest_back.py",
190
+ "back": "2D_barcode"
191
+ },
192
+ {
193
+ "py_file": "northwest_front.py",
194
+ "keys_found": null
195
+ }
196
+ ],
197
+ "Nova Scotia": [
198
+ {
199
+ "py_file": "nova_scotia_back.py",
200
+ "back": "2D_barcode"
201
+ },
202
+ {
203
+ "py_file": "nova_scotia_front.py",
204
+ "keys_found": null
205
+ }
206
+ ],
207
+ "Nunavut": [
208
+ {
209
+ "py_file": "nunavut_back.py",
210
+ "back": "2D_barcode"
211
+ },
212
+ {
213
+ "py_file": "nunavut_front.py",
214
+ "keys_found": null
215
+ }
216
+ ],
217
+ "Ontario": [
218
+ {
219
+ "py_file": "ontario_back.py",
220
+ "back": "2D_barcode"
221
+ },
222
+ {
223
+ "py_file": "ontario_front.py",
224
+ "keys_found": null
225
+ }
226
+ ],
227
+ "Prince Edward Island": [
228
+ {
229
+ "py_file": "pe_back.py",
230
+ "back": "2D_barcode"
231
+ },
232
+ {
233
+ "py_file": "pe_front.py",
234
+ "keys_found": null
235
+ }
236
+ ],
237
+ "Quebec": [
238
+ {
239
+ "py_file": "quebec_back.py",
240
+ "back": "2D_barcode"
241
+ },
242
+ {
243
+ "py_file": "quebec_front.py",
244
+ "keys_found": null
245
+ }
246
+ ],
247
+ "Saskatchewan": [
248
+ {
249
+ "py_file": "saskatchewan_back.py",
250
+ "back": "2D_barcode"
251
+ },
252
+ {
253
+ "py_file": "saskatchewan_front.py",
254
+ "keys_found": null
255
+ }
256
+ ],
257
+ "Yukon": [
258
+ {
259
+ "py_file": "yukon_back.py",
260
+ "back": "2D_barcode"
261
+ },
262
+ {
263
+ "py_file": "yukon_front.py",
264
+ "keys_found": null
265
+ }
266
+ ]
267
+ },
268
+ "health_insurance_card": {
269
+ "Ontario": [
270
+ {
271
+ "py_file": "ontario_back.py",
272
+ "back": "2D_barcode"
273
+ },
274
+ {
275
+ "py_file": "ontario_front.py",
276
+ "keys_found": null
277
+ }
278
+ ],
279
+ "Quebec": [
280
+ {
281
+ "py_file": "quebec_01_back.py",
282
+ "back": "2D_barcode"
283
+ },
284
+ {
285
+ "py_file": "quebec_01_front.py",
286
+ "keys_found": null
287
+ },
288
+ {
289
+ "py_file": "quebec_02_front.py",
290
+ "front": "2D_barcode"
291
+ }
292
+ ]
293
+ },
294
+ "identity_card": {
295
+ "Alberta": [
296
+ {
297
+ "py_file": "alberta_id_back.py",
298
+ "back": "2D_barcode"
299
+ },
300
+ {
301
+ "py_file": "alberta_id_front.py",
302
+ "front": "2D_barcode"
303
+ }
304
+ ],
305
+ "British Columbia": [
306
+ {
307
+ "py_file": "british_columbia_id_back.py",
308
+ "back": "2D_barcode"
309
+ },
310
+ {
311
+ "py_file": "british_columbia_id_front.py",
312
+ "keys_found": null
313
+ }
314
+ ],
315
+ "New Brunswick": [
316
+ {
317
+ "py_file": "new_brunswick_id_back.py",
318
+ "back": "2D_barcode"
319
+ },
320
+ {
321
+ "py_file": "new_brunswick_id_front.py",
322
+ "keys_found": null
323
+ }
324
+ ],
325
+ "Nova Scotia": [
326
+ {
327
+ "py_file": "nova_scotia_id_back.py",
328
+ "back": "2D_barcode"
329
+ },
330
+ {
331
+ "py_file": "nova_scotia_id_front.py",
332
+ "keys_found": null
333
+ }
334
+ ],
335
+ "Ontario": [
336
+ {
337
+ "py_file": "ontario_id_back.py",
338
+ "back": "2D_barcode"
339
+ },
340
+ {
341
+ "py_file": "ontario_id_front.py",
342
+ "keys_found": null
343
+ }
344
+ ],
345
+ "Saskatchewan": [
346
+ {
347
+ "py_file": "saskatchewan_id_back.py",
348
+ "back": "2D_barcode"
349
+ },
350
+ {
351
+ "py_file": "saskatchewan_id_front.py",
352
+ "keys_found": null
353
+ }
354
+ ]
355
+ },
356
+ "passport": {
357
+ "root": [
358
+ {
359
+ "py_file": "canada_01.py",
360
+ "front": "MRZ",
361
+ "mrz_type": "TD3"
362
+ },
363
+ {
364
+ "py_file": "canada_02.py",
365
+ "front": "MRZ",
366
+ "mrz_type": "TD3"
367
+ }
368
+ ]
369
+ },
370
+ "permanent_residence": {
371
+ "root": [
372
+ {
373
+ "py_file": "pr_01_back.py",
374
+ "back": "MRZ",
375
+ "mrz_type": "TD1"
376
+ },
377
+ {
378
+ "py_file": "pr_01_front.py",
379
+ "keys_found": null
380
+ },
381
+ {
382
+ "py_file": "pr_02_back.py",
383
+ "back": "MRZ",
384
+ "mrz_type": "TD1"
385
+ },
386
+ {
387
+ "py_file": "pr_02_front.py",
388
+ "keys_found": null
389
+ },
390
+ {
391
+ "py_file": "pr_03_back.py",
392
+ "back": "MRZ",
393
+ "mrz_type": "TD1"
394
+ },
395
+ {
396
+ "py_file": "pr_03_front.py",
397
+ "keys_found": null
398
+ }
399
+ ]
400
+ }
401
+ },
402
+ "Central African Republic": {
403
+ "passport": {
404
+ "root": [
405
+ {
406
+ "py_file": "caf_01.py",
407
+ "front": "MRZ",
408
+ "mrz_type": "TD3"
409
+ }
410
+ ]
411
+ }
412
+ },
413
+ "Chad": {
414
+ "passport": {
415
+ "root": [
416
+ {
417
+ "py_file": "tchad_01.py",
418
+ "front": "MRZ",
419
+ "mrz_type": "TD3"
420
+ }
421
+ ]
422
+ }
423
+ },
424
+ "Congo": {
425
+ "passport": {
426
+ "root": [
427
+ {
428
+ "py_file": "congo_01.py",
429
+ "front": "MRZ",
430
+ "mrz_type": "TD3"
431
+ }
432
+ ]
433
+ }
434
+ },
435
+ "Equatorial Guinea": {
436
+ "passport": {
437
+ "root": [
438
+ {
439
+ "py_file": "ecuatorial_guinea_01.py",
440
+ "front": "MRZ",
441
+ "mrz_type": "TD3"
442
+ }
443
+ ]
444
+ }
445
+ },
446
+ "Ethiopia": {
447
+ "passport": {
448
+ "root": [
449
+ {
450
+ "py_file": "ethiopia_01.py",
451
+ "front": "MRZ",
452
+ "mrz_type": "TD3"
453
+ }
454
+ ]
455
+ }
456
+ },
457
+ "France": {
458
+ "passport": {
459
+ "root": [
460
+ {
461
+ "py_file": "france_01.py",
462
+ "front": "MRZ",
463
+ "mrz_type": "TD3"
464
+ }
465
+ ]
466
+ }
467
+ },
468
+ "Gabon": {
469
+ "passport": {
470
+ "root": [
471
+ {
472
+ "py_file": "gabon_01.py",
473
+ "front": "MRZ",
474
+ "mrz_type": "TD3"
475
+ },
476
+ {
477
+ "py_file": "gabon_02.py",
478
+ "front": "MRZ",
479
+ "mrz_type": "TD3"
480
+ }
481
+ ]
482
+ }
483
+ },
484
+ "Germany": {
485
+ "passport": {
486
+ "root": [
487
+ {
488
+ "py_file": "germany_01.py",
489
+ "front": "MRZ",
490
+ "mrz_type": "TD3"
491
+ },
492
+ {
493
+ "py_file": "germany_02.py",
494
+ "front": "MRZ",
495
+ "mrz_type": "TD3"
496
+ }
497
+ ]
498
+ }
499
+ },
500
+ "Ghana": {
501
+ "identity_card": {
502
+ "root": [
503
+ {
504
+ "py_file": "back_1.py",
505
+ "back": "MRZ",
506
+ "mrz_type": "TD1"
507
+ },
508
+ {
509
+ "py_file": "back_2.py",
510
+ "back": "MRZ",
511
+ "mrz_type": "TD1"
512
+ },
513
+ {
514
+ "py_file": "front_1.py",
515
+ "keys_found": null
516
+ },
517
+ {
518
+ "py_file": "front_2.py",
519
+ "keys_found": null
520
+ }
521
+ ]
522
+ },
523
+ "passport": {
524
+ "root": [
525
+ {
526
+ "py_file": "ghana_01.py",
527
+ "front": "MRZ",
528
+ "mrz_type": "TD3"
529
+ }
530
+ ]
531
+ }
532
+ },
533
+ "Guinea": {
534
+ "passport": {
535
+ "root": [
536
+ {
537
+ "py_file": "guinee_01.py",
538
+ "front": "MRZ",
539
+ "mrz_type": "TD3"
540
+ }
541
+ ]
542
+ }
543
+ },
544
+ "Haiti": {
545
+ "passport": {
546
+ "root": [
547
+ {
548
+ "py_file": "haiti_01.py",
549
+ "front": "MRZ",
550
+ "mrz_type": "TD3"
551
+ }
552
+ ]
553
+ }
554
+ },
555
+ "Italy": {
556
+ "passport": {
557
+ "root": [
558
+ {
559
+ "py_file": "italy_01.py",
560
+ "front": "MRZ",
561
+ "mrz_type": "TD3"
562
+ }
563
+ ]
564
+ }
565
+ },
566
+ "Ivory Coast": {
567
+ "identity_card": {
568
+ "root": [
569
+ {
570
+ "py_file": "back_1.py",
571
+ "keys_found": null
572
+ },
573
+ {
574
+ "py_file": "front_1.py",
575
+ "keys_found": null
576
+ }
577
+ ]
578
+ },
579
+ "passport": {
580
+ "root": [
581
+ {
582
+ "py_file": "ivory_coast_01.py",
583
+ "front": "MRZ",
584
+ "mrz_type": "TD3"
585
+ },
586
+ {
587
+ "py_file": "ivory_coast_02.py",
588
+ "front": "MRZ",
589
+ "mrz_type": "TD3"
590
+ }
591
+ ]
592
+ }
593
+ },
594
+ "Kenya": {
595
+ "identity_card": {
596
+ "root": [
597
+ {
598
+ "py_file": "back_2.py",
599
+ "back": "MRZ",
600
+ "mrz_type": "TD1"
601
+ },
602
+ {
603
+ "py_file": "front_3.py",
604
+ "keys_found": null
605
+ },
606
+ {
607
+ "py_file": "kenya_back_1.py",
608
+ "back": "MRZ",
609
+ "mrz_type": "TD1"
610
+ },
611
+ {
612
+ "py_file": "kenya_back_3.py",
613
+ "back": "MRZ",
614
+ "mrz_type": "TD1"
615
+ },
616
+ {
617
+ "py_file": "kenya_front_2.py",
618
+ "keys_found": null
619
+ }
620
+ ]
621
+ },
622
+ "passport": {
623
+ "root": [
624
+ {
625
+ "py_file": "passport_1.py",
626
+ "front": "MRZ",
627
+ "mrz_type": "TD3"
628
+ }
629
+ ]
630
+ }
631
+ },
632
+ "Mali": {
633
+ "passport": {
634
+ "root": [
635
+ {
636
+ "py_file": "mali_01.py",
637
+ "front": "MRZ",
638
+ "mrz_type": "TD3"
639
+ }
640
+ ]
641
+ }
642
+ },
643
+ "Netherlands": {
644
+ "passport": {
645
+ "root": [
646
+ {
647
+ "py_file": "netherlands_01.py",
648
+ "front": "MRZ",
649
+ "mrz_type": "TD3"
650
+ }
651
+ ]
652
+ }
653
+ },
654
+ "Niger": {
655
+ "passport": {
656
+ "root": [
657
+ {
658
+ "py_file": "niger_01.py",
659
+ "front": "MRZ",
660
+ "mrz_type": "TD3"
661
+ }
662
+ ]
663
+ }
664
+ },
665
+ "Nigeria": {
666
+ "identity_card": {
667
+ "root": [
668
+ {
669
+ "py_file": "nigeria_id_back_1.py",
670
+ "back": "MRZ",
671
+ "mrz_type": "TD1"
672
+ },
673
+ {
674
+ "py_file": "nigeria_id_front_1.py",
675
+ "keys_found": null
676
+ }
677
+ ]
678
+ },
679
+ "passport": {
680
+ "root": [
681
+ {
682
+ "py_file": "nigeria_01.py",
683
+ "front": "MRZ",
684
+ "mrz_type": "TD3"
685
+ },
686
+ {
687
+ "py_file": "nigeria_02.py",
688
+ "front": "MRZ",
689
+ "mrz_type": "TD3"
690
+ }
691
+ ]
692
+ }
693
+ },
694
+ "Senegal": {
695
+ "passport": {
696
+ "root": [
697
+ {
698
+ "py_file": "senegal_01.py",
699
+ "front": "MRZ",
700
+ "mrz_type": "TD3"
701
+ }
702
+ ]
703
+ }
704
+ },
705
+ "Spain": {
706
+ "passport": {
707
+ "root": [
708
+ {
709
+ "py_file": "spain_01.py",
710
+ "front": "MRZ",
711
+ "mrz_type": "TD3"
712
+ }
713
+ ]
714
+ }
715
+ },
716
+ "Togo": {
717
+ "passport": {
718
+ "root": [
719
+ {
720
+ "py_file": "togo_01.py",
721
+ "front": "MRZ",
722
+ "mrz_type": "TD3"
723
+ }
724
+ ]
725
+ }
726
+ }
727
+ }