
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `bot_api_keys` model and its related types.
 *
 * 🟢 You can import this file directly.
 */
import type * as runtime from "@prisma/client/runtime/client"
import type * as $Enums from "../enums.js"
import type * as Prisma from "../internal/prismaNamespace.js"

/**
 * Model bot_api_keys
 * 
 */
export type bot_api_keysModel = runtime.Types.Result.DefaultSelection<Prisma.$bot_api_keysPayload>

export type AggregateBot_api_keys = {
  _count: Bot_api_keysCountAggregateOutputType | null
  _min: Bot_api_keysMinAggregateOutputType | null
  _max: Bot_api_keysMaxAggregateOutputType | null
}

export type Bot_api_keysMinAggregateOutputType = {
  app_id: string | null
  gemini_api_key: string | null
  openai_api_key: string | null
  xai_api_key: string | null
  created_at: Date | null
}

export type Bot_api_keysMaxAggregateOutputType = {
  app_id: string | null
  gemini_api_key: string | null
  openai_api_key: string | null
  xai_api_key: string | null
  created_at: Date | null
}

export type Bot_api_keysCountAggregateOutputType = {
  app_id: number
  gemini_api_key: number
  openai_api_key: number
  xai_api_key: number
  created_at: number
  _all: number
}


export type Bot_api_keysMinAggregateInputType = {
  app_id?: true
  gemini_api_key?: true
  openai_api_key?: true
  xai_api_key?: true
  created_at?: true
}

export type Bot_api_keysMaxAggregateInputType = {
  app_id?: true
  gemini_api_key?: true
  openai_api_key?: true
  xai_api_key?: true
  created_at?: true
}

export type Bot_api_keysCountAggregateInputType = {
  app_id?: true
  gemini_api_key?: true
  openai_api_key?: true
  xai_api_key?: true
  created_at?: true
  _all?: true
}

export type Bot_api_keysAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which bot_api_keys to aggregate.
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of bot_api_keys to fetch.
   */
  orderBy?: Prisma.bot_api_keysOrderByWithRelationInput | Prisma.bot_api_keysOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.bot_api_keysWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` bot_api_keys 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` bot_api_keys.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned bot_api_keys
  **/
  _count?: true | Bot_api_keysCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: Bot_api_keysMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: Bot_api_keysMaxAggregateInputType
}

export type GetBot_api_keysAggregateType<T extends Bot_api_keysAggregateArgs> = {
      [P in keyof T & keyof AggregateBot_api_keys]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateBot_api_keys[P]>
    : Prisma.GetScalarType<T[P], AggregateBot_api_keys[P]>
}




export type bot_api_keysGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.bot_api_keysWhereInput
  orderBy?: Prisma.bot_api_keysOrderByWithAggregationInput | Prisma.bot_api_keysOrderByWithAggregationInput[]
  by: Prisma.Bot_api_keysScalarFieldEnum[] | Prisma.Bot_api_keysScalarFieldEnum
  having?: Prisma.bot_api_keysScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Bot_api_keysCountAggregateInputType | true
  _min?: Bot_api_keysMinAggregateInputType
  _max?: Bot_api_keysMaxAggregateInputType
}

export type Bot_api_keysGroupByOutputType = {
  app_id: string
  gemini_api_key: string | null
  openai_api_key: string | null
  xai_api_key: string | null
  created_at: Date | null
  _count: Bot_api_keysCountAggregateOutputType | null
  _min: Bot_api_keysMinAggregateOutputType | null
  _max: Bot_api_keysMaxAggregateOutputType | null
}

type GetBot_api_keysGroupByPayload<T extends bot_api_keysGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<Bot_api_keysGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof Bot_api_keysGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], Bot_api_keysGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], Bot_api_keysGroupByOutputType[P]>
      }
    >
  >



export type bot_api_keysWhereInput = {
  AND?: Prisma.bot_api_keysWhereInput | Prisma.bot_api_keysWhereInput[]
  OR?: Prisma.bot_api_keysWhereInput[]
  NOT?: Prisma.bot_api_keysWhereInput | Prisma.bot_api_keysWhereInput[]
  app_id?: Prisma.StringFilter<"bot_api_keys"> | string
  gemini_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  openai_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  xai_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"bot_api_keys"> | Date | string | null
  bot?: Prisma.XOR<Prisma.Bot_tokensScalarRelationFilter, Prisma.bot_tokensWhereInput>
}

export type bot_api_keysOrderByWithRelationInput = {
  app_id?: Prisma.SortOrder
  gemini_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  openai_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  xai_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  bot?: Prisma.bot_tokensOrderByWithRelationInput
}

export type bot_api_keysWhereUniqueInput = Prisma.AtLeast<{
  app_id?: string
  AND?: Prisma.bot_api_keysWhereInput | Prisma.bot_api_keysWhereInput[]
  OR?: Prisma.bot_api_keysWhereInput[]
  NOT?: Prisma.bot_api_keysWhereInput | Prisma.bot_api_keysWhereInput[]
  gemini_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  openai_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  xai_api_key?: Prisma.StringNullableFilter<"bot_api_keys"> | string | null
  created_at?: Prisma.DateTimeNullableFilter<"bot_api_keys"> | Date | string | null
  bot?: Prisma.XOR<Prisma.Bot_tokensScalarRelationFilter, Prisma.bot_tokensWhereInput>
}, "app_id">

export type bot_api_keysOrderByWithAggregationInput = {
  app_id?: Prisma.SortOrder
  gemini_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  openai_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  xai_api_key?: Prisma.SortOrderInput | Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.bot_api_keysCountOrderByAggregateInput
  _max?: Prisma.bot_api_keysMaxOrderByAggregateInput
  _min?: Prisma.bot_api_keysMinOrderByAggregateInput
}

export type bot_api_keysScalarWhereWithAggregatesInput = {
  AND?: Prisma.bot_api_keysScalarWhereWithAggregatesInput | Prisma.bot_api_keysScalarWhereWithAggregatesInput[]
  OR?: Prisma.bot_api_keysScalarWhereWithAggregatesInput[]
  NOT?: Prisma.bot_api_keysScalarWhereWithAggregatesInput | Prisma.bot_api_keysScalarWhereWithAggregatesInput[]
  app_id?: Prisma.StringWithAggregatesFilter<"bot_api_keys"> | string
  gemini_api_key?: Prisma.StringNullableWithAggregatesFilter<"bot_api_keys"> | string | null
  openai_api_key?: Prisma.StringNullableWithAggregatesFilter<"bot_api_keys"> | string | null
  xai_api_key?: Prisma.StringNullableWithAggregatesFilter<"bot_api_keys"> | string | null
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"bot_api_keys"> | Date | string | null
}

export type bot_api_keysCreateInput = {
  gemini_api_key?: string | null
  openai_api_key?: string | null
  xai_api_key?: string | null
  created_at?: Date | string | null
  bot: Prisma.bot_tokensCreateNestedOneWithoutApi_keysInput
}

export type bot_api_keysUncheckedCreateInput = {
  app_id: string
  gemini_api_key?: string | null
  openai_api_key?: string | null
  xai_api_key?: string | null
  created_at?: Date | string | null
}

export type bot_api_keysUpdateInput = {
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  bot?: Prisma.bot_tokensUpdateOneRequiredWithoutApi_keysNestedInput
}

export type bot_api_keysUncheckedUpdateInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type bot_api_keysCreateManyInput = {
  app_id: string
  gemini_api_key?: string | null
  openai_api_key?: string | null
  xai_api_key?: string | null
  created_at?: Date | string | null
}

export type bot_api_keysUpdateManyMutationInput = {
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type bot_api_keysUncheckedUpdateManyInput = {
  app_id?: Prisma.StringFieldUpdateOperationsInput | string
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type Bot_api_keysNullableScalarRelationFilter = {
  is?: Prisma.bot_api_keysWhereInput | null
  isNot?: Prisma.bot_api_keysWhereInput | null
}

export type bot_api_keysCountOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  gemini_api_key?: Prisma.SortOrder
  openai_api_key?: Prisma.SortOrder
  xai_api_key?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type bot_api_keysMaxOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  gemini_api_key?: Prisma.SortOrder
  openai_api_key?: Prisma.SortOrder
  xai_api_key?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type bot_api_keysMinOrderByAggregateInput = {
  app_id?: Prisma.SortOrder
  gemini_api_key?: Prisma.SortOrder
  openai_api_key?: Prisma.SortOrder
  xai_api_key?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type bot_api_keysCreateNestedOneWithoutBotInput = {
  create?: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
  connectOrCreate?: Prisma.bot_api_keysCreateOrConnectWithoutBotInput
  connect?: Prisma.bot_api_keysWhereUniqueInput
}

export type bot_api_keysUncheckedCreateNestedOneWithoutBotInput = {
  create?: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
  connectOrCreate?: Prisma.bot_api_keysCreateOrConnectWithoutBotInput
  connect?: Prisma.bot_api_keysWhereUniqueInput
}

export type bot_api_keysUpdateOneWithoutBotNestedInput = {
  create?: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
  connectOrCreate?: Prisma.bot_api_keysCreateOrConnectWithoutBotInput
  upsert?: Prisma.bot_api_keysUpsertWithoutBotInput
  disconnect?: Prisma.bot_api_keysWhereInput | boolean
  delete?: Prisma.bot_api_keysWhereInput | boolean
  connect?: Prisma.bot_api_keysWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.bot_api_keysUpdateToOneWithWhereWithoutBotInput, Prisma.bot_api_keysUpdateWithoutBotInput>, Prisma.bot_api_keysUncheckedUpdateWithoutBotInput>
}

export type bot_api_keysUncheckedUpdateOneWithoutBotNestedInput = {
  create?: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
  connectOrCreate?: Prisma.bot_api_keysCreateOrConnectWithoutBotInput
  upsert?: Prisma.bot_api_keysUpsertWithoutBotInput
  disconnect?: Prisma.bot_api_keysWhereInput | boolean
  delete?: Prisma.bot_api_keysWhereInput | boolean
  connect?: Prisma.bot_api_keysWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.bot_api_keysUpdateToOneWithWhereWithoutBotInput, Prisma.bot_api_keysUpdateWithoutBotInput>, Prisma.bot_api_keysUncheckedUpdateWithoutBotInput>
}

export type bot_api_keysCreateWithoutBotInput = {
  gemini_api_key?: string | null
  openai_api_key?: string | null
  xai_api_key?: string | null
  created_at?: Date | string | null
}

export type bot_api_keysUncheckedCreateWithoutBotInput = {
  gemini_api_key?: string | null
  openai_api_key?: string | null
  xai_api_key?: string | null
  created_at?: Date | string | null
}

export type bot_api_keysCreateOrConnectWithoutBotInput = {
  where: Prisma.bot_api_keysWhereUniqueInput
  create: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
}

export type bot_api_keysUpsertWithoutBotInput = {
  update: Prisma.XOR<Prisma.bot_api_keysUpdateWithoutBotInput, Prisma.bot_api_keysUncheckedUpdateWithoutBotInput>
  create: Prisma.XOR<Prisma.bot_api_keysCreateWithoutBotInput, Prisma.bot_api_keysUncheckedCreateWithoutBotInput>
  where?: Prisma.bot_api_keysWhereInput
}

export type bot_api_keysUpdateToOneWithWhereWithoutBotInput = {
  where?: Prisma.bot_api_keysWhereInput
  data: Prisma.XOR<Prisma.bot_api_keysUpdateWithoutBotInput, Prisma.bot_api_keysUncheckedUpdateWithoutBotInput>
}

export type bot_api_keysUpdateWithoutBotInput = {
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type bot_api_keysUncheckedUpdateWithoutBotInput = {
  gemini_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  openai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  xai_api_key?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}



export type bot_api_keysSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  gemini_api_key?: boolean
  openai_api_key?: boolean
  xai_api_key?: boolean
  created_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bot_api_keys"]>

export type bot_api_keysSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  gemini_api_key?: boolean
  openai_api_key?: boolean
  xai_api_key?: boolean
  created_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bot_api_keys"]>

export type bot_api_keysSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  app_id?: boolean
  gemini_api_key?: boolean
  openai_api_key?: boolean
  xai_api_key?: boolean
  created_at?: boolean
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bot_api_keys"]>

export type bot_api_keysSelectScalar = {
  app_id?: boolean
  gemini_api_key?: boolean
  openai_api_key?: boolean
  xai_api_key?: boolean
  created_at?: boolean
}

export type bot_api_keysOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"app_id" | "gemini_api_key" | "openai_api_key" | "xai_api_key" | "created_at", ExtArgs["result"]["bot_api_keys"]>
export type bot_api_keysInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}
export type bot_api_keysIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}
export type bot_api_keysIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  bot?: boolean | Prisma.bot_tokensDefaultArgs<ExtArgs>
}

export type $bot_api_keysPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "bot_api_keys"
  objects: {
    bot: Prisma.$bot_tokensPayload<ExtArgs>
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    app_id: string
    gemini_api_key: string | null
    openai_api_key: string | null
    xai_api_key: string | null
    created_at: Date | null
  }, ExtArgs["result"]["bot_api_keys"]>
  composites: {}
}

export type bot_api_keysGetPayload<S extends boolean | null | undefined | bot_api_keysDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload, S>

export type bot_api_keysCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<bot_api_keysFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: Bot_api_keysCountAggregateInputType | true
  }

export interface bot_api_keysDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['bot_api_keys'], meta: { name: 'bot_api_keys' } }
  /**
   * Find zero or one Bot_api_keys that matches the filter.
   * @param {bot_api_keysFindUniqueArgs} args - Arguments to find a Bot_api_keys
   * @example
   * // Get one Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends bot_api_keysFindUniqueArgs>(args: Prisma.SelectSubset<T, bot_api_keysFindUniqueArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one Bot_api_keys that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {bot_api_keysFindUniqueOrThrowArgs} args - Arguments to find a Bot_api_keys
   * @example
   * // Get one Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends bot_api_keysFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, bot_api_keysFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Bot_api_keys 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 {bot_api_keysFindFirstArgs} args - Arguments to find a Bot_api_keys
   * @example
   * // Get one Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends bot_api_keysFindFirstArgs>(args?: Prisma.SelectSubset<T, bot_api_keysFindFirstArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first Bot_api_keys 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 {bot_api_keysFindFirstOrThrowArgs} args - Arguments to find a Bot_api_keys
   * @example
   * // Get one Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends bot_api_keysFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, bot_api_keysFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more Bot_api_keys 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 {bot_api_keysFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findMany()
   * 
   * // Get first 10 Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.findMany({ take: 10 })
   * 
   * // Only select the `app_id`
   * const bot_api_keysWithApp_idOnly = await prisma.bot_api_keys.findMany({ select: { app_id: true } })
   * 
   */
  findMany<T extends bot_api_keysFindManyArgs>(args?: Prisma.SelectSubset<T, bot_api_keysFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a Bot_api_keys.
   * @param {bot_api_keysCreateArgs} args - Arguments to create a Bot_api_keys.
   * @example
   * // Create one Bot_api_keys
   * const Bot_api_keys = await prisma.bot_api_keys.create({
   *   data: {
   *     // ... data to create a Bot_api_keys
   *   }
   * })
   * 
   */
  create<T extends bot_api_keysCreateArgs>(args: Prisma.SelectSubset<T, bot_api_keysCreateArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many Bot_api_keys.
   * @param {bot_api_keysCreateManyArgs} args - Arguments to create many Bot_api_keys.
   * @example
   * // Create many Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends bot_api_keysCreateManyArgs>(args?: Prisma.SelectSubset<T, bot_api_keysCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many Bot_api_keys and returns the data saved in the database.
   * @param {bot_api_keysCreateManyAndReturnArgs} args - Arguments to create many Bot_api_keys.
   * @example
   * // Create many Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many Bot_api_keys and only return the `app_id`
   * const bot_api_keysWithApp_idOnly = await prisma.bot_api_keys.createManyAndReturn({
   *   select: { app_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 bot_api_keysCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, bot_api_keysCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a Bot_api_keys.
   * @param {bot_api_keysDeleteArgs} args - Arguments to delete one Bot_api_keys.
   * @example
   * // Delete one Bot_api_keys
   * const Bot_api_keys = await prisma.bot_api_keys.delete({
   *   where: {
   *     // ... filter to delete one Bot_api_keys
   *   }
   * })
   * 
   */
  delete<T extends bot_api_keysDeleteArgs>(args: Prisma.SelectSubset<T, bot_api_keysDeleteArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one Bot_api_keys.
   * @param {bot_api_keysUpdateArgs} args - Arguments to update one Bot_api_keys.
   * @example
   * // Update one Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends bot_api_keysUpdateArgs>(args: Prisma.SelectSubset<T, bot_api_keysUpdateArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more Bot_api_keys.
   * @param {bot_api_keysDeleteManyArgs} args - Arguments to filter Bot_api_keys to delete.
   * @example
   * // Delete a few Bot_api_keys
   * const { count } = await prisma.bot_api_keys.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends bot_api_keysDeleteManyArgs>(args?: Prisma.SelectSubset<T, bot_api_keysDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Bot_api_keys.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {bot_api_keysUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends bot_api_keysUpdateManyArgs>(args: Prisma.SelectSubset<T, bot_api_keysUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more Bot_api_keys and returns the data updated in the database.
   * @param {bot_api_keysUpdateManyAndReturnArgs} args - Arguments to update many Bot_api_keys.
   * @example
   * // Update many Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more Bot_api_keys and only return the `app_id`
   * const bot_api_keysWithApp_idOnly = await prisma.bot_api_keys.updateManyAndReturn({
   *   select: { app_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 bot_api_keysUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, bot_api_keysUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one Bot_api_keys.
   * @param {bot_api_keysUpsertArgs} args - Arguments to update or create a Bot_api_keys.
   * @example
   * // Update or create a Bot_api_keys
   * const bot_api_keys = await prisma.bot_api_keys.upsert({
   *   create: {
   *     // ... data to create a Bot_api_keys
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the Bot_api_keys we want to update
   *   }
   * })
   */
  upsert<T extends bot_api_keysUpsertArgs>(args: Prisma.SelectSubset<T, bot_api_keysUpsertArgs<ExtArgs>>): Prisma.Prisma__bot_api_keysClient<runtime.Types.Result.GetResult<Prisma.$bot_api_keysPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of Bot_api_keys.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {bot_api_keysCountArgs} args - Arguments to filter Bot_api_keys to count.
   * @example
   * // Count the number of Bot_api_keys
   * const count = await prisma.bot_api_keys.count({
   *   where: {
   *     // ... the filter for the Bot_api_keys we want to count
   *   }
   * })
  **/
  count<T extends bot_api_keysCountArgs>(
    args?: Prisma.Subset<T, bot_api_keysCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], Bot_api_keysCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a Bot_api_keys.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {Bot_api_keysAggregateArgs} 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 Bot_api_keysAggregateArgs>(args: Prisma.Subset<T, Bot_api_keysAggregateArgs>): Prisma.PrismaPromise<GetBot_api_keysAggregateType<T>>

  /**
   * Group by Bot_api_keys.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {bot_api_keysGroupByArgs} 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 bot_api_keysGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: bot_api_keysGroupByArgs['orderBy'] }
      : { orderBy?: bot_api_keysGroupByArgs['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, bot_api_keysGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBot_api_keysGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the bot_api_keys model
 */
readonly fields: bot_api_keysFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for bot_api_keys.
 * 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__bot_api_keysClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  bot<T extends Prisma.bot_tokensDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.bot_tokensDefaultArgs<ExtArgs>>): Prisma.Prisma__bot_tokensClient<runtime.Types.Result.GetResult<Prisma.$bot_tokensPayload<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 bot_api_keys model
 */
export interface bot_api_keysFieldRefs {
  readonly app_id: Prisma.FieldRef<"bot_api_keys", 'String'>
  readonly gemini_api_key: Prisma.FieldRef<"bot_api_keys", 'String'>
  readonly openai_api_key: Prisma.FieldRef<"bot_api_keys", 'String'>
  readonly xai_api_key: Prisma.FieldRef<"bot_api_keys", 'String'>
  readonly created_at: Prisma.FieldRef<"bot_api_keys", 'DateTime'>
}
    

// Custom InputTypes
/**
 * bot_api_keys findUnique
 */
export type bot_api_keysFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter, which bot_api_keys to fetch.
   */
  where: Prisma.bot_api_keysWhereUniqueInput
}

/**
 * bot_api_keys findUniqueOrThrow
 */
export type bot_api_keysFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter, which bot_api_keys to fetch.
   */
  where: Prisma.bot_api_keysWhereUniqueInput
}

/**
 * bot_api_keys findFirst
 */
export type bot_api_keysFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter, which bot_api_keys to fetch.
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of bot_api_keys to fetch.
   */
  orderBy?: Prisma.bot_api_keysOrderByWithRelationInput | Prisma.bot_api_keysOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for bot_api_keys.
   */
  cursor?: Prisma.bot_api_keysWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` bot_api_keys 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` bot_api_keys.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of bot_api_keys.
   */
  distinct?: Prisma.Bot_api_keysScalarFieldEnum | Prisma.Bot_api_keysScalarFieldEnum[]
}

/**
 * bot_api_keys findFirstOrThrow
 */
export type bot_api_keysFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter, which bot_api_keys to fetch.
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of bot_api_keys to fetch.
   */
  orderBy?: Prisma.bot_api_keysOrderByWithRelationInput | Prisma.bot_api_keysOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for bot_api_keys.
   */
  cursor?: Prisma.bot_api_keysWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` bot_api_keys 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` bot_api_keys.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of bot_api_keys.
   */
  distinct?: Prisma.Bot_api_keysScalarFieldEnum | Prisma.Bot_api_keysScalarFieldEnum[]
}

/**
 * bot_api_keys findMany
 */
export type bot_api_keysFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter, which bot_api_keys to fetch.
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of bot_api_keys to fetch.
   */
  orderBy?: Prisma.bot_api_keysOrderByWithRelationInput | Prisma.bot_api_keysOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing bot_api_keys.
   */
  cursor?: Prisma.bot_api_keysWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` bot_api_keys 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` bot_api_keys.
   */
  skip?: number
  distinct?: Prisma.Bot_api_keysScalarFieldEnum | Prisma.Bot_api_keysScalarFieldEnum[]
}

/**
 * bot_api_keys create
 */
export type bot_api_keysCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * The data needed to create a bot_api_keys.
   */
  data: Prisma.XOR<Prisma.bot_api_keysCreateInput, Prisma.bot_api_keysUncheckedCreateInput>
}

/**
 * bot_api_keys createMany
 */
export type bot_api_keysCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many bot_api_keys.
   */
  data: Prisma.bot_api_keysCreateManyInput | Prisma.bot_api_keysCreateManyInput[]
}

/**
 * bot_api_keys createManyAndReturn
 */
export type bot_api_keysCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * The data used to create many bot_api_keys.
   */
  data: Prisma.bot_api_keysCreateManyInput | Prisma.bot_api_keysCreateManyInput[]
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * bot_api_keys update
 */
export type bot_api_keysUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * The data needed to update a bot_api_keys.
   */
  data: Prisma.XOR<Prisma.bot_api_keysUpdateInput, Prisma.bot_api_keysUncheckedUpdateInput>
  /**
   * Choose, which bot_api_keys to update.
   */
  where: Prisma.bot_api_keysWhereUniqueInput
}

/**
 * bot_api_keys updateMany
 */
export type bot_api_keysUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update bot_api_keys.
   */
  data: Prisma.XOR<Prisma.bot_api_keysUpdateManyMutationInput, Prisma.bot_api_keysUncheckedUpdateManyInput>
  /**
   * Filter which bot_api_keys to update
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * Limit how many bot_api_keys to update.
   */
  limit?: number
}

/**
 * bot_api_keys updateManyAndReturn
 */
export type bot_api_keysUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * The data used to update bot_api_keys.
   */
  data: Prisma.XOR<Prisma.bot_api_keysUpdateManyMutationInput, Prisma.bot_api_keysUncheckedUpdateManyInput>
  /**
   * Filter which bot_api_keys to update
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * Limit how many bot_api_keys to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * bot_api_keys upsert
 */
export type bot_api_keysUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * The filter to search for the bot_api_keys to update in case it exists.
   */
  where: Prisma.bot_api_keysWhereUniqueInput
  /**
   * In case the bot_api_keys found by the `where` argument doesn't exist, create a new bot_api_keys with this data.
   */
  create: Prisma.XOR<Prisma.bot_api_keysCreateInput, Prisma.bot_api_keysUncheckedCreateInput>
  /**
   * In case the bot_api_keys was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.bot_api_keysUpdateInput, Prisma.bot_api_keysUncheckedUpdateInput>
}

/**
 * bot_api_keys delete
 */
export type bot_api_keysDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
  /**
   * Filter which bot_api_keys to delete.
   */
  where: Prisma.bot_api_keysWhereUniqueInput
}

/**
 * bot_api_keys deleteMany
 */
export type bot_api_keysDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which bot_api_keys to delete
   */
  where?: Prisma.bot_api_keysWhereInput
  /**
   * Limit how many bot_api_keys to delete.
   */
  limit?: number
}

/**
 * bot_api_keys without action
 */
export type bot_api_keysDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the bot_api_keys
   */
  select?: Prisma.bot_api_keysSelect<ExtArgs> | null
  /**
   * Omit specific fields from the bot_api_keys
   */
  omit?: Prisma.bot_api_keysOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.bot_api_keysInclude<ExtArgs> | null
}
