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

export type AggregateCampaign = {
  _count: CampaignCountAggregateOutputType | null
  _avg: CampaignAvgAggregateOutputType | null
  _sum: CampaignSumAggregateOutputType | null
  _min: CampaignMinAggregateOutputType | null
  _max: CampaignMaxAggregateOutputType | null
}

export type CampaignAvgAggregateOutputType = {
  totalRecipients: number | null
  validRecipients: number | null
  invalidRecipients: number | null
  ringingTimeoutSeconds: number | null
}

export type CampaignSumAggregateOutputType = {
  totalRecipients: number | null
  validRecipients: number | null
  invalidRecipients: number | null
  ringingTimeoutSeconds: number | null
}

export type CampaignMinAggregateOutputType = {
  campaignId: string | null
  organizationId: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
  agentId: string | null
  fromNumber: string | null
  scheduledAt: Date | null
  sourceFileKey: string | null
  sourceFileName: string | null
  totalRecipients: number | null
  validRecipients: number | null
  invalidRecipients: number | null
  ringingTimeoutSeconds: number | null
  timezone: string | null
  status: $Enums.CampaignStatus | null
  startedAt: Date | null
  completedAt: Date | null
  userId: string | null
}

export type CampaignMaxAggregateOutputType = {
  campaignId: string | null
  organizationId: string | null
  name: string | null
  createdAt: Date | null
  updatedAt: Date | null
  agentId: string | null
  fromNumber: string | null
  scheduledAt: Date | null
  sourceFileKey: string | null
  sourceFileName: string | null
  totalRecipients: number | null
  validRecipients: number | null
  invalidRecipients: number | null
  ringingTimeoutSeconds: number | null
  timezone: string | null
  status: $Enums.CampaignStatus | null
  startedAt: Date | null
  completedAt: Date | null
  userId: string | null
}

export type CampaignCountAggregateOutputType = {
  campaignId: number
  organizationId: number
  name: number
  createdAt: number
  updatedAt: number
  agentId: number
  fromNumber: number
  scheduledAt: number
  sourceFileKey: number
  sourceFileName: number
  totalRecipients: number
  validRecipients: number
  invalidRecipients: number
  ringingTimeoutSeconds: number
  timezone: number
  status: number
  startedAt: number
  completedAt: number
  userId: number
  _all: number
}


export type CampaignAvgAggregateInputType = {
  totalRecipients?: true
  validRecipients?: true
  invalidRecipients?: true
  ringingTimeoutSeconds?: true
}

export type CampaignSumAggregateInputType = {
  totalRecipients?: true
  validRecipients?: true
  invalidRecipients?: true
  ringingTimeoutSeconds?: true
}

export type CampaignMinAggregateInputType = {
  campaignId?: true
  organizationId?: true
  name?: true
  createdAt?: true
  updatedAt?: true
  agentId?: true
  fromNumber?: true
  scheduledAt?: true
  sourceFileKey?: true
  sourceFileName?: true
  totalRecipients?: true
  validRecipients?: true
  invalidRecipients?: true
  ringingTimeoutSeconds?: true
  timezone?: true
  status?: true
  startedAt?: true
  completedAt?: true
  userId?: true
}

export type CampaignMaxAggregateInputType = {
  campaignId?: true
  organizationId?: true
  name?: true
  createdAt?: true
  updatedAt?: true
  agentId?: true
  fromNumber?: true
  scheduledAt?: true
  sourceFileKey?: true
  sourceFileName?: true
  totalRecipients?: true
  validRecipients?: true
  invalidRecipients?: true
  ringingTimeoutSeconds?: true
  timezone?: true
  status?: true
  startedAt?: true
  completedAt?: true
  userId?: true
}

export type CampaignCountAggregateInputType = {
  campaignId?: true
  organizationId?: true
  name?: true
  createdAt?: true
  updatedAt?: true
  agentId?: true
  fromNumber?: true
  scheduledAt?: true
  sourceFileKey?: true
  sourceFileName?: true
  totalRecipients?: true
  validRecipients?: true
  invalidRecipients?: true
  ringingTimeoutSeconds?: true
  timezone?: true
  status?: true
  startedAt?: true
  completedAt?: true
  userId?: true
  _all?: true
}

export type CampaignAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which Campaign to aggregate.
   */
  where?: Prisma.CampaignWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   *
   * Determine the order of Campaigns to fetch.
   */
  orderBy?: Prisma.CampaignOrderByWithRelationInput | Prisma.CampaignOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   *
   * Sets the start position
   */
  cursor?: Prisma.CampaignWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   *
   * Take `±n` Campaigns 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` Campaigns.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Count returned Campaigns
  **/
  _count?: true | CampaignCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to average
  **/
  _avg?: CampaignAvgAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to sum
  **/
  _sum?: CampaignSumAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the minimum value
  **/
  _min?: CampaignMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   *
   * Select which fields to find the maximum value
  **/
  _max?: CampaignMaxAggregateInputType
}

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




export type CampaignGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.CampaignWhereInput
  orderBy?: Prisma.CampaignOrderByWithAggregationInput | Prisma.CampaignOrderByWithAggregationInput[]
  by: Prisma.CampaignScalarFieldEnum[] | Prisma.CampaignScalarFieldEnum
  having?: Prisma.CampaignScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: CampaignCountAggregateInputType | true
  _avg?: CampaignAvgAggregateInputType
  _sum?: CampaignSumAggregateInputType
  _min?: CampaignMinAggregateInputType
  _max?: CampaignMaxAggregateInputType
}

export type CampaignGroupByOutputType = {
  campaignId: string
  organizationId: string
  name: string
  createdAt: Date
  updatedAt: Date
  agentId: string | null
  fromNumber: string
  scheduledAt: Date | null
  sourceFileKey: string | null
  sourceFileName: string | null
  totalRecipients: number
  validRecipients: number
  invalidRecipients: number
  ringingTimeoutSeconds: number
  timezone: string
  status: $Enums.CampaignStatus
  startedAt: Date | null
  completedAt: Date | null
  userId: string | null
  _count: CampaignCountAggregateOutputType | null
  _avg: CampaignAvgAggregateOutputType | null
  _sum: CampaignSumAggregateOutputType | null
  _min: CampaignMinAggregateOutputType | null
  _max: CampaignMaxAggregateOutputType | null
}

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



export type CampaignWhereInput = {
  AND?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[]
  OR?: Prisma.CampaignWhereInput[]
  NOT?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[]
  campaignId?: Prisma.StringFilter<"Campaign"> | string
  organizationId?: Prisma.StringFilter<"Campaign"> | string
  name?: Prisma.StringFilter<"Campaign"> | string
  createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  agentId?: Prisma.StringNullableFilter<"Campaign"> | string | null
  fromNumber?: Prisma.StringFilter<"Campaign"> | string
  scheduledAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  sourceFileKey?: Prisma.StringNullableFilter<"Campaign"> | string | null
  sourceFileName?: Prisma.StringNullableFilter<"Campaign"> | string | null
  totalRecipients?: Prisma.IntFilter<"Campaign"> | number
  validRecipients?: Prisma.IntFilter<"Campaign"> | number
  invalidRecipients?: Prisma.IntFilter<"Campaign"> | number
  ringingTimeoutSeconds?: Prisma.IntFilter<"Campaign"> | number
  timezone?: Prisma.StringFilter<"Campaign"> | string
  status?: Prisma.EnumCampaignStatusFilter<"Campaign"> | $Enums.CampaignStatus
  startedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  completedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  userId?: Prisma.StringNullableFilter<"Campaign"> | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  outboundCalls?: Prisma.OutboundCallListRelationFilter
}

export type CampaignOrderByWithRelationInput = {
  campaignId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
  fromNumber?: Prisma.SortOrder
  scheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceFileKey?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceFileName?: Prisma.SortOrderInput | Prisma.SortOrder
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
  timezone?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  organization?: Prisma.OrganizationOrderByWithRelationInput
  agent?: Prisma.AgentOrderByWithRelationInput
  user?: Prisma.UserOrderByWithRelationInput
  outboundCalls?: Prisma.OutboundCallOrderByRelationAggregateInput
}

export type CampaignWhereUniqueInput = Prisma.AtLeast<{
  campaignId?: string
  AND?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[]
  OR?: Prisma.CampaignWhereInput[]
  NOT?: Prisma.CampaignWhereInput | Prisma.CampaignWhereInput[]
  organizationId?: Prisma.StringFilter<"Campaign"> | string
  name?: Prisma.StringFilter<"Campaign"> | string
  createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  agentId?: Prisma.StringNullableFilter<"Campaign"> | string | null
  fromNumber?: Prisma.StringFilter<"Campaign"> | string
  scheduledAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  sourceFileKey?: Prisma.StringNullableFilter<"Campaign"> | string | null
  sourceFileName?: Prisma.StringNullableFilter<"Campaign"> | string | null
  totalRecipients?: Prisma.IntFilter<"Campaign"> | number
  validRecipients?: Prisma.IntFilter<"Campaign"> | number
  invalidRecipients?: Prisma.IntFilter<"Campaign"> | number
  ringingTimeoutSeconds?: Prisma.IntFilter<"Campaign"> | number
  timezone?: Prisma.StringFilter<"Campaign"> | string
  status?: Prisma.EnumCampaignStatusFilter<"Campaign"> | $Enums.CampaignStatus
  startedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  completedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  userId?: Prisma.StringNullableFilter<"Campaign"> | string | null
  organization?: Prisma.XOR<Prisma.OrganizationScalarRelationFilter, Prisma.OrganizationWhereInput>
  agent?: Prisma.XOR<Prisma.AgentNullableScalarRelationFilter, Prisma.AgentWhereInput> | null
  user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
  outboundCalls?: Prisma.OutboundCallListRelationFilter
}, "campaignId">

export type CampaignOrderByWithAggregationInput = {
  campaignId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  agentId?: Prisma.SortOrderInput | Prisma.SortOrder
  fromNumber?: Prisma.SortOrder
  scheduledAt?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceFileKey?: Prisma.SortOrderInput | Prisma.SortOrder
  sourceFileName?: Prisma.SortOrderInput | Prisma.SortOrder
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
  timezone?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  completedAt?: Prisma.SortOrderInput | Prisma.SortOrder
  userId?: Prisma.SortOrderInput | Prisma.SortOrder
  _count?: Prisma.CampaignCountOrderByAggregateInput
  _avg?: Prisma.CampaignAvgOrderByAggregateInput
  _max?: Prisma.CampaignMaxOrderByAggregateInput
  _min?: Prisma.CampaignMinOrderByAggregateInput
  _sum?: Prisma.CampaignSumOrderByAggregateInput
}

export type CampaignScalarWhereWithAggregatesInput = {
  AND?: Prisma.CampaignScalarWhereWithAggregatesInput | Prisma.CampaignScalarWhereWithAggregatesInput[]
  OR?: Prisma.CampaignScalarWhereWithAggregatesInput[]
  NOT?: Prisma.CampaignScalarWhereWithAggregatesInput | Prisma.CampaignScalarWhereWithAggregatesInput[]
  campaignId?: Prisma.StringWithAggregatesFilter<"Campaign"> | string
  organizationId?: Prisma.StringWithAggregatesFilter<"Campaign"> | string
  name?: Prisma.StringWithAggregatesFilter<"Campaign"> | string
  createdAt?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string
  updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Campaign"> | Date | string
  agentId?: Prisma.StringNullableWithAggregatesFilter<"Campaign"> | string | null
  fromNumber?: Prisma.StringWithAggregatesFilter<"Campaign"> | string
  scheduledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Campaign"> | Date | string | null
  sourceFileKey?: Prisma.StringNullableWithAggregatesFilter<"Campaign"> | string | null
  sourceFileName?: Prisma.StringNullableWithAggregatesFilter<"Campaign"> | string | null
  totalRecipients?: Prisma.IntWithAggregatesFilter<"Campaign"> | number
  validRecipients?: Prisma.IntWithAggregatesFilter<"Campaign"> | number
  invalidRecipients?: Prisma.IntWithAggregatesFilter<"Campaign"> | number
  ringingTimeoutSeconds?: Prisma.IntWithAggregatesFilter<"Campaign"> | number
  timezone?: Prisma.StringWithAggregatesFilter<"Campaign"> | string
  status?: Prisma.EnumCampaignStatusWithAggregatesFilter<"Campaign"> | $Enums.CampaignStatus
  startedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Campaign"> | Date | string | null
  completedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Campaign"> | Date | string | null
  userId?: Prisma.StringNullableWithAggregatesFilter<"Campaign"> | string | null
}

export type CampaignCreateInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  organization: Prisma.OrganizationCreateNestedOneWithoutCampaignsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCampaignsInput
  user?: Prisma.UserCreateNestedOneWithoutCampaignsInput
  outboundCalls?: Prisma.OutboundCallCreateNestedManyWithoutCampaignInput
}

export type CampaignUncheckedCreateInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
  outboundCalls?: Prisma.OutboundCallUncheckedCreateNestedManyWithoutCampaignInput
}

export type CampaignUpdateInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCampaignsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCampaignsNestedInput
  user?: Prisma.UserUpdateOneWithoutCampaignsNestedInput
  outboundCalls?: Prisma.OutboundCallUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  outboundCalls?: Prisma.OutboundCallUncheckedUpdateManyWithoutCampaignNestedInput
}

export type CampaignCreateManyInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
}

export type CampaignUpdateManyMutationInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type CampaignUncheckedUpdateManyInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type CampaignListRelationFilter = {
  every?: Prisma.CampaignWhereInput
  some?: Prisma.CampaignWhereInput
  none?: Prisma.CampaignWhereInput
}

export type CampaignOrderByRelationAggregateInput = {
  _count?: Prisma.SortOrder
}

export type CampaignNullableScalarRelationFilter = {
  is?: Prisma.CampaignWhereInput | null
  isNot?: Prisma.CampaignWhereInput | null
}

export type CampaignCountOrderByAggregateInput = {
  campaignId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  fromNumber?: Prisma.SortOrder
  scheduledAt?: Prisma.SortOrder
  sourceFileKey?: Prisma.SortOrder
  sourceFileName?: Prisma.SortOrder
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
  timezone?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  completedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type CampaignAvgOrderByAggregateInput = {
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
}

export type CampaignMaxOrderByAggregateInput = {
  campaignId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  fromNumber?: Prisma.SortOrder
  scheduledAt?: Prisma.SortOrder
  sourceFileKey?: Prisma.SortOrder
  sourceFileName?: Prisma.SortOrder
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
  timezone?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  completedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type CampaignMinOrderByAggregateInput = {
  campaignId?: Prisma.SortOrder
  organizationId?: Prisma.SortOrder
  name?: Prisma.SortOrder
  createdAt?: Prisma.SortOrder
  updatedAt?: Prisma.SortOrder
  agentId?: Prisma.SortOrder
  fromNumber?: Prisma.SortOrder
  scheduledAt?: Prisma.SortOrder
  sourceFileKey?: Prisma.SortOrder
  sourceFileName?: Prisma.SortOrder
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
  timezone?: Prisma.SortOrder
  status?: Prisma.SortOrder
  startedAt?: Prisma.SortOrder
  completedAt?: Prisma.SortOrder
  userId?: Prisma.SortOrder
}

export type CampaignSumOrderByAggregateInput = {
  totalRecipients?: Prisma.SortOrder
  validRecipients?: Prisma.SortOrder
  invalidRecipients?: Prisma.SortOrder
  ringingTimeoutSeconds?: Prisma.SortOrder
}

export type CampaignCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput> | Prisma.CampaignCreateWithoutUserInput[] | Prisma.CampaignUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutUserInput | Prisma.CampaignCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.CampaignCreateManyUserInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUncheckedCreateNestedManyWithoutUserInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput> | Prisma.CampaignCreateWithoutUserInput[] | Prisma.CampaignUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutUserInput | Prisma.CampaignCreateOrConnectWithoutUserInput[]
  createMany?: Prisma.CampaignCreateManyUserInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput> | Prisma.CampaignCreateWithoutUserInput[] | Prisma.CampaignUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutUserInput | Prisma.CampaignCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutUserInput | Prisma.CampaignUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.CampaignCreateManyUserInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutUserInput | Prisma.CampaignUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutUserInput | Prisma.CampaignUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignUncheckedUpdateManyWithoutUserNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput> | Prisma.CampaignCreateWithoutUserInput[] | Prisma.CampaignUncheckedCreateWithoutUserInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutUserInput | Prisma.CampaignCreateOrConnectWithoutUserInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutUserInput | Prisma.CampaignUpsertWithWhereUniqueWithoutUserInput[]
  createMany?: Prisma.CampaignCreateManyUserInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutUserInput | Prisma.CampaignUpdateWithWhereUniqueWithoutUserInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutUserInput | Prisma.CampaignUpdateManyWithWhereWithoutUserInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUncheckedCreateNestedManyWithoutOrganizationInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[]
  createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput | Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignUncheckedUpdateManyWithoutOrganizationNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput> | Prisma.CampaignCreateWithoutOrganizationInput[] | Prisma.CampaignUncheckedCreateWithoutOrganizationInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOrganizationInput | Prisma.CampaignCreateOrConnectWithoutOrganizationInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpsertWithWhereUniqueWithoutOrganizationInput[]
  createMany?: Prisma.CampaignCreateManyOrganizationInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput | Prisma.CampaignUpdateWithWhereUniqueWithoutOrganizationInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput | Prisma.CampaignUpdateManyWithWhereWithoutOrganizationInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput> | Prisma.CampaignCreateWithoutAgentInput[] | Prisma.CampaignUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutAgentInput | Prisma.CampaignCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.CampaignCreateManyAgentInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUncheckedCreateNestedManyWithoutAgentInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput> | Prisma.CampaignCreateWithoutAgentInput[] | Prisma.CampaignUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutAgentInput | Prisma.CampaignCreateOrConnectWithoutAgentInput[]
  createMany?: Prisma.CampaignCreateManyAgentInputEnvelope
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
}

export type CampaignUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput> | Prisma.CampaignCreateWithoutAgentInput[] | Prisma.CampaignUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutAgentInput | Prisma.CampaignCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutAgentInput | Prisma.CampaignUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.CampaignCreateManyAgentInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutAgentInput | Prisma.CampaignUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutAgentInput | Prisma.CampaignUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignUncheckedUpdateManyWithoutAgentNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput> | Prisma.CampaignCreateWithoutAgentInput[] | Prisma.CampaignUncheckedCreateWithoutAgentInput[]
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutAgentInput | Prisma.CampaignCreateOrConnectWithoutAgentInput[]
  upsert?: Prisma.CampaignUpsertWithWhereUniqueWithoutAgentInput | Prisma.CampaignUpsertWithWhereUniqueWithoutAgentInput[]
  createMany?: Prisma.CampaignCreateManyAgentInputEnvelope
  set?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  disconnect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  delete?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  connect?: Prisma.CampaignWhereUniqueInput | Prisma.CampaignWhereUniqueInput[]
  update?: Prisma.CampaignUpdateWithWhereUniqueWithoutAgentInput | Prisma.CampaignUpdateWithWhereUniqueWithoutAgentInput[]
  updateMany?: Prisma.CampaignUpdateManyWithWhereWithoutAgentInput | Prisma.CampaignUpdateManyWithWhereWithoutAgentInput[]
  deleteMany?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
}

export type CampaignCreateNestedOneWithoutOutboundCallsInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOutboundCallsInput, Prisma.CampaignUncheckedCreateWithoutOutboundCallsInput>
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOutboundCallsInput
  connect?: Prisma.CampaignWhereUniqueInput
}

export type CampaignUpdateOneWithoutOutboundCallsNestedInput = {
  create?: Prisma.XOR<Prisma.CampaignCreateWithoutOutboundCallsInput, Prisma.CampaignUncheckedCreateWithoutOutboundCallsInput>
  connectOrCreate?: Prisma.CampaignCreateOrConnectWithoutOutboundCallsInput
  upsert?: Prisma.CampaignUpsertWithoutOutboundCallsInput
  disconnect?: Prisma.CampaignWhereInput | boolean
  delete?: Prisma.CampaignWhereInput | boolean
  connect?: Prisma.CampaignWhereUniqueInput
  update?: Prisma.XOR<Prisma.XOR<Prisma.CampaignUpdateToOneWithWhereWithoutOutboundCallsInput, Prisma.CampaignUpdateWithoutOutboundCallsInput>, Prisma.CampaignUncheckedUpdateWithoutOutboundCallsInput>
}

export type EnumCampaignStatusFieldUpdateOperationsInput = {
  set?: $Enums.CampaignStatus
}

export type CampaignCreateWithoutUserInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  organization: Prisma.OrganizationCreateNestedOneWithoutCampaignsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCampaignsInput
  outboundCalls?: Prisma.OutboundCallCreateNestedManyWithoutCampaignInput
}

export type CampaignUncheckedCreateWithoutUserInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  outboundCalls?: Prisma.OutboundCallUncheckedCreateNestedManyWithoutCampaignInput
}

export type CampaignCreateOrConnectWithoutUserInput = {
  where: Prisma.CampaignWhereUniqueInput
  create: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput>
}

export type CampaignCreateManyUserInputEnvelope = {
  data: Prisma.CampaignCreateManyUserInput | Prisma.CampaignCreateManyUserInput[]
  skipDuplicates?: boolean
}

export type CampaignUpsertWithWhereUniqueWithoutUserInput = {
  where: Prisma.CampaignWhereUniqueInput
  update: Prisma.XOR<Prisma.CampaignUpdateWithoutUserInput, Prisma.CampaignUncheckedUpdateWithoutUserInput>
  create: Prisma.XOR<Prisma.CampaignCreateWithoutUserInput, Prisma.CampaignUncheckedCreateWithoutUserInput>
}

export type CampaignUpdateWithWhereUniqueWithoutUserInput = {
  where: Prisma.CampaignWhereUniqueInput
  data: Prisma.XOR<Prisma.CampaignUpdateWithoutUserInput, Prisma.CampaignUncheckedUpdateWithoutUserInput>
}

export type CampaignUpdateManyWithWhereWithoutUserInput = {
  where: Prisma.CampaignScalarWhereInput
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyWithoutUserInput>
}

export type CampaignScalarWhereInput = {
  AND?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
  OR?: Prisma.CampaignScalarWhereInput[]
  NOT?: Prisma.CampaignScalarWhereInput | Prisma.CampaignScalarWhereInput[]
  campaignId?: Prisma.StringFilter<"Campaign"> | string
  organizationId?: Prisma.StringFilter<"Campaign"> | string
  name?: Prisma.StringFilter<"Campaign"> | string
  createdAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  updatedAt?: Prisma.DateTimeFilter<"Campaign"> | Date | string
  agentId?: Prisma.StringNullableFilter<"Campaign"> | string | null
  fromNumber?: Prisma.StringFilter<"Campaign"> | string
  scheduledAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  sourceFileKey?: Prisma.StringNullableFilter<"Campaign"> | string | null
  sourceFileName?: Prisma.StringNullableFilter<"Campaign"> | string | null
  totalRecipients?: Prisma.IntFilter<"Campaign"> | number
  validRecipients?: Prisma.IntFilter<"Campaign"> | number
  invalidRecipients?: Prisma.IntFilter<"Campaign"> | number
  ringingTimeoutSeconds?: Prisma.IntFilter<"Campaign"> | number
  timezone?: Prisma.StringFilter<"Campaign"> | string
  status?: Prisma.EnumCampaignStatusFilter<"Campaign"> | $Enums.CampaignStatus
  startedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  completedAt?: Prisma.DateTimeNullableFilter<"Campaign"> | Date | string | null
  userId?: Prisma.StringNullableFilter<"Campaign"> | string | null
}

export type CampaignCreateWithoutOrganizationInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  agent?: Prisma.AgentCreateNestedOneWithoutCampaignsInput
  user?: Prisma.UserCreateNestedOneWithoutCampaignsInput
  outboundCalls?: Prisma.OutboundCallCreateNestedManyWithoutCampaignInput
}

export type CampaignUncheckedCreateWithoutOrganizationInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
  outboundCalls?: Prisma.OutboundCallUncheckedCreateNestedManyWithoutCampaignInput
}

export type CampaignCreateOrConnectWithoutOrganizationInput = {
  where: Prisma.CampaignWhereUniqueInput
  create: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput>
}

export type CampaignCreateManyOrganizationInputEnvelope = {
  data: Prisma.CampaignCreateManyOrganizationInput | Prisma.CampaignCreateManyOrganizationInput[]
  skipDuplicates?: boolean
}

export type CampaignUpsertWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.CampaignWhereUniqueInput
  update: Prisma.XOR<Prisma.CampaignUpdateWithoutOrganizationInput, Prisma.CampaignUncheckedUpdateWithoutOrganizationInput>
  create: Prisma.XOR<Prisma.CampaignCreateWithoutOrganizationInput, Prisma.CampaignUncheckedCreateWithoutOrganizationInput>
}

export type CampaignUpdateWithWhereUniqueWithoutOrganizationInput = {
  where: Prisma.CampaignWhereUniqueInput
  data: Prisma.XOR<Prisma.CampaignUpdateWithoutOrganizationInput, Prisma.CampaignUncheckedUpdateWithoutOrganizationInput>
}

export type CampaignUpdateManyWithWhereWithoutOrganizationInput = {
  where: Prisma.CampaignScalarWhereInput
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyWithoutOrganizationInput>
}

export type CampaignCreateWithoutAgentInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  organization: Prisma.OrganizationCreateNestedOneWithoutCampaignsInput
  user?: Prisma.UserCreateNestedOneWithoutCampaignsInput
  outboundCalls?: Prisma.OutboundCallCreateNestedManyWithoutCampaignInput
}

export type CampaignUncheckedCreateWithoutAgentInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
  outboundCalls?: Prisma.OutboundCallUncheckedCreateNestedManyWithoutCampaignInput
}

export type CampaignCreateOrConnectWithoutAgentInput = {
  where: Prisma.CampaignWhereUniqueInput
  create: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput>
}

export type CampaignCreateManyAgentInputEnvelope = {
  data: Prisma.CampaignCreateManyAgentInput | Prisma.CampaignCreateManyAgentInput[]
  skipDuplicates?: boolean
}

export type CampaignUpsertWithWhereUniqueWithoutAgentInput = {
  where: Prisma.CampaignWhereUniqueInput
  update: Prisma.XOR<Prisma.CampaignUpdateWithoutAgentInput, Prisma.CampaignUncheckedUpdateWithoutAgentInput>
  create: Prisma.XOR<Prisma.CampaignCreateWithoutAgentInput, Prisma.CampaignUncheckedCreateWithoutAgentInput>
}

export type CampaignUpdateWithWhereUniqueWithoutAgentInput = {
  where: Prisma.CampaignWhereUniqueInput
  data: Prisma.XOR<Prisma.CampaignUpdateWithoutAgentInput, Prisma.CampaignUncheckedUpdateWithoutAgentInput>
}

export type CampaignUpdateManyWithWhereWithoutAgentInput = {
  where: Prisma.CampaignScalarWhereInput
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyWithoutAgentInput>
}

export type CampaignCreateWithoutOutboundCallsInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  organization: Prisma.OrganizationCreateNestedOneWithoutCampaignsInput
  agent?: Prisma.AgentCreateNestedOneWithoutCampaignsInput
  user?: Prisma.UserCreateNestedOneWithoutCampaignsInput
}

export type CampaignUncheckedCreateWithoutOutboundCallsInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
}

export type CampaignCreateOrConnectWithoutOutboundCallsInput = {
  where: Prisma.CampaignWhereUniqueInput
  create: Prisma.XOR<Prisma.CampaignCreateWithoutOutboundCallsInput, Prisma.CampaignUncheckedCreateWithoutOutboundCallsInput>
}

export type CampaignUpsertWithoutOutboundCallsInput = {
  update: Prisma.XOR<Prisma.CampaignUpdateWithoutOutboundCallsInput, Prisma.CampaignUncheckedUpdateWithoutOutboundCallsInput>
  create: Prisma.XOR<Prisma.CampaignCreateWithoutOutboundCallsInput, Prisma.CampaignUncheckedCreateWithoutOutboundCallsInput>
  where?: Prisma.CampaignWhereInput
}

export type CampaignUpdateToOneWithWhereWithoutOutboundCallsInput = {
  where?: Prisma.CampaignWhereInput
  data: Prisma.XOR<Prisma.CampaignUpdateWithoutOutboundCallsInput, Prisma.CampaignUncheckedUpdateWithoutOutboundCallsInput>
}

export type CampaignUpdateWithoutOutboundCallsInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCampaignsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCampaignsNestedInput
  user?: Prisma.UserUpdateOneWithoutCampaignsNestedInput
}

export type CampaignUncheckedUpdateWithoutOutboundCallsInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type CampaignCreateManyUserInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
}

export type CampaignUpdateWithoutUserInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCampaignsNestedInput
  agent?: Prisma.AgentUpdateOneWithoutCampaignsNestedInput
  outboundCalls?: Prisma.OutboundCallUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateWithoutUserInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  outboundCalls?: Prisma.OutboundCallUncheckedUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateManyWithoutUserInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}

export type CampaignCreateManyOrganizationInput = {
  campaignId?: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  agentId?: string | null
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
}

export type CampaignUpdateWithoutOrganizationInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  agent?: Prisma.AgentUpdateOneWithoutCampaignsNestedInput
  user?: Prisma.UserUpdateOneWithoutCampaignsNestedInput
  outboundCalls?: Prisma.OutboundCallUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateWithoutOrganizationInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  outboundCalls?: Prisma.OutboundCallUncheckedUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateManyWithoutOrganizationInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  agentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}

export type CampaignCreateManyAgentInput = {
  campaignId?: string
  organizationId: string
  name: string
  createdAt?: Date | string
  updatedAt?: Date | string
  fromNumber: string
  scheduledAt?: Date | string | null
  sourceFileKey?: string | null
  sourceFileName?: string | null
  totalRecipients?: number
  validRecipients?: number
  invalidRecipients?: number
  ringingTimeoutSeconds?: number
  timezone?: string
  status: $Enums.CampaignStatus
  startedAt?: Date | string | null
  completedAt?: Date | string | null
  userId?: string | null
}

export type CampaignUpdateWithoutAgentInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  organization?: Prisma.OrganizationUpdateOneRequiredWithoutCampaignsNestedInput
  user?: Prisma.UserUpdateOneWithoutCampaignsNestedInput
  outboundCalls?: Prisma.OutboundCallUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateWithoutAgentInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  outboundCalls?: Prisma.OutboundCallUncheckedUpdateManyWithoutCampaignNestedInput
}

export type CampaignUncheckedUpdateManyWithoutAgentInput = {
  campaignId?: Prisma.StringFieldUpdateOperationsInput | string
  organizationId?: Prisma.StringFieldUpdateOperationsInput | string
  name?: Prisma.StringFieldUpdateOperationsInput | string
  createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
  fromNumber?: Prisma.StringFieldUpdateOperationsInput | string
  scheduledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  sourceFileKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  sourceFileName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
  totalRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  validRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  invalidRecipients?: Prisma.IntFieldUpdateOperationsInput | number
  ringingTimeoutSeconds?: Prisma.IntFieldUpdateOperationsInput | number
  timezone?: Prisma.StringFieldUpdateOperationsInput | string
  status?: Prisma.EnumCampaignStatusFieldUpdateOperationsInput | $Enums.CampaignStatus
  startedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  completedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}


/**
 * Count Type CampaignCountOutputType
 */

export type CampaignCountOutputType = {
  outboundCalls: number
}

export type CampaignCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  outboundCalls?: boolean | CampaignCountOutputTypeCountOutboundCallsArgs
}

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

/**
 * CampaignCountOutputType without action
 */
export type CampaignCountOutputTypeCountOutboundCallsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.OutboundCallWhereInput
}


export type CampaignSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  campaignId?: boolean
  organizationId?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  agentId?: boolean
  fromNumber?: boolean
  scheduledAt?: boolean
  sourceFileKey?: boolean
  sourceFileName?: boolean
  totalRecipients?: boolean
  validRecipients?: boolean
  invalidRecipients?: boolean
  ringingTimeoutSeconds?: boolean
  timezone?: boolean
  status?: boolean
  startedAt?: boolean
  completedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
  outboundCalls?: boolean | Prisma.Campaign$outboundCallsArgs<ExtArgs>
  _count?: boolean | Prisma.CampaignCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["campaign"]>

export type CampaignSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  campaignId?: boolean
  organizationId?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  agentId?: boolean
  fromNumber?: boolean
  scheduledAt?: boolean
  sourceFileKey?: boolean
  sourceFileName?: boolean
  totalRecipients?: boolean
  validRecipients?: boolean
  invalidRecipients?: boolean
  ringingTimeoutSeconds?: boolean
  timezone?: boolean
  status?: boolean
  startedAt?: boolean
  completedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
}, ExtArgs["result"]["campaign"]>

export type CampaignSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  campaignId?: boolean
  organizationId?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  agentId?: boolean
  fromNumber?: boolean
  scheduledAt?: boolean
  sourceFileKey?: boolean
  sourceFileName?: boolean
  totalRecipients?: boolean
  validRecipients?: boolean
  invalidRecipients?: boolean
  ringingTimeoutSeconds?: boolean
  timezone?: boolean
  status?: boolean
  startedAt?: boolean
  completedAt?: boolean
  userId?: boolean
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
}, ExtArgs["result"]["campaign"]>

export type CampaignSelectScalar = {
  campaignId?: boolean
  organizationId?: boolean
  name?: boolean
  createdAt?: boolean
  updatedAt?: boolean
  agentId?: boolean
  fromNumber?: boolean
  scheduledAt?: boolean
  sourceFileKey?: boolean
  sourceFileName?: boolean
  totalRecipients?: boolean
  validRecipients?: boolean
  invalidRecipients?: boolean
  ringingTimeoutSeconds?: boolean
  timezone?: boolean
  status?: boolean
  startedAt?: boolean
  completedAt?: boolean
  userId?: boolean
}

export type CampaignOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"campaignId" | "organizationId" | "name" | "createdAt" | "updatedAt" | "agentId" | "fromNumber" | "scheduledAt" | "sourceFileKey" | "sourceFileName" | "totalRecipients" | "validRecipients" | "invalidRecipients" | "ringingTimeoutSeconds" | "timezone" | "status" | "startedAt" | "completedAt" | "userId", ExtArgs["result"]["campaign"]>
export type CampaignInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
  outboundCalls?: boolean | Prisma.Campaign$outboundCallsArgs<ExtArgs>
  _count?: boolean | Prisma.CampaignCountOutputTypeDefaultArgs<ExtArgs>
}
export type CampaignIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
}
export type CampaignIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  organization?: boolean | Prisma.OrganizationDefaultArgs<ExtArgs>
  agent?: boolean | Prisma.Campaign$agentArgs<ExtArgs>
  user?: boolean | Prisma.Campaign$userArgs<ExtArgs>
}

export type $CampaignPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "Campaign"
  objects: {
    organization: Prisma.$OrganizationPayload<ExtArgs>
    agent: Prisma.$AgentPayload<ExtArgs> | null
    user: Prisma.$UserPayload<ExtArgs> | null
    outboundCalls: Prisma.$OutboundCallPayload<ExtArgs>[]
  }
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    campaignId: string
    organizationId: string
    name: string
    createdAt: Date
    updatedAt: Date
    agentId: string | null
    fromNumber: string
    scheduledAt: Date | null
    sourceFileKey: string | null
    sourceFileName: string | null
    totalRecipients: number
    validRecipients: number
    invalidRecipients: number
    ringingTimeoutSeconds: number
    timezone: string
    status: $Enums.CampaignStatus
    startedAt: Date | null
    completedAt: Date | null
    userId: string | null
  }, ExtArgs["result"]["campaign"]>
  composites: {}
}

export type CampaignGetPayload<S extends boolean | null | undefined | CampaignDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CampaignPayload, S>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

/**
 * The delegate class that acts as a "Promise-like" for Campaign.
 * 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__CampaignClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  readonly [Symbol.toStringTag]: "PrismaPromise"
  organization<T extends Prisma.OrganizationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrganizationDefaultArgs<ExtArgs>>): Prisma.Prisma__OrganizationClient<runtime.Types.Result.GetResult<Prisma.$OrganizationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  agent<T extends Prisma.Campaign$agentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Campaign$agentArgs<ExtArgs>>): Prisma.Prisma__AgentClient<runtime.Types.Result.GetResult<Prisma.$AgentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  user<T extends Prisma.Campaign$userArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Campaign$userArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  outboundCalls<T extends Prisma.Campaign$outboundCallsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Campaign$outboundCallsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OutboundCallPayload<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 Campaign model
 */
export interface CampaignFieldRefs {
  readonly campaignId: Prisma.FieldRef<"Campaign", 'String'>
  readonly organizationId: Prisma.FieldRef<"Campaign", 'String'>
  readonly name: Prisma.FieldRef<"Campaign", 'String'>
  readonly createdAt: Prisma.FieldRef<"Campaign", 'DateTime'>
  readonly updatedAt: Prisma.FieldRef<"Campaign", 'DateTime'>
  readonly agentId: Prisma.FieldRef<"Campaign", 'String'>
  readonly fromNumber: Prisma.FieldRef<"Campaign", 'String'>
  readonly scheduledAt: Prisma.FieldRef<"Campaign", 'DateTime'>
  readonly sourceFileKey: Prisma.FieldRef<"Campaign", 'String'>
  readonly sourceFileName: Prisma.FieldRef<"Campaign", 'String'>
  readonly totalRecipients: Prisma.FieldRef<"Campaign", 'Int'>
  readonly validRecipients: Prisma.FieldRef<"Campaign", 'Int'>
  readonly invalidRecipients: Prisma.FieldRef<"Campaign", 'Int'>
  readonly ringingTimeoutSeconds: Prisma.FieldRef<"Campaign", 'Int'>
  readonly timezone: Prisma.FieldRef<"Campaign", 'String'>
  readonly status: Prisma.FieldRef<"Campaign", 'CampaignStatus'>
  readonly startedAt: Prisma.FieldRef<"Campaign", 'DateTime'>
  readonly completedAt: Prisma.FieldRef<"Campaign", 'DateTime'>
  readonly userId: Prisma.FieldRef<"Campaign", 'String'>
}


// Custom InputTypes
/**
 * Campaign findUnique
 */
export type CampaignFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * Filter, which Campaign to fetch.
   */
  where: Prisma.CampaignWhereUniqueInput
}

/**
 * Campaign findUniqueOrThrow
 */
export type CampaignFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * Filter, which Campaign to fetch.
   */
  where: Prisma.CampaignWhereUniqueInput
}

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

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

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

/**
 * Campaign create
 */
export type CampaignCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * The data needed to create a Campaign.
   */
  data: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>
}

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

/**
 * Campaign createManyAndReturn
 */
export type CampaignCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * The data used to create many Campaigns.
   */
  data: Prisma.CampaignCreateManyInput | Prisma.CampaignCreateManyInput[]
  skipDuplicates?: boolean
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignIncludeCreateManyAndReturn<ExtArgs> | null
}

/**
 * Campaign update
 */
export type CampaignUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * The data needed to update a Campaign.
   */
  data: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>
  /**
   * Choose, which Campaign to update.
   */
  where: Prisma.CampaignWhereUniqueInput
}

/**
 * Campaign updateMany
 */
export type CampaignUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update Campaigns.
   */
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>
  /**
   * Filter which Campaigns to update
   */
  where?: Prisma.CampaignWhereInput
  /**
   * Limit how many Campaigns to update.
   */
  limit?: number
}

/**
 * Campaign updateManyAndReturn
 */
export type CampaignUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * The data used to update Campaigns.
   */
  data: Prisma.XOR<Prisma.CampaignUpdateManyMutationInput, Prisma.CampaignUncheckedUpdateManyInput>
  /**
   * Filter which Campaigns to update
   */
  where?: Prisma.CampaignWhereInput
  /**
   * Limit how many Campaigns to update.
   */
  limit?: number
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignIncludeUpdateManyAndReturn<ExtArgs> | null
}

/**
 * Campaign upsert
 */
export type CampaignUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * The filter to search for the Campaign to update in case it exists.
   */
  where: Prisma.CampaignWhereUniqueInput
  /**
   * In case the Campaign found by the `where` argument doesn't exist, create a new Campaign with this data.
   */
  create: Prisma.XOR<Prisma.CampaignCreateInput, Prisma.CampaignUncheckedCreateInput>
  /**
   * In case the Campaign was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.CampaignUpdateInput, Prisma.CampaignUncheckedUpdateInput>
}

/**
 * Campaign delete
 */
export type CampaignDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Campaign
   */
  select?: Prisma.CampaignSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Campaign
   */
  omit?: Prisma.CampaignOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.CampaignInclude<ExtArgs> | null
  /**
   * Filter which Campaign to delete.
   */
  where: Prisma.CampaignWhereUniqueInput
}

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

/**
 * Campaign.agent
 */
export type Campaign$agentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the Agent
   */
  select?: Prisma.AgentSelect<ExtArgs> | null
  /**
   * Omit specific fields from the Agent
   */
  omit?: Prisma.AgentOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.AgentInclude<ExtArgs> | null
  where?: Prisma.AgentWhereInput
}

/**
 * Campaign.user
 */
export type Campaign$userArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the User
   */
  select?: Prisma.UserSelect<ExtArgs> | null
  /**
   * Omit specific fields from the User
   */
  omit?: Prisma.UserOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.UserInclude<ExtArgs> | null
  where?: Prisma.UserWhereInput
}

/**
 * Campaign.outboundCalls
 */
export type Campaign$outboundCallsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the OutboundCall
   */
  select?: Prisma.OutboundCallSelect<ExtArgs> | null
  /**
   * Omit specific fields from the OutboundCall
   */
  omit?: Prisma.OutboundCallOmit<ExtArgs> | null
  /**
   * Choose, which related nodes to fetch as well
   */
  include?: Prisma.OutboundCallInclude<ExtArgs> | null
  where?: Prisma.OutboundCallWhereInput
  orderBy?: Prisma.OutboundCallOrderByWithRelationInput | Prisma.OutboundCallOrderByWithRelationInput[]
  cursor?: Prisma.OutboundCallWhereUniqueInput
  take?: number
  skip?: number
  distinct?: Prisma.OutboundCallScalarFieldEnum | Prisma.OutboundCallScalarFieldEnum[]
}

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