feat: AI API Setting page with 4 provider sections and toggles

Add OpenAI, Claude AI, and DentalManagement AI sections to the AI API
Setting page, each with a masked API key input and an on/off toggle
(defaulting to off). Rename sidebar label from "Google AI Settings" to
"AI API Setting". Add provider-key and provider-enabled backend endpoints
and extend the AiSettings schema with 6 new fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ff
2026-06-05 16:36:01 -04:00
parent 1bbca38344
commit 2457e12b5c
50 changed files with 930 additions and 102 deletions

File diff suppressed because one or more lines are too long

View File

@@ -435,6 +435,13 @@ exports.Prisma.AiSettingsScalarFieldEnum = {
id: 'id',
userId: 'userId',
apiKey: 'apiKey',
aiEnabled: 'aiEnabled',
openAiKey: 'openAiKey',
openAiEnabled: 'openAiEnabled',
claudeAiKey: 'claudeAiKey',
claudeAiEnabled: 'claudeAiEnabled',
dentalMgmtKey: 'dentalMgmtKey',
dentalMgmtEnabled: 'dentalMgmtEnabled',
afterHoursEnabled: 'afterHoursEnabled',
openPhoneReply: 'openPhoneReply'
};

View File

@@ -36381,6 +36381,13 @@ export namespace Prisma {
id: number | null
userId: number | null
apiKey: string | null
aiEnabled: boolean | null
openAiKey: string | null
openAiEnabled: boolean | null
claudeAiKey: string | null
claudeAiEnabled: boolean | null
dentalMgmtKey: string | null
dentalMgmtEnabled: boolean | null
afterHoursEnabled: boolean | null
openPhoneReply: boolean | null
}
@@ -36389,6 +36396,13 @@ export namespace Prisma {
id: number | null
userId: number | null
apiKey: string | null
aiEnabled: boolean | null
openAiKey: string | null
openAiEnabled: boolean | null
claudeAiKey: string | null
claudeAiEnabled: boolean | null
dentalMgmtKey: string | null
dentalMgmtEnabled: boolean | null
afterHoursEnabled: boolean | null
openPhoneReply: boolean | null
}
@@ -36397,6 +36411,13 @@ export namespace Prisma {
id: number
userId: number
apiKey: number
aiEnabled: number
openAiKey: number
openAiEnabled: number
claudeAiKey: number
claudeAiEnabled: number
dentalMgmtKey: number
dentalMgmtEnabled: number
afterHoursEnabled: number
openPhoneReply: number
_all: number
@@ -36417,6 +36438,13 @@ export namespace Prisma {
id?: true
userId?: true
apiKey?: true
aiEnabled?: true
openAiKey?: true
openAiEnabled?: true
claudeAiKey?: true
claudeAiEnabled?: true
dentalMgmtKey?: true
dentalMgmtEnabled?: true
afterHoursEnabled?: true
openPhoneReply?: true
}
@@ -36425,6 +36453,13 @@ export namespace Prisma {
id?: true
userId?: true
apiKey?: true
aiEnabled?: true
openAiKey?: true
openAiEnabled?: true
claudeAiKey?: true
claudeAiEnabled?: true
dentalMgmtKey?: true
dentalMgmtEnabled?: true
afterHoursEnabled?: true
openPhoneReply?: true
}
@@ -36433,6 +36468,13 @@ export namespace Prisma {
id?: true
userId?: true
apiKey?: true
aiEnabled?: true
openAiKey?: true
openAiEnabled?: true
claudeAiKey?: true
claudeAiEnabled?: true
dentalMgmtKey?: true
dentalMgmtEnabled?: true
afterHoursEnabled?: true
openPhoneReply?: true
_all?: true
@@ -36528,6 +36570,13 @@ export namespace Prisma {
id: number
userId: number
apiKey: string
aiEnabled: boolean
openAiKey: string
openAiEnabled: boolean
claudeAiKey: string
claudeAiEnabled: boolean
dentalMgmtKey: string
dentalMgmtEnabled: boolean
afterHoursEnabled: boolean
openPhoneReply: boolean
_count: AiSettingsCountAggregateOutputType | null
@@ -36555,6 +36604,13 @@ export namespace Prisma {
id?: boolean
userId?: boolean
apiKey?: boolean
aiEnabled?: boolean
openAiKey?: boolean
openAiEnabled?: boolean
claudeAiKey?: boolean
claudeAiEnabled?: boolean
dentalMgmtKey?: boolean
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
@@ -36564,6 +36620,13 @@ export namespace Prisma {
id?: boolean
userId?: boolean
apiKey?: boolean
aiEnabled?: boolean
openAiKey?: boolean
openAiEnabled?: boolean
claudeAiKey?: boolean
claudeAiEnabled?: boolean
dentalMgmtKey?: boolean
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
@@ -36573,6 +36636,13 @@ export namespace Prisma {
id?: boolean
userId?: boolean
apiKey?: boolean
aiEnabled?: boolean
openAiKey?: boolean
openAiEnabled?: boolean
claudeAiKey?: boolean
claudeAiEnabled?: boolean
dentalMgmtKey?: boolean
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
user?: boolean | UserDefaultArgs<ExtArgs>
@@ -36582,11 +36652,18 @@ export namespace Prisma {
id?: boolean
userId?: boolean
apiKey?: boolean
aiEnabled?: boolean
openAiKey?: boolean
openAiEnabled?: boolean
claudeAiKey?: boolean
claudeAiEnabled?: boolean
dentalMgmtKey?: boolean
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
}
export type AiSettingsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "apiKey" | "afterHoursEnabled" | "openPhoneReply", ExtArgs["result"]["aiSettings"]>
export type AiSettingsOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "apiKey" | "aiEnabled" | "openAiKey" | "openAiEnabled" | "claudeAiKey" | "claudeAiEnabled" | "dentalMgmtKey" | "dentalMgmtEnabled" | "afterHoursEnabled" | "openPhoneReply", ExtArgs["result"]["aiSettings"]>
export type AiSettingsInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
user?: boolean | UserDefaultArgs<ExtArgs>
}
@@ -36606,6 +36683,13 @@ export namespace Prisma {
id: number
userId: number
apiKey: string
aiEnabled: boolean
openAiKey: string
openAiEnabled: boolean
claudeAiKey: string
claudeAiEnabled: boolean
dentalMgmtKey: string
dentalMgmtEnabled: boolean
afterHoursEnabled: boolean
openPhoneReply: boolean
}, ExtArgs["result"]["aiSettings"]>
@@ -37035,6 +37119,13 @@ export namespace Prisma {
readonly id: FieldRef<"AiSettings", 'Int'>
readonly userId: FieldRef<"AiSettings", 'Int'>
readonly apiKey: FieldRef<"AiSettings", 'String'>
readonly aiEnabled: FieldRef<"AiSettings", 'Boolean'>
readonly openAiKey: FieldRef<"AiSettings", 'String'>
readonly openAiEnabled: FieldRef<"AiSettings", 'Boolean'>
readonly claudeAiKey: FieldRef<"AiSettings", 'String'>
readonly claudeAiEnabled: FieldRef<"AiSettings", 'Boolean'>
readonly dentalMgmtKey: FieldRef<"AiSettings", 'String'>
readonly dentalMgmtEnabled: FieldRef<"AiSettings", 'Boolean'>
readonly afterHoursEnabled: FieldRef<"AiSettings", 'Boolean'>
readonly openPhoneReply: FieldRef<"AiSettings", 'Boolean'>
}
@@ -45640,6 +45731,13 @@ export namespace Prisma {
id: 'id',
userId: 'userId',
apiKey: 'apiKey',
aiEnabled: 'aiEnabled',
openAiKey: 'openAiKey',
openAiEnabled: 'openAiEnabled',
claudeAiKey: 'claudeAiKey',
claudeAiEnabled: 'claudeAiEnabled',
dentalMgmtKey: 'dentalMgmtKey',
dentalMgmtEnabled: 'dentalMgmtEnabled',
afterHoursEnabled: 'afterHoursEnabled',
openPhoneReply: 'openPhoneReply'
};
@@ -48268,6 +48366,13 @@ export namespace Prisma {
id?: IntFilter<"AiSettings"> | number
userId?: IntFilter<"AiSettings"> | number
apiKey?: StringFilter<"AiSettings"> | string
aiEnabled?: BoolFilter<"AiSettings"> | boolean
openAiKey?: StringFilter<"AiSettings"> | string
openAiEnabled?: BoolFilter<"AiSettings"> | boolean
claudeAiKey?: StringFilter<"AiSettings"> | string
claudeAiEnabled?: BoolFilter<"AiSettings"> | boolean
dentalMgmtKey?: StringFilter<"AiSettings"> | string
dentalMgmtEnabled?: BoolFilter<"AiSettings"> | boolean
afterHoursEnabled?: BoolFilter<"AiSettings"> | boolean
openPhoneReply?: BoolFilter<"AiSettings"> | boolean
user?: XOR<UserScalarRelationFilter, UserWhereInput>
@@ -48277,6 +48382,13 @@ export namespace Prisma {
id?: SortOrder
userId?: SortOrder
apiKey?: SortOrder
aiEnabled?: SortOrder
openAiKey?: SortOrder
openAiEnabled?: SortOrder
claudeAiKey?: SortOrder
claudeAiEnabled?: SortOrder
dentalMgmtKey?: SortOrder
dentalMgmtEnabled?: SortOrder
afterHoursEnabled?: SortOrder
openPhoneReply?: SortOrder
user?: UserOrderByWithRelationInput
@@ -48289,6 +48401,13 @@ export namespace Prisma {
OR?: AiSettingsWhereInput[]
NOT?: AiSettingsWhereInput | AiSettingsWhereInput[]
apiKey?: StringFilter<"AiSettings"> | string
aiEnabled?: BoolFilter<"AiSettings"> | boolean
openAiKey?: StringFilter<"AiSettings"> | string
openAiEnabled?: BoolFilter<"AiSettings"> | boolean
claudeAiKey?: StringFilter<"AiSettings"> | string
claudeAiEnabled?: BoolFilter<"AiSettings"> | boolean
dentalMgmtKey?: StringFilter<"AiSettings"> | string
dentalMgmtEnabled?: BoolFilter<"AiSettings"> | boolean
afterHoursEnabled?: BoolFilter<"AiSettings"> | boolean
openPhoneReply?: BoolFilter<"AiSettings"> | boolean
user?: XOR<UserScalarRelationFilter, UserWhereInput>
@@ -48298,6 +48417,13 @@ export namespace Prisma {
id?: SortOrder
userId?: SortOrder
apiKey?: SortOrder
aiEnabled?: SortOrder
openAiKey?: SortOrder
openAiEnabled?: SortOrder
claudeAiKey?: SortOrder
claudeAiEnabled?: SortOrder
dentalMgmtKey?: SortOrder
dentalMgmtEnabled?: SortOrder
afterHoursEnabled?: SortOrder
openPhoneReply?: SortOrder
_count?: AiSettingsCountOrderByAggregateInput
@@ -48314,6 +48440,13 @@ export namespace Prisma {
id?: IntWithAggregatesFilter<"AiSettings"> | number
userId?: IntWithAggregatesFilter<"AiSettings"> | number
apiKey?: StringWithAggregatesFilter<"AiSettings"> | string
aiEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean
openAiKey?: StringWithAggregatesFilter<"AiSettings"> | string
openAiEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean
claudeAiKey?: StringWithAggregatesFilter<"AiSettings"> | string
claudeAiEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean
dentalMgmtKey?: StringWithAggregatesFilter<"AiSettings"> | string
dentalMgmtEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean
afterHoursEnabled?: BoolWithAggregatesFilter<"AiSettings"> | boolean
openPhoneReply?: BoolWithAggregatesFilter<"AiSettings"> | boolean
}
@@ -51004,6 +51137,13 @@ export namespace Prisma {
export type AiSettingsCreateInput = {
apiKey: string
aiEnabled?: boolean
openAiKey?: string
openAiEnabled?: boolean
claudeAiKey?: string
claudeAiEnabled?: boolean
dentalMgmtKey?: string
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
user: UserCreateNestedOneWithoutAiSettingsInput
@@ -51013,12 +51153,26 @@ export namespace Prisma {
id?: number
userId: number
apiKey: string
aiEnabled?: boolean
openAiKey?: string
openAiEnabled?: boolean
claudeAiKey?: string
claudeAiEnabled?: boolean
dentalMgmtKey?: string
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
}
export type AiSettingsUpdateInput = {
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
user?: UserUpdateOneRequiredWithoutAiSettingsNestedInput
@@ -51028,6 +51182,13 @@ export namespace Prisma {
id?: IntFieldUpdateOperationsInput | number
userId?: IntFieldUpdateOperationsInput | number
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
}
@@ -51036,12 +51197,26 @@ export namespace Prisma {
id?: number
userId: number
apiKey: string
aiEnabled?: boolean
openAiKey?: string
openAiEnabled?: boolean
claudeAiKey?: string
claudeAiEnabled?: boolean
dentalMgmtKey?: string
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
}
export type AiSettingsUpdateManyMutationInput = {
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
}
@@ -51050,6 +51225,13 @@ export namespace Prisma {
id?: IntFieldUpdateOperationsInput | number
userId?: IntFieldUpdateOperationsInput | number
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
}
@@ -53648,6 +53830,13 @@ export namespace Prisma {
id?: SortOrder
userId?: SortOrder
apiKey?: SortOrder
aiEnabled?: SortOrder
openAiKey?: SortOrder
openAiEnabled?: SortOrder
claudeAiKey?: SortOrder
claudeAiEnabled?: SortOrder
dentalMgmtKey?: SortOrder
dentalMgmtEnabled?: SortOrder
afterHoursEnabled?: SortOrder
openPhoneReply?: SortOrder
}
@@ -53661,6 +53850,13 @@ export namespace Prisma {
id?: SortOrder
userId?: SortOrder
apiKey?: SortOrder
aiEnabled?: SortOrder
openAiKey?: SortOrder
openAiEnabled?: SortOrder
claudeAiKey?: SortOrder
claudeAiEnabled?: SortOrder
dentalMgmtKey?: SortOrder
dentalMgmtEnabled?: SortOrder
afterHoursEnabled?: SortOrder
openPhoneReply?: SortOrder
}
@@ -53669,6 +53865,13 @@ export namespace Prisma {
id?: SortOrder
userId?: SortOrder
apiKey?: SortOrder
aiEnabled?: SortOrder
openAiKey?: SortOrder
openAiEnabled?: SortOrder
claudeAiKey?: SortOrder
claudeAiEnabled?: SortOrder
dentalMgmtKey?: SortOrder
dentalMgmtEnabled?: SortOrder
afterHoursEnabled?: SortOrder
openPhoneReply?: SortOrder
}
@@ -57953,6 +58156,13 @@ export namespace Prisma {
export type AiSettingsCreateWithoutUserInput = {
apiKey: string
aiEnabled?: boolean
openAiKey?: string
openAiEnabled?: boolean
claudeAiKey?: string
claudeAiEnabled?: boolean
dentalMgmtKey?: string
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
}
@@ -57960,6 +58170,13 @@ export namespace Prisma {
export type AiSettingsUncheckedCreateWithoutUserInput = {
id?: number
apiKey: string
aiEnabled?: boolean
openAiKey?: string
openAiEnabled?: boolean
claudeAiKey?: string
claudeAiEnabled?: boolean
dentalMgmtKey?: string
dentalMgmtEnabled?: boolean
afterHoursEnabled?: boolean
openPhoneReply?: boolean
}
@@ -58564,6 +58781,13 @@ export namespace Prisma {
export type AiSettingsUpdateWithoutUserInput = {
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
}
@@ -58571,6 +58795,13 @@ export namespace Prisma {
export type AiSettingsUncheckedUpdateWithoutUserInput = {
id?: IntFieldUpdateOperationsInput | number
apiKey?: StringFieldUpdateOperationsInput | string
aiEnabled?: BoolFieldUpdateOperationsInput | boolean
openAiKey?: StringFieldUpdateOperationsInput | string
openAiEnabled?: BoolFieldUpdateOperationsInput | boolean
claudeAiKey?: StringFieldUpdateOperationsInput | string
claudeAiEnabled?: BoolFieldUpdateOperationsInput | boolean
dentalMgmtKey?: StringFieldUpdateOperationsInput | string
dentalMgmtEnabled?: BoolFieldUpdateOperationsInput | boolean
afterHoursEnabled?: BoolFieldUpdateOperationsInput | boolean
openPhoneReply?: BoolFieldUpdateOperationsInput | boolean
}

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,5 @@
{
"name": "prisma-client-ae04602e14efae70f6055fb4d588cf6860f72b63564d0ac2c7419c6c8e032b2d",
"name": "prisma-client-dffa61cfa33500c5a3d8eb3911d8102dda0abe78c0c02287d94a83d7e3de2af7",
"main": "index.js",
"types": "index.d.ts",
"browser": "default.js",

View File

@@ -600,6 +600,13 @@ model AiSettings {
id Int @id @default(autoincrement())
userId Int @unique
apiKey String
aiEnabled Boolean @default(true)
openAiKey String @default("")
openAiEnabled Boolean @default(true)
claudeAiKey String @default("")
claudeAiEnabled Boolean @default(true)
dentalMgmtKey String @default("")
dentalMgmtEnabled Boolean @default(true)
afterHoursEnabled Boolean @default(true)
openPhoneReply Boolean @default(false)

View File

@@ -601,6 +601,13 @@ model AiSettings {
id Int @id @default(autoincrement())
userId Int @unique
apiKey String
aiEnabled Boolean @default(true)
openAiKey String @default("")
openAiEnabled Boolean @default(false)
claudeAiKey String @default("")
claudeAiEnabled Boolean @default(false)
dentalMgmtKey String @default("")
dentalMgmtEnabled Boolean @default(false)
afterHoursEnabled Boolean @default(true)
openPhoneReply Boolean @default(false)

View File

@@ -1,7 +1,7 @@
{
"version": "1.0",
"generatorVersion": "1.0.0",
"generatedAt": "2026-05-29T02:31:29.315Z",
"generatedAt": "2026-06-05T20:31:36.056Z",
"outputPath": "/home/ff/Desktop/DentalManagementMH06/packages/db/shared",
"files": [
"schemas/enums/TransactionIsolationLevel.schema.ts",

View File

@@ -1,5 +1,5 @@
import * as z from 'zod';
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey', 'afterHoursEnabled', 'openPhoneReply'])
export const AiSettingsScalarFieldEnumSchema = z.enum(['id', 'userId', 'apiKey', 'aiEnabled', 'openAiKey', 'openAiEnabled', 'claudeAiKey', 'claudeAiEnabled', 'dentalMgmtKey', 'dentalMgmtEnabled', 'afterHoursEnabled', 'openPhoneReply'])
export type AiSettingsScalarFieldEnum = z.infer<typeof AiSettingsScalarFieldEnumSchema>;

View File

@@ -13,6 +13,13 @@ export const AiSettingsFindFirstSelectSchema: z.ZodType<Prisma.AiSettingsSelect>
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()
@@ -22,6 +29,13 @@ export const AiSettingsFindFirstSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()

View File

@@ -13,6 +13,13 @@ export const AiSettingsFindFirstOrThrowSelectSchema: z.ZodType<Prisma.AiSettings
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()
@@ -22,6 +29,13 @@ export const AiSettingsFindFirstOrThrowSelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()

View File

@@ -13,6 +13,13 @@ export const AiSettingsFindManySelectSchema: z.ZodType<Prisma.AiSettingsSelect>
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()
@@ -22,6 +29,13 @@ export const AiSettingsFindManySelectZodSchema = z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.boolean().optional()

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional(),
aiEnabled: z.literal(true).optional(),
openAiKey: z.literal(true).optional(),
openAiEnabled: z.literal(true).optional(),
claudeAiKey: z.literal(true).optional(),
claudeAiEnabled: z.literal(true).optional(),
dentalMgmtKey: z.literal(true).optional(),
dentalMgmtEnabled: z.literal(true).optional(),
afterHoursEnabled: z.literal(true).optional(),
openPhoneReply: z.literal(true).optional(),
_all: z.literal(true).optional()

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
aiEnabled: SortOrderSchema.optional(),
openAiKey: SortOrderSchema.optional(),
openAiEnabled: SortOrderSchema.optional(),
claudeAiKey: SortOrderSchema.optional(),
claudeAiEnabled: SortOrderSchema.optional(),
dentalMgmtKey: SortOrderSchema.optional(),
dentalMgmtEnabled: SortOrderSchema.optional(),
afterHoursEnabled: SortOrderSchema.optional(),
openPhoneReply: SortOrderSchema.optional()
}).strict();

View File

@@ -4,6 +4,13 @@ import { UserCreateNestedOneWithoutAiSettingsInputObjectSchema as UserCreateNest
const makeSchema = () => z.object({
apiKey: z.string(),
aiEnabled: z.boolean().optional(),
openAiKey: z.string().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.string().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.string().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.lazy(() => UserCreateNestedOneWithoutAiSettingsInputObjectSchema)

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean().optional(),
openAiKey: z.string().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.string().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.string().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional()
}).strict();

View File

@@ -4,6 +4,13 @@ import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
apiKey: z.string(),
aiEnabled: z.boolean().optional(),
openAiKey: z.string().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.string().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.string().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional()
}).strict();

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional(),
aiEnabled: z.literal(true).optional(),
openAiKey: z.literal(true).optional(),
openAiEnabled: z.literal(true).optional(),
claudeAiKey: z.literal(true).optional(),
claudeAiEnabled: z.literal(true).optional(),
dentalMgmtKey: z.literal(true).optional(),
dentalMgmtEnabled: z.literal(true).optional(),
afterHoursEnabled: z.literal(true).optional(),
openPhoneReply: z.literal(true).optional()
}).strict();

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
aiEnabled: SortOrderSchema.optional(),
openAiKey: SortOrderSchema.optional(),
openAiEnabled: SortOrderSchema.optional(),
claudeAiKey: SortOrderSchema.optional(),
claudeAiEnabled: SortOrderSchema.optional(),
dentalMgmtKey: SortOrderSchema.optional(),
dentalMgmtEnabled: SortOrderSchema.optional(),
afterHoursEnabled: SortOrderSchema.optional(),
openPhoneReply: SortOrderSchema.optional()
}).strict();

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.literal(true).optional(),
userId: z.literal(true).optional(),
apiKey: z.literal(true).optional(),
aiEnabled: z.literal(true).optional(),
openAiKey: z.literal(true).optional(),
openAiEnabled: z.literal(true).optional(),
claudeAiKey: z.literal(true).optional(),
claudeAiEnabled: z.literal(true).optional(),
dentalMgmtKey: z.literal(true).optional(),
dentalMgmtEnabled: z.literal(true).optional(),
afterHoursEnabled: z.literal(true).optional(),
openPhoneReply: z.literal(true).optional()
}).strict();

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
aiEnabled: SortOrderSchema.optional(),
openAiKey: SortOrderSchema.optional(),
openAiEnabled: SortOrderSchema.optional(),
claudeAiKey: SortOrderSchema.optional(),
claudeAiEnabled: SortOrderSchema.optional(),
dentalMgmtKey: SortOrderSchema.optional(),
dentalMgmtEnabled: SortOrderSchema.optional(),
afterHoursEnabled: SortOrderSchema.optional(),
openPhoneReply: SortOrderSchema.optional()
}).strict();

View File

@@ -11,6 +11,13 @@ const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
aiEnabled: SortOrderSchema.optional(),
openAiKey: SortOrderSchema.optional(),
openAiEnabled: SortOrderSchema.optional(),
claudeAiKey: SortOrderSchema.optional(),
claudeAiEnabled: SortOrderSchema.optional(),
dentalMgmtKey: SortOrderSchema.optional(),
dentalMgmtEnabled: SortOrderSchema.optional(),
afterHoursEnabled: SortOrderSchema.optional(),
openPhoneReply: SortOrderSchema.optional(),
_count: z.lazy(() => AiSettingsCountOrderByAggregateInputObjectSchema).optional(),

View File

@@ -7,6 +7,13 @@ const makeSchema = () => z.object({
id: SortOrderSchema.optional(),
userId: SortOrderSchema.optional(),
apiKey: SortOrderSchema.optional(),
aiEnabled: SortOrderSchema.optional(),
openAiKey: SortOrderSchema.optional(),
openAiEnabled: SortOrderSchema.optional(),
claudeAiKey: SortOrderSchema.optional(),
claudeAiEnabled: SortOrderSchema.optional(),
dentalMgmtKey: SortOrderSchema.optional(),
dentalMgmtEnabled: SortOrderSchema.optional(),
afterHoursEnabled: SortOrderSchema.optional(),
openPhoneReply: SortOrderSchema.optional(),
user: z.lazy(() => UserOrderByWithRelationInputObjectSchema).optional()

View File

@@ -11,6 +11,13 @@ const aisettingsscalarwherewithaggregatesinputSchema = z.object({
id: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntWithAggregatesFilterObjectSchema), z.number().int()]).optional(),
apiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
aiEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
openAiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
openAiEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
claudeAiKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
claudeAiEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
dentalMgmtKey: z.union([z.lazy(() => StringWithAggregatesFilterObjectSchema), z.string()]).optional(),
dentalMgmtEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
afterHoursEnabled: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional(),
openPhoneReply: z.union([z.lazy(() => BoolWithAggregatesFilterObjectSchema), z.boolean()]).optional()
}).strict();

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.boolean().optional(),
userId: z.boolean().optional(),
apiKey: z.boolean().optional(),
aiEnabled: z.boolean().optional(),
openAiKey: z.boolean().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.boolean().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.boolean().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional(),
user: z.union([z.boolean(), z.lazy(() => UserArgsObjectSchema)]).optional()

View File

@@ -6,6 +6,13 @@ const makeSchema = () => z.object({
id: z.number().int().optional(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean().optional(),
openAiKey: z.string().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.string().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.string().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional()
}).strict();

View File

@@ -5,6 +5,13 @@ import type { Prisma } from '../../../generated/prisma';
const makeSchema = () => z.object({
id: z.number().int().optional(),
apiKey: z.string(),
aiEnabled: z.boolean().optional(),
openAiKey: z.string().optional(),
openAiEnabled: z.boolean().optional(),
claudeAiKey: z.string().optional(),
claudeAiEnabled: z.boolean().optional(),
dentalMgmtKey: z.string().optional(),
dentalMgmtEnabled: z.boolean().optional(),
afterHoursEnabled: z.boolean().optional(),
openPhoneReply: z.boolean().optional()
}).strict();

View File

@@ -8,6 +8,13 @@ const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();

View File

@@ -8,6 +8,13 @@ const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
userId: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();

View File

@@ -7,6 +7,13 @@ import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperations
const makeSchema = () => z.object({
id: z.union([z.number().int(), z.lazy(() => IntFieldUpdateOperationsInputObjectSchema)]).optional(),
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();

View File

@@ -6,6 +6,13 @@ import { UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema as UserUp
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
user: z.lazy(() => UserUpdateOneRequiredWithoutAiSettingsNestedInputObjectSchema).optional()

View File

@@ -5,6 +5,13 @@ import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperations
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();

View File

@@ -5,6 +5,13 @@ import { BoolFieldUpdateOperationsInputObjectSchema as BoolFieldUpdateOperations
const makeSchema = () => z.object({
apiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
aiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
openAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
claudeAiEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtKey: z.union([z.string(), z.lazy(() => StringFieldUpdateOperationsInputObjectSchema)]).optional(),
dentalMgmtEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
afterHoursEnabled: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional(),
openPhoneReply: z.union([z.boolean(), z.lazy(() => BoolFieldUpdateOperationsInputObjectSchema)]).optional()
}).strict();

View File

@@ -13,6 +13,13 @@ const aisettingswhereinputSchema = z.object({
id: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
userId: z.union([z.lazy(() => IntFilterObjectSchema), z.number().int()]).optional(),
apiKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
aiEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
openAiKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
openAiEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
claudeAiKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
claudeAiEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
dentalMgmtKey: z.union([z.lazy(() => StringFilterObjectSchema), z.string()]).optional(),
dentalMgmtEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
afterHoursEnabled: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
openPhoneReply: z.union([z.lazy(() => BoolFilterObjectSchema), z.boolean()]).optional(),
user: z.union([z.lazy(() => UserScalarRelationFilterObjectSchema), z.lazy(() => UserWhereInputObjectSchema)]).optional()

View File

@@ -3,6 +3,13 @@ export const AiSettingsAggregateResultSchema = z.object({ _count: z.object({
id: z.number(),
userId: z.number(),
apiKey: z.number(),
aiEnabled: z.number(),
openAiKey: z.number(),
openAiEnabled: z.number(),
claudeAiKey: z.number(),
claudeAiEnabled: z.number(),
dentalMgmtKey: z.number(),
dentalMgmtEnabled: z.number(),
afterHoursEnabled: z.number(),
openPhoneReply: z.number(),
user: z.number()
@@ -18,10 +25,16 @@ export const AiSettingsAggregateResultSchema = z.object({ _count: z.object({
_min: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
apiKey: z.string().nullable()
apiKey: z.string().nullable(),
openAiKey: z.string().nullable(),
claudeAiKey: z.string().nullable(),
dentalMgmtKey: z.string().nullable()
}).nullable().optional(),
_max: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
apiKey: z.string().nullable()
apiKey: z.string().nullable(),
openAiKey: z.string().nullable(),
claudeAiKey: z.string().nullable(),
dentalMgmtKey: z.string().nullable()
}).nullable().optional()});

View File

@@ -3,6 +3,13 @@ export const AiSettingsCreateResultSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -3,6 +3,13 @@ export const AiSettingsDeleteResultSchema = z.nullable(z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -3,6 +3,13 @@ export const AiSettingsFindFirstResultSchema = z.nullable(z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -4,6 +4,13 @@ export const AiSettingsFindManyResultSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -3,6 +3,13 @@ export const AiSettingsFindUniqueResultSchema = z.nullable(z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -3,12 +3,26 @@ export const AiSettingsGroupByResultSchema = z.array(z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
_count: z.object({
id: z.number(),
userId: z.number(),
apiKey: z.number(),
aiEnabled: z.number(),
openAiKey: z.number(),
openAiEnabled: z.number(),
claudeAiKey: z.number(),
claudeAiEnabled: z.number(),
dentalMgmtKey: z.number(),
dentalMgmtEnabled: z.number(),
afterHoursEnabled: z.number(),
openPhoneReply: z.number(),
user: z.number()
@@ -24,11 +38,17 @@ export const AiSettingsGroupByResultSchema = z.array(z.object({
_min: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
apiKey: z.string().nullable()
apiKey: z.string().nullable(),
openAiKey: z.string().nullable(),
claudeAiKey: z.string().nullable(),
dentalMgmtKey: z.string().nullable()
}).nullable().optional(),
_max: z.object({
id: z.number().int().nullable(),
userId: z.number().int().nullable(),
apiKey: z.string().nullable()
apiKey: z.string().nullable(),
openAiKey: z.string().nullable(),
claudeAiKey: z.string().nullable(),
dentalMgmtKey: z.string().nullable()
}).nullable().optional()
}));

View File

@@ -3,6 +3,13 @@ export const AiSettingsUpdateResultSchema = z.nullable(z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -3,6 +3,13 @@ export const AiSettingsUpsertResultSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -4,6 +4,13 @@ export const AiSettingsInputSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -4,6 +4,13 @@ export const AiSettingsModelSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()

View File

@@ -4,6 +4,13 @@ export const AiSettingsResultSchema = z.object({
id: z.number().int(),
userId: z.number().int(),
apiKey: z.string(),
aiEnabled: z.boolean(),
openAiKey: z.string(),
openAiEnabled: z.boolean(),
claudeAiKey: z.string(),
claudeAiEnabled: z.boolean(),
dentalMgmtKey: z.string(),
dentalMgmtEnabled: z.boolean(),
afterHoursEnabled: z.boolean(),
openPhoneReply: z.boolean(),
user: z.unknown()