@deepseek-ai/dsh-deepseek-account 0.2.0-rc.2 → 0.2.1-alpha.1

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: c41643b81a07a489
13
- zh: 2c16999de40a67b9
12
+ en: 26e77d24d904dd48
13
+ zh: abc2d141826091f9
14
14
  /deepseek-ai-dsh-deepseek-account/table-of-contents:
15
15
  en: af856ba79fe31b8e
16
16
  zh: 15b7d1a5d1856de2
@@ -18,8 +18,8 @@
18
18
  en: d7825ac71d3acb22
19
19
  zh: 337bb5048aaade09
20
20
  /deepseek-ai-dsh-deepseek-account/understand-the-implementation:
21
- en: 455017c6c03b3016
22
- zh: 59b108051984241e
21
+ en: ca361e6eb61faf02
22
+ zh: d14923826e86293a
23
23
  /deepseek-ai-dsh-deepseek-account/further-exploration:
24
24
  en: 5a57b4b331031f41
25
25
  zh: 8b72ac64ed244f58
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
+ `SignInErrorCode` distinguishes `no-response` (fetch returned no Response) from HTTP and response-validation failures so clients can offer network troubleshooting.
25
+
24
26
  `getDeviceIdentity()` returns existing device and account IDs plus the login OS version string, without credentials or device creation.
25
27
 
26
28
  ## Table of Contents
@@ -43,7 +45,7 @@ Account model failures with `ACCOUNT_SIGN_IN_REQUIRED` emit `deepseek-account/mo
43
45
  <a id="understand-the-implementation"></a>
44
46
  ## Understand the implementation
45
47
 
46
- The service defines account operations without maintaining a second credential index; no invariant companion is published. The provider owns persistence and login lifecycle checks.
48
+ The service defines account operations without maintaining a second credential index. The provider owns persistence and login lifecycle checks.
47
49
 
48
50
  <a id="further-exploration"></a>
49
51
  ## Further Exploration
package/README.zh.md CHANGED
@@ -21,6 +21,8 @@ getUnnotifiedBonuses 返回平台尚未记录为已展示的赠金及其所属
21
21
 
22
22
  账号使用方可读取本地登录状态、发起或取消浏览器登录,并在保留 API Key 的情况下退出。Host 模型使用方仅能为提供者配置的推理来源解析账号凭证。
23
23
 
24
+ `SignInErrorCode` 将 `no-response`(fetch 未返回 Response)与 HTTP 和响应校验失败区分开,使客户端可以提示检查网络。
25
+
24
26
  `getDeviceIdentity()` 返回已有设备和账户 ID 以及登录使用的操作系统版本字符串,不返回凭据,也不创建设备标识。
25
27
 
26
28
  ## 目录
@@ -43,7 +45,7 @@ getUnnotifiedBonuses 返回平台尚未记录为已展示的赠金及其所属
43
45
  <a id="understand-the-implementation"></a>
44
46
  ## 理解实现
45
47
 
46
- 服务只定义账号操作,不维护第二份凭证索引,因此不发布 invariant。提供者负责持久化和登录生命周期检查。
48
+ 服务只定义账号操作,不维护第二份凭证索引。提供者负责持久化和登录生命周期检查。
47
49
 
48
50
  <a id="further-exploration"></a>
49
51
  ## 深入探索
@@ -9,8 +9,13 @@ export interface AccountClientMetadata {
9
9
  }
10
10
  /** Identity of one local login attempt, unrelated to the platform request ID. */
11
11
  export type SignInAttemptId = Branded<'SignInAttemptId'>;
12
- /** Safe failure codes rendered through the caller's locale dictionary. */
13
- export type SignInErrorCode = 'network' | 'protocol' | 'expired' | 'storage';
12
+ /**
13
+ * Safe failure codes rendered through the caller's locale dictionary.
14
+ * `no-response`: fetch returned no Response; `network`: HTTP or account-detail retrieval failure.
15
+ * `protocol`: invalid response or authorization data; `expired`: authorization expired;
16
+ * `storage`: local credential access or commit failed.
17
+ */
18
+ export type SignInErrorCode = 'no-response' | 'network' | 'protocol' | 'expired' | 'storage';
14
19
  /** Latest login attempt, including terminal outcomes until the next attempt. */
15
20
  export interface SignInAttemptView {
16
21
  readonly id: SignInAttemptId;
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.2.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,16 +32,16 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
- "@deepseek-ai/cordis": "~4.0.4",
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"
35
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
36
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
37
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
38
+ "@deepseek-ai/dsh-brand": "0.2.1-alpha.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@deepseek-ai/cordis": "~4.0.4",
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"
41
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
42
+ "@deepseek-ai/dsh-brand": "0.2.1-alpha.1",
43
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
44
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "@deepseek-ai/dsh-agent": {