@regulaforensics/idv 3.6.98-nightly → 3.8.123-rc

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.
@@ -7,20 +7,20 @@
7
7
  "postinstall": "patch-package"
8
8
  },
9
9
  "dependencies": {
10
- "@regulaforensics/idv": "3.6.98-nightly",
11
- "@regulaforensics/idv-module-document-reader": "3.6.78-nightly",
12
- "@regulaforensics/idv-module-face": "3.6.77-nightly",
13
- "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
14
- "@regulaforensics/face-core-basic": "8.2.521",
15
- "@angular-devkit/build-angular": "^21.1.4",
16
- "@angular/cli": "^21.1.4",
17
- "@angular/common": "^21.1.5",
18
- "@angular/compiler-cli": "^21.1.5",
19
- "@angular/core": "^21.1.5",
20
- "@angular/forms": "^21.1.5",
21
- "@angular/platform-browser-dynamic": "^21.1.5",
22
- "@angular/router": "^21.1.5",
23
- "@ionic/angular": "^8.7.17",
10
+ "@regulaforensics/idv": "3.8.123-rc",
11
+ "@regulaforensics/idv-module-document-reader": "9.6.106-rc",
12
+ "@regulaforensics/idv-module-face": "9.6.107-rc",
13
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.7.2474-rc",
14
+ "@regulaforensics/face-core-basic": "8.3.622-rc",
15
+ "@angular-devkit/build-angular": "^21.2.16",
16
+ "@angular/cli": "^21.2.16",
17
+ "@angular/common": "^21.2.17",
18
+ "@angular/compiler-cli": "^21.2.17",
19
+ "@angular/core": "^21.2.17",
20
+ "@angular/forms": "^21.2.17",
21
+ "@angular/platform-browser-dynamic": "^21.2.17",
22
+ "@angular/router": "^21.2.17",
23
+ "@ionic/angular": "^8.8.11",
24
24
  "@ionic/cordova-builders": "^12.3.0",
25
25
  "cordova-android": "^14.0.1",
26
26
  "cordova-ios": "^8.0.0",
@@ -30,12 +30,16 @@
30
30
  "overrides": {
31
31
  "ajv": "^8.18.0",
32
32
  "serialize-javascript": "^7.0.4",
33
- "@angular/compiler": "^21.2.4",
34
33
  "undici": "^7.24.0",
35
34
  "picomatch": "^4.0.4",
36
35
  "postcss": "^8.5.10",
37
- "uuid": "^11.1.1",
38
- "webpack-dev-server": "^5.2.4"
36
+ "uuid": "^14.0.0",
37
+ "vite": "^7.3.2",
38
+ "webpack-dev-server": "^5.2.4",
39
+ "@babel/core": "^7.29.0",
40
+ "esbuild": "^0.28.1",
41
+ "http-proxy-middleware": "^3.0.7",
42
+ "piscina": "^5.2.0"
39
43
  },
40
44
  "cordova": {
41
45
  "plugins": {
@@ -2,7 +2,7 @@
2
2
 
3
3
  if [[ $npm_config_o || $npm_config_open ]]; then
4
4
  ionic cordova build android
5
- studio platforms/android || open -a 'Android Studio' platforms/android
5
+ open -a 'Android Studio' platforms/android
6
6
  else
7
7
  ionic cordova run android
8
8
  fi
@@ -33,9 +33,9 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
33
33
  'android.permission.ACCESS_COARSE_LOCATION',
34
34
  'android.permission.ACCESS_FINE_LOCATION'
35
35
  ],
36
- edgeToEdgeEnabled: true
37
36
  },
38
37
  plugins: [
38
+ '@regulaforensics/idv',
39
39
  ['expo-custom-assets', { assetsPaths: ['./assets'] }],
40
40
  ['expo-build-properties', {
41
41
  android: {
@@ -9,9 +9,9 @@
9
9
  "@react-native/metro-config": "^0.85.3",
10
10
  "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
11
11
  "@regulaforensics/face-core-basic": "8.2.521",
12
- "@regulaforensics/idv": "3.6.96-nightly",
13
- "@regulaforensics/idv-module-document-reader": "3.6.78-nightly",
14
- "@regulaforensics/idv-module-face": "3.6.77-nightly",
12
+ "@regulaforensics/idv": "3.2.70",
13
+ "@regulaforensics/idv-module-document-reader": "3.2.50",
14
+ "@regulaforensics/idv-module-face": "3.2.51",
15
15
  "@types/react": "^19.2.16",
16
16
  "expo": "^56.0.8",
17
17
  "expo-build-properties": "^56.0.16",
@@ -2126,21 +2126,21 @@
2126
2126
  "license": "commercial"
2127
2127
  },
2128
2128
  "node_modules/@regulaforensics/idv": {
2129
- "version": "3.6.96-nightly",
2130
- "resolved": "https://registry.npmjs.org/@regulaforensics/idv/-/idv-3.6.96-nightly.tgz",
2131
- "integrity": "sha512-gQRxYgNuPOn7tg91fUT+oBMAew/KdRmIuLfLx+uehY+cqZtcbhJGwlxffsiDfamdQk2eh0QulybeWuNIhevCiA==",
2129
+ "version": "3.2.70",
2130
+ "resolved": "https://registry.npmjs.org/@regulaforensics/idv/-/idv-3.2.70.tgz",
2131
+ "integrity": "sha512-zfjUEhd7mwn0rbzpGmA12Q7aKRBFCvQAnB2J6jaaHPdoAgvwT/q/tmq/O0HGpZuC5alP2FCjZK+JX2Yi/PBBqg==",
2132
2132
  "license": "commercial"
2133
2133
  },
2134
2134
  "node_modules/@regulaforensics/idv-module-document-reader": {
2135
- "version": "3.6.78-nightly",
2136
- "resolved": "https://registry.npmjs.org/@regulaforensics/idv-module-document-reader/-/idv-module-document-reader-3.6.78-nightly.tgz",
2137
- "integrity": "sha512-BZS2nkC/QFxjDJa6rUilM1JcVY3AK0Rb8j8MipVDkXl2OVnJ54EcJcM6thF0Kb8yRJbAd1DtK+kDEq2bJwDn6Q==",
2135
+ "version": "3.2.50",
2136
+ "resolved": "https://registry.npmjs.org/@regulaforensics/idv-module-document-reader/-/idv-module-document-reader-3.2.50.tgz",
2137
+ "integrity": "sha512-vJQ5Mw+CBZ86AvvzYda0XA9lyE/L9f1NR/L+gYuwjZLCi26vzux8cOqTwUnkXhMATTSS0Ix1VZ8rc1WFGwW04g==",
2138
2138
  "license": "commercial"
2139
2139
  },
2140
2140
  "node_modules/@regulaforensics/idv-module-face": {
2141
- "version": "3.6.77-nightly",
2142
- "resolved": "https://registry.npmjs.org/@regulaforensics/idv-module-face/-/idv-module-face-3.6.77-nightly.tgz",
2143
- "integrity": "sha512-3mMKumWmO9k/Hw0HXS8uvJJxal0ywd0tjg4oMXAyggwhS0aiHSQL7BONudNo6eCT/iDtF+VynMdwziPUL5ed7w==",
2141
+ "version": "3.2.51",
2142
+ "resolved": "https://registry.npmjs.org/@regulaforensics/idv-module-face/-/idv-module-face-3.2.51.tgz",
2143
+ "integrity": "sha512-0BxcEQ84fP7POkDEiDavt/IimgclrNFnvjeXws3uiaDsuPjZT3FEe6FUM/NYsWtlvFOYOZNmaqFwG9CMTwRstA==",
2144
2144
  "license": "commercial"
2145
2145
  },
2146
2146
  "node_modules/@sinclair/typebox": {
@@ -6296,16 +6296,16 @@
6296
6296
  }
6297
6297
  },
6298
6298
  "node_modules/uuid": {
6299
- "version": "11.1.1",
6300
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz",
6301
- "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==",
6299
+ "version": "14.0.1",
6300
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.1.tgz",
6301
+ "integrity": "sha512-6ZxzVpzDXDa3bJWaHilVayA+BH/1zmxCJoVgvmqJnid/gPoKHxUrS/aC/T6LGQtNHT+XHG9fXPJB4d+IrU30Ew==",
6302
6302
  "funding": [
6303
6303
  "https://github.com/sponsors/broofa",
6304
6304
  "https://github.com/sponsors/ctavan"
6305
6305
  ],
6306
6306
  "license": "MIT",
6307
6307
  "bin": {
6308
- "uuid": "dist/esm/bin/uuid"
6308
+ "uuid": "dist-node/bin/uuid"
6309
6309
  }
6310
6310
  },
6311
6311
  "node_modules/validate-npm-package-name": {
@@ -8,11 +8,11 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/idv": "3.6.98-nightly",
12
- "@regulaforensics/idv-module-document-reader": "3.6.78-nightly",
13
- "@regulaforensics/idv-module-face": "3.6.77-nightly",
14
- "@regulaforensics/document-reader-core-fullauthrfid": "9.5.2382",
15
- "@regulaforensics/face-core-basic": "8.2.521",
11
+ "@regulaforensics/idv": "3.8.123-rc",
12
+ "@regulaforensics/idv-module-document-reader": "9.6.106-rc",
13
+ "@regulaforensics/idv-module-face": "9.6.107-rc",
14
+ "@regulaforensics/document-reader-core-fullauthrfid": "9.7.2474-rc",
15
+ "@regulaforensics/face-core-basic": "8.3.622-rc",
16
16
  "expo": "^56.0.8",
17
17
  "expo-dev-client": "^56.0.18",
18
18
  "expo-build-properties": "^56.0.16",
@@ -25,6 +25,8 @@
25
25
  "typescript": "6.0.3"
26
26
  },
27
27
  "overrides": {
28
- "uuid": "^11.1.1"
28
+ "postcss": "^8.5.10",
29
+ "uuid": "^14.0.0",
30
+ "js-yaml": "^4.1.1"
29
31
  }
30
32
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  adb reverse tcp:8081 tcp:8081 >/dev/null || :
4
4
  if [[ $npm_config_o || $npm_config_open ]]; then
5
- studio android || open -a 'Android Studio' android
5
+ open -a 'Android Studio' android
6
6
  # check if metro is already running
7
7
  if ! pgrep -f "expo start" >/dev/null; then
8
8
  watchman shutdown-server # fix potential errors
@@ -104,6 +104,22 @@ public func generateStartSessionConfig(_ data: StartSessionConfig) -> [String: A
104
104
  ]
105
105
  }
106
106
 
107
+ public func loginConfigFromJSON(_ data: [String: Any?]) -> LoginConfig {
108
+ let result = LoginConfig(applicationId: data["applicationId"] as! String, baseURL: data["baseUrl"] as! String, locale: data["locale"] as? String, metadata: data["metadata"] as? [String : Any])
109
+ result.httpTimeoutMs = data["httpTimeoutMs"] as? NSNumber
110
+ return result
111
+ }
112
+
113
+ public func generateLoginConfig(_ data: LoginConfig) -> [String: Any?] {
114
+ return [
115
+ "applicationId": data.applicationId,
116
+ "baseUrl": data.baseURL,
117
+ "locale": data.locale,
118
+ "metadata": data.metadata,
119
+ "httpTimeoutMs": data.httpTimeoutMs,
120
+ ]
121
+ }
122
+
107
123
  // MARK: - Model
108
124
 
109
125
  public func workflowFromJSON(_ input: [String: Any?]?) -> Workflow? {
package/ios/Main.swift CHANGED
@@ -21,6 +21,7 @@ func methodCall(_ method: String, _ callback: @escaping Callback) {
21
21
  case("getWorkflows"): getWorkflows(callback)
22
22
  case("startSession"): startSession(callback, args(0))
23
23
  case("sendData"): sendData(callback, args(0))
24
+ case("startLogin"): startLogin(callback, args(0))
24
25
  default: break
25
26
  }
26
27
  }
@@ -95,6 +96,16 @@ func sendData(_ callback: @escaping Callback, _ data: [String: Any?]) {
95
96
  })
96
97
  }
97
98
 
99
+ func startLogin(_ callback: @escaping Callback, _ data: [String: Any?]) {
100
+ DispatchQueue.main.async {
101
+ IDV.shared.startLogin(presenter: rootViewController()!,
102
+ config: loginConfigFromJSON(data),
103
+ completion: { result in
104
+ callback(generateCompletion(result.successOrNil, result.failureOrNil))
105
+ })
106
+ }
107
+ }
108
+
98
109
 
99
110
  // MARK: - WeakReference
100
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv",
3
- "version": "3.6.98-nightly",
3
+ "version": "3.8.123-rc",
4
4
  "description": "This is an npm module for Regula IDV, which unifies access to all Regula products. This plugin makes possible to use it with react-native, cordova and capacitor applications. Supports Android and iOS.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
@@ -12,6 +12,9 @@
12
12
  "android"
13
13
  ]
14
14
  },
15
+ "dependencies": {
16
+ "@expo/config-plugins": "^10.0.0"
17
+ },
15
18
  "keywords": [
16
19
  "react",
17
20
  "react-native",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/idv" version="3.6.98-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/idv" version="3.8.123-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>IDV</name>
4
4
  <description>Cordova plugin for Regula IDV</description>
5
5
  <license>commercial</license>
@@ -23,10 +23,10 @@
23
23
  <source-file src="ios/Utils.swift" />
24
24
  <podspec>
25
25
  <config>
26
- <source url="https://github.com/CocoaPods/Specs.git" />
26
+ <source url="https://github.com/regulaforensics/podspecs.git" />
27
27
  </config>
28
28
  <pods>
29
- <pod name="IDVSDKNightly" spec="3.6.1898" />
29
+ <pod name="IDVSDKStage" spec="3.8.1939" />
30
30
  </pods>
31
31
  </podspec>
32
32
  </platform>
package/test/json.tsx CHANGED
@@ -1,49 +1,44 @@
1
1
  export var credentialsConnectionConfig = {
2
- "baseUrl": "test3",
3
- "userName": "test1",
4
- "password": "test2",
5
- "httpTimeoutMs": 1,
6
- }
7
- export var tokenConnectionConfig = {
8
- "url": "test1",
9
- }
2
+ "baseUrl": "test3",
3
+ "userName": "test1",
4
+ "password": "test2",
5
+ "httpTimeoutMs": 1,
6
+ };
7
+ export var tokenConnectionConfig = {"url": "test1"};
10
8
  export var apiKeyConnectionConfig = {
11
- "baseUrl": "test1",
12
- "apiKey": "test2",
13
- "ttl": 1,
14
- "httpTimeoutMs": 2,
15
- }
16
- export var prepareWorkflowConfig = {
17
- "workflowId": "test1",
18
- }
9
+ "baseUrl": "test1",
10
+ "apiKey": "test2",
11
+ "ttl": 1,
12
+ "httpTimeoutMs": 2,
13
+ };
14
+ export var prepareWorkflowConfig = {"workflowId": "test1"};
19
15
  export var startWorkflowConfig = {
20
- "locale": "test1",
21
- "metadata": {
22
- "test2": "test3",
23
- },
24
- }
16
+ "locale": "test1",
17
+ "metadata": {"test2": "test3"},
18
+ };
25
19
  export var startSessionConfig = {
26
20
  "workflowId": "test1",
27
21
  "metadata": {"test1": 0, "test2": "test3", "test4": true},
28
- }
22
+ };
29
23
  export var sendDataConfig = {
30
24
  "sessionId": "test1",
31
25
  "step": "test2",
32
26
  "data": {"test1": 0, "test2": "test3", "test4": true},
33
- }
27
+ };
28
+ export var loginConfig = {
29
+ "applicationId": "test1",
30
+ "baseUrl": "test2",
31
+ "locale": "test3",
32
+ "metadata": {"test1": 0, "test2": "test3", "test4": true},
33
+ "httpTimeoutMs": 0,
34
+ };
34
35
 
35
36
  export var workflow = {
36
- "id": "test1",
37
- "name": "test2",
38
- "version": "test3",
39
- "description": "test4",
40
- "defaultLocale": "test5",
41
- }
42
- export var workflowStep = {
43
- "id": "test1",
44
- "name": "test2",
45
- }
46
- export var workflowResult = {
47
- "sessionId": "test1",
48
- "finalStep": workflowStep,
49
- }
37
+ "id": "test1",
38
+ "name": "test2",
39
+ "version": "test3",
40
+ "description": "test4",
41
+ "defaultLocale": "test5",
42
+ };
43
+ export var workflowStep = {"id": "test1", "name": "test2"};
44
+ export var workflowResult = {"sessionId": "test1", "finalStep": workflowStep};
@@ -13,9 +13,12 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/idv",
16
- "version": "1.0.0",
16
+ "version": "3.8.123-rc",
17
17
  "dev": true,
18
- "license": "commercial"
18
+ "license": "commercial",
19
+ "dependencies": {
20
+ "@expo/config-plugins": "^10.0.0"
21
+ }
19
22
  },
20
23
  "node_modules/@esbuild/aix-ppc64": {
21
24
  "version": "0.25.9",
package/test/test.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { compare } from './utils'
2
- import { CredentialsConnectionConfig, TokenConnectionConfig, ApiKeyConnectionConfig, PrepareWorkflowConfig, StartWorkflowConfig, Workflow, WorkflowStep, WorkflowResult, StartSessionConfig, SendDataConfig } from '@regulaforensics/idv/www/capacitor'
3
- import { apiKeyConnectionConfig, credentialsConnectionConfig, prepareWorkflowConfig, startWorkflowConfig, tokenConnectionConfig, workflow, workflowStep, workflowResult, startSessionConfig, sendDataConfig } from './json'
2
+ import { CredentialsConnectionConfig, TokenConnectionConfig, ApiKeyConnectionConfig, PrepareWorkflowConfig, StartWorkflowConfig, Workflow, WorkflowStep, WorkflowResult, StartSessionConfig, SendDataConfig, LoginConfig } from '@regulaforensics/idv/www/capacitor'
3
+ import { apiKeyConnectionConfig, credentialsConnectionConfig, prepareWorkflowConfig, startWorkflowConfig, tokenConnectionConfig, workflow, workflowStep, workflowResult, startSessionConfig, sendDataConfig, loginConfig } from './json'
4
4
 
5
5
  compare('credentialsConnectionConfig', credentialsConnectionConfig, CredentialsConnectionConfig.fromJson)
6
6
  compare('tokenConnectionConfig', tokenConnectionConfig, TokenConnectionConfig.fromJson)
@@ -13,3 +13,4 @@ compare('sendDataConfig', sendDataConfig, SendDataConfig.fromJson)
13
13
  compare('workflow', workflow, Workflow.fromJson);
14
14
  compare('workflowStep', workflowStep, WorkflowStep.fromJson);
15
15
  compare('workflowResult', workflowResult, WorkflowResult.fromJson);
16
+ compare('loginConfig', loginConfig, LoginConfig.fromJson);
@@ -0,0 +1,36 @@
1
+ export class LoginConfig {
2
+ applicationId
3
+ baseUrl
4
+ locale
5
+ metadata
6
+ httpTimeoutMs
7
+
8
+ constructor(params) {
9
+ this.applicationId = params?.applicationId
10
+ this.baseUrl = params?.baseUrl
11
+ this.locale = params?.locale
12
+ this.metadata = params?.metadata
13
+ this.httpTimeoutMs = params?.httpTimeoutMs
14
+ }
15
+
16
+ static fromJson(jsonObject) {
17
+ if (jsonObject == null) return null
18
+ const result = new LoginConfig()
19
+ result.applicationId = jsonObject["applicationId"]
20
+ result.baseUrl = jsonObject["baseUrl"]
21
+ result.locale = jsonObject["locale"]
22
+ result.metadata = jsonObject["metadata"]
23
+ result.httpTimeoutMs = jsonObject["httpTimeoutMs"]
24
+ return result
25
+ }
26
+
27
+ toJson() {
28
+ return {
29
+ "applicationId": this.applicationId,
30
+ "baseUrl": this.baseUrl,
31
+ "locale": this.locale,
32
+ "metadata": this.metadata,
33
+ "httpTimeoutMs": this.httpTimeoutMs,
34
+ }
35
+ }
36
+ }
@@ -7,11 +7,12 @@ import { PrepareWorkflowConfig } from './config/prepare_workflow_config'
7
7
  import { StartWorkflowConfig } from './config/start_workflow_config'
8
8
  import { StartSessionConfig } from './config/start_session_config'
9
9
  import { SendDataConfig } from './config/send_data_config'
10
+ import { LoginConfig } from './config/login_config'
10
11
  import { Workflow } from './model/workflow'
11
12
  import { WorkflowResult } from './model/workflow_result'
12
13
  import { WorkflowStep } from './model/workflow_step'
13
14
 
14
- export { TokenConnectionConfig, CredentialsConnectionConfig, ApiKeyConnectionConfig, PrepareWorkflowConfig, StartWorkflowConfig, StartSessionConfig, SendDataConfig, Workflow, WorkflowResult, WorkflowStep }
15
+ export { TokenConnectionConfig, CredentialsConnectionConfig, ApiKeyConnectionConfig, PrepareWorkflowConfig, StartWorkflowConfig, StartSessionConfig, SendDataConfig, LoginConfig, Workflow, WorkflowResult, WorkflowStep }
15
16
 
16
17
  export class IDV {
17
18
  static get instance() { return IDV._instance }
@@ -94,6 +95,11 @@ export class IDV {
94
95
  const response = await exec('sendData', [serializeInterface(config, SendDataConfig)])
95
96
  return completionFromResponse(response)
96
97
  }
98
+
99
+ async startLogin(config) {
100
+ const response = await exec('startLogin', [serializeInterface(config, LoginConfig)])
101
+ return completionFromResponse(response)
102
+ }
97
103
  }
98
104
 
99
105
  export const SessionRestoreMode = {