mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor(gateway): keep portal helper types private
This commit is contained in:
@@ -22,7 +22,7 @@ const HOP_BY_HOP_HEADERS = new Set([
|
||||
"upgrade",
|
||||
]);
|
||||
|
||||
export type PortalProxyTarget = {
|
||||
type PortalProxyTarget = {
|
||||
targetPort: number;
|
||||
token: string;
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ import type { PortalSummary } from "../../../packages/gateway-protocol/src/index
|
||||
import { listenGatewayHttpServer } from "../server/http-listen.js";
|
||||
import { handlePortalProxyRequest, handlePortalProxyUpgrade } from "./portal-http-proxy.js";
|
||||
|
||||
export type PortalEntry = {
|
||||
type PortalEntry = {
|
||||
id: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
@@ -25,7 +25,7 @@ type PortalRuntimeEntry = {
|
||||
upgradedSockets: Set<Duplex>;
|
||||
};
|
||||
|
||||
export type GatewayPortalOpenParams = {
|
||||
type GatewayPortalOpenParams = {
|
||||
targetPort: number;
|
||||
title?: string;
|
||||
description?: string;
|
||||
|
||||
Reference in New Issue
Block a user