use deepgram ws proxy, simplify env vars

This commit is contained in:
Ramnique Singh 2026-03-24 11:50:22 +05:30
parent 8151769891
commit 02c0fd487f
15 changed files with 170 additions and 61 deletions

View file

@ -7,6 +7,7 @@ import { AgentScheduleConfig, AgentScheduleEntry } from './agent-schedule.js';
import { AgentScheduleState } from './agent-schedule-state.js';
import { ServiceEvent } from './service-events.js';
import { UserMessageContent } from './message.js';
import { RowboatApiConfig } from './rowboat-account.js';
// ============================================================================
// Runtime Validation Schemas (Single Source of Truth)
@ -252,6 +253,14 @@ const ipcSchemas = {
})),
}),
},
'account:getRowboat': {
req: z.null(),
res: z.object({
signedIn: z.boolean(),
accessToken: z.string().nullable(),
config: RowboatApiConfig.nullable(),
}),
},
'oauth:didConnect': {
req: z.object({
provider: z.string(),
@ -492,12 +501,6 @@ const ipcSchemas = {
mimeType: z.string(),
}),
},
'voice:getDeepgramToken': {
req: z.null(),
res: z.object({
token: z.string(),
}).nullable(),
},
'meeting:summarize': {
req: z.object({
transcript: z.string(),

View file

@ -0,0 +1,7 @@
import { z } from 'zod';
export const RowboatApiConfig = z.object({
appUrl: z.string(),
websocketApiUrl: z.string(),
supabaseUrl: z.string(),
});