@deepseek-ai/dsh-deepseek-account 0.1.7-rc.2 → 0.2.0-rc.2

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.i18n.yaml CHANGED
@@ -9,8 +9,8 @@
9
9
  en: fcacd6de573d7636
10
10
  zh: 6dbbc05a66dbb126
11
11
  /deepseek-ai-dsh-deepseek-account/summary:
12
- en: 68ef9cc302633361
13
- zh: e7222c009825046c
12
+ en: c41643b81a07a489
13
+ zh: 2c16999de40a67b9
14
14
  /deepseek-ai-dsh-deepseek-account/table-of-contents:
15
15
  en: af856ba79fe31b8e
16
16
  zh: 15b7d1a5d1856de2
package/README.md CHANGED
@@ -21,6 +21,8 @@ getUnnotifiedBonuses returns the granted bonuses Platform has not yet recorded a
21
21
 
22
22
  Account consumers read stored login state, start or cancel a browser login, and sign out without editing API keys. Host model consumers resolve account credentials only for the provider-configured inference origin.
23
23
 
24
+ `getDeviceIdentity()` returns existing device and account IDs plus the login OS version string, without credentials or device creation.
25
+
24
26
  ## Table of Contents
25
27
 
26
28
  - [Use this package](#use-this-package)
package/README.zh.md CHANGED
@@ -21,6 +21,8 @@ getUnnotifiedBonuses 返回平台尚未记录为已展示的赠金及其所属
21
21
 
22
22
  账号使用方可读取本地登录状态、发起或取消浏览器登录,并在保留 API Key 的情况下退出。Host 模型使用方仅能为提供者配置的推理来源解析账号凭证。
23
23
 
24
+ `getDeviceIdentity()` 返回已有设备和账户 ID 以及登录使用的操作系统版本字符串,不返回凭据,也不创建设备标识。
25
+
24
26
  ## 目录
25
27
 
26
28
  - [使用此包](#use-this-package)
@@ -106,6 +106,15 @@ export declare abstract class DeepSeekAccount extends Service {
106
106
  * @returns a Host-only snapshot, or null while signed out or when the credential changed during the read.
107
107
  */
108
108
  abstract getPlatformSession(): Promise<PlatformSession | null>;
109
+ /**
110
+ * Read existing login identity without creating a device or returning credentials.
111
+ * @returns optional device/account identifiers and the provider's OS version string.
112
+ */
113
+ abstract getDeviceIdentity(): Promise<{
114
+ deviceId?: string;
115
+ userId?: AccountUserId;
116
+ osVersion: string;
117
+ }>;
109
118
  }
110
119
  export default DeepSeekAccount;
111
120
  /** Merge Cookie header pairs by case-sensitive name, retaining unrelated cookies.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-deepseek-account",
3
3
  "description": "Read account state and resolve official API credentials",
4
- "version": "0.1.7-rc.2",
4
+ "version": "0.2.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,15 +33,15 @@
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "~4.0.4",
36
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
37
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
38
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2"
36
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.2",
37
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
38
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@deepseek-ai/dsh-brand": "0.1.7-rc.2",
42
- "@deepseek-ai/dsh-agent": "0.1.7-rc.2",
43
41
  "@deepseek-ai/cordis": "~4.0.4",
44
- "@deepseek-ai/dsh-llm": "0.1.7-rc.2"
42
+ "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
43
+ "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
44
+ "@deepseek-ai/dsh-brand": "0.2.0-rc.2"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "@deepseek-ai/dsh-agent": {