@vizualkei/neuma-client-sdk 0.100.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/README.md +3 -0
- package/dist/NeumaClientHelper.d.ts +165 -0
- package/dist/NeumaClientHelper.js +345 -0
- package/dist/NeumaMobile.d.ts +5 -0
- package/dist/NeumaMobile.js +1199 -0
- package/dist/NeumaMobileInterface.d.ts +232 -0
- package/dist/NeumaMobileInterface.js +11 -0
- package/dist/biometricService.d.ts +2 -0
- package/dist/biometricService.js +55 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +16 -0
- package/dist/installLinks.d.ts +4 -0
- package/dist/installLinks.js +15 -0
- package/package.json +49 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
export interface UserDescriptor {
|
|
2
|
+
readonly userName: string;
|
|
3
|
+
readonly email?: string;
|
|
4
|
+
readonly phone?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface EnrollmentResult {
|
|
7
|
+
readonly userId: string;
|
|
8
|
+
readonly enrollmentId: string;
|
|
9
|
+
readonly enrolledAt: Date;
|
|
10
|
+
readonly userDescriptor: UserDescriptor;
|
|
11
|
+
}
|
|
12
|
+
export interface AuthenticationResult {
|
|
13
|
+
readonly userId: string;
|
|
14
|
+
readonly userDescriptor: UserDescriptor;
|
|
15
|
+
readonly authenticatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface KeyRetrievalResult {
|
|
18
|
+
readonly key: string;
|
|
19
|
+
readonly userId: string;
|
|
20
|
+
readonly userDescriptor: UserDescriptor;
|
|
21
|
+
}
|
|
22
|
+
export interface PackageVersion {
|
|
23
|
+
readonly major: number;
|
|
24
|
+
readonly minor: number;
|
|
25
|
+
readonly patch: number;
|
|
26
|
+
readonly build: number;
|
|
27
|
+
}
|
|
28
|
+
export declare class NeumaError extends Error {
|
|
29
|
+
readonly code: 'USER_EXISTS' | 'AUTH_FAILED' | 'USER_NOT_FOUND' | 'INVALID_BIOMETRIC' | 'USER_CANCELLED' | 'PARSE_ERROR';
|
|
30
|
+
constructor(message: string, code: 'USER_EXISTS' | 'AUTH_FAILED' | 'USER_NOT_FOUND' | 'INVALID_BIOMETRIC' | 'USER_CANCELLED' | 'PARSE_ERROR');
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* QR code data passed to onQrCode callback for desktop browser flow.
|
|
34
|
+
* The webapp should display this QR code for the user to scan with their phone.
|
|
35
|
+
*/
|
|
36
|
+
export interface QrCodeData {
|
|
37
|
+
/** The deep-link URL to encode in the QR code */
|
|
38
|
+
deepLinkUrl: string;
|
|
39
|
+
/** Callback ID for polling results */
|
|
40
|
+
callbackId: string;
|
|
41
|
+
/** Call this when the user cancels the QR modal to stop polling and reject the operation */
|
|
42
|
+
onCancel: () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Cleanup function returned from onQrCode callback.
|
|
46
|
+
* Called automatically when the operation completes to dismiss the QR code.
|
|
47
|
+
*/
|
|
48
|
+
export type QrCodeCleanupFn = () => void;
|
|
49
|
+
export type AppLaunchPlatform = 'android' | 'ios' | 'unknown';
|
|
50
|
+
export type AppInstallUrlResolver = (platform: AppLaunchPlatform) => string | undefined;
|
|
51
|
+
export interface AppLaunchFailureContext {
|
|
52
|
+
/** The operation the SDK attempted to launch. */
|
|
53
|
+
operation: string;
|
|
54
|
+
/** Heuristic platform classification for the active phone browser. */
|
|
55
|
+
platform: AppLaunchPlatform;
|
|
56
|
+
/** Human-readable app name configured for the SDK instance. */
|
|
57
|
+
appName: string;
|
|
58
|
+
/** Direct install URL when one is available for the detected platform. */
|
|
59
|
+
installUrl?: string;
|
|
60
|
+
/** User-facing message suggestion for the client UI. */
|
|
61
|
+
message: string;
|
|
62
|
+
}
|
|
63
|
+
export type NeumaMobileOptions = {
|
|
64
|
+
/** Timeout for polling operation results (default: 90000ms) */
|
|
65
|
+
timeoutMs?: number;
|
|
66
|
+
/** App naming config used in phone-browser install guidance. */
|
|
67
|
+
overlay?: {
|
|
68
|
+
appName?: string;
|
|
69
|
+
};
|
|
70
|
+
/** Neuma biometric service as `host`, `host:port`, or `https://host[:port]` */
|
|
71
|
+
biometricService?: string;
|
|
72
|
+
/** Optional app-specific install URL resolver used when phone-browser deep-link launch fails. */
|
|
73
|
+
installUrlResolver?: AppInstallUrlResolver;
|
|
74
|
+
/**
|
|
75
|
+
* HTTPS app-link base used for desktop QR handoff.
|
|
76
|
+
*
|
|
77
|
+
* Defaults to `${window.location.origin}/f` for root-mounted apps. Apps
|
|
78
|
+
* mounted below a path should pass their own handoff route, for example
|
|
79
|
+
* `/neuma-wellness/f` or `https://apps.example.com/neuma-wellness/f`.
|
|
80
|
+
*/
|
|
81
|
+
qrAppLinkBase?: string;
|
|
82
|
+
/** Biometric session token (BST) from the server */
|
|
83
|
+
biometricSessionToken?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Callback for displaying QR code in desktop browser flow.
|
|
86
|
+
* When running on desktop and this callback is provided, the SDK will:
|
|
87
|
+
* 1. Create a QR session on the server
|
|
88
|
+
* 2. Call this callback with QR data for the webapp to display
|
|
89
|
+
* 3. Start polling for results
|
|
90
|
+
* 4. Call the cleanup function when operation completes
|
|
91
|
+
*
|
|
92
|
+
* @param qrData - Data to generate and display the QR code
|
|
93
|
+
* @returns Optional cleanup function to dismiss the QR code UI
|
|
94
|
+
*/
|
|
95
|
+
onQrCode?: (qrData: QrCodeData) => QrCodeCleanupFn | void;
|
|
96
|
+
/**
|
|
97
|
+
* Called when a phone-browser deep-link attempt likely failed to open the native app.
|
|
98
|
+
* Clients should use this to show install/open guidance UI.
|
|
99
|
+
*/
|
|
100
|
+
onAppLaunchFailed?: (context: AppLaunchFailureContext) => void;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Metadata for a recoverable mobile-app operation that was issued via deep
|
|
104
|
+
* link and may need to be resumed after an iOS Safari tab remount.
|
|
105
|
+
*
|
|
106
|
+
* Persisted in `sessionStorage` by the SDK before the deep-link is fired so
|
|
107
|
+
* The SDK may also surface a just-completed operation from a short-lived
|
|
108
|
+
* recovery cache, or from the `neuma_cb` / `neuma_op` return-URL markers,
|
|
109
|
+
* so callers can use the same page-load pattern for "still polling" and
|
|
110
|
+
* "result already arrived but page state was lost" cases.
|
|
111
|
+
*/
|
|
112
|
+
export interface PendingOperationInfo {
|
|
113
|
+
/** Random callback ID matching the deep-link `id` and the polling URL path segment. */
|
|
114
|
+
readonly callbackId: string;
|
|
115
|
+
/** Internal operation name (`enroll`, `authenticate`, `restore`, `unenroll-user`, `retrieve-key`, `clear-user`). */
|
|
116
|
+
readonly operation: string;
|
|
117
|
+
/** Epoch ms timestamp of when the deep-link was issued. */
|
|
118
|
+
readonly ts: number;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The main interface for the Neuma web SDK client.
|
|
122
|
+
*
|
|
123
|
+
* This interface provides methods for biometric operations via deep linking
|
|
124
|
+
* to the Neuma Mobile native app. Results are returned via server polling.
|
|
125
|
+
*/
|
|
126
|
+
export interface NeumaMobileInterface {
|
|
127
|
+
/**
|
|
128
|
+
* Initializes the SDK by merging the supplied options with the active
|
|
129
|
+
* configuration so callers can adjust timeouts and UX affordances at runtime.
|
|
130
|
+
*/
|
|
131
|
+
initialize(opts: NeumaMobileOptions): void;
|
|
132
|
+
/** Resolves structured semantic version information for the SDK build. */
|
|
133
|
+
getVersion(): Promise<PackageVersion>;
|
|
134
|
+
/**
|
|
135
|
+
* Retrieves the most recent cached enrollment snapshot or `null` when none
|
|
136
|
+
* exists, avoiding a round-trip to the native app.
|
|
137
|
+
*/
|
|
138
|
+
getEnrolledUser(): Promise<EnrollmentResult | null>;
|
|
139
|
+
/**
|
|
140
|
+
* Launches the native enrollment flow and resolves with a biometric result token (BRT).
|
|
141
|
+
* Rejects with {@link NeumaError} when the operation fails or is cancelled.
|
|
142
|
+
*/
|
|
143
|
+
enrollUser(user: UserDescriptor): Promise<string>;
|
|
144
|
+
/**
|
|
145
|
+
* Restores an existing user to a new device and resolves with a biometric result token (BRT).
|
|
146
|
+
* Rejects with {@link NeumaError} when the operation fails or is cancelled.
|
|
147
|
+
*/
|
|
148
|
+
restoreUser(): Promise<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Initiates biometric authentication and resolves with a biometric result token (BRT),
|
|
151
|
+
* throwing {@link NeumaError} on failure.
|
|
152
|
+
*/
|
|
153
|
+
authenticateUser(): Promise<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Requests a biometric-bound cryptographic key from the native flow.
|
|
156
|
+
* NOTE: Works in offline mode - returns null and requires manual paste from mobile app.
|
|
157
|
+
* Use parseRetrieveKeyResult() to parse the pasted JSON.
|
|
158
|
+
*/
|
|
159
|
+
retrieveKey(): Promise<null>;
|
|
160
|
+
/**
|
|
161
|
+
* Parse and validate manually pasted retrieve-key result from mobile app.
|
|
162
|
+
* Call this after user pastes JSON from mobile app clipboard.
|
|
163
|
+
* @param jsonString The JSON string pasted from mobile app
|
|
164
|
+
* @returns Parsed and validated KeyRetrievalResult
|
|
165
|
+
*/
|
|
166
|
+
parseRetrieveKeyResult(jsonString: string): KeyRetrievalResult;
|
|
167
|
+
/**
|
|
168
|
+
* Performs a full unenrollment (device plus server) and resolves with
|
|
169
|
+
* a biometric result token (BRT) if successful.
|
|
170
|
+
*/
|
|
171
|
+
unenrollUser(): Promise<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Clears the enrolled user on-device via the native flow, rejecting with
|
|
174
|
+
* {@link NeumaError} on failure or cancellation.
|
|
175
|
+
*/
|
|
176
|
+
clearUser(): Promise<void>;
|
|
177
|
+
/**
|
|
178
|
+
* Returns metadata for a recoverable deep-link operation, or `null` when
|
|
179
|
+
* there is none.
|
|
180
|
+
*
|
|
181
|
+
* The SDK persists pending metadata in `sessionStorage` immediately
|
|
182
|
+
* before launching the `neumadplk://` deep link. It also persists a
|
|
183
|
+
* short-lived completed-result cache before clearing pending metadata.
|
|
184
|
+
* Use this from a page-load `useEffect` to detect that the originating
|
|
185
|
+
* browser tab was re-mounted (iOS Safari often does not restore from
|
|
186
|
+
* bfcache when refocused via the mobile app's `openURL`) and that the
|
|
187
|
+
* result still needs page-level handling.
|
|
188
|
+
*
|
|
189
|
+
* Stale entries (>5 min) are auto-cleared and surfaced as `null`.
|
|
190
|
+
*
|
|
191
|
+
* Synchronous; safe to call during render or `useEffect`.
|
|
192
|
+
*/
|
|
193
|
+
getPendingOperation(): PendingOperationInfo | null;
|
|
194
|
+
/**
|
|
195
|
+
* Resumes or recovers a deep-link operation's result.
|
|
196
|
+
*
|
|
197
|
+
* Returns the raw biometric server payload (the same shape the SDK
|
|
198
|
+
* receives during the original `await invokeMobileApp(...)` call) on
|
|
199
|
+
* success. If polling already completed in a previous page lifetime,
|
|
200
|
+
* this returns the cached payload instead of polling again. Returns
|
|
201
|
+
* `null` when there is no recoverable operation, or when the operation is
|
|
202
|
+
* offline-only (`retrieve-key`, `clear-user`) and does not write a
|
|
203
|
+
* server-side result.
|
|
204
|
+
*
|
|
205
|
+
* Marks cached results as being consumed, but keeps them briefly so a
|
|
206
|
+
* second iOS Safari remount during page-level handling can still recover
|
|
207
|
+
* the payload. Call {@link clearPendingResult} after durable app-level
|
|
208
|
+
* handling (for example after persisting or showing the result popup) to
|
|
209
|
+
* clear recovery storage.
|
|
210
|
+
*
|
|
211
|
+
* Throws on polling timeout or transport failure. Caller is expected to
|
|
212
|
+
* map the resulting payload into the appropriate page-level state in the
|
|
213
|
+
* same way the original operation method does (decode the BRT, surface
|
|
214
|
+
* the success popup, refresh session, etc.).
|
|
215
|
+
*/
|
|
216
|
+
resumePendingResult(): Promise<unknown | null>;
|
|
217
|
+
/**
|
|
218
|
+
* Clears SDK recovery storage for the current deep-link operation,
|
|
219
|
+
* including pending metadata and cached completed results.
|
|
220
|
+
*
|
|
221
|
+
* This intentionally leaves `neuma_cb` / `neuma_op` / `neuma_ts`
|
|
222
|
+
* return-URL markers in the browser URL until they expire or a later
|
|
223
|
+
* operation replaces them. iOS Safari uses an exact URL match to refocus
|
|
224
|
+
* the originating tab when the native app launches `returnUrl`; removing
|
|
225
|
+
* those markers before the user taps Close in the native app can make
|
|
226
|
+
* Safari open a new tab instead.
|
|
227
|
+
*
|
|
228
|
+
* Call this after app-level result handling has been made durable. It is
|
|
229
|
+
* always safe to call, including when no operation is pending.
|
|
230
|
+
*/
|
|
231
|
+
clearPendingResult(): void;
|
|
232
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NeumaError = void 0;
|
|
4
|
+
class NeumaError extends Error {
|
|
5
|
+
constructor(message, code) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.code = code;
|
|
8
|
+
this.name = 'NeumaError';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NeumaError = NeumaError;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.normalizeBiometricService = normalizeBiometricService;
|
|
4
|
+
exports.buildBiometricServiceBaseUrl = buildBiometricServiceBaseUrl;
|
|
5
|
+
const DEFAULT_SCHEME = 'https:';
|
|
6
|
+
function normalizeBiometricService(value) {
|
|
7
|
+
return parseBiometricService(value).authority;
|
|
8
|
+
}
|
|
9
|
+
function buildBiometricServiceBaseUrl(value, defaultPort) {
|
|
10
|
+
const parsed = parseBiometricService(value);
|
|
11
|
+
const port = parsed.port || String(defaultPort);
|
|
12
|
+
return `${DEFAULT_SCHEME}//${parsed.hostname}:${port}`;
|
|
13
|
+
}
|
|
14
|
+
function parseBiometricService(value) {
|
|
15
|
+
const trimmed = value.trim();
|
|
16
|
+
if (!trimmed) {
|
|
17
|
+
throw new Error('biometricService must not be empty');
|
|
18
|
+
}
|
|
19
|
+
const rawAuthority = trimmed.includes('://')
|
|
20
|
+
? trimmed.substring(trimmed.indexOf('://') + 3)
|
|
21
|
+
: trimmed;
|
|
22
|
+
const authorityWithoutPath = rawAuthority.replace(/[/?#].*$/, '');
|
|
23
|
+
const explicitPortMatch = authorityWithoutPath.match(/^([^:]+):(\d+)$/);
|
|
24
|
+
const candidate = trimmed.includes('://') ? trimmed : `${DEFAULT_SCHEME}//${trimmed}`;
|
|
25
|
+
let parsed;
|
|
26
|
+
try {
|
|
27
|
+
parsed = new URL(candidate);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
throw new Error(`Invalid biometricService: ${value}`);
|
|
31
|
+
}
|
|
32
|
+
if (parsed.protocol !== DEFAULT_SCHEME) {
|
|
33
|
+
throw new Error('biometricService must use https:// when a scheme is provided');
|
|
34
|
+
}
|
|
35
|
+
if (!parsed.hostname) {
|
|
36
|
+
throw new Error(`Invalid biometricService: ${value}`);
|
|
37
|
+
}
|
|
38
|
+
if (parsed.username || parsed.password) {
|
|
39
|
+
throw new Error('biometricService must not include credentials');
|
|
40
|
+
}
|
|
41
|
+
if (parsed.pathname !== '/' || parsed.search || parsed.hash) {
|
|
42
|
+
throw new Error('biometricService must be a host or host:port only');
|
|
43
|
+
}
|
|
44
|
+
if (parsed.hostname.includes(':')) {
|
|
45
|
+
throw new Error('IPv6 biometricService values are not supported');
|
|
46
|
+
}
|
|
47
|
+
const explicitPort = explicitPortMatch?.[2] ?? '';
|
|
48
|
+
const port = parsed.port || explicitPort;
|
|
49
|
+
const authority = port ? `${parsed.hostname}:${port}` : parsed.hostname;
|
|
50
|
+
return {
|
|
51
|
+
authority,
|
|
52
|
+
hostname: parsed.hostname,
|
|
53
|
+
port,
|
|
54
|
+
};
|
|
55
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { NeumaMobileFactory } from './NeumaMobile';
|
|
2
|
+
export type { NeumaMobileInterface, NeumaMobileOptions, UserDescriptor, EnrollmentResult, AuthenticationResult, KeyRetrievalResult, PackageVersion, PendingOperationInfo, AppLaunchPlatform, AppInstallUrlResolver, AppLaunchFailureContext, QrCodeData, QrCodeCleanupFn, } from './NeumaMobileInterface';
|
|
3
|
+
export { NeumaError } from './NeumaMobileInterface';
|
|
4
|
+
export { NeumaClientHelper, neumaClientHelper, } from './NeumaClientHelper';
|
|
5
|
+
export type { NeumaClientHelperConfig, EnrollUserOptions, HandlePendingOperationOptions, PendingOperationErrorContext, PendingOperationMatcher, PendingOperationResult, } from './NeumaClientHelper';
|
|
6
|
+
export { NEUMA_MOBILE_PLAY_STORE_URL, NEUMA_MOBILE_TESTFLIGHT_URL, getNeumaMobileInstallUrl, } from './installLinks';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNeumaMobileInstallUrl = exports.NEUMA_MOBILE_TESTFLIGHT_URL = exports.NEUMA_MOBILE_PLAY_STORE_URL = exports.neumaClientHelper = exports.NeumaClientHelper = exports.NeumaError = exports.NeumaMobileFactory = void 0;
|
|
4
|
+
// Neuma Client SDK - Main exports
|
|
5
|
+
var NeumaMobile_1 = require("./NeumaMobile");
|
|
6
|
+
Object.defineProperty(exports, "NeumaMobileFactory", { enumerable: true, get: function () { return NeumaMobile_1.NeumaMobileFactory; } });
|
|
7
|
+
// Value export kept separate
|
|
8
|
+
var NeumaMobileInterface_1 = require("./NeumaMobileInterface");
|
|
9
|
+
Object.defineProperty(exports, "NeumaError", { enumerable: true, get: function () { return NeumaMobileInterface_1.NeumaError; } });
|
|
10
|
+
var NeumaClientHelper_1 = require("./NeumaClientHelper");
|
|
11
|
+
Object.defineProperty(exports, "NeumaClientHelper", { enumerable: true, get: function () { return NeumaClientHelper_1.NeumaClientHelper; } });
|
|
12
|
+
Object.defineProperty(exports, "neumaClientHelper", { enumerable: true, get: function () { return NeumaClientHelper_1.neumaClientHelper; } });
|
|
13
|
+
var installLinks_1 = require("./installLinks");
|
|
14
|
+
Object.defineProperty(exports, "NEUMA_MOBILE_PLAY_STORE_URL", { enumerable: true, get: function () { return installLinks_1.NEUMA_MOBILE_PLAY_STORE_URL; } });
|
|
15
|
+
Object.defineProperty(exports, "NEUMA_MOBILE_TESTFLIGHT_URL", { enumerable: true, get: function () { return installLinks_1.NEUMA_MOBILE_TESTFLIGHT_URL; } });
|
|
16
|
+
Object.defineProperty(exports, "getNeumaMobileInstallUrl", { enumerable: true, get: function () { return installLinks_1.getNeumaMobileInstallUrl; } });
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AppLaunchPlatform } from './NeumaMobileInterface';
|
|
2
|
+
export declare const NEUMA_MOBILE_PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=io.vizualkei.neuma";
|
|
3
|
+
export declare const NEUMA_MOBILE_TESTFLIGHT_URL = "https://testflight.apple.com/join/yAv6ZB2S";
|
|
4
|
+
export declare const getNeumaMobileInstallUrl: (platform: AppLaunchPlatform) => string | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNeumaMobileInstallUrl = exports.NEUMA_MOBILE_TESTFLIGHT_URL = exports.NEUMA_MOBILE_PLAY_STORE_URL = void 0;
|
|
4
|
+
exports.NEUMA_MOBILE_PLAY_STORE_URL = 'https://play.google.com/store/apps/details?id=io.vizualkei.neuma';
|
|
5
|
+
exports.NEUMA_MOBILE_TESTFLIGHT_URL = 'https://testflight.apple.com/join/yAv6ZB2S';
|
|
6
|
+
const getNeumaMobileInstallUrl = (platform) => {
|
|
7
|
+
if (platform === 'android') {
|
|
8
|
+
return exports.NEUMA_MOBILE_PLAY_STORE_URL;
|
|
9
|
+
}
|
|
10
|
+
if (platform === 'ios') {
|
|
11
|
+
return exports.NEUMA_MOBILE_TESTFLIGHT_URL;
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
};
|
|
15
|
+
exports.getNeumaMobileInstallUrl = getNeumaMobileInstallUrl;
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vizualkei/neuma-client-sdk",
|
|
3
|
+
"version": "0.100.0",
|
|
4
|
+
"description": "Neuma Web Client SDK - Biometric authentication SDK for webapp integration",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./installLinks": {
|
|
14
|
+
"default": "./dist/installLinks.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "pnpm --dir ../.. exec tsc -p packages/neuma-client-sdk/tsconfig.json",
|
|
19
|
+
"dev": "pnpm --dir ../.. exec tsc -p packages/neuma-client-sdk/tsconfig.json --watch",
|
|
20
|
+
"clean": "rm -rf dist",
|
|
21
|
+
"check-types": "pnpm --dir ../.. exec tsc -p packages/neuma-client-sdk/tsconfig.json --noEmit",
|
|
22
|
+
"lint": "echo 'No linting configured'",
|
|
23
|
+
"prepublishOnly": "pnpm run clean && pnpm run build"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"biometric",
|
|
27
|
+
"authentication",
|
|
28
|
+
"deep-linking",
|
|
29
|
+
"mobile",
|
|
30
|
+
"pwa"
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
"dist/**/*",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@vizualkei/common-utils": "^0.33.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"typescript": "^5.6.3",
|
|
44
|
+
"@types/node": "^22.8.4"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": "^18.3.1"
|
|
48
|
+
}
|
|
49
|
+
}
|