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>
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import * as z from 'zod';
|
|
export const TelnyxSettingsAggregateResultSchema = z.object({ _count: z.object({
|
|
id: z.number(),
|
|
userId: z.number(),
|
|
apiKey: z.number(),
|
|
accountSid: z.number(),
|
|
phoneNumber: z.number(),
|
|
texmlApplicationId: z.number(),
|
|
messagingProfileId: z.number(),
|
|
webhookPublicKey: z.number(),
|
|
greetingMessage: z.number(),
|
|
user: z.number()
|
|
}).optional(),
|
|
_sum: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_avg: z.object({
|
|
id: z.number().nullable(),
|
|
userId: z.number().nullable()
|
|
}).nullable().optional(),
|
|
_min: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
apiKey: z.string().nullable(),
|
|
accountSid: z.string().nullable(),
|
|
phoneNumber: z.string().nullable(),
|
|
texmlApplicationId: z.string().nullable(),
|
|
messagingProfileId: z.string().nullable(),
|
|
webhookPublicKey: z.string().nullable(),
|
|
greetingMessage: z.string().nullable()
|
|
}).nullable().optional(),
|
|
_max: z.object({
|
|
id: z.number().int().nullable(),
|
|
userId: z.number().int().nullable(),
|
|
apiKey: z.string().nullable(),
|
|
accountSid: z.string().nullable(),
|
|
phoneNumber: z.string().nullable(),
|
|
texmlApplicationId: z.string().nullable(),
|
|
messagingProfileId: z.string().nullable(),
|
|
webhookPublicKey: z.string().nullable(),
|
|
greetingMessage: z.string().nullable()
|
|
}).nullable().optional()}); |