@smileid/usesmileid 12.2.0 → 12.3.0
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.
- package/CHANGELOG.md +5 -1
- package/README.md +57 -18
- package/dist/camera/bounding_box_metering_region.d.ts +10 -0
- package/dist/camera/bounding_box_metering_region.js +1 -0
- package/dist/camera/camera_defaults.d.ts +0 -2
- package/dist/camera/camera_defaults.js +1 -1
- package/dist/camera/document_image_pipeline.d.ts +9 -0
- package/dist/camera/document_image_pipeline.js +1 -1
- package/dist/camera/imported_document_folder.d.ts +15 -0
- package/dist/camera/imported_document_folder.js +1 -0
- package/dist/camera/kamera_config_factory.d.ts +11 -1
- package/dist/camera/kamera_config_factory.js +1 -1
- package/dist/camera/use_smile_id_frame_stream.js +1 -1
- package/dist/camera/use_smile_id_kamera_camera_system.d.ts +46 -2
- package/dist/camera/use_smile_id_kamera_camera_system.js +1 -1
- package/dist/core/exception/use_smile_id_error_code.js +1 -1
- package/dist/core/exception/use_smile_id_network_exception.d.ts +10 -3
- package/dist/core/exception/use_smile_id_network_exception.js +1 -1
- package/dist/core/is_development_build.d.ts +6 -0
- package/dist/core/is_development_build.js +1 -0
- package/dist/core/models/config.d.ts +6 -0
- package/dist/core/models/ml_config.d.ts +1 -1
- package/dist/core/models/network_config.d.ts +4 -1
- package/dist/core/models/params.d.ts +8 -6
- package/dist/core/models/result.d.ts +11 -0
- package/dist/core/models/result.js +1 -1
- package/dist/core/perf/capture_perf_trace.d.ts +90 -0
- package/dist/core/perf/capture_perf_trace.js +1 -0
- package/dist/data/api/interceptors/logging_interceptor.js +1 -1
- package/dist/data/api/interceptors/smile_auth_interceptor.js +1 -1
- package/dist/data/api/request_capture.d.ts +16 -0
- package/dist/data/api/request_capture.js +1 -0
- package/dist/data/api/smile_id_api.d.ts +1 -1
- package/dist/data/api/smile_id_api.js +1 -1
- package/dist/data/factory/networking_factory.d.ts +3 -1
- package/dist/data/factory/networking_factory.js +1 -1
- package/dist/data/model/captured_job.d.ts +49 -0
- package/dist/data/model/captured_job.js +1 -0
- package/dist/data/model/job_request.d.ts +1 -1
- package/dist/data/model/sealed_job_request.d.ts +15 -0
- package/dist/data/model/sealed_job_request.js +1 -0
- package/dist/data/model/token_payload.d.ts +5 -7
- package/dist/data/model/token_payload.js +1 -1
- package/dist/data/model/user_details_payload.d.ts +6 -4
- package/dist/data/repository/use_smile_id_repository.d.ts +7 -0
- package/dist/data/repository/use_smile_id_repository_impl.d.ts +29 -2
- package/dist/data/repository/use_smile_id_repository_impl.js +1 -1
- package/dist/data/security/job_package_crypto.d.ts +41 -0
- package/dist/data/security/job_package_crypto.js +1 -0
- package/dist/data/security/job_package_sealer.d.ts +35 -0
- package/dist/data/security/job_package_sealer.js +1 -0
- package/dist/data/security/signing_crypto.d.ts +34 -0
- package/dist/data/security/signing_crypto.js +1 -1
- package/dist/data/util/retry_util.d.ts +9 -6
- package/dist/data/util/retry_util.js +1 -1
- package/dist/debug/selfie_preview_debug_geometry.d.ts +13 -13
- package/dist/debug/selfie_preview_debug_geometry.js +1 -1
- package/dist/debug/use_smile_id_debug.d.ts +25 -2
- package/dist/debug/use_smile_id_debug.js +1 -1
- package/dist/debug/use_smile_id_document_preview_debug_overlay.js +1 -1
- package/dist/debug/use_smile_id_selfie_preview_debug_overlay.d.ts +5 -1
- package/dist/debug/use_smile_id_selfie_preview_debug_overlay.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/l10n/strings_en.d.ts +3 -3
- package/dist/l10n/strings_en.js +2 -2
- package/dist/l10n/use_smile_id_localizations.d.ts +5 -7
- package/dist/l10n/use_smile_id_localizations.js +1 -1
- package/dist/metadata/metadata_configuration_mappers.d.ts +3 -5
- package/dist/metadata/metadata_configuration_mappers.js +1 -1
- package/dist/metadata/use_smile_id_metadata_factory.js +1 -1
- package/dist/presentation/assets/si_dark_lighting_animation.json +1 -927
- package/dist/presentation/assets/si_device_orientation_animation.json +1 -850
- package/dist/presentation/assets/si_document_green_book_hero_animation.json +1 -4740
- package/dist/presentation/assets/si_document_hero_animation.json +1 -4870
- package/dist/presentation/assets/si_document_hero_back_animation.json +1 -2122
- package/dist/presentation/assets/si_document_passport_hero_animation.json +1 -14540
- package/dist/presentation/assets/si_ess_all_directions_hero_animation.json +1 -5906
- package/dist/presentation/assets/si_ess_animation_all_directions.json +1 -5906
- package/dist/presentation/assets/si_selfie_hero_animation.json +1 -1468
- package/dist/presentation/assets/si_smile_to_capture_animation.json +1 -1412
- package/dist/presentation/components/helpers/captured_image_uri.d.ts +11 -0
- package/dist/presentation/components/helpers/captured_image_uri.js +1 -0
- package/dist/presentation/components/helpers/captured_oval_region.d.ts +40 -0
- package/dist/presentation/components/helpers/captured_oval_region.js +1 -0
- package/dist/presentation/components/helpers/document_interior_crop.d.ts +13 -2
- package/dist/presentation/components/helpers/document_interior_crop.js +1 -1
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.d.ts +35 -29
- package/dist/presentation/components/helpers/enhanced_smart_selfie_animation_frames.js +1 -1
- package/dist/presentation/components/helpers/selfie_interior_crop.js +1 -1
- package/dist/presentation/components/use_smile_id_capture_content.d.ts +5 -2
- package/dist/presentation/components/use_smile_id_capture_content.js +1 -1
- package/dist/presentation/components/use_smile_id_captured_document_image.d.ts +8 -4
- package/dist/presentation/components/use_smile_id_captured_document_image.js +1 -1
- package/dist/presentation/components/use_smile_id_captured_image_oval.d.ts +6 -0
- package/dist/presentation/components/use_smile_id_captured_image_oval.js +1 -1
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.d.ts +17 -7
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_clip.js +1 -1
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.d.ts +13 -14
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_direction_animation.js +1 -1
- package/dist/presentation/components/use_smile_id_enhanced_smart_selfie_full_animation.js +1 -1
- package/dist/presentation/components/use_smile_id_face_oval_image.js +1 -1
- package/dist/presentation/flow/analytics/unsatisfied_reasons.d.ts +14 -0
- package/dist/presentation/flow/analytics/unsatisfied_reasons.js +1 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.d.ts +8 -7
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event.js +1 -1
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event_kind.d.ts +9 -0
- package/dist/presentation/flow/analytics/use_smile_id_analytics_event_kind.js +1 -1
- package/dist/presentation/flow/config/flow_configuration_camera.d.ts +9 -0
- package/dist/presentation/flow/config/flow_configuration_camera.js +1 -0
- package/dist/presentation/flow/dsl/builder/config_builder.d.ts +6 -0
- package/dist/presentation/flow/dsl/builder/config_builder.js +1 -1
- package/dist/presentation/flow/dsl/builder/ml_builder.d.ts +1 -7
- package/dist/presentation/flow/dsl/builder/ml_builder.js +1 -1
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.d.ts +0 -9
- package/dist/presentation/flow/dsl/use_smile_id_flow_builder.js +1 -1
- package/dist/presentation/flow/flow_navigation_manager.d.ts +39 -70
- package/dist/presentation/flow/flow_navigation_manager.js +1 -1
- package/dist/presentation/flow/flow_navigation_manager_analytics.d.ts +23 -0
- package/dist/presentation/flow/flow_navigation_manager_analytics.js +1 -0
- package/dist/presentation/flow/flow_navigation_manager_documents.d.ts +18 -0
- package/dist/presentation/flow/flow_navigation_manager_documents.js +1 -0
- package/dist/presentation/flow/flow_navigation_manager_job_request.d.ts +7 -0
- package/dist/presentation/flow/flow_navigation_manager_job_request.js +1 -0
- package/dist/presentation/flow/flow_navigation_manager_routing.d.ts +12 -0
- package/dist/presentation/flow/flow_navigation_manager_routing.js +1 -0
- package/dist/presentation/flow/flow_navigation_manager_submission.d.ts +17 -0
- package/dist/presentation/flow/flow_navigation_manager_submission.js +1 -0
- package/dist/presentation/flow/job_submission_state.d.ts +4 -0
- package/dist/presentation/flow/screen/helpers/face_session_config.d.ts +1 -1
- package/dist/presentation/flow/screen/helpers/failure_message.js +1 -1
- package/dist/presentation/flow/screen/orchestrated_capture_screen.js +1 -1
- package/dist/presentation/flow/screen/orchestrated_instructions_screen.js +1 -1
- package/dist/presentation/flow/screen/orchestrated_preview_screen.js +1 -1
- package/dist/presentation/flow/screen/orchestrated_processing_screen.js +1 -1
- package/dist/presentation/flow/use_smile_id_flow.js +1 -1
- package/dist/presentation/flow/validation/flow_validator.d.ts +0 -19
- package/dist/presentation/flow/validation/flow_validator.js +1 -1
- package/dist/presentation/flow/validation/job_type_validator.js +1 -1
- package/dist/presentation/screen/helpers/capture_screen_helpers.d.ts +0 -12
- package/dist/presentation/screen/helpers/capture_screen_helpers.js +1 -1
- package/dist/presentation/screen/helpers/capture_ui_state.d.ts +33 -6
- package/dist/presentation/screen/helpers/capture_ui_state.js +1 -1
- package/dist/presentation/screen/helpers/dropped_frames.d.ts +6 -0
- package/dist/presentation/screen/helpers/dropped_frames.js +1 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.d.ts +2 -0
- package/dist/presentation/screen/helpers/ess_turn_haptics.js +1 -1
- package/dist/presentation/screen/helpers/instructions_screen_helpers.d.ts +5 -1
- package/dist/presentation/screen/helpers/instructions_screen_helpers.js +1 -1
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.d.ts +23 -1
- package/dist/presentation/screen/helpers/use_capture_orientation_lock.js +1 -1
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.d.ts +1 -1
- package/dist/presentation/screen/helpers/use_debounced_feedback_key.js +1 -1
- package/dist/presentation/screen/use_smile_id_capture_screen.d.ts +4 -1
- package/dist/presentation/screen/use_smile_id_capture_screen.js +1 -1
- package/dist/presentation/screen/use_smile_id_consent_screen.js +1 -1
- package/dist/presentation/screen/use_smile_id_preview_screen.d.ts +3 -0
- package/dist/presentation/screen/use_smile_id_preview_screen.js +1 -1
- package/dist/presentation/screen/use_smile_id_processing_screen.d.ts +3 -0
- package/dist/presentation/screen/use_smile_id_processing_screen.js +1 -1
- package/dist/presentation/utils/locale_utils.d.ts +3 -6
- package/dist/presentation/utils/locale_utils.js +1 -1
- package/dist/testing/scenario_expectations.d.ts +7 -2
- package/dist/testing/scenario_expectations.js +1 -1
- package/dist/testing/scripted_scan_results.d.ts +2 -1
- package/dist/testing/scripted_scan_results.js +1 -1
- package/package.json +7 -7
- package/dist/presentation/flow/validation/user_details_validator.d.ts +0 -8
- package/dist/presentation/flow/validation/user_details_validator.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useState as
|
|
1
|
+
"use strict";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{useState as D}from"react";import{StyleSheet as U,View as h}from"react-native";import{SafeAreaView as k}from"react-native-safe-area-context";import{useUseSmileIDTheme as x}from"../theme/theme_context";import{defaultFrameAspectRatio as v}from"../../core/models/document_type";import{ATTRIBUTION_TEST_ID as w,UseSmileIDAttribution as R}from"../components/use_smile_id_attribution";import{UseSmileIDCapturedDocumentImage as b}from"../components/use_smile_id_captured_document_image";import{UseSmileIDCapturedImageOval as A}from"../components/use_smile_id_captured_image_oval";import{UseSmileIDCardSurface as E}from"../components/use_smile_id_card_surface";import{UseSmileIDFailedContent as F}from"../components/use_smile_id_failed_content";import{UseSmileIDLoadingContent as T}from"../components/use_smile_id_loading_content";import{UseSmileIDStatusIndicator as m}from"../components/use_smile_id_status_indicator";import{UseSmileIDSuccessContent as L}from"../components/use_smile_id_success_content";import{useUseSmileIDLocalizations as B}from"../../l10n/use_smile_id_localizations_provider";function l(e){switch(e){case"loading":return"loading";case"success":return"success";case"failed":return"failure"}}export function UseSmileIDProcessingScreen(e){const f=x(),t=e.theme??f,a=B(),I=e.showAttribution??!0,_=e.showFaceOval??!0,[u,S]=D({width:0,height:0}),y=g=>{S({width:g.nativeEvent.layout.width,height:g.nativeEvent.layout.height})},C=typeof e.capturedSelfiePath=="string"&&e.capturedSelfiePath.length>0,d=typeof e.documentImageUri=="string"&&e.documentImageUri.length>0,c=e.continueButton,i=e.retryButton,o=e.exitButton;return r(k,{style:[s.root,{backgroundColor:t.colors.background}],testID:"si_processing_screen",onLayout:y,children:[d?n(b,{aspectRatio:e.documentAspectRatio??v("Landscape"),...e.documentImageUri?{uri:e.documentImageUri}:{},...e.documentBorderFraction!==void 0?{borderFraction:e.documentBorderFraction}:{},imageTestID:"si_processing_document_image",imageAccessibilityLabel:a.siCdCapturedImage,overlayChild:n(m,{state:l(e.state.kind),theme:t,testID:"si_processing_center_indicator"}),theme:t}):_?n(A,{screenWidth:u.width,screenHeight:u.height,...e.selfieCaptureGeometry?{captureGeometry:e.selfieCaptureGeometry}:{},...C&&e.capturedSelfiePath?{uri:e.capturedSelfiePath}:{},imageTestID:"si_processing_image",imageAccessibilityLabel:a.siCdCapturedImage,overlayChild:n(m,{state:l(e.state.kind),theme:t,testID:"si_processing_center_indicator"}),theme:t}):n(h,{style:s.noOvalRegion,testID:"si_processing_no_oval_region",children:n(m,{state:l(e.state.kind),theme:t,testID:"si_processing_center_indicator"})}),r(E,{theme:t,style:s.card,children:[e.state.kind==="loading"?n(T,{theme:t,testID:"si_processing_loading_content"}):null,e.state.kind==="success"?n(L,{theme:t,...d?{title:a.siDocumentProcessingComplete}:{},...e.state.message!==void 0?{message:e.state.message}:{},...e.onContinue&&!c?{onContinue:e.onContinue}:{},testID:"si_processing_success_content"}):null,e.state.kind==="failed"?n(F,{theme:t,...e.state.errorMessage!==void 0?{errorMessage:e.state.errorMessage}:{},...e.onRetry&&!i?{onRetry:e.onRetry}:{},...e.onExit&&!o?{onExit:e.onExit}:{},testID:"si_processing_failed_content"}):null,e.state.kind==="success"&&c&&e.onContinue?c({onClick:e.onContinue}):null,e.state.kind==="failed"&&(i||o)?r(h,{style:[s.actionStack,{gap:t.spacing.small}],children:[i&&e.onRetry?i({onClick:e.onRetry}):null,o&&e.onExit?o({onClick:e.onExit}):null]}):null]}),I?n(R,{theme:t,testID:w}):null]})}const s=U.create({root:{flex:1,overflow:"hidden"},noOvalRegion:{flex:1,alignItems:"center",justifyContent:"center"},card:{alignItems:"center"},actionStack:{alignSelf:"stretch"}});
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { GlobalPrivacyControl } from "../../core/models/global_privacy_control";
|
|
2
2
|
/**
|
|
3
|
-
* Returns the device's
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* (Expo SDK 51+, with `enableHermesLocaleAPI` enabled by default) and
|
|
7
|
-
* JSC reflects the system locale. Returns an empty string if `Intl`
|
|
8
|
-
* is unavailable — callers then treat the locale as non-EU.
|
|
3
|
+
* Returns the device's current BCP-47 locale tag (e.g. `"en-US"`): the native module's reading,
|
|
4
|
+
* which follows a language change while the app runs, else `Intl`, which keeps the launch locale.
|
|
5
|
+
* Empty if neither is available — callers then treat the locale as non-EU.
|
|
9
6
|
*/
|
|
10
7
|
export declare function getDeviceLocale(): string;
|
|
11
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{GlobalPrivacyControl as
|
|
1
|
+
"use strict";import{CurrentLocaleProvider as o}from"@smileid/usesmileid_bridge/internal";import{GlobalPrivacyControl as r}from"../../core/models/global_privacy_control";const n=new Set(["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"]);export function getDeviceLocale(){const t=o.currentLocale();if(t)return t;try{return Intl.DateTimeFormat().resolvedOptions().locale}catch{return""}}export function isDeviceLocaleInEU(t=getDeviceLocale()){const e=t.split("-")[1]?.toUpperCase();return e!==void 0&&n.has(e)}export function getDefaultConsentState(t=r.OptOut,e=getDeviceLocale()){return t===r.OptOut?!0:!isDeviceLocaleInEU(e)}
|
|
@@ -8,8 +8,13 @@ export interface ScenarioExpectations {
|
|
|
8
8
|
readonly screens: readonly string[];
|
|
9
9
|
/** Ordered analytics event types that must fire (subset-in-order). */
|
|
10
10
|
readonly events: readonly string[];
|
|
11
|
-
/**
|
|
12
|
-
|
|
11
|
+
/**
|
|
12
|
+
* How the capture session ends. `running`: the capture keeps looking until
|
|
13
|
+
* the user leaves, since a selfie or document capture has no time limit.
|
|
14
|
+
* `timeout` is no longer produced (a capture has no time limit) and is kept
|
|
15
|
+
* only so an older scenario still parses.
|
|
16
|
+
*/
|
|
17
|
+
readonly terminal?: "submitted" | "captured" | "running" | "unsatisfied" | "timeout";
|
|
13
18
|
}
|
|
14
19
|
/**
|
|
15
20
|
* Extracts and validates the `expected` block from an already-parsed shared
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=new Set(["submitted","captured","running","unsatisfied","timeout"]);export function parseScenarioExpectations(e){if(typeof e!="object"||e===null)throw new Error("scenario must be a JSON object");const n=e.expected;if(n===void 0)return{screens:[],events:[]};if(typeof n!="object"||n===null)throw new Error("scenario.expected must be an object when present");const t=n,r=c(t.screens,"scenario.expected.screens"),i=c(t.events,"scenario.expected.events"),o=t.terminal;if(o===void 0)return{screens:r,events:i};if(typeof o!="string"||!s.has(o))throw new Error(`scenario.expected.terminal must be one of ${[...s].join(", ")}, got ${String(o)}`);return{screens:r,events:i,terminal:o}}function c(e,n){if(e===void 0)return[];if(!Array.isArray(e)||e.some(t=>typeof t!="string"))throw new Error(`${n} must be an array of strings`);return e}export function expectSubsetInOrder(e,n,t="sequence"){let r=0;for(const i of e)r<n.length&&i===n[r]&&(r+=1);if(r!==n.length)throw new Error(`${t}: expected [${n.slice(r).join(", ")}] to appear in order within [${e.join(", ")}]`)}
|
|
@@ -7,7 +7,8 @@ import type { ScriptedScenario } from "./fake_face_analyzer";
|
|
|
7
7
|
* native frame-processor concern; pixels never reach JS).
|
|
8
8
|
*
|
|
9
9
|
* `noFace` → `initial`; `faceTooFar` / `faceCentered` → `found`; `headTurn*` →
|
|
10
|
-
* `headTurn` with the direction
|
|
10
|
+
* `headTurn` with the direction and a `turnProgress` rising to 1 across the
|
|
11
|
+
* step's frames (`poseMatched` on the held frame); a centered
|
|
11
12
|
* step between two turns opens on the `si_ess_look_at_camera` re-center gate;
|
|
12
13
|
* `satisfied` → one `finished` result carrying a `selfie` event plus
|
|
13
14
|
* [livenessCount] `liveness` events at opaque `file://` URLs the screen never
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{CaptureReadyEventKind as m,UseSmileIDScanStateType as
|
|
1
|
+
"use strict";import{CaptureReadyEventKind as m,UseSmileIDScanStateType as i}from"@smileid/usesmileid_bridge";const f={headTurnLeft:"left",headTurnRight:"right",headTurnUp:"up"};export function scriptedFaceScanResults(u,r={}){const t=r.livenessCount??2,n={faces:[],brightness:128},s=[],d=u.steps;for(const[p,o]of d.entries()){const c=o.holdFrames??1;if(o.emit==="satisfied")return s.push({output:n,state:{type:i.Finished},capturedEvents:T(t)}),s;const l=f[o.emit];if(l!==void 0){for(let e=0;e<c;e++)s.push({output:n,state:{type:i.HeadTurn,currentDirection:l,turnProgress:(e+1)/c,...e===c-1?{poseMatched:!0}:{}},capturedEvents:[]});continue}const h=d[p-1]?.emit,a=E(d,p);if(o.emit==="faceCentered"&&h!==void 0&&f[h]!==void 0&&a!==void 0){s.push({output:n,state:{type:i.HeadTurn,currentDirection:a,feedback:"si_ess_look_at_camera"},capturedEvents:[]});for(let e=1;e<c;e++)s.push({output:n,state:{type:i.HeadTurn,currentDirection:a},capturedEvents:[]});continue}const v=o.emit==="noFace"?i.Initial:i.Found;for(let e=0;e<c;e++)s.push({output:n,state:{type:v},capturedEvents:[]})}return s}function E(u,r){for(const t of u.slice(r+1)){const n=f[t.emit];if(n!==void 0)return n}}function T(u){const r=[{kind:m.Selfie,captureIndex:0,url:"file://selfie-0.jpg"}];for(let t=1;t<=u;t++)r.push({kind:m.Liveness,captureIndex:t,url:`file://liveness-${t}.jpg`});return r}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smileid/usesmileid",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.3.0",
|
|
4
4
|
"description": "Official Smile ID React Native (Expo) SDK for identity verification: selfie capture, liveness checks, and document verification powered by on-device ML.",
|
|
5
5
|
"homepage": "https://usesmileid.com",
|
|
6
6
|
"repository": {
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"CHANGELOG.md"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@smileid/kamera": "1.
|
|
51
|
+
"@smileid/kamera": "1.2.0",
|
|
52
52
|
"axios": "^1.20.0",
|
|
53
53
|
"zod": "^4.6.5",
|
|
54
|
-
"@smileid/usesmileid_bridge": "12.
|
|
55
|
-
"@smileid/usesmileid_platform_interface": "12.
|
|
54
|
+
"@smileid/usesmileid_bridge": "12.3.0",
|
|
55
|
+
"@smileid/usesmileid_platform_interface": "12.3.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@react-native-async-storage/async-storage": ">=1.21.0",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@smileid/kamera-testing": "1.
|
|
108
|
+
"@smileid/kamera-testing": "1.2.0",
|
|
109
109
|
"@types/react": "^19.2.18",
|
|
110
|
-
"expo": "~57.0.
|
|
110
|
+
"expo": "~57.0.26",
|
|
111
111
|
"expo-brightness": "~57.0.2",
|
|
112
112
|
"expo-file-system": "~57.0.7",
|
|
113
113
|
"expo-font": "~57.0.4",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"expo-image-manipulator": "~57.0.20",
|
|
116
116
|
"expo-image-picker": "~57.0.20",
|
|
117
117
|
"expo-keep-awake": "~57.0.2",
|
|
118
|
-
"expo-modules-core": "^57.0.
|
|
118
|
+
"expo-modules-core": "^57.0.21",
|
|
119
119
|
"expo-screen-orientation": "~57.0.2",
|
|
120
120
|
"jpeg-js": "^0.4.4",
|
|
121
121
|
"lottie-react-native": "~7.5.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { UserDetails } from "../../../core/models/params";
|
|
2
|
-
import type { TokenPayload } from "../../../data/model/token_payload";
|
|
3
|
-
import type { ValidationIssue } from "./validation_state";
|
|
4
|
-
/**
|
|
5
|
-
* Field-union rule shared by the content validator and the job-type required
|
|
6
|
-
* rule: a field is covered when the token binds it or the builder supplies it.
|
|
7
|
-
*/
|
|
8
|
-
export declare function missingUserDetailsFieldIssues(userDetails: UserDetails | undefined, tokenPayload: TokenPayload | undefined): ValidationIssue[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";import{InvalidFieldValueException as o}from"../../../core/exception/job_validation_exceptions";export function missingUserDetailsFieldIssues(n,e){const t=[],a=e===void 0?"must not be blank":"not bound by the token and not supplied on the builder",m={givenNames:e?.hasGivenNames===!0,lastName:e?.hasLastName===!0};for(const s of["givenNames","lastName"]){if(m[s])continue;const i=n?.[s];(!i||!i.trim())&&t.push(new o({fieldName:`userDetails.${s}`,reason:a}))}const u=!!n?.email&&n.email.trim().length>0,l=!!n?.phoneNumber&&n.phoneNumber.trim().length>0,r=e?.hasEmail===!0||e?.hasPhoneNumber===!0;return!u&&!l&&!r&&t.push(new o({fieldName:"userDetails",reason:e===void 0?"at least one of email or phoneNumber must be non blank":"at least one contact field must be bound by the token or supplied on the builder"})),t}
|