@bytexbyte/ike-app-api 1.0.14 → 1.0.16

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.
@@ -1,5 +1,5 @@
1
1
  import BxBApi from '@bytexbyte/bxb-api';
2
- import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneOTP } from './type';
2
+ import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneOTP, SignInPhoneBiometrics } from './type';
3
3
  declare type User = {
4
4
  id: string;
5
5
  image: string | null;
@@ -99,6 +99,7 @@ declare class IKEAppAuthApi extends BxBApi {
99
99
  signIn(provider: Parameters<SignInEmailBiometrics>[0], form: Parameters<SignInEmailBiometrics>[1]): Promise<Awaited<ReturnType<SignInEmailBiometrics>>>;
100
100
  signIn(provider: Parameters<SignInKyc>[0], form: Parameters<SignInKyc>[1]): Promise<Awaited<ReturnType<SignInKyc>>>;
101
101
  signIn(provider: Parameters<SignInPhoneOTP>[0], form: Parameters<SignInPhoneOTP>[1]): Promise<Awaited<ReturnType<SignInPhoneOTP>>>;
102
+ signIn(provider: Parameters<SignInPhoneBiometrics>[0], form: Parameters<SignInPhoneBiometrics>[1]): Promise<Awaited<ReturnType<SignInPhoneBiometrics>>>;
102
103
  signOut(): Promise<any>;
103
104
  getSession(): Promise<Session>;
104
105
  createToken(): Promise<{
@@ -70,18 +70,6 @@ export declare type SignInEmailBiometrics = (provider: 'email-biometrics', form:
70
70
  id?: undefined;
71
71
  error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Email not verified.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
72
72
  }>;
73
- export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form: {
74
- publicKey: string;
75
- id: string;
76
- signature: string;
77
- csrfToken?: string;
78
- }) => Promise<{
79
- id: string;
80
- error?: undefined;
81
- } | {
82
- id?: undefined;
83
- error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
84
- }>;
85
73
  export declare type SignInKyc = (provider: 'kyc', form: {
86
74
  kycId: string;
87
75
  firstName: string;
@@ -104,4 +92,15 @@ export declare type SignInPhoneOTP = (provider: 'phone-otp', form: {
104
92
  } | {
105
93
  error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'Invalid OTP code.';
106
94
  }>;
107
- export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInPhoneBiometrics | SignInKyc | SignInPhoneOTP;
95
+ export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form: {
96
+ publicKey: string;
97
+ id: string;
98
+ signature: string;
99
+ csrfToken?: string;
100
+ }) => Promise<{
101
+ id: string;
102
+ idVerified: Date | null;
103
+ } | {
104
+ error: 'Authentication error.' | 'Field(s) cannot be empty.' | 'id not found.' | 'Sign in to turn on biometrics.' | 'New device login requires password credentials.' | 'signature error.' | 'URL not found.';
105
+ }>;
106
+ export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -76,4 +76,4 @@
76
76
  "tsutils": "^2.29.0",
77
77
  "wrappy": "^1.0.2"
78
78
  }
79
- }
79
+ }