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>
15 lines
3.1 KiB
TypeScript
15 lines
3.1 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { TelnyxSettingsWhereInputObjectSchema as TelnyxSettingsWhereInputObjectSchema } from './objects/TelnyxSettingsWhereInput.schema';
|
|
import { TelnyxSettingsOrderByWithAggregationInputObjectSchema as TelnyxSettingsOrderByWithAggregationInputObjectSchema } from './objects/TelnyxSettingsOrderByWithAggregationInput.schema';
|
|
import { TelnyxSettingsScalarWhereWithAggregatesInputObjectSchema as TelnyxSettingsScalarWhereWithAggregatesInputObjectSchema } from './objects/TelnyxSettingsScalarWhereWithAggregatesInput.schema';
|
|
import { TelnyxSettingsScalarFieldEnumSchema } from './enums/TelnyxSettingsScalarFieldEnum.schema';
|
|
import { TelnyxSettingsCountAggregateInputObjectSchema as TelnyxSettingsCountAggregateInputObjectSchema } from './objects/TelnyxSettingsCountAggregateInput.schema';
|
|
import { TelnyxSettingsMinAggregateInputObjectSchema as TelnyxSettingsMinAggregateInputObjectSchema } from './objects/TelnyxSettingsMinAggregateInput.schema';
|
|
import { TelnyxSettingsMaxAggregateInputObjectSchema as TelnyxSettingsMaxAggregateInputObjectSchema } from './objects/TelnyxSettingsMaxAggregateInput.schema';
|
|
import { TelnyxSettingsAvgAggregateInputObjectSchema as TelnyxSettingsAvgAggregateInputObjectSchema } from './objects/TelnyxSettingsAvgAggregateInput.schema';
|
|
import { TelnyxSettingsSumAggregateInputObjectSchema as TelnyxSettingsSumAggregateInputObjectSchema } from './objects/TelnyxSettingsSumAggregateInput.schema';
|
|
|
|
export const TelnyxSettingsGroupBySchema: z.ZodType<Prisma.TelnyxSettingsGroupByArgs> = z.object({ where: TelnyxSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TelnyxSettingsOrderByWithAggregationInputObjectSchema, TelnyxSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TelnyxSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TelnyxSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TelnyxSettingsCountAggregateInputObjectSchema ]).optional(), _min: TelnyxSettingsMinAggregateInputObjectSchema.optional(), _max: TelnyxSettingsMaxAggregateInputObjectSchema.optional(), _avg: TelnyxSettingsAvgAggregateInputObjectSchema.optional(), _sum: TelnyxSettingsSumAggregateInputObjectSchema.optional() }).strict() as unknown as z.ZodType<Prisma.TelnyxSettingsGroupByArgs>;
|
|
|
|
export const TelnyxSettingsGroupByZodSchema = z.object({ where: TelnyxSettingsWhereInputObjectSchema.optional(), orderBy: z.union([TelnyxSettingsOrderByWithAggregationInputObjectSchema, TelnyxSettingsOrderByWithAggregationInputObjectSchema.array()]).optional(), having: TelnyxSettingsScalarWhereWithAggregatesInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), by: z.array(TelnyxSettingsScalarFieldEnumSchema), _count: z.union([ z.literal(true), TelnyxSettingsCountAggregateInputObjectSchema ]).optional(), _min: TelnyxSettingsMinAggregateInputObjectSchema.optional(), _max: TelnyxSettingsMaxAggregateInputObjectSchema.optional(), _avg: TelnyxSettingsAvgAggregateInputObjectSchema.optional(), _sum: TelnyxSettingsSumAggregateInputObjectSchema.optional() }).strict(); |