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>
14 lines
2.9 KiB
TypeScript
14 lines
2.9 KiB
TypeScript
import type { Prisma } from '../../generated/prisma';
|
|
import * as z from 'zod';
|
|
import { TelnyxSettingsOrderByWithRelationInputObjectSchema as TelnyxSettingsOrderByWithRelationInputObjectSchema } from './objects/TelnyxSettingsOrderByWithRelationInput.schema';
|
|
import { TelnyxSettingsWhereInputObjectSchema as TelnyxSettingsWhereInputObjectSchema } from './objects/TelnyxSettingsWhereInput.schema';
|
|
import { TelnyxSettingsWhereUniqueInputObjectSchema as TelnyxSettingsWhereUniqueInputObjectSchema } from './objects/TelnyxSettingsWhereUniqueInput.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 TelnyxSettingsAggregateSchema: z.ZodType<Prisma.TelnyxSettingsAggregateArgs> = z.object({ orderBy: z.union([TelnyxSettingsOrderByWithRelationInputObjectSchema, TelnyxSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TelnyxSettingsWhereInputObjectSchema.optional(), cursor: TelnyxSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _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.TelnyxSettingsAggregateArgs>;
|
|
|
|
export const TelnyxSettingsAggregateZodSchema = z.object({ orderBy: z.union([TelnyxSettingsOrderByWithRelationInputObjectSchema, TelnyxSettingsOrderByWithRelationInputObjectSchema.array()]).optional(), where: TelnyxSettingsWhereInputObjectSchema.optional(), cursor: TelnyxSettingsWhereUniqueInputObjectSchema.optional(), take: z.number().optional(), skip: z.number().optional(), _count: z.union([ z.literal(true), TelnyxSettingsCountAggregateInputObjectSchema ]).optional(), _min: TelnyxSettingsMinAggregateInputObjectSchema.optional(), _max: TelnyxSettingsMaxAggregateInputObjectSchema.optional(), _avg: TelnyxSettingsAvgAggregateInputObjectSchema.optional(), _sum: TelnyxSettingsSumAggregateInputObjectSchema.optional() }).strict(); |