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>
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
import * as z from 'zod';
|
|
export const TelnyxSettingsGroupByResultSchema = z.array(z.object({
|
|
id: z.number().int(),
|
|
userId: z.number().int(),
|
|
apiKey: z.string(),
|
|
accountSid: z.string(),
|
|
phoneNumber: z.string(),
|
|
texmlApplicationId: z.string(),
|
|
messagingProfileId: z.string(),
|
|
webhookPublicKey: z.string(),
|
|
greetingMessage: z.string(),
|
|
_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()
|
|
})); |