@sekyro/react-native 0.1.0-rc.13 → 0.1.0-rc.15
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 +13 -0
- package/android/src/main/java/ai/sekyro/reactnative/ConfigMapper.kt +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +1 -1
- package/ios/SekyroRNBridge.swift +3 -8
- package/package.json +3 -3
- package/sbom.cdx.json +4 -4
- package/src/specs/NativeSekyroReactNative.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @sekyro/react-native
|
|
2
2
|
|
|
3
|
+
## 0.1.0-rc.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 06a272a: Pins the native SDKs 0.1.0-rc.14: in a Sandbox simulation the code screens show the code to enter and the capture screens offer "Skip with test data"; the document country list starts with the person's own country; back from the portrait camera returns to its instructions; the ID photo check accepts one eye that is always less open and a relaxed narrow mouth.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-rc.14
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a012c1b: Pins the native SDKs 0.1.0-rc.13: the new flow design, change the number or address on the code screen, the terms in a sheet that is easy to close, and automatic retries when the API is busy.
|
|
14
|
+
- dfd36ff: A finished result carries `level` (0 to 3, the new `SekyroLevel` type) and `assurance` (how the level was proved) once the session is decided, when the native SDK reports them (native 0.1.0-rc.13 on). Absent before that, on an expired session and with an older native SDK. The glue reads them from the native SDK's own wire form, so it builds against the current native pin too.
|
|
15
|
+
|
|
3
16
|
## 0.1.0-rc.13
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -4,6 +4,7 @@ import ai.sekyro.SekyroConfig
|
|
|
4
4
|
import ai.sekyro.SekyroLocale
|
|
5
5
|
import ai.sekyro.SekyroResult
|
|
6
6
|
import ai.sekyro.SekyroTheme
|
|
7
|
+
import ai.sekyro.SekyroWire
|
|
7
8
|
import ai.sekyro.core.DisplayStatus
|
|
8
9
|
import com.facebook.react.bridge.Arguments
|
|
9
10
|
import com.facebook.react.bridge.ReadableMap
|
|
@@ -69,6 +70,11 @@ internal object ConfigMapper {
|
|
|
69
70
|
DisplayStatus.APPROVED -> "approved"; DisplayStatus.REVIEW_PENDING -> "review_pending"
|
|
70
71
|
DisplayStatus.REJECTED -> "rejected"; DisplayStatus.EXPIRED -> "expired"
|
|
71
72
|
})
|
|
73
|
+
// The level and how it was proved when the native SDK reports them (rc.13 on), read from its own wire
|
|
74
|
+
// form (so the glue builds against an older pin too).
|
|
75
|
+
val wire = SekyroWire.result(r)
|
|
76
|
+
(wire["level"] as? Int)?.takeIf { it in 0..3 }?.let { putInt("level", it) }
|
|
77
|
+
(wire["assurance"] as? String)?.takeIf { it.isNotEmpty() }?.let { putString("assurance", it) }
|
|
72
78
|
}
|
|
73
79
|
SekyroResult.Cancelled -> putString("status", "cancelled")
|
|
74
80
|
is SekyroResult.Failed -> { putString("status", "failed"); putString("code", r.code) }
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var f=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var O=(e,r)=>{for(var t in r)f(e,t,{get:r[t],enumerable:!0})},
|
|
1
|
+
"use strict";var f=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var C=Object.prototype.hasOwnProperty;var O=(e,r)=>{for(var t in r)f(e,t,{get:r[t],enumerable:!0})},b=(e,r,t,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of h(r))!C.call(e,n)&&n!==t&&f(e,n,{get:()=>r[n],enumerable:!(s=w(r,n))||s.enumerable});return e};var x=e=>b(f({},"__esModule",{value:!0}),e);var Y={};O(Y,{SDK_VERSION:()=>N,SekyroError:()=>l,SekyroFlow:()=>R,nativeVersion:()=>_,startSekyro:()=>y});module.exports=x(Y);var S=require("react-native"),c=S.TurboModuleRegistry.get("SekyroReactNative");var l=class extends Error{code;constructor(r,t=r){super(t),this.name="SekyroError",this.code=r}};var T=500,I=new Set(["ar","fr","en","es","pt","de"]),D=["brand","brandFg","bg","surface","fg","fgMuted","border"],F=["danger","success","warning"],k=!1,V=new Set(["clientToken","apiOrigin","locale","theme","strings","onEvent"]),L=/^#[0-9a-fA-F]{6}$/,M=/^http:\/\/(localhost|127\.0\.0\.1|10\.0\.2\.2)(:\d+)?$/,a=e=>{throw new l("invalid_config",`invalid config: ${e}`)};function g(e){(typeof e!="object"||e===null)&&a("config");for(let s of Object.keys(e))V.has(s)||a(`unknown key "${s.slice(0,32)}"`);(typeof e.clientToken!="string"||e.clientToken.length===0)&&a("clientToken");let r={clientToken:e.clientToken};e.apiOrigin!==void 0&&(typeof e.apiOrigin=="string"&&(/^https:\/\/[a-z0-9.-]+(:\d+)?$/i.test(e.apiOrigin)||__DEV__&&M.test(e.apiOrigin))||a("apiOrigin"),r.apiOrigin=e.apiOrigin),e.locale!==void 0&&(I.has(e.locale)||a("locale"),r.locale=e.locale);let t=e.theme;if(t){if(t.colors){let s={};for(let[n,i]of Object.entries(t.colors))if(i!==void 0){if(F.includes(n)){__DEV__&&!k&&(k=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));continue}(!D.includes(n)||typeof i!="string"||!L.test(i))&&a(`theme.colors.${n.slice(0,32)}`),s[n]=i}r.colors=s}t.radius!==void 0&&((typeof t.radius!="number"||!Number.isFinite(t.radius)||t.radius<0||t.radius>32)&&a("theme.radius"),r.radius=t.radius),t.fontFamily!==void 0&&((typeof t.fontFamily!="string"||!/^[\w .-]{1,64}$/.test(t.fontFamily))&&a("theme.fontFamily"),r.fontFamily=t.fontFamily),t.darkMode!==void 0&&(["system","light","dark"].includes(t.darkMode)||a("theme.darkMode"),r.darkMode=t.darkMode)}if(e.strings){e.locale||a("strings need locale");let s=e.strings[e.locale]??{},n={},i=Object.entries(s).filter(([,o])=>o!==void 0);i.length>T&&a("strings (too many overrides)");for(let[o,p]of i)/^[a-zA-Z0-9_.]{1,96}$/.test(o)||a("strings key"),(typeof p!="string"||p.length>2e3)&&a(`strings.${o}`),n[o]=p;r.strings=n}return r}var $=new Set(["method","phone_otp","email_otp","registry","document","nfc","liveness","processing","result","update_required","eid","contact_choice","identity_summary","portrait"]);function v(e){if(e.type==="waiting_for_network")return{type:"waiting_for_network"};if(e.type!=="step"||!$.has(e.step))return null;let r=e.step,t=typeof e.retryReason=="string"&&/^[a-z0-9_]{1,64}$/.test(e.retryReason)?e.retryReason:void 0;return t?{type:"step",step:r,retryReason:t}:{type:"step",step:r}}var A=new Set(["approved","review_pending","rejected","expired"]),P=new Set([0,1,2,3]);function j(e){return typeof e=="string"&&e!==""}function m(e){return e.status==="cancelled"?{status:"cancelled"}:e.status==="failed"?{status:"failed",code:e.code||"unknown_error"}:e.status==="finished"&&e.sessionId&&A.has(e.displayStatus)?{status:"finished",sessionId:e.sessionId,displayStatus:e.displayStatus,...typeof e.level=="number"&&P.has(e.level)?{level:e.level}:{},...j(e.assurance)?{assurance:e.assurance}:{}}:{status:"failed",code:"unknown_error"}}function E(){if(!c)throw new l("unsupported_platform","the SekyroReactNative native module is not linked (New Architecture app, pod install / Gradle sync)");return c}var d=!1,K=new Set(["no_activity","unsupported_platform","flow_in_progress","invalid_config"]);async function y(e){let r=g(e),t=E();if(d)throw new l("flow_in_progress");d=!0;let s=e.onEvent,n=s?t.onEvent(i=>{let o=v(i);o&&s(o)}):void 0;try{return m(await t.start(r))}catch(i){let o=i?.code;if(typeof o=="string"&&K.has(o))throw new l(o);return{status:"failed",code:"unknown_error"}}finally{n?.remove(),d=!1}}function _(){return E().nativeVersion()}var u=require("react");function R(e){let r=(0,u.useRef)(null),t=(0,u.useRef)(e);return t.current=e,(0,u.useEffect)(()=>{if(r.current===e.clientToken)return;r.current=e.clientToken;let{onResult:s,onEvent:n,...i}=t.current;y({...i,onEvent:o=>t.current.onEvent?.(o)}).then(o=>t.current.onResult(o),o=>t.current.onResult({status:"failed",code:o instanceof l?o.code:"unknown_error"}))},[e.clientToken]),null}var N="0.1.0-rc.15";0&&(module.exports={SDK_VERSION,SekyroError,SekyroFlow,nativeVersion,startSekyro});
|
package/dist/index.d.cts
CHANGED
|
@@ -46,7 +46,7 @@ type SekyroEvent = {
|
|
|
46
46
|
interface SekyroConfig {
|
|
47
47
|
/** One-time session token from your backend (`sessions.create`). Never logged. */
|
|
48
48
|
clientToken: string;
|
|
49
|
-
/**
|
|
49
|
+
/** Leave unset: the default, `https://api.sekyro.ai`, serves Sandbox and Live sessions. */
|
|
50
50
|
apiOrigin?: string;
|
|
51
51
|
/**
|
|
52
52
|
* UI language of the flow; required when `strings` is set. Without it, the device language when it is one of the
|
|
@@ -65,11 +65,23 @@ interface SekyroConfig {
|
|
|
65
65
|
* asked to start again from your app), as on the native SDKs. @public
|
|
66
66
|
*/
|
|
67
67
|
type SekyroDisplayStatus = 'approved' | 'review_pending' | 'rejected' | 'expired';
|
|
68
|
+
/** The verification level a finished session proved (0 = rejected). @public */
|
|
69
|
+
type SekyroLevel = 0 | 1 | 2 | 3;
|
|
68
70
|
/** Display-only outcome; read the decision server-side (webhooks / `sessions.get`). @public */
|
|
69
71
|
type SekyroResult = {
|
|
70
72
|
status: 'finished';
|
|
71
73
|
sessionId: string;
|
|
72
74
|
displayStatus: SekyroDisplayStatus;
|
|
75
|
+
/**
|
|
76
|
+
* What the session proved (0 to 3, 0 = rejected), when the native SDK reports it (native 0.1.0-rc.13 on). Absent on
|
|
77
|
+
* an expired session and on older servers.
|
|
78
|
+
*/
|
|
79
|
+
level?: SekyroLevel;
|
|
80
|
+
/**
|
|
81
|
+
* How `level` was proved: `live_only`, `live_unique`, `document_biometric`, `chip_biometric`, `registry_biometric`,
|
|
82
|
+
* `supplied_biometric` or `eid_authenticated` (a newer server may add one). Absent when the server reports none.
|
|
83
|
+
*/
|
|
84
|
+
assurance?: string;
|
|
73
85
|
} | {
|
|
74
86
|
status: 'cancelled';
|
|
75
87
|
} | {
|
|
@@ -84,7 +96,7 @@ type SekyroResult = {
|
|
|
84
96
|
*/
|
|
85
97
|
declare function startSekyro(config: SekyroConfig): Promise<SekyroResult>;
|
|
86
98
|
/**
|
|
87
|
-
* Version of the bundled native core: `'android 0.1.0-rc.
|
|
99
|
+
* Version of the bundled native core: `'android 0.1.0-rc.14'` / `'ios 0.1.0-rc.14'`.
|
|
88
100
|
* @public
|
|
89
101
|
*/
|
|
90
102
|
declare function nativeVersion(): string;
|
|
@@ -116,4 +128,4 @@ declare class SekyroError extends Error {
|
|
|
116
128
|
*/
|
|
117
129
|
declare const SDK_VERSION: string;
|
|
118
130
|
|
|
119
|
-
export { SDK_VERSION, type SekyroColorRole, type SekyroConfig, type SekyroDisplayStatus, SekyroError, type SekyroErrorCode, type SekyroEvent, SekyroFlow, type SekyroFlowProps, type SekyroLocale, type SekyroResult, type SekyroStep, type SekyroTheme, nativeVersion, startSekyro };
|
|
131
|
+
export { SDK_VERSION, type SekyroColorRole, type SekyroConfig, type SekyroDisplayStatus, SekyroError, type SekyroErrorCode, type SekyroEvent, SekyroFlow, type SekyroFlowProps, type SekyroLevel, type SekyroLocale, type SekyroResult, type SekyroStep, type SekyroTheme, nativeVersion, startSekyro };
|
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ type SekyroEvent = {
|
|
|
46
46
|
interface SekyroConfig {
|
|
47
47
|
/** One-time session token from your backend (`sessions.create`). Never logged. */
|
|
48
48
|
clientToken: string;
|
|
49
|
-
/**
|
|
49
|
+
/** Leave unset: the default, `https://api.sekyro.ai`, serves Sandbox and Live sessions. */
|
|
50
50
|
apiOrigin?: string;
|
|
51
51
|
/**
|
|
52
52
|
* UI language of the flow; required when `strings` is set. Without it, the device language when it is one of the
|
|
@@ -65,11 +65,23 @@ interface SekyroConfig {
|
|
|
65
65
|
* asked to start again from your app), as on the native SDKs. @public
|
|
66
66
|
*/
|
|
67
67
|
type SekyroDisplayStatus = 'approved' | 'review_pending' | 'rejected' | 'expired';
|
|
68
|
+
/** The verification level a finished session proved (0 = rejected). @public */
|
|
69
|
+
type SekyroLevel = 0 | 1 | 2 | 3;
|
|
68
70
|
/** Display-only outcome; read the decision server-side (webhooks / `sessions.get`). @public */
|
|
69
71
|
type SekyroResult = {
|
|
70
72
|
status: 'finished';
|
|
71
73
|
sessionId: string;
|
|
72
74
|
displayStatus: SekyroDisplayStatus;
|
|
75
|
+
/**
|
|
76
|
+
* What the session proved (0 to 3, 0 = rejected), when the native SDK reports it (native 0.1.0-rc.13 on). Absent on
|
|
77
|
+
* an expired session and on older servers.
|
|
78
|
+
*/
|
|
79
|
+
level?: SekyroLevel;
|
|
80
|
+
/**
|
|
81
|
+
* How `level` was proved: `live_only`, `live_unique`, `document_biometric`, `chip_biometric`, `registry_biometric`,
|
|
82
|
+
* `supplied_biometric` or `eid_authenticated` (a newer server may add one). Absent when the server reports none.
|
|
83
|
+
*/
|
|
84
|
+
assurance?: string;
|
|
73
85
|
} | {
|
|
74
86
|
status: 'cancelled';
|
|
75
87
|
} | {
|
|
@@ -84,7 +96,7 @@ type SekyroResult = {
|
|
|
84
96
|
*/
|
|
85
97
|
declare function startSekyro(config: SekyroConfig): Promise<SekyroResult>;
|
|
86
98
|
/**
|
|
87
|
-
* Version of the bundled native core: `'android 0.1.0-rc.
|
|
99
|
+
* Version of the bundled native core: `'android 0.1.0-rc.14'` / `'ios 0.1.0-rc.14'`.
|
|
88
100
|
* @public
|
|
89
101
|
*/
|
|
90
102
|
declare function nativeVersion(): string;
|
|
@@ -116,4 +128,4 @@ declare class SekyroError extends Error {
|
|
|
116
128
|
*/
|
|
117
129
|
declare const SDK_VERSION: string;
|
|
118
130
|
|
|
119
|
-
export { SDK_VERSION, type SekyroColorRole, type SekyroConfig, type SekyroDisplayStatus, SekyroError, type SekyroErrorCode, type SekyroEvent, SekyroFlow, type SekyroFlowProps, type SekyroLocale, type SekyroResult, type SekyroStep, type SekyroTheme, nativeVersion, startSekyro };
|
|
131
|
+
export { SDK_VERSION, type SekyroColorRole, type SekyroConfig, type SekyroDisplayStatus, SekyroError, type SekyroErrorCode, type SekyroEvent, SekyroFlow, type SekyroFlowProps, type SekyroLevel, type SekyroLocale, type SekyroResult, type SekyroStep, type SekyroTheme, nativeVersion, startSekyro };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TurboModuleRegistry as
|
|
1
|
+
import{TurboModuleRegistry as m}from"react-native";var y=m.get("SekyroReactNative");var a=class extends Error{code;constructor(r,t=r){super(t),this.name="SekyroError",this.code=r}};var E=500,_=new Set(["ar","fr","en","es","pt","de"]),R=["brand","brandFg","bg","surface","fg","fgMuted","border"],N=["danger","success","warning"],c=!1,w=new Set(["clientToken","apiOrigin","locale","theme","strings","onEvent"]),h=/^#[0-9a-fA-F]{6}$/,C=/^http:\/\/(localhost|127\.0\.0\.1|10\.0\.2\.2)(:\d+)?$/,s=e=>{throw new a("invalid_config",`invalid config: ${e}`)};function d(e){(typeof e!="object"||e===null)&&s("config");for(let i of Object.keys(e))w.has(i)||s(`unknown key "${i.slice(0,32)}"`);(typeof e.clientToken!="string"||e.clientToken.length===0)&&s("clientToken");let r={clientToken:e.clientToken};e.apiOrigin!==void 0&&(typeof e.apiOrigin=="string"&&(/^https:\/\/[a-z0-9.-]+(:\d+)?$/i.test(e.apiOrigin)||__DEV__&&C.test(e.apiOrigin))||s("apiOrigin"),r.apiOrigin=e.apiOrigin),e.locale!==void 0&&(_.has(e.locale)||s("locale"),r.locale=e.locale);let t=e.theme;if(t){if(t.colors){let i={};for(let[l,n]of Object.entries(t.colors))if(n!==void 0){if(N.includes(l)){__DEV__&&!c&&(c=!0,console.warn("[sekyro] theme.colors.danger/success/warning are ignored: status colours are standard (removed in 1.0)"));continue}(!R.includes(l)||typeof n!="string"||!h.test(n))&&s(`theme.colors.${l.slice(0,32)}`),i[l]=n}r.colors=i}t.radius!==void 0&&((typeof t.radius!="number"||!Number.isFinite(t.radius)||t.radius<0||t.radius>32)&&s("theme.radius"),r.radius=t.radius),t.fontFamily!==void 0&&((typeof t.fontFamily!="string"||!/^[\w .-]{1,64}$/.test(t.fontFamily))&&s("theme.fontFamily"),r.fontFamily=t.fontFamily),t.darkMode!==void 0&&(["system","light","dark"].includes(t.darkMode)||s("theme.darkMode"),r.darkMode=t.darkMode)}if(e.strings){e.locale||s("strings need locale");let i=e.strings[e.locale]??{},l={},n=Object.entries(i).filter(([,o])=>o!==void 0);n.length>E&&s("strings (too many overrides)");for(let[o,u]of n)/^[a-zA-Z0-9_.]{1,96}$/.test(o)||s("strings key"),(typeof u!="string"||u.length>2e3)&&s(`strings.${o}`),l[o]=u;r.strings=l}return r}var O=new Set(["method","phone_otp","email_otp","registry","document","nfc","liveness","processing","result","update_required","eid","contact_choice","identity_summary","portrait"]);function S(e){if(e.type==="waiting_for_network")return{type:"waiting_for_network"};if(e.type!=="step"||!O.has(e.step))return null;let r=e.step,t=typeof e.retryReason=="string"&&/^[a-z0-9_]{1,64}$/.test(e.retryReason)?e.retryReason:void 0;return t?{type:"step",step:r,retryReason:t}:{type:"step",step:r}}var b=new Set(["approved","review_pending","rejected","expired"]),x=new Set([0,1,2,3]);function T(e){return typeof e=="string"&&e!==""}function k(e){return e.status==="cancelled"?{status:"cancelled"}:e.status==="failed"?{status:"failed",code:e.code||"unknown_error"}:e.status==="finished"&&e.sessionId&&b.has(e.displayStatus)?{status:"finished",sessionId:e.sessionId,displayStatus:e.displayStatus,...typeof e.level=="number"&&x.has(e.level)?{level:e.level}:{},...T(e.assurance)?{assurance:e.assurance}:{}}:{status:"failed",code:"unknown_error"}}function g(){if(!y)throw new a("unsupported_platform","the SekyroReactNative native module is not linked (New Architecture app, pod install / Gradle sync)");return y}var p=!1,I=new Set(["no_activity","unsupported_platform","flow_in_progress","invalid_config"]);async function f(e){let r=d(e),t=g();if(p)throw new a("flow_in_progress");p=!0;let i=e.onEvent,l=i?t.onEvent(n=>{let o=S(n);o&&i(o)}):void 0;try{return k(await t.start(r))}catch(n){let o=n?.code;if(typeof o=="string"&&I.has(o))throw new a(o);return{status:"failed",code:"unknown_error"}}finally{l?.remove(),p=!1}}function D(){return g().nativeVersion()}import{useEffect as F,useRef as v}from"react";function V(e){let r=v(null),t=v(e);return t.current=e,F(()=>{if(r.current===e.clientToken)return;r.current=e.clientToken;let{onResult:i,onEvent:l,...n}=t.current;f({...n,onEvent:o=>t.current.onEvent?.(o)}).then(o=>t.current.onResult(o),o=>t.current.onResult({status:"failed",code:o instanceof a?o.code:"unknown_error"}))},[e.clientToken]),null}var L="0.1.0-rc.15";export{L as SDK_VERSION,a as SekyroError,V as SekyroFlow,D as nativeVersion,f as startSekyro};
|
package/ios/SekyroRNBridge.swift
CHANGED
|
@@ -52,15 +52,10 @@ public final class SekyroRNBridge: NSObject {
|
|
|
52
52
|
return SekyroConfig(clientToken: token, apiOrigin: origin, locale: locale, theme: theme)
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
+
/// The native SDK's own wire form (`SekyroWire.dictionary`): status, session id, display status, code, and the
|
|
56
|
+
/// person ids when the native SDK reports them (rc.13 on), without matching the result's associated values here.
|
|
55
57
|
static func wire(_ result: SekyroResult) -> NSDictionary {
|
|
56
|
-
|
|
57
|
-
case .finished(let sessionId, let status):
|
|
58
|
-
return ["status": "finished", "sessionId": sessionId, "displayStatus": status.rawValue]
|
|
59
|
-
case .cancelled:
|
|
60
|
-
return ["status": "cancelled"]
|
|
61
|
-
case .failed(let code):
|
|
62
|
-
return ["status": "failed", "code": code]
|
|
63
|
-
}
|
|
58
|
+
SekyroWire.dictionary(result) as NSDictionary
|
|
64
59
|
}
|
|
65
60
|
|
|
66
61
|
/// What the promise of a flow torn down before its result resolves (the Android module's `invalidate` does the same).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/react-native",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Sekyro AI eKYC for React Native — glue over the binary Android and iOS SDKs (New Architecture)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"sekyro": {
|
|
102
|
-
"android": "0.1.0-rc.
|
|
103
|
-
"ios": "0.1.0-rc.
|
|
102
|
+
"android": "0.1.0-rc.14",
|
|
103
|
+
"ios": "0.1.0-rc.14"
|
|
104
104
|
}
|
|
105
105
|
}
|
package/sbom.cdx.json
CHANGED
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
"type": "application",
|
|
98
98
|
"name": "react-native",
|
|
99
99
|
"group": "@sekyro",
|
|
100
|
-
"version": "0.1.0-rc.
|
|
101
|
-
"bom-ref": "@sekyro/react-native@0.1.0-rc.
|
|
100
|
+
"version": "0.1.0-rc.15",
|
|
101
|
+
"bom-ref": "@sekyro/react-native@0.1.0-rc.15",
|
|
102
102
|
"description": "Sekyro AI eKYC for React Native — glue over the binary Android and iOS SDKs (New Architecture)",
|
|
103
103
|
"licenses": [
|
|
104
104
|
{
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
-
"purl": "pkg:npm/%40sekyro/react-native@0.1.0-rc.
|
|
111
|
+
"purl": "pkg:npm/%40sekyro/react-native@0.1.0-rc.15?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23sekyro-mobile%2Freact-native",
|
|
112
112
|
"externalReferences": [
|
|
113
113
|
{
|
|
114
114
|
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"components": [],
|
|
148
148
|
"dependencies": [
|
|
149
149
|
{
|
|
150
|
-
"ref": "@sekyro/react-native@0.1.0-rc.
|
|
150
|
+
"ref": "@sekyro/react-native@0.1.0-rc.15"
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
}
|
|
@@ -31,7 +31,14 @@ export type NativeConfig = {
|
|
|
31
31
|
strings?: UnsafeObject;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export type NativeResult = {
|
|
34
|
+
export type NativeResult = {
|
|
35
|
+
status: string;
|
|
36
|
+
sessionId?: string;
|
|
37
|
+
displayStatus?: string;
|
|
38
|
+
code?: string;
|
|
39
|
+
level?: Int32;
|
|
40
|
+
assurance?: string;
|
|
41
|
+
};
|
|
35
42
|
|
|
36
43
|
export type NativeEvent = { type: string; step?: string; retryReason?: string; seq: Int32 };
|
|
37
44
|
|