@deepseek-ai/dsh-deepseek-account 0.2.1-alpha.4 → 0.2.1-rc.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.
@@ -1,4 +1,5 @@
1
1
  import type { Branded } from '@deepseek-ai/dsh-brand';
2
+ import type { JsonValue } from '@deepseek-ai/dsh-util-values';
2
3
  /** Identity of the requesting UI for one account operation; the Host derives Platform request headers from it. */
3
4
  export interface AccountClientMetadata {
4
5
  readonly version: string;
@@ -70,14 +71,15 @@ export interface AccountDetails {
70
71
  export type AccountBonusOrderId = Branded<'AccountBonusOrderId'>;
71
72
  /** One granted bonus Platform has not yet recorded as displayed; copy is server-authored. */
72
73
  export interface AccountBonusNotification {
74
+ /** Server-localized plain-text title; absent responses use the localized bonus title. */
75
+ readonly title?: string;
73
76
  readonly orderId: AccountBonusOrderId;
74
- readonly campaign: string;
75
- /** Granted decimal amount, preserving server precision; never the remaining balance. */
76
- readonly amount: string;
77
- readonly currency: 'CNY' | 'USD';
78
- /** Grant time as supplied by Platform. */
79
- readonly grantedAt: string;
80
- /** Expiry as supplied by Platform. */
77
+ /** Optional Platform metadata, forwarded without validation. */
78
+ readonly campaign?: JsonValue;
79
+ readonly amount?: JsonValue;
80
+ readonly currency?: JsonValue;
81
+ readonly grantedAt?: JsonValue;
82
+ /** Platform expiry timestamp; an empty string means the notice never expires. */
81
83
  readonly expiresAt: string;
82
84
  /** Server-localized plain text ready for display. */
83
85
  readonly message: string;
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.1-alpha.4",
4
+ "version": "0.2.1-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,16 +32,18 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "peerDependencies": {
35
- "@deepseek-ai/cordis": "~4.0.5-alpha.2",
36
- "@deepseek-ai/dsh-brand": "0.2.1-alpha.4",
37
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
38
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4"
35
+ "@deepseek-ai/cordis": "~4.0.5",
36
+ "@deepseek-ai/dsh-brand": "0.2.1-rc.1",
37
+ "@deepseek-ai/dsh-agent": "0.2.1-rc.1",
38
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.1",
39
+ "@deepseek-ai/dsh-util-values": "0.2.1-rc.1"
39
40
  },
40
41
  "devDependencies": {
41
- "@deepseek-ai/cordis": "~4.0.5-alpha.2",
42
- "@deepseek-ai/dsh-brand": "0.2.1-alpha.4",
43
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.4",
44
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.4"
42
+ "@deepseek-ai/cordis": "~4.0.5",
43
+ "@deepseek-ai/dsh-brand": "0.2.1-rc.1",
44
+ "@deepseek-ai/dsh-agent": "0.2.1-rc.1",
45
+ "@deepseek-ai/dsh-llm": "0.2.1-rc.1",
46
+ "@deepseek-ai/dsh-util-values": "0.2.1-rc.1"
45
47
  },
46
48
  "peerDependenciesMeta": {
47
49
  "@deepseek-ai/dsh-agent": {