/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TelephonyCallSession` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model TelephonyCallSession * Normalized inbound or outbound call, optionally matched to one CRM entity. */ export type TelephonyCallSessionModel = runtime.Types.Result.DefaultSelection export type AggregateTelephonyCallSession = { _count: TelephonyCallSessionCountAggregateOutputType | null _avg: TelephonyCallSessionAvgAggregateOutputType | null _sum: TelephonyCallSessionSumAggregateOutputType | null _min: TelephonyCallSessionMinAggregateOutputType | null _max: TelephonyCallSessionMaxAggregateOutputType | null } export type TelephonyCallSessionAvgAggregateOutputType = { durationSeconds: number | null } export type TelephonyCallSessionSumAggregateOutputType = { durationSeconds: number | null } export type TelephonyCallSessionMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null connectionId: string | null providerCallId: string | null providerUserId: string | null tenantUserId: string | null direction: $Enums.TelephonyCallDirection | null status: $Enums.TelephonyCallStatus | null fromNumber: string | null toNumber: string | null startedAt: Date | null answeredAt: Date | null endedAt: Date | null durationSeconds: number | null matchedKontaktId: string | null matchedLeadId: string | null matchedProjektId: string | null matchConfidence: $Enums.TelephonyMatchConfidence | null manualOverrideAt: Date | null manualOverrideUserId: string | null noteMarkdown: string | null recordingUrl: string | null isDemoData: boolean | null archivedAt: Date | null } export type TelephonyCallSessionMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null connectionId: string | null providerCallId: string | null providerUserId: string | null tenantUserId: string | null direction: $Enums.TelephonyCallDirection | null status: $Enums.TelephonyCallStatus | null fromNumber: string | null toNumber: string | null startedAt: Date | null answeredAt: Date | null endedAt: Date | null durationSeconds: number | null matchedKontaktId: string | null matchedLeadId: string | null matchedProjektId: string | null matchConfidence: $Enums.TelephonyMatchConfidence | null manualOverrideAt: Date | null manualOverrideUserId: string | null noteMarkdown: string | null recordingUrl: string | null isDemoData: boolean | null archivedAt: Date | null } export type TelephonyCallSessionCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number connectionId: number providerCallId: number providerUserId: number tenantUserId: number direction: number status: number fromNumber: number toNumber: number startedAt: number answeredAt: number endedAt: number durationSeconds: number matchedKontaktId: number matchedLeadId: number matchedProjektId: number matchConfidence: number manualOverrideAt: number manualOverrideUserId: number noteMarkdown: number recordingUrl: number isDemoData: number archivedAt: number _all: number } export type TelephonyCallSessionAvgAggregateInputType = { durationSeconds?: true } export type TelephonyCallSessionSumAggregateInputType = { durationSeconds?: true } export type TelephonyCallSessionMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true connectionId?: true providerCallId?: true providerUserId?: true tenantUserId?: true direction?: true status?: true fromNumber?: true toNumber?: true startedAt?: true answeredAt?: true endedAt?: true durationSeconds?: true matchedKontaktId?: true matchedLeadId?: true matchedProjektId?: true matchConfidence?: true manualOverrideAt?: true manualOverrideUserId?: true noteMarkdown?: true recordingUrl?: true isDemoData?: true archivedAt?: true } export type TelephonyCallSessionMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true connectionId?: true providerCallId?: true providerUserId?: true tenantUserId?: true direction?: true status?: true fromNumber?: true toNumber?: true startedAt?: true answeredAt?: true endedAt?: true durationSeconds?: true matchedKontaktId?: true matchedLeadId?: true matchedProjektId?: true matchConfidence?: true manualOverrideAt?: true manualOverrideUserId?: true noteMarkdown?: true recordingUrl?: true isDemoData?: true archivedAt?: true } export type TelephonyCallSessionCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true connectionId?: true providerCallId?: true providerUserId?: true tenantUserId?: true direction?: true status?: true fromNumber?: true toNumber?: true startedAt?: true answeredAt?: true endedAt?: true durationSeconds?: true matchedKontaktId?: true matchedLeadId?: true matchedProjektId?: true matchConfidence?: true manualOverrideAt?: true manualOverrideUserId?: true noteMarkdown?: true recordingUrl?: true isDemoData?: true archivedAt?: true _all?: true } export type TelephonyCallSessionAggregateArgs = { /** * Filter which TelephonyCallSession to aggregate. */ where?: Prisma.TelephonyCallSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyCallSessions to fetch. */ orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TelephonyCallSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyCallSessions 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` TelephonyCallSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TelephonyCallSessions **/ _count?: true | TelephonyCallSessionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: TelephonyCallSessionAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: TelephonyCallSessionSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TelephonyCallSessionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TelephonyCallSessionMaxAggregateInputType } export type GetTelephonyCallSessionAggregateType = { [P in keyof T & keyof AggregateTelephonyCallSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TelephonyCallSessionGroupByArgs = { where?: Prisma.TelephonyCallSessionWhereInput orderBy?: Prisma.TelephonyCallSessionOrderByWithAggregationInput | Prisma.TelephonyCallSessionOrderByWithAggregationInput[] by: Prisma.TelephonyCallSessionScalarFieldEnum[] | Prisma.TelephonyCallSessionScalarFieldEnum having?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput take?: number skip?: number _count?: TelephonyCallSessionCountAggregateInputType | true _avg?: TelephonyCallSessionAvgAggregateInputType _sum?: TelephonyCallSessionSumAggregateInputType _min?: TelephonyCallSessionMinAggregateInputType _max?: TelephonyCallSessionMaxAggregateInputType } export type TelephonyCallSessionGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string connectionId: string providerCallId: string providerUserId: string | null tenantUserId: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date answeredAt: Date | null endedAt: Date | null durationSeconds: number | null matchedKontaktId: string | null matchedLeadId: string | null matchedProjektId: string | null matchConfidence: $Enums.TelephonyMatchConfidence manualOverrideAt: Date | null manualOverrideUserId: string | null noteMarkdown: string | null recordingUrl: string | null isDemoData: boolean archivedAt: Date | null _count: TelephonyCallSessionCountAggregateOutputType | null _avg: TelephonyCallSessionAvgAggregateOutputType | null _sum: TelephonyCallSessionSumAggregateOutputType | null _min: TelephonyCallSessionMinAggregateOutputType | null _max: TelephonyCallSessionMaxAggregateOutputType | null } export type GetTelephonyCallSessionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TelephonyCallSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TelephonyCallSessionWhereInput = { AND?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[] OR?: Prisma.TelephonyCallSessionWhereInput[] NOT?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[] id?: Prisma.StringFilter<"TelephonyCallSession"> | string createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null connection?: Prisma.XOR webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter } export type TelephonyCallSessionOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder connectionId?: Prisma.SortOrder providerCallId?: Prisma.SortOrder providerUserId?: Prisma.SortOrderInput | Prisma.SortOrder tenantUserId?: Prisma.SortOrderInput | Prisma.SortOrder direction?: Prisma.SortOrder status?: Prisma.SortOrder fromNumber?: Prisma.SortOrder toNumber?: Prisma.SortOrder startedAt?: Prisma.SortOrder answeredAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder matchConfidence?: Prisma.SortOrder manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder noteMarkdown?: Prisma.SortOrderInput | Prisma.SortOrder recordingUrl?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder connection?: Prisma.TelephonyConnectionOrderByWithRelationInput webhookEvents?: Prisma.TelephonyWebhookEventOrderByRelationAggregateInput } export type TelephonyCallSessionWhereUniqueInput = Prisma.AtLeast<{ id?: string connectionId_providerCallId?: Prisma.TelephonyCallSessionConnectionIdProviderCallIdCompoundUniqueInput AND?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[] OR?: Prisma.TelephonyCallSessionWhereInput[] NOT?: Prisma.TelephonyCallSessionWhereInput | Prisma.TelephonyCallSessionWhereInput[] createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null connection?: Prisma.XOR webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter }, "id" | "connectionId_providerCallId"> export type TelephonyCallSessionOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder connectionId?: Prisma.SortOrder providerCallId?: Prisma.SortOrder providerUserId?: Prisma.SortOrderInput | Prisma.SortOrder tenantUserId?: Prisma.SortOrderInput | Prisma.SortOrder direction?: Prisma.SortOrder status?: Prisma.SortOrder fromNumber?: Prisma.SortOrder toNumber?: Prisma.SortOrder startedAt?: Prisma.SortOrder answeredAt?: Prisma.SortOrderInput | Prisma.SortOrder endedAt?: Prisma.SortOrderInput | Prisma.SortOrder durationSeconds?: Prisma.SortOrderInput | Prisma.SortOrder matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder matchConfidence?: Prisma.SortOrder manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder noteMarkdown?: Prisma.SortOrderInput | Prisma.SortOrder recordingUrl?: Prisma.SortOrderInput | Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TelephonyCallSessionCountOrderByAggregateInput _avg?: Prisma.TelephonyCallSessionAvgOrderByAggregateInput _max?: Prisma.TelephonyCallSessionMaxOrderByAggregateInput _min?: Prisma.TelephonyCallSessionMinOrderByAggregateInput _sum?: Prisma.TelephonyCallSessionSumOrderByAggregateInput } export type TelephonyCallSessionScalarWhereWithAggregatesInput = { AND?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput | Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[] OR?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[] NOT?: Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput | Prisma.TelephonyCallSessionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string connectionId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string providerCallId?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string providerUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null tenantUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null direction?: Prisma.EnumTelephonyCallDirectionWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string toNumber?: Prisma.StringWithAggregatesFilter<"TelephonyCallSession"> | string startedAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyCallSession"> | Date | string answeredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null endedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null durationSeconds?: Prisma.IntNullableWithAggregatesFilter<"TelephonyCallSession"> | number | null matchedKontaktId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null matchedLeadId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null matchedProjektId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceWithAggregatesFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null manualOverrideUserId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null noteMarkdown?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null recordingUrl?: Prisma.StringNullableWithAggregatesFilter<"TelephonyCallSession"> | string | null isDemoData?: Prisma.BoolWithAggregatesFilter<"TelephonyCallSession"> | boolean archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TelephonyCallSession"> | Date | string | null } export type TelephonyCallSessionCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null connection: Prisma.TelephonyConnectionCreateNestedOneWithoutCallSessionsInput webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutCallSessionInput } export type TelephonyCallSessionUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string connectionId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutCallSessionInput } export type TelephonyCallSessionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null connection?: Prisma.TelephonyConnectionUpdateOneRequiredWithoutCallSessionsNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutCallSessionNestedInput } export type TelephonyCallSessionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string connectionId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutCallSessionNestedInput } export type TelephonyCallSessionCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string connectionId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TelephonyCallSessionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TelephonyCallSessionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string connectionId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TelephonyCallSessionListRelationFilter = { every?: Prisma.TelephonyCallSessionWhereInput some?: Prisma.TelephonyCallSessionWhereInput none?: Prisma.TelephonyCallSessionWhereInput } export type TelephonyCallSessionOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type TelephonyCallSessionConnectionIdProviderCallIdCompoundUniqueInput = { connectionId: string providerCallId: string } export type TelephonyCallSessionCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder connectionId?: Prisma.SortOrder providerCallId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder tenantUserId?: Prisma.SortOrder direction?: Prisma.SortOrder status?: Prisma.SortOrder fromNumber?: Prisma.SortOrder toNumber?: Prisma.SortOrder startedAt?: Prisma.SortOrder answeredAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationSeconds?: Prisma.SortOrder matchedKontaktId?: Prisma.SortOrder matchedLeadId?: Prisma.SortOrder matchedProjektId?: Prisma.SortOrder matchConfidence?: Prisma.SortOrder manualOverrideAt?: Prisma.SortOrder manualOverrideUserId?: Prisma.SortOrder noteMarkdown?: Prisma.SortOrder recordingUrl?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TelephonyCallSessionAvgOrderByAggregateInput = { durationSeconds?: Prisma.SortOrder } export type TelephonyCallSessionMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder connectionId?: Prisma.SortOrder providerCallId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder tenantUserId?: Prisma.SortOrder direction?: Prisma.SortOrder status?: Prisma.SortOrder fromNumber?: Prisma.SortOrder toNumber?: Prisma.SortOrder startedAt?: Prisma.SortOrder answeredAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationSeconds?: Prisma.SortOrder matchedKontaktId?: Prisma.SortOrder matchedLeadId?: Prisma.SortOrder matchedProjektId?: Prisma.SortOrder matchConfidence?: Prisma.SortOrder manualOverrideAt?: Prisma.SortOrder manualOverrideUserId?: Prisma.SortOrder noteMarkdown?: Prisma.SortOrder recordingUrl?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TelephonyCallSessionMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder connectionId?: Prisma.SortOrder providerCallId?: Prisma.SortOrder providerUserId?: Prisma.SortOrder tenantUserId?: Prisma.SortOrder direction?: Prisma.SortOrder status?: Prisma.SortOrder fromNumber?: Prisma.SortOrder toNumber?: Prisma.SortOrder startedAt?: Prisma.SortOrder answeredAt?: Prisma.SortOrder endedAt?: Prisma.SortOrder durationSeconds?: Prisma.SortOrder matchedKontaktId?: Prisma.SortOrder matchedLeadId?: Prisma.SortOrder matchedProjektId?: Prisma.SortOrder matchConfidence?: Prisma.SortOrder manualOverrideAt?: Prisma.SortOrder manualOverrideUserId?: Prisma.SortOrder noteMarkdown?: Prisma.SortOrder recordingUrl?: Prisma.SortOrder isDemoData?: Prisma.SortOrder archivedAt?: Prisma.SortOrder } export type TelephonyCallSessionSumOrderByAggregateInput = { durationSeconds?: Prisma.SortOrder } export type TelephonyCallSessionNullableScalarRelationFilter = { is?: Prisma.TelephonyCallSessionWhereInput | null isNot?: Prisma.TelephonyCallSessionWhereInput | null } export type TelephonyCallSessionCreateNestedManyWithoutConnectionInput = { create?: Prisma.XOR | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[] connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[] createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] } export type TelephonyCallSessionUncheckedCreateNestedManyWithoutConnectionInput = { create?: Prisma.XOR | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[] connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[] createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] } export type TelephonyCallSessionUpdateManyWithoutConnectionNestedInput = { create?: Prisma.XOR | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[] connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[] upsert?: Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput[] createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope set?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] disconnect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] delete?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] update?: Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput[] updateMany?: Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput[] deleteMany?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[] } export type TelephonyCallSessionUncheckedUpdateManyWithoutConnectionNestedInput = { create?: Prisma.XOR | Prisma.TelephonyCallSessionCreateWithoutConnectionInput[] | Prisma.TelephonyCallSessionUncheckedCreateWithoutConnectionInput[] connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput | Prisma.TelephonyCallSessionCreateOrConnectWithoutConnectionInput[] upsert?: Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput[] createMany?: Prisma.TelephonyCallSessionCreateManyConnectionInputEnvelope set?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] disconnect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] delete?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] connect?: Prisma.TelephonyCallSessionWhereUniqueInput | Prisma.TelephonyCallSessionWhereUniqueInput[] update?: Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput[] updateMany?: Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput | Prisma.TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput[] deleteMany?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[] } export type EnumTelephonyCallDirectionFieldUpdateOperationsInput = { set?: $Enums.TelephonyCallDirection } export type EnumTelephonyCallStatusFieldUpdateOperationsInput = { set?: $Enums.TelephonyCallStatus } export type EnumTelephonyMatchConfidenceFieldUpdateOperationsInput = { set?: $Enums.TelephonyMatchConfidence } export type TelephonyCallSessionCreateNestedOneWithoutWebhookEventsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput connect?: Prisma.TelephonyCallSessionWhereUniqueInput } export type TelephonyCallSessionUpdateOneWithoutWebhookEventsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput upsert?: Prisma.TelephonyCallSessionUpsertWithoutWebhookEventsInput disconnect?: Prisma.TelephonyCallSessionWhereInput | boolean delete?: Prisma.TelephonyCallSessionWhereInput | boolean connect?: Prisma.TelephonyCallSessionWhereUniqueInput update?: Prisma.XOR, Prisma.TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput> } export type TelephonyCallSessionCreateWithoutConnectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutCallSessionInput } export type TelephonyCallSessionUncheckedCreateWithoutConnectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutCallSessionInput } export type TelephonyCallSessionCreateOrConnectWithoutConnectionInput = { where: Prisma.TelephonyCallSessionWhereUniqueInput create: Prisma.XOR } export type TelephonyCallSessionCreateManyConnectionInputEnvelope = { data: Prisma.TelephonyCallSessionCreateManyConnectionInput | Prisma.TelephonyCallSessionCreateManyConnectionInput[] skipDuplicates?: boolean } export type TelephonyCallSessionUpsertWithWhereUniqueWithoutConnectionInput = { where: Prisma.TelephonyCallSessionWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TelephonyCallSessionUpdateWithWhereUniqueWithoutConnectionInput = { where: Prisma.TelephonyCallSessionWhereUniqueInput data: Prisma.XOR } export type TelephonyCallSessionUpdateManyWithWhereWithoutConnectionInput = { where: Prisma.TelephonyCallSessionScalarWhereInput data: Prisma.XOR } export type TelephonyCallSessionScalarWhereInput = { AND?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[] OR?: Prisma.TelephonyCallSessionScalarWhereInput[] NOT?: Prisma.TelephonyCallSessionScalarWhereInput | Prisma.TelephonyCallSessionScalarWhereInput[] id?: Prisma.StringFilter<"TelephonyCallSession"> | string createdAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string updatedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string tenantId?: Prisma.StringFilter<"TelephonyCallSession"> | string connectionId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerCallId?: Prisma.StringFilter<"TelephonyCallSession"> | string providerUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null tenantUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null direction?: Prisma.EnumTelephonyCallDirectionFilter<"TelephonyCallSession"> | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFilter<"TelephonyCallSession"> | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string toNumber?: Prisma.StringFilter<"TelephonyCallSession"> | string startedAt?: Prisma.DateTimeFilter<"TelephonyCallSession"> | Date | string answeredAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null endedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null durationSeconds?: Prisma.IntNullableFilter<"TelephonyCallSession"> | number | null matchedKontaktId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedLeadId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchedProjektId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFilter<"TelephonyCallSession"> | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null manualOverrideUserId?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null noteMarkdown?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null recordingUrl?: Prisma.StringNullableFilter<"TelephonyCallSession"> | string | null isDemoData?: Prisma.BoolFilter<"TelephonyCallSession"> | boolean archivedAt?: Prisma.DateTimeNullableFilter<"TelephonyCallSession"> | Date | string | null } export type TelephonyCallSessionCreateWithoutWebhookEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null connection: Prisma.TelephonyConnectionCreateNestedOneWithoutCallSessionsInput } export type TelephonyCallSessionUncheckedCreateWithoutWebhookEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string connectionId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TelephonyCallSessionCreateOrConnectWithoutWebhookEventsInput = { where: Prisma.TelephonyCallSessionWhereUniqueInput create: Prisma.XOR } export type TelephonyCallSessionUpsertWithoutWebhookEventsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TelephonyCallSessionWhereInput } export type TelephonyCallSessionUpdateToOneWithWhereWithoutWebhookEventsInput = { where?: Prisma.TelephonyCallSessionWhereInput data: Prisma.XOR } export type TelephonyCallSessionUpdateWithoutWebhookEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null connection?: Prisma.TelephonyConnectionUpdateOneRequiredWithoutCallSessionsNestedInput } export type TelephonyCallSessionUncheckedUpdateWithoutWebhookEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string connectionId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } export type TelephonyCallSessionCreateManyConnectionInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string providerCallId: string providerUserId?: string | null tenantUserId?: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date | string answeredAt?: Date | string | null endedAt?: Date | string | null durationSeconds?: number | null matchedKontaktId?: string | null matchedLeadId?: string | null matchedProjektId?: string | null matchConfidence?: $Enums.TelephonyMatchConfidence manualOverrideAt?: Date | string | null manualOverrideUserId?: string | null noteMarkdown?: string | null recordingUrl?: string | null isDemoData?: boolean archivedAt?: Date | string | null } export type TelephonyCallSessionUpdateWithoutConnectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutCallSessionNestedInput } export type TelephonyCallSessionUncheckedUpdateWithoutConnectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutCallSessionNestedInput } export type TelephonyCallSessionUncheckedUpdateManyWithoutConnectionInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string providerCallId?: Prisma.StringFieldUpdateOperationsInput | string providerUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null direction?: Prisma.EnumTelephonyCallDirectionFieldUpdateOperationsInput | $Enums.TelephonyCallDirection status?: Prisma.EnumTelephonyCallStatusFieldUpdateOperationsInput | $Enums.TelephonyCallStatus fromNumber?: Prisma.StringFieldUpdateOperationsInput | string toNumber?: Prisma.StringFieldUpdateOperationsInput | string startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string answeredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null endedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null durationSeconds?: Prisma.NullableIntFieldUpdateOperationsInput | number | null matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null matchConfidence?: Prisma.EnumTelephonyMatchConfidenceFieldUpdateOperationsInput | $Enums.TelephonyMatchConfidence manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null noteMarkdown?: Prisma.NullableStringFieldUpdateOperationsInput | string | null recordingUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null } /** * Count Type TelephonyCallSessionCountOutputType */ export type TelephonyCallSessionCountOutputType = { webhookEvents: number } export type TelephonyCallSessionCountOutputTypeSelect = { webhookEvents?: boolean | TelephonyCallSessionCountOutputTypeCountWebhookEventsArgs } /** * TelephonyCallSessionCountOutputType without action */ export type TelephonyCallSessionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TelephonyCallSessionCountOutputType */ select?: Prisma.TelephonyCallSessionCountOutputTypeSelect | null } /** * TelephonyCallSessionCountOutputType without action */ export type TelephonyCallSessionCountOutputTypeCountWebhookEventsArgs = { where?: Prisma.TelephonyWebhookEventWhereInput } export type TelephonyCallSessionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean connectionId?: boolean providerCallId?: boolean providerUserId?: boolean tenantUserId?: boolean direction?: boolean status?: boolean fromNumber?: boolean toNumber?: boolean startedAt?: boolean answeredAt?: boolean endedAt?: boolean durationSeconds?: boolean matchedKontaktId?: boolean matchedLeadId?: boolean matchedProjektId?: boolean matchConfidence?: boolean manualOverrideAt?: boolean manualOverrideUserId?: boolean noteMarkdown?: boolean recordingUrl?: boolean isDemoData?: boolean archivedAt?: boolean connection?: boolean | Prisma.TelephonyConnectionDefaultArgs webhookEvents?: boolean | Prisma.TelephonyCallSession$webhookEventsArgs _count?: boolean | Prisma.TelephonyCallSessionCountOutputTypeDefaultArgs }, ExtArgs["result"]["telephonyCallSession"]> export type TelephonyCallSessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean connectionId?: boolean providerCallId?: boolean providerUserId?: boolean tenantUserId?: boolean direction?: boolean status?: boolean fromNumber?: boolean toNumber?: boolean startedAt?: boolean answeredAt?: boolean endedAt?: boolean durationSeconds?: boolean matchedKontaktId?: boolean matchedLeadId?: boolean matchedProjektId?: boolean matchConfidence?: boolean manualOverrideAt?: boolean manualOverrideUserId?: boolean noteMarkdown?: boolean recordingUrl?: boolean isDemoData?: boolean archivedAt?: boolean connection?: boolean | Prisma.TelephonyConnectionDefaultArgs }, ExtArgs["result"]["telephonyCallSession"]> export type TelephonyCallSessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean connectionId?: boolean providerCallId?: boolean providerUserId?: boolean tenantUserId?: boolean direction?: boolean status?: boolean fromNumber?: boolean toNumber?: boolean startedAt?: boolean answeredAt?: boolean endedAt?: boolean durationSeconds?: boolean matchedKontaktId?: boolean matchedLeadId?: boolean matchedProjektId?: boolean matchConfidence?: boolean manualOverrideAt?: boolean manualOverrideUserId?: boolean noteMarkdown?: boolean recordingUrl?: boolean isDemoData?: boolean archivedAt?: boolean connection?: boolean | Prisma.TelephonyConnectionDefaultArgs }, ExtArgs["result"]["telephonyCallSession"]> export type TelephonyCallSessionSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean connectionId?: boolean providerCallId?: boolean providerUserId?: boolean tenantUserId?: boolean direction?: boolean status?: boolean fromNumber?: boolean toNumber?: boolean startedAt?: boolean answeredAt?: boolean endedAt?: boolean durationSeconds?: boolean matchedKontaktId?: boolean matchedLeadId?: boolean matchedProjektId?: boolean matchConfidence?: boolean manualOverrideAt?: boolean manualOverrideUserId?: boolean noteMarkdown?: boolean recordingUrl?: boolean isDemoData?: boolean archivedAt?: boolean } export type TelephonyCallSessionOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "connectionId" | "providerCallId" | "providerUserId" | "tenantUserId" | "direction" | "status" | "fromNumber" | "toNumber" | "startedAt" | "answeredAt" | "endedAt" | "durationSeconds" | "matchedKontaktId" | "matchedLeadId" | "matchedProjektId" | "matchConfidence" | "manualOverrideAt" | "manualOverrideUserId" | "noteMarkdown" | "recordingUrl" | "isDemoData" | "archivedAt", ExtArgs["result"]["telephonyCallSession"]> export type TelephonyCallSessionInclude = { connection?: boolean | Prisma.TelephonyConnectionDefaultArgs webhookEvents?: boolean | Prisma.TelephonyCallSession$webhookEventsArgs _count?: boolean | Prisma.TelephonyCallSessionCountOutputTypeDefaultArgs } export type TelephonyCallSessionIncludeCreateManyAndReturn = { connection?: boolean | Prisma.TelephonyConnectionDefaultArgs } export type TelephonyCallSessionIncludeUpdateManyAndReturn = { connection?: boolean | Prisma.TelephonyConnectionDefaultArgs } export type $TelephonyCallSessionPayload = { name: "TelephonyCallSession" objects: { connection: Prisma.$TelephonyConnectionPayload webhookEvents: Prisma.$TelephonyWebhookEventPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string connectionId: string providerCallId: string providerUserId: string | null tenantUserId: string | null direction: $Enums.TelephonyCallDirection status: $Enums.TelephonyCallStatus fromNumber: string toNumber: string startedAt: Date answeredAt: Date | null endedAt: Date | null durationSeconds: number | null matchedKontaktId: string | null matchedLeadId: string | null matchedProjektId: string | null matchConfidence: $Enums.TelephonyMatchConfidence manualOverrideAt: Date | null manualOverrideUserId: string | null noteMarkdown: string | null recordingUrl: string | null isDemoData: boolean archivedAt: Date | null }, ExtArgs["result"]["telephonyCallSession"]> composites: {} } export type TelephonyCallSessionGetPayload = runtime.Types.Result.GetResult export type TelephonyCallSessionCountArgs = Omit & { select?: TelephonyCallSessionCountAggregateInputType | true } export interface TelephonyCallSessionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TelephonyCallSession'], meta: { name: 'TelephonyCallSession' } } /** * Find zero or one TelephonyCallSession that matches the filter. * @param {TelephonyCallSessionFindUniqueArgs} args - Arguments to find a TelephonyCallSession * @example * // Get one TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TelephonyCallSession that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TelephonyCallSessionFindUniqueOrThrowArgs} args - Arguments to find a TelephonyCallSession * @example * // Get one TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TelephonyCallSession 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 {TelephonyCallSessionFindFirstArgs} args - Arguments to find a TelephonyCallSession * @example * // Get one TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TelephonyCallSession 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 {TelephonyCallSessionFindFirstOrThrowArgs} args - Arguments to find a TelephonyCallSession * @example * // Get one TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TelephonyCallSessions 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 {TelephonyCallSessionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TelephonyCallSessions * const telephonyCallSessions = await prisma.telephonyCallSession.findMany() * * // Get first 10 TelephonyCallSessions * const telephonyCallSessions = await prisma.telephonyCallSession.findMany({ take: 10 }) * * // Only select the `id` * const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TelephonyCallSession. * @param {TelephonyCallSessionCreateArgs} args - Arguments to create a TelephonyCallSession. * @example * // Create one TelephonyCallSession * const TelephonyCallSession = await prisma.telephonyCallSession.create({ * data: { * // ... data to create a TelephonyCallSession * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TelephonyCallSessions. * @param {TelephonyCallSessionCreateManyArgs} args - Arguments to create many TelephonyCallSessions. * @example * // Create many TelephonyCallSessions * const telephonyCallSession = await prisma.telephonyCallSession.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TelephonyCallSessions and returns the data saved in the database. * @param {TelephonyCallSessionCreateManyAndReturnArgs} args - Arguments to create many TelephonyCallSessions. * @example * // Create many TelephonyCallSessions * const telephonyCallSession = await prisma.telephonyCallSession.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TelephonyCallSessions and only return the `id` * const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a TelephonyCallSession. * @param {TelephonyCallSessionDeleteArgs} args - Arguments to delete one TelephonyCallSession. * @example * // Delete one TelephonyCallSession * const TelephonyCallSession = await prisma.telephonyCallSession.delete({ * where: { * // ... filter to delete one TelephonyCallSession * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TelephonyCallSession. * @param {TelephonyCallSessionUpdateArgs} args - Arguments to update one TelephonyCallSession. * @example * // Update one TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TelephonyCallSessions. * @param {TelephonyCallSessionDeleteManyArgs} args - Arguments to filter TelephonyCallSessions to delete. * @example * // Delete a few TelephonyCallSessions * const { count } = await prisma.telephonyCallSession.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TelephonyCallSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyCallSessionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TelephonyCallSessions * const telephonyCallSession = await prisma.telephonyCallSession.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TelephonyCallSessions and returns the data updated in the database. * @param {TelephonyCallSessionUpdateManyAndReturnArgs} args - Arguments to update many TelephonyCallSessions. * @example * // Update many TelephonyCallSessions * const telephonyCallSession = await prisma.telephonyCallSession.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TelephonyCallSessions and only return the `id` * const telephonyCallSessionWithIdOnly = await prisma.telephonyCallSession.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one TelephonyCallSession. * @param {TelephonyCallSessionUpsertArgs} args - Arguments to update or create a TelephonyCallSession. * @example * // Update or create a TelephonyCallSession * const telephonyCallSession = await prisma.telephonyCallSession.upsert({ * create: { * // ... data to create a TelephonyCallSession * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TelephonyCallSession we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyCallSessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TelephonyCallSessions. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyCallSessionCountArgs} args - Arguments to filter TelephonyCallSessions to count. * @example * // Count the number of TelephonyCallSessions * const count = await prisma.telephonyCallSession.count({ * where: { * // ... the filter for the TelephonyCallSessions we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a TelephonyCallSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyCallSessionAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by TelephonyCallSession. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyCallSessionGroupByArgs} 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 TelephonyCallSessionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TelephonyCallSessionGroupByArgs['orderBy'] } : { orderBy?: TelephonyCallSessionGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetTelephonyCallSessionGroupByPayload : Prisma.PrismaPromise /** * Fields of the TelephonyCallSession model */ readonly fields: TelephonyCallSessionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TelephonyCallSession. * 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__TelephonyCallSessionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" connection = {}>(args?: Prisma.Subset>): Prisma.Prisma__TelephonyConnectionClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> webhookEvents = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the TelephonyCallSession model */ export interface TelephonyCallSessionFieldRefs { readonly id: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly createdAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly tenantId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly connectionId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly providerCallId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly providerUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly tenantUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly direction: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyCallDirection'> readonly status: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyCallStatus'> readonly fromNumber: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly toNumber: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly startedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly answeredAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly endedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly durationSeconds: Prisma.FieldRef<"TelephonyCallSession", 'Int'> readonly matchedKontaktId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly matchedLeadId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly matchedProjektId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly matchConfidence: Prisma.FieldRef<"TelephonyCallSession", 'TelephonyMatchConfidence'> readonly manualOverrideAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> readonly manualOverrideUserId: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly noteMarkdown: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly recordingUrl: Prisma.FieldRef<"TelephonyCallSession", 'String'> readonly isDemoData: Prisma.FieldRef<"TelephonyCallSession", 'Boolean'> readonly archivedAt: Prisma.FieldRef<"TelephonyCallSession", 'DateTime'> } // Custom InputTypes /** * TelephonyCallSession findUnique */ export type TelephonyCallSessionFindUniqueArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter, which TelephonyCallSession to fetch. */ where: Prisma.TelephonyCallSessionWhereUniqueInput } /** * TelephonyCallSession findUniqueOrThrow */ export type TelephonyCallSessionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter, which TelephonyCallSession to fetch. */ where: Prisma.TelephonyCallSessionWhereUniqueInput } /** * TelephonyCallSession findFirst */ export type TelephonyCallSessionFindFirstArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter, which TelephonyCallSession to fetch. */ where?: Prisma.TelephonyCallSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyCallSessions to fetch. */ orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TelephonyCallSessions. */ cursor?: Prisma.TelephonyCallSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyCallSessions 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` TelephonyCallSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyCallSessions. */ distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[] } /** * TelephonyCallSession findFirstOrThrow */ export type TelephonyCallSessionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter, which TelephonyCallSession to fetch. */ where?: Prisma.TelephonyCallSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyCallSessions to fetch. */ orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TelephonyCallSessions. */ cursor?: Prisma.TelephonyCallSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyCallSessions 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` TelephonyCallSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyCallSessions. */ distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[] } /** * TelephonyCallSession findMany */ export type TelephonyCallSessionFindManyArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter, which TelephonyCallSessions to fetch. */ where?: Prisma.TelephonyCallSessionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyCallSessions to fetch. */ orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TelephonyCallSessions. */ cursor?: Prisma.TelephonyCallSessionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyCallSessions 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` TelephonyCallSessions. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyCallSessions. */ distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[] } /** * TelephonyCallSession create */ export type TelephonyCallSessionCreateArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * The data needed to create a TelephonyCallSession. */ data: Prisma.XOR } /** * TelephonyCallSession createMany */ export type TelephonyCallSessionCreateManyArgs = { /** * The data used to create many TelephonyCallSessions. */ data: Prisma.TelephonyCallSessionCreateManyInput | Prisma.TelephonyCallSessionCreateManyInput[] skipDuplicates?: boolean } /** * TelephonyCallSession createManyAndReturn */ export type TelephonyCallSessionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelectCreateManyAndReturn | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * The data used to create many TelephonyCallSessions. */ data: Prisma.TelephonyCallSessionCreateManyInput | Prisma.TelephonyCallSessionCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionIncludeCreateManyAndReturn | null } /** * TelephonyCallSession update */ export type TelephonyCallSessionUpdateArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * The data needed to update a TelephonyCallSession. */ data: Prisma.XOR /** * Choose, which TelephonyCallSession to update. */ where: Prisma.TelephonyCallSessionWhereUniqueInput } /** * TelephonyCallSession updateMany */ export type TelephonyCallSessionUpdateManyArgs = { /** * The data used to update TelephonyCallSessions. */ data: Prisma.XOR /** * Filter which TelephonyCallSessions to update */ where?: Prisma.TelephonyCallSessionWhereInput /** * Limit how many TelephonyCallSessions to update. */ limit?: number } /** * TelephonyCallSession updateManyAndReturn */ export type TelephonyCallSessionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelectUpdateManyAndReturn | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * The data used to update TelephonyCallSessions. */ data: Prisma.XOR /** * Filter which TelephonyCallSessions to update */ where?: Prisma.TelephonyCallSessionWhereInput /** * Limit how many TelephonyCallSessions to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionIncludeUpdateManyAndReturn | null } /** * TelephonyCallSession upsert */ export type TelephonyCallSessionUpsertArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * The filter to search for the TelephonyCallSession to update in case it exists. */ where: Prisma.TelephonyCallSessionWhereUniqueInput /** * In case the TelephonyCallSession found by the `where` argument doesn't exist, create a new TelephonyCallSession with this data. */ create: Prisma.XOR /** * In case the TelephonyCallSession was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TelephonyCallSession delete */ export type TelephonyCallSessionDeleteArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null /** * Filter which TelephonyCallSession to delete. */ where: Prisma.TelephonyCallSessionWhereUniqueInput } /** * TelephonyCallSession deleteMany */ export type TelephonyCallSessionDeleteManyArgs = { /** * Filter which TelephonyCallSessions to delete */ where?: Prisma.TelephonyCallSessionWhereInput /** * Limit how many TelephonyCallSessions to delete. */ limit?: number } /** * TelephonyCallSession.webhookEvents */ export type TelephonyCallSession$webhookEventsArgs = { /** * Select specific fields to fetch from the TelephonyWebhookEvent */ select?: Prisma.TelephonyWebhookEventSelect | null /** * Omit specific fields from the TelephonyWebhookEvent */ omit?: Prisma.TelephonyWebhookEventOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyWebhookEventInclude | null where?: Prisma.TelephonyWebhookEventWhereInput orderBy?: Prisma.TelephonyWebhookEventOrderByWithRelationInput | Prisma.TelephonyWebhookEventOrderByWithRelationInput[] cursor?: Prisma.TelephonyWebhookEventWhereUniqueInput take?: number skip?: number distinct?: Prisma.TelephonyWebhookEventScalarFieldEnum | Prisma.TelephonyWebhookEventScalarFieldEnum[] } /** * TelephonyCallSession without action */ export type TelephonyCallSessionDefaultArgs = { /** * Select specific fields to fetch from the TelephonyCallSession */ select?: Prisma.TelephonyCallSessionSelect | null /** * Omit specific fields from the TelephonyCallSession */ omit?: Prisma.TelephonyCallSessionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyCallSessionInclude | null }