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:
2026-09-03 15:39:43 -04:00
co-authored by Claude Sonnet 5
parent b899659e13
commit 79ac6aaa31
463 changed files with 7823 additions and 3397 deletions
@@ -8,6 +8,8 @@ import { EnumCommunicationDirectionWithAggregatesFilterObjectSchema as EnumCommu
import { CommunicationDirectionSchema } from '../enums/CommunicationDirection.schema';
import { EnumCommunicationStatusWithAggregatesFilterObjectSchema as EnumCommunicationStatusWithAggregatesFilterObjectSchema } from './EnumCommunicationStatusWithAggregatesFilter.schema';
import { CommunicationStatusSchema } from '../enums/CommunicationStatus.schema';
import { EnumCommunicationProviderWithAggregatesFilterObjectSchema as EnumCommunicationProviderWithAggregatesFilterObjectSchema } from './EnumCommunicationProviderWithAggregatesFilter.schema';
import { CommunicationProviderSchema } from '../enums/CommunicationProvider.schema';
import { StringNullableWithAggregatesFilterObjectSchema as StringNullableWithAggregatesFilterObjectSchema } from './StringNullableWithAggregatesFilter.schema';
import { DateTimeWithAggregatesFilterObjectSchema as DateTimeWithAggregatesFilterObjectSchema } from './DateTimeWithAggregatesFilter.schema'
@@ -21,6 +23,7 @@ const communicationscalarwherewithaggregatesinputSchema = z.object({
channel: z.union([z.lazy(() => EnumCommunicationChannelWithAggregatesFilterObjectSchema), CommunicationChannelSchema]).optional(),
direction: z.union([z.lazy(() => EnumCommunicationDirectionWithAggregatesFilterObjectSchema), CommunicationDirectionSchema]).optional(),
status: z.union([z.lazy(() => EnumCommunicationStatusWithAggregatesFilterObjectSchema), CommunicationStatusSchema]).optional(),
provider: z.union([z.lazy(() => EnumCommunicationProviderWithAggregatesFilterObjectSchema), CommunicationProviderSchema]).optional(),
body: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),
callDuration: z.union([z.lazy(() => IntNullableWithAggregatesFilterObjectSchema), z.number().int()]).optional().nullable(),
twilioSid: z.union([z.lazy(() => StringNullableWithAggregatesFilterObjectSchema), z.string()]).optional().nullable(),