






















@@ -1,7 +1,4 @@
1-import {
2-REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES,
3-type RealtimeVoiceAgentConsultToolPolicy,
4-} from "openclaw/plugin-sdk/realtime-voice";
1+import { REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES } from "openclaw/plugin-sdk/realtime-voice";
52import {
63buildSecretInputSchema,
74hasConfiguredSecretInput,
@@ -110,7 +107,6 @@ export const VoiceCallTailscaleConfigSchema = z
110107})
111108.strict()
112109.default({ mode: "off", path: "/voice/webhook" });
113-export type VoiceCallTailscaleConfig = z.infer<typeof VoiceCallTailscaleConfigSchema>;
114110115111// -----------------------------------------------------------------------------
116112// Tunnel Configuration (unified ngrok/tailscale)
@@ -141,7 +137,6 @@ export const VoiceCallTunnelConfigSchema = z
141137})
142138.strict()
143139.default({ provider: "none", allowNgrokFreeTierLoopbackBypass: false });
144-export type VoiceCallTunnelConfig = z.infer<typeof VoiceCallTunnelConfigSchema>;
145140146141// -----------------------------------------------------------------------------
147142// Webhook Security Configuration
@@ -190,7 +185,6 @@ export const OutboundConfigSchema = z
190185})
191186.strict()
192187.default({ defaultMode: "notify", notifyHangupDelaySec: 3 });
193-export type OutboundConfig = z.infer<typeof OutboundConfigSchema>;
194188195189// -----------------------------------------------------------------------------
196190// Realtime Voice Configuration
@@ -213,17 +207,10 @@ export type RealtimeToolConfig = z.infer<typeof RealtimeToolSchema>;
213207export const VoiceCallRealtimeProvidersConfigSchema = z
214208.record(z.string(), z.record(z.string(), z.unknown()))
215209.default({});
216-export type VoiceCallRealtimeProvidersConfig = z.infer<
217-typeof VoiceCallRealtimeProvidersConfigSchema
218->;
219210220211export const VoiceCallRealtimeToolPolicySchema = z.enum(REALTIME_VOICE_AGENT_CONSULT_TOOL_POLICIES);
221-export type VoiceCallRealtimeToolPolicy = RealtimeVoiceAgentConsultToolPolicy;
222212223213export const VoiceCallRealtimeFastContextSourceSchema = z.enum(["memory", "sessions"]);
224-export type VoiceCallRealtimeFastContextSource = z.infer<
225-typeof VoiceCallRealtimeFastContextSourceSchema
226->;
227214228215export const VoiceCallRealtimeFastContextConfigSchema = z
229216.object({
@@ -256,9 +243,6 @@ export type VoiceCallRealtimeFastContextConfig = z.infer<
256243export const VoiceCallStreamingProvidersConfigSchema = z
257244.record(z.string(), z.record(z.string(), z.unknown()))
258245.default({});
259-export type VoiceCallStreamingProvidersConfig = z.infer<
260-typeof VoiceCallStreamingProvidersConfigSchema
261->;
262246263247export const VoiceCallRealtimeConfigSchema = z
264248.object({
@@ -332,7 +316,6 @@ export const VoiceCallStreamingConfigSchema = z
332316maxPendingConnectionsPerIp: 4,
333317maxConnections: 128,
334318});
335-export type VoiceCallStreamingConfig = z.infer<typeof VoiceCallStreamingConfigSchema>;
336319337320// -----------------------------------------------------------------------------
338321// Main Voice Call Configuration
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。