refactor: trim gateway helper type exports · openclaw/openclaw@5657710
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ type ReloadAction =
|
39 | 39 | | "dispose-mcp-runtimes" |
40 | 40 | | `restart-channel:${ChannelId}`; |
41 | 41 | |
42 | | -export type GatewayReloadPlanOptions = { |
| 42 | +type GatewayReloadPlanOptions = { |
43 | 43 | noopPaths?: Iterable<string>; |
44 | 44 | forceChangedPaths?: Iterable<string>; |
45 | 45 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { isReadHttpMethod } from "./control-ui-http-utils.js"; |
2 | 2 | |
3 | | -export type ControlUiRequestClassification = |
| 3 | +type ControlUiRequestClassification = |
4 | 4 | | { kind: "not-control-ui" } |
5 | 5 | | { kind: "not-found" } |
6 | 6 | | { kind: "redirect"; location: string } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,13 +3,13 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
|
3 | 3 | import { hasConfiguredSecretInput, resolveSecretInputRef } from "../config/types.secrets.js"; |
4 | 4 | import { normalizeOptionalString } from "../shared/string-coerce.js"; |
5 | 5 | |
6 | | -export type GatewayCredentialInputPath = |
| 6 | +type GatewayCredentialInputPath = |
7 | 7 | | "gateway.auth.token" |
8 | 8 | | "gateway.auth.password" |
9 | 9 | | "gateway.remote.token" |
10 | 10 | | "gateway.remote.password"; |
11 | 11 | |
12 | | -export type GatewayConfiguredCredentialInput = { |
| 12 | +type GatewayConfiguredCredentialInput = { |
13 | 13 | path: GatewayCredentialInputPath; |
14 | 14 | configured: boolean; |
15 | 15 | value?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ import {
|
20 | 20 | type SupportedGatewaySecretInputPath, |
21 | 21 | } from "./secret-input-paths.js"; |
22 | 22 | |
23 | | -export type GatewayCredentialSecretInputOptions = { |
| 23 | +type GatewayCredentialSecretInputOptions = { |
24 | 24 | config: OpenClawConfig; |
25 | 25 | explicitAuth?: ExplicitGatewayAuth; |
26 | 26 | urlOverride?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { normalizeDeviceMetadataForAuth } from "./device-metadata-normalization.js"; |
2 | 2 | export { normalizeDeviceMetadataForAuth }; |
3 | 3 | |
4 | | -export type DeviceAuthPayloadParams = { |
| 4 | +type DeviceAuthPayloadParams = { |
5 | 5 | deviceId: string; |
6 | 6 | clientId: string; |
7 | 7 | clientMode: string; |
@@ -12,7 +12,7 @@ export type DeviceAuthPayloadParams = {
|
12 | 12 | nonce: string; |
13 | 13 | }; |
14 | 14 | |
15 | | -export type DeviceAuthPayloadV3Params = DeviceAuthPayloadParams & { |
| 15 | +type DeviceAuthPayloadV3Params = DeviceAuthPayloadParams & { |
16 | 16 | platform?: string | null; |
17 | 17 | deviceFamily?: string | null; |
18 | 18 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ export type EventLoopReadyResult = {
|
8 | 8 | aborted: boolean; |
9 | 9 | }; |
10 | 10 | |
11 | | -export type EventLoopReadyOptions = { |
| 11 | +type EventLoopReadyOptions = { |
12 | 12 | maxWaitMs?: number; |
13 | 13 | intervalMs?: number; |
14 | 14 | driftThresholdMs?: number; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ function scheduleResolvedEntryCleanup(cleanup: () => void): void {
|
20 | 20 | unrefTimer(timer); |
21 | 21 | } |
22 | 22 | |
23 | | -export type ExecApprovalRequestPayload = InfraExecApprovalRequestPayload; |
| 23 | +type ExecApprovalRequestPayload = InfraExecApprovalRequestPayload; |
24 | 24 | |
25 | 25 | export type ExecApprovalRecord<TPayload = ExecApprovalRequestPayload> = { |
26 | 26 | id: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。