@heybox/hb-sdk-protocol 0.9.6-alpha.8 → 0.9.6

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "hash": "63615e2fd9264e8089c67c35ca006d316bde9bb1d8ee53165ab5f614152325bf",
2
+ "hash": "a04b5f82d149466d549696c311f402b1ec2c424789198a756bb8f725bf2b911b",
3
3
  "permissions": [
4
4
  {
5
5
  "key": "gameSaves",
6
6
  "name": "游戏存档",
7
- "description": "获取和同步当前用户指定游戏的 Steam 云存档,并读取存档文件,无需单独弹窗确认。",
7
+ "description": "已废弃,将在 SDK 0.10.0 移除;新接入使用 user.games。",
8
8
  "access": "declaration",
9
9
  "risk": "high",
10
10
  "config": {},
@@ -15,7 +15,7 @@
15
15
  "gameSaves.readParsedData"
16
16
  ],
17
17
  "conditions": [
18
- "需要用户明确授权、有效 Steam 登录和支持文件读取的宿主;可按需读取受支持游戏的已有解析概览,不触发解析。"
18
+ "SDK < 0.10.0-0 保留兼容入口,保留原合同,不增加本版逐资源确认;需要有效 Steam 登录和宿主支持。"
19
19
  ]
20
20
  },
21
21
  {
@@ -57,7 +57,8 @@
57
57
  "methods": [
58
58
  "share.copyLink",
59
59
  "share.showShareMenu",
60
- "share.screenshot"
60
+ "share.screenshot",
61
+ "share.screenshotLong"
61
62
  ],
62
63
  "conditions": [
63
64
  "继续执行分享参数校验和 Host 支持检查。"
@@ -246,6 +247,47 @@
246
247
  "conditions": [
247
248
  "需平台批准、Host 支持与有效执行租约;不隐式授予网络或存储权限。"
248
249
  ]
250
+ },
251
+ {
252
+ "key": "user_game_data",
253
+ "name": "游戏资料",
254
+ "description": "在精确资源声明范围内读取当前用户的游戏资料:明日方舟角色/养成与抽卡,以及黑神话悟空、任务栏英雄、影之刃零的云存档解析结果与文件。",
255
+ "access": "declaration",
256
+ "risk": "high",
257
+ "config": {
258
+ "resources": {
259
+ "type": "resource-map",
260
+ "required": true,
261
+ "items": [
262
+ "game.ark.profile",
263
+ "game.ark.gacha",
264
+ "game.black_myth_wukong.save_analysis",
265
+ "game.black_myth_wukong.save_files",
266
+ "game.task_bar_hero.save_analysis",
267
+ "game.task_bar_hero.save_files",
268
+ "game.phantom_blade_zero.save_analysis",
269
+ "game.phantom_blade_zero.save_files"
270
+ ],
271
+ "description": "精确资源声明对象;每项必须填写 1~30 个 Unicode 码点的 purpose,不接受通配符或未开放资源。"
272
+ }
273
+ },
274
+ "methods": [
275
+ "user.games.getOverview",
276
+ "user.data.query",
277
+ "user.data.sync",
278
+ "user.data.file",
279
+ "user.dataPermission.request",
280
+ "user.dataPermission.get",
281
+ "user.dataPermission.set",
282
+ "user.dataPermission.openSettings",
283
+ "user.dataPermission.revokeSession"
284
+ ],
285
+ "conditions": [
286
+ "逐项声明资源与用途,读取前需用户许可;未取得许可不查询个人来源。",
287
+ "文件与解析结果分别许可;本次许可仅当前实例有效,持久许可保存在本机。",
288
+ "同步会将原存档上传至小黑盒,向小程序交付原文件仍需 `save_files` 许可。",
289
+ "平台取数不授予小程序 `network` 权限;已交付的数据副本无法撤回。"
290
+ ]
249
291
  }
250
292
  ],
251
293
  "noDeclarationMethods": [