@bytexbyte/ike-app-api 1.0.46 → 1.0.48

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, SignInBerifyMe, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneBiometrics, SignInPhoneOTP } from './type';
2
+ import { SignInAppleMobile, SignInEmailBiometrics, SignInEmailPassword, SignInFacebookMobile, SignInGoogleAndroid, SignInGoogleIos, SignInKyc, SignInPhoneBiometrics, SignInPhoneOTP } from './type';
3
3
  declare type User = {
4
4
  id: string;
5
5
  image: string | null;
@@ -102,7 +102,6 @@ declare class IKEAppAuthApi extends BxBApi {
102
102
  signIn(provider: Parameters<SignInKyc>[0], form: Parameters<SignInKyc>[1]): Promise<Awaited<ReturnType<SignInKyc>>>;
103
103
  signIn(provider: Parameters<SignInPhoneOTP>[0], form: Parameters<SignInPhoneOTP>[1]): Promise<Awaited<ReturnType<SignInPhoneOTP>>>;
104
104
  signIn(provider: Parameters<SignInPhoneBiometrics>[0], form: Parameters<SignInPhoneBiometrics>[1]): Promise<Awaited<ReturnType<SignInPhoneBiometrics>>>;
105
- signIn(provider: Parameters<SignInBerifyMe>[0], form: Parameters<SignInBerifyMe>[1]): Promise<Awaited<ReturnType<SignInBerifyMe>>>;
106
105
  signOut(): Promise<any>;
107
106
  getSession(): Promise<Session>;
108
107
  createToken(): Promise<{
@@ -162,7 +161,7 @@ declare class IKEAppAuthApi extends BxBApi {
162
161
  }>;
163
162
  verifyAge(body: {
164
163
  phone: string;
165
- birthDate: Date;
164
+ birthDate: string;
166
165
  }): Promise<{
167
166
  isVerified: boolean;
168
167
  } | {
@@ -103,13 +103,4 @@ export declare type SignInPhoneBiometrics = (provider: 'phone-biometrics', form:
103
103
  } | {
104
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
105
  }>;
106
- export declare type SignInBerifyMe = (provider: 'berify-me', form: {
107
- token: string;
108
- csrfToken?: string;
109
- }) => Promise<{
110
- id: string;
111
- idVerified: Date | null;
112
- } | {
113
- 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.';
114
- }>;
115
- export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics | SignInBerifyMe;
106
+ export declare type SignIn = SignInEmailPassword | SignInGoogleIos | SignInGoogleAndroid | SignInFacebookMobile | SignInAppleMobile | SignInEmailBiometrics | SignInKyc | SignInPhoneOTP | SignInPhoneBiometrics;
@@ -3,6 +3,7 @@ declare type RegisterBody = {
3
3
  token: string;
4
4
  device: string;
5
5
  deviceOsType: 'ios' | 'android' | 'windows' | 'macos' | 'web';
6
+ deviceId?: string;
6
7
  };
7
8
  declare type RegisterResult = {
8
9
  error?: 'You are not logged in.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/ike-app-api",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "app api",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",