@uverifyng/node 0.1.0 → 0.1.1

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/dist/index.cjs CHANGED
@@ -99,7 +99,7 @@ function signPayload(body, secret, timestamp = Math.floor(Date.now() / 1e3)) {
99
99
  }
100
100
 
101
101
  // src/client.ts
102
- var VERSION = "0.1.0";
102
+ var VERSION = "0.1.1";
103
103
  var DEFAULT_BASE_URL = "https://api.uverify.com.ng/v1";
104
104
  var IMAGE_FIELDS = ["selfie_image", "front_image", "back_image"];
105
105
  var newReference = (prefix) => `${prefix}_${(0, import_node_crypto2.randomBytes)(9).toString("base64url")}`;
package/dist/index.d.cts CHANGED
@@ -333,7 +333,7 @@ declare function constructEvent<T = unknown>(rawBody: string | Buffer | Uint8Arr
333
333
  /** Sign a payload the way UVerify does, for your own tests. */
334
334
  declare function signPayload(body: string, secret: string, timestamp?: number): string;
335
335
 
336
- declare const VERSION = "0.1.0";
336
+ declare const VERSION = "0.1.1";
337
337
  interface UVerifyOptions {
338
338
  /** uvk_test_… (sandbox, free) or uvk_live_…. Defaults to the UVERIFY_API_KEY environment variable. */
339
339
  apiKey?: string;
@@ -401,9 +401,9 @@ declare class Resource {
401
401
  }
402
402
  declare class IdentityResource extends Resource {
403
403
  /** BVN lookup. Names are required by the registry. */
404
- bvn(params: NamedCheckParams): Promise<Verification>;
404
+ bvn(params: PersonCheckParams): Promise<Verification>;
405
405
  /** BVN lookup + face match against the BVN photo. */
406
- bvnFaceMatch(params: NamedCheckParams & FaceInput): Promise<Verification>;
406
+ bvnFaceMatch(params: PersonCheckParams & FaceInput): Promise<Verification>;
407
407
  nin(params: PersonCheckParams): Promise<Verification>;
408
408
  ninFaceMatch(params: PersonCheckParams & FaceInput): Promise<Verification>;
409
409
  driversLicense(params: NamedCheckParams): Promise<Verification>;
package/dist/index.d.ts CHANGED
@@ -333,7 +333,7 @@ declare function constructEvent<T = unknown>(rawBody: string | Buffer | Uint8Arr
333
333
  /** Sign a payload the way UVerify does, for your own tests. */
334
334
  declare function signPayload(body: string, secret: string, timestamp?: number): string;
335
335
 
336
- declare const VERSION = "0.1.0";
336
+ declare const VERSION = "0.1.1";
337
337
  interface UVerifyOptions {
338
338
  /** uvk_test_… (sandbox, free) or uvk_live_…. Defaults to the UVERIFY_API_KEY environment variable. */
339
339
  apiKey?: string;
@@ -401,9 +401,9 @@ declare class Resource {
401
401
  }
402
402
  declare class IdentityResource extends Resource {
403
403
  /** BVN lookup. Names are required by the registry. */
404
- bvn(params: NamedCheckParams): Promise<Verification>;
404
+ bvn(params: PersonCheckParams): Promise<Verification>;
405
405
  /** BVN lookup + face match against the BVN photo. */
406
- bvnFaceMatch(params: NamedCheckParams & FaceInput): Promise<Verification>;
406
+ bvnFaceMatch(params: PersonCheckParams & FaceInput): Promise<Verification>;
407
407
  nin(params: PersonCheckParams): Promise<Verification>;
408
408
  ninFaceMatch(params: PersonCheckParams & FaceInput): Promise<Verification>;
409
409
  driversLicense(params: NamedCheckParams): Promise<Verification>;
package/dist/index.js CHANGED
@@ -66,7 +66,7 @@ function signPayload(body, secret, timestamp = Math.floor(Date.now() / 1e3)) {
66
66
  }
67
67
 
68
68
  // src/client.ts
69
- var VERSION = "0.1.0";
69
+ var VERSION = "0.1.1";
70
70
  var DEFAULT_BASE_URL = "https://api.uverify.com.ng/v1";
71
71
  var IMAGE_FIELDS = ["selfie_image", "front_image", "back_image"];
72
72
  var newReference = (prefix) => `${prefix}_${randomBytes(9).toString("base64url")}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uverifyng/node",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official Node.js library for the UVerify API: BVN, NIN and ID checks, liveness, face match, ID documents and AML screening for Nigeria.",
5
5
  "license": "MIT",
6
6
  "author": "Elasto Web Services Limited",