@blade-hq/agent-client 2610.0.2 → 2610.0.3-beta.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.
@@ -0,0 +1 @@
1
+ export { getServerTime, syncServerTime } from "./server-clock";
@@ -0,0 +1,9 @@
1
+ import {
2
+ getServerTime,
3
+ syncServerTime
4
+ } from "./chunk-BSPBHCYP.js";
5
+ export {
6
+ getServerTime,
7
+ syncServerTime
8
+ };
9
+ //# sourceMappingURL=internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ export declare function syncServerTime(client: object, timestamp: unknown, receivedAt?: number): void;
2
+ export declare function getServerTime(client: object | null, now?: number): number | null;
@@ -379,11 +379,13 @@ export declare namespace SystemNotificationPayloadSchema {
379
379
  }
380
380
  export type SystemNotificationPayload = SystemNotificationPayloadSchema.SystemNotificationPayload;
381
381
  export declare namespace TurnEventsPayloadSchema {
382
+ type ServerTime = (string | null);
382
383
  type SessionId = string;
383
384
  type Type = string;
384
385
  type StreamSequence = (number | null);
385
386
  type Events = RawWireEvent[];
386
387
  interface TurnEventsPayload {
388
+ server_time?: ServerTime;
387
389
  session_id: SessionId;
388
390
  events: Events;
389
391
  [k: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blade-hq/agent-client",
3
- "version": "2610.0.2",
3
+ "version": "2610.0.3-beta.1",
4
4
  "description": "Blade Agent 框架无关客户端:会话实时状态机、REST 通道、弹窗登录、页面协作。浏览器与 Node.js 通用。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
+ },
17
+ "./internal": {
18
+ "types": "./dist/internal.d.ts",
19
+ "import": "./dist/internal.js"
16
20
  }
17
21
  },
18
22
  "files": [