@heybox/hb-sdk 0.4.7 → 0.5.0
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.
- package/README.md +31 -1
- package/dist/cli-chunks/{create-IOxksfE3.cjs → create-BiCyOEAv.cjs} +1 -1
- package/dist/cli-chunks/{dev-zMT1BxGs.cjs → dev-D4XRqzz1.cjs} +1 -1
- package/dist/cli-chunks/{doctor-ZOfNccof.cjs → doctor-CmHZYQ2I.cjs} +1 -1
- package/dist/cli-chunks/{index-2nlBRew_.cjs → index-DXS0s9d7.cjs} +2 -2
- package/dist/cli-chunks/{index-13_8m0Pw.cjs → index-kv8oOmFw.cjs} +13 -13
- package/dist/cli-chunks/{login-CoBqr1Bm.cjs → login-F9AEL3cF.cjs} +2 -2
- package/dist/cli-chunks/{remote-Cc5j-m2I.cjs → remote-BRktlraB.cjs} +3 -3
- package/dist/cli-chunks/{session-BSi5YfqO.cjs → session-DItg0094.cjs} +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/devtools/mock-host/main.js +957 -4
- package/dist/index.cjs.js +51 -0
- package/dist/index.esm.js +51 -0
- package/dist/protocol.cjs.js +50 -0
- package/dist/protocol.esm.js +46 -1
- package/package.json +1 -1
- package/skill/references/api-protocol.md +22 -2
- package/skill/references/api-root.md +66 -1
- package/skill/references/safety-boundaries.md +2 -1
- package/skill/skill.json +4 -4
- package/types/index.d.ts +1 -1
- package/types/modules/user/get-current-user-detail.d.ts +9 -0
- package/types/modules/user/get-current-user-profile.d.ts +9 -0
- package/types/modules/user/get-platform-account-info.d.ts +12 -0
- package/types/modules/user/get-platform-account-overview.d.ts +9 -0
- package/types/modules/user/get-steam-game-list.d.ts +12 -0
- package/types/modules/user/index.d.ts +33 -1
- package/types/modules/user/types.d.ts +285 -0
- package/types/protocol/capabilities.d.ts +52 -2
- package/types/protocol.d.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -424,6 +424,16 @@ const AUTH_LOGIN_METHOD = 'auth.login';
|
|
|
424
424
|
* 供 SDK 与父容器 runtime 共享同一 bridge method 标识。
|
|
425
425
|
*/
|
|
426
426
|
const USER_GET_INFO_METHOD = 'user.getInfo';
|
|
427
|
+
/** 当前用户展示详情能力方法名。 */
|
|
428
|
+
const USER_GET_CURRENT_USER_DETAIL_METHOD = 'user.getCurrentUserDetail';
|
|
429
|
+
/** 当前用户敏感资料详情能力方法名。 */
|
|
430
|
+
const USER_GET_CURRENT_USER_PROFILE_METHOD = 'user.getCurrentUserProfile';
|
|
431
|
+
/** 当前用户平台账号概览能力方法名。 */
|
|
432
|
+
const USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD = 'user.getPlatformAccountOverview';
|
|
433
|
+
/** 当前用户指定平台账号详情能力方法名。 */
|
|
434
|
+
const USER_GET_PLATFORM_ACCOUNT_INFO_METHOD = 'user.getPlatformAccountInfo';
|
|
435
|
+
/** 当前用户 Steam 游戏库能力方法名。 */
|
|
436
|
+
const USER_GET_STEAM_GAME_LIST_METHOD = 'user.getSteamGameList';
|
|
427
437
|
/**
|
|
428
438
|
* 展示分享面板能力方法名。
|
|
429
439
|
*
|
|
@@ -730,6 +740,37 @@ function getInfo(requester) {
|
|
|
730
740
|
return requester.request(USER_GET_INFO_METHOD);
|
|
731
741
|
}
|
|
732
742
|
|
|
743
|
+
/** 获取当前访问小程序用户的展示详情。 */
|
|
744
|
+
function getCurrentUserDetail(requester) {
|
|
745
|
+
return requester.request(USER_GET_CURRENT_USER_DETAIL_METHOD);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/** 获取当前访问小程序用户的敏感资料详情。 */
|
|
749
|
+
function getCurrentUserProfile(requester) {
|
|
750
|
+
return requester.request(USER_GET_CURRENT_USER_PROFILE_METHOD);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/** 获取当前访问小程序用户的指定平台账号详情。 */
|
|
754
|
+
function getPlatformAccountInfo(requester, platform) {
|
|
755
|
+
return requester.request(USER_GET_PLATFORM_ACCOUNT_INFO_METHOD, { platform });
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/** 获取当前访问小程序用户的平台账号绑定/隐藏状态概览。 */
|
|
759
|
+
function getPlatformAccountOverview(requester) {
|
|
760
|
+
return requester.request(USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* 获取当前用户 Steam 游戏库。
|
|
765
|
+
*
|
|
766
|
+
* @param requester 底层 bridge 请求能力。
|
|
767
|
+
* @param options 查询与分页参数。
|
|
768
|
+
* @returns 当前用户 Steam 游戏库;未登录或未绑定 Steam 时返回状态对象。
|
|
769
|
+
*/
|
|
770
|
+
function getSteamGameList(requester, options) {
|
|
771
|
+
return requester.request(USER_GET_STEAM_GAME_LIST_METHOD, options);
|
|
772
|
+
}
|
|
773
|
+
|
|
733
774
|
/**
|
|
734
775
|
* 创建用户模块。
|
|
735
776
|
*
|
|
@@ -739,6 +780,11 @@ function getInfo(requester) {
|
|
|
739
780
|
function createUserModule(requester) {
|
|
740
781
|
return {
|
|
741
782
|
getInfo: () => getInfo(requester),
|
|
783
|
+
getCurrentUserDetail: () => getCurrentUserDetail(requester),
|
|
784
|
+
getCurrentUserProfile: () => getCurrentUserProfile(requester),
|
|
785
|
+
getPlatformAccountOverview: () => getPlatformAccountOverview(requester),
|
|
786
|
+
getPlatformAccountInfo: platform => getPlatformAccountInfo(requester, platform),
|
|
787
|
+
getSteamGameList: options => getSteamGameList(requester, options),
|
|
742
788
|
};
|
|
743
789
|
}
|
|
744
790
|
|
|
@@ -952,6 +998,11 @@ const auth = {
|
|
|
952
998
|
/** 默认 SDK 实例的用户资料模块。 */
|
|
953
999
|
const user = {
|
|
954
1000
|
getInfo: () => getDefaultSDK().user.getInfo(),
|
|
1001
|
+
getCurrentUserDetail: () => getDefaultSDK().user.getCurrentUserDetail(),
|
|
1002
|
+
getCurrentUserProfile: () => getDefaultSDK().user.getCurrentUserProfile(),
|
|
1003
|
+
getPlatformAccountOverview: () => getDefaultSDK().user.getPlatformAccountOverview(),
|
|
1004
|
+
getPlatformAccountInfo: platform => getDefaultSDK().user.getPlatformAccountInfo(platform),
|
|
1005
|
+
getSteamGameList: options => getDefaultSDK().user.getSteamGameList(options),
|
|
955
1006
|
};
|
|
956
1007
|
/** 默认 SDK 实例的分享模块。 */
|
|
957
1008
|
const share = {
|
package/dist/index.esm.js
CHANGED
|
@@ -420,6 +420,16 @@ const AUTH_LOGIN_METHOD = 'auth.login';
|
|
|
420
420
|
* 供 SDK 与父容器 runtime 共享同一 bridge method 标识。
|
|
421
421
|
*/
|
|
422
422
|
const USER_GET_INFO_METHOD = 'user.getInfo';
|
|
423
|
+
/** 当前用户展示详情能力方法名。 */
|
|
424
|
+
const USER_GET_CURRENT_USER_DETAIL_METHOD = 'user.getCurrentUserDetail';
|
|
425
|
+
/** 当前用户敏感资料详情能力方法名。 */
|
|
426
|
+
const USER_GET_CURRENT_USER_PROFILE_METHOD = 'user.getCurrentUserProfile';
|
|
427
|
+
/** 当前用户平台账号概览能力方法名。 */
|
|
428
|
+
const USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD = 'user.getPlatformAccountOverview';
|
|
429
|
+
/** 当前用户指定平台账号详情能力方法名。 */
|
|
430
|
+
const USER_GET_PLATFORM_ACCOUNT_INFO_METHOD = 'user.getPlatformAccountInfo';
|
|
431
|
+
/** 当前用户 Steam 游戏库能力方法名。 */
|
|
432
|
+
const USER_GET_STEAM_GAME_LIST_METHOD = 'user.getSteamGameList';
|
|
423
433
|
/**
|
|
424
434
|
* 展示分享面板能力方法名。
|
|
425
435
|
*
|
|
@@ -726,6 +736,37 @@ function getInfo(requester) {
|
|
|
726
736
|
return requester.request(USER_GET_INFO_METHOD);
|
|
727
737
|
}
|
|
728
738
|
|
|
739
|
+
/** 获取当前访问小程序用户的展示详情。 */
|
|
740
|
+
function getCurrentUserDetail(requester) {
|
|
741
|
+
return requester.request(USER_GET_CURRENT_USER_DETAIL_METHOD);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/** 获取当前访问小程序用户的敏感资料详情。 */
|
|
745
|
+
function getCurrentUserProfile(requester) {
|
|
746
|
+
return requester.request(USER_GET_CURRENT_USER_PROFILE_METHOD);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/** 获取当前访问小程序用户的指定平台账号详情。 */
|
|
750
|
+
function getPlatformAccountInfo(requester, platform) {
|
|
751
|
+
return requester.request(USER_GET_PLATFORM_ACCOUNT_INFO_METHOD, { platform });
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/** 获取当前访问小程序用户的平台账号绑定/隐藏状态概览。 */
|
|
755
|
+
function getPlatformAccountOverview(requester) {
|
|
756
|
+
return requester.request(USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* 获取当前用户 Steam 游戏库。
|
|
761
|
+
*
|
|
762
|
+
* @param requester 底层 bridge 请求能力。
|
|
763
|
+
* @param options 查询与分页参数。
|
|
764
|
+
* @returns 当前用户 Steam 游戏库;未登录或未绑定 Steam 时返回状态对象。
|
|
765
|
+
*/
|
|
766
|
+
function getSteamGameList(requester, options) {
|
|
767
|
+
return requester.request(USER_GET_STEAM_GAME_LIST_METHOD, options);
|
|
768
|
+
}
|
|
769
|
+
|
|
729
770
|
/**
|
|
730
771
|
* 创建用户模块。
|
|
731
772
|
*
|
|
@@ -735,6 +776,11 @@ function getInfo(requester) {
|
|
|
735
776
|
function createUserModule(requester) {
|
|
736
777
|
return {
|
|
737
778
|
getInfo: () => getInfo(requester),
|
|
779
|
+
getCurrentUserDetail: () => getCurrentUserDetail(requester),
|
|
780
|
+
getCurrentUserProfile: () => getCurrentUserProfile(requester),
|
|
781
|
+
getPlatformAccountOverview: () => getPlatformAccountOverview(requester),
|
|
782
|
+
getPlatformAccountInfo: platform => getPlatformAccountInfo(requester, platform),
|
|
783
|
+
getSteamGameList: options => getSteamGameList(requester, options),
|
|
738
784
|
};
|
|
739
785
|
}
|
|
740
786
|
|
|
@@ -948,6 +994,11 @@ const auth = {
|
|
|
948
994
|
/** 默认 SDK 实例的用户资料模块。 */
|
|
949
995
|
const user = {
|
|
950
996
|
getInfo: () => getDefaultSDK().user.getInfo(),
|
|
997
|
+
getCurrentUserDetail: () => getDefaultSDK().user.getCurrentUserDetail(),
|
|
998
|
+
getCurrentUserProfile: () => getDefaultSDK().user.getCurrentUserProfile(),
|
|
999
|
+
getPlatformAccountOverview: () => getDefaultSDK().user.getPlatformAccountOverview(),
|
|
1000
|
+
getPlatformAccountInfo: platform => getDefaultSDK().user.getPlatformAccountInfo(platform),
|
|
1001
|
+
getSteamGameList: options => getDefaultSDK().user.getSteamGameList(options),
|
|
951
1002
|
};
|
|
952
1003
|
/** 默认 SDK 实例的分享模块。 */
|
|
953
1004
|
const share = {
|
package/dist/protocol.cjs.js
CHANGED
|
@@ -40,6 +40,16 @@ const AUTH_LOGIN_METHOD = 'auth.login';
|
|
|
40
40
|
* 供 SDK 与父容器 runtime 共享同一 bridge method 标识。
|
|
41
41
|
*/
|
|
42
42
|
const USER_GET_INFO_METHOD = 'user.getInfo';
|
|
43
|
+
/** 当前用户展示详情能力方法名。 */
|
|
44
|
+
const USER_GET_CURRENT_USER_DETAIL_METHOD = 'user.getCurrentUserDetail';
|
|
45
|
+
/** 当前用户敏感资料详情能力方法名。 */
|
|
46
|
+
const USER_GET_CURRENT_USER_PROFILE_METHOD = 'user.getCurrentUserProfile';
|
|
47
|
+
/** 当前用户平台账号概览能力方法名。 */
|
|
48
|
+
const USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD = 'user.getPlatformAccountOverview';
|
|
49
|
+
/** 当前用户指定平台账号详情能力方法名。 */
|
|
50
|
+
const USER_GET_PLATFORM_ACCOUNT_INFO_METHOD = 'user.getPlatformAccountInfo';
|
|
51
|
+
/** 当前用户 Steam 游戏库能力方法名。 */
|
|
52
|
+
const USER_GET_STEAM_GAME_LIST_METHOD = 'user.getSteamGameList';
|
|
43
53
|
/**
|
|
44
54
|
* 展示分享面板能力方法名。
|
|
45
55
|
*
|
|
@@ -124,6 +134,41 @@ const MINI_PROGRAM_PROTOCOL_CAPABILITIES = [
|
|
|
124
134
|
permission: 'user.getInfo',
|
|
125
135
|
risk: 'medium',
|
|
126
136
|
},
|
|
137
|
+
{
|
|
138
|
+
method: USER_GET_CURRENT_USER_DETAIL_METHOD,
|
|
139
|
+
module: 'user',
|
|
140
|
+
capability: USER_GET_CURRENT_USER_DETAIL_METHOD,
|
|
141
|
+
permission: 'user.currentUserDetail',
|
|
142
|
+
risk: 'high',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
method: USER_GET_CURRENT_USER_PROFILE_METHOD,
|
|
146
|
+
module: 'user',
|
|
147
|
+
capability: USER_GET_CURRENT_USER_PROFILE_METHOD,
|
|
148
|
+
permission: 'user.currentUserProfile',
|
|
149
|
+
risk: 'high',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
method: USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD,
|
|
153
|
+
module: 'user',
|
|
154
|
+
capability: USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD,
|
|
155
|
+
permission: 'user.platformAccount.overview',
|
|
156
|
+
risk: 'medium',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
method: USER_GET_PLATFORM_ACCOUNT_INFO_METHOD,
|
|
160
|
+
module: 'user',
|
|
161
|
+
capability: USER_GET_PLATFORM_ACCOUNT_INFO_METHOD,
|
|
162
|
+
permission: 'user.platformAccount.info',
|
|
163
|
+
risk: 'high',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
method: USER_GET_STEAM_GAME_LIST_METHOD,
|
|
167
|
+
module: 'user',
|
|
168
|
+
capability: USER_GET_STEAM_GAME_LIST_METHOD,
|
|
169
|
+
permission: 'user.steamGameList',
|
|
170
|
+
risk: 'high',
|
|
171
|
+
},
|
|
127
172
|
{
|
|
128
173
|
method: SHARE_SHOW_SHARE_MENU_METHOD,
|
|
129
174
|
module: 'share',
|
|
@@ -242,7 +287,12 @@ exports.STORAGE_SET_STORAGE_METHOD = STORAGE_SET_STORAGE_METHOD;
|
|
|
242
287
|
exports.UI_HIDE_LOADING_METHOD = UI_HIDE_LOADING_METHOD;
|
|
243
288
|
exports.UI_SHOW_LOADING_METHOD = UI_SHOW_LOADING_METHOD;
|
|
244
289
|
exports.UI_SHOW_TOAST_METHOD = UI_SHOW_TOAST_METHOD;
|
|
290
|
+
exports.USER_GET_CURRENT_USER_DETAIL_METHOD = USER_GET_CURRENT_USER_DETAIL_METHOD;
|
|
291
|
+
exports.USER_GET_CURRENT_USER_PROFILE_METHOD = USER_GET_CURRENT_USER_PROFILE_METHOD;
|
|
245
292
|
exports.USER_GET_INFO_METHOD = USER_GET_INFO_METHOD;
|
|
293
|
+
exports.USER_GET_PLATFORM_ACCOUNT_INFO_METHOD = USER_GET_PLATFORM_ACCOUNT_INFO_METHOD;
|
|
294
|
+
exports.USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD = USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD;
|
|
295
|
+
exports.USER_GET_STEAM_GAME_LIST_METHOD = USER_GET_STEAM_GAME_LIST_METHOD;
|
|
246
296
|
exports.VIEWPORT_GET_WINDOW_INFO_METHOD = VIEWPORT_GET_WINDOW_INFO_METHOD;
|
|
247
297
|
exports.VIEWPORT_SET_NAVIGATION_BAR_STYLE_METHOD = VIEWPORT_SET_NAVIGATION_BAR_STYLE_METHOD;
|
|
248
298
|
exports.isMiniProgramBridgeMessage = isMiniProgramBridgeMessage;
|
package/dist/protocol.esm.js
CHANGED
|
@@ -38,6 +38,16 @@ const AUTH_LOGIN_METHOD = 'auth.login';
|
|
|
38
38
|
* 供 SDK 与父容器 runtime 共享同一 bridge method 标识。
|
|
39
39
|
*/
|
|
40
40
|
const USER_GET_INFO_METHOD = 'user.getInfo';
|
|
41
|
+
/** 当前用户展示详情能力方法名。 */
|
|
42
|
+
const USER_GET_CURRENT_USER_DETAIL_METHOD = 'user.getCurrentUserDetail';
|
|
43
|
+
/** 当前用户敏感资料详情能力方法名。 */
|
|
44
|
+
const USER_GET_CURRENT_USER_PROFILE_METHOD = 'user.getCurrentUserProfile';
|
|
45
|
+
/** 当前用户平台账号概览能力方法名。 */
|
|
46
|
+
const USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD = 'user.getPlatformAccountOverview';
|
|
47
|
+
/** 当前用户指定平台账号详情能力方法名。 */
|
|
48
|
+
const USER_GET_PLATFORM_ACCOUNT_INFO_METHOD = 'user.getPlatformAccountInfo';
|
|
49
|
+
/** 当前用户 Steam 游戏库能力方法名。 */
|
|
50
|
+
const USER_GET_STEAM_GAME_LIST_METHOD = 'user.getSteamGameList';
|
|
41
51
|
/**
|
|
42
52
|
* 展示分享面板能力方法名。
|
|
43
53
|
*
|
|
@@ -122,6 +132,41 @@ const MINI_PROGRAM_PROTOCOL_CAPABILITIES = [
|
|
|
122
132
|
permission: 'user.getInfo',
|
|
123
133
|
risk: 'medium',
|
|
124
134
|
},
|
|
135
|
+
{
|
|
136
|
+
method: USER_GET_CURRENT_USER_DETAIL_METHOD,
|
|
137
|
+
module: 'user',
|
|
138
|
+
capability: USER_GET_CURRENT_USER_DETAIL_METHOD,
|
|
139
|
+
permission: 'user.currentUserDetail',
|
|
140
|
+
risk: 'high',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
method: USER_GET_CURRENT_USER_PROFILE_METHOD,
|
|
144
|
+
module: 'user',
|
|
145
|
+
capability: USER_GET_CURRENT_USER_PROFILE_METHOD,
|
|
146
|
+
permission: 'user.currentUserProfile',
|
|
147
|
+
risk: 'high',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
method: USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD,
|
|
151
|
+
module: 'user',
|
|
152
|
+
capability: USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD,
|
|
153
|
+
permission: 'user.platformAccount.overview',
|
|
154
|
+
risk: 'medium',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
method: USER_GET_PLATFORM_ACCOUNT_INFO_METHOD,
|
|
158
|
+
module: 'user',
|
|
159
|
+
capability: USER_GET_PLATFORM_ACCOUNT_INFO_METHOD,
|
|
160
|
+
permission: 'user.platformAccount.info',
|
|
161
|
+
risk: 'high',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
method: USER_GET_STEAM_GAME_LIST_METHOD,
|
|
165
|
+
module: 'user',
|
|
166
|
+
capability: USER_GET_STEAM_GAME_LIST_METHOD,
|
|
167
|
+
permission: 'user.steamGameList',
|
|
168
|
+
risk: 'high',
|
|
169
|
+
},
|
|
125
170
|
{
|
|
126
171
|
method: SHARE_SHOW_SHARE_MENU_METHOD,
|
|
127
172
|
module: 'share',
|
|
@@ -222,4 +267,4 @@ const MINI_PROGRAM_PROTOCOL_CAPABILITIES = [
|
|
|
222
267
|
},
|
|
223
268
|
];
|
|
224
269
|
|
|
225
|
-
export { AUTH_LOGIN_METHOD, DEVICE_SET_CLIPBOARD_METHOD, DEVICE_VIBRATE_METHOD, MINI_PROGRAM_BRIDGE_NONCE_PARAM, MINI_PROGRAM_MESSAGE_NAMESPACE, MINI_PROGRAM_MESSAGE_VERSION, MINI_PROGRAM_PROTOCOL_CAPABILITIES, NAVIGATION_CLOSE_METHOD, NAVIGATION_RELOAD_METHOD, NETWORK_REQUEST_METHOD, SDK_HANDSHAKE_METHOD, SHARE_SCREENSHOT_METHOD, SHARE_SHOW_SHARE_MENU_METHOD, STORAGE_GET_STORAGE_METHOD, STORAGE_SET_STORAGE_METHOD, UI_HIDE_LOADING_METHOD, UI_SHOW_LOADING_METHOD, UI_SHOW_TOAST_METHOD, USER_GET_INFO_METHOD, VIEWPORT_GET_WINDOW_INFO_METHOD, VIEWPORT_SET_NAVIGATION_BAR_STYLE_METHOD, isMiniProgramBridgeMessage };
|
|
270
|
+
export { AUTH_LOGIN_METHOD, DEVICE_SET_CLIPBOARD_METHOD, DEVICE_VIBRATE_METHOD, MINI_PROGRAM_BRIDGE_NONCE_PARAM, MINI_PROGRAM_MESSAGE_NAMESPACE, MINI_PROGRAM_MESSAGE_VERSION, MINI_PROGRAM_PROTOCOL_CAPABILITIES, NAVIGATION_CLOSE_METHOD, NAVIGATION_RELOAD_METHOD, NETWORK_REQUEST_METHOD, SDK_HANDSHAKE_METHOD, SHARE_SCREENSHOT_METHOD, SHARE_SHOW_SHARE_MENU_METHOD, STORAGE_GET_STORAGE_METHOD, STORAGE_SET_STORAGE_METHOD, UI_HIDE_LOADING_METHOD, UI_SHOW_LOADING_METHOD, UI_SHOW_TOAST_METHOD, USER_GET_CURRENT_USER_DETAIL_METHOD, USER_GET_CURRENT_USER_PROFILE_METHOD, USER_GET_INFO_METHOD, USER_GET_PLATFORM_ACCOUNT_INFO_METHOD, USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD, USER_GET_STEAM_GAME_LIST_METHOD, VIEWPORT_GET_WINDOW_INFO_METHOD, VIEWPORT_SET_NAVIGATION_BAR_STYLE_METHOD, isMiniProgramBridgeMessage };
|
package/package.json
CHANGED
|
@@ -51,7 +51,12 @@ export {
|
|
|
51
51
|
UI_HIDE_LOADING_METHOD,
|
|
52
52
|
UI_SHOW_LOADING_METHOD,
|
|
53
53
|
UI_SHOW_TOAST_METHOD,
|
|
54
|
+
USER_GET_CURRENT_USER_DETAIL_METHOD,
|
|
55
|
+
USER_GET_CURRENT_USER_PROFILE_METHOD,
|
|
54
56
|
USER_GET_INFO_METHOD,
|
|
57
|
+
USER_GET_PLATFORM_ACCOUNT_INFO_METHOD,
|
|
58
|
+
USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD,
|
|
59
|
+
USER_GET_STEAM_GAME_LIST_METHOD,
|
|
55
60
|
VIEWPORT_GET_WINDOW_INFO_METHOD,
|
|
56
61
|
VIEWPORT_SET_NAVIGATION_BAR_STYLE_METHOD,
|
|
57
62
|
} from './protocol/capabilities';
|
|
@@ -76,10 +81,25 @@ export type {
|
|
|
76
81
|
} from './protocol/capabilities';
|
|
77
82
|
export type { LoginPayload, LoginResult } from './modules/auth';
|
|
78
83
|
export type {
|
|
84
|
+
GetCurrentUserDetailPayload,
|
|
85
|
+
GetCurrentUserDetailResult,
|
|
86
|
+
GetCurrentUserProfilePayload,
|
|
87
|
+
GetCurrentUserProfileResult,
|
|
88
|
+
GetPlatformAccountInfoPayload,
|
|
89
|
+
GetPlatformAccountInfoResult,
|
|
90
|
+
GetPlatformAccountOverviewPayload,
|
|
91
|
+
GetPlatformAccountOverviewResult,
|
|
92
|
+
GetSteamGameListOptions,
|
|
93
|
+
GetSteamGameListPayload,
|
|
94
|
+
GetSteamGameListResult,
|
|
79
95
|
GetUserInfoPayload,
|
|
80
96
|
GetUserInfoResult,
|
|
81
97
|
MiniProgramUserInfo,
|
|
82
98
|
MiniProgramUserInfoResult,
|
|
99
|
+
SteamGameListData,
|
|
100
|
+
SteamGameListItem,
|
|
101
|
+
SteamGameListSort,
|
|
102
|
+
SteamGamePrice,
|
|
83
103
|
} from './modules/user';
|
|
84
104
|
export type { ScreenshotPayload, ScreenshotResult } from './modules/share/screenshot';
|
|
85
105
|
export type { ShowShareMenuPayload, ShowShareMenuResult } from './modules/share/show-share-menu';
|
|
@@ -168,5 +188,5 @@ Reference 由 `packages/hb-sdk` 的公开导出与源码注释自动生成,不
|
|
|
168
188
|
|
|
169
189
|
| 导出面 | Classes | Functions | Interfaces | Types | Constants |
|
|
170
190
|
| --- | ---: | ---: | ---: | ---: | ---: |
|
|
171
|
-
| Root API | 3 | 4 |
|
|
172
|
-
| Protocol API | 0 | 1 |
|
|
191
|
+
| Root API | 3 | 4 | 53 | 45 | 3 |
|
|
192
|
+
| Protocol API | 0 | 1 | 30 | 57 | 26 |
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
## Package metadata
|
|
20
20
|
|
|
21
21
|
- Package: `@heybox/hb-sdk`
|
|
22
|
-
- Version at generation time: `0.
|
|
22
|
+
- Version at generation time: `0.5.0`
|
|
23
23
|
- Public root export: `@heybox/hb-sdk`
|
|
24
24
|
- Protocol export: `@heybox/hb-sdk/protocol`
|
|
25
25
|
- Vite plugin export: `@heybox/hb-sdk/vite`
|
|
@@ -38,11 +38,47 @@ export type {
|
|
|
38
38
|
} from './protocol/types';
|
|
39
39
|
export type { LoginPayload, LoginResult, MiniProgramAuthModule } from './modules/auth';
|
|
40
40
|
export type {
|
|
41
|
+
BasePlatformAccountInfo,
|
|
42
|
+
CurrentUserAvatarConfig,
|
|
43
|
+
CurrentUserAvatarDecoration,
|
|
44
|
+
CurrentUserBbsInfo,
|
|
45
|
+
CurrentUserDetail,
|
|
46
|
+
CurrentUserLevelInfo,
|
|
47
|
+
CurrentUserMedal,
|
|
48
|
+
CurrentUserProfile,
|
|
49
|
+
EpicPlatformAccountInfo,
|
|
50
|
+
GetCurrentUserDetailPayload,
|
|
51
|
+
GetCurrentUserDetailResult,
|
|
52
|
+
GetCurrentUserProfilePayload,
|
|
53
|
+
GetCurrentUserProfileResult,
|
|
54
|
+
GetPlatformAccountInfoPayload,
|
|
55
|
+
GetPlatformAccountInfoResult,
|
|
56
|
+
GetPlatformAccountOverviewPayload,
|
|
57
|
+
GetPlatformAccountOverviewResult,
|
|
58
|
+
GetSteamGameListOptions,
|
|
59
|
+
GetSteamGameListPayload,
|
|
60
|
+
GetSteamGameListResult,
|
|
41
61
|
GetUserInfoPayload,
|
|
42
62
|
GetUserInfoResult,
|
|
43
63
|
MiniProgramUserInfo,
|
|
44
64
|
MiniProgramUserInfoResult,
|
|
45
65
|
MiniProgramUserModule,
|
|
66
|
+
MobilePlatformAccountInfo,
|
|
67
|
+
PcHardwareAccountInfo,
|
|
68
|
+
PlatformAccountInfoMap,
|
|
69
|
+
PlatformAccountOverview,
|
|
70
|
+
PlatformAccountResult,
|
|
71
|
+
PlatformAccountType,
|
|
72
|
+
PlatformStatItem,
|
|
73
|
+
PsnPlatformAccountInfo,
|
|
74
|
+
SteamGameListData,
|
|
75
|
+
SteamGameListItem,
|
|
76
|
+
SteamGameListSort,
|
|
77
|
+
SteamGamePrice,
|
|
78
|
+
SteamPlatformAccountInfo,
|
|
79
|
+
SwitchPlatformAccountInfo,
|
|
80
|
+
UserScopedResult,
|
|
81
|
+
XboxPlatformAccountInfo,
|
|
46
82
|
} from './modules/user';
|
|
47
83
|
export type {
|
|
48
84
|
MiniProgramScreenshotOptions,
|
|
@@ -333,6 +369,35 @@ if (!result.isLogin) {
|
|
|
333
369
|
|
|
334
370
|
SDK 只返回允许暴露给外部小程序的公开资料,不会返回 token、cookie、手机号或其他私有凭据。
|
|
335
371
|
|
|
372
|
+
需要当前用户更完整资料时,可以使用 current-user scoped API。这些 API 与 `user.getInfo()` 一样不会主动唤起登录;未登录时返回普通未登录结果,业务应只在用户操作后调用 `auth.login()`。
|
|
373
|
+
|
|
374
|
+
```ts
|
|
375
|
+
const detail = await user.getCurrentUserDetail();
|
|
376
|
+
|
|
377
|
+
if (detail.isLogin) {
|
|
378
|
+
console.log(detail.data.nickname, detail.data.level_info);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
const steam = await user.getPlatformAccountInfo('steam');
|
|
382
|
+
|
|
383
|
+
if (steam.isLogin && steam.is_bound) {
|
|
384
|
+
console.log(steam.account_info.steamid);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
const games = await user.getSteamGameList({
|
|
388
|
+
limit: 20,
|
|
389
|
+
sort: 'weeks',
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
if (games.isLogin && games.isBound) {
|
|
393
|
+
console.log(games.data.gameList);
|
|
394
|
+
}
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
`user.getCurrentUserDetail()` 返回当前用户展示资料,`user.getCurrentUserProfile()` 返回更敏感的个人资料字段。`user.getPlatformAccountOverview()` 返回 `steam`、`epic`、`xbox`、`psn`、`switch`、`pc_hardware`、`mobile` 的绑定/隐藏状态;`user.getPlatformAccountInfo(platform)` 只支持这些平台字面量,未绑定平台返回 `account_info: null`,不会抛出未绑定错误。`user.getSteamGameList(options)` 返回当前用户 Steam 游戏库,未登录或未绑定 Steam 时返回状态对象;分页 `limit` 默认 20、最大 100,`sort` 支持 `weeks`、`all`、`achieved`。
|
|
398
|
+
|
|
399
|
+
这些 API 仍然只面向当前登录用户,不支持传入 `userid` 查询其他人。平台账号详情和 Steam 游戏库会过滤好友列表、客户端路由协议和页面 UI 状态字段;敏感字段按独立 permission key 管理,后续可由宿主策略按能力或平台收紧。
|
|
400
|
+
|
|
336
401
|
### 分享
|
|
337
402
|
|
|
338
403
|
```ts
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
## 能力边界
|
|
12
12
|
|
|
13
13
|
- 调用模块能力前会自动等待 `ready()`,但业务仍建议在页面启动阶段显式 `await ready()`,便于集中处理握手失败。
|
|
14
|
-
- `user.getInfo()` 不会触发登录;登录必须由业务在用户操作后调用 `auth.login()`。
|
|
14
|
+
- `user.getInfo()`、`user.getCurrentUserDetail()`、`user.getCurrentUserProfile()`、`user.getPlatformAccountOverview()`、`user.getPlatformAccountInfo(platform)` 和 `user.getSteamGameList(options)` 不会触发登录;登录必须由业务在用户操作后调用 `auth.login()`。
|
|
15
|
+
- 当前用户详情和平台账号 API 只允许读取当前登录用户,不支持传入 `userid` 查询其他人,也不透传 `/account/home_v2/` 原始响应。
|
|
15
16
|
- 分享、截图、UI、设备、导航、storage 和网络请求只开放稳定窄接口,不透传黑盒客户端内部协议参数。
|
|
16
17
|
- `network.request()` 的 `validateStatus` 只在 SDK 本地执行,不会被序列化给父容器。
|
|
17
18
|
- `on()` 返回取消监听函数;组件卸载或页面销毁时应主动取消监听。
|
package/skill/skill.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hb-sdk",
|
|
3
|
-
"skillVersion": "0.
|
|
3
|
+
"skillVersion": "0.5.0+skill.a70b82c55c5b",
|
|
4
4
|
"sdk": {
|
|
5
5
|
"package": "@heybox/hb-sdk",
|
|
6
|
-
"version": "0.
|
|
7
|
-
"compatibility": "0.
|
|
6
|
+
"version": "0.5.0",
|
|
7
|
+
"compatibility": "0.5.0"
|
|
8
8
|
},
|
|
9
9
|
"source": "https://open.xiaoheihe.cn/agent-skills/hb-sdk",
|
|
10
|
-
"integrity": "sha256-
|
|
10
|
+
"integrity": "sha256-a70b82c55c5bab095c92d138f75cec352f9dce0d2cd1cd3fb897a196fa63f09d"
|
|
11
11
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { MiniProgramSDKOptions } from './core/client';
|
|
|
4
4
|
export { ready, on, off, auth, user, share, viewport, storage, network, ui, device, navigation } from './core/singleton';
|
|
5
5
|
export type { MiniProgramEventHandler, MiniProgramEventName, MiniProgramEventPayloadMap, } from './protocol/types';
|
|
6
6
|
export type { LoginPayload, LoginResult, MiniProgramAuthModule } from './modules/auth';
|
|
7
|
-
export type { GetUserInfoPayload, GetUserInfoResult, MiniProgramUserInfo, MiniProgramUserInfoResult, MiniProgramUserModule, } from './modules/user';
|
|
7
|
+
export type { BasePlatformAccountInfo, CurrentUserAvatarConfig, CurrentUserAvatarDecoration, CurrentUserBbsInfo, CurrentUserDetail, CurrentUserLevelInfo, CurrentUserMedal, CurrentUserProfile, EpicPlatformAccountInfo, GetCurrentUserDetailPayload, GetCurrentUserDetailResult, GetCurrentUserProfilePayload, GetCurrentUserProfileResult, GetPlatformAccountInfoPayload, GetPlatformAccountInfoResult, GetPlatformAccountOverviewPayload, GetPlatformAccountOverviewResult, GetSteamGameListOptions, GetSteamGameListPayload, GetSteamGameListResult, GetUserInfoPayload, GetUserInfoResult, MiniProgramUserInfo, MiniProgramUserInfoResult, MiniProgramUserModule, MobilePlatformAccountInfo, PcHardwareAccountInfo, PlatformAccountInfoMap, PlatformAccountOverview, PlatformAccountResult, PlatformAccountType, PlatformStatItem, PsnPlatformAccountInfo, SteamGameListData, SteamGameListItem, SteamGameListSort, SteamGamePrice, SteamPlatformAccountInfo, SwitchPlatformAccountInfo, UserScopedResult, XboxPlatformAccountInfo, } from './modules/user';
|
|
8
8
|
export type { MiniProgramScreenshotOptions, MiniProgramScreenshotRect, MiniProgramShareChannel, MiniProgramShareModule, MiniProgramShowShareMenuOptions, ScreenshotPayload, ScreenshotResult, ShowShareMenuPayload, ShowShareMenuResult, } from './modules/share';
|
|
9
9
|
export type { GetWindowInfoPayload, GetWindowInfoResult, MiniProgramNavigationBarForegroundStyle, MiniProgramSafeArea, MiniProgramSetNavigationBarStyleOptions, MiniProgramViewportModule, MiniProgramWindowInfoResult, SetNavigationBarStylePayload, SetNavigationBarStyleResult, } from './modules/viewport';
|
|
10
10
|
export type { GetStoragePayload, GetStorageResult, MiniProgramStorageModule, SetStoragePayload, } from './modules/storage';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
+
import type { CurrentUserDetail, UserScopedResult } from './types';
|
|
3
|
+
export { USER_GET_CURRENT_USER_DETAIL_METHOD } from '../../protocol/capabilities';
|
|
4
|
+
/** `user.getCurrentUserDetail` 不需要入参。 */
|
|
5
|
+
export type GetCurrentUserDetailPayload = void;
|
|
6
|
+
/** `user.getCurrentUserDetail` 返回当前用户展示详情。 */
|
|
7
|
+
export type GetCurrentUserDetailResult = UserScopedResult<CurrentUserDetail>;
|
|
8
|
+
/** 获取当前访问小程序用户的展示详情。 */
|
|
9
|
+
export declare function getCurrentUserDetail(requester: MiniProgramRequester): Promise<GetCurrentUserDetailResult>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
+
import type { CurrentUserProfile, UserScopedResult } from './types';
|
|
3
|
+
export { USER_GET_CURRENT_USER_PROFILE_METHOD } from '../../protocol/capabilities';
|
|
4
|
+
/** `user.getCurrentUserProfile` 不需要入参。 */
|
|
5
|
+
export type GetCurrentUserProfilePayload = void;
|
|
6
|
+
/** `user.getCurrentUserProfile` 返回当前用户敏感资料详情。 */
|
|
7
|
+
export type GetCurrentUserProfileResult = UserScopedResult<CurrentUserProfile>;
|
|
8
|
+
/** 获取当前访问小程序用户的敏感资料详情。 */
|
|
9
|
+
export declare function getCurrentUserProfile(requester: MiniProgramRequester): Promise<GetCurrentUserProfileResult>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
+
import type { PlatformAccountResult, PlatformAccountType } from './types';
|
|
3
|
+
export { USER_GET_PLATFORM_ACCOUNT_INFO_METHOD } from '../../protocol/capabilities';
|
|
4
|
+
/** `user.getPlatformAccountInfo` 请求参数。 */
|
|
5
|
+
export interface GetPlatformAccountInfoPayload<T extends PlatformAccountType = PlatformAccountType> {
|
|
6
|
+
/** 要读取的平台账号类型。 */
|
|
7
|
+
platform: T;
|
|
8
|
+
}
|
|
9
|
+
/** `user.getPlatformAccountInfo` 返回指定平台的当前用户账号详情。 */
|
|
10
|
+
export type GetPlatformAccountInfoResult<T extends PlatformAccountType = PlatformAccountType> = PlatformAccountResult<T>;
|
|
11
|
+
/** 获取当前访问小程序用户的指定平台账号详情。 */
|
|
12
|
+
export declare function getPlatformAccountInfo<T extends PlatformAccountType>(requester: MiniProgramRequester, platform: T): Promise<GetPlatformAccountInfoResult<T>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
+
import type { PlatformAccountOverview, UserScopedResult } from './types';
|
|
3
|
+
export { USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD } from '../../protocol/capabilities';
|
|
4
|
+
/** `user.getPlatformAccountOverview` 不需要入参。 */
|
|
5
|
+
export type GetPlatformAccountOverviewPayload = void;
|
|
6
|
+
/** `user.getPlatformAccountOverview` 返回当前用户平台账号概览。 */
|
|
7
|
+
export type GetPlatformAccountOverviewResult = UserScopedResult<PlatformAccountOverview>;
|
|
8
|
+
/** 获取当前访问小程序用户的平台账号绑定/隐藏状态概览。 */
|
|
9
|
+
export declare function getPlatformAccountOverview(requester: MiniProgramRequester): Promise<GetPlatformAccountOverviewResult>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
+
import type { GetSteamGameListOptions, GetSteamGameListResult } from './types';
|
|
3
|
+
export { USER_GET_STEAM_GAME_LIST_METHOD } from '../../protocol/capabilities';
|
|
4
|
+
export type { GetSteamGameListOptions, GetSteamGameListPayload, GetSteamGameListResult } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* 获取当前用户 Steam 游戏库。
|
|
7
|
+
*
|
|
8
|
+
* @param requester 底层 bridge 请求能力。
|
|
9
|
+
* @param options 查询与分页参数。
|
|
10
|
+
* @returns 当前用户 Steam 游戏库;未登录或未绑定 Steam 时返回状态对象。
|
|
11
|
+
*/
|
|
12
|
+
export declare function getSteamGameList(requester: MiniProgramRequester, options?: GetSteamGameListOptions): Promise<GetSteamGameListResult>;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { MiniProgramRequester } from '../../core/client';
|
|
2
|
-
import { type GetUserInfoResult } from './get-info';
|
|
2
|
+
import { USER_GET_INFO_METHOD, type GetUserInfoResult } from './get-info';
|
|
3
|
+
import { USER_GET_CURRENT_USER_DETAIL_METHOD, type GetCurrentUserDetailResult } from './get-current-user-detail';
|
|
4
|
+
import { USER_GET_CURRENT_USER_PROFILE_METHOD, type GetCurrentUserProfileResult } from './get-current-user-profile';
|
|
5
|
+
import { USER_GET_PLATFORM_ACCOUNT_INFO_METHOD, type GetPlatformAccountInfoResult } from './get-platform-account-info';
|
|
6
|
+
import { USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD, type GetPlatformAccountOverviewResult } from './get-platform-account-overview';
|
|
7
|
+
import { USER_GET_STEAM_GAME_LIST_METHOD, type GetSteamGameListOptions, type GetSteamGameListResult } from './get-steam-game-list';
|
|
8
|
+
import type { PlatformAccountType } from './types';
|
|
3
9
|
export * from './get-info';
|
|
10
|
+
export * from './get-current-user-detail';
|
|
11
|
+
export * from './get-current-user-profile';
|
|
12
|
+
export * from './get-platform-account-info';
|
|
13
|
+
export * from './get-platform-account-overview';
|
|
14
|
+
export * from './get-steam-game-list';
|
|
4
15
|
export * from './types';
|
|
5
16
|
export type { MiniProgramUserMethod } from '../../protocol/capabilities';
|
|
6
17
|
/** 外部小程序可调用的用户模块。 */
|
|
@@ -9,6 +20,26 @@ export interface MiniProgramUserModule {
|
|
|
9
20
|
* 获取当前用户登录态与公开基础资料。
|
|
10
21
|
*/
|
|
11
22
|
getInfo(): Promise<GetUserInfoResult>;
|
|
23
|
+
/**
|
|
24
|
+
* 获取当前用户展示详情。
|
|
25
|
+
*/
|
|
26
|
+
getCurrentUserDetail(): Promise<GetCurrentUserDetailResult>;
|
|
27
|
+
/**
|
|
28
|
+
* 获取当前用户敏感资料详情。
|
|
29
|
+
*/
|
|
30
|
+
getCurrentUserProfile(): Promise<GetCurrentUserProfileResult>;
|
|
31
|
+
/**
|
|
32
|
+
* 获取当前用户平台账号绑定/隐藏状态概览。
|
|
33
|
+
*/
|
|
34
|
+
getPlatformAccountOverview(): Promise<GetPlatformAccountOverviewResult>;
|
|
35
|
+
/**
|
|
36
|
+
* 获取当前用户指定平台账号详情。
|
|
37
|
+
*/
|
|
38
|
+
getPlatformAccountInfo<T extends PlatformAccountType>(platform: T): Promise<GetPlatformAccountInfoResult<T>>;
|
|
39
|
+
/**
|
|
40
|
+
* 获取当前用户 Steam 游戏库。
|
|
41
|
+
*/
|
|
42
|
+
getSteamGameList(options?: GetSteamGameListOptions): Promise<GetSteamGameListResult>;
|
|
12
43
|
}
|
|
13
44
|
/**
|
|
14
45
|
* 创建用户模块。
|
|
@@ -17,3 +48,4 @@ export interface MiniProgramUserModule {
|
|
|
17
48
|
* @returns 面向业务层的用户模块对象。
|
|
18
49
|
*/
|
|
19
50
|
export declare function createUserModule(requester: MiniProgramRequester): MiniProgramUserModule;
|
|
51
|
+
export { USER_GET_INFO_METHOD, USER_GET_CURRENT_USER_DETAIL_METHOD, USER_GET_CURRENT_USER_PROFILE_METHOD, USER_GET_PLATFORM_ACCOUNT_OVERVIEW_METHOD, USER_GET_PLATFORM_ACCOUNT_INFO_METHOD, USER_GET_STEAM_GAME_LIST_METHOD, };
|