paperclip/packages/adapters/openclaw-gateway/src/ui/build-config.ts

14 lines
426 B
TypeScript
Raw Normal View History

import type { CreateConfigValues } from "@paperclipai/adapter-utils";
export function buildOpenClawGatewayConfig(v: CreateConfigValues): Record<string, unknown> {
const ac: Record<string, unknown> = {};
if (v.url) ac.url = v.url;
ac.timeoutSec = 120;
ac.waitTimeoutMs = 120000;
ac.sessionKeyStrategy = "fixed";
ac.sessionKey = "paperclip";
ac.role = "operator";
ac.scopes = ["operator.admin"];
return ac;
}