@sekyro/react-native 0.0.1-stage → 0.1.0-rc.10

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/sbom.cdx.json ADDED
@@ -0,0 +1,153 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.6",
5
+ "version": 1,
6
+ "metadata": {
7
+ "tools": {
8
+ "components": [
9
+ {
10
+ "type": "application",
11
+ "name": "npm",
12
+ "version": "11.12.1"
13
+ },
14
+ {
15
+ "type": "library",
16
+ "name": "cyclonedx-library",
17
+ "group": "@cyclonedx",
18
+ "version": "10.3.0",
19
+ "author": "Jan Kowalleck",
20
+ "description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
21
+ "licenses": [
22
+ {
23
+ "license": {
24
+ "id": "Apache-2.0"
25
+ }
26
+ }
27
+ ],
28
+ "externalReferences": [
29
+ {
30
+ "url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues",
31
+ "type": "issue-tracker",
32
+ "comment": "as detected from PackageJson property \"bugs.url\""
33
+ },
34
+ {
35
+ "url": "git+https://github.com/CycloneDX/cyclonedx-javascript-library.git",
36
+ "type": "vcs",
37
+ "comment": "as detected from PackageJson property \"repository.url\""
38
+ },
39
+ {
40
+ "url": "https://github.com/CycloneDX/cyclonedx-javascript-library#readme",
41
+ "type": "website",
42
+ "comment": "as detected from PackageJson property \"homepage\""
43
+ }
44
+ ],
45
+ "properties": [
46
+ {
47
+ "name": "cdx:npm:package:constraint:engine:node",
48
+ "value": ">=20.18.0"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "type": "application",
54
+ "name": "cyclonedx-npm",
55
+ "group": "@cyclonedx",
56
+ "version": "6.0.1",
57
+ "author": "Jan Kowalleck",
58
+ "description": "Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.",
59
+ "licenses": [
60
+ {
61
+ "license": {
62
+ "id": "Apache-2.0"
63
+ }
64
+ }
65
+ ],
66
+ "externalReferences": [
67
+ {
68
+ "url": "https://github.com/CycloneDX/cyclonedx-node-npm/issues",
69
+ "type": "issue-tracker",
70
+ "comment": "as detected from PackageJson property \"bugs.url\""
71
+ },
72
+ {
73
+ "url": "git+https://github.com/CycloneDX/cyclonedx-node-npm.git",
74
+ "type": "vcs",
75
+ "comment": "as detected from PackageJson property \"repository.url\""
76
+ },
77
+ {
78
+ "url": "https://github.com/CycloneDX/cyclonedx-node-npm#readme",
79
+ "type": "website",
80
+ "comment": "as detected from PackageJson property \"homepage\""
81
+ }
82
+ ],
83
+ "properties": [
84
+ {
85
+ "name": "cdx:npm:package:constraint:engine:node",
86
+ "value": ">=20.18.0"
87
+ },
88
+ {
89
+ "name": "cdx:npm:package:constraint:engine:npm",
90
+ "value": ">=9"
91
+ }
92
+ ]
93
+ }
94
+ ]
95
+ },
96
+ "component": {
97
+ "type": "application",
98
+ "name": "react-native",
99
+ "group": "@sekyro",
100
+ "version": "0.1.0-rc.10",
101
+ "bom-ref": "@sekyro/react-native@0.1.0-rc.10",
102
+ "description": "Sekyro AI eKYC for React Native — glue over the binary Android and iOS SDKs (New Architecture)",
103
+ "licenses": [
104
+ {
105
+ "license": {
106
+ "name": "SEE LICENSE IN LICENSE",
107
+ "acknowledgement": "declared"
108
+ }
109
+ }
110
+ ],
111
+ "purl": "pkg:npm/%40sekyro/react-native@0.1.0-rc.10?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23sekyro-mobile%2Freact-native",
112
+ "externalReferences": [
113
+ {
114
+ "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
115
+ "type": "issue-tracker",
116
+ "comment": "as detected from PackageJson property \"bugs.url\""
117
+ },
118
+ {
119
+ "url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git#sekyro-mobile/react-native",
120
+ "type": "vcs",
121
+ "comment": "as detected from PackageJson property \"repository.url\" and \"repository.directory\""
122
+ },
123
+ {
124
+ "url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity#readme",
125
+ "type": "website",
126
+ "comment": "as detected from PackageJson property \"homepage\""
127
+ }
128
+ ],
129
+ "properties": [
130
+ {
131
+ "name": "cdx:npm:package:constraint:engine:node",
132
+ "value": ">=20"
133
+ },
134
+ {
135
+ "name": "cdx:npm:package:path",
136
+ "value": ""
137
+ }
138
+ ]
139
+ },
140
+ "properties": [
141
+ {
142
+ "name": "cdx:reproducible",
143
+ "value": "true"
144
+ }
145
+ ]
146
+ },
147
+ "components": [],
148
+ "dependencies": [
149
+ {
150
+ "ref": "@sekyro/react-native@0.1.0-rc.10"
151
+ }
152
+ ]
153
+ }
@@ -0,0 +1,27 @@
1
+ # @sekyro/react-native — declares where the binary SekyroKit pod comes from. In the app's Podfile:
2
+ #
3
+ # require Pod::Executable.execute_command('node', ['-p',
4
+ # 'require.resolve("@sekyro/react-native/package.json", {paths: [process.argv[1]]})', __dir__]).strip.sub(/package\.json$/, 'scripts/sekyro_pods.rb')
5
+ #
6
+ # target 'YourApp' do
7
+ # config = use_native_modules!
8
+ # sekyro_kit_pod!
9
+ # ...
10
+ #
11
+ # Default: the podspec of the public sekyro-ios-dist repo at the pinned tag (it downloads the signed
12
+ # XCFramework zip from assets.sekyro.ai and checks its sha256). Development: SEKYRO_KIT_PATH=<dir> uses a
13
+ # `make-dist.sh <pin> --local` tree instead.
14
+ require 'json'
15
+
16
+ def sekyro_kit_pod!
17
+ pkg = JSON.parse(File.read(File.join(__dir__, '..', 'package.json')))
18
+ version = pkg.fetch('sekyro').fetch('ios')
19
+ local = ENV['SEKYRO_KIT_PATH']
20
+ if local && !local.strip.empty?
21
+ Pod::UI.puts "[Sekyro] SekyroKit #{version} from the local dist #{local} (development only)".yellow
22
+ pod 'SekyroKit', :path => local
23
+ else
24
+ # :podspec, not :git — a :git pod is built from the repo checkout, and the binary is not in the repo.
25
+ pod 'SekyroKit', :podspec => "https://raw.githubusercontent.com/IBTIKAR-Technologies/sekyro-ios-dist/#{version}/SekyroKit.podspec"
26
+ end
27
+ end
@@ -0,0 +1,46 @@
1
+ // Shipped as source on purpose: RN codegen reads it when the app builds. Types only, no logic.
2
+ import type { TurboModule } from 'react-native';
3
+ import { TurboModuleRegistry } from 'react-native';
4
+ // Deep type import: the codegen of RN 0.76–0.84 resolves these names (CodegenTypes is re-exported
5
+ // from 'react-native' only from 0.80). For this package's own tsc, types/codegen-types.d.ts
6
+ // supplies the TypeScript declarations that newer RN releases no longer ship at this path.
7
+ import type { Double, EventEmitter, Int32, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
8
+
9
+ export type NativeColors = {
10
+ brand?: string;
11
+ brandFg?: string;
12
+ bg?: string;
13
+ surface?: string;
14
+ fg?: string;
15
+ fgMuted?: string;
16
+ border?: string;
17
+ danger?: string;
18
+ success?: string;
19
+ warning?: string;
20
+ };
21
+
22
+ export type NativeConfig = {
23
+ clientToken: string;
24
+ apiOrigin?: string;
25
+ locale?: string;
26
+ colors?: NativeColors;
27
+ radius?: Double;
28
+ fontFamily?: string;
29
+ darkMode?: string;
30
+ /** Flat catalog-key → text map for the active locale. */
31
+ strings?: UnsafeObject;
32
+ };
33
+
34
+ export type NativeResult = { status: string; sessionId?: string; displayStatus?: string; code?: string };
35
+
36
+ export type NativeEvent = { type: string; step?: string; retryReason?: string; seq: Int32 };
37
+
38
+ export interface Spec extends TurboModule {
39
+ start(config: NativeConfig): Promise<NativeResult>;
40
+ nativeVersion(): string;
41
+ readonly onEvent: EventEmitter<NativeEvent>;
42
+ }
43
+
44
+ // `get`, not `getEnforcing`: importing the package must not throw in an app without the native
45
+ // module (Expo Go, web, a missing pod install); `startSekyro` then rejects `unsupported_platform`.
46
+ export default TurboModuleRegistry.get<Spec>('SekyroReactNative');