@sekyro/react 0.1.0-rc.2 → 0.1.0-rc.21

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 (57) hide show
  1. package/CHANGELOG.md +477 -0
  2. package/LICENSE +25 -16
  3. package/README.md +228 -16
  4. package/dist/chunk-2I4BU32X.js +2 -0
  5. package/dist/chunk-2KED7D2Q.js +2 -0
  6. package/dist/chunk-55NNQK5P.js +2 -0
  7. package/dist/chunk-5CLPIFBP.js +2 -0
  8. package/dist/chunk-5RQLU3VM.js +2 -0
  9. package/dist/chunk-7MMT5M4E.js +2 -0
  10. package/dist/chunk-BGAPVTOP.js +2 -0
  11. package/dist/chunk-D65O3EVR.js +2 -0
  12. package/dist/chunk-E4OK3CB5.js +2 -0
  13. package/dist/chunk-EGCGC7NK.js +2 -0
  14. package/dist/chunk-FTKNXQTF.js +2 -0
  15. package/dist/chunk-GUTF3SPK.js +2 -0
  16. package/dist/chunk-MH5E5KTI.js +2 -0
  17. package/dist/chunk-SDO324RU.js +2 -0
  18. package/dist/chunk-VRDPGOXM.js +2 -0
  19. package/dist/chunk-WPSVDW2G.js +2 -0
  20. package/dist/chunk-XQNZJ3J3.js +2 -0
  21. package/dist/chunk-ZLA6BTHU.js +2 -0
  22. package/dist/document-capture-view-GZX5JJ7N.js +2 -0
  23. package/dist/eid-view-ERVRHLLD.js +2 -0
  24. package/dist/email-otp-view-B7UQ5CHL.js +2 -0
  25. package/dist/flow-views-IGQ5MYS2.js +2 -0
  26. package/dist/fonts/Cairo-OFL.txt +93 -0
  27. package/dist/fonts/Geist-OFL.txt +93 -0
  28. package/dist/fonts/Inter-OFL.txt +93 -0
  29. package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
  30. package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
  31. package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
  32. package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
  33. package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
  34. package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
  35. package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
  36. package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
  37. package/dist/index.cjs +2 -901
  38. package/dist/index.d.cts +7 -233
  39. package/dist/index.d.ts +7 -233
  40. package/dist/index.js +2 -880
  41. package/dist/overlay-de-5KYN4JFO.js +2 -0
  42. package/dist/overlay-es-6CAERCCN.js +2 -0
  43. package/dist/overlay-pt-UBGXJ3C3.js +2 -0
  44. package/dist/portrait-capture-view-TMHG2UX2.js +2 -0
  45. package/dist/portrait-review-view-XUWQ5LIN.js +2 -0
  46. package/dist/styles.css +310 -12
  47. package/dist/theme-quu7XV_Y.d.cts +544 -0
  48. package/dist/theme-quu7XV_Y.d.ts +544 -0
  49. package/dist/verification/index.cjs +2 -0
  50. package/dist/verification/index.d.cts +689 -0
  51. package/dist/verification/index.d.ts +689 -0
  52. package/dist/verification/index.js +2 -0
  53. package/dist/verification.css +757 -0
  54. package/package.json +28 -13
  55. package/sbom.cdx.json +153 -0
  56. package/dist/index.cjs.map +0 -1
  57. package/dist/index.js.map +0 -1
@@ -0,0 +1,689 @@
1
+ import { a as SekyroLocale, S as Strings, g as SekyroTheme, q as VoiceOptions, d as LivenessCaptureProps } from '../theme-quu7XV_Y.cjs';
2
+ export { k as StringKey, A as retakeHintStringKey } from '../theme-quu7XV_Y.cjs';
3
+ import * as react from 'react';
4
+ import { ReactNode } from 'react';
5
+ import { Verification, VerificationStep, PhoneOtpStepHandle, EmailOtpStepHandle, EidStepHandle, MethodStepHandle, RegistryStepHandle, DocumentStepHandle, DocumentLiveMrzOptions, PortraitStepHandle, VerificationResult, ResultStepHandle, CapturedArtifacts } from '@sekyro/web';
6
+
7
+ /** Copy of the `@sekyro/react/verification` steps (hosted catalog paths; the optional keys load with their step). */
8
+ interface StepStrings {
9
+ "session.title": string;
10
+ "session.requestedBy": string;
11
+ "returning.requestedBy": string;
12
+ "consent.notice": string;
13
+ "consent.details": string;
14
+ "consent.terms.intro": string;
15
+ "consent.terms.data": string;
16
+ "consent.terms.processing": string;
17
+ "consent.terms.sharing": string;
18
+ "consent.terms.retention": string;
19
+ "capture.modeSwitch.toSelfPhoto": string;
20
+ "capture.modeSwitch.toAssistedLabelPhoto": string;
21
+ "capture.modeSwitch.toSelfLabelPhoto": string;
22
+ "reasons.camera_unavailable": string;
23
+ "otp.sendTitle": string;
24
+ "otp.sendDescription": string;
25
+ "otp.prefilledNotice": string;
26
+ "otp.phoneLabel": string;
27
+ "otp.phoneHelper": string;
28
+ "otp.phonePlaceholder": string;
29
+ "otp.send": string;
30
+ "otp.channelSms": string;
31
+ "otp.channelWhatsapp": string;
32
+ "otp.verifyTitle": string;
33
+ "otp.verifyDescription": string;
34
+ "otp.sentTo": string;
35
+ "otp.codeLabel": string;
36
+ "otp.codeHelper": string;
37
+ "otp.verify": string;
38
+ "otp.resend": string;
39
+ "otp.resendIn": string;
40
+ "otp.expiresIn": string;
41
+ "otp.expired": string;
42
+ "otp.reason_otp_mismatch": string;
43
+ "otp.reason_otp_expired": string;
44
+ "otp.reason_otp_send_failed": string;
45
+ "otp.chooseChannel": string;
46
+ "otp.sendBy": string;
47
+ "otp.resendBy": string;
48
+ "otp.sending": string;
49
+ "otp.reason_otp_channel_unavailable": string;
50
+ "otp.reason_otp_destination_not_allowed": string;
51
+ "otp.reason_otp_destination_unknown": string;
52
+ "otp.reason_otp_rate_limited": string;
53
+ "otp.reason_otp_daily_cap_reached": string;
54
+ "otp.reason_payment_method_required": string;
55
+ "otp.reason_spend_cap_reached": string;
56
+ "otp.reason_insufficient_balance": string;
57
+ "otp.phonePlaceholderGeneric": string;
58
+ "otp.countryLabel": string;
59
+ "otp.phoneLengthError": string;
60
+ "otp.or": string;
61
+ "otp.otherCountry": string;
62
+ "otp.reason_otp_number_invalid": string;
63
+ "otp.reason_otp_number_not_mobile": string;
64
+ "session.steps.population.title": string;
65
+ "session.steps.population.description": string;
66
+ "population.label": string;
67
+ "population.helper": string;
68
+ "population.placeholder": string;
69
+ "population.submit": string;
70
+ "population.invalid": string;
71
+ "population.reason_registry_unavailable": string;
72
+ "population.reason_nni_not_found": string;
73
+ "population.reason_nni_invalid": string;
74
+ "population.bound.description": string;
75
+ "population.bound.confirm": string;
76
+ "population.reason_nni_not_found_or_document": string;
77
+ "population.useDocument": string;
78
+ "population.fromDocument.title": string;
79
+ "population.fromDocument.description": string;
80
+ "population.fromDocument.continue": string;
81
+ "population.reason_id_number_invalid": string;
82
+ "population.reason_registry_record_not_found": string;
83
+ "population.reason_registry_record_not_found_or_document": string;
84
+ "session.steps.doc.titleRecto": string;
85
+ "session.steps.doc.titleVerso": string;
86
+ "session.steps.doc.description": string;
87
+ "doc.pickTitle": string;
88
+ "doc.pickDescription": string;
89
+ "doc.pickLabel": string;
90
+ "doc.startScan": string;
91
+ "doc.titlePassport": string;
92
+ "doc.reason_side_missing": string;
93
+ "doc.reason_unreadable": string;
94
+ "doc.process_failed": string;
95
+ "doc.uploading": string;
96
+ "doc.cameraBlocked": string;
97
+ "doc.cameraBlockedHint": string;
98
+ "doc.retryCamera": string;
99
+ "doc.holdUpright": string;
100
+ "doc.ageStepUp": string;
101
+ "reasons.underage_estimated": string;
102
+ "reasons.starter_credit_claimed": string;
103
+ "reasons.blocked_by_org": string;
104
+ "dcv2.sensing": string;
105
+ "dcv2.too_far": string;
106
+ "dcv2.too_close": string;
107
+ "dcv2.edge_clipped": string;
108
+ "dcv2.wrong_shape": string;
109
+ "dcv2.tilted": string;
110
+ "dcv2.too_dark": string;
111
+ "dcv2.too_bright": string;
112
+ "dcv2.blurry": string;
113
+ "dcv2.focus_far": string;
114
+ "dcv2.glare": string;
115
+ "dcv2.hold_still": string;
116
+ "dcv2.processing": string;
117
+ "dcv2.side_captured": string;
118
+ "dcv2.captured": string;
119
+ "session.processing.title": string;
120
+ "session.processing.description": string;
121
+ "handoff.title": string;
122
+ "handoff.lead.document": string;
123
+ "handoff.lead.portrait": string;
124
+ "capture.source.phone": string;
125
+ "session.processing.age_estimation.title": string;
126
+ "session.processing.age_estimation.description": string;
127
+ "session.result.review.title": string;
128
+ "session.result.review.description": string;
129
+ "session.result.rejected.title": string;
130
+ "session.result.rejected.description": string;
131
+ "session.result.expired.title": string;
132
+ "session.result.expired.description": string;
133
+ "session.result.detailsMismatch": string;
134
+ "session.result.deviceVelocity": string;
135
+ "session.result.verified.title": string;
136
+ "session.result.verified.description": string;
137
+ "session.result.inconclusive.title": string;
138
+ "session.result.inconclusive.description": string;
139
+ "session.result.unavailable.title": string;
140
+ "session.result.unavailable.description": string;
141
+ "session.result.policy.title": string;
142
+ "session.result.policy.description": string;
143
+ "session.result.cooldown.title": string;
144
+ "session.result.cooldown.description": string;
145
+ "session.result.deviceStop": string;
146
+ "result.referenceLabel": string;
147
+ "capture.retrySamePerson.message": string;
148
+ "capture.retryMatch.message": string;
149
+ "common.loading": string;
150
+ "common.refresh": string;
151
+ "common.noAttemptsLeft": string;
152
+ "session.steps.portrait.title": string;
153
+ "session.steps.portrait.description": string;
154
+ "portrait.coach.no_face": string;
155
+ "portrait.coach.multiple_faces": string;
156
+ "portrait.coach.center": string;
157
+ "portrait.coach.too_close": string;
158
+ "portrait.coach.pose": string;
159
+ "portrait.coach.eyes": string;
160
+ "portrait.coach.mouth": string;
161
+ "portrait.coach.glare": string;
162
+ "portrait.coach.lighting": string;
163
+ "portrait.coach.lighting_side": string;
164
+ "portrait.coach.background": string;
165
+ "portrait.coach.resolution": string;
166
+ "portrait.coach.hold_still": string;
167
+ "portrait.coach.hold": string;
168
+ "portrait.criteria.face": string;
169
+ "portrait.criteria.framing": string;
170
+ "portrait.criteria.pose": string;
171
+ "portrait.criteria.eyes": string;
172
+ "portrait.criteria.mouth": string;
173
+ "portrait.criteria.glare": string;
174
+ "portrait.criteria.lighting": string;
175
+ "portrait.criteria.background": string;
176
+ "portrait.criteria.resolution": string;
177
+ "portrait.criteria.sharpness": string;
178
+ "portrait.report.pose": string;
179
+ "portrait.report.eyes": string;
180
+ "portrait.report.mouth": string;
181
+ "portrait.report.occlusion": string;
182
+ "portrait.report.glare": string;
183
+ "portrait.report.lighting": string;
184
+ "portrait.report.background": string;
185
+ "portrait.report.resolution": string;
186
+ "portrait.checksLabel": string;
187
+ "portrait.met": string;
188
+ "portrait.notMet": string;
189
+ "portrait.starting": string;
190
+ "portrait.taken": string;
191
+ "portrait.uploading": string;
192
+ "portrait.checking": string;
193
+ "portrait.retryTitle": string;
194
+ "portrait.reportTitle": string;
195
+ "portrait.retake": string;
196
+ "portrait.uploadFailed": string;
197
+ "portrait.sendAgain": string;
198
+ "portrait.matching": string;
199
+ "portrait.reviewTitle": string;
200
+ "portrait.reviewDescription": string;
201
+ "portrait.cameraBlocked": string;
202
+ "portrait.cameraBlockedHint": string;
203
+ "portrait.retryCamera": string;
204
+ "reasons.icao_pose": string;
205
+ "reasons.icao_eyes": string;
206
+ "reasons.icao_mouth": string;
207
+ "reasons.icao_occlusion": string;
208
+ "reasons.icao_lighting": string;
209
+ "reasons.icao_background": string;
210
+ "reasons.icao_resolution": string;
211
+ "reasons.portrait_not_from_liveness": string;
212
+ "reasons.tester_document_mismatch": string;
213
+ "reasons.tester_phone_mismatch": string;
214
+ "method.national_eid": string;
215
+ "method.national_eidGeneric": string;
216
+ "consent.short": string;
217
+ "consent.termsLink": string;
218
+ "session.progressLabel": string;
219
+ "section.contact": string;
220
+ "section.identity": string;
221
+ "section.live_photo": string;
222
+ "section.screening": string;
223
+ "handoff.copied": string;
224
+ "needsApp.title": string;
225
+ "needsApp.description": string;
226
+ "needsApp.descriptionNoOrg": string;
227
+ "consent.termsTitle": string;
228
+ "leave.title": string;
229
+ "leave.body": string;
230
+ "leave.confirm": string;
231
+ "leave.stay": string;
232
+ "otp.changeNumber": string;
233
+ "otp.backToCode": string;
234
+ "otp.reason_otp_resend_limit": string;
235
+ "reasons.otp_resend_limit": string;
236
+ "common.back": string;
237
+ "capture.assisted.heading": string;
238
+ "returning.heading": string;
239
+ "capture.checkingTitle": string;
240
+ "method.heading": string;
241
+ "sandbox.otpHint": string;
242
+ "sandbox.skipCapture": string;
243
+ "app.sandboxBadge": string;
244
+ "population.recheck.title": string;
245
+ "population.recheck.description": string;
246
+ "otp.phoneInvalid": string;
247
+ "otp.codeInvalid": string;
248
+ "doc.countryTitle": string;
249
+ "doc.countryLabel": string;
250
+ "doc.countrySearch": string;
251
+ "doc.noCountryMatch": string;
252
+ "doc.type.carte_identite": string;
253
+ "doc.type.residence_permit": string;
254
+ "doc.type.passport": string;
255
+ "doc.showSide": string;
256
+ "doc.showPage": string;
257
+ "doc.flip": string;
258
+ "doc.sameFace": string;
259
+ "doc.reaskRecto": string;
260
+ "doc.reread": string;
261
+ "doc.photoTaken": string;
262
+ "doc.frontCaptured": string;
263
+ "doc.backCaptured": string;
264
+ "doc.pageCaptured": string;
265
+ "doc.progressFront": string;
266
+ "doc.progressBack": string;
267
+ "doc.progressPage": string;
268
+ "doc.shutter": string;
269
+ "doc.torchOn": string;
270
+ "doc.torchOff": string;
271
+ "result.platform_unsupported": string;
272
+ "unsupported.title": string;
273
+ "unsupported.description": string;
274
+ "shell.subtitle": string;
275
+ "shell.subtitleHuman": string;
276
+ "shell.verifiedBy": string;
277
+ "doc.sub.carte_identite": string;
278
+ "doc.sub.residence_permit": string;
279
+ "doc.sub.passport": string;
280
+ "native.close": string;
281
+ "native.face.introTitle": string;
282
+ "native.face.introLead": string;
283
+ "native.face.humanIntroTitle": string;
284
+ "native.face.humanIntroLead": string;
285
+ "native.doc.holdIt": string;
286
+ "native.doc.changeCountry": string;
287
+ "native.result.review": string;
288
+ "native.result.rejected": string;
289
+ "native.result.expired": string;
290
+ "native.result.copied": string;
291
+ "native.result.back": string;
292
+ "native.result.verified": string;
293
+ "native.result.inconclusive": string;
294
+ "native.result.unavailable": string;
295
+ "native.result.policy": string;
296
+ "emailOtp.reason_otp_daily_cap_reached"?: string;
297
+ "emailOtp.sendTitle"?: string;
298
+ "emailOtp.sendDescription"?: string;
299
+ "emailOtp.prefilledNotice"?: string;
300
+ "emailOtp.emailLabel"?: string;
301
+ "emailOtp.emailHelper"?: string;
302
+ "emailOtp.emailPlaceholder"?: string;
303
+ "emailOtp.emailInvalid"?: string;
304
+ "emailOtp.send"?: string;
305
+ "emailOtp.verifyTitle"?: string;
306
+ "emailOtp.verifyDescription"?: string;
307
+ "emailOtp.sentTo"?: string;
308
+ "emailOtp.codeLabel"?: string;
309
+ "emailOtp.codeHelper"?: string;
310
+ "emailOtp.verify"?: string;
311
+ "emailOtp.resend"?: string;
312
+ "emailOtp.resendIn"?: string;
313
+ "emailOtp.expiresIn"?: string;
314
+ "emailOtp.expired"?: string;
315
+ "emailOtp.reason_otp_mismatch"?: string;
316
+ "emailOtp.reason_otp_expired"?: string;
317
+ "emailOtp.reason_otp_send_failed"?: string;
318
+ "emailOtp.reason_otp_rate_limited"?: string;
319
+ "emailOtp.reason_email_invalid"?: string;
320
+ "emailOtp.reason_email_disposable"?: string;
321
+ "emailOtp.changeEmail"?: string;
322
+ "emailOtp.backToCode"?: string;
323
+ "emailOtp.reason_otp_resend_limit"?: string;
324
+ "eid.identifierTitle"?: string;
325
+ "eid.identifierTitleGeneric"?: string;
326
+ "eid.identifierDescription"?: string;
327
+ "eid.identifierDescriptionGeneric"?: string;
328
+ "eid.boundDescription"?: string;
329
+ "eid.boundDescriptionGeneric"?: string;
330
+ "eid.start"?: string;
331
+ "eid.codeTitle"?: string;
332
+ "eid.codeTitleGeneric"?: string;
333
+ "eid.codeHelp"?: string;
334
+ "eid.codeHelpGeneric"?: string;
335
+ "eid.codeLabel"?: string;
336
+ "eid.verify"?: string;
337
+ "eid.resend"?: string;
338
+ "eid.resendIn"?: string;
339
+ "eid.noResendsLeft"?: string;
340
+ "eid.expiresIn"?: string;
341
+ "eid.expired"?: string;
342
+ "eid.useCamera"?: string;
343
+ "reasons.eid_identifier_invalid"?: string;
344
+ "reasons.eid_code_invalid"?: string;
345
+ "reasons.eid_code_expired"?: string;
346
+ "reasons.eid_locked"?: string;
347
+ "reasons.eid_not_enrolled"?: string;
348
+ "reasons.eid_unavailable"?: string;
349
+ "reasons.eid_resend_too_soon"?: string;
350
+ "reasons.eid_resend_limit"?: string;
351
+ "eid.continueHint"?: string;
352
+ "eid.continueHintGeneric"?: string;
353
+ "eid.resendsRemaining.zero"?: string;
354
+ "eid.resendsRemaining.one"?: string;
355
+ "eid.resendsRemaining.two"?: string;
356
+ "eid.resendsRemaining.few"?: string;
357
+ "eid.resendsRemaining.many"?: string;
358
+ "eid.resendsRemaining.other"?: string;
359
+ "eid.codeAttemptsRemaining.zero"?: string;
360
+ "eid.codeAttemptsRemaining.one"?: string;
361
+ "eid.codeAttemptsRemaining.two"?: string;
362
+ "eid.codeAttemptsRemaining.few"?: string;
363
+ "eid.codeAttemptsRemaining.many"?: string;
364
+ "eid.codeAttemptsRemaining.other"?: string;
365
+ "dcv3.mrz.searching"?: string;
366
+ "dcv3.mrz.showMrzSide"?: string;
367
+ "dcv3.mrz.reading"?: string;
368
+ "dcv3.mrz.moveCloser"?: string;
369
+ "dcv3.mrz.turnSideways"?: string;
370
+ "dcv3.mrz.glare"?: string;
371
+ "dcv3.mrz.holdStill"?: string;
372
+ "dcv3.mrz.valid"?: string;
373
+ "dcv3.mrz.looksLikePassport"?: string;
374
+ "dcv3.mrz.looksLikeCard"?: string;
375
+ "portrait.source.title"?: string;
376
+ "portrait.source.description"?: string;
377
+ "portrait.source.camera"?: string;
378
+ "portrait.source.upload"?: string;
379
+ "portrait.source.uploadInstead"?: string;
380
+ "portrait.upload.title"?: string;
381
+ "portrait.upload.hint"?: string;
382
+ "portrait.upload.choose"?: string;
383
+ "portrait.upload.unsupported"?: string;
384
+ "portrait.upload.failed"?: string;
385
+ "portrait.review.title"?: string;
386
+ "portrait.review.description"?: string;
387
+ "portrait.review.original"?: string;
388
+ "portrait.review.fixed"?: string;
389
+ "portrait.review.fixesTitle"?: string;
390
+ "portrait.review.accept"?: string;
391
+ "portrait.review.retake"?: string;
392
+ "portrait.review.uploadAnother"?: string;
393
+ "portrait.fixes.crop"?: string;
394
+ "portrait.fixes.scale"?: string;
395
+ "portrait.fixes.straighten"?: string;
396
+ "portrait.fixes.background"?: string;
397
+ "portrait.fixes.exposure"?: string;
398
+ "portrait.fixes.white_balance"?: string;
399
+ "reasons.portrait_morph_suspected"?: string;
400
+ "reasons.portrait_reference_mismatch"?: string;
401
+ "reasons.portrait_declined_fix"?: string;
402
+ "doc.uploadInstead"?: string;
403
+ "doc.uploadTitle"?: string;
404
+ "doc.uploadHint"?: string;
405
+ "doc.uploadUnsupported"?: string;
406
+ "doc.uploadFailed"?: string;
407
+ "doc.source.title"?: string;
408
+ "doc.source.description"?: string;
409
+ "doc.source.camera"?: string;
410
+ "doc.source.upload"?: string;
411
+ "native.doc.introTitle"?: string;
412
+ "native.doc.introLead"?: string;
413
+ "native.doc.tip.flat"?: string;
414
+ "native.doc.tip.glare"?: string;
415
+ "native.doc.tip.frame"?: string;
416
+ "native.doc.openCamera"?: string;
417
+ "native.doc.changeDocument"?: string;
418
+ "native.scan.closer"?: string;
419
+ "native.scan.farther"?: string;
420
+ "native.scan.glare"?: string;
421
+ "native.scan.dark"?: string;
422
+ "native.scan.blurry"?: string;
423
+ "native.scan.holdStill"?: string;
424
+ "native.scan.reading"?: string;
425
+ "native.scan.putDown"?: string;
426
+ "native.scan.retry"?: string;
427
+ "consent.human.terms.intro"?: string;
428
+ "consent.human.terms.data"?: string;
429
+ "consent.human.terms.processing"?: string;
430
+ "consent.human.terms.sharing"?: string;
431
+ "consent.human.terms.retention"?: string;
432
+ "capture.noCamera.title"?: string;
433
+ "capture.noCamera.body"?: string;
434
+ "capture.noCamera.continue"?: string;
435
+ "capture.noCamera.deniedTitle"?: string;
436
+ "capture.noCamera.deniedBody"?: string;
437
+ "choice.title"?: string;
438
+ "choice.description"?: string;
439
+ "choice.switch"?: string;
440
+ "contact.title"?: string;
441
+ "contact.description"?: string;
442
+ "contact.phone"?: string;
443
+ "contact.email"?: string;
444
+ "contact.switch"?: string;
445
+ "summary.title"?: string;
446
+ "summary.description"?: string;
447
+ "summary.fullName"?: string;
448
+ "summary.birthDate"?: string;
449
+ "summary.nationality"?: string;
450
+ "summary.documentType"?: string;
451
+ "summary.documentNumber"?: string;
452
+ "summary.nni"?: string;
453
+ "summary.id_number"?: string;
454
+ "summary.expiryDate"?: string;
455
+ "summary.portraitAlt"?: string;
456
+ "summary.source.registry"?: string;
457
+ "summary.source.document"?: string;
458
+ "summary.source.chip"?: string;
459
+ "summary.name"?: string;
460
+ "summary.birthYear"?: string;
461
+ "summary.confirm"?: string;
462
+ "summary.retakeDocument"?: string;
463
+ "summary.retakeNationalNumber"?: string;
464
+ "summary.noRetake"?: string;
465
+ "capture.tipsIcao.title"?: string;
466
+ "capture.tipsIcao.glasses"?: string;
467
+ "capture.tipsIcao.headwear"?: string;
468
+ "capture.tipsIcao.expression"?: string;
469
+ "capture.tipsIcao.faceCamera"?: string;
470
+ "capture.tipsIcao.background"?: string;
471
+ "capture.tipsIcao.lighting"?: string;
472
+ "capture.tipsIcao.hair"?: string;
473
+ "capture.tipsIcao.summary"?: string;
474
+ "portrait.retakeOnly"?: string;
475
+ "portrait.keepCamera"?: string;
476
+ "handoff.description"?: string;
477
+ "handoff.qrAlt"?: string;
478
+ "handoff.copyLink"?: string;
479
+ "handoff.copyFailed"?: string;
480
+ "handoff.waiting"?: string;
481
+ "inApp.title"?: string;
482
+ "inApp.description"?: string;
483
+ "inApp.copyLink"?: string;
484
+ "inApp.copied"?: string;
485
+ "inApp.copyFailed"?: string;
486
+ "inApp.continueAnyway"?: string;
487
+ "inApp.openBrowser"?: string;
488
+ "testerGate.action"?: string;
489
+ "testerGate.title"?: string;
490
+ "testerGate.body"?: string;
491
+ "testerGate.start"?: string;
492
+ "testerGate.checking"?: string;
493
+ "testerGate.boundTitle"?: string;
494
+ "testerGate.boundBody"?: string;
495
+ "testerGate.missTitle"?: string;
496
+ "testerGate.missBody"?: string;
497
+ "testerGate.retry"?: string;
498
+ "testerGate.continueTest"?: string;
499
+ "testerGate.continue"?: string;
500
+ "testerGate.limitBody"?: string;
501
+ "testerGate.exhaustedBody"?: string;
502
+ "testerGate.closedBody"?: string;
503
+ }
504
+
505
+ /**
506
+ * Loads the copy of an overlay locale (es, pt, de); resolves at once for ar/fr/en. The components load it by
507
+ * themselves (they render once it is there); call it ahead to have the copy ready on the first render. A failed
508
+ * download leaves the locale on English.
509
+ */
510
+ declare function loadSekyroLocale(locale: SekyroLocale): Promise<void>;
511
+
512
+ declare const arSteps: StepStrings;
513
+
514
+ declare const enSteps: StepStrings;
515
+
516
+ declare const frSteps: StepStrings;
517
+
518
+ type SekyroStrings = Strings & StepStrings;
519
+ type SekyroStringKey = keyof SekyroStrings;
520
+ type StepTranslate = (key: SekyroStringKey, vars?: Record<string, string | number>) => string;
521
+ declare function formatTemplate(template: string, vars?: Record<string, string | number>): string;
522
+ /** 0.1 built-ins → step built-ins → (es/pt/de) the locale's loaded overlay → overrides. */
523
+ declare function resolveSekyroStrings(locale: SekyroLocale, overrides?: Partial<SekyroStrings>): SekyroStrings;
524
+ interface StepI18n {
525
+ locale: SekyroLocale;
526
+ strings: SekyroStrings;
527
+ t: StepTranslate;
528
+ }
529
+ /** es/pt/de: renders once the locale's overlay is loaded (no English flash). */
530
+ declare function StepI18nProvider({ locale, strings, children }: {
531
+ locale: SekyroLocale;
532
+ strings?: Partial<SekyroStrings>;
533
+ children: ReactNode;
534
+ }): react.JSX.Element | null;
535
+ /** Props win over the surrounding provider; default English. */
536
+ declare function useStepI18n(locale?: SekyroLocale, strings?: Partial<SekyroStrings>): StepI18n;
537
+
538
+ /** Runs the verification's plan runner and returns the current step. */
539
+ declare function useVerificationStep(verification: Verification | undefined): {
540
+ step: VerificationStep | null;
541
+ error: unknown;
542
+ };
543
+
544
+ /** Props shared by every step component. */
545
+ interface StepComponentProps {
546
+ /** Default: the surrounding <SekyroVerification>'s locale, else `en`. */
547
+ locale?: SekyroLocale;
548
+ strings?: Partial<SekyroStrings>;
549
+ className?: string;
550
+ /** Every failed action (local validation and API errors) — for host telemetry. */
551
+ onError?: (error: unknown) => void;
552
+ }
553
+
554
+ interface PhoneOtpStepProps extends StepComponentProps {
555
+ step: PhoneOtpStepHandle;
556
+ /** Initial value of the number field (default: the calling code of the flow's first contact country, else empty). */
557
+ defaultPhone?: string;
558
+ }
559
+ declare function PhoneOtpStep({ step, locale, strings, className, defaultPhone: initialPhone, onError }: PhoneOtpStepProps): react.JSX.Element;
560
+
561
+ interface EmailOtpStepProps extends StepComponentProps {
562
+ step: EmailOtpStepHandle;
563
+ /** Initial value of the address field (default empty). */
564
+ defaultEmail?: string;
565
+ }
566
+ declare function EmailOtpStep({ locale, strings, ...props }: EmailOtpStepProps): react.JSX.Element;
567
+
568
+ interface EidStepProps extends StepComponentProps {
569
+ step: EidStepHandle;
570
+ }
571
+ declare function EidStep({ locale, strings, ...props }: EidStepProps): react.JSX.Element;
572
+
573
+ declare function MethodChoice({ step, locale, strings, className, onError }: StepComponentProps & {
574
+ step: MethodStepHandle;
575
+ }): react.JSX.Element;
576
+
577
+ /** The registry step: type the national number, or confirm the number the session holds. */
578
+ declare function IdNumberEntry({ step, locale, strings, className, onError }: StepComponentProps & {
579
+ step: RegistryStepHandle;
580
+ }): react.JSX.Element;
581
+ /** @deprecated Use {@link IdNumberEntry} (the same component). */
582
+ declare function NniEntry(input: StepComponentProps & {
583
+ step: RegistryStepHandle;
584
+ }): react.JSX.Element;
585
+
586
+ declare function DocumentCapture({ step, locale, strings, className, liveMrz, }: StepComponentProps & {
587
+ step: DocumentStepHandle;
588
+ /** Web live MRZ (on-device MRZ read on MRZ faces; obeys the session's server tuning). */
589
+ liveMrz?: DocumentLiveMrzOptions;
590
+ }): react.JSX.Element;
591
+
592
+ declare function PortraitCapture({ step, locale, strings, className, assetBaseUrl, verification, }: StepComponentProps & {
593
+ step: PortraitStepHandle;
594
+ /** Self-hosted MediaPipe assets (wasm fileset + `face_landmarker.task`); default `/models-v3`. */
595
+ assetBaseUrl?: string;
596
+ /**
597
+ * The session's verification: the camera waits for the session's capture mode. Under `choice` the camera opens on
598
+ * the person's pick (`self` before one) and switches on the camera view (spec 2026-11-06 §3.3). Without it the
599
+ * camera follows the step handle.
600
+ */
601
+ verification?: Verification;
602
+ }): react.JSX.Element;
603
+
604
+ /** `system` follows the device (prefers-color-scheme). */
605
+ type SekyroColorScheme = "light" | "dark" | "system";
606
+
607
+ /** What {@link SekyroVerificationProps.onClose} reports. */
608
+ interface SekyroCloseEvent {
609
+ /**
610
+ * `finished`: the person is done (the result's "Back to <partner>" button, or the close button on the result page);
611
+ * `cancelled`: they closed the flow before its result.
612
+ */
613
+ reason: "finished" | "cancelled";
614
+ /** The verdict shown on the result page (`finished` only). Display only: read the real outcome on your server. */
615
+ result?: VerificationResult;
616
+ }
617
+ interface SekyroVerificationProps {
618
+ verification: Verification;
619
+ locale: SekyroLocale;
620
+ dir?: "ltr" | "rtl";
621
+ strings?: Partial<SekyroStrings>;
622
+ /** Runtime theme — wins over the session's branding (SDK spec §6.4). */
623
+ theme?: SekyroTheme;
624
+ /** Light (default: the component sits in your page), dark, or the device's setting. */
625
+ colorScheme?: SekyroColorScheme;
626
+ assetBaseUrl?: string;
627
+ /**
628
+ * Web live MRZ for the document step: `workerUrl` (where your bundler serves `@sekyro/web/core/ocr/worker`),
629
+ * `assetBaseUrl` (self-hosted OCR assets) or `mode: "off"`. The session's server tuning decides when it runs.
630
+ */
631
+ documentLiveMrz?: DocumentLiveMrzOptions;
632
+ voice?: false | VoiceOptions;
633
+ livenessProps?: Omit<LivenessCaptureProps, "verification" | "locale" | "dir" | "strings" | "assetBaseUrl" | "voice" | "onCaptured" | "onResult">;
634
+ /**
635
+ * `header` and `footer` replace the partner header and the "Verified by Sekyro AI" link (`footer: null` hides it;
636
+ * the link also hides when the org hides the attribution, `branding.hideAttribution`);
637
+ * `headerEnd` sits at the inline end of the partner header (a language menu), before the close button.
638
+ */
639
+ slots?: {
640
+ header?: ReactNode;
641
+ headerEnd?: ReactNode;
642
+ footer?: ReactNode;
643
+ result?: (step: ResultStepHandle) => ReactNode;
644
+ };
645
+ onStep?: (step: VerificationStep) => void;
646
+ onResult?: (result: VerificationResult) => void;
647
+ /**
648
+ * The person closes the flow: the header's close button, or the result's "Back to <partner>" button (as on the native
649
+ * SDKs). Take them back to your page. Without it, neither button is shown.
650
+ */
651
+ onClose?: (event: SekyroCloseEvent) => void;
652
+ /**
653
+ * The browser's back button (UX refresh 2026-11-05 decision 2). `history`: the flow
654
+ * keeps one history entry of its own, so back goes one screen back where the screen has a way back (the camera to
655
+ * its intro, the code to the number), else asks "Leave verification?" once anything was sent, and leaves when
656
+ * nothing was. `none` (the default, of `<SekyroFlow>` too): the flow never touches the page's history. The hosted
657
+ * page passes `history`; a partner page passes it only when the flow owns the page's back button.
658
+ */
659
+ backNavigation?: "history" | "none";
660
+ /** Fires before the liveness upload (SDK spec §7.5 shadow hook). */
661
+ onLivenessCaptured?: (artifacts: CapturedArtifacts) => void;
662
+ /**
663
+ * The link a desktop shows as a QR code when the live photo needs a phone
664
+ * (the session's `hostedUrl`); absent = a "continue on your phone" notice.
665
+ * `<SekyroFlow>` defaults it to this page's address.
666
+ */
667
+ handoffUrl?: string;
668
+ className?: string;
669
+ }
670
+ declare function SekyroVerification(props: SekyroVerificationProps): react.JSX.Element;
671
+
672
+ interface SekyroFlowProps extends SekyroVerificationProps {
673
+ /** The session's `hostedUrl` (create result): the QR code and the "open in your browser" link. Default: this page's address. */
674
+ hostedUrl?: string;
675
+ /** Override the in-app browser detection (tests / hosts that know better). */
676
+ inAppBrowser?: boolean;
677
+ }
678
+ declare function SekyroFlow({ hostedUrl, inAppBrowser, ...props }: SekyroFlowProps): react.JSX.Element;
679
+
680
+ /** The page runs inside an app's WebView (WhatsApp, Instagram, Facebook, TikTok, Snapchat, LINE, LinkedIn, WeChat, an Android WebView…). */
681
+ declare function isInAppBrowser(userAgent?: string): boolean;
682
+
683
+ declare function VerificationResultScreen({ step, locale, strings, className, onClose, }: StepComponentProps & {
684
+ step: ResultStepHandle;
685
+ /** Shows the primary action, "Back to <partner>" ("Close" without a partner name), as on the native SDKs. */
686
+ onClose?: () => void;
687
+ }): react.JSX.Element;
688
+
689
+ export { DocumentCapture, EidStep, type EidStepProps, EmailOtpStep, type EmailOtpStepProps, IdNumberEntry, MethodChoice, NniEntry, PhoneOtpStep, type PhoneOtpStepProps, PortraitCapture, type SekyroCloseEvent, type SekyroColorScheme, SekyroFlow, type SekyroFlowProps, SekyroLocale, type SekyroStringKey, type SekyroStrings, SekyroVerification, type SekyroVerificationProps, type StepComponentProps, type StepI18n, StepI18nProvider, type StepStrings, type StepTranslate, Strings, VerificationResultScreen, arSteps, enSteps, formatTemplate, frSteps, isInAppBrowser, loadSekyroLocale, resolveSekyroStrings, useStepI18n, useVerificationStep };