
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `channel_directories` 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 channel_directories
 * 
 */
export type channel_directoriesModel = runtime.Types.Result.DefaultSelection<Prisma.$channel_directoriesPayload>

export type AggregateChannel_directories = {
  _count: Channel_directoriesCountAggregateOutputType | null
  _min: Channel_directoriesMinAggregateOutputType | null
  _max: Channel_directoriesMaxAggregateOutputType | null
}

export type Channel_directoriesMinAggregateOutputType = {
  channel_id: string | null
  directory: string | null
  channel_type: $Enums.ChannelType | null
  created_at: Date | null
}

export type Channel_directoriesMaxAggregateOutputType = {
  channel_id: string | null
  directory: string | null
  channel_type: $Enums.ChannelType | null
  created_at: Date | null
}

export type Channel_directoriesCountAggregateOutputType = {
  channel_id: number
  directory: number
  channel_type: number
  created_at: number
  _all: number
}


export type Channel_directoriesMinAggregateInputType = {
  channel_id?: true
  directory?: true
  channel_type?: true
  created_at?: true
}

export type Channel_directoriesMaxAggregateInputType = {
  channel_id?: true
  directory?: true
  channel_type?: true
  created_at?: true
}

export type Channel_directoriesCountAggregateInputType = {
  channel_id?: true
  directory?: true
  channel_type?: true
  created_at?: true
  _all?: true
}

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

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




export type channel_directoriesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.channel_directoriesWhereInput
  orderBy?: Prisma.channel_directoriesOrderByWithAggregationInput | Prisma.channel_directoriesOrderByWithAggregationInput[]
  by: Prisma.Channel_directoriesScalarFieldEnum[] | Prisma.Channel_directoriesScalarFieldEnum
  having?: Prisma.channel_directoriesScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: Channel_directoriesCountAggregateInputType | true
  _min?: Channel_directoriesMinAggregateInputType
  _max?: Channel_directoriesMaxAggregateInputType
}

export type Channel_directoriesGroupByOutputType = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at: Date | null
  _count: Channel_directoriesCountAggregateOutputType | null
  _min: Channel_directoriesMinAggregateOutputType | null
  _max: Channel_directoriesMaxAggregateOutputType | null
}

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



export type channel_directoriesWhereInput = {
  AND?: Prisma.channel_directoriesWhereInput | Prisma.channel_directoriesWhereInput[]
  OR?: Prisma.channel_directoriesWhereInput[]
  NOT?: Prisma.channel_directoriesWhereInput | Prisma.channel_directoriesWhereInput[]
  channel_id?: Prisma.StringFilter<"channel_directories"> | string
  directory?: Prisma.StringFilter<"channel_directories"> | string
  channel_type?: Prisma.EnumChannelTypeFilter<"channel_directories"> | $Enums.ChannelType
  created_at?: Prisma.DateTimeNullableFilter<"channel_directories"> | Date | string | null
  channel_model?: Prisma.XOR<Prisma.Channel_modelsNullableScalarRelationFilter, Prisma.channel_modelsWhereInput> | null
  channel_agent?: Prisma.XOR<Prisma.Channel_agentsNullableScalarRelationFilter, Prisma.channel_agentsWhereInput> | null
  channel_worktree?: Prisma.XOR<Prisma.Channel_worktreesNullableScalarRelationFilter, Prisma.channel_worktreesWhereInput> | null
  channel_verbosity?: Prisma.XOR<Prisma.Channel_verbosityNullableScalarRelationFilter, Prisma.channel_verbosityWhereInput> | null
  channel_mention_mode?: Prisma.XOR<Prisma.Channel_mention_modeNullableScalarRelationFilter, Prisma.channel_mention_modeWhereInput> | null
  scheduled_tasks?: Prisma.Scheduled_tasksListRelationFilter
}

export type channel_directoriesOrderByWithRelationInput = {
  channel_id?: Prisma.SortOrder
  directory?: Prisma.SortOrder
  channel_type?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  channel_model?: Prisma.channel_modelsOrderByWithRelationInput
  channel_agent?: Prisma.channel_agentsOrderByWithRelationInput
  channel_worktree?: Prisma.channel_worktreesOrderByWithRelationInput
  channel_verbosity?: Prisma.channel_verbosityOrderByWithRelationInput
  channel_mention_mode?: Prisma.channel_mention_modeOrderByWithRelationInput
  scheduled_tasks?: Prisma.scheduled_tasksOrderByRelationAggregateInput
}

export type channel_directoriesWhereUniqueInput = Prisma.AtLeast<{
  channel_id?: string
  AND?: Prisma.channel_directoriesWhereInput | Prisma.channel_directoriesWhereInput[]
  OR?: Prisma.channel_directoriesWhereInput[]
  NOT?: Prisma.channel_directoriesWhereInput | Prisma.channel_directoriesWhereInput[]
  directory?: Prisma.StringFilter<"channel_directories"> | string
  channel_type?: Prisma.EnumChannelTypeFilter<"channel_directories"> | $Enums.ChannelType
  created_at?: Prisma.DateTimeNullableFilter<"channel_directories"> | Date | string | null
  channel_model?: Prisma.XOR<Prisma.Channel_modelsNullableScalarRelationFilter, Prisma.channel_modelsWhereInput> | null
  channel_agent?: Prisma.XOR<Prisma.Channel_agentsNullableScalarRelationFilter, Prisma.channel_agentsWhereInput> | null
  channel_worktree?: Prisma.XOR<Prisma.Channel_worktreesNullableScalarRelationFilter, Prisma.channel_worktreesWhereInput> | null
  channel_verbosity?: Prisma.XOR<Prisma.Channel_verbosityNullableScalarRelationFilter, Prisma.channel_verbosityWhereInput> | null
  channel_mention_mode?: Prisma.XOR<Prisma.Channel_mention_modeNullableScalarRelationFilter, Prisma.channel_mention_modeWhereInput> | null
  scheduled_tasks?: Prisma.Scheduled_tasksListRelationFilter
}, "channel_id">

export type channel_directoriesOrderByWithAggregationInput = {
  channel_id?: Prisma.SortOrder
  directory?: Prisma.SortOrder
  channel_type?: Prisma.SortOrder
  created_at?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.channel_directoriesCountOrderByAggregateInput
  _max?: Prisma.channel_directoriesMaxOrderByAggregateInput
  _min?: Prisma.channel_directoriesMinOrderByAggregateInput
}

export type channel_directoriesScalarWhereWithAggregatesInput = {
  AND?: Prisma.channel_directoriesScalarWhereWithAggregatesInput | Prisma.channel_directoriesScalarWhereWithAggregatesInput[]
  OR?: Prisma.channel_directoriesScalarWhereWithAggregatesInput[]
  NOT?: Prisma.channel_directoriesScalarWhereWithAggregatesInput | Prisma.channel_directoriesScalarWhereWithAggregatesInput[]
  channel_id?: Prisma.StringWithAggregatesFilter<"channel_directories"> | string
  directory?: Prisma.StringWithAggregatesFilter<"channel_directories"> | string
  channel_type?: Prisma.EnumChannelTypeWithAggregatesFilter<"channel_directories"> | $Enums.ChannelType
  created_at?: Prisma.DateTimeNullableWithAggregatesFilter<"channel_directories"> | Date | string | null
}

export type channel_directoriesCreateInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUpdateInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateManyInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
}

export type channel_directoriesUpdateManyMutationInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_directoriesUncheckedUpdateManyInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type channel_directoriesCountOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  directory?: Prisma.SortOrder
  channel_type?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type channel_directoriesMaxOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  directory?: Prisma.SortOrder
  channel_type?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type channel_directoriesMinOrderByAggregateInput = {
  channel_id?: Prisma.SortOrder
  directory?: Prisma.SortOrder
  channel_type?: Prisma.SortOrder
  created_at?: Prisma.SortOrder
}

export type Channel_directoriesScalarRelationFilter = {
  is?: Prisma.channel_directoriesWhereInput
  isNot?: Prisma.channel_directoriesWhereInput
}

export type Channel_directoriesNullableScalarRelationFilter = {
  is?: Prisma.channel_directoriesWhereInput | null
  isNot?: Prisma.channel_directoriesWhereInput | null
}

export type EnumChannelTypeFieldUpdateOperationsInput = {
  set?: $Enums.ChannelType
}

export type channel_directoriesCreateNestedOneWithoutChannel_modelInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_modelInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_modelInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneRequiredWithoutChannel_modelNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_modelInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_modelInput
  upsert?: Prisma.channel_directoriesUpsertWithoutChannel_modelInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutChannel_modelInput, Prisma.channel_directoriesUpdateWithoutChannel_modelInput>, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_modelInput>
}

export type channel_directoriesCreateNestedOneWithoutChannel_agentInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_agentInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_agentInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneRequiredWithoutChannel_agentNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_agentInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_agentInput
  upsert?: Prisma.channel_directoriesUpsertWithoutChannel_agentInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutChannel_agentInput, Prisma.channel_directoriesUpdateWithoutChannel_agentInput>, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_agentInput>
}

export type channel_directoriesCreateNestedOneWithoutChannel_worktreeInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_worktreeInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_worktreeInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneRequiredWithoutChannel_worktreeNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_worktreeInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_worktreeInput
  upsert?: Prisma.channel_directoriesUpsertWithoutChannel_worktreeInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutChannel_worktreeInput, Prisma.channel_directoriesUpdateWithoutChannel_worktreeInput>, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_worktreeInput>
}

export type channel_directoriesCreateNestedOneWithoutChannel_verbosityInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_verbosityInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_verbosityInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneRequiredWithoutChannel_verbosityNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_verbosityInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_verbosityInput
  upsert?: Prisma.channel_directoriesUpsertWithoutChannel_verbosityInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutChannel_verbosityInput, Prisma.channel_directoriesUpdateWithoutChannel_verbosityInput>, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_verbosityInput>
}

export type channel_directoriesCreateNestedOneWithoutChannel_mention_modeInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_mention_modeInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_mention_modeInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneRequiredWithoutChannel_mention_modeNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_mention_modeInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutChannel_mention_modeInput
  upsert?: Prisma.channel_directoriesUpsertWithoutChannel_mention_modeInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutChannel_mention_modeInput, Prisma.channel_directoriesUpdateWithoutChannel_mention_modeInput>, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_mention_modeInput>
}

export type channel_directoriesCreateNestedOneWithoutScheduled_tasksInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedCreateWithoutScheduled_tasksInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutScheduled_tasksInput
  connect?: Prisma.channel_directoriesWhereUniqueInput
}

export type channel_directoriesUpdateOneWithoutScheduled_tasksNestedInput = {
  create?: Prisma.XOR<Prisma.channel_directoriesCreateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedCreateWithoutScheduled_tasksInput>
  connectOrCreate?: Prisma.channel_directoriesCreateOrConnectWithoutScheduled_tasksInput
  upsert?: Prisma.channel_directoriesUpsertWithoutScheduled_tasksInput
  disconnect?: Prisma.channel_directoriesWhereInput | boolean
  delete?: Prisma.channel_directoriesWhereInput | boolean
  connect?: Prisma.channel_directoriesWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.channel_directoriesUpdateToOneWithWhereWithoutScheduled_tasksInput, Prisma.channel_directoriesUpdateWithoutScheduled_tasksInput>, Prisma.channel_directoriesUncheckedUpdateWithoutScheduled_tasksInput>
}

export type channel_directoriesCreateWithoutChannel_modelInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutChannel_modelInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutChannel_modelInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_modelInput>
}

export type channel_directoriesUpsertWithoutChannel_modelInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_modelInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_modelInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutChannel_modelInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_modelInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_modelInput>
}

export type channel_directoriesUpdateWithoutChannel_modelInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutChannel_modelInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateWithoutChannel_agentInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutChannel_agentInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutChannel_agentInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_agentInput>
}

export type channel_directoriesUpsertWithoutChannel_agentInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_agentInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_agentInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutChannel_agentInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_agentInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_agentInput>
}

export type channel_directoriesUpdateWithoutChannel_agentInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutChannel_agentInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateWithoutChannel_worktreeInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutChannel_worktreeInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutChannel_worktreeInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_worktreeInput>
}

export type channel_directoriesUpsertWithoutChannel_worktreeInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_worktreeInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_worktreeInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutChannel_worktreeInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_worktreeInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_worktreeInput>
}

export type channel_directoriesUpdateWithoutChannel_worktreeInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutChannel_worktreeInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateWithoutChannel_verbosityInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutChannel_verbosityInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutChannel_verbosityInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_verbosityInput>
}

export type channel_directoriesUpsertWithoutChannel_verbosityInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_verbosityInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_verbosityInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutChannel_verbosityInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_verbosityInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_verbosityInput>
}

export type channel_directoriesUpdateWithoutChannel_verbosityInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutChannel_verbosityInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateWithoutChannel_mention_modeInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksCreateNestedManyWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutChannel_mention_modeInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedCreateNestedManyWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutChannel_mention_modeInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_mention_modeInput>
}

export type channel_directoriesUpsertWithoutChannel_mention_modeInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_mention_modeInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedCreateWithoutChannel_mention_modeInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutChannel_mention_modeInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutChannel_mention_modeInput, Prisma.channel_directoriesUncheckedUpdateWithoutChannel_mention_modeInput>
}

export type channel_directoriesUpdateWithoutChannel_mention_modeInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutChannel_mention_modeInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  scheduled_tasks?: Prisma.scheduled_tasksUncheckedUpdateManyWithoutChannelNestedInput
}

export type channel_directoriesCreateWithoutScheduled_tasksInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeCreateNestedOneWithoutChannelInput
}

export type channel_directoriesUncheckedCreateWithoutScheduled_tasksInput = {
  channel_id: string
  directory: string
  channel_type: $Enums.ChannelType
  created_at?: Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedCreateNestedOneWithoutChannelInput
  channel_agent?: Prisma.channel_agentsUncheckedCreateNestedOneWithoutChannelInput
  channel_worktree?: Prisma.channel_worktreesUncheckedCreateNestedOneWithoutChannelInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedCreateNestedOneWithoutChannelInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedCreateNestedOneWithoutChannelInput
}

export type channel_directoriesCreateOrConnectWithoutScheduled_tasksInput = {
  where: Prisma.channel_directoriesWhereUniqueInput
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedCreateWithoutScheduled_tasksInput>
}

export type channel_directoriesUpsertWithoutScheduled_tasksInput = {
  update: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedUpdateWithoutScheduled_tasksInput>
  create: Prisma.XOR<Prisma.channel_directoriesCreateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedCreateWithoutScheduled_tasksInput>
  where?: Prisma.channel_directoriesWhereInput
}

export type channel_directoriesUpdateToOneWithWhereWithoutScheduled_tasksInput = {
  where?: Prisma.channel_directoriesWhereInput
  data: Prisma.XOR<Prisma.channel_directoriesUpdateWithoutScheduled_tasksInput, Prisma.channel_directoriesUncheckedUpdateWithoutScheduled_tasksInput>
}

export type channel_directoriesUpdateWithoutScheduled_tasksInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUpdateOneWithoutChannelNestedInput
}

export type channel_directoriesUncheckedUpdateWithoutScheduled_tasksInput = {
  channel_id?: Prisma.StringFieldUpdateOperationsInput | string
  directory?: Prisma.StringFieldUpdateOperationsInput | string
  channel_type?: Prisma.EnumChannelTypeFieldUpdateOperationsInput | $Enums.ChannelType
  created_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  channel_model?: Prisma.channel_modelsUncheckedUpdateOneWithoutChannelNestedInput
  channel_agent?: Prisma.channel_agentsUncheckedUpdateOneWithoutChannelNestedInput
  channel_worktree?: Prisma.channel_worktreesUncheckedUpdateOneWithoutChannelNestedInput
  channel_verbosity?: Prisma.channel_verbosityUncheckedUpdateOneWithoutChannelNestedInput
  channel_mention_mode?: Prisma.channel_mention_modeUncheckedUpdateOneWithoutChannelNestedInput
}


/**
 * Count Type Channel_directoriesCountOutputType
 */

export type Channel_directoriesCountOutputType = {
  scheduled_tasks: number
}

export type Channel_directoriesCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  scheduled_tasks?: boolean | Channel_directoriesCountOutputTypeCountScheduled_tasksArgs
}

/**
 * Channel_directoriesCountOutputType without action
 */
export type Channel_directoriesCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Channel_directoriesCountOutputType
   */
  select?: Prisma.Channel_directoriesCountOutputTypeSelect<ExtArgs> | null
}

/**
 * Channel_directoriesCountOutputType without action
 */
export type Channel_directoriesCountOutputTypeCountScheduled_tasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.scheduled_tasksWhereInput
}


export type channel_directoriesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  directory?: boolean
  channel_type?: boolean
  created_at?: boolean
  channel_model?: boolean | Prisma.channel_directories$channel_modelArgs<ExtArgs>
  channel_agent?: boolean | Prisma.channel_directories$channel_agentArgs<ExtArgs>
  channel_worktree?: boolean | Prisma.channel_directories$channel_worktreeArgs<ExtArgs>
  channel_verbosity?: boolean | Prisma.channel_directories$channel_verbosityArgs<ExtArgs>
  channel_mention_mode?: boolean | Prisma.channel_directories$channel_mention_modeArgs<ExtArgs>
  scheduled_tasks?: boolean | Prisma.channel_directories$scheduled_tasksArgs<ExtArgs>
  _count?: boolean | Prisma.Channel_directoriesCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["channel_directories"]>

export type channel_directoriesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  directory?: boolean
  channel_type?: boolean
  created_at?: boolean
}, ExtArgs["result"]["channel_directories"]>

export type channel_directoriesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  channel_id?: boolean
  directory?: boolean
  channel_type?: boolean
  created_at?: boolean
}, ExtArgs["result"]["channel_directories"]>

export type channel_directoriesSelectScalar = {
  channel_id?: boolean
  directory?: boolean
  channel_type?: boolean
  created_at?: boolean
}

export type channel_directoriesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"channel_id" | "directory" | "channel_type" | "created_at", ExtArgs["result"]["channel_directories"]>
export type channel_directoriesInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  channel_model?: boolean | Prisma.channel_directories$channel_modelArgs<ExtArgs>
  channel_agent?: boolean | Prisma.channel_directories$channel_agentArgs<ExtArgs>
  channel_worktree?: boolean | Prisma.channel_directories$channel_worktreeArgs<ExtArgs>
  channel_verbosity?: boolean | Prisma.channel_directories$channel_verbosityArgs<ExtArgs>
  channel_mention_mode?: boolean | Prisma.channel_directories$channel_mention_modeArgs<ExtArgs>
  scheduled_tasks?: boolean | Prisma.channel_directories$scheduled_tasksArgs<ExtArgs>
  _count?: boolean | Prisma.Channel_directoriesCountOutputTypeDefaultArgs<ExtArgs>
}
export type channel_directoriesIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type channel_directoriesIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $channel_directoriesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "channel_directories"
  objects: {
    channel_model: Prisma.$channel_modelsPayload<ExtArgs> | null
    channel_agent: Prisma.$channel_agentsPayload<ExtArgs> | null
    channel_worktree: Prisma.$channel_worktreesPayload<ExtArgs> | null
    channel_verbosity: Prisma.$channel_verbosityPayload<ExtArgs> | null
    channel_mention_mode: Prisma.$channel_mention_modePayload<ExtArgs> | null
    scheduled_tasks: Prisma.$scheduled_tasksPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    channel_id: string
    directory: string
    channel_type: $Enums.ChannelType
    created_at: Date | null
  }, ExtArgs["result"]["channel_directories"]>
  composites: {}
}

export type channel_directoriesGetPayload<S extends boolean | null | undefined | channel_directoriesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$channel_directoriesPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for channel_directories.
 * 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__channel_directoriesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  channel_model<T extends Prisma.channel_directories$channel_modelArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$channel_modelArgs<ExtArgs>>): Prisma.Prisma__channel_modelsClient<runtime.Types.Result.GetResult<Prisma.$channel_modelsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  channel_agent<T extends Prisma.channel_directories$channel_agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$channel_agentArgs<ExtArgs>>): Prisma.Prisma__channel_agentsClient<runtime.Types.Result.GetResult<Prisma.$channel_agentsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  channel_worktree<T extends Prisma.channel_directories$channel_worktreeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$channel_worktreeArgs<ExtArgs>>): Prisma.Prisma__channel_worktreesClient<runtime.Types.Result.GetResult<Prisma.$channel_worktreesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  channel_verbosity<T extends Prisma.channel_directories$channel_verbosityArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$channel_verbosityArgs<ExtArgs>>): Prisma.Prisma__channel_verbosityClient<runtime.Types.Result.GetResult<Prisma.$channel_verbosityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  channel_mention_mode<T extends Prisma.channel_directories$channel_mention_modeArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$channel_mention_modeArgs<ExtArgs>>): Prisma.Prisma__channel_mention_modeClient<runtime.Types.Result.GetResult<Prisma.$channel_mention_modePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  scheduled_tasks<T extends Prisma.channel_directories$scheduled_tasksArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.channel_directories$scheduled_tasksArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$scheduled_tasksPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  /**
   * 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 channel_directories model
 */
export interface channel_directoriesFieldRefs {
  readonly channel_id: Prisma.FieldRef<"channel_directories", 'String'>
  readonly directory: Prisma.FieldRef<"channel_directories", 'String'>
  readonly channel_type: Prisma.FieldRef<"channel_directories", 'ChannelType'>
  readonly created_at: Prisma.FieldRef<"channel_directories", 'DateTime'>
}
    

// Custom InputTypes
/**
 * channel_directories findUnique
 */
export type channel_directoriesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * Filter, which channel_directories to fetch.
   */
  where: Prisma.channel_directoriesWhereUniqueInput
}

/**
 * channel_directories findUniqueOrThrow
 */
export type channel_directoriesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * Filter, which channel_directories to fetch.
   */
  where: Prisma.channel_directoriesWhereUniqueInput
}

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

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

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

/**
 * channel_directories create
 */
export type channel_directoriesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * The data needed to create a channel_directories.
   */
  data: Prisma.XOR<Prisma.channel_directoriesCreateInput, Prisma.channel_directoriesUncheckedCreateInput>
}

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

/**
 * channel_directories createManyAndReturn
 */
export type channel_directoriesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * The data used to create many channel_directories.
   */
  data: Prisma.channel_directoriesCreateManyInput | Prisma.channel_directoriesCreateManyInput[]
}

/**
 * channel_directories update
 */
export type channel_directoriesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * The data needed to update a channel_directories.
   */
  data: Prisma.XOR<Prisma.channel_directoriesUpdateInput, Prisma.channel_directoriesUncheckedUpdateInput>
  /**
   * Choose, which channel_directories to update.
   */
  where: Prisma.channel_directoriesWhereUniqueInput
}

/**
 * channel_directories updateMany
 */
export type channel_directoriesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update channel_directories.
   */
  data: Prisma.XOR<Prisma.channel_directoriesUpdateManyMutationInput, Prisma.channel_directoriesUncheckedUpdateManyInput>
  /**
   * Filter which channel_directories to update
   */
  where?: Prisma.channel_directoriesWhereInput
  /**
   * Limit how many channel_directories to update.
   */
  limit?: number
}

/**
 * channel_directories updateManyAndReturn
 */
export type channel_directoriesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * The data used to update channel_directories.
   */
  data: Prisma.XOR<Prisma.channel_directoriesUpdateManyMutationInput, Prisma.channel_directoriesUncheckedUpdateManyInput>
  /**
   * Filter which channel_directories to update
   */
  where?: Prisma.channel_directoriesWhereInput
  /**
   * Limit how many channel_directories to update.
   */
  limit?: number
}

/**
 * channel_directories upsert
 */
export type channel_directoriesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * The filter to search for the channel_directories to update in case it exists.
   */
  where: Prisma.channel_directoriesWhereUniqueInput
  /**
   * In case the channel_directories found by the `where` argument doesn't exist, create a new channel_directories with this data.
   */
  create: Prisma.XOR<Prisma.channel_directoriesCreateInput, Prisma.channel_directoriesUncheckedCreateInput>
  /**
   * In case the channel_directories was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.channel_directoriesUpdateInput, Prisma.channel_directoriesUncheckedUpdateInput>
}

/**
 * channel_directories delete
 */
export type channel_directoriesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_directories
   */
  select?: Prisma.channel_directoriesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_directories
   */
  omit?: Prisma.channel_directoriesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_directoriesInclude<ExtArgs> | null
  /**
   * Filter which channel_directories to delete.
   */
  where: Prisma.channel_directoriesWhereUniqueInput
}

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

/**
 * channel_directories.channel_model
 */
export type channel_directories$channel_modelArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_models
   */
  select?: Prisma.channel_modelsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_models
   */
  omit?: Prisma.channel_modelsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_modelsInclude<ExtArgs> | null
  where?: Prisma.channel_modelsWhereInput
}

/**
 * channel_directories.channel_agent
 */
export type channel_directories$channel_agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_agents
   */
  select?: Prisma.channel_agentsSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_agents
   */
  omit?: Prisma.channel_agentsOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_agentsInclude<ExtArgs> | null
  where?: Prisma.channel_agentsWhereInput
}

/**
 * channel_directories.channel_worktree
 */
export type channel_directories$channel_worktreeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_worktrees
   */
  select?: Prisma.channel_worktreesSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_worktrees
   */
  omit?: Prisma.channel_worktreesOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_worktreesInclude<ExtArgs> | null
  where?: Prisma.channel_worktreesWhereInput
}

/**
 * channel_directories.channel_verbosity
 */
export type channel_directories$channel_verbosityArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_verbosity
   */
  select?: Prisma.channel_verbositySelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_verbosity
   */
  omit?: Prisma.channel_verbosityOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_verbosityInclude<ExtArgs> | null
  where?: Prisma.channel_verbosityWhereInput
}

/**
 * channel_directories.channel_mention_mode
 */
export type channel_directories$channel_mention_modeArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the channel_mention_mode
   */
  select?: Prisma.channel_mention_modeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the channel_mention_mode
   */
  omit?: Prisma.channel_mention_modeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.channel_mention_modeInclude<ExtArgs> | null
  where?: Prisma.channel_mention_modeWhereInput
}

/**
 * channel_directories.scheduled_tasks
 */
export type channel_directories$scheduled_tasksArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the scheduled_tasks
   */
  select?: Prisma.scheduled_tasksSelect<ExtArgs> | null
  /**
   * Omit specific fields from the scheduled_tasks
   */
  omit?: Prisma.scheduled_tasksOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.scheduled_tasksInclude<ExtArgs> | null
  where?: Prisma.scheduled_tasksWhereInput
  orderBy?: Prisma.scheduled_tasksOrderByWithRelationInput | Prisma.scheduled_tasksOrderByWithRelationInput[]
  cursor?: Prisma.scheduled_tasksWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.Scheduled_tasksScalarFieldEnum | Prisma.Scheduled_tasksScalarFieldEnum[]
}

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