/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `TelephonyConnection` 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 TelephonyConnection * Tenant-specific provider extension of one Apps Engine DataConnection. * Credentials and lifecycle status remain canonical on DataConnection. */ export type TelephonyConnectionModel = runtime.Types.Result.DefaultSelection export type AggregateTelephonyConnection = { _count: TelephonyConnectionCountAggregateOutputType | null _min: TelephonyConnectionMinAggregateOutputType | null _max: TelephonyConnectionMaxAggregateOutputType | null } export type TelephonyConnectionMinAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null dataConnectionId: string | null provider: $Enums.TelephonyProvider | null providerAccountId: string | null providerAccountName: string | null webhookId: string | null webhookTokenHash: string | null } export type TelephonyConnectionMaxAggregateOutputType = { id: string | null createdAt: Date | null updatedAt: Date | null tenantId: string | null dataConnectionId: string | null provider: $Enums.TelephonyProvider | null providerAccountId: string | null providerAccountName: string | null webhookId: string | null webhookTokenHash: string | null } export type TelephonyConnectionCountAggregateOutputType = { id: number createdAt: number updatedAt: number tenantId: number dataConnectionId: number provider: number providerAccountId: number providerAccountName: number webhookId: number webhookTokenHash: number _all: number } export type TelephonyConnectionMinAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true dataConnectionId?: true provider?: true providerAccountId?: true providerAccountName?: true webhookId?: true webhookTokenHash?: true } export type TelephonyConnectionMaxAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true dataConnectionId?: true provider?: true providerAccountId?: true providerAccountName?: true webhookId?: true webhookTokenHash?: true } export type TelephonyConnectionCountAggregateInputType = { id?: true createdAt?: true updatedAt?: true tenantId?: true dataConnectionId?: true provider?: true providerAccountId?: true providerAccountName?: true webhookId?: true webhookTokenHash?: true _all?: true } export type TelephonyConnectionAggregateArgs = { /** * Filter which TelephonyConnection to aggregate. */ where?: Prisma.TelephonyConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyConnections to fetch. */ orderBy?: Prisma.TelephonyConnectionOrderByWithRelationInput | Prisma.TelephonyConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.TelephonyConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyConnections 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` TelephonyConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned TelephonyConnections **/ _count?: true | TelephonyConnectionCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: TelephonyConnectionMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: TelephonyConnectionMaxAggregateInputType } export type GetTelephonyConnectionAggregateType = { [P in keyof T & keyof AggregateTelephonyConnection]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TelephonyConnectionGroupByArgs = { where?: Prisma.TelephonyConnectionWhereInput orderBy?: Prisma.TelephonyConnectionOrderByWithAggregationInput | Prisma.TelephonyConnectionOrderByWithAggregationInput[] by: Prisma.TelephonyConnectionScalarFieldEnum[] | Prisma.TelephonyConnectionScalarFieldEnum having?: Prisma.TelephonyConnectionScalarWhereWithAggregatesInput take?: number skip?: number _count?: TelephonyConnectionCountAggregateInputType | true _min?: TelephonyConnectionMinAggregateInputType _max?: TelephonyConnectionMaxAggregateInputType } export type TelephonyConnectionGroupByOutputType = { id: string createdAt: Date updatedAt: Date tenantId: string dataConnectionId: string provider: $Enums.TelephonyProvider providerAccountId: string | null providerAccountName: string | null webhookId: string | null webhookTokenHash: string | null _count: TelephonyConnectionCountAggregateOutputType | null _min: TelephonyConnectionMinAggregateOutputType | null _max: TelephonyConnectionMaxAggregateOutputType | null } export type GetTelephonyConnectionGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TelephonyConnectionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type TelephonyConnectionWhereInput = { AND?: Prisma.TelephonyConnectionWhereInput | Prisma.TelephonyConnectionWhereInput[] OR?: Prisma.TelephonyConnectionWhereInput[] NOT?: Prisma.TelephonyConnectionWhereInput | Prisma.TelephonyConnectionWhereInput[] id?: Prisma.StringFilter<"TelephonyConnection"> | string createdAt?: Prisma.DateTimeFilter<"TelephonyConnection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"TelephonyConnection"> | Date | string tenantId?: Prisma.StringFilter<"TelephonyConnection"> | string dataConnectionId?: Prisma.StringFilter<"TelephonyConnection"> | string provider?: Prisma.EnumTelephonyProviderFilter<"TelephonyConnection"> | $Enums.TelephonyProvider providerAccountId?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null providerAccountName?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null webhookId?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null webhookTokenHash?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null userBindings?: Prisma.TelephonyUserBindingListRelationFilter callSessions?: Prisma.TelephonyCallSessionListRelationFilter webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter } export type TelephonyConnectionOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder dataConnectionId?: Prisma.SortOrder provider?: Prisma.SortOrder providerAccountId?: Prisma.SortOrderInput | Prisma.SortOrder providerAccountName?: Prisma.SortOrderInput | Prisma.SortOrder webhookId?: Prisma.SortOrderInput | Prisma.SortOrder webhookTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder userBindings?: Prisma.TelephonyUserBindingOrderByRelationAggregateInput callSessions?: Prisma.TelephonyCallSessionOrderByRelationAggregateInput webhookEvents?: Prisma.TelephonyWebhookEventOrderByRelationAggregateInput } export type TelephonyConnectionWhereUniqueInput = Prisma.AtLeast<{ id?: string dataConnectionId?: string webhookTokenHash?: string tenantId_provider?: Prisma.TelephonyConnectionTenantIdProviderCompoundUniqueInput AND?: Prisma.TelephonyConnectionWhereInput | Prisma.TelephonyConnectionWhereInput[] OR?: Prisma.TelephonyConnectionWhereInput[] NOT?: Prisma.TelephonyConnectionWhereInput | Prisma.TelephonyConnectionWhereInput[] createdAt?: Prisma.DateTimeFilter<"TelephonyConnection"> | Date | string updatedAt?: Prisma.DateTimeFilter<"TelephonyConnection"> | Date | string tenantId?: Prisma.StringFilter<"TelephonyConnection"> | string provider?: Prisma.EnumTelephonyProviderFilter<"TelephonyConnection"> | $Enums.TelephonyProvider providerAccountId?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null providerAccountName?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null webhookId?: Prisma.StringNullableFilter<"TelephonyConnection"> | string | null userBindings?: Prisma.TelephonyUserBindingListRelationFilter callSessions?: Prisma.TelephonyCallSessionListRelationFilter webhookEvents?: Prisma.TelephonyWebhookEventListRelationFilter }, "id" | "dataConnectionId" | "webhookTokenHash" | "tenantId_provider"> export type TelephonyConnectionOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder dataConnectionId?: Prisma.SortOrder provider?: Prisma.SortOrder providerAccountId?: Prisma.SortOrderInput | Prisma.SortOrder providerAccountName?: Prisma.SortOrderInput | Prisma.SortOrder webhookId?: Prisma.SortOrderInput | Prisma.SortOrder webhookTokenHash?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.TelephonyConnectionCountOrderByAggregateInput _max?: Prisma.TelephonyConnectionMaxOrderByAggregateInput _min?: Prisma.TelephonyConnectionMinOrderByAggregateInput } export type TelephonyConnectionScalarWhereWithAggregatesInput = { AND?: Prisma.TelephonyConnectionScalarWhereWithAggregatesInput | Prisma.TelephonyConnectionScalarWhereWithAggregatesInput[] OR?: Prisma.TelephonyConnectionScalarWhereWithAggregatesInput[] NOT?: Prisma.TelephonyConnectionScalarWhereWithAggregatesInput | Prisma.TelephonyConnectionScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"TelephonyConnection"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyConnection"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TelephonyConnection"> | Date | string tenantId?: Prisma.StringWithAggregatesFilter<"TelephonyConnection"> | string dataConnectionId?: Prisma.StringWithAggregatesFilter<"TelephonyConnection"> | string provider?: Prisma.EnumTelephonyProviderWithAggregatesFilter<"TelephonyConnection"> | $Enums.TelephonyProvider providerAccountId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyConnection"> | string | null providerAccountName?: Prisma.StringNullableWithAggregatesFilter<"TelephonyConnection"> | string | null webhookId?: Prisma.StringNullableWithAggregatesFilter<"TelephonyConnection"> | string | null webhookTokenHash?: Prisma.StringNullableWithAggregatesFilter<"TelephonyConnection"> | string | null } export type TelephonyConnectionCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingCreateNestedManyWithoutConnectionInput callSessions?: Prisma.TelephonyCallSessionCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionUncheckedCreateInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingUncheckedCreateNestedManyWithoutConnectionInput callSessions?: Prisma.TelephonyCallSessionUncheckedCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUpdateManyWithoutConnectionNestedInput callSessions?: Prisma.TelephonyCallSessionUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUncheckedUpdateManyWithoutConnectionNestedInput callSessions?: Prisma.TelephonyCallSessionUncheckedUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionCreateManyInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null } export type TelephonyConnectionUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TelephonyConnectionUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type TelephonyConnectionTenantIdProviderCompoundUniqueInput = { tenantId: string provider: $Enums.TelephonyProvider } export type TelephonyConnectionCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder dataConnectionId?: Prisma.SortOrder provider?: Prisma.SortOrder providerAccountId?: Prisma.SortOrder providerAccountName?: Prisma.SortOrder webhookId?: Prisma.SortOrder webhookTokenHash?: Prisma.SortOrder } export type TelephonyConnectionMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder dataConnectionId?: Prisma.SortOrder provider?: Prisma.SortOrder providerAccountId?: Prisma.SortOrder providerAccountName?: Prisma.SortOrder webhookId?: Prisma.SortOrder webhookTokenHash?: Prisma.SortOrder } export type TelephonyConnectionMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder tenantId?: Prisma.SortOrder dataConnectionId?: Prisma.SortOrder provider?: Prisma.SortOrder providerAccountId?: Prisma.SortOrder providerAccountName?: Prisma.SortOrder webhookId?: Prisma.SortOrder webhookTokenHash?: Prisma.SortOrder } export type TelephonyConnectionScalarRelationFilter = { is?: Prisma.TelephonyConnectionWhereInput isNot?: Prisma.TelephonyConnectionWhereInput } export type EnumTelephonyProviderFieldUpdateOperationsInput = { set?: $Enums.TelephonyProvider } export type TelephonyConnectionCreateNestedOneWithoutUserBindingsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutUserBindingsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput } export type TelephonyConnectionUpdateOneRequiredWithoutUserBindingsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutUserBindingsInput upsert?: Prisma.TelephonyConnectionUpsertWithoutUserBindingsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.TelephonyConnectionUncheckedUpdateWithoutUserBindingsInput> } export type TelephonyConnectionCreateNestedOneWithoutCallSessionsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutCallSessionsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput } export type TelephonyConnectionUpdateOneRequiredWithoutCallSessionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutCallSessionsInput upsert?: Prisma.TelephonyConnectionUpsertWithoutCallSessionsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.TelephonyConnectionUncheckedUpdateWithoutCallSessionsInput> } export type TelephonyConnectionCreateNestedOneWithoutWebhookEventsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutWebhookEventsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput } export type TelephonyConnectionUpdateOneRequiredWithoutWebhookEventsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.TelephonyConnectionCreateOrConnectWithoutWebhookEventsInput upsert?: Prisma.TelephonyConnectionUpsertWithoutWebhookEventsInput connect?: Prisma.TelephonyConnectionWhereUniqueInput update?: Prisma.XOR, Prisma.TelephonyConnectionUncheckedUpdateWithoutWebhookEventsInput> } export type TelephonyConnectionCreateWithoutUserBindingsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null callSessions?: Prisma.TelephonyCallSessionCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionUncheckedCreateWithoutUserBindingsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null callSessions?: Prisma.TelephonyCallSessionUncheckedCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionCreateOrConnectWithoutUserBindingsInput = { where: Prisma.TelephonyConnectionWhereUniqueInput create: Prisma.XOR } export type TelephonyConnectionUpsertWithoutUserBindingsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TelephonyConnectionWhereInput } export type TelephonyConnectionUpdateToOneWithWhereWithoutUserBindingsInput = { where?: Prisma.TelephonyConnectionWhereInput data: Prisma.XOR } export type TelephonyConnectionUpdateWithoutUserBindingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null callSessions?: Prisma.TelephonyCallSessionUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionUncheckedUpdateWithoutUserBindingsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null callSessions?: Prisma.TelephonyCallSessionUncheckedUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionCreateWithoutCallSessionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionUncheckedCreateWithoutCallSessionsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingUncheckedCreateNestedManyWithoutConnectionInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionCreateOrConnectWithoutCallSessionsInput = { where: Prisma.TelephonyConnectionWhereUniqueInput create: Prisma.XOR } export type TelephonyConnectionUpsertWithoutCallSessionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TelephonyConnectionWhereInput } export type TelephonyConnectionUpdateToOneWithWhereWithoutCallSessionsInput = { where?: Prisma.TelephonyConnectionWhereInput data: Prisma.XOR } export type TelephonyConnectionUpdateWithoutCallSessionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionUncheckedUpdateWithoutCallSessionsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUncheckedUpdateManyWithoutConnectionNestedInput webhookEvents?: Prisma.TelephonyWebhookEventUncheckedUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionCreateWithoutWebhookEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingCreateNestedManyWithoutConnectionInput callSessions?: Prisma.TelephonyCallSessionCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionUncheckedCreateWithoutWebhookEventsInput = { id?: string createdAt?: Date | string updatedAt?: Date | string tenantId: string dataConnectionId: string provider?: $Enums.TelephonyProvider providerAccountId?: string | null providerAccountName?: string | null webhookId?: string | null webhookTokenHash?: string | null userBindings?: Prisma.TelephonyUserBindingUncheckedCreateNestedManyWithoutConnectionInput callSessions?: Prisma.TelephonyCallSessionUncheckedCreateNestedManyWithoutConnectionInput } export type TelephonyConnectionCreateOrConnectWithoutWebhookEventsInput = { where: Prisma.TelephonyConnectionWhereUniqueInput create: Prisma.XOR } export type TelephonyConnectionUpsertWithoutWebhookEventsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.TelephonyConnectionWhereInput } export type TelephonyConnectionUpdateToOneWithWhereWithoutWebhookEventsInput = { where?: Prisma.TelephonyConnectionWhereInput data: Prisma.XOR } export type TelephonyConnectionUpdateWithoutWebhookEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUpdateManyWithoutConnectionNestedInput callSessions?: Prisma.TelephonyCallSessionUpdateManyWithoutConnectionNestedInput } export type TelephonyConnectionUncheckedUpdateWithoutWebhookEventsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string dataConnectionId?: Prisma.StringFieldUpdateOperationsInput | string provider?: Prisma.EnumTelephonyProviderFieldUpdateOperationsInput | $Enums.TelephonyProvider providerAccountId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null providerAccountName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null webhookTokenHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null userBindings?: Prisma.TelephonyUserBindingUncheckedUpdateManyWithoutConnectionNestedInput callSessions?: Prisma.TelephonyCallSessionUncheckedUpdateManyWithoutConnectionNestedInput } /** * Count Type TelephonyConnectionCountOutputType */ export type TelephonyConnectionCountOutputType = { userBindings: number callSessions: number webhookEvents: number } export type TelephonyConnectionCountOutputTypeSelect = { userBindings?: boolean | TelephonyConnectionCountOutputTypeCountUserBindingsArgs callSessions?: boolean | TelephonyConnectionCountOutputTypeCountCallSessionsArgs webhookEvents?: boolean | TelephonyConnectionCountOutputTypeCountWebhookEventsArgs } /** * TelephonyConnectionCountOutputType without action */ export type TelephonyConnectionCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the TelephonyConnectionCountOutputType */ select?: Prisma.TelephonyConnectionCountOutputTypeSelect | null } /** * TelephonyConnectionCountOutputType without action */ export type TelephonyConnectionCountOutputTypeCountUserBindingsArgs = { where?: Prisma.TelephonyUserBindingWhereInput } /** * TelephonyConnectionCountOutputType without action */ export type TelephonyConnectionCountOutputTypeCountCallSessionsArgs = { where?: Prisma.TelephonyCallSessionWhereInput } /** * TelephonyConnectionCountOutputType without action */ export type TelephonyConnectionCountOutputTypeCountWebhookEventsArgs = { where?: Prisma.TelephonyWebhookEventWhereInput } export type TelephonyConnectionSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean dataConnectionId?: boolean provider?: boolean providerAccountId?: boolean providerAccountName?: boolean webhookId?: boolean webhookTokenHash?: boolean userBindings?: boolean | Prisma.TelephonyConnection$userBindingsArgs callSessions?: boolean | Prisma.TelephonyConnection$callSessionsArgs webhookEvents?: boolean | Prisma.TelephonyConnection$webhookEventsArgs _count?: boolean | Prisma.TelephonyConnectionCountOutputTypeDefaultArgs }, ExtArgs["result"]["telephonyConnection"]> export type TelephonyConnectionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean dataConnectionId?: boolean provider?: boolean providerAccountId?: boolean providerAccountName?: boolean webhookId?: boolean webhookTokenHash?: boolean }, ExtArgs["result"]["telephonyConnection"]> export type TelephonyConnectionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean dataConnectionId?: boolean provider?: boolean providerAccountId?: boolean providerAccountName?: boolean webhookId?: boolean webhookTokenHash?: boolean }, ExtArgs["result"]["telephonyConnection"]> export type TelephonyConnectionSelectScalar = { id?: boolean createdAt?: boolean updatedAt?: boolean tenantId?: boolean dataConnectionId?: boolean provider?: boolean providerAccountId?: boolean providerAccountName?: boolean webhookId?: boolean webhookTokenHash?: boolean } export type TelephonyConnectionOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "dataConnectionId" | "provider" | "providerAccountId" | "providerAccountName" | "webhookId" | "webhookTokenHash", ExtArgs["result"]["telephonyConnection"]> export type TelephonyConnectionInclude = { userBindings?: boolean | Prisma.TelephonyConnection$userBindingsArgs callSessions?: boolean | Prisma.TelephonyConnection$callSessionsArgs webhookEvents?: boolean | Prisma.TelephonyConnection$webhookEventsArgs _count?: boolean | Prisma.TelephonyConnectionCountOutputTypeDefaultArgs } export type TelephonyConnectionIncludeCreateManyAndReturn = {} export type TelephonyConnectionIncludeUpdateManyAndReturn = {} export type $TelephonyConnectionPayload = { name: "TelephonyConnection" objects: { userBindings: Prisma.$TelephonyUserBindingPayload[] callSessions: Prisma.$TelephonyCallSessionPayload[] webhookEvents: Prisma.$TelephonyWebhookEventPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date updatedAt: Date tenantId: string dataConnectionId: string provider: $Enums.TelephonyProvider providerAccountId: string | null providerAccountName: string | null webhookId: string | null webhookTokenHash: string | null }, ExtArgs["result"]["telephonyConnection"]> composites: {} } export type TelephonyConnectionGetPayload = runtime.Types.Result.GetResult export type TelephonyConnectionCountArgs = Omit & { select?: TelephonyConnectionCountAggregateInputType | true } export interface TelephonyConnectionDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['TelephonyConnection'], meta: { name: 'TelephonyConnection' } } /** * Find zero or one TelephonyConnection that matches the filter. * @param {TelephonyConnectionFindUniqueArgs} args - Arguments to find a TelephonyConnection * @example * // Get one TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one TelephonyConnection that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {TelephonyConnectionFindUniqueOrThrowArgs} args - Arguments to find a TelephonyConnection * @example * // Get one TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first TelephonyConnection 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 {TelephonyConnectionFindFirstArgs} args - Arguments to find a TelephonyConnection * @example * // Get one TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first TelephonyConnection 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 {TelephonyConnectionFindFirstOrThrowArgs} args - Arguments to find a TelephonyConnection * @example * // Get one TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more TelephonyConnections 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 {TelephonyConnectionFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all TelephonyConnections * const telephonyConnections = await prisma.telephonyConnection.findMany() * * // Get first 10 TelephonyConnections * const telephonyConnections = await prisma.telephonyConnection.findMany({ take: 10 }) * * // Only select the `id` * const telephonyConnectionWithIdOnly = await prisma.telephonyConnection.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a TelephonyConnection. * @param {TelephonyConnectionCreateArgs} args - Arguments to create a TelephonyConnection. * @example * // Create one TelephonyConnection * const TelephonyConnection = await prisma.telephonyConnection.create({ * data: { * // ... data to create a TelephonyConnection * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many TelephonyConnections. * @param {TelephonyConnectionCreateManyArgs} args - Arguments to create many TelephonyConnections. * @example * // Create many TelephonyConnections * const telephonyConnection = await prisma.telephonyConnection.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many TelephonyConnections and returns the data saved in the database. * @param {TelephonyConnectionCreateManyAndReturnArgs} args - Arguments to create many TelephonyConnections. * @example * // Create many TelephonyConnections * const telephonyConnection = await prisma.telephonyConnection.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many TelephonyConnections and only return the `id` * const telephonyConnectionWithIdOnly = await prisma.telephonyConnection.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 TelephonyConnection. * @param {TelephonyConnectionDeleteArgs} args - Arguments to delete one TelephonyConnection. * @example * // Delete one TelephonyConnection * const TelephonyConnection = await prisma.telephonyConnection.delete({ * where: { * // ... filter to delete one TelephonyConnection * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one TelephonyConnection. * @param {TelephonyConnectionUpdateArgs} args - Arguments to update one TelephonyConnection. * @example * // Update one TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more TelephonyConnections. * @param {TelephonyConnectionDeleteManyArgs} args - Arguments to filter TelephonyConnections to delete. * @example * // Delete a few TelephonyConnections * const { count } = await prisma.telephonyConnection.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TelephonyConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyConnectionUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many TelephonyConnections * const telephonyConnection = await prisma.telephonyConnection.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more TelephonyConnections and returns the data updated in the database. * @param {TelephonyConnectionUpdateManyAndReturnArgs} args - Arguments to update many TelephonyConnections. * @example * // Update many TelephonyConnections * const telephonyConnection = await prisma.telephonyConnection.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more TelephonyConnections and only return the `id` * const telephonyConnectionWithIdOnly = await prisma.telephonyConnection.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 TelephonyConnection. * @param {TelephonyConnectionUpsertArgs} args - Arguments to update or create a TelephonyConnection. * @example * // Update or create a TelephonyConnection * const telephonyConnection = await prisma.telephonyConnection.upsert({ * create: { * // ... data to create a TelephonyConnection * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the TelephonyConnection we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TelephonyConnectionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of TelephonyConnections. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyConnectionCountArgs} args - Arguments to filter TelephonyConnections to count. * @example * // Count the number of TelephonyConnections * const count = await prisma.telephonyConnection.count({ * where: { * // ... the filter for the TelephonyConnections 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 TelephonyConnection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyConnectionAggregateArgs} 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 TelephonyConnection. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {TelephonyConnectionGroupByArgs} 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 TelephonyConnectionGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TelephonyConnectionGroupByArgs['orderBy'] } : { orderBy?: TelephonyConnectionGroupByArgs['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 ? GetTelephonyConnectionGroupByPayload : Prisma.PrismaPromise /** * Fields of the TelephonyConnection model */ readonly fields: TelephonyConnectionFieldRefs; } /** * The delegate class that acts as a "Promise-like" for TelephonyConnection. * 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__TelephonyConnectionClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" userBindings = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> callSessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> 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 TelephonyConnection model */ export interface TelephonyConnectionFieldRefs { readonly id: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly createdAt: Prisma.FieldRef<"TelephonyConnection", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"TelephonyConnection", 'DateTime'> readonly tenantId: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly dataConnectionId: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly provider: Prisma.FieldRef<"TelephonyConnection", 'TelephonyProvider'> readonly providerAccountId: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly providerAccountName: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly webhookId: Prisma.FieldRef<"TelephonyConnection", 'String'> readonly webhookTokenHash: Prisma.FieldRef<"TelephonyConnection", 'String'> } // Custom InputTypes /** * TelephonyConnection findUnique */ export type TelephonyConnectionFindUniqueArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter, which TelephonyConnection to fetch. */ where: Prisma.TelephonyConnectionWhereUniqueInput } /** * TelephonyConnection findUniqueOrThrow */ export type TelephonyConnectionFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter, which TelephonyConnection to fetch. */ where: Prisma.TelephonyConnectionWhereUniqueInput } /** * TelephonyConnection findFirst */ export type TelephonyConnectionFindFirstArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter, which TelephonyConnection to fetch. */ where?: Prisma.TelephonyConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyConnections to fetch. */ orderBy?: Prisma.TelephonyConnectionOrderByWithRelationInput | Prisma.TelephonyConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TelephonyConnections. */ cursor?: Prisma.TelephonyConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyConnections 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` TelephonyConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyConnections. */ distinct?: Prisma.TelephonyConnectionScalarFieldEnum | Prisma.TelephonyConnectionScalarFieldEnum[] } /** * TelephonyConnection findFirstOrThrow */ export type TelephonyConnectionFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter, which TelephonyConnection to fetch. */ where?: Prisma.TelephonyConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyConnections to fetch. */ orderBy?: Prisma.TelephonyConnectionOrderByWithRelationInput | Prisma.TelephonyConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for TelephonyConnections. */ cursor?: Prisma.TelephonyConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyConnections 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` TelephonyConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyConnections. */ distinct?: Prisma.TelephonyConnectionScalarFieldEnum | Prisma.TelephonyConnectionScalarFieldEnum[] } /** * TelephonyConnection findMany */ export type TelephonyConnectionFindManyArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter, which TelephonyConnections to fetch. */ where?: Prisma.TelephonyConnectionWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of TelephonyConnections to fetch. */ orderBy?: Prisma.TelephonyConnectionOrderByWithRelationInput | Prisma.TelephonyConnectionOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing TelephonyConnections. */ cursor?: Prisma.TelephonyConnectionWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` TelephonyConnections 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` TelephonyConnections. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of TelephonyConnections. */ distinct?: Prisma.TelephonyConnectionScalarFieldEnum | Prisma.TelephonyConnectionScalarFieldEnum[] } /** * TelephonyConnection create */ export type TelephonyConnectionCreateArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * The data needed to create a TelephonyConnection. */ data: Prisma.XOR } /** * TelephonyConnection createMany */ export type TelephonyConnectionCreateManyArgs = { /** * The data used to create many TelephonyConnections. */ data: Prisma.TelephonyConnectionCreateManyInput | Prisma.TelephonyConnectionCreateManyInput[] skipDuplicates?: boolean } /** * TelephonyConnection createManyAndReturn */ export type TelephonyConnectionCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelectCreateManyAndReturn | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * The data used to create many TelephonyConnections. */ data: Prisma.TelephonyConnectionCreateManyInput | Prisma.TelephonyConnectionCreateManyInput[] skipDuplicates?: boolean } /** * TelephonyConnection update */ export type TelephonyConnectionUpdateArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * The data needed to update a TelephonyConnection. */ data: Prisma.XOR /** * Choose, which TelephonyConnection to update. */ where: Prisma.TelephonyConnectionWhereUniqueInput } /** * TelephonyConnection updateMany */ export type TelephonyConnectionUpdateManyArgs = { /** * The data used to update TelephonyConnections. */ data: Prisma.XOR /** * Filter which TelephonyConnections to update */ where?: Prisma.TelephonyConnectionWhereInput /** * Limit how many TelephonyConnections to update. */ limit?: number } /** * TelephonyConnection updateManyAndReturn */ export type TelephonyConnectionUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelectUpdateManyAndReturn | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * The data used to update TelephonyConnections. */ data: Prisma.XOR /** * Filter which TelephonyConnections to update */ where?: Prisma.TelephonyConnectionWhereInput /** * Limit how many TelephonyConnections to update. */ limit?: number } /** * TelephonyConnection upsert */ export type TelephonyConnectionUpsertArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * The filter to search for the TelephonyConnection to update in case it exists. */ where: Prisma.TelephonyConnectionWhereUniqueInput /** * In case the TelephonyConnection found by the `where` argument doesn't exist, create a new TelephonyConnection with this data. */ create: Prisma.XOR /** * In case the TelephonyConnection was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TelephonyConnection delete */ export type TelephonyConnectionDeleteArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null /** * Filter which TelephonyConnection to delete. */ where: Prisma.TelephonyConnectionWhereUniqueInput } /** * TelephonyConnection deleteMany */ export type TelephonyConnectionDeleteManyArgs = { /** * Filter which TelephonyConnections to delete */ where?: Prisma.TelephonyConnectionWhereInput /** * Limit how many TelephonyConnections to delete. */ limit?: number } /** * TelephonyConnection.userBindings */ export type TelephonyConnection$userBindingsArgs = { /** * Select specific fields to fetch from the TelephonyUserBinding */ select?: Prisma.TelephonyUserBindingSelect | null /** * Omit specific fields from the TelephonyUserBinding */ omit?: Prisma.TelephonyUserBindingOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyUserBindingInclude | null where?: Prisma.TelephonyUserBindingWhereInput orderBy?: Prisma.TelephonyUserBindingOrderByWithRelationInput | Prisma.TelephonyUserBindingOrderByWithRelationInput[] cursor?: Prisma.TelephonyUserBindingWhereUniqueInput take?: number skip?: number distinct?: Prisma.TelephonyUserBindingScalarFieldEnum | Prisma.TelephonyUserBindingScalarFieldEnum[] } /** * TelephonyConnection.callSessions */ export type TelephonyConnection$callSessionsArgs = { /** * 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 where?: Prisma.TelephonyCallSessionWhereInput orderBy?: Prisma.TelephonyCallSessionOrderByWithRelationInput | Prisma.TelephonyCallSessionOrderByWithRelationInput[] cursor?: Prisma.TelephonyCallSessionWhereUniqueInput take?: number skip?: number distinct?: Prisma.TelephonyCallSessionScalarFieldEnum | Prisma.TelephonyCallSessionScalarFieldEnum[] } /** * TelephonyConnection.webhookEvents */ export type TelephonyConnection$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[] } /** * TelephonyConnection without action */ export type TelephonyConnectionDefaultArgs = { /** * Select specific fields to fetch from the TelephonyConnection */ select?: Prisma.TelephonyConnectionSelect | null /** * Omit specific fields from the TelephonyConnection */ omit?: Prisma.TelephonyConnectionOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TelephonyConnectionInclude | null }