refactor: trim gateway helper type exports

This commit is contained in:
Peter Steinberger
2026-05-01 22:45:22 +01:00
parent 33b043b920
commit 5657710e15
7 changed files with 9 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ type ReloadAction =
| "dispose-mcp-runtimes"
| `restart-channel:${ChannelId}`;
export type GatewayReloadPlanOptions = {
type GatewayReloadPlanOptions = {
noopPaths?: Iterable<string>;
forceChangedPaths?: Iterable<string>;
};

View File

@@ -1,6 +1,6 @@
import { isReadHttpMethod } from "./control-ui-http-utils.js";
export type ControlUiRequestClassification =
type ControlUiRequestClassification =
| { kind: "not-control-ui" }
| { kind: "not-found" }
| { kind: "redirect"; location: string }

View File

@@ -3,13 +3,13 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";
import { hasConfiguredSecretInput, resolveSecretInputRef } from "../config/types.secrets.js";
import { normalizeOptionalString } from "../shared/string-coerce.js";
export type GatewayCredentialInputPath =
type GatewayCredentialInputPath =
| "gateway.auth.token"
| "gateway.auth.password"
| "gateway.remote.token"
| "gateway.remote.password";
export type GatewayConfiguredCredentialInput = {
type GatewayConfiguredCredentialInput = {
path: GatewayCredentialInputPath;
configured: boolean;
value?: string;

View File

@@ -20,7 +20,7 @@ import {
type SupportedGatewaySecretInputPath,
} from "./secret-input-paths.js";
export type GatewayCredentialSecretInputOptions = {
type GatewayCredentialSecretInputOptions = {
config: OpenClawConfig;
explicitAuth?: ExplicitGatewayAuth;
urlOverride?: string;

View File

@@ -1,7 +1,7 @@
import { normalizeDeviceMetadataForAuth } from "./device-metadata-normalization.js";
export { normalizeDeviceMetadataForAuth };
export type DeviceAuthPayloadParams = {
type DeviceAuthPayloadParams = {
deviceId: string;
clientId: string;
clientMode: string;
@@ -12,7 +12,7 @@ export type DeviceAuthPayloadParams = {
nonce: string;
};
export type DeviceAuthPayloadV3Params = DeviceAuthPayloadParams & {
type DeviceAuthPayloadV3Params = DeviceAuthPayloadParams & {
platform?: string | null;
deviceFamily?: string | null;
};

View File

@@ -8,7 +8,7 @@ export type EventLoopReadyResult = {
aborted: boolean;
};
export type EventLoopReadyOptions = {
type EventLoopReadyOptions = {
maxWaitMs?: number;
intervalMs?: number;
driftThresholdMs?: number;

View File

@@ -20,7 +20,7 @@ function scheduleResolvedEntryCleanup(cleanup: () => void): void {
unrefTimer(timer);
}
export type ExecApprovalRequestPayload = InfraExecApprovalRequestPayload;
type ExecApprovalRequestPayload = InfraExecApprovalRequestPayload;
export type ExecApprovalRecord<TPayload = ExecApprovalRequestPayload> = {
id: string;