@sekyro/web 0.1.0-rc.5 → 0.1.0-rc.7

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 (67) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/LICENSE +3 -3
  3. package/README.md +4 -4
  4. package/dist/chunk-B45J4KC3.js +1 -0
  5. package/dist/chunk-BMA36W2W.js +1 -0
  6. package/dist/chunk-FPXL63KZ.js +1 -0
  7. package/dist/chunk-IYUOYINS.js +1 -0
  8. package/dist/chunk-P7ECRN47.js +1 -0
  9. package/dist/chunk-SXZCL5NO.js +1 -0
  10. package/dist/chunk-YOB4ZTYN.js +1 -0
  11. package/dist/chunk-YQBK6OIM.js +1 -0
  12. package/dist/client/index.cjs +1 -357
  13. package/dist/client/index.d.cts +2 -2
  14. package/dist/client/index.d.ts +2 -2
  15. package/dist/client/index.js +1 -15
  16. package/dist/core/index.cjs +1 -1639
  17. package/dist/core/index.js +1 -139
  18. package/dist/core/v3/detect-worker.cjs +1 -392
  19. package/dist/core/v3/detect-worker.js +1 -13
  20. package/dist/{create-verification-CA-3szPI.d.cts → create-verification-C2JhOO6Y.d.cts} +100 -15
  21. package/dist/{create-verification-c98uAxbl.d.ts → create-verification-CGazwtAh.d.ts} +100 -15
  22. package/dist/detector-scanic-VQFFXKTL.js +1 -0
  23. package/dist/{hosted-client-DWzCRYJK.d.ts → hosted-client-kBeq-mnJ.d.cts} +188 -7
  24. package/dist/{hosted-client-DWzCRYJK.d.cts → hosted-client-kBeq-mnJ.d.ts} +188 -7
  25. package/dist/index.cjs +1 -3020
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +1 -85
  29. package/dist/internal/index.cjs +1 -4429
  30. package/dist/internal/index.d.cts +10 -7
  31. package/dist/internal/index.d.ts +10 -7
  32. package/dist/internal/index.js +1 -657
  33. package/dist/popup/index.cjs +1 -76
  34. package/dist/popup/index.js +1 -11
  35. package/dist/scanic-ml-stub-KW7IZHUT.js +1 -0
  36. package/package.json +5 -8
  37. package/sbom.cdx.json +195 -0
  38. package/dist/chunk-MWNFSNMP.js +0 -52
  39. package/dist/chunk-MWNFSNMP.js.map +0 -1
  40. package/dist/chunk-NILNKLK6.js +0 -50
  41. package/dist/chunk-NILNKLK6.js.map +0 -1
  42. package/dist/chunk-NWF46H7K.js +0 -359
  43. package/dist/chunk-NWF46H7K.js.map +0 -1
  44. package/dist/chunk-SGDXLAXR.js +0 -1163
  45. package/dist/chunk-SGDXLAXR.js.map +0 -1
  46. package/dist/chunk-TG5IE552.js +0 -1128
  47. package/dist/chunk-TG5IE552.js.map +0 -1
  48. package/dist/chunk-WY6U7AIK.js +0 -193
  49. package/dist/chunk-WY6U7AIK.js.map +0 -1
  50. package/dist/chunk-YVFF4Q4G.js +0 -327
  51. package/dist/chunk-YVFF4Q4G.js.map +0 -1
  52. package/dist/client/index.cjs.map +0 -1
  53. package/dist/client/index.js.map +0 -1
  54. package/dist/core/index.cjs.map +0 -1
  55. package/dist/core/index.js.map +0 -1
  56. package/dist/core/v3/detect-worker.cjs.map +0 -1
  57. package/dist/core/v3/detect-worker.js.map +0 -1
  58. package/dist/detector-scanic-4C6IEW2K.js +0 -787
  59. package/dist/detector-scanic-4C6IEW2K.js.map +0 -1
  60. package/dist/index.cjs.map +0 -1
  61. package/dist/index.js.map +0 -1
  62. package/dist/internal/index.cjs.map +0 -1
  63. package/dist/internal/index.js.map +0 -1
  64. package/dist/popup/index.cjs.map +0 -1
  65. package/dist/popup/index.js.map +0 -1
  66. package/dist/scanic-ml-stub-S2OZ6HEF.js +0 -10
  67. package/dist/scanic-ml-stub-S2OZ6HEF.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { p as DeviceClass, i as CaptureState, b as CaptureArtifacts, c as CaptureErrorKind } from '../capture-session-v3-UQU_WjO2.cjs';
2
- export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, I as IN_CIRCLE_FACTOR } from '../capture-constraints-BujkZcfb.cjs';
3
- import { o as VerificationResult } from '../create-verification-CA-3szPI.cjs';
4
- export { A as AttestationError, w as CLIP_MIME_ALLOWLIST, x as CaptureEngine, H as HostedClientLike, y as LivenessCaptureInternalHandle, z as LivenessCaptureInternals, B as LivenessFlowDeps, E as LivenessFlowOutcome, F as PRELOAD_BLAZE_INIT_TIMEOUT_MS, I as PRELOAD_BUDGET_MS, J as PROCESSING_POLL_DELAY_MS, K as PROCESSING_POLL_MAX, M as REGISTRY_RETRY_DELAY_MS, N as SubmitExecutor, O as SubmitRuntime, T as TRANSPORT_REPLAY_ATTEMPTS, Q as TRANSPORT_REPLAY_DELAY_MS, U as VerificationInternals, W as createLivenessCaptureInternal, X as createVerificationInternal, Y as mapEngineState, Z as mapErrorKind, _ as mapGuidanceHint, $ as preloadedDetectorFactory, a0 as randomUuid, a1 as resetLivenessAssetsForTests, a2 as runLivenessFlow, a3 as runSubmission, a4 as setPreloadLoaderForTests } from '../create-verification-CA-3szPI.cjs';
5
- import { C as CheckReason, c as HostedSessionView, d as HostedStepView, h as SessionView, b as CheckType } from '../hosted-client-DWzCRYJK.cjs';
2
+ export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, I as IN_CIRCLE_FACTOR, d as detectIsMobile } from '../capture-constraints-BujkZcfb.cjs';
3
+ import { p as VerificationResult } from '../create-verification-C2JhOO6Y.cjs';
4
+ export { A as AttestationError, x as CLIP_MIME_ALLOWLIST, y as CaptureEngine, H as HostedClientLike, I as INFERENCE_RETRY_ATTEMPTS, z as INFERENCE_RETRY_DEFAULT_S, B as LivenessCaptureInternalHandle, E as LivenessCaptureInternals, F as LivenessFlowDeps, J as LivenessFlowOutcome, K as PRELOAD_BLAZE_INIT_TIMEOUT_MS, M as PRELOAD_BUDGET_MS, N as PROCESSING_POLL_DELAY_MS, O as PROCESSING_POLL_MAX, Q as REGISTRY_RETRY_DELAY_MS, T as SubmitExecutor, U as SubmitRuntime, W as TRANSPORT_REPLAY_ATTEMPTS, X as TRANSPORT_REPLAY_DELAY_MS, Y as VerificationInternals, Z as createLivenessCaptureInternal, _ as createVerificationInternal, $ as mapEngineState, a0 as mapErrorKind, a1 as mapGuidanceHint, a2 as preloadedDetectorFactory, a3 as randomUuid, a4 as resetLivenessAssetsForTests, a5 as runLivenessFlow, a6 as runSubmission, a7 as setPreloadLoaderForTests } from '../create-verification-C2JhOO6Y.cjs';
5
+ import { C as CheckReason, f as HostedSessionView, g as HostedStepView, q as SessionView, b as CheckType } from '../hosted-client-kBeq-mnJ.cjs';
6
6
  import '../detect-worker-CKXHlXx9.cjs';
7
7
 
8
8
  /** Physical geometry the scanner frames (ISO/IEC 7810 / ICAO 9303). */
@@ -368,18 +368,21 @@ declare function stepOf(view: HostedSessionView, checkType: CheckType): HostedSt
368
368
  /**
369
369
  * Fold a submit response (partner `SessionView`: no attemptsRemaining) into the
370
370
  * hosted view: status/outcome/step states+reasons come from the response; the
371
- * submitted check's `attemptsRemaining` is decremented locally (every accepted
372
- * submit consumes exactly one attempt server-side — `max(0, cap - attempts)`).
371
+ * submitted check's `attemptsRemaining` is decremented locally, as is a match
372
+ * executed decisively by a liveness bundle (one attempt per executed check).
373
+ * Same-key transport replays are resolved before this merge is called.
373
374
  * This keeps the happy path free of extra `GET /hosted/session` round-trips.
374
375
  */
375
376
  declare function mergeSessionView(prev: HostedSessionView, next: SessionView, submitted: CheckType): HostedSessionView;
376
377
  /**
377
378
  * Map the session view to the public result:
378
379
  * - `completed/approved → approved`, `completed/review` or `review_pending → review`,
379
- * `failed` or `completed/rejected → rejected` (reason = the deciding step's);
380
+ * `failed` or `completed/rejected → rejected` (session-policy reason takes
381
+ * precedence on a failed session; otherwise use the deciding step's reason);
380
382
  * - `expired → unavailable` (no reason);
381
383
  * - in flight: a biometric step parked at `input_required` with a retryable
382
384
  * reason → `retry` when `autoRetry` and attempts remain, else `rejected`
385
+ * (`mobile_required` → `unavailable`: only a phone can capture it)
383
386
  * (the partner opted out of retries — this capture was refused); a step in
384
387
  * `review` with nothing executable left → `review`; otherwise `unavailable`
385
388
  * (a non-biometric frontier the SDK cannot drive, or still processing).
@@ -1,8 +1,8 @@
1
1
  import { p as DeviceClass, i as CaptureState, b as CaptureArtifacts, c as CaptureErrorKind } from '../capture-session-v3-Okq0EQHG.js';
2
- export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, I as IN_CIRCLE_FACTOR } from '../capture-constraints-BujkZcfb.js';
3
- import { o as VerificationResult } from '../create-verification-c98uAxbl.js';
4
- export { A as AttestationError, w as CLIP_MIME_ALLOWLIST, x as CaptureEngine, H as HostedClientLike, y as LivenessCaptureInternalHandle, z as LivenessCaptureInternals, B as LivenessFlowDeps, E as LivenessFlowOutcome, F as PRELOAD_BLAZE_INIT_TIMEOUT_MS, I as PRELOAD_BUDGET_MS, J as PROCESSING_POLL_DELAY_MS, K as PROCESSING_POLL_MAX, M as REGISTRY_RETRY_DELAY_MS, N as SubmitExecutor, O as SubmitRuntime, T as TRANSPORT_REPLAY_ATTEMPTS, Q as TRANSPORT_REPLAY_DELAY_MS, U as VerificationInternals, W as createLivenessCaptureInternal, X as createVerificationInternal, Y as mapEngineState, Z as mapErrorKind, _ as mapGuidanceHint, $ as preloadedDetectorFactory, a0 as randomUuid, a1 as resetLivenessAssetsForTests, a2 as runLivenessFlow, a3 as runSubmission, a4 as setPreloadLoaderForTests } from '../create-verification-c98uAxbl.js';
5
- import { C as CheckReason, c as HostedSessionView, d as HostedStepView, h as SessionView, b as CheckType } from '../hosted-client-DWzCRYJK.js';
2
+ export { C as CENTERED_FACTOR, a as CIRCLE_RADIUS_FACTOR, I as IN_CIRCLE_FACTOR, d as detectIsMobile } from '../capture-constraints-BujkZcfb.js';
3
+ import { p as VerificationResult } from '../create-verification-CGazwtAh.js';
4
+ export { A as AttestationError, x as CLIP_MIME_ALLOWLIST, y as CaptureEngine, H as HostedClientLike, I as INFERENCE_RETRY_ATTEMPTS, z as INFERENCE_RETRY_DEFAULT_S, B as LivenessCaptureInternalHandle, E as LivenessCaptureInternals, F as LivenessFlowDeps, J as LivenessFlowOutcome, K as PRELOAD_BLAZE_INIT_TIMEOUT_MS, M as PRELOAD_BUDGET_MS, N as PROCESSING_POLL_DELAY_MS, O as PROCESSING_POLL_MAX, Q as REGISTRY_RETRY_DELAY_MS, T as SubmitExecutor, U as SubmitRuntime, W as TRANSPORT_REPLAY_ATTEMPTS, X as TRANSPORT_REPLAY_DELAY_MS, Y as VerificationInternals, Z as createLivenessCaptureInternal, _ as createVerificationInternal, $ as mapEngineState, a0 as mapErrorKind, a1 as mapGuidanceHint, a2 as preloadedDetectorFactory, a3 as randomUuid, a4 as resetLivenessAssetsForTests, a5 as runLivenessFlow, a6 as runSubmission, a7 as setPreloadLoaderForTests } from '../create-verification-CGazwtAh.js';
5
+ import { C as CheckReason, f as HostedSessionView, g as HostedStepView, q as SessionView, b as CheckType } from '../hosted-client-kBeq-mnJ.js';
6
6
  import '../detect-worker-CKXHlXx9.js';
7
7
 
8
8
  /** Physical geometry the scanner frames (ISO/IEC 7810 / ICAO 9303). */
@@ -368,18 +368,21 @@ declare function stepOf(view: HostedSessionView, checkType: CheckType): HostedSt
368
368
  /**
369
369
  * Fold a submit response (partner `SessionView`: no attemptsRemaining) into the
370
370
  * hosted view: status/outcome/step states+reasons come from the response; the
371
- * submitted check's `attemptsRemaining` is decremented locally (every accepted
372
- * submit consumes exactly one attempt server-side — `max(0, cap - attempts)`).
371
+ * submitted check's `attemptsRemaining` is decremented locally, as is a match
372
+ * executed decisively by a liveness bundle (one attempt per executed check).
373
+ * Same-key transport replays are resolved before this merge is called.
373
374
  * This keeps the happy path free of extra `GET /hosted/session` round-trips.
374
375
  */
375
376
  declare function mergeSessionView(prev: HostedSessionView, next: SessionView, submitted: CheckType): HostedSessionView;
376
377
  /**
377
378
  * Map the session view to the public result:
378
379
  * - `completed/approved → approved`, `completed/review` or `review_pending → review`,
379
- * `failed` or `completed/rejected → rejected` (reason = the deciding step's);
380
+ * `failed` or `completed/rejected → rejected` (session-policy reason takes
381
+ * precedence on a failed session; otherwise use the deciding step's reason);
380
382
  * - `expired → unavailable` (no reason);
381
383
  * - in flight: a biometric step parked at `input_required` with a retryable
382
384
  * reason → `retry` when `autoRetry` and attempts remain, else `rejected`
385
+ * (`mobile_required` → `unavailable`: only a phone can capture it)
383
386
  * (the partner opted out of retries — this capture was refused); a step in
384
387
  * `review` with nothing executable left → `review`; otherwise `unavailable`
385
388
  * (a non-biometric frontier the SDK cannot drive, or still processing).