/** * 用户信息接口 */ interface UserInfo { /** * 用户昵称 */ nickName: string; /** * 用户头像链接 */ avatarUrl: string; /** * 用户性别 */ gender: number; /** * 用户所在国家 */ country: string; /** * 用户所在省份 */ province: string; /** * 用户所在城市 */ city: string; /** * 用户访问令牌 */ accessToken?: string; } /** * 授权作用域类型 */ declare type ScopeType = "scope.userLocation" | "scope.userLocationBackground" | "scope.record" | "scope.camera" | "scope.bluetooth" | "scope.writePhotosAlbum" | "scope.addPhoneContact" | "scope.addPhoneCalendar" | "scope.userInfo"; /** * 登录接口的输入参数 */ interface LoginInput extends BaseInput { } /** * 检查登录态是否过期接口的输入参数 */ interface CheckSessionInput extends BaseInput { } /** * 提前向用户发起授权请求接口的输入参数 */ interface AuthorizeInput extends BaseInput { /** * 需要获取权限的 scope */ scope: ScopeType; }