feat: migrate SMS/voice to Telnyx (TeXML), keep browser dial pad on Twilio
Twilio now handles only the in-browser dial pad (Access Token + browser-Device outbound TwiML); Telnyx takes over SMS, inbound voicemail, the AI voice conversation loop, and staff-triggered outbound calls via TeXML. Adds TelnyxSettings model, Communication.provider discriminator, new comms/routes modules, and a real Telnyx Settings page. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const CommunicationProviderSchema = z.enum(['twilio', 'telnyx'])
|
||||
|
||||
export type CommunicationProvider = z.infer<typeof CommunicationProviderSchema>;
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const CommunicationScalarFieldEnumSchema = z.enum(['id', 'patientId', 'userId', 'channel', 'direction', 'status', 'body', 'callDuration', 'twilioSid', 'createdAt'])
|
||||
export const CommunicationScalarFieldEnumSchema = z.enum(['id', 'patientId', 'userId', 'channel', 'direction', 'status', 'provider', 'body', 'callDuration', 'twilioSid', 'createdAt'])
|
||||
|
||||
export type CommunicationScalarFieldEnum = z.infer<typeof CommunicationScalarFieldEnumSchema>;
|
||||
@@ -0,0 +1,5 @@
|
||||
import * as z from 'zod';
|
||||
|
||||
export const TelnyxSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey', 'accountSid', 'phoneNumber', 'texmlApplicationId', 'messagingProfileId', 'webhookPublicKey', 'greetingMessage'])
|
||||
|
||||
export type TelnyxSettingsScalarFieldEnum = z.infer<typeof TelnyxSettingsScalarFieldEnumSchema>;
|
||||
Reference in New Issue
Block a user