
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `CredentialType` 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.ts"
import type * as Prisma from "../internal/prismaNamespace.ts"

/**
 * Model CredentialType
 * 
 */
export type CredentialTypeModel = runtime.Types.Result.DefaultSelection<Prisma.$CredentialTypePayload>

export type AggregateCredentialType = {
  _count: CredentialTypeCountAggregateOutputType | null
  _min: CredentialTypeMinAggregateOutputType | null
  _max: CredentialTypeMaxAggregateOutputType | null
}

export type CredentialTypeMinAggregateOutputType = {
  id: string | null
  name: string | null
  permissionScope: string | null
  icon: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CredentialTypeMaxAggregateOutputType = {
  id: string | null
  name: string | null
  permissionScope: string | null
  icon: string | null
  createdAt: Date | null
  updatedAt: Date | null
}

export type CredentialTypeCountAggregateOutputType = {
  id: number
  name: number
  permissionScope: number
  icon: number
  fields: number
  createdAt: number
  updatedAt: number
  _all: number
}


export type CredentialTypeMinAggregateInputType = {
  id?: true
  name?: true
  permissionScope?: true
  icon?: true
  createdAt?: true
  updatedAt?: true
}

export type CredentialTypeMaxAggregateInputType = {
  id?: true
  name?: true
  permissionScope?: true
  icon?: true
  createdAt?: true
  updatedAt?: true
}

export type CredentialTypeCountAggregateInputType = {
  id?: true
  name?: true
  permissionScope?: true
  icon?: true
  fields?: true
  createdAt?: true
  updatedAt?: true
  _all?: true
}

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

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




export type CredentialTypeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CredentialTypeWhereInput
  orderBy?: Prisma.CredentialTypeOrderByWithAggregationInput | Prisma.CredentialTypeOrderByWithAggregationInput[]
  by: Prisma.CredentialTypeScalarFieldEnum[] | Prisma.CredentialTypeScalarFieldEnum
  having?: Prisma.CredentialTypeScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CredentialTypeCountAggregateInputType | true
  _min?: CredentialTypeMinAggregateInputType
  _max?: CredentialTypeMaxAggregateInputType
}

export type CredentialTypeGroupByOutputType = {
  id: string
  name: string
  permissionScope: string
  icon: string | null
  fields: runtime.JsonValue
  createdAt: Date
  updatedAt: Date
  _count: CredentialTypeCountAggregateOutputType | null
  _min: CredentialTypeMinAggregateOutputType | null
  _max: CredentialTypeMaxAggregateOutputType | null
}

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



export type CredentialTypeWhereInput = {
  AND?: Prisma.CredentialTypeWhereInput | Prisma.CredentialTypeWhereInput[]
  OR?: Prisma.CredentialTypeWhereInput[]
  NOT?: Prisma.CredentialTypeWhereInput | Prisma.CredentialTypeWhereInput[]
  id?: Prisma.StringFilter<"CredentialType"> | string
  name?: Prisma.StringFilter<"CredentialType"> | string
  permissionScope?: Prisma.StringFilter<"CredentialType"> | string
  icon?: Prisma.StringNullableFilter<"CredentialType"> | string | null
  fields?: Prisma.JsonFilter<"CredentialType">
  createdAt?: Prisma.DateTimeFilter<"CredentialType"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CredentialType"> | Date | string
  credentials?: Prisma.CredentialListRelationFilter
}

export type CredentialTypeOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  permissionScope?: Prisma.SortOrder
  icon?: Prisma.SortOrderInput | Prisma.SortOrder
  fields?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  credentials?: Prisma.CredentialOrderByRelationAggregateInput
}

export type CredentialTypeWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  name?: string
  AND?: Prisma.CredentialTypeWhereInput | Prisma.CredentialTypeWhereInput[]
  OR?: Prisma.CredentialTypeWhereInput[]
  NOT?: Prisma.CredentialTypeWhereInput | Prisma.CredentialTypeWhereInput[]
  permissionScope?: Prisma.StringFilter<"CredentialType"> | string
  icon?: Prisma.StringNullableFilter<"CredentialType"> | string | null
  fields?: Prisma.JsonFilter<"CredentialType">
  createdAt?: Prisma.DateTimeFilter<"CredentialType"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"CredentialType"> | Date | string
  credentials?: Prisma.CredentialListRelationFilter
}, "id" | "name">

export type CredentialTypeOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  permissionScope?: Prisma.SortOrder
  icon?: Prisma.SortOrderInput | Prisma.SortOrder
  fields?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  _count?: Prisma.CredentialTypeCountOrderByAggregateInput
  _max?: Prisma.CredentialTypeMaxOrderByAggregateInput
  _min?: Prisma.CredentialTypeMinOrderByAggregateInput
}

export type CredentialTypeScalarWhereWithAggregatesInput = {
  AND?: Prisma.CredentialTypeScalarWhereWithAggregatesInput | Prisma.CredentialTypeScalarWhereWithAggregatesInput[]
  OR?: Prisma.CredentialTypeScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CredentialTypeScalarWhereWithAggregatesInput | Prisma.CredentialTypeScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"CredentialType"> | string
  name?: Prisma.StringWithAggregatesFilter<"CredentialType"> | string
  permissionScope?: Prisma.StringWithAggregatesFilter<"CredentialType"> | string
  icon?: Prisma.StringNullableWithAggregatesFilter<"CredentialType"> | string | null
  fields?: Prisma.JsonWithAggregatesFilter<"CredentialType">
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"CredentialType"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"CredentialType"> | Date | string
}

export type CredentialTypeCreateInput = {
  id?: string
  name: string
  permissionScope: string
  icon?: string | null
  fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  credentials?: Prisma.CredentialCreateNestedManyWithoutTypeInput
}

export type CredentialTypeUncheckedCreateInput = {
  id?: string
  name: string
  permissionScope: string
  icon?: string | null
  fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
  credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutTypeInput
}

export type CredentialTypeUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  credentials?: Prisma.CredentialUpdateManyWithoutTypeNestedInput
}

export type CredentialTypeUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  credentials?: Prisma.CredentialUncheckedUpdateManyWithoutTypeNestedInput
}

export type CredentialTypeCreateManyInput = {
  id?: string
  name: string
  permissionScope: string
  icon?: string | null
  fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CredentialTypeUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CredentialTypeUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CredentialTypeCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  permissionScope?: Prisma.SortOrder
  icon?: Prisma.SortOrder
  fields?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CredentialTypeMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  permissionScope?: Prisma.SortOrder
  icon?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CredentialTypeMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  name?: Prisma.SortOrder
  permissionScope?: Prisma.SortOrder
  icon?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
}

export type CredentialTypeScalarRelationFilter = {
  is?: Prisma.CredentialTypeWhereInput
  isNot?: Prisma.CredentialTypeWhereInput
}

export type CredentialTypeCreateNestedOneWithoutCredentialsInput = {
  create?: Prisma.XOR<Prisma.CredentialTypeCreateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedCreateWithoutCredentialsInput>
  connectOrCreate?: Prisma.CredentialTypeCreateOrConnectWithoutCredentialsInput
  connect?: Prisma.CredentialTypeWhereUniqueInput
}

export type CredentialTypeUpdateOneRequiredWithoutCredentialsNestedInput = {
  create?: Prisma.XOR<Prisma.CredentialTypeCreateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedCreateWithoutCredentialsInput>
  connectOrCreate?: Prisma.CredentialTypeCreateOrConnectWithoutCredentialsInput
  upsert?: Prisma.CredentialTypeUpsertWithoutCredentialsInput
  connect?: Prisma.CredentialTypeWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CredentialTypeUpdateToOneWithWhereWithoutCredentialsInput, Prisma.CredentialTypeUpdateWithoutCredentialsInput>, Prisma.CredentialTypeUncheckedUpdateWithoutCredentialsInput>
}

export type CredentialTypeCreateWithoutCredentialsInput = {
  id?: string
  name: string
  permissionScope: string
  icon?: string | null
  fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CredentialTypeUncheckedCreateWithoutCredentialsInput = {
  id?: string
  name: string
  permissionScope: string
  icon?: string | null
  fields: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Date | string
  updatedAt?: Date | string
}

export type CredentialTypeCreateOrConnectWithoutCredentialsInput = {
  where: Prisma.CredentialTypeWhereUniqueInput
  create: Prisma.XOR<Prisma.CredentialTypeCreateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedCreateWithoutCredentialsInput>
}

export type CredentialTypeUpsertWithoutCredentialsInput = {
  update: Prisma.XOR<Prisma.CredentialTypeUpdateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedUpdateWithoutCredentialsInput>
  create: Prisma.XOR<Prisma.CredentialTypeCreateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedCreateWithoutCredentialsInput>
  where?: Prisma.CredentialTypeWhereInput
}

export type CredentialTypeUpdateToOneWithWhereWithoutCredentialsInput = {
  where?: Prisma.CredentialTypeWhereInput
  data: Prisma.XOR<Prisma.CredentialTypeUpdateWithoutCredentialsInput, Prisma.CredentialTypeUncheckedUpdateWithoutCredentialsInput>
}

export type CredentialTypeUpdateWithoutCredentialsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type CredentialTypeUncheckedUpdateWithoutCredentialsInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  permissionScope?: Prisma.StringFieldUpdateOperationsInput | string
  icon?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fields?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}


/**
 * Count Type CredentialTypeCountOutputType
 */

export type CredentialTypeCountOutputType = {
  credentials: number
}

export type CredentialTypeCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  credentials?: boolean | CredentialTypeCountOutputTypeCountCredentialsArgs
}

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

/**
 * CredentialTypeCountOutputType without action
 */
export type CredentialTypeCountOutputTypeCountCredentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CredentialWhereInput
}


export type CredentialTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  permissionScope?: boolean
  icon?: boolean
  fields?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  credentials?: boolean | Prisma.CredentialType$credentialsArgs<ExtArgs>
  _count?: boolean | Prisma.CredentialTypeCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["credentialType"]>

export type CredentialTypeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  permissionScope?: boolean
  icon?: boolean
  fields?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["credentialType"]>

export type CredentialTypeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  name?: boolean
  permissionScope?: boolean
  icon?: boolean
  fields?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}, ExtArgs["result"]["credentialType"]>

export type CredentialTypeSelectScalar = {
  id?: boolean
  name?: boolean
  permissionScope?: boolean
  icon?: boolean
  fields?: boolean
  createdAt?: boolean
  updatedAt?: boolean
}

export type CredentialTypeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "permissionScope" | "icon" | "fields" | "createdAt" | "updatedAt", ExtArgs["result"]["credentialType"]>
export type CredentialTypeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  credentials?: boolean | Prisma.CredentialType$credentialsArgs<ExtArgs>
  _count?: boolean | Prisma.CredentialTypeCountOutputTypeDefaultArgs<ExtArgs>
}
export type CredentialTypeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
export type CredentialTypeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}

export type $CredentialTypePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "CredentialType"
  objects: {
    credentials: Prisma.$CredentialPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    name: string
    permissionScope: string
    icon: string | null
    fields: runtime.JsonValue
    createdAt: Date
    updatedAt: Date
  }, ExtArgs["result"]["credentialType"]>
  composites: {}
}

export type CredentialTypeGetPayload<S extends boolean | null | undefined | CredentialTypeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CredentialTypePayload, S>

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

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

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

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

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

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

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

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

  /**
   * Create many CredentialTypes and returns the data saved in the database.
   * @param {CredentialTypeCreateManyAndReturnArgs} args - Arguments to create many CredentialTypes.
   * @example
   * // Create many CredentialTypes
   * const credentialType = await prisma.credentialType.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many CredentialTypes and only return the `id`
   * const credentialTypeWithIdOnly = await prisma.credentialType.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends CredentialTypeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CredentialTypeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialTypePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

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

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

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

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

  /**
   * Update zero or more CredentialTypes and returns the data updated in the database.
   * @param {CredentialTypeUpdateManyAndReturnArgs} args - Arguments to update many CredentialTypes.
   * @example
   * // Update many CredentialTypes
   * const credentialType = await prisma.credentialType.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more CredentialTypes and only return the `id`
   * const credentialTypeWithIdOnly = await prisma.credentialType.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends CredentialTypeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CredentialTypeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialTypePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for CredentialType.
 * 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__CredentialTypeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  credentials<T extends Prisma.CredentialType$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CredentialType$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<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 CredentialType model
 */
export interface CredentialTypeFieldRefs {
  readonly id: Prisma.FieldRef<"CredentialType", 'String'>
  readonly name: Prisma.FieldRef<"CredentialType", 'String'>
  readonly permissionScope: Prisma.FieldRef<"CredentialType", 'String'>
  readonly icon: Prisma.FieldRef<"CredentialType", 'String'>
  readonly fields: Prisma.FieldRef<"CredentialType", 'Json'>
  readonly createdAt: Prisma.FieldRef<"CredentialType", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"CredentialType", 'DateTime'>
}
    

// Custom InputTypes
/**
 * CredentialType findUnique
 */
export type CredentialTypeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * Filter, which CredentialType to fetch.
   */
  where: Prisma.CredentialTypeWhereUniqueInput
}

/**
 * CredentialType findUniqueOrThrow
 */
export type CredentialTypeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * Filter, which CredentialType to fetch.
   */
  where: Prisma.CredentialTypeWhereUniqueInput
}

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

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

/**
 * CredentialType findMany
 */
export type CredentialTypeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * Filter, which CredentialTypes to fetch.
   */
  where?: Prisma.CredentialTypeWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of CredentialTypes to fetch.
   */
  orderBy?: Prisma.CredentialTypeOrderByWithRelationInput | Prisma.CredentialTypeOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing CredentialTypes.
   */
  cursor?: Prisma.CredentialTypeWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` CredentialTypes 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` CredentialTypes.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of CredentialTypes.
   */
  distinct?: Prisma.CredentialTypeScalarFieldEnum | Prisma.CredentialTypeScalarFieldEnum[]
}

/**
 * CredentialType create
 */
export type CredentialTypeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * The data needed to create a CredentialType.
   */
  data: Prisma.XOR<Prisma.CredentialTypeCreateInput, Prisma.CredentialTypeUncheckedCreateInput>
}

/**
 * CredentialType createMany
 */
export type CredentialTypeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many CredentialTypes.
   */
  data: Prisma.CredentialTypeCreateManyInput | Prisma.CredentialTypeCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * CredentialType createManyAndReturn
 */
export type CredentialTypeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * The data used to create many CredentialTypes.
   */
  data: Prisma.CredentialTypeCreateManyInput | Prisma.CredentialTypeCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * CredentialType update
 */
export type CredentialTypeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * The data needed to update a CredentialType.
   */
  data: Prisma.XOR<Prisma.CredentialTypeUpdateInput, Prisma.CredentialTypeUncheckedUpdateInput>
  /**
   * Choose, which CredentialType to update.
   */
  where: Prisma.CredentialTypeWhereUniqueInput
}

/**
 * CredentialType updateMany
 */
export type CredentialTypeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update CredentialTypes.
   */
  data: Prisma.XOR<Prisma.CredentialTypeUpdateManyMutationInput, Prisma.CredentialTypeUncheckedUpdateManyInput>
  /**
   * Filter which CredentialTypes to update
   */
  where?: Prisma.CredentialTypeWhereInput
  /**
   * Limit how many CredentialTypes to update.
   */
  limit?: number
}

/**
 * CredentialType updateManyAndReturn
 */
export type CredentialTypeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * The data used to update CredentialTypes.
   */
  data: Prisma.XOR<Prisma.CredentialTypeUpdateManyMutationInput, Prisma.CredentialTypeUncheckedUpdateManyInput>
  /**
   * Filter which CredentialTypes to update
   */
  where?: Prisma.CredentialTypeWhereInput
  /**
   * Limit how many CredentialTypes to update.
   */
  limit?: number
}

/**
 * CredentialType upsert
 */
export type CredentialTypeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * The filter to search for the CredentialType to update in case it exists.
   */
  where: Prisma.CredentialTypeWhereUniqueInput
  /**
   * In case the CredentialType found by the `where` argument doesn't exist, create a new CredentialType with this data.
   */
  create: Prisma.XOR<Prisma.CredentialTypeCreateInput, Prisma.CredentialTypeUncheckedCreateInput>
  /**
   * In case the CredentialType was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CredentialTypeUpdateInput, Prisma.CredentialTypeUncheckedUpdateInput>
}

/**
 * CredentialType delete
 */
export type CredentialTypeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the CredentialType
   */
  select?: Prisma.CredentialTypeSelect<ExtArgs> | null
  /**
   * Omit specific fields from the CredentialType
   */
  omit?: Prisma.CredentialTypeOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialTypeInclude<ExtArgs> | null
  /**
   * Filter which CredentialType to delete.
   */
  where: Prisma.CredentialTypeWhereUniqueInput
}

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

/**
 * CredentialType.credentials
 */
export type CredentialType$credentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Credential
   */
  select?: Prisma.CredentialSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Credential
   */
  omit?: Prisma.CredentialOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CredentialInclude<ExtArgs> | null
  where?: Prisma.CredentialWhereInput
  orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
  cursor?: Prisma.CredentialWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
}

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