@vizualkei/neuma-client-sdk 0.100.3 → 0.109.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 CHANGED
@@ -1,3 +1,3 @@
1
1
  # @vizualkei/neuma-client-sdk
2
2
 
3
- See [NEUMA-SDK.md](../../NEUMA-SDK.md) for the Neuma SDK API documentation.
3
+ See [README.md](../../README.md) for the Neuma SDK API documentation.
@@ -3,7 +3,7 @@ export type EnrollUserOptions = {
3
3
  email?: string | null;
4
4
  phoneNo?: string | null;
5
5
  };
6
- export type NeumaClientHelperConfig = {
6
+ export type NeumaClientConfig = {
7
7
  neumaSessionUrl: string;
8
8
  neumaResultUrl: string;
9
9
  fetcher: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
@@ -41,7 +41,7 @@ export type HandlePendingOperationOptions = {
41
41
  operation?: PendingOperationMatcher;
42
42
  /**
43
43
  * Submit the recovered NRT to `neumaResultUrl` before calling
44
- * `onSuccess`. Defaults to `true`, matching foreground helper methods.
44
+ * `onSuccess`. Defaults to `true`, matching foreground client methods.
45
45
  * Set to `false` for direct business flows such as password updates.
46
46
  */
47
47
  submitResult?: boolean;
@@ -77,27 +77,27 @@ export type HandlePendingOperationOptions = {
77
77
  */
78
78
  onError?: (error: unknown, context: PendingOperationErrorContext) => MaybePromise<void>;
79
79
  };
80
- export declare class NeumaClientHelper {
80
+ export declare class NeumaClient {
81
81
  private readonly config;
82
82
  private readonly biometricService;
83
- constructor(config: NeumaClientHelperConfig);
83
+ constructor(config: NeumaClientConfig);
84
84
  /**
85
85
  * Optional early initialization hook (preserves prior SwClient behavior).
86
86
  */
87
87
  ensureInitialized(): void;
88
88
  enrollUser(user: UserDescriptor, enrollOptions?: EnrollUserOptions): Promise<string>;
89
- restoreUser(): Promise<string>;
90
- authenticateUser(): Promise<string>;
89
+ restoreEnrollment(): Promise<string>;
90
+ verifyUser(postResult?: boolean): Promise<string>;
91
91
  /**
92
- * Authenticate and return a signed NRT without auto-submitting it to the
93
- * biometric result endpoint. Use this for business routes that validate
94
- * the NRT themselves (e.g. ticket purchase, update-password).
92
+ * Verify the user and return a signed NRT without auto-submitting it to
93
+ * the biometric result endpoint by calling `verifyUser(false)`.
94
+ * Use this for business routes that validate the NRT themselves
95
+ * (e.g. ticket purchase, update-password).
95
96
  */
96
- authenticateUserDirect(): Promise<string>;
97
97
  unenrollUser(): Promise<string>;
98
- retrieveKey(): Promise<null>;
99
- clearUser(): Promise<void>;
100
- parseRetrieveKeyResult(jsonString: string): KeyRetrievalResult;
98
+ verifyUserForKey(): Promise<null>;
99
+ clearEnrollment(): Promise<void>;
100
+ parseVerifyUserForKeyResult(jsonString: string): KeyRetrievalResult;
101
101
  /**
102
102
  * Returns metadata for a pending deep-link operation issued from this
103
103
  * browser tab whose result has not yet been retrieved, or `null` when
@@ -115,7 +115,7 @@ export declare class NeumaClientHelper {
115
115
  */
116
116
  clearPendingResult(): void;
117
117
  /**
118
- * High-level iOS Safari recovery helper for page-load handling.
118
+ * High-level iOS Safari recovery API for page-load handling.
119
119
  *
120
120
  * This hides the storage/URL recovery details from webapps: it checks
121
121
  * whether a matching operation is recoverable, resumes or retrieves the
@@ -136,7 +136,7 @@ export declare class NeumaClientHelper {
136
136
  private buildResultPayload;
137
137
  private postJson;
138
138
  /**
139
- * POST helper for the biometric-result submission path. Retries only
139
+ * POST utility for the biometric-result submission path. Retries only
140
140
  * on network-class fetch rejections (e.g. iOS Safari tab-refocus
141
141
  * jitter producing `TypeError: Failed to fetch`). HTTP error statuses
142
142
  * are deterministic server responses and are not retried. The
@@ -145,18 +145,17 @@ export declare class NeumaClientHelper {
145
145
  */
146
146
  private postJsonWithRetry;
147
147
  }
148
- export declare const neumaClientHelper: {
149
- init(config: NeumaClientHelperConfig): NeumaClientHelper;
150
- get: () => NeumaClientHelper;
148
+ export declare const neumaClient: {
149
+ init(config: NeumaClientConfig): NeumaClient;
150
+ get: () => NeumaClient;
151
151
  ensureInitialized(): void;
152
152
  enrollUser(user: UserDescriptor, enrollOptions?: EnrollUserOptions): Promise<string>;
153
- restoreUser(): Promise<string>;
154
- authenticateUser(): Promise<string>;
155
- authenticateUserDirect(): Promise<string>;
153
+ restoreEnrollment(): Promise<string>;
154
+ verifyUser(postResult?: boolean): Promise<string>;
156
155
  unenrollUser(): Promise<string>;
157
- retrieveKey(): Promise<null>;
158
- clearUser(): Promise<void>;
159
- parseRetrieveKeyResult(jsonString: string): KeyRetrievalResult;
156
+ verifyUserForKey(): Promise<null>;
157
+ clearEnrollment(): Promise<void>;
158
+ parseVerifyUserForKeyResult(jsonString: string): KeyRetrievalResult;
160
159
  getPendingOperation(): PendingOperationInfo | null;
161
160
  resumePendingResult(): Promise<unknown | null>;
162
161
  clearPendingResult(): void;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.neumaClientHelper = exports.NeumaClientHelper = void 0;
3
+ exports.neumaClient = exports.NeumaClient = void 0;
4
4
  const NeumaMobile_1 = require("./NeumaMobile");
5
5
  const biometricService_1 = require("./biometricService");
6
6
  const NeumaMobileInterface_1 = require("./NeumaMobileInterface");
7
7
  const installLinks_1 = require("./installLinks");
8
8
  const DEFAULT_BIOMETRIC_SERVICE = 'https://api.neuma.me:443';
9
- class NeumaClientHelper {
9
+ class NeumaClient {
10
10
  constructor(config) {
11
11
  this.config = config;
12
12
  const service = config.biometricService?.trim();
@@ -21,36 +21,37 @@ class NeumaClientHelper {
21
21
  async enrollUser(user, enrollOptions) {
22
22
  return this.runSignedOperation(client => client.enrollUser(user), { enrollOptions });
23
23
  }
24
- async restoreUser() {
25
- return this.runSignedOperation(client => client.restoreUser());
24
+ async restoreEnrollment() {
25
+ return this.runSignedOperation(client => client.restoreEnrollment());
26
26
  }
27
- async authenticateUser() {
28
- return this.runSignedOperation(client => client.authenticateUser());
27
+ async verifyUser(postResult = true) {
28
+ if (!postResult) {
29
+ const { nst } = await this.requestNeumaSessionToken();
30
+ const client = this.createSdk(nst);
31
+ return client.verifyUser();
32
+ }
33
+ return this.runSignedOperation(client => client.verifyUser());
29
34
  }
30
35
  /**
31
- * Authenticate and return a signed NRT without auto-submitting it to the
32
- * biometric result endpoint. Use this for business routes that validate
33
- * the NRT themselves (e.g. ticket purchase, update-password).
36
+ * Verify the user and return a signed NRT without auto-submitting it to
37
+ * the biometric result endpoint by calling `verifyUser(false)`.
38
+ * Use this for business routes that validate the NRT themselves
39
+ * (e.g. ticket purchase, update-password).
34
40
  */
35
- async authenticateUserDirect() {
36
- const { nst } = await this.requestNeumaSessionToken();
37
- const client = this.createSdk(nst);
38
- return client.authenticateUser();
39
- }
40
41
  async unenrollUser() {
41
42
  return this.runSignedOperation(client => client.unenrollUser());
42
43
  }
43
- async retrieveKey() {
44
+ async verifyUserForKey() {
44
45
  const client = this.createSdk();
45
- return client.retrieveKey();
46
+ return client.verifyUserForKey();
46
47
  }
47
- async clearUser() {
48
+ async clearEnrollment() {
48
49
  const client = this.createSdk();
49
- return client.clearUser();
50
+ return client.clearEnrollment();
50
51
  }
51
- parseRetrieveKeyResult(jsonString) {
52
+ parseVerifyUserForKeyResult(jsonString) {
52
53
  const client = this.createSdk();
53
- return client.parseRetrieveKeyResult(jsonString);
54
+ return client.parseVerifyUserForKeyResult(jsonString);
54
55
  }
55
56
  /**
56
57
  * Returns metadata for a pending deep-link operation issued from this
@@ -75,7 +76,7 @@ class NeumaClientHelper {
75
76
  this.createSdk().clearPendingResult();
76
77
  }
77
78
  /**
78
- * High-level iOS Safari recovery helper for page-load handling.
79
+ * High-level iOS Safari recovery API for page-load handling.
79
80
  *
80
81
  * This hides the storage/URL recovery details from webapps: it checks
81
82
  * whether a matching operation is recoverable, resumes or retrieves the
@@ -172,7 +173,7 @@ class NeumaClientHelper {
172
173
  extractNrt(payload) {
173
174
  if (!payload || typeof payload !== 'object')
174
175
  return undefined;
175
- const nrt = payload.brt;
176
+ const nrt = payload.nrt;
176
177
  return typeof nrt === 'string' && nrt.length > 0 ? nrt : undefined;
177
178
  }
178
179
  decodeJwtPayload(token) {
@@ -230,7 +231,7 @@ class NeumaClientHelper {
230
231
  }
231
232
  async postJson(url, body) {
232
233
  if (!this.config.fetcher) {
233
- throw new Error('Missing fetcher for NeumaClientHelper');
234
+ throw new Error('Missing fetcher for NeumaClient');
234
235
  }
235
236
  const response = await this.config.fetcher(url, {
236
237
  method: 'POST',
@@ -246,7 +247,7 @@ class NeumaClientHelper {
246
247
  return response.json();
247
248
  }
248
249
  /**
249
- * POST helper for the biometric-result submission path. Retries only
250
+ * POST utility for the biometric-result submission path. Retries only
250
251
  * on network-class fetch rejections (e.g. iOS Safari tab-refocus
251
252
  * jitter producing `TypeError: Failed to fetch`). HTTP error statuses
252
253
  * are deterministic server responses and are not retried. The
@@ -255,7 +256,7 @@ class NeumaClientHelper {
255
256
  */
256
257
  async postJsonWithRetry(url, body) {
257
258
  if (!this.config.fetcher) {
258
- throw new Error('Missing fetcher for NeumaClientHelper');
259
+ throw new Error('Missing fetcher for NeumaClient');
259
260
  }
260
261
  const maxAttempts = 5;
261
262
  const retryDelayMs = 2000;
@@ -287,59 +288,56 @@ class NeumaClientHelper {
287
288
  throw lastNetworkError;
288
289
  }
289
290
  }
290
- exports.NeumaClientHelper = NeumaClientHelper;
291
- let helperInstance = null;
292
- const getHelperInstance = () => {
293
- if (!helperInstance) {
294
- throw new Error('neumaClientHelper is not initialized');
291
+ exports.NeumaClient = NeumaClient;
292
+ let clientInstance = null;
293
+ const getClientInstance = () => {
294
+ if (!clientInstance) {
295
+ throw new Error('neumaClient is not initialized');
295
296
  }
296
- return helperInstance;
297
+ return clientInstance;
297
298
  };
298
- exports.neumaClientHelper = {
299
+ exports.neumaClient = {
299
300
  init(config) {
300
- if (!helperInstance) {
301
- helperInstance = new NeumaClientHelper(config);
301
+ if (!clientInstance) {
302
+ clientInstance = new NeumaClient(config);
302
303
  }
303
- return helperInstance;
304
+ return clientInstance;
304
305
  },
305
- get: getHelperInstance,
306
+ get: getClientInstance,
306
307
  ensureInitialized() {
307
- getHelperInstance().ensureInitialized();
308
+ getClientInstance().ensureInitialized();
308
309
  },
309
310
  enrollUser(user, enrollOptions) {
310
- return getHelperInstance().enrollUser(user, enrollOptions);
311
- },
312
- restoreUser() {
313
- return getHelperInstance().restoreUser();
311
+ return getClientInstance().enrollUser(user, enrollOptions);
314
312
  },
315
- authenticateUser() {
316
- return getHelperInstance().authenticateUser();
313
+ restoreEnrollment() {
314
+ return getClientInstance().restoreEnrollment();
317
315
  },
318
- authenticateUserDirect() {
319
- return getHelperInstance().authenticateUserDirect();
316
+ verifyUser(postResult = true) {
317
+ return getClientInstance().verifyUser(postResult);
320
318
  },
321
319
  unenrollUser() {
322
- return getHelperInstance().unenrollUser();
320
+ return getClientInstance().unenrollUser();
323
321
  },
324
- retrieveKey() {
325
- return getHelperInstance().retrieveKey();
322
+ verifyUserForKey() {
323
+ return getClientInstance().verifyUserForKey();
326
324
  },
327
- clearUser() {
328
- return getHelperInstance().clearUser();
325
+ clearEnrollment() {
326
+ return getClientInstance().clearEnrollment();
329
327
  },
330
- parseRetrieveKeyResult(jsonString) {
331
- return getHelperInstance().parseRetrieveKeyResult(jsonString);
328
+ parseVerifyUserForKeyResult(jsonString) {
329
+ return getClientInstance().parseVerifyUserForKeyResult(jsonString);
332
330
  },
333
331
  getPendingOperation() {
334
- return getHelperInstance().getPendingOperation();
332
+ return getClientInstance().getPendingOperation();
335
333
  },
336
334
  resumePendingResult() {
337
- return getHelperInstance().resumePendingResult();
335
+ return getClientInstance().resumePendingResult();
338
336
  },
339
337
  clearPendingResult() {
340
- getHelperInstance().clearPendingResult();
338
+ getClientInstance().clearPendingResult();
341
339
  },
342
340
  handlePendingOperation(options) {
343
- return getHelperInstance().handlePendingOperation(options);
341
+ return getClientInstance().handlePendingOperation(options);
344
342
  },
345
343
  };
@@ -590,7 +590,7 @@ class NeumaMobile {
590
590
  common_utils_1.logger.error('Operation failed', { operation, error: message });
591
591
  throw new NeumaMobileInterface_1.NeumaError(message, errorCode);
592
592
  }
593
- const nrt = payload?.brt;
593
+ const nrt = payload?.nrt;
594
594
  if (typeof nrt !== 'string' || nrt.length === 0) {
595
595
  common_utils_1.logger.error('Biometric result token missing', {
596
596
  operation,
@@ -646,7 +646,7 @@ class NeumaMobile {
646
646
  });
647
647
  if (response.ok) {
648
648
  const payload = await response.json();
649
- if (payload && typeof payload.brt === 'string' && payload.brt.length > 0) {
649
+ if (payload && typeof payload.nrt === 'string' && payload.nrt.length > 0) {
650
650
  common_utils_1.logger.info('Received Neuma result token via long polling', {
651
651
  callbackId,
652
652
  payloadKeys: Object.keys(payload || {}),
@@ -774,7 +774,7 @@ class NeumaMobile {
774
774
  }
775
775
  }
776
776
  if (this.options.neumaSessionToken) {
777
- params.append('bst', this.options.neumaSessionToken);
777
+ params.append('nst', this.options.neumaSessionToken);
778
778
  }
779
779
  // Use HTTPS App Link for QR codes - Android camera apps don't support custom schemes
780
780
  const appLinkBase = this.resolveQrAppLinkBase();
@@ -887,7 +887,7 @@ class NeumaMobile {
887
887
  }
888
888
  }
889
889
  if (this.options.neumaSessionToken) {
890
- params.append('bst', this.options.neumaSessionToken);
890
+ params.append('nst', this.options.neumaSessionToken);
891
891
  }
892
892
  if (returnUrl) {
893
893
  params.append('returnUrl', returnUrl);
@@ -1026,7 +1026,7 @@ class NeumaMobile {
1026
1026
  throw new NeumaMobileInterface_1.NeumaError(msg, 'USER_EXISTS');
1027
1027
  }
1028
1028
  }
1029
- async restoreUser() {
1029
+ async restoreEnrollment() {
1030
1030
  try {
1031
1031
  const payload = await this.invokeMobileApp('restore', undefined);
1032
1032
  const nrt = this.extractNeumaResultToken(payload, 'restore', 'AUTH_FAILED');
@@ -1058,11 +1058,11 @@ class NeumaMobile {
1058
1058
  throw new NeumaMobileInterface_1.NeumaError(msg, 'AUTH_FAILED');
1059
1059
  }
1060
1060
  }
1061
- async authenticateUser() {
1061
+ async verifyUser() {
1062
1062
  try {
1063
1063
  const payload = await this.invokeMobileApp('authenticate', undefined);
1064
1064
  const nrt = this.extractNeumaResultToken(payload, 'authenticate', 'AUTH_FAILED');
1065
- common_utils_1.logger.info('Authentication successful');
1065
+ common_utils_1.logger.info('User verification successful');
1066
1066
  return nrt;
1067
1067
  }
1068
1068
  catch (error) {
@@ -1071,22 +1071,22 @@ class NeumaMobile {
1071
1071
  if (error instanceof Error && /(cancel|canceled|cancelled)/i.test(error.message)) {
1072
1072
  throw new NeumaMobileInterface_1.NeumaError('Cancelled by user', 'USER_CANCELLED');
1073
1073
  }
1074
- const msg = error instanceof Error ? error.message : 'Authentication failed';
1075
- common_utils_1.logger.error('Authentication error', { error: msg });
1074
+ const msg = error instanceof Error ? error.message : 'User verification failed';
1075
+ common_utils_1.logger.error('User verification error', { error: msg });
1076
1076
  throw new NeumaMobileInterface_1.NeumaError(msg, 'AUTH_FAILED');
1077
1077
  }
1078
1078
  }
1079
- async retrieveKey() {
1080
- // retrieveKey requires clipboard sharing between browser and mobile app,
1079
+ async verifyUserForKey() {
1080
+ // verifyUserForKey requires clipboard sharing between browser and mobile app,
1081
1081
  // which only works when both are on the same device (mobile browser)
1082
1082
  if (this.isDesktopBrowser()) {
1083
- common_utils_1.logger.error('retrieveKey called from desktop browser');
1083
+ common_utils_1.logger.error('verifyUserForKey called from desktop browser');
1084
1084
  throw new NeumaMobileInterface_1.NeumaError('This operation is supported only on mobile browsers', 'AUTH_FAILED');
1085
1085
  }
1086
1086
  await this.invokeMobileApp('retrieve-key', undefined);
1087
1087
  return null;
1088
1088
  }
1089
- parseRetrieveKeyResult(jsonString) {
1089
+ parseVerifyUserForKeyResult(jsonString) {
1090
1090
  try {
1091
1091
  const result = JSON.parse(jsonString);
1092
1092
  if (this.isUserCancelledPayload(result)) {
@@ -1108,22 +1108,22 @@ class NeumaMobile {
1108
1108
  if (error instanceof NeumaMobileInterface_1.NeumaError)
1109
1109
  throw error;
1110
1110
  const msg = error instanceof Error ? error.message : 'Invalid JSON format';
1111
- common_utils_1.logger.error('Failed to parse retrieve-key result', { error: msg });
1111
+ common_utils_1.logger.error('Failed to parse key verification result', { error: msg });
1112
1112
  throw new NeumaMobileInterface_1.NeumaError(msg, 'PARSE_ERROR');
1113
1113
  }
1114
1114
  }
1115
1115
  async getEnrolledUser() {
1116
1116
  return this.readPersistedEnrollment();
1117
1117
  }
1118
- async clearUser() {
1118
+ async clearEnrollment() {
1119
1119
  try {
1120
1120
  if (this.isDesktopBrowser()) {
1121
- common_utils_1.logger.error('clearUser called from desktop browser');
1121
+ common_utils_1.logger.error('clearEnrollment called from desktop browser');
1122
1122
  throw new NeumaMobileInterface_1.NeumaError('This operation is supported only on mobile browsers', 'AUTH_FAILED');
1123
1123
  }
1124
1124
  await this.invokeMobileApp('clear-user', undefined);
1125
1125
  this.persistEnrollment(null);
1126
- common_utils_1.logger.info('User cleared successfully');
1126
+ common_utils_1.logger.info('Enrollment cleared successfully');
1127
1127
  return;
1128
1128
  }
1129
1129
  catch (error) {
@@ -1132,8 +1132,8 @@ class NeumaMobile {
1132
1132
  if (error instanceof Error && /(cancel|canceled|cancelled)/i.test(error.message)) {
1133
1133
  throw new NeumaMobileInterface_1.NeumaError('Cancelled by user', 'USER_CANCELLED');
1134
1134
  }
1135
- const msg = error instanceof Error ? error.message : 'Clear user failed';
1136
- common_utils_1.logger.error('Clear user error', { error: msg });
1135
+ const msg = error instanceof Error ? error.message : 'Clear enrollment failed';
1136
+ common_utils_1.logger.error('Clear enrollment error', { error: msg });
1137
1137
  throw new NeumaMobileInterface_1.NeumaError(msg, 'USER_NOT_FOUND');
1138
1138
  }
1139
1139
  }
@@ -9,10 +9,10 @@ export interface EnrollmentResult {
9
9
  readonly enrolledAt: Date;
10
10
  readonly userDescriptor: UserDescriptor;
11
11
  }
12
- export interface AuthenticationResult {
12
+ export interface VerificationResult {
13
13
  readonly userId: string;
14
14
  readonly userDescriptor: UserDescriptor;
15
- readonly authenticatedAt: Date;
15
+ readonly verifiedAt: Date;
16
16
  }
17
17
  export interface KeyRetrievalResult {
18
18
  readonly key: string;
@@ -145,25 +145,25 @@ export interface NeumaMobileInterface {
145
145
  * Restores an existing user to a new device and resolves with a Neuma result token (NRT).
146
146
  * Rejects with {@link NeumaError} when the operation fails or is cancelled.
147
147
  */
148
- restoreUser(): Promise<string>;
148
+ restoreEnrollment(): Promise<string>;
149
149
  /**
150
- * Initiates biometric authentication and resolves with a Neuma result token (NRT),
150
+ * Initiates biometric verification and resolves with a Neuma result token (NRT),
151
151
  * throwing {@link NeumaError} on failure.
152
152
  */
153
- authenticateUser(): Promise<string>;
153
+ verifyUser(): Promise<string>;
154
154
  /**
155
155
  * Requests a biometric-bound cryptographic key from the native flow.
156
156
  * NOTE: Works in offline mode - returns null and requires manual paste from mobile app.
157
- * Use parseRetrieveKeyResult() to parse the pasted JSON.
157
+ * Use parseVerifyUserForKeyResult() to parse the pasted JSON.
158
158
  */
159
- retrieveKey(): Promise<null>;
159
+ verifyUserForKey(): Promise<null>;
160
160
  /**
161
- * Parse and validate manually pasted retrieve-key result from mobile app.
161
+ * Parse and validate manually pasted key-verification result from mobile app.
162
162
  * Call this after user pastes JSON from mobile app clipboard.
163
163
  * @param jsonString The JSON string pasted from mobile app
164
164
  * @returns Parsed and validated KeyRetrievalResult
165
165
  */
166
- parseRetrieveKeyResult(jsonString: string): KeyRetrievalResult;
166
+ parseVerifyUserForKeyResult(jsonString: string): KeyRetrievalResult;
167
167
  /**
168
168
  * Performs a full unenrollment (device plus server) and resolves with
169
169
  * a Neuma result token (NRT) if successful.
@@ -173,7 +173,7 @@ export interface NeumaMobileInterface {
173
173
  * Clears the enrolled user on-device via the native flow, rejecting with
174
174
  * {@link NeumaError} on failure or cancellation.
175
175
  */
176
- clearUser(): Promise<void>;
176
+ clearEnrollment(): Promise<void>;
177
177
  /**
178
178
  * Returns metadata for a recoverable deep-link operation, or `null` when
179
179
  * there is none.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { NeumaMobileFactory } from './NeumaMobile';
2
- export type { NeumaMobileInterface, NeumaMobileOptions, UserDescriptor, EnrollmentResult, AuthenticationResult, KeyRetrievalResult, PackageVersion, PendingOperationInfo, AppLaunchPlatform, AppInstallUrlResolver, AppLaunchFailureContext, QrCodeData, QrCodeCleanupFn, } from './NeumaMobileInterface';
2
+ export { NEUMA_CLIENT_SDK_VERSION } from './version';
3
+ export type { NeumaMobileInterface, NeumaMobileOptions, UserDescriptor, EnrollmentResult, VerificationResult, KeyRetrievalResult, PackageVersion, PendingOperationInfo, AppLaunchPlatform, AppInstallUrlResolver, AppLaunchFailureContext, QrCodeData, QrCodeCleanupFn, } from './NeumaMobileInterface';
3
4
  export { NeumaError } from './NeumaMobileInterface';
4
- export { NeumaClientHelper, neumaClientHelper, } from './NeumaClientHelper';
5
- export type { NeumaClientHelperConfig, EnrollUserOptions, HandlePendingOperationOptions, PendingOperationErrorContext, PendingOperationMatcher, PendingOperationResult, } from './NeumaClientHelper';
5
+ export { NeumaClient, neumaClient, } from './NeumaClient';
6
+ export type { NeumaClientConfig, EnrollUserOptions, HandlePendingOperationOptions, PendingOperationErrorContext, PendingOperationMatcher, PendingOperationResult, } from './NeumaClient';
6
7
  export { NEUMA_MOBILE_PLAY_STORE_URL, NEUMA_MOBILE_TESTFLIGHT_URL, getNeumaMobileInstallUrl, } from './installLinks';
package/dist/index.js CHANGED
@@ -1,15 +1,17 @@
1
1
  "use strict";
2
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;
3
+ exports.getNeumaMobileInstallUrl = exports.NEUMA_MOBILE_TESTFLIGHT_URL = exports.NEUMA_MOBILE_PLAY_STORE_URL = exports.neumaClient = exports.NeumaClient = exports.NeumaError = exports.NEUMA_CLIENT_SDK_VERSION = exports.NeumaMobileFactory = void 0;
4
4
  // Neuma Client SDK - Main exports
5
5
  var NeumaMobile_1 = require("./NeumaMobile");
6
6
  Object.defineProperty(exports, "NeumaMobileFactory", { enumerable: true, get: function () { return NeumaMobile_1.NeumaMobileFactory; } });
7
+ var version_1 = require("./version");
8
+ Object.defineProperty(exports, "NEUMA_CLIENT_SDK_VERSION", { enumerable: true, get: function () { return version_1.NEUMA_CLIENT_SDK_VERSION; } });
7
9
  // Value export kept separate
8
10
  var NeumaMobileInterface_1 = require("./NeumaMobileInterface");
9
11
  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; } });
12
+ var NeumaClient_1 = require("./NeumaClient");
13
+ Object.defineProperty(exports, "NeumaClient", { enumerable: true, get: function () { return NeumaClient_1.NeumaClient; } });
14
+ Object.defineProperty(exports, "neumaClient", { enumerable: true, get: function () { return NeumaClient_1.neumaClient; } });
13
15
  var installLinks_1 = require("./installLinks");
14
16
  Object.defineProperty(exports, "NEUMA_MOBILE_PLAY_STORE_URL", { enumerable: true, get: function () { return installLinks_1.NEUMA_MOBILE_PLAY_STORE_URL; } });
15
17
  Object.defineProperty(exports, "NEUMA_MOBILE_TESTFLIGHT_URL", { enumerable: true, get: function () { return installLinks_1.NEUMA_MOBILE_TESTFLIGHT_URL; } });
@@ -0,0 +1 @@
1
+ export declare const NEUMA_CLIENT_SDK_VERSION = "0.109.0";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NEUMA_CLIENT_SDK_VERSION = void 0;
4
+ exports.NEUMA_CLIENT_SDK_VERSION = '0.109.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizualkei/neuma-client-sdk",
3
- "version": "0.100.3",
4
- "description": "Neuma Web Client SDK - Biometric authentication SDK for webapp integration",
3
+ "version": "0.109.0",
4
+ "description": "Neuma Web Client SDK - Biometric verification SDK for webapp integration",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "keywords": [
26
26
  "biometric",
27
- "authentication",
27
+ "verification",
28
28
  "deep-linking",
29
29
  "mobile",
30
30
  "pwa"