@intlsdk/account-api
Advanced tools
Comparing version 1.20.0 to 1.20.2
@@ -44,3 +44,6 @@ declare const ACCOUNT: { | ||
readonly query_game_name: "/v2/common/game_name"; | ||
readonly exchange_web_credential: "/v2/auth/exchange_web_credential"; | ||
readonly web_credential_to_token: "/v2/auth/web_credential_to_token"; | ||
readonly refresh_sacc_token: "/v2/auth/refresh_sacc_token"; | ||
readonly reg_bind_lip: "/v2/auth/reg_bind_lip"; | ||
}; | ||
@@ -47,0 +50,0 @@ declare const THIRD_PARTY: { |
@@ -49,3 +49,2 @@ import Aegis from 'aegis-web-mini-sdk'; | ||
intlSignIn: ApiModel['intlSignIn']; | ||
refreshCAccTokenByOpenID: ApiModel['refreshCAccTokenByOpenID']; | ||
queryUidByOpenID: ApiModel['queryUidByOpenID']; | ||
@@ -69,3 +68,5 @@ queryUserInfo: AccountApi['queryUserInfo']; | ||
decryptAES: ApiModel['decryptAES']; | ||
exchangeWebCredential: IntlApi['exchangeWebCredential']; | ||
credentialFromApp: IntlApi['credentialFromApp']; | ||
refreshCAccTokenByOpenID: IntlApi['refreshSaccTokenByOpenID']; | ||
modifyUserAgreement: AccountApi['modifyUserAgreement']; | ||
@@ -88,2 +89,3 @@ thirdAuthorize: ThirdChannelApi['getThirdLoginInfo']; | ||
getBindChannelsByOpenID: BindApi['getBindChannelsByOpenID']; | ||
regBindLip: BindApi['regBindLip']; | ||
queryMyCountry: CommonApi['queryMyCountry']; | ||
@@ -90,0 +92,0 @@ queryMyRegion: CommonApi['queryMyRegion']; |
@@ -28,11 +28,2 @@ import { RespMeta, IntlSignInResp } from '../type/common.type'; | ||
/** | ||
* refresh cacc token by openid | ||
* openid string [required] third channel oepnid | ||
* token string [required] third channel token | ||
* channel_id number [required] CAcc account_plat_type | ||
* oauth_channelid [required] third channel id | ||
* @returns | ||
*/ | ||
refreshCAccTokenByOpenID: (params?: any) => Promise<any>; | ||
/** | ||
* verify_code string [required] Verify Code | ||
@@ -39,0 +30,0 @@ * account string [required] Email or Phone |
import { SDKConfig } from '../config'; | ||
import { RespMeta } from '../type/common.type'; | ||
import { BindParams, GetBindChannelsByOpenIDParams, UnbindParams } from '../type'; | ||
import { BindParams, GetBindChannelsByOpenIDParams, RegBindLipnParams, UnbindParams } from '../type'; | ||
/** | ||
@@ -49,2 +49,6 @@ * 绑定相关 API | ||
unbind: (params: UnbindParams) => Promise<any>; | ||
/** | ||
* 快捷绑定lip | ||
*/ | ||
regBindLip: (params: RegBindLipnParams) => Promise<RespMeta>; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { CredentialFromAppParams, CredentialFromAppResp } from '../type/intl'; | ||
import { CredentialFromAppParams, CredentialFromAppResp, ExchangeWebCredentialParams, ExchangeWebCredentialResp, refreshSaccTokenByOpenIDParams } from '../type'; | ||
import { SDKConfig } from '../config'; | ||
@@ -14,2 +14,8 @@ import { IntlRequestParams, RespMeta } from '../type/common.type'; | ||
/** | ||
* 通过openid、token获取web_credential | ||
* @param params | ||
* @returns | ||
*/ | ||
exchangeWebCredential: (params: ExchangeWebCredentialParams) => Promise<ExchangeWebCredentialResp>; | ||
/** | ||
* 通过web_credential获取openid、token | ||
@@ -20,2 +26,12 @@ * @param params | ||
credentialFromApp: ({ captchaOption }: CredentialFromAppParams) => Promise<CredentialFromAppResp>; | ||
/** | ||
* refresh cacc token by openid | ||
* openid string [required] third channel oepnid | ||
* token string [required] third channel token | ||
* oauth_channelid [required] third channel id | ||
* | ||
* channel_id number [required] CAcc account_plat_type | ||
* @returns | ||
*/ | ||
refreshSaccTokenByOpenID: (params: refreshSaccTokenByOpenIDParams) => Promise<any>; | ||
} |
@@ -5,3 +5,3 @@ export interface GetProtocolParam { | ||
} | ||
interface ProtocolData { | ||
export interface ProtocolData { | ||
user_agreed_pp: number; | ||
@@ -27,2 +27,1 @@ user_agreed_dt: number; | ||
} | ||
export {}; |
@@ -0,1 +1,2 @@ | ||
import { ProtocolData } from './account'; | ||
import { PersonalInfoMeta, UsernameAvailableType, UserAgreementMeta, RegisterType, VerifyType, UidExpireRespMeta, PhoneMeta, UpdateUserAgreementMeta, MachineCheckParams, PasswordParams, AccountMeta, AccountType } from './cacc-common.type'; | ||
@@ -215,1 +216,8 @@ import { RespMeta, CodeType, UidMeta, OpenIdMeta } from './common.type'; | ||
} | ||
export interface RegBindLipnParams { | ||
openid: string; | ||
token: string; | ||
auto_bind_li_code: string; | ||
li_protocol: Omit<ProtocolData, 'user_agreed_pp' | 'user_agreed_dt'>; | ||
channel_id: number; | ||
} |
@@ -112,4 +112,20 @@ import { CustomAccountChannelInfo, DelAccountStatusType } from './cacc-common.type'; | ||
}; | ||
auto_bind_lip_ret: number; | ||
auto_bind_lip_msg: string; | ||
auto_bind_lip_rsp: AutoBindLipRsp; | ||
}; | ||
} | ||
interface AutoBindLipRsp { | ||
auto_bind_li_code: string; | ||
auto_bind_li_status: number; | ||
li_protocol: { | ||
is_receive_email: number; | ||
is_receive_email_in_night: number; | ||
user_agreed_li_dt: string; | ||
user_agreed_li_pp: string; | ||
user_agreed_li_tos: string; | ||
}; | ||
has_bind_lip: boolean; | ||
email: string; | ||
} | ||
/** | ||
@@ -181,1 +197,2 @@ * 【API 参数】获取Game Name | ||
} | ||
export {}; |
@@ -17,3 +17,17 @@ import { CaptchaOptionParams } from './common.type'; | ||
linkMode?: number; | ||
autoBindLip?: 1 | 0 | undefined; | ||
} | ||
export interface refreshSaccTokenByOpenIDParams { | ||
openid: string; | ||
token: string; | ||
oauth_channelid: number; | ||
channel_id: number; | ||
} | ||
export interface ExchangeWebCredentialResp { | ||
ret: number; | ||
msg: string; | ||
web_credential: string; | ||
machine_check_type?: 0 | 1; | ||
extra_info: string; | ||
} | ||
export interface CredentialFromAppResp { | ||
@@ -34,4 +48,12 @@ ret: number; | ||
} | ||
export interface ExchangeWebCredentialReq { | ||
openid: string; | ||
token: string; | ||
target_gameid: number; | ||
} | ||
export interface ExchangeWebCredentialParams extends ExchangeWebCredentialReq { | ||
channel_id: number; | ||
} | ||
export interface CredentialFromAppParams { | ||
captchaOption?: CaptchaOptionParams; | ||
} |
{ | ||
"name": "@intlsdk/account-api", | ||
"version": "1.20.0", | ||
"version": "1.20.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/src/index.d.ts", |
Sorry, the diff of this file is too big to display
589736
5101