import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model ai_prompts
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type ai_promptsModel = runtime.Types.Result.DefaultSelection<Prisma.$ai_promptsPayload>;
export type AggregateAi_prompts = {
    _count: Ai_promptsCountAggregateOutputType | null;
    _avg: Ai_promptsAvgAggregateOutputType | null;
    _sum: Ai_promptsSumAggregateOutputType | null;
    _min: Ai_promptsMinAggregateOutputType | null;
    _max: Ai_promptsMaxAggregateOutputType | null;
};
export type Ai_promptsAvgAggregateOutputType = {
    sort: number | null;
};
export type Ai_promptsSumAggregateOutputType = {
    sort: number | null;
};
export type Ai_promptsMinAggregateOutputType = {
    id: string | null;
    sort: number | null;
    date_created: Date | null;
    user_created: string | null;
    date_updated: Date | null;
    user_updated: string | null;
    name: string | null;
    status: string | null;
    description: string | null;
    system_prompt: string | null;
};
export type Ai_promptsMaxAggregateOutputType = {
    id: string | null;
    sort: number | null;
    date_created: Date | null;
    user_created: string | null;
    date_updated: Date | null;
    user_updated: string | null;
    name: string | null;
    status: string | null;
    description: string | null;
    system_prompt: string | null;
};
export type Ai_promptsCountAggregateOutputType = {
    id: number;
    sort: number;
    date_created: number;
    user_created: number;
    date_updated: number;
    user_updated: number;
    name: number;
    status: number;
    description: number;
    system_prompt: number;
    messages: number;
    _all: number;
};
export type Ai_promptsAvgAggregateInputType = {
    sort?: true;
};
export type Ai_promptsSumAggregateInputType = {
    sort?: true;
};
export type Ai_promptsMinAggregateInputType = {
    id?: true;
    sort?: true;
    date_created?: true;
    user_created?: true;
    date_updated?: true;
    user_updated?: true;
    name?: true;
    status?: true;
    description?: true;
    system_prompt?: true;
};
export type Ai_promptsMaxAggregateInputType = {
    id?: true;
    sort?: true;
    date_created?: true;
    user_created?: true;
    date_updated?: true;
    user_updated?: true;
    name?: true;
    status?: true;
    description?: true;
    system_prompt?: true;
};
export type Ai_promptsCountAggregateInputType = {
    id?: true;
    sort?: true;
    date_created?: true;
    user_created?: true;
    date_updated?: true;
    user_updated?: true;
    name?: true;
    status?: true;
    description?: true;
    system_prompt?: true;
    messages?: true;
    _all?: true;
};
export type Ai_promptsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which ai_prompts to aggregate.
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of ai_prompts to fetch.
     */
    orderBy?: Prisma.ai_promptsOrderByWithRelationInput | Prisma.ai_promptsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.ai_promptsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` ai_prompts from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` ai_prompts.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned ai_prompts
    **/
    _count?: true | Ai_promptsCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: Ai_promptsAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: Ai_promptsSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: Ai_promptsMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: Ai_promptsMaxAggregateInputType;
};
export type GetAi_promptsAggregateType<T extends Ai_promptsAggregateArgs> = {
    [P in keyof T & keyof AggregateAi_prompts]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAi_prompts[P]> : Prisma.GetScalarType<T[P], AggregateAi_prompts[P]>;
};
export type ai_promptsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.ai_promptsWhereInput;
    orderBy?: Prisma.ai_promptsOrderByWithAggregationInput | Prisma.ai_promptsOrderByWithAggregationInput[];
    by: Prisma.Ai_promptsScalarFieldEnum[] | Prisma.Ai_promptsScalarFieldEnum;
    having?: Prisma.ai_promptsScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: Ai_promptsCountAggregateInputType | true;
    _avg?: Ai_promptsAvgAggregateInputType;
    _sum?: Ai_promptsSumAggregateInputType;
    _min?: Ai_promptsMinAggregateInputType;
    _max?: Ai_promptsMaxAggregateInputType;
};
export type Ai_promptsGroupByOutputType = {
    id: string;
    sort: number | null;
    date_created: Date | null;
    user_created: string | null;
    date_updated: Date | null;
    user_updated: string | null;
    name: string | null;
    status: string | null;
    description: string | null;
    system_prompt: string | null;
    messages: runtime.JsonValue | null;
    _count: Ai_promptsCountAggregateOutputType | null;
    _avg: Ai_promptsAvgAggregateOutputType | null;
    _sum: Ai_promptsSumAggregateOutputType | null;
    _min: Ai_promptsMinAggregateOutputType | null;
    _max: Ai_promptsMaxAggregateOutputType | null;
};
type GetAi_promptsGroupByPayload<T extends ai_promptsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<Ai_promptsGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof Ai_promptsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], Ai_promptsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], Ai_promptsGroupByOutputType[P]>;
}>>;
export type ai_promptsWhereInput = {
    AND?: Prisma.ai_promptsWhereInput | Prisma.ai_promptsWhereInput[];
    OR?: Prisma.ai_promptsWhereInput[];
    NOT?: Prisma.ai_promptsWhereInput | Prisma.ai_promptsWhereInput[];
    id?: Prisma.UuidFilter<"ai_prompts"> | string;
    sort?: Prisma.IntNullableFilter<"ai_prompts"> | number | null;
    date_created?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_created?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    date_updated?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_updated?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    name?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    status?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    description?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    system_prompt?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    messages?: Prisma.JsonNullableFilter<"ai_prompts">;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.XOR<Prisma.Directus_usersNullableScalarRelationFilter, Prisma.directus_usersWhereInput> | null;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.XOR<Prisma.Directus_usersNullableScalarRelationFilter, Prisma.directus_usersWhereInput> | null;
};
export type ai_promptsOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    sort?: Prisma.SortOrderInput | Prisma.SortOrder;
    date_created?: Prisma.SortOrderInput | Prisma.SortOrder;
    user_created?: Prisma.SortOrderInput | Prisma.SortOrder;
    date_updated?: Prisma.SortOrderInput | Prisma.SortOrder;
    user_updated?: Prisma.SortOrderInput | Prisma.SortOrder;
    name?: Prisma.SortOrderInput | Prisma.SortOrder;
    status?: Prisma.SortOrderInput | Prisma.SortOrder;
    description?: Prisma.SortOrderInput | Prisma.SortOrder;
    system_prompt?: Prisma.SortOrderInput | Prisma.SortOrder;
    messages?: Prisma.SortOrderInput | Prisma.SortOrder;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.directus_usersOrderByWithRelationInput;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.directus_usersOrderByWithRelationInput;
};
export type ai_promptsWhereUniqueInput = Prisma.AtLeast<{
    id?: string;
    name?: string;
    AND?: Prisma.ai_promptsWhereInput | Prisma.ai_promptsWhereInput[];
    OR?: Prisma.ai_promptsWhereInput[];
    NOT?: Prisma.ai_promptsWhereInput | Prisma.ai_promptsWhereInput[];
    sort?: Prisma.IntNullableFilter<"ai_prompts"> | number | null;
    date_created?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_created?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    date_updated?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_updated?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    status?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    description?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    system_prompt?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    messages?: Prisma.JsonNullableFilter<"ai_prompts">;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.XOR<Prisma.Directus_usersNullableScalarRelationFilter, Prisma.directus_usersWhereInput> | null;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.XOR<Prisma.Directus_usersNullableScalarRelationFilter, Prisma.directus_usersWhereInput> | null;
}, "id" | "name">;
export type ai_promptsOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    sort?: Prisma.SortOrderInput | Prisma.SortOrder;
    date_created?: Prisma.SortOrderInput | Prisma.SortOrder;
    user_created?: Prisma.SortOrderInput | Prisma.SortOrder;
    date_updated?: Prisma.SortOrderInput | Prisma.SortOrder;
    user_updated?: Prisma.SortOrderInput | Prisma.SortOrder;
    name?: Prisma.SortOrderInput | Prisma.SortOrder;
    status?: Prisma.SortOrderInput | Prisma.SortOrder;
    description?: Prisma.SortOrderInput | Prisma.SortOrder;
    system_prompt?: Prisma.SortOrderInput | Prisma.SortOrder;
    messages?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.ai_promptsCountOrderByAggregateInput;
    _avg?: Prisma.ai_promptsAvgOrderByAggregateInput;
    _max?: Prisma.ai_promptsMaxOrderByAggregateInput;
    _min?: Prisma.ai_promptsMinOrderByAggregateInput;
    _sum?: Prisma.ai_promptsSumOrderByAggregateInput;
};
export type ai_promptsScalarWhereWithAggregatesInput = {
    AND?: Prisma.ai_promptsScalarWhereWithAggregatesInput | Prisma.ai_promptsScalarWhereWithAggregatesInput[];
    OR?: Prisma.ai_promptsScalarWhereWithAggregatesInput[];
    NOT?: Prisma.ai_promptsScalarWhereWithAggregatesInput | Prisma.ai_promptsScalarWhereWithAggregatesInput[];
    id?: Prisma.UuidWithAggregatesFilter<"ai_prompts"> | string;
    sort?: Prisma.IntNullableWithAggregatesFilter<"ai_prompts"> | number | null;
    date_created?: Prisma.DateTimeNullableWithAggregatesFilter<"ai_prompts"> | Date | string | null;
    user_created?: Prisma.UuidNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    date_updated?: Prisma.DateTimeNullableWithAggregatesFilter<"ai_prompts"> | Date | string | null;
    user_updated?: Prisma.UuidNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    name?: Prisma.StringNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    status?: Prisma.StringNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    description?: Prisma.StringNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    system_prompt?: Prisma.StringNullableWithAggregatesFilter<"ai_prompts"> | string | null;
    messages?: Prisma.JsonNullableWithAggregatesFilter<"ai_prompts">;
};
export type ai_promptsCreateInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    date_updated?: Date | string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.directus_usersCreateNestedOneWithoutAi_prompts_ai_prompts_user_createdTodirectus_usersInput;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.directus_usersCreateNestedOneWithoutAi_prompts_ai_prompts_user_updatedTodirectus_usersInput;
};
export type ai_promptsUncheckedCreateInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    user_created?: string | null;
    date_updated?: Date | string | null;
    user_updated?: string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUpdateInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.directus_usersUpdateOneWithoutAi_prompts_ai_prompts_user_createdTodirectus_usersNestedInput;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.directus_usersUpdateOneWithoutAi_prompts_ai_prompts_user_updatedTodirectus_usersNestedInput;
};
export type ai_promptsUncheckedUpdateInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_created?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_updated?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsCreateManyInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    user_created?: string | null;
    date_updated?: Date | string | null;
    user_updated?: string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUpdateManyMutationInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUncheckedUpdateManyInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_created?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_updated?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    sort?: Prisma.SortOrder;
    date_created?: Prisma.SortOrder;
    user_created?: Prisma.SortOrder;
    date_updated?: Prisma.SortOrder;
    user_updated?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
    description?: Prisma.SortOrder;
    system_prompt?: Prisma.SortOrder;
    messages?: Prisma.SortOrder;
};
export type ai_promptsAvgOrderByAggregateInput = {
    sort?: Prisma.SortOrder;
};
export type ai_promptsMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    sort?: Prisma.SortOrder;
    date_created?: Prisma.SortOrder;
    user_created?: Prisma.SortOrder;
    date_updated?: Prisma.SortOrder;
    user_updated?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
    description?: Prisma.SortOrder;
    system_prompt?: Prisma.SortOrder;
};
export type ai_promptsMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    sort?: Prisma.SortOrder;
    date_created?: Prisma.SortOrder;
    user_created?: Prisma.SortOrder;
    date_updated?: Prisma.SortOrder;
    user_updated?: Prisma.SortOrder;
    name?: Prisma.SortOrder;
    status?: Prisma.SortOrder;
    description?: Prisma.SortOrder;
    system_prompt?: Prisma.SortOrder;
};
export type ai_promptsSumOrderByAggregateInput = {
    sort?: Prisma.SortOrder;
};
export type Ai_promptsListRelationFilter = {
    every?: Prisma.ai_promptsWhereInput;
    some?: Prisma.ai_promptsWhereInput;
    none?: Prisma.ai_promptsWhereInput;
};
export type ai_promptsOrderByRelationAggregateInput = {
    _count?: Prisma.SortOrder;
};
export type ai_promptsCreateNestedManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInputEnvelope;
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
};
export type ai_promptsCreateNestedManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInputEnvelope;
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
};
export type ai_promptsUncheckedCreateNestedManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInputEnvelope;
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
};
export type ai_promptsUncheckedCreateNestedManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInputEnvelope;
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
};
export type ai_promptsUpdateManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersNestedInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    upsert?: Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInputEnvelope;
    set?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    disconnect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    delete?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    update?: Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    updateMany?: Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    deleteMany?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
};
export type ai_promptsUpdateManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersNestedInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    upsert?: Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInputEnvelope;
    set?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    disconnect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    delete?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    update?: Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    updateMany?: Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    deleteMany?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
};
export type ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersNestedInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    upsert?: Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInputEnvelope;
    set?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    disconnect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    delete?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    update?: Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    updateMany?: Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    deleteMany?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
};
export type ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersNestedInput = {
    create?: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput> | Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[] | Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    connectOrCreate?: Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    upsert?: Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    createMany?: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInputEnvelope;
    set?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    disconnect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    delete?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    connect?: Prisma.ai_promptsWhereUniqueInput | Prisma.ai_promptsWhereUniqueInput[];
    update?: Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    updateMany?: Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    deleteMany?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
};
export type ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    date_updated?: Date | string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.directus_usersCreateNestedOneWithoutAi_prompts_ai_prompts_user_updatedTodirectus_usersInput;
};
export type ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    date_updated?: Date | string | null;
    user_updated?: string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    create: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput>;
};
export type ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInputEnvelope = {
    data: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInput | Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInput[];
    skipDuplicates?: boolean;
};
export type ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    date_updated?: Date | string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.directus_usersCreateNestedOneWithoutAi_prompts_ai_prompts_user_createdTodirectus_usersInput;
};
export type ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    user_created?: string | null;
    date_updated?: Date | string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsCreateOrConnectWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    create: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput>;
};
export type ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInputEnvelope = {
    data: Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInput | Prisma.ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInput[];
    skipDuplicates?: boolean;
};
export type ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    update: Prisma.XOR<Prisma.ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput>;
    create: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput>;
};
export type ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    data: Prisma.XOR<Prisma.ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput, Prisma.ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput>;
};
export type ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    where: Prisma.ai_promptsScalarWhereInput;
    data: Prisma.XOR<Prisma.ai_promptsUpdateManyMutationInput, Prisma.ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput>;
};
export type ai_promptsScalarWhereInput = {
    AND?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
    OR?: Prisma.ai_promptsScalarWhereInput[];
    NOT?: Prisma.ai_promptsScalarWhereInput | Prisma.ai_promptsScalarWhereInput[];
    id?: Prisma.UuidFilter<"ai_prompts"> | string;
    sort?: Prisma.IntNullableFilter<"ai_prompts"> | number | null;
    date_created?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_created?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    date_updated?: Prisma.DateTimeNullableFilter<"ai_prompts"> | Date | string | null;
    user_updated?: Prisma.UuidNullableFilter<"ai_prompts"> | string | null;
    name?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    status?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    description?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    system_prompt?: Prisma.StringNullableFilter<"ai_prompts"> | string | null;
    messages?: Prisma.JsonNullableFilter<"ai_prompts">;
};
export type ai_promptsUpsertWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    update: Prisma.XOR<Prisma.ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput>;
    create: Prisma.XOR<Prisma.ai_promptsCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedCreateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput>;
};
export type ai_promptsUpdateWithWhereUniqueWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    where: Prisma.ai_promptsWhereUniqueInput;
    data: Prisma.XOR<Prisma.ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput, Prisma.ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput>;
};
export type ai_promptsUpdateManyWithWhereWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    where: Prisma.ai_promptsScalarWhereInput;
    data: Prisma.XOR<Prisma.ai_promptsUpdateManyMutationInput, Prisma.ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput>;
};
export type ai_promptsCreateManyDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    date_updated?: Date | string | null;
    user_updated?: string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsCreateManyDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id: string;
    sort?: number | null;
    date_created?: Date | string | null;
    user_created?: string | null;
    date_updated?: Date | string | null;
    name?: string | null;
    status?: string | null;
    description?: string | null;
    system_prompt?: string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_updatedTodirectus_users?: Prisma.directus_usersUpdateOneWithoutAi_prompts_ai_prompts_user_updatedTodirectus_usersNestedInput;
};
export type ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_updated?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_createdTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_updated?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
    directus_users_ai_prompts_user_createdTodirectus_users?: Prisma.directus_usersUpdateOneWithoutAi_prompts_ai_prompts_user_createdTodirectus_usersNestedInput;
};
export type ai_promptsUncheckedUpdateWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_created?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsUncheckedUpdateManyWithoutDirectus_users_ai_prompts_user_updatedTodirectus_usersInput = {
    id?: Prisma.StringFieldUpdateOperationsInput | string;
    sort?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
    date_created?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    user_created?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    date_updated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
    name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    status?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    system_prompt?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
    messages?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
};
export type ai_promptsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    sort?: boolean;
    date_created?: boolean;
    user_created?: boolean;
    date_updated?: boolean;
    user_updated?: boolean;
    name?: boolean;
    status?: boolean;
    description?: boolean;
    system_prompt?: boolean;
    messages?: boolean;
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
}, ExtArgs["result"]["ai_prompts"]>;
export type ai_promptsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    sort?: boolean;
    date_created?: boolean;
    user_created?: boolean;
    date_updated?: boolean;
    user_updated?: boolean;
    name?: boolean;
    status?: boolean;
    description?: boolean;
    system_prompt?: boolean;
    messages?: boolean;
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
}, ExtArgs["result"]["ai_prompts"]>;
export type ai_promptsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    sort?: boolean;
    date_created?: boolean;
    user_created?: boolean;
    date_updated?: boolean;
    user_updated?: boolean;
    name?: boolean;
    status?: boolean;
    description?: boolean;
    system_prompt?: boolean;
    messages?: boolean;
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
}, ExtArgs["result"]["ai_prompts"]>;
export type ai_promptsSelectScalar = {
    id?: boolean;
    sort?: boolean;
    date_created?: boolean;
    user_created?: boolean;
    date_updated?: boolean;
    user_updated?: boolean;
    name?: boolean;
    status?: boolean;
    description?: boolean;
    system_prompt?: boolean;
    messages?: boolean;
};
export type ai_promptsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sort" | "date_created" | "user_created" | "date_updated" | "user_updated" | "name" | "status" | "description" | "system_prompt" | "messages", ExtArgs["result"]["ai_prompts"]>;
export type ai_promptsInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
};
export type ai_promptsIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
};
export type ai_promptsIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    directus_users_ai_prompts_user_createdTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>;
    directus_users_ai_prompts_user_updatedTodirectus_users?: boolean | Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>;
};
export type $ai_promptsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "ai_prompts";
    objects: {
        directus_users_ai_prompts_user_createdTodirectus_users: Prisma.$directus_usersPayload<ExtArgs> | null;
        directus_users_ai_prompts_user_updatedTodirectus_users: Prisma.$directus_usersPayload<ExtArgs> | null;
    };
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: string;
        sort: number | null;
        date_created: Date | null;
        user_created: string | null;
        date_updated: Date | null;
        user_updated: string | null;
        name: string | null;
        status: string | null;
        description: string | null;
        system_prompt: string | null;
        messages: runtime.JsonValue | null;
    }, ExtArgs["result"]["ai_prompts"]>;
    composites: {};
};
export type ai_promptsGetPayload<S extends boolean | null | undefined | ai_promptsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload, S>;
export type ai_promptsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ai_promptsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Ai_promptsCountAggregateInputType | true;
};
export interface ai_promptsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['ai_prompts'];
        meta: {
            name: 'ai_prompts';
        };
    };
    /**
     * Find zero or one Ai_prompts that matches the filter.
     * @param {ai_promptsFindUniqueArgs} args - Arguments to find a Ai_prompts
     * @example
     * // Get one Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends ai_promptsFindUniqueArgs>(args: Prisma.SelectSubset<T, ai_promptsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one Ai_prompts that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {ai_promptsFindUniqueOrThrowArgs} args - Arguments to find a Ai_prompts
     * @example
     * // Get one Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends ai_promptsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ai_promptsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Ai_prompts that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsFindFirstArgs} args - Arguments to find a Ai_prompts
     * @example
     * // Get one Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends ai_promptsFindFirstArgs>(args?: Prisma.SelectSubset<T, ai_promptsFindFirstArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first Ai_prompts that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsFindFirstOrThrowArgs} args - Arguments to find a Ai_prompts
     * @example
     * // Get one Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends ai_promptsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ai_promptsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more Ai_prompts that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findMany()
     *
     * // Get first 10 Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const ai_promptsWithIdOnly = await prisma.ai_prompts.findMany({ select: { id: true } })
     *
     */
    findMany<T extends ai_promptsFindManyArgs>(args?: Prisma.SelectSubset<T, ai_promptsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a Ai_prompts.
     * @param {ai_promptsCreateArgs} args - Arguments to create a Ai_prompts.
     * @example
     * // Create one Ai_prompts
     * const Ai_prompts = await prisma.ai_prompts.create({
     *   data: {
     *     // ... data to create a Ai_prompts
     *   }
     * })
     *
     */
    create<T extends ai_promptsCreateArgs>(args: Prisma.SelectSubset<T, ai_promptsCreateArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many Ai_prompts.
     * @param {ai_promptsCreateManyArgs} args - Arguments to create many Ai_prompts.
     * @example
     * // Create many Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends ai_promptsCreateManyArgs>(args?: Prisma.SelectSubset<T, ai_promptsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many Ai_prompts and returns the data saved in the database.
     * @param {ai_promptsCreateManyAndReturnArgs} args - Arguments to create many Ai_prompts.
     * @example
     * // Create many Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many Ai_prompts and only return the `id`
     * const ai_promptsWithIdOnly = await prisma.ai_prompts.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends ai_promptsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ai_promptsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a Ai_prompts.
     * @param {ai_promptsDeleteArgs} args - Arguments to delete one Ai_prompts.
     * @example
     * // Delete one Ai_prompts
     * const Ai_prompts = await prisma.ai_prompts.delete({
     *   where: {
     *     // ... filter to delete one Ai_prompts
     *   }
     * })
     *
     */
    delete<T extends ai_promptsDeleteArgs>(args: Prisma.SelectSubset<T, ai_promptsDeleteArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one Ai_prompts.
     * @param {ai_promptsUpdateArgs} args - Arguments to update one Ai_prompts.
     * @example
     * // Update one Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends ai_promptsUpdateArgs>(args: Prisma.SelectSubset<T, ai_promptsUpdateArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more Ai_prompts.
     * @param {ai_promptsDeleteManyArgs} args - Arguments to filter Ai_prompts to delete.
     * @example
     * // Delete a few Ai_prompts
     * const { count } = await prisma.ai_prompts.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends ai_promptsDeleteManyArgs>(args?: Prisma.SelectSubset<T, ai_promptsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Ai_prompts.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends ai_promptsUpdateManyArgs>(args: Prisma.SelectSubset<T, ai_promptsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more Ai_prompts and returns the data updated in the database.
     * @param {ai_promptsUpdateManyAndReturnArgs} args - Arguments to update many Ai_prompts.
     * @example
     * // Update many Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more Ai_prompts and only return the `id`
     * const ai_promptsWithIdOnly = await prisma.ai_prompts.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends ai_promptsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ai_promptsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one Ai_prompts.
     * @param {ai_promptsUpsertArgs} args - Arguments to update or create a Ai_prompts.
     * @example
     * // Update or create a Ai_prompts
     * const ai_prompts = await prisma.ai_prompts.upsert({
     *   create: {
     *     // ... data to create a Ai_prompts
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the Ai_prompts we want to update
     *   }
     * })
     */
    upsert<T extends ai_promptsUpsertArgs>(args: Prisma.SelectSubset<T, ai_promptsUpsertArgs<ExtArgs>>): Prisma.Prisma__ai_promptsClient<runtime.Types.Result.GetResult<Prisma.$ai_promptsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of Ai_prompts.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsCountArgs} args - Arguments to filter Ai_prompts to count.
     * @example
     * // Count the number of Ai_prompts
     * const count = await prisma.ai_prompts.count({
     *   where: {
     *     // ... the filter for the Ai_prompts we want to count
     *   }
     * })
    **/
    count<T extends ai_promptsCountArgs>(args?: Prisma.Subset<T, ai_promptsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], Ai_promptsCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a Ai_prompts.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {Ai_promptsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends Ai_promptsAggregateArgs>(args: Prisma.Subset<T, Ai_promptsAggregateArgs>): Prisma.PrismaPromise<GetAi_promptsAggregateType<T>>;
    /**
     * Group by Ai_prompts.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {ai_promptsGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends ai_promptsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: ai_promptsGroupByArgs['orderBy'];
    } : {
        orderBy?: ai_promptsGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, ai_promptsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAi_promptsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the ai_prompts model
     */
    readonly fields: ai_promptsFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for ai_prompts.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__ai_promptsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    directus_users_ai_prompts_user_createdTodirectus_users<T extends Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs>>): Prisma.Prisma__directus_usersClient<runtime.Types.Result.GetResult<Prisma.$directus_usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    directus_users_ai_prompts_user_updatedTodirectus_users<T extends Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs>>): Prisma.Prisma__directus_usersClient<runtime.Types.Result.GetResult<Prisma.$directus_usersPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the ai_prompts model
 */
export interface ai_promptsFieldRefs {
    readonly id: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly sort: Prisma.FieldRef<"ai_prompts", 'Int'>;
    readonly date_created: Prisma.FieldRef<"ai_prompts", 'DateTime'>;
    readonly user_created: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly date_updated: Prisma.FieldRef<"ai_prompts", 'DateTime'>;
    readonly user_updated: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly name: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly status: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly description: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly system_prompt: Prisma.FieldRef<"ai_prompts", 'String'>;
    readonly messages: Prisma.FieldRef<"ai_prompts", 'Json'>;
}
/**
 * ai_prompts findUnique
 */
export type ai_promptsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter, which ai_prompts to fetch.
     */
    where: Prisma.ai_promptsWhereUniqueInput;
};
/**
 * ai_prompts findUniqueOrThrow
 */
export type ai_promptsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter, which ai_prompts to fetch.
     */
    where: Prisma.ai_promptsWhereUniqueInput;
};
/**
 * ai_prompts findFirst
 */
export type ai_promptsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter, which ai_prompts to fetch.
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of ai_prompts to fetch.
     */
    orderBy?: Prisma.ai_promptsOrderByWithRelationInput | Prisma.ai_promptsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for ai_prompts.
     */
    cursor?: Prisma.ai_promptsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` ai_prompts from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` ai_prompts.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of ai_prompts.
     */
    distinct?: Prisma.Ai_promptsScalarFieldEnum | Prisma.Ai_promptsScalarFieldEnum[];
};
/**
 * ai_prompts findFirstOrThrow
 */
export type ai_promptsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter, which ai_prompts to fetch.
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of ai_prompts to fetch.
     */
    orderBy?: Prisma.ai_promptsOrderByWithRelationInput | Prisma.ai_promptsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for ai_prompts.
     */
    cursor?: Prisma.ai_promptsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` ai_prompts from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` ai_prompts.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of ai_prompts.
     */
    distinct?: Prisma.Ai_promptsScalarFieldEnum | Prisma.Ai_promptsScalarFieldEnum[];
};
/**
 * ai_prompts findMany
 */
export type ai_promptsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter, which ai_prompts to fetch.
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of ai_prompts to fetch.
     */
    orderBy?: Prisma.ai_promptsOrderByWithRelationInput | Prisma.ai_promptsOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing ai_prompts.
     */
    cursor?: Prisma.ai_promptsWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` ai_prompts from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` ai_prompts.
     */
    skip?: number;
    distinct?: Prisma.Ai_promptsScalarFieldEnum | Prisma.Ai_promptsScalarFieldEnum[];
};
/**
 * ai_prompts create
 */
export type ai_promptsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * The data needed to create a ai_prompts.
     */
    data: Prisma.XOR<Prisma.ai_promptsCreateInput, Prisma.ai_promptsUncheckedCreateInput>;
};
/**
 * ai_prompts createMany
 */
export type ai_promptsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many ai_prompts.
     */
    data: Prisma.ai_promptsCreateManyInput | Prisma.ai_promptsCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * ai_prompts createManyAndReturn
 */
export type ai_promptsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * The data used to create many ai_prompts.
     */
    data: Prisma.ai_promptsCreateManyInput | Prisma.ai_promptsCreateManyInput[];
    skipDuplicates?: boolean;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
 * ai_prompts update
 */
export type ai_promptsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * The data needed to update a ai_prompts.
     */
    data: Prisma.XOR<Prisma.ai_promptsUpdateInput, Prisma.ai_promptsUncheckedUpdateInput>;
    /**
     * Choose, which ai_prompts to update.
     */
    where: Prisma.ai_promptsWhereUniqueInput;
};
/**
 * ai_prompts updateMany
 */
export type ai_promptsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update ai_prompts.
     */
    data: Prisma.XOR<Prisma.ai_promptsUpdateManyMutationInput, Prisma.ai_promptsUncheckedUpdateManyInput>;
    /**
     * Filter which ai_prompts to update
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * Limit how many ai_prompts to update.
     */
    limit?: number;
};
/**
 * ai_prompts updateManyAndReturn
 */
export type ai_promptsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * The data used to update ai_prompts.
     */
    data: Prisma.XOR<Prisma.ai_promptsUpdateManyMutationInput, Prisma.ai_promptsUncheckedUpdateManyInput>;
    /**
     * Filter which ai_prompts to update
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * Limit how many ai_prompts to update.
     */
    limit?: number;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
 * ai_prompts upsert
 */
export type ai_promptsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * The filter to search for the ai_prompts to update in case it exists.
     */
    where: Prisma.ai_promptsWhereUniqueInput;
    /**
     * In case the ai_prompts found by the `where` argument doesn't exist, create a new ai_prompts with this data.
     */
    create: Prisma.XOR<Prisma.ai_promptsCreateInput, Prisma.ai_promptsUncheckedCreateInput>;
    /**
     * In case the ai_prompts was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.ai_promptsUpdateInput, Prisma.ai_promptsUncheckedUpdateInput>;
};
/**
 * ai_prompts delete
 */
export type ai_promptsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
    /**
     * Filter which ai_prompts to delete.
     */
    where: Prisma.ai_promptsWhereUniqueInput;
};
/**
 * ai_prompts deleteMany
 */
export type ai_promptsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which ai_prompts to delete
     */
    where?: Prisma.ai_promptsWhereInput;
    /**
     * Limit how many ai_prompts to delete.
     */
    limit?: number;
};
/**
 * ai_prompts.directus_users_ai_prompts_user_createdTodirectus_users
 */
export type ai_prompts$directus_users_ai_prompts_user_createdTodirectus_usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_users
     */
    select?: Prisma.directus_usersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_users
     */
    omit?: Prisma.directus_usersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_usersInclude<ExtArgs> | null;
    where?: Prisma.directus_usersWhereInput;
};
/**
 * ai_prompts.directus_users_ai_prompts_user_updatedTodirectus_users
 */
export type ai_prompts$directus_users_ai_prompts_user_updatedTodirectus_usersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the directus_users
     */
    select?: Prisma.directus_usersSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the directus_users
     */
    omit?: Prisma.directus_usersOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.directus_usersInclude<ExtArgs> | null;
    where?: Prisma.directus_usersWhereInput;
};
/**
 * ai_prompts without action
 */
export type ai_promptsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the ai_prompts
     */
    select?: Prisma.ai_promptsSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the ai_prompts
     */
    omit?: Prisma.ai_promptsOmit<ExtArgs> | null;
    /**
     * Choose, which related nodes to fetch as well
     */
    include?: Prisma.ai_promptsInclude<ExtArgs> | null;
};
export {};
