mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:40:44 +00:00
refactor: trim gateway helper type exports
This commit is contained in:
@@ -39,7 +39,7 @@ type ReloadAction =
|
||||
| "dispose-mcp-runtimes"
|
||||
| `restart-channel:${ChannelId}`;
|
||||
|
||||
export type GatewayReloadPlanOptions = {
|
||||
type GatewayReloadPlanOptions = {
|
||||
noopPaths?: Iterable<string>;
|
||||
forceChangedPaths?: Iterable<string>;
|
||||
};
|
||||
|
||||
@@ -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 }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
type SupportedGatewaySecretInputPath,
|
||||
} from "./secret-input-paths.js";
|
||||
|
||||
export type GatewayCredentialSecretInputOptions = {
|
||||
type GatewayCredentialSecretInputOptions = {
|
||||
config: OpenClawConfig;
|
||||
explicitAuth?: ExplicitGatewayAuth;
|
||||
urlOverride?: string;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ export type EventLoopReadyResult = {
|
||||
aborted: boolean;
|
||||
};
|
||||
|
||||
export type EventLoopReadyOptions = {
|
||||
type EventLoopReadyOptions = {
|
||||
maxWaitMs?: number;
|
||||
intervalMs?: number;
|
||||
driftThresholdMs?: number;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user