@momo-cloud/gami-sdk 0.0.27 → 0.0.28

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.
@@ -30,6 +30,7 @@ declare const GamiSDK: {
30
30
  gameId: string;
31
31
  userId: string | undefined;
32
32
  userInfo: IUserInfo | null;
33
+ deviceInfo: TDeviceInfo;
33
34
  isBrowser: boolean;
34
35
  feature: any;
35
36
  isIos: boolean;
@@ -146,6 +147,14 @@ declare const GamiSDK: {
146
147
  onBlurApp: (callback: () => void) => void;
147
148
  registerNoti: (action: (data: any) => void) => void;
148
149
  unregisterNoti: () => void;
150
+ openLoginApp: ({ path, subDomain, params, options, pinKey }: {
151
+ path: string;
152
+ subDomain?: "ai" | "aws" | "api";
153
+ params?: any;
154
+ options?: any;
155
+ pinKey?: string;
156
+ }, callback: (data: any) => void) => void;
157
+ UploadImage: (base64: string) => Promise<string>;
149
158
  trackingEvent: (event: string, data: any) => void;
150
159
  screenTracking: ({ game_id, event_name, action_name, screen_name, extra, error_code }: {
151
160
  game_id?: string;
@@ -203,6 +212,13 @@ declare type TBalanceConfig = {
203
212
  icon: string;
204
213
  };
205
214
 
215
+ export declare type TDeviceInfo = {
216
+ appVersion: string;
217
+ buildVersion: string;
218
+ bundleId: string;
219
+ deviceManufacturer?: string;
220
+ };
221
+
206
222
  declare type TEvent = {
207
223
  response_info: {
208
224
  error_message: string;