@cloudbase/types 2.25.2 → 2.25.4

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.
Files changed (2) hide show
  1. package/auth.d.ts +3 -3
  2. package/package.json +2 -2
package/auth.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ICloudbaseConfig, KV, ICloudbase } from '.'
2
- import { UserInfo } from '@cloudbase/oauth'
2
+ import { authModels, UserInfo } from '@cloudbase/oauth'
3
3
  import { ICloudbaseEventEmitter } from './events'
4
4
 
5
5
  export type ICloudbaseAuthConfig = Pick<
@@ -62,8 +62,8 @@ export interface IUser extends IUserInfo {
62
62
  getLinkedUidList?: () => Promise<{ hasPrimaryUid: boolean; users: IUserInfo[] }>
63
63
  setPrimaryUid?: (uid: string) => Promise<void>
64
64
  unlink?: (loginType: 'CUSTOM' | 'WECHAT-OPEN' | 'WECHAT-PUBLIC' | 'WECHAT-UNION') => Promise<void>
65
- update: (userinfo: IUserInfo) => Promise<void>
66
- refresh: (params?: { version?: string }) => Promise<IUserInfo>
65
+ update: (userinfo: authModels.UserProfile) => Promise<void>
66
+ refresh: (params?: { version?: string }) => Promise<authModels.UserInfo>
67
67
  }
68
68
  export interface ILoginState {
69
69
  user: IUser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "2.25.2",
3
+ "version": "2.25.4",
4
4
  "description": "cloudbase javascript sdk types",
5
5
  "files": [
6
6
  "index.js",
@@ -43,5 +43,5 @@
43
43
  "lint": "eslint --fix \"./**/*.ts\"",
44
44
  "precommit": "npm run lint"
45
45
  },
46
- "gitHead": "a969396226f0243d84c914ebda039e58a1158674"
46
+ "gitHead": "cb3b43f79a34d6216a45f065ab940c4225fe55d5"
47
47
  }