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>
17 lines
548 B
TypeScript
17 lines
548 B
TypeScript
import * as z from 'zod';
|
|
// prettier-ignore
|
|
export const TelnyxSettingsResultSchema = z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
apiKey: z.string(),
|
|
accountSid: z.string().nullable(),
|
|
phoneNumber: z.string(),
|
|
texmlApplicationId: z.string().nullable(),
|
|
messagingProfileId: z.string().nullable(),
|
|
webhookPublicKey: z.string().nullable(),
|
|
greetingMessage: z.string().nullable(),
|
|
user: z.unknown()
|
|
}).strict();
|
|
|
|
export type TelnyxSettingsResultType = z.infer<typeof TelnyxSettingsResultSchema>;
|