@77-zhike/app-sdk 0.2.0-d7b1.10 → 0.2.0-d7b1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@77-zhike/app-sdk",
3
- "version": "0.2.0-d7b1.10",
3
+ "version": "0.2.0-d7b1.11",
4
4
  "description": "智客 Integration App 一期 SDK 与本地 Toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,5 +67,5 @@
67
67
  "optional": true
68
68
  }
69
69
  },
70
- "gitHead": "3d2268ba9ff4c7d0d13f5bfb9e3a285f1e0de716"
70
+ "gitHead": "3bc581be54f4282e62b498e7908e238e49e8b73f"
71
71
  }
@@ -18,6 +18,8 @@ export type {
18
18
 
19
19
  /** 当前执行的 App API Token;由可信 Runtime Module 在服务端模块求值前注入。 */
20
20
  export const ZHIKE_API_TOKEN: string;
21
+ /** 认证页面 Function 的当前成员短期 OpenAPI Token;未申请 User scopes 或后台入口为 undefined。 */
22
+ export const ZHIKE_CURRENT_USER_TOKEN: string | undefined;
21
23
 
22
24
  /** 由调用方选择稳定操作身份;SDK 不生成 Key 或自动重试。 */
23
25
  export interface IdempotencyOptions { idempotencyKey?: string }
@@ -18,6 +18,7 @@ const WORKSPACE_CONNECTION_EVENTS = new Set([
18
18
  ]);
19
19
 
20
20
  export const ZHIKE_API_TOKEN = globalThis.ZHIKE_API_TOKEN;
21
+ export const ZHIKE_CURRENT_USER_TOKEN = globalThis.ZHIKE_CURRENT_USER_TOKEN;
21
22
  const ZHIKE_OPEN_API_BASE_URL = "https://api-clm.77hub.com/v1";
22
23
  export const kv = globalThis.ZHIKE_APP_KV;
23
24