@openclaw/gateway-protocol 2026.8.1-beta.3 → 2026.9.1-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.
@@ -57,14 +57,25 @@ declare const GATEWAY_CLIENT_MODES: {
57
57
  type GatewayClientMode = (typeof GATEWAY_CLIENT_MODES)[keyof typeof GATEWAY_CLIENT_MODES];
58
58
  /** Client metadata sent during gateway connection setup. */
59
59
  type GatewayClientInfo = {
60
- /** Stable product/client identifier from `GATEWAY_CLIENT_IDS`. */id: GatewayClientId; /** Human-readable label for diagnostics; not used for policy decisions. */
61
- displayName?: string; /** Client app or package version reported by the connecting process. */
62
- version: string; /** Exact immutable artifact identity when the client can report one. */
63
- buildId?: string; /** Runtime platform string, such as `darwin`, `ios`, `android`, or `web`. */
64
- platform: string; /** Optional device family used by native clients for display and routing hints. */
65
- deviceFamily?: string; /** Native hardware/model identifier when available. */
66
- modelIdentifier?: string; /** Coarse category from `GATEWAY_CLIENT_MODES` for policy and diagnostics. */
67
- mode: GatewayClientMode; /** Per-installation or per-process id used to distinguish same-product clients. */
60
+ /** Stable product/client identifier from `GATEWAY_CLIENT_IDS`. */
61
+ id: GatewayClientId;
62
+ /** Human-readable label for diagnostics; not used for policy decisions. */
63
+ displayName?: string;
64
+ /** Client app or package version reported by the connecting process. */
65
+ version: string;
66
+ /** Exact immutable artifact identity when the client can report one. */
67
+ buildId?: string;
68
+ /** Runtime platform string, such as `darwin`, `ios`, `android`, or `web`. */
69
+ platform: string;
70
+ /** Optional device family used by native clients for display and routing hints. */
71
+ deviceFamily?: string;
72
+ /** Native hardware/model identifier when available. */
73
+ modelIdentifier?: string;
74
+ /** Self-reported IANA time zone, such as `Europe/Vienna`, for presence display. */
75
+ timeZone?: string;
76
+ /** Coarse category from `GATEWAY_CLIENT_MODES` for policy and diagnostics. */
77
+ mode: GatewayClientMode;
78
+ /** Per-installation or per-process id used to distinguish same-product clients. */
68
79
  instanceId?: string;
69
80
  };
70
81
  /** Capability flags a client may advertise during the gateway handshake. */
@@ -80,6 +91,7 @@ declare const GATEWAY_CLIENT_CAPS: {
80
91
  readonly TERMINAL_OFFSET_SEQ: "terminal-offset-seq";
81
92
  readonly TOOL_EVENTS: "tool-events";
82
93
  readonly UI_COMMANDS: "ui-commands";
94
+ readonly USAGE_REFRESHING: "usage-refreshing";
83
95
  };
84
96
  /** Optional capability advertised by clients during gateway handshake. */
85
97
  type GatewayClientCap = (typeof GATEWAY_CLIENT_CAPS)[keyof typeof GATEWAY_CLIENT_CAPS];
@@ -53,7 +53,8 @@ const GATEWAY_CLIENT_CAPS = {
53
53
  TASK_SUGGESTIONS: "task-suggestions",
54
54
  TERMINAL_OFFSET_SEQ: "terminal-offset-seq",
55
55
  TOOL_EVENTS: "tool-events",
56
- UI_COMMANDS: "ui-commands"
56
+ UI_COMMANDS: "ui-commands",
57
+ USAGE_REFRESHING: "usage-refreshing"
57
58
  };
58
59
  const GATEWAY_CLIENT_ID_SET = new Set(Object.values(GATEWAY_CLIENT_IDS));
59
60
  const GATEWAY_CLIENT_MODE_SET = new Set(Object.values(GATEWAY_CLIENT_MODES));
@@ -1,5 +1,4 @@
1
- import { a as EventFrame, c as GatewayFrame, f as RequestFrame, m as ResponseFrame, r as ErrorShape, t as ConnectParams, u as HelloOk } from "./frames-BKvowx_k.mjs";
2
-
1
+ import { a as EventFrame, d as RequestFrame, l as HelloOk, p as ResponseFrame, r as ErrorShape, s as GatewayFrame, t as ConnectParams } from "./frames-BmksHL6e.mjs";
3
2
  //#region src/frame-guards.d.ts
4
3
  declare function isGatewayEventFrame(value: unknown): value is EventFrame;
5
4
  declare function isGatewayResponseFrame(value: unknown): value is ResponseFrame;
@@ -1,16 +1,5 @@
1
1
  import { Static, Type } from "typebox";
2
-
3
2
  //#region src/schema/frames.d.ts
4
- declare const GATEWAY_SERVER_CAPS: {
5
- readonly BOARD_WIDGET_PUT_CANVAS_DOC: "board-widget-put-canvas-doc";
6
- readonly CHAT_SEND_ROUTING_CONTRACT: "chat-send-routing-contract";
7
- readonly GATEWAY_RESTART_TARGET_SAFE: "gateway-restart-target-safe-v1";
8
- readonly NODE_WORKER_BUNDLE_RETENTION: "node-worker-bundle-retention-v1";
9
- readonly NODE_WORKER_BUNDLE_STATUS: "node-worker-bundle-status-v1";
10
- readonly SYSTEM_AGENT_WIZARD_CANCEL: "openclaw-chat-wizard-cancel";
11
- readonly SYSTEM_AGENT_SETUP_MODEL_REF: "openclaw-setup-model-ref";
12
- readonly TASK_SUGGESTIONS_ACCEPT_MODES: "taskSuggestions.acceptModes";
13
- };
14
3
  /**
15
4
  * Top-level gateway frame schemas.
16
5
  *
@@ -38,12 +27,16 @@ declare const ConnectParamsSchema: Type.TObject<{
38
27
  platform: Type.TString;
39
28
  deviceFamily: Type.TOptional<Type.TString>;
40
29
  modelIdentifier: Type.TOptional<Type.TString>;
30
+ /** Self-reported IANA zone. Bounded because the longest real name is well under this cap. */
31
+ timeZone: Type.TOptional<Type.TString>;
41
32
  mode: Type.TEnum<["webchat", "cli", "worker", "test", "probe", "ui", "backend", "node"]>;
42
33
  instanceId: Type.TOptional<Type.TString>;
43
34
  }>;
44
35
  caps: Type.TOptional<Type.TArray<Type.TString>>;
45
- commands: Type.TOptional<Type.TArray<Type.TString>>; /** Additive Computer Use declaration; the owning core contract validates its bounded shape. */
46
- computerUse: Type.TOptional<Type.TUnknown>; /** @deprecated Accepted for the shipped v1 node-host envelope; current hosts use runner inventory. */
36
+ commands: Type.TOptional<Type.TArray<Type.TString>>;
37
+ /** Additive Computer Use declaration; the owning core contract validates its bounded shape. */
38
+ computerUse: Type.TOptional<Type.TUnknown>;
39
+ /** @deprecated Accepted for the shipped v1 node-host envelope; current hosts use runner inventory. */
47
40
  workerRuns: Type.TOptional<Type.TObject<{
48
41
  bundleHash: Type.TString;
49
42
  openclawVersion: Type.TString;
@@ -79,6 +72,7 @@ declare const HelloOkSchema: Type.TObject<{
79
72
  server: Type.TObject<{
80
73
  version: Type.TString;
81
74
  buildId: Type.TOptional<Type.TString>;
75
+ bootId: Type.TOptional<Type.TString>;
82
76
  controlUiBuildSource: Type.TOptional<Type.TUnion<[Type.TLiteral<"bundled">, Type.TLiteral<"configured">]>>;
83
77
  connId: Type.TString;
84
78
  }>;
@@ -95,6 +89,7 @@ declare const HelloOkSchema: Type.TObject<{
95
89
  platform: Type.TOptional<Type.TString>;
96
90
  deviceFamily: Type.TOptional<Type.TString>;
97
91
  modelIdentifier: Type.TOptional<Type.TString>;
92
+ timeZone: Type.TOptional<Type.TString>;
98
93
  mode: Type.TOptional<Type.TString>;
99
94
  lastInputSeconds: Type.TOptional<Type.TInteger>;
100
95
  reason: Type.TOptional<Type.TString>;
@@ -443,4 +438,4 @@ type GatewayFrame = Static<typeof GatewayFrameSchema>;
443
438
  type TickEvent = Static<typeof TickEventSchema>;
444
439
  type ShutdownEvent = Static<typeof ShutdownEventSchema>;
445
440
  //#endregion
446
- export { ShutdownEventSchema as _, EventFrame as a, GatewayFrame as c, HelloOkSchema as d, RequestFrame as f, ShutdownEvent as g, ResponseFrameSchema as h, ErrorShapeSchema as i, GatewayFrameSchema as l, ResponseFrame as m, ConnectParamsSchema as n, EventFrameSchema as o, RequestFrameSchema as p, ErrorShape as r, GATEWAY_SERVER_CAPS as s, ConnectParams as t, HelloOk as u, TickEvent as v, TickEventSchema as y };
441
+ export { TickEvent as _, EventFrame as a, GatewayFrameSchema as c, RequestFrame as d, RequestFrameSchema as f, ShutdownEventSchema as g, ShutdownEvent as h, ErrorShapeSchema as i, HelloOk as l, ResponseFrameSchema as m, ConnectParamsSchema as n, EventFrameSchema as o, ResponseFrame as p, ErrorShape as r, GatewayFrame as s, ConnectParams as t, HelloOkSchema as u, TickEventSchema as v };
@@ -1,12 +1,19 @@
1
1
  //#region src/gateway-error-details.d.ts
2
2
  /** Gateway JSON-RPC style error codes shared by clients and server handlers. */
3
3
  declare const ErrorCodes: {
4
- /** @deprecated Retained for source compatibility; no current server emitter. */readonly NOT_LINKED: "NOT_LINKED"; /** Device exists but still needs an explicit pairing approval. */
5
- readonly NOT_PAIRED: "NOT_PAIRED"; /** @deprecated Retained for source compatibility; no current server emitter. */
6
- readonly AGENT_TIMEOUT: "AGENT_TIMEOUT"; /** Request payload failed protocol validation or method preconditions. */
7
- readonly INVALID_REQUEST: "INVALID_REQUEST"; /** Authenticated caller lacks permission for the requested operation. */
8
- readonly FORBIDDEN: "FORBIDDEN"; /** Approval resolution referenced a missing or expired approval request. */
9
- readonly APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND"; /** Gateway service or required backend is temporarily unavailable. */
4
+ /** @deprecated Retained for source compatibility; no current server emitter. */
5
+ readonly NOT_LINKED: "NOT_LINKED";
6
+ /** Device exists but still needs an explicit pairing approval. */
7
+ readonly NOT_PAIRED: "NOT_PAIRED";
8
+ /** @deprecated Retained for source compatibility; no current server emitter. */
9
+ readonly AGENT_TIMEOUT: "AGENT_TIMEOUT";
10
+ /** Request payload failed protocol validation or method preconditions. */
11
+ readonly INVALID_REQUEST: "INVALID_REQUEST";
12
+ /** Authenticated caller lacks permission for the requested operation. */
13
+ readonly FORBIDDEN: "FORBIDDEN";
14
+ /** Approval resolution referenced a missing or expired approval request. */
15
+ readonly APPROVAL_NOT_FOUND: "APPROVAL_NOT_FOUND";
16
+ /** Gateway service or required backend is temporarily unavailable. */
10
17
  readonly UNAVAILABLE: "UNAVAILABLE";
11
18
  };
12
19
  /** Closed set of canonical gateway error code strings. */
@@ -1,2 +1,2 @@
1
- import { _ as readCronJobNotFoundError, a as GatewayErrorDetails, b as readSkillProposalRevisionChangedError, c as OutboundDeliveryQueuedErrorDetails, d as SkillProposalRevisionChangedErrorDetails, f as UnknownAgentIdErrorDetails, g as isMcpAppViewExpiredError, h as buildSkillProposalRevisionChangedErrorDetails, i as GatewayErrorDetailCodes, l as ProjectCloneErrorDetails, m as WizardNotFoundErrorDetails, n as ErrorCode, o as McpAppViewExpiredErrorDetails, p as UserPrefsLimitExceededErrorDetails, r as ErrorCodes, s as MissingScopeErrorDetails, t as CronJobNotFoundErrorDetails, u as ProjectCloneFailureCause, v as readMissingScopeError, y as readMissingScopeErrorDetails } from "./gateway-error-details-DR-CyzeW.mjs";
1
+ import { _ as readCronJobNotFoundError, a as GatewayErrorDetails, b as readSkillProposalRevisionChangedError, c as OutboundDeliveryQueuedErrorDetails, d as SkillProposalRevisionChangedErrorDetails, f as UnknownAgentIdErrorDetails, g as isMcpAppViewExpiredError, h as buildSkillProposalRevisionChangedErrorDetails, i as GatewayErrorDetailCodes, l as ProjectCloneErrorDetails, m as WizardNotFoundErrorDetails, n as ErrorCode, o as McpAppViewExpiredErrorDetails, p as UserPrefsLimitExceededErrorDetails, r as ErrorCodes, s as MissingScopeErrorDetails, t as CronJobNotFoundErrorDetails, u as ProjectCloneFailureCause, v as readMissingScopeError, y as readMissingScopeErrorDetails } from "./gateway-error-details-yO9RdEKe.mjs";
2
2
  export { CronJobNotFoundErrorDetails, ErrorCode, ErrorCodes, GatewayErrorDetailCodes, GatewayErrorDetails, McpAppViewExpiredErrorDetails, MissingScopeErrorDetails, OutboundDeliveryQueuedErrorDetails, ProjectCloneErrorDetails, ProjectCloneFailureCause, SkillProposalRevisionChangedErrorDetails, UnknownAgentIdErrorDetails, UserPrefsLimitExceededErrorDetails, WizardNotFoundErrorDetails, buildSkillProposalRevisionChangedErrorDetails, isMcpAppViewExpiredError, readCronJobNotFoundError, readMissingScopeError, readMissingScopeErrorDetails, readSkillProposalRevisionChangedError };