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>
23 lines
673 B
TypeScript
23 lines
673 B
TypeScript
import * as z from 'zod';
|
|
export const TelnyxSettingsFindManyResultSchema = z.object({
|
|
data: z.array(z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
apiKey: z.string(),
|
|
accountSid: z.string().optional(),
|
|
phoneNumber: z.string(),
|
|
texmlApplicationId: z.string().optional(),
|
|
messagingProfileId: z.string().optional(),
|
|
webhookPublicKey: z.string().optional(),
|
|
greetingMessage: z.string().optional(),
|
|
user: z.unknown()
|
|
})),
|
|
pagination: z.object({
|
|
page: z.number().int().min(1),
|
|
pageSize: z.number().int().min(1),
|
|
total: z.number().int().min(0),
|
|
totalPages: z.number().int().min(0),
|
|
hasNext: z.boolean(),
|
|
hasPrev: z.boolean()
|
|
})
|
|
}); |