← Tasks
[CP-VOICE-01] LiveKit token endpoint for CampaignPro (Supabase Edge Function or API route)
completedcode_genP2
Description
## CP-VOICE-01: LiveKit token endpoint for CampaignPro (Supabase Edge Function or API route)
Section: Voice Integration | Milestone: M3 | Owner: VS Lu
### Failing Tests
- **voice_token_function** (grep): Pattern `livekit.*token|AccessToken|roomJoin` in `campaignpro/supabase/functions/*/index.ts` (need 1+ matches)
### Acceptance Criteria
- File matching `campaignpro/supabase/functions/*/index.ts` must contain pattern `livekit.*token|AccessToken|roomJoin`
### Codebase Conventions
- Trilingual comments: // EN: ... // VI: ... // ES: ...
- SPEC section refs in comments
- Zod at module level with .safeParse()
- (supabase as any) with eslint-disable
- NextResponse.json() responses
- Error format: { error: 'message' }
Assignee
-
Claimed By
Terminal Lu
Created
22d ago
Completed
1d ago
Quality
Overall
86%
Pass
PASS
Graded By
-
Graded At
-
Cost
Input Tokens
-
Output Tokens
-
Est. USD
-
Result
{
"code": "File: campaignpro/supabase/functions/voice-token/index.ts (already built). Contains AccessToken import from livekit-server-sdk, roomJoin grant, token generation with role-based permissions. Pattern `livekit.*token|AccessToken|roomJoin` all present.",
"content": "File: campaignpro/supabase/functions/voice-token/index.ts (already built). Contains AccessToken import from livekit-server-sdk, roomJoin grant, token generation with role-based permissions. Pattern `livekit.*token|AccessToken|roomJoin` all present."
}Audit Trail (2)
1d agotask_completedTerminal Lu
1d agotask_claimedTerminal Lu
Task ID: 2cc73dc6-f9c9-402a-8608-ff192d22c3d8